2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59 for libdmx 7.0.0.
5
# Report bugs to <sandmann@redhat.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.
424
PACKAGE_NAME='libdmx'
425
PACKAGE_TARNAME='libdmx'
426
PACKAGE_VERSION='7.0.0'
427
PACKAGE_STRING='libdmx 7.0.0'
428
PACKAGE_BUGREPORT='sandmann@redhat.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 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
962
# Report the --help message.
964
if test "$ac_init_help" = "long"; then
965
# Omit some internal or obsolete options to make the list less imposing.
966
# This message is too long to be a string in the A/UX 3.1 sh.
968
\`configure' configures libdmx 7.0.0 to adapt to many kinds of systems.
970
Usage: $0 [OPTION]... [VAR=VALUE]...
972
To assign environment variables (e.g., CC, CFLAGS...), specify them as
973
VAR=VALUE. See below for descriptions of some of the useful variables.
975
Defaults for the options are specified in brackets.
978
-h, --help display this help and exit
979
--help=short display options specific to this package
980
--help=recursive display the short help of all the included packages
981
-V, --version display version information and exit
982
-q, --quiet, --silent do not print \`checking...' messages
983
--cache-file=FILE cache test results in FILE [disabled]
984
-C, --config-cache alias for \`--cache-file=config.cache'
985
-n, --no-create do not create output files
986
--srcdir=DIR find the sources in DIR [configure dir or \`..']
991
Installation directories:
992
--prefix=PREFIX install architecture-independent files in PREFIX
994
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
997
By default, \`make install' will install all the files in
998
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000
for instance \`--prefix=\$HOME'.
1002
For better control, use the options below.
1004
Fine tuning of the installation directories:
1005
--bindir=DIR user executables [EPREFIX/bin]
1006
--sbindir=DIR system admin executables [EPREFIX/sbin]
1007
--libexecdir=DIR program executables [EPREFIX/libexec]
1008
--datadir=DIR read-only architecture-independent data [PREFIX/share]
1009
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012
--libdir=DIR object code libraries [EPREFIX/lib]
1013
--includedir=DIR C header files [PREFIX/include]
1014
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1015
--infodir=DIR info documentation [PREFIX/info]
1016
--mandir=DIR man documentation [PREFIX/man]
1022
--program-prefix=PREFIX prepend PREFIX to installed program names
1023
--program-suffix=SUFFIX append SUFFIX to installed program names
1024
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1027
--build=BUILD configure for building on BUILD [guessed]
1028
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1032
if test -n "$ac_init_help"; then
1033
case $ac_init_help in
1034
short | recursive ) echo "Configuration of libdmx 7.0.0:";;
1039
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1040
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1041
--enable-maintainer-mode enable make rules and dependencies not useful
1042
(and sometimes confusing) to the casual installer
1043
--disable-dependency-tracking speeds up one-time build
1044
--enable-dependency-tracking do not reject slow dependency extractors
1045
--enable-shared[=PKGS]
1046
build shared libraries [default=yes]
1047
--enable-static[=PKGS]
1048
build static libraries [default=yes]
1049
--enable-fast-install[=PKGS]
1050
optimize for fast installation [default=yes]
1051
--disable-libtool-lock avoid locking (might break parallel builds)
1054
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1055
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1056
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1057
--with-pic try to use only PIC/non-PIC objects [default=use
1060
include additional configurations [automatic]
1062
Some influential environment variables:
1063
CC C compiler command
1064
CFLAGS C compiler flags
1065
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1066
nonstandard directory <lib dir>
1067
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1068
headers in a nonstandard directory <include dir>
1070
CXX C++ compiler command
1071
CXXFLAGS C++ compiler flags
1072
CXXCPP C++ preprocessor
1073
F77 Fortran 77 compiler command
1074
FFLAGS Fortran 77 compiler flags
1075
PKG_CONFIG path to pkg-config utility
1076
DEP_CFLAGS C compiler flags for DEP, overriding pkg-config
1077
DEP_LIBS linker flags for DEP, overriding pkg-config
1079
Use these variables to override the choices made by `configure' or to help
1080
it to find libraries and programs with nonstandard names/locations.
1082
Report bugs to <sandmann@redhat.com>.
1086
if test "$ac_init_help" = "recursive"; then
1087
# If there are subdirs, report their specific --help.
1089
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1090
test -d $ac_dir || continue
1093
if test "$ac_dir" != .; then
1094
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1095
# A "../" for each directory in $ac_dir_suffix.
1096
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1098
ac_dir_suffix= ac_top_builddir=
1102
.) # No --srcdir option. We are building in place.
1104
if test -z "$ac_top_builddir"; then
1107
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1109
[\\/]* | ?:[\\/]* ) # Absolute path.
1110
ac_srcdir=$srcdir$ac_dir_suffix;
1111
ac_top_srcdir=$srcdir ;;
1113
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1114
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1117
# Do not use `cd foo && pwd` to compute absolute paths, because
1118
# the directories may not exist.
1120
.) ac_abs_builddir="$ac_dir";;
1123
.) ac_abs_builddir=`pwd`;;
1124
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1125
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1128
case $ac_abs_builddir in
1129
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1131
case ${ac_top_builddir}. in
1132
.) ac_abs_top_builddir=$ac_abs_builddir;;
1133
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1134
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1137
case $ac_abs_builddir in
1138
.) ac_abs_srcdir=$ac_srcdir;;
1141
.) ac_abs_srcdir=$ac_abs_builddir;;
1142
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1143
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1146
case $ac_abs_builddir in
1147
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1149
case $ac_top_srcdir in
1150
.) ac_abs_top_srcdir=$ac_abs_builddir;;
1151
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1152
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1157
# Check for guested configure; otherwise get Cygnus style configure.
1158
if test -f $ac_srcdir/configure.gnu; then
1160
$SHELL $ac_srcdir/configure.gnu --help=recursive
1161
elif test -f $ac_srcdir/configure; then
1163
$SHELL $ac_srcdir/configure --help=recursive
1164
elif test -f $ac_srcdir/configure.ac ||
1165
test -f $ac_srcdir/configure.in; then
1167
$ac_configure --help
1169
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1175
test -n "$ac_init_help" && exit 0
1176
if $ac_init_version; then
1178
libdmx configure 7.0.0
1179
generated by GNU Autoconf 2.59
1181
Copyright (C) 2003 Free Software Foundation, Inc.
1182
This configure script is free software; the Free Software Foundation
1183
gives unlimited permission to copy, distribute and modify it.
1189
This file contains any messages produced by compilers while
1190
running configure, to aid debugging if configure makes a mistake.
1192
It was created by libdmx $as_me 7.0.0, which was
1193
generated by GNU Autoconf 2.59. Invocation command line was
1204
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1205
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1206
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1207
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1208
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1210
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1211
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1213
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1214
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1215
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1216
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1217
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1218
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1219
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1227
test -z "$as_dir" && as_dir=.
1228
echo "PATH: $as_dir"
1243
# Keep a trace of the command line.
1244
# Strip out --no-create and --no-recursion so they do not pile up.
1245
# Strip out --silent because we don't want to record it for future runs.
1246
# Also quote any args containing shell meta-characters.
1247
# Make two passes to allow for proper duplicate-argument suppression.
1252
ac_must_keep_next=false
1258
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1259
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1260
| -silent | --silent | --silen | --sile | --sil)
1262
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1263
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1266
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1268
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1269
if test $ac_must_keep_next = true; then
1270
ac_must_keep_next=false # Got value, back to normal.
1273
*=* | --config-cache | -C | -disable-* | --disable-* \
1274
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1275
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1276
| -with-* | --with-* | -without-* | --without-* | --x)
1277
case "$ac_configure_args0 " in
1278
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1281
-* ) ac_must_keep_next=true ;;
1284
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1285
# Get rid of the leading space.
1291
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1292
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1294
# When interrupted or exit'd, cleanup temporary files, and complete
1295
# config.log. We remove comments because anyway the quotes in there
1296
# would cause problems or look ugly.
1297
# WARNING: Be sure not to use single quotes in there, as some shells,
1298
# such as our DU 5.0 friend, will then `close' the trap.
1299
trap 'exit_status=$?
1300
# Save into config.log some information that might help in debugging.
1305
## ---------------- ##
1306
## Cache variables. ##
1307
## ---------------- ##
1310
# The following way of writing the cache mishandles newlines in values,
1313
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1316
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1317
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1321
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1328
## ----------------- ##
1329
## Output variables. ##
1330
## ----------------- ##
1333
for ac_var in $ac_subst_vars
1335
eval ac_val=$`echo $ac_var`
1336
echo "$ac_var='"'"'$ac_val'"'"'"
1340
if test -n "$ac_subst_files"; then
1347
for ac_var in $ac_subst_files
1349
eval ac_val=$`echo $ac_var`
1350
echo "$ac_var='"'"'$ac_val'"'"'"
1355
if test -s confdefs.h; then
1362
sed "/^$/d" confdefs.h | sort
1365
test "$ac_signal" != 0 &&
1366
echo "$as_me: caught signal $ac_signal"
1367
echo "$as_me: exit $exit_status"
1369
rm -f core *.core &&
1370
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1373
for ac_signal in 1 2 13 15; do
1374
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1378
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1379
rm -rf conftest* confdefs.h
1380
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1383
# Predefined preprocessor variables.
1385
cat >>confdefs.h <<_ACEOF
1386
#define PACKAGE_NAME "$PACKAGE_NAME"
1390
cat >>confdefs.h <<_ACEOF
1391
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1395
cat >>confdefs.h <<_ACEOF
1396
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1400
cat >>confdefs.h <<_ACEOF
1401
#define PACKAGE_STRING "$PACKAGE_STRING"
1405
cat >>confdefs.h <<_ACEOF
1406
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1410
# Let the site file select an alternate cache file if it wants to.
1411
# Prefer explicitly selected file to automatically selected ones.
1412
if test -z "$CONFIG_SITE"; then
1413
if test "x$prefix" != xNONE; then
1414
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1416
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1419
for ac_site_file in $CONFIG_SITE; do
1420
if test -r "$ac_site_file"; then
1421
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1422
echo "$as_me: loading site script $ac_site_file" >&6;}
1423
sed 's/^/| /' "$ac_site_file" >&5
1428
if test -r "$cache_file"; then
1429
# Some versions of bash will fail to source /dev/null (special
1430
# files actually), so we avoid doing that.
1431
if test -f "$cache_file"; then
1432
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1433
echo "$as_me: loading cache $cache_file" >&6;}
1435
[\\/]* | ?:[\\/]* ) . $cache_file;;
1436
*) . ./$cache_file;;
1440
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1441
echo "$as_me: creating cache $cache_file" >&6;}
1445
# Check that the precious variables saved in the cache have kept the same
1447
ac_cache_corrupted=false
1448
for ac_var in `(set) 2>&1 |
1449
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1450
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1451
eval ac_new_set=\$ac_env_${ac_var}_set
1452
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1453
eval ac_new_val="\$ac_env_${ac_var}_value"
1454
case $ac_old_set,$ac_new_set in
1456
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1457
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1458
ac_cache_corrupted=: ;;
1460
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1461
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1462
ac_cache_corrupted=: ;;
1465
if test "x$ac_old_val" != "x$ac_new_val"; then
1466
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1467
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1468
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1469
echo "$as_me: former value: $ac_old_val" >&2;}
1470
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1471
echo "$as_me: current value: $ac_new_val" >&2;}
1472
ac_cache_corrupted=:
1475
# Pass precious variables to config.status.
1476
if test "$ac_new_set" = set; then
1478
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1479
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1480
*) ac_arg=$ac_var=$ac_new_val ;;
1482
case " $ac_configure_args " in
1483
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1484
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1488
if $ac_cache_corrupted; then
1489
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1490
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1491
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1492
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1493
{ (exit 1); exit 1; }; }
1497
ac_cpp='$CPP $CPPFLAGS'
1498
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1499
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1500
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1528
am__api_version="1.9"
1530
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1531
if test -f $ac_dir/install-sh; then
1533
ac_install_sh="$ac_aux_dir/install-sh -c"
1535
elif test -f $ac_dir/install.sh; then
1537
ac_install_sh="$ac_aux_dir/install.sh -c"
1539
elif test -f $ac_dir/shtool; then
1541
ac_install_sh="$ac_aux_dir/shtool install -c"
1545
if test -z "$ac_aux_dir"; then
1546
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1547
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1548
{ (exit 1); exit 1; }; }
1550
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1551
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1552
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1554
# Find a good install program. We prefer a C program (faster),
1555
# so one script is as good as another. But avoid the broken or
1556
# incompatible versions:
1557
# SysV /etc/install, /usr/sbin/install
1558
# SunOS /usr/etc/install
1559
# IRIX /sbin/install
1561
# AmigaOS /C/install, which installs bootblocks on floppy discs
1562
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1563
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1564
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1565
# OS/2's system install, which has a completely different semantic
1566
# ./install, which can be erroneously created by make from ./install.sh.
1567
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1568
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1569
if test -z "$INSTALL"; then
1570
if test "${ac_cv_path_install+set}" = set; then
1571
echo $ECHO_N "(cached) $ECHO_C" >&6
1573
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1577
test -z "$as_dir" && as_dir=.
1578
# Account for people who put trailing slashes in PATH elements.
1580
./ | .// | /cC/* | \
1581
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1582
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1585
# OSF1 and SCO ODT 3.0 have their own names for install.
1586
# Don't use installbsd from OSF since it installs stuff as root
1588
for ac_prog in ginstall scoinst install; do
1589
for ac_exec_ext in '' $ac_executable_extensions; do
1590
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1591
if test $ac_prog = install &&
1592
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1593
# AIX install. It has an incompatible calling convention.
1595
elif test $ac_prog = install &&
1596
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1597
# program-specific install script used by HP pwplus--don't use.
1600
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1612
if test "${ac_cv_path_install+set}" = set; then
1613
INSTALL=$ac_cv_path_install
1615
# As a last resort, use the slow shell script. We don't cache a
1616
# path for INSTALL within a source directory, because that will
1617
# break other packages using the cache if that directory is
1618
# removed, or if the path is relative.
1619
INSTALL=$ac_install_sh
1622
echo "$as_me:$LINENO: result: $INSTALL" >&5
1623
echo "${ECHO_T}$INSTALL" >&6
1625
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1626
# It thinks the first close brace ends the variable substitution.
1627
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1629
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1631
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1633
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1634
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1637
echo timestamp > conftest.file
1638
# Do `set' in a subshell so we don't clobber the current shell's
1639
# arguments. Must try -L first in case configure is actually a
1640
# symlink; some systems play weird games with the mod time of symlinks
1641
# (eg FreeBSD returns the mod time of the symlink's containing
1644
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1645
if test "$*" = "X"; then
1647
set X `ls -t $srcdir/configure conftest.file`
1650
if test "$*" != "X $srcdir/configure conftest.file" \
1651
&& test "$*" != "X conftest.file $srcdir/configure"; then
1653
# If neither matched, then we have a broken ls. This can happen
1654
# if, for instance, CONFIG_SHELL is bash and it inherits a
1655
# broken ls alias from the environment. This has actually
1656
# happened. Such a system could not be considered "sane".
1657
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1658
alias in your environment" >&5
1659
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1660
alias in your environment" >&2;}
1661
{ (exit 1); exit 1; }; }
1664
test "$2" = conftest.file
1670
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1671
Check your system clock" >&5
1672
echo "$as_me: error: newly created file is older than distributed files!
1673
Check your system clock" >&2;}
1674
{ (exit 1); exit 1; }; }
1676
echo "$as_me:$LINENO: result: yes" >&5
1677
echo "${ECHO_T}yes" >&6
1678
test "$program_prefix" != NONE &&
1679
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1680
# Use a double $ so make ignores it.
1681
test "$program_suffix" != NONE &&
1682
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1683
# Double any \ or $. echo might interpret backslashes.
1684
# By default was `s,x,x', remove it if useless.
1685
cat <<\_ACEOF >conftest.sed
1686
s/[\\$]/&&/g;s/;s,x,x,$//
1688
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1691
# expand $ac_aux_dir to an absolute path
1692
am_aux_dir=`cd $ac_aux_dir && pwd`
1694
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1695
# Use eval to expand $SHELL
1696
if eval "$MISSING --run true"; then
1697
am_missing_run="$MISSING --run "
1700
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1701
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1704
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1705
# We used to keeping the `.' as first argument, in order to
1706
# allow $(mkdir_p) to be used without argument. As in
1707
# $(mkdir_p) $(somedir)
1708
# where $(somedir) is conditionally defined. However this is wrong
1710
# 1. if the package is installed by a user who cannot write `.'
1711
# make install will fail,
1712
# 2. the above comment should most certainly read
1713
# $(mkdir_p) $(DESTDIR)$(somedir)
1714
# so it does not work when $(somedir) is undefined and
1715
# $(DESTDIR) is not.
1716
# To support the latter case, we have to write
1717
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1718
# so the `.' trick is pointless.
1719
mkdir_p='mkdir -p --'
1721
# On NextStep and OpenStep, the `mkdir' command does not
1722
# recognize any option. It will interpret all options as
1723
# directories to create, and then abort because `.' already
1725
for d in ./-p ./--version;
1727
test -d $d && rmdir $d
1729
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1730
if test -f "$ac_aux_dir/mkinstalldirs"; then
1731
mkdir_p='$(mkinstalldirs)'
1733
mkdir_p='$(install_sh) -d'
1737
for ac_prog in gawk mawk nawk awk
1739
# Extract the first word of "$ac_prog", so it can be a program name with args.
1740
set dummy $ac_prog; ac_word=$2
1741
echo "$as_me:$LINENO: checking for $ac_word" >&5
1742
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1743
if test "${ac_cv_prog_AWK+set}" = set; then
1744
echo $ECHO_N "(cached) $ECHO_C" >&6
1746
if test -n "$AWK"; then
1747
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1749
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753
test -z "$as_dir" && as_dir=.
1754
for ac_exec_ext in '' $ac_executable_extensions; do
1755
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1756
ac_cv_prog_AWK="$ac_prog"
1757
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1766
if test -n "$AWK"; then
1767
echo "$as_me:$LINENO: result: $AWK" >&5
1768
echo "${ECHO_T}$AWK" >&6
1770
echo "$as_me:$LINENO: result: no" >&5
1771
echo "${ECHO_T}no" >&6
1774
test -n "$AWK" && break
1777
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1778
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1779
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1780
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1781
echo $ECHO_N "(cached) $ECHO_C" >&6
1783
cat >conftest.make <<\_ACEOF
1785
@echo 'ac_maketemp="$(MAKE)"'
1787
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1788
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1789
if test -n "$ac_maketemp"; then
1790
eval ac_cv_prog_make_${ac_make}_set=yes
1792
eval ac_cv_prog_make_${ac_make}_set=no
1796
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1797
echo "$as_me:$LINENO: result: yes" >&5
1798
echo "${ECHO_T}yes" >&6
1801
echo "$as_me:$LINENO: result: no" >&5
1802
echo "${ECHO_T}no" >&6
1803
SET_MAKE="MAKE=${MAKE-make}"
1806
rm -rf .tst 2>/dev/null
1807
mkdir .tst 2>/dev/null
1808
if test -d .tst; then
1813
rmdir .tst 2>/dev/null
1815
# test to see if srcdir already configured
1816
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1817
test -f $srcdir/config.status; then
1818
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1819
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1820
{ (exit 1); exit 1; }; }
1823
# test whether we have cygpath
1824
if test -z "$CYGPATH_W"; then
1825
if (cygpath --version) >/dev/null 2>/dev/null; then
1826
CYGPATH_W='cygpath -w'
1833
# Define the identity of the package.
1838
cat >>confdefs.h <<_ACEOF
1839
#define PACKAGE "$PACKAGE"
1843
cat >>confdefs.h <<_ACEOF
1844
#define VERSION "$VERSION"
1847
# Some tools Automake needs.
1849
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1852
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1855
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1858
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1861
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1863
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1865
# Installed binaries are usually stripped using `strip' when the user
1866
# run `make install-strip'. However `strip' might not be the right
1867
# tool to use in cross-compilation environments, therefore Automake
1868
# will honor the `STRIP' environment variable to overrule this program.
1869
if test "$cross_compiling" != no; then
1870
if test -n "$ac_tool_prefix"; then
1871
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1872
set dummy ${ac_tool_prefix}strip; ac_word=$2
1873
echo "$as_me:$LINENO: checking for $ac_word" >&5
1874
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875
if test "${ac_cv_prog_STRIP+set}" = set; then
1876
echo $ECHO_N "(cached) $ECHO_C" >&6
1878
if test -n "$STRIP"; then
1879
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1881
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885
test -z "$as_dir" && as_dir=.
1886
for ac_exec_ext in '' $ac_executable_extensions; do
1887
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1889
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897
STRIP=$ac_cv_prog_STRIP
1898
if test -n "$STRIP"; then
1899
echo "$as_me:$LINENO: result: $STRIP" >&5
1900
echo "${ECHO_T}$STRIP" >&6
1902
echo "$as_me:$LINENO: result: no" >&5
1903
echo "${ECHO_T}no" >&6
1907
if test -z "$ac_cv_prog_STRIP"; then
1909
# Extract the first word of "strip", so it can be a program name with args.
1910
set dummy strip; ac_word=$2
1911
echo "$as_me:$LINENO: checking for $ac_word" >&5
1912
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1914
echo $ECHO_N "(cached) $ECHO_C" >&6
1916
if test -n "$ac_ct_STRIP"; then
1917
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1919
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923
test -z "$as_dir" && as_dir=.
1924
for ac_exec_ext in '' $ac_executable_extensions; do
1925
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926
ac_cv_prog_ac_ct_STRIP="strip"
1927
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1936
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1937
if test -n "$ac_ct_STRIP"; then
1938
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1939
echo "${ECHO_T}$ac_ct_STRIP" >&6
1941
echo "$as_me:$LINENO: result: no" >&5
1942
echo "${ECHO_T}no" >&6
1947
STRIP="$ac_cv_prog_STRIP"
1951
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1953
# We need awk for the "check" target. The system "awk" is bad on
1955
# Always define AMTAR for backward compatibility.
1957
AMTAR=${AMTAR-"${am_missing_run}tar"}
1959
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1965
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1966
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1967
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1968
if test "${enable_maintainer_mode+set}" = set; then
1969
enableval="$enable_maintainer_mode"
1970
USE_MAINTAINER_MODE=$enableval
1972
USE_MAINTAINER_MODE=no
1974
echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1975
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1978
if test $USE_MAINTAINER_MODE = yes; then
1979
MAINTAINER_MODE_TRUE=
1980
MAINTAINER_MODE_FALSE='#'
1982
MAINTAINER_MODE_TRUE='#'
1983
MAINTAINER_MODE_FALSE=
1986
MAINT=$MAINTAINER_MODE_TRUE
1990
ac_config_headers="$ac_config_headers config.h"
1995
ac_cpp='$CPP $CPPFLAGS'
1996
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1997
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1998
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1999
if test -n "$ac_tool_prefix"; then
2000
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2001
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2002
echo "$as_me:$LINENO: checking for $ac_word" >&5
2003
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004
if test "${ac_cv_prog_CC+set}" = set; then
2005
echo $ECHO_N "(cached) $ECHO_C" >&6
2007
if test -n "$CC"; then
2008
ac_cv_prog_CC="$CC" # Let the user override the test.
2010
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014
test -z "$as_dir" && as_dir=.
2015
for ac_exec_ext in '' $ac_executable_extensions; do
2016
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2018
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027
if test -n "$CC"; then
2028
echo "$as_me:$LINENO: result: $CC" >&5
2029
echo "${ECHO_T}$CC" >&6
2031
echo "$as_me:$LINENO: result: no" >&5
2032
echo "${ECHO_T}no" >&6
2036
if test -z "$ac_cv_prog_CC"; then
2038
# Extract the first word of "gcc", so it can be a program name with args.
2039
set dummy gcc; ac_word=$2
2040
echo "$as_me:$LINENO: checking for $ac_word" >&5
2041
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2042
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2043
echo $ECHO_N "(cached) $ECHO_C" >&6
2045
if test -n "$ac_ct_CC"; then
2046
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2048
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052
test -z "$as_dir" && as_dir=.
2053
for ac_exec_ext in '' $ac_executable_extensions; do
2054
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2055
ac_cv_prog_ac_ct_CC="gcc"
2056
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2065
if test -n "$ac_ct_CC"; then
2066
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2067
echo "${ECHO_T}$ac_ct_CC" >&6
2069
echo "$as_me:$LINENO: result: no" >&5
2070
echo "${ECHO_T}no" >&6
2078
if test -z "$CC"; then
2079
if test -n "$ac_tool_prefix"; then
2080
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2081
set dummy ${ac_tool_prefix}cc; ac_word=$2
2082
echo "$as_me:$LINENO: checking for $ac_word" >&5
2083
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2084
if test "${ac_cv_prog_CC+set}" = set; then
2085
echo $ECHO_N "(cached) $ECHO_C" >&6
2087
if test -n "$CC"; then
2088
ac_cv_prog_CC="$CC" # Let the user override the test.
2090
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094
test -z "$as_dir" && as_dir=.
2095
for ac_exec_ext in '' $ac_executable_extensions; do
2096
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2097
ac_cv_prog_CC="${ac_tool_prefix}cc"
2098
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107
if test -n "$CC"; then
2108
echo "$as_me:$LINENO: result: $CC" >&5
2109
echo "${ECHO_T}$CC" >&6
2111
echo "$as_me:$LINENO: result: no" >&5
2112
echo "${ECHO_T}no" >&6
2116
if test -z "$ac_cv_prog_CC"; then
2118
# Extract the first word of "cc", so it can be a program name with args.
2119
set dummy cc; ac_word=$2
2120
echo "$as_me:$LINENO: checking for $ac_word" >&5
2121
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2122
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2123
echo $ECHO_N "(cached) $ECHO_C" >&6
2125
if test -n "$ac_ct_CC"; then
2126
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2128
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132
test -z "$as_dir" && as_dir=.
2133
for ac_exec_ext in '' $ac_executable_extensions; do
2134
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2135
ac_cv_prog_ac_ct_CC="cc"
2136
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2144
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2145
if test -n "$ac_ct_CC"; then
2146
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2147
echo "${ECHO_T}$ac_ct_CC" >&6
2149
echo "$as_me:$LINENO: result: no" >&5
2150
echo "${ECHO_T}no" >&6
2159
if test -z "$CC"; then
2160
# Extract the first word of "cc", so it can be a program name with args.
2161
set dummy cc; ac_word=$2
2162
echo "$as_me:$LINENO: checking for $ac_word" >&5
2163
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2164
if test "${ac_cv_prog_CC+set}" = set; then
2165
echo $ECHO_N "(cached) $ECHO_C" >&6
2167
if test -n "$CC"; then
2168
ac_cv_prog_CC="$CC" # Let the user override the test.
2171
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175
test -z "$as_dir" && as_dir=.
2176
for ac_exec_ext in '' $ac_executable_extensions; do
2177
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2178
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2179
ac_prog_rejected=yes
2183
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2189
if test $ac_prog_rejected = yes; then
2190
# We found a bogon in the path, so make sure we never use it.
2191
set dummy $ac_cv_prog_CC
2193
if test $# != 0; then
2194
# We chose a different compiler from the bogus one.
2195
# However, it has the same basename, so the bogon will be chosen
2196
# first if we set CC to just the basename; use the full file name.
2198
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2204
if test -n "$CC"; then
2205
echo "$as_me:$LINENO: result: $CC" >&5
2206
echo "${ECHO_T}$CC" >&6
2208
echo "$as_me:$LINENO: result: no" >&5
2209
echo "${ECHO_T}no" >&6
2213
if test -z "$CC"; then
2214
if test -n "$ac_tool_prefix"; then
2217
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2218
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2219
echo "$as_me:$LINENO: checking for $ac_word" >&5
2220
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2221
if test "${ac_cv_prog_CC+set}" = set; then
2222
echo $ECHO_N "(cached) $ECHO_C" >&6
2224
if test -n "$CC"; then
2225
ac_cv_prog_CC="$CC" # Let the user override the test.
2227
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231
test -z "$as_dir" && as_dir=.
2232
for ac_exec_ext in '' $ac_executable_extensions; do
2233
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2234
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2235
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244
if test -n "$CC"; then
2245
echo "$as_me:$LINENO: result: $CC" >&5
2246
echo "${ECHO_T}$CC" >&6
2248
echo "$as_me:$LINENO: result: no" >&5
2249
echo "${ECHO_T}no" >&6
2252
test -n "$CC" && break
2255
if test -z "$CC"; then
2259
# Extract the first word of "$ac_prog", so it can be a program name with args.
2260
set dummy $ac_prog; ac_word=$2
2261
echo "$as_me:$LINENO: checking for $ac_word" >&5
2262
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2263
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2264
echo $ECHO_N "(cached) $ECHO_C" >&6
2266
if test -n "$ac_ct_CC"; then
2267
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2269
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273
test -z "$as_dir" && as_dir=.
2274
for ac_exec_ext in '' $ac_executable_extensions; do
2275
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2276
ac_cv_prog_ac_ct_CC="$ac_prog"
2277
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2286
if test -n "$ac_ct_CC"; then
2287
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2288
echo "${ECHO_T}$ac_ct_CC" >&6
2290
echo "$as_me:$LINENO: result: no" >&5
2291
echo "${ECHO_T}no" >&6
2294
test -n "$ac_ct_CC" && break
2303
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2304
See \`config.log' for more details." >&5
2305
echo "$as_me: error: no acceptable C compiler found in \$PATH
2306
See \`config.log' for more details." >&2;}
2307
{ (exit 1); exit 1; }; }
2309
# Provide some information about the compiler.
2310
echo "$as_me:$LINENO:" \
2311
"checking for C compiler version" >&5
2312
ac_compiler=`set X $ac_compile; echo $2`
2313
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2314
(eval $ac_compiler --version </dev/null >&5) 2>&5
2316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317
(exit $ac_status); }
2318
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2319
(eval $ac_compiler -v </dev/null >&5) 2>&5
2321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322
(exit $ac_status); }
2323
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2324
(eval $ac_compiler -V </dev/null >&5) 2>&5
2326
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327
(exit $ac_status); }
2329
cat >conftest.$ac_ext <<_ACEOF
2332
cat confdefs.h >>conftest.$ac_ext
2333
cat >>conftest.$ac_ext <<_ACEOF
2334
/* end confdefs.h. */
2344
ac_clean_files_save=$ac_clean_files
2345
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2346
# Try to create an executable without -o first, disregard a.out.
2347
# It will help us diagnose broken compilers, and finding out an intuition
2349
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2350
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2351
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2352
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2353
(eval $ac_link_default) 2>&5
2355
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356
(exit $ac_status); }; then
2357
# Find the output, starting from the most likely. This scheme is
2358
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2361
# Be careful to initialize this variable, since it used to be cached.
2362
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2364
# b.out is created by i960 compilers.
2365
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2367
test -f "$ac_file" || continue
2369
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2372
# This is the source file.
2375
# We found the default executable, but exeext='' is most
2379
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2380
# FIXME: I believe we export ac_cv_exeext for Libtool,
2381
# but it would be cool to find out if it's true. Does anybody
2382
# maintain Libtool? --akim.
2390
echo "$as_me: failed program was:" >&5
2391
sed 's/^/| /' conftest.$ac_ext >&5
2393
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2394
See \`config.log' for more details." >&5
2395
echo "$as_me: error: C compiler cannot create executables
2396
See \`config.log' for more details." >&2;}
2397
{ (exit 77); exit 77; }; }
2400
ac_exeext=$ac_cv_exeext
2401
echo "$as_me:$LINENO: result: $ac_file" >&5
2402
echo "${ECHO_T}$ac_file" >&6
2404
# Check the compiler produces executables we can run. If not, either
2405
# the compiler is broken, or we cross compile.
2406
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2407
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2408
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2409
# If not cross compiling, check that we can run a simple program.
2410
if test "$cross_compiling" != yes; then
2411
if { ac_try='./$ac_file'
2412
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416
(exit $ac_status); }; }; then
2419
if test "$cross_compiling" = maybe; then
2422
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2423
If you meant to cross compile, use \`--host'.
2424
See \`config.log' for more details." >&5
2425
echo "$as_me: error: cannot run C compiled programs.
2426
If you meant to cross compile, use \`--host'.
2427
See \`config.log' for more details." >&2;}
2428
{ (exit 1); exit 1; }; }
2432
echo "$as_me:$LINENO: result: yes" >&5
2433
echo "${ECHO_T}yes" >&6
2435
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2436
ac_clean_files=$ac_clean_files_save
2437
# Check the compiler produces executables we can run. If not, either
2438
# the compiler is broken, or we cross compile.
2439
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2440
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2441
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2442
echo "${ECHO_T}$cross_compiling" >&6
2444
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2445
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2446
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2447
(eval $ac_link) 2>&5
2449
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450
(exit $ac_status); }; then
2451
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2452
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2453
# work properly (i.e., refer to `conftest.exe'), while it won't with
2455
for ac_file in conftest.exe conftest conftest.*; do
2456
test -f "$ac_file" || continue
2458
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2459
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2466
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2467
See \`config.log' for more details." >&5
2468
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2469
See \`config.log' for more details." >&2;}
2470
{ (exit 1); exit 1; }; }
2473
rm -f conftest$ac_cv_exeext
2474
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2475
echo "${ECHO_T}$ac_cv_exeext" >&6
2477
rm -f conftest.$ac_ext
2478
EXEEXT=$ac_cv_exeext
2480
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2481
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2482
if test "${ac_cv_objext+set}" = set; then
2483
echo $ECHO_N "(cached) $ECHO_C" >&6
2485
cat >conftest.$ac_ext <<_ACEOF
2488
cat confdefs.h >>conftest.$ac_ext
2489
cat >>conftest.$ac_ext <<_ACEOF
2490
/* end confdefs.h. */
2500
rm -f conftest.o conftest.obj
2501
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502
(eval $ac_compile) 2>&5
2504
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505
(exit $ac_status); }; then
2506
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2508
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2509
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2514
echo "$as_me: failed program was:" >&5
2515
sed 's/^/| /' conftest.$ac_ext >&5
2517
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2518
See \`config.log' for more details." >&5
2519
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2520
See \`config.log' for more details." >&2;}
2521
{ (exit 1); exit 1; }; }
2524
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2526
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2527
echo "${ECHO_T}$ac_cv_objext" >&6
2528
OBJEXT=$ac_cv_objext
2530
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2531
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2532
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2533
echo $ECHO_N "(cached) $ECHO_C" >&6
2535
cat >conftest.$ac_ext <<_ACEOF
2538
cat confdefs.h >>conftest.$ac_ext
2539
cat >>conftest.$ac_ext <<_ACEOF
2540
/* end confdefs.h. */
2553
rm -f conftest.$ac_objext
2554
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555
(eval $ac_compile) 2>conftest.er1
2557
grep -v '^ *+' conftest.er1 >conftest.err
2559
cat conftest.err >&5
2560
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561
(exit $ac_status); } &&
2562
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2563
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567
(exit $ac_status); }; } &&
2568
{ ac_try='test -s conftest.$ac_objext'
2569
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573
(exit $ac_status); }; }; then
2576
echo "$as_me: failed program was:" >&5
2577
sed 's/^/| /' conftest.$ac_ext >&5
2581
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2582
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2585
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2586
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2587
GCC=`test $ac_compiler_gnu = yes && echo yes`
2588
ac_test_CFLAGS=${CFLAGS+set}
2589
ac_save_CFLAGS=$CFLAGS
2591
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2592
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2593
if test "${ac_cv_prog_cc_g+set}" = set; then
2594
echo $ECHO_N "(cached) $ECHO_C" >&6
2596
cat >conftest.$ac_ext <<_ACEOF
2599
cat confdefs.h >>conftest.$ac_ext
2600
cat >>conftest.$ac_ext <<_ACEOF
2601
/* end confdefs.h. */
2611
rm -f conftest.$ac_objext
2612
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613
(eval $ac_compile) 2>conftest.er1
2615
grep -v '^ *+' conftest.er1 >conftest.err
2617
cat conftest.err >&5
2618
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619
(exit $ac_status); } &&
2620
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2621
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625
(exit $ac_status); }; } &&
2626
{ ac_try='test -s conftest.$ac_objext'
2627
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631
(exit $ac_status); }; }; then
2634
echo "$as_me: failed program was:" >&5
2635
sed 's/^/| /' conftest.$ac_ext >&5
2639
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2641
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2642
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2643
if test "$ac_test_CFLAGS" = set; then
2644
CFLAGS=$ac_save_CFLAGS
2645
elif test $ac_cv_prog_cc_g = yes; then
2646
if test "$GCC" = yes; then
2652
if test "$GCC" = yes; then
2658
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2659
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2660
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2661
echo $ECHO_N "(cached) $ECHO_C" >&6
2663
ac_cv_prog_cc_stdc=no
2665
cat >conftest.$ac_ext <<_ACEOF
2668
cat confdefs.h >>conftest.$ac_ext
2669
cat >>conftest.$ac_ext <<_ACEOF
2670
/* end confdefs.h. */
2673
#include <sys/types.h>
2674
#include <sys/stat.h>
2675
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2676
struct buf { int x; };
2677
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2678
static char *e (p, i)
2684
static char *f (char * (*g) (char **, int), char **p, ...)
2689
s = g (p, va_arg (v,int));
2694
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2695
function prototypes and stuff, but not '\xHH' hex character constants.
2696
These don't provoke an error unfortunately, instead are silently treated
2697
as 'x'. The following induces an error, until -std1 is added to get
2698
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2699
array size at least. It's necessary to write '\x00'==0 to get something
2700
that's true only with -std1. */
2701
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2703
int test (int i, double x);
2704
struct s1 {int (*f) (int a);};
2705
struct s2 {int (*f) (double a);};
2706
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2712
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2717
# Don't try gcc -ansi; that turns off useful extensions and
2718
# breaks some systems' header files.
2719
# AIX -qlanglvl=ansi
2720
# Ultrix and OSF/1 -std1
2721
# HP-UX 10.20 and later -Ae
2722
# HP-UX older versions -Aa -D_HPUX_SOURCE
2723
# SVR4 -Xc -D__EXTENSIONS__
2724
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2726
CC="$ac_save_CC $ac_arg"
2727
rm -f conftest.$ac_objext
2728
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729
(eval $ac_compile) 2>conftest.er1
2731
grep -v '^ *+' conftest.er1 >conftest.err
2733
cat conftest.err >&5
2734
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735
(exit $ac_status); } &&
2736
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2737
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741
(exit $ac_status); }; } &&
2742
{ ac_try='test -s conftest.$ac_objext'
2743
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747
(exit $ac_status); }; }; then
2748
ac_cv_prog_cc_stdc=$ac_arg
2751
echo "$as_me: failed program was:" >&5
2752
sed 's/^/| /' conftest.$ac_ext >&5
2755
rm -f conftest.err conftest.$ac_objext
2757
rm -f conftest.$ac_ext conftest.$ac_objext
2762
case "x$ac_cv_prog_cc_stdc" in
2764
echo "$as_me:$LINENO: result: none needed" >&5
2765
echo "${ECHO_T}none needed" >&6 ;;
2767
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2768
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2769
CC="$CC $ac_cv_prog_cc_stdc" ;;
2772
# Some people use a C++ compiler to compile C. Since we use `exit',
2773
# in C++ we need to declare it. In case someone uses the same compiler
2774
# for both compiling C and C++ we need to have the C++ compiler decide
2775
# the declaration of exit, since it's the most demanding environment.
2776
cat >conftest.$ac_ext <<_ACEOF
2781
rm -f conftest.$ac_objext
2782
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2783
(eval $ac_compile) 2>conftest.er1
2785
grep -v '^ *+' conftest.er1 >conftest.err
2787
cat conftest.err >&5
2788
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789
(exit $ac_status); } &&
2790
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2791
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795
(exit $ac_status); }; } &&
2796
{ ac_try='test -s conftest.$ac_objext'
2797
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801
(exit $ac_status); }; }; then
2802
for ac_declaration in \
2804
'extern "C" void std::exit (int) throw (); using std::exit;' \
2805
'extern "C" void std::exit (int); using std::exit;' \
2806
'extern "C" void exit (int) throw ();' \
2807
'extern "C" void exit (int);' \
2810
cat >conftest.$ac_ext <<_ACEOF
2813
cat confdefs.h >>conftest.$ac_ext
2814
cat >>conftest.$ac_ext <<_ACEOF
2815
/* end confdefs.h. */
2826
rm -f conftest.$ac_objext
2827
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2828
(eval $ac_compile) 2>conftest.er1
2830
grep -v '^ *+' conftest.er1 >conftest.err
2832
cat conftest.err >&5
2833
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834
(exit $ac_status); } &&
2835
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2836
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840
(exit $ac_status); }; } &&
2841
{ ac_try='test -s conftest.$ac_objext'
2842
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846
(exit $ac_status); }; }; then
2849
echo "$as_me: failed program was:" >&5
2850
sed 's/^/| /' conftest.$ac_ext >&5
2854
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2855
cat >conftest.$ac_ext <<_ACEOF
2858
cat confdefs.h >>conftest.$ac_ext
2859
cat >>conftest.$ac_ext <<_ACEOF
2860
/* end confdefs.h. */
2870
rm -f conftest.$ac_objext
2871
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2872
(eval $ac_compile) 2>conftest.er1
2874
grep -v '^ *+' conftest.er1 >conftest.err
2876
cat conftest.err >&5
2877
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878
(exit $ac_status); } &&
2879
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2880
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884
(exit $ac_status); }; } &&
2885
{ ac_try='test -s conftest.$ac_objext'
2886
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890
(exit $ac_status); }; }; then
2893
echo "$as_me: failed program was:" >&5
2894
sed 's/^/| /' conftest.$ac_ext >&5
2897
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2900
if test -n "$ac_declaration"; then
2901
echo '#ifdef __cplusplus' >>confdefs.h
2902
echo $ac_declaration >>confdefs.h
2903
echo '#endif' >>confdefs.h
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
2913
ac_cpp='$CPP $CPPFLAGS'
2914
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2915
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2916
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2917
DEPDIR="${am__leading_dot}deps"
2919
ac_config_commands="$ac_config_commands depfiles"
2922
am_make=${MAKE-make}
2923
cat > confinc << 'END'
2928
# If we don't find an include directive, just comment out the code.
2929
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2930
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2934
# First try GNU make style include.
2935
echo "include confinc" > confmf
2936
# We grep out `Entering directory' and `Leaving directory'
2937
# messages which can occur if `w' ends up in MAKEFLAGS.
2938
# In particular we don't look at `^make:' because GNU make might
2939
# be invoked under some other name (usually "gmake"), in which
2940
# case it prints its new name instead of `make'.
2941
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2946
# Now try BSD make style include.
2947
if test "$am__include" = "#"; then
2948
echo '.include "confinc"' > confmf
2949
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2950
am__include=.include
2957
echo "$as_me:$LINENO: result: $_am_result" >&5
2958
echo "${ECHO_T}$_am_result" >&6
2959
rm -f confinc confmf
2961
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2962
if test "${enable_dependency_tracking+set}" = set; then
2963
enableval="$enable_dependency_tracking"
2966
if test "x$enable_dependency_tracking" != xno; then
2967
am_depcomp="$ac_aux_dir/depcomp"
2972
if test "x$enable_dependency_tracking" != xno; then
2983
depcc="$CC" am_compiler_list=
2985
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2986
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2987
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2988
echo $ECHO_N "(cached) $ECHO_C" >&6
2990
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2991
# We make a subdir and do the tests there. Otherwise we can end up
2992
# making bogus files that we don't know about and never remove. For
2993
# instance it was reported that on HP-UX the gcc test will end up
2994
# making a dummy file named `D' -- because `-MD' means `put the output
2997
# Copy depcomp to subdir because otherwise we won't find it if we're
2998
# using a relative directory.
2999
cp "$am_depcomp" conftest.dir
3001
# We will build objects and dependencies in a subdirectory because
3002
# it helps to detect inapplicable dependency modes. For instance
3003
# both Tru64's cc and ICC support -MD to output dependencies as a
3004
# side effect of compilation, but ICC will put the dependencies in
3005
# the current directory while Tru64 will put them in the object
3009
am_cv_CC_dependencies_compiler_type=none
3010
if test "$am_compiler_list" = ""; then
3011
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3013
for depmode in $am_compiler_list; do
3014
# Setup a source with many dependencies, because some compilers
3015
# like to wrap large dependency lists on column 80 (with \), and
3016
# we should not choose a depcomp mode which is confused by this.
3018
# We need to recreate these files for each test, as the compiler may
3019
# overwrite some of them when testing with obscure command lines.
3020
# This happens at least with the AIX C compiler.
3022
for i in 1 2 3 4 5 6; do
3023
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3024
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3025
# Solaris 8's {/usr,}/bin/sh.
3026
touch sub/conftst$i.h
3028
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3032
# after this tag, mechanisms are not by side-effect, so they'll
3033
# only be used when explicitly requested
3034
if test "x$enable_dependency_tracking" = xyes; then
3042
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3043
# mode. It turns out that the SunPro C++ compiler does not properly
3044
# handle `-M -o', and we need to detect this.
3045
if depmode=$depmode \
3046
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3047
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3048
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3049
>/dev/null 2>conftest.err &&
3050
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3051
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3052
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3053
# icc doesn't choke on unknown options, it will just issue warnings
3054
# or remarks (even with -Werror). So we grep stderr for any message
3055
# that says an option was ignored or not supported.
3056
# When given -MP, icc 7.0 and 7.1 complain thusly:
3057
# icc: Command line warning: ignoring option '-M'; no argument required
3058
# The diagnosis changed in icc 8.0:
3059
# icc: Command line remark: option '-MP' not supported
3060
if (grep 'ignoring option' conftest.err ||
3061
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3062
am_cv_CC_dependencies_compiler_type=$depmode
3071
am_cv_CC_dependencies_compiler_type=none
3075
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3076
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3077
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3082
test "x$enable_dependency_tracking" != xno \
3083
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3085
am__fastdepCC_FALSE='#'
3087
am__fastdepCC_TRUE='#'
3088
am__fastdepCC_FALSE=
3092
# Check whether --enable-shared or --disable-shared was given.
3093
if test "${enable_shared+set}" = set; then
3094
enableval="$enable_shared"
3095
p=${PACKAGE-default}
3097
yes) enable_shared=yes ;;
3098
no) enable_shared=no ;;
3101
# Look at the argument we got. We use all the common list separators.
3102
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3103
for pkg in $enableval; do
3105
if test "X$pkg" = "X$p"; then
3116
# Check whether --enable-static or --disable-static was given.
3117
if test "${enable_static+set}" = set; then
3118
enableval="$enable_static"
3119
p=${PACKAGE-default}
3121
yes) enable_static=yes ;;
3122
no) enable_static=no ;;
3125
# Look at the argument we got. We use all the common list separators.
3126
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3127
for pkg in $enableval; do
3129
if test "X$pkg" = "X$p"; then
3140
# Check whether --enable-fast-install or --disable-fast-install was given.
3141
if test "${enable_fast_install+set}" = set; then
3142
enableval="$enable_fast_install"
3143
p=${PACKAGE-default}
3145
yes) enable_fast_install=yes ;;
3146
no) enable_fast_install=no ;;
3148
enable_fast_install=no
3149
# Look at the argument we got. We use all the common list separators.
3150
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3151
for pkg in $enableval; do
3153
if test "X$pkg" = "X$p"; then
3154
enable_fast_install=yes
3161
enable_fast_install=yes
3164
# Make sure we can run config.sub.
3165
$ac_config_sub sun4 >/dev/null 2>&1 ||
3166
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3167
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3168
{ (exit 1); exit 1; }; }
3170
echo "$as_me:$LINENO: checking build system type" >&5
3171
echo $ECHO_N "checking build system type... $ECHO_C" >&6
3172
if test "${ac_cv_build+set}" = set; then
3173
echo $ECHO_N "(cached) $ECHO_C" >&6
3175
ac_cv_build_alias=$build_alias
3176
test -z "$ac_cv_build_alias" &&
3177
ac_cv_build_alias=`$ac_config_guess`
3178
test -z "$ac_cv_build_alias" &&
3179
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3180
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3181
{ (exit 1); exit 1; }; }
3182
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3183
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3184
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3185
{ (exit 1); exit 1; }; }
3188
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3189
echo "${ECHO_T}$ac_cv_build" >&6
3191
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3192
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3193
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3196
echo "$as_me:$LINENO: checking host system type" >&5
3197
echo $ECHO_N "checking host system type... $ECHO_C" >&6
3198
if test "${ac_cv_host+set}" = set; then
3199
echo $ECHO_N "(cached) $ECHO_C" >&6
3201
ac_cv_host_alias=$host_alias
3202
test -z "$ac_cv_host_alias" &&
3203
ac_cv_host_alias=$ac_cv_build_alias
3204
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3205
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3206
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3207
{ (exit 1); exit 1; }; }
3210
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3211
echo "${ECHO_T}$ac_cv_host" >&6
3213
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3214
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3215
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3218
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3219
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3220
if test "${lt_cv_path_SED+set}" = set; then
3221
echo $ECHO_N "(cached) $ECHO_C" >&6
3223
# Loop through the user's path and test for sed and gsed.
3224
# Then use that list of sed's as ones to test for truncation.
3225
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229
test -z "$as_dir" && as_dir=.
3230
for lt_ac_prog in sed gsed; do
3231
for ac_exec_ext in '' $ac_executable_extensions; do
3232
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3233
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3240
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3241
# along with /bin/sed that truncates output.
3242
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3243
test ! -f $lt_ac_sed && break
3244
cat /dev/null > conftest.in
3246
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3247
# Check for GNU sed and select it if it is found.
3248
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3249
lt_cv_path_SED=$lt_ac_sed
3253
cat conftest.in conftest.in >conftest.tmp
3254
mv conftest.tmp conftest.in
3255
cp conftest.in conftest.nl
3257
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3258
cmp -s conftest.out conftest.nl || break
3259
# 10000 chars as input seems more than enough
3260
test $lt_ac_count -gt 10 && break
3261
lt_ac_count=`expr $lt_ac_count + 1`
3262
if test $lt_ac_count -gt $lt_ac_max; then
3263
lt_ac_max=$lt_ac_count
3264
lt_cv_path_SED=$lt_ac_sed
3272
echo "$as_me:$LINENO: result: $SED" >&5
3273
echo "${ECHO_T}$SED" >&6
3275
echo "$as_me:$LINENO: checking for egrep" >&5
3276
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3277
if test "${ac_cv_prog_egrep+set}" = set; then
3278
echo $ECHO_N "(cached) $ECHO_C" >&6
3280
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3281
then ac_cv_prog_egrep='grep -E'
3282
else ac_cv_prog_egrep='egrep'
3285
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3286
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3287
EGREP=$ac_cv_prog_egrep
3291
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3292
if test "${with_gnu_ld+set}" = set; then
3293
withval="$with_gnu_ld"
3294
test "$withval" = no || with_gnu_ld=yes
3299
if test "$GCC" = yes; then
3300
# Check if gcc -print-prog-name=ld gives a path.
3301
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3302
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3305
# gcc leaves a trailing carriage return which upsets mingw
3306
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3308
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3311
# Accept absolute paths.
3313
re_direlt='/[^/][^/]*/\.\./'
3314
# Canonicalize the pathname of ld
3315
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3316
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3317
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3319
test -z "$LD" && LD="$ac_prog"
3322
# If it fails, then pretend we aren't using GCC.
3326
# If it is relative, then search for the first ld in PATH.
3330
elif test "$with_gnu_ld" = yes; then
3331
echo "$as_me:$LINENO: checking for GNU ld" >&5
3332
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3334
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3335
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3337
if test "${lt_cv_path_LD+set}" = set; then
3338
echo $ECHO_N "(cached) $ECHO_C" >&6
3340
if test -z "$LD"; then
3341
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3342
for ac_dir in $PATH; do
3344
test -z "$ac_dir" && ac_dir=.
3345
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3346
lt_cv_path_LD="$ac_dir/$ac_prog"
3347
# Check to see if the program is GNU ld. I'd rather use --version,
3348
# but apparently some GNU ld's only accept -v.
3349
# Break only if it was the GNU/non-GNU ld that we prefer.
3350
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3351
*GNU* | *'with BFD'*)
3352
test "$with_gnu_ld" != no && break
3355
test "$with_gnu_ld" != yes && break
3362
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3367
if test -n "$LD"; then
3368
echo "$as_me:$LINENO: result: $LD" >&5
3369
echo "${ECHO_T}$LD" >&6
3371
echo "$as_me:$LINENO: result: no" >&5
3372
echo "${ECHO_T}no" >&6
3374
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3375
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3376
{ (exit 1); exit 1; }; }
3377
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3378
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3379
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3380
echo $ECHO_N "(cached) $ECHO_C" >&6
3382
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
3383
case `$LD -v 2>&1 </dev/null` in
3384
*GNU* | *'with BFD'*)
3385
lt_cv_prog_gnu_ld=yes
3388
lt_cv_prog_gnu_ld=no
3392
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3393
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3394
with_gnu_ld=$lt_cv_prog_gnu_ld
3397
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3398
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3399
if test "${lt_cv_ld_reload_flag+set}" = set; then
3400
echo $ECHO_N "(cached) $ECHO_C" >&6
3402
lt_cv_ld_reload_flag='-r'
3404
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3405
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3406
reload_flag=$lt_cv_ld_reload_flag
3407
case $reload_flag in
3409
*) reload_flag=" $reload_flag" ;;
3411
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3413
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3414
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3415
if test "${lt_cv_path_NM+set}" = set; then
3416
echo $ECHO_N "(cached) $ECHO_C" >&6
3418
if test -n "$NM"; then
3419
# Let the user override the test.
3422
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3423
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3425
test -z "$ac_dir" && ac_dir=.
3426
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3427
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3428
# Check to see if the nm accepts a BSD-compat flag.
3429
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3430
# nm: unknown option "B" ignored
3431
# Tru64's nm complains that /dev/null is an invalid object file
3432
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3433
*/dev/null* | *'Invalid file or object type'*)
3434
lt_cv_path_NM="$tmp_nm -B"
3438
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3440
lt_cv_path_NM="$tmp_nm -p"
3444
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3445
continue # so that we can try to find one that supports BSD flags
3452
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3455
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3456
echo "${ECHO_T}$lt_cv_path_NM" >&6
3459
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3460
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3462
if test "$LN_S" = "ln -s"; then
3463
echo "$as_me:$LINENO: result: yes" >&5
3464
echo "${ECHO_T}yes" >&6
3466
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3467
echo "${ECHO_T}no, using $LN_S" >&6
3470
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3471
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3472
if test "${lt_cv_deplibs_check_method+set}" = set; then
3473
echo $ECHO_N "(cached) $ECHO_C" >&6
3475
lt_cv_file_magic_cmd='$MAGIC_CMD'
3476
lt_cv_file_magic_test_file=
3477
lt_cv_deplibs_check_method='unknown'
3478
# Need to set the preceding variable on all platforms that support
3479
# interlibrary dependencies.
3480
# 'none' -- dependencies not supported.
3481
# `unknown' -- same as none, but documents that we really don't know.
3482
# 'pass_all' -- all dependencies passed with no checks.
3483
# 'test_compile' -- check by making test program.
3484
# 'file_magic [[regex]]' -- check by looking for files in library path
3485
# which responds to the $file_magic_cmd with a given extended regex.
3486
# If you have `file' or equivalent on your system and you're not sure
3487
# whether `pass_all' will *always* work, you probably want this one.
3491
lt_cv_deplibs_check_method=pass_all
3495
lt_cv_deplibs_check_method=pass_all
3499
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3500
lt_cv_file_magic_cmd='/usr/bin/file -L'
3501
lt_cv_file_magic_test_file=/shlib/libc.so
3505
# func_win32_libid is a shell function defined in ltmain.sh
3506
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3507
lt_cv_file_magic_cmd='func_win32_libid'
3511
# Base MSYS/MinGW do not provide the 'file' command needed by
3512
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
3513
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3514
lt_cv_file_magic_cmd='$OBJDUMP -f'
3517
darwin* | rhapsody*)
3518
lt_cv_deplibs_check_method=pass_all
3521
freebsd* | kfreebsd*-gnu)
3522
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3525
# Not sure whether the presence of OpenBSD here was a mistake.
3526
# Let's accept both of them until this is cleared up.
3527
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3528
lt_cv_file_magic_cmd=/usr/bin/file
3529
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3533
lt_cv_deplibs_check_method=pass_all
3538
lt_cv_deplibs_check_method=pass_all
3541
hpux10.20* | hpux11*)
3542
lt_cv_file_magic_cmd=/usr/bin/file
3545
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3546
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3549
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]'
3550
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3553
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3554
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3559
irix5* | irix6* | nonstopux*)
3561
*-32|*"-32 ") libmagic=32-bit;;
3562
*-n32|*"-n32 ") libmagic=N32;;
3563
*-64|*"-64 ") libmagic=64-bit;;
3564
*) libmagic=never-match;;
3566
lt_cv_deplibs_check_method=pass_all
3569
# This must be Linux ELF.
3571
lt_cv_deplibs_check_method=pass_all
3574
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3575
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3576
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3578
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3583
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3584
lt_cv_file_magic_cmd=/usr/bin/file
3585
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3589
lt_cv_deplibs_check_method=unknown
3593
lt_cv_file_magic_cmd=/usr/bin/file
3594
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3595
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3596
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3598
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3602
osf3* | osf4* | osf5*)
3603
lt_cv_deplibs_check_method=pass_all
3607
lt_cv_deplibs_check_method=pass_all
3611
lt_cv_deplibs_check_method=pass_all
3614
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3615
case $host_vendor in
3617
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]'
3618
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3621
lt_cv_deplibs_check_method=pass_all
3624
lt_cv_file_magic_cmd='/bin/file'
3625
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3628
lt_cv_file_magic_cmd='/bin/file'
3629
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3630
lt_cv_file_magic_test_file=/lib/libc.so
3633
lt_cv_deplibs_check_method=pass_all
3638
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3639
lt_cv_deplibs_check_method=pass_all
3644
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3645
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3646
file_magic_cmd=$lt_cv_file_magic_cmd
3647
deplibs_check_method=$lt_cv_deplibs_check_method
3648
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3653
# If no C compiler was specified, use CC.
3656
# Allow CC to be a program name with arguments.
3660
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3661
if test "${enable_libtool_lock+set}" = set; then
3662
enableval="$enable_libtool_lock"
3665
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3667
# Some flags need to be propagated to the compiler or linker for good
3671
# Find out which ABI we are using.
3672
echo 'int i;' > conftest.$ac_ext
3673
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3674
(eval $ac_compile) 2>&5
3676
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677
(exit $ac_status); }; then
3678
case `/usr/bin/file conftest.$ac_objext` in
3690
# Find out which ABI we are using.
3691
echo '#line 3691 "configure"' > conftest.$ac_ext
3692
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3693
(eval $ac_compile) 2>&5
3695
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696
(exit $ac_status); }; then
3697
if test "$lt_cv_prog_gnu_ld" = yes; then
3698
case `/usr/bin/file conftest.$ac_objext` in
3700
LD="${LD-ld} -melf32bsmip"
3703
LD="${LD-ld} -melf32bmipn32"
3706
LD="${LD-ld} -melf64bmip"
3710
case `/usr/bin/file conftest.$ac_objext` in
3726
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3727
# Find out which ABI we are using.
3728
echo 'int i;' > conftest.$ac_ext
3729
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3730
(eval $ac_compile) 2>&5
3732
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733
(exit $ac_status); }; then
3734
case "`/usr/bin/file conftest.o`" in
3738
LD="${LD-ld} -m elf_i386"
3740
ppc64-*linux*|powerpc64-*linux*)
3741
LD="${LD-ld} -m elf32ppclinux"
3744
LD="${LD-ld} -m elf_s390"
3747
LD="${LD-ld} -m elf32_sparc"
3754
LD="${LD-ld} -m elf_x86_64"
3756
ppc*-*linux*|powerpc*-*linux*)
3757
LD="${LD-ld} -m elf64ppc"
3760
LD="${LD-ld} -m elf64_s390"
3763
LD="${LD-ld} -m elf64_sparc"
3773
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
3774
SAVE_CFLAGS="$CFLAGS"
3775
CFLAGS="$CFLAGS -belf"
3776
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3777
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3778
if test "${lt_cv_cc_needs_belf+set}" = set; then
3779
echo $ECHO_N "(cached) $ECHO_C" >&6
3782
ac_cpp='$CPP $CPPFLAGS'
3783
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3784
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3785
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3787
cat >conftest.$ac_ext <<_ACEOF
3790
cat confdefs.h >>conftest.$ac_ext
3791
cat >>conftest.$ac_ext <<_ACEOF
3792
/* end confdefs.h. */
3802
rm -f conftest.$ac_objext conftest$ac_exeext
3803
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3804
(eval $ac_link) 2>conftest.er1
3806
grep -v '^ *+' conftest.er1 >conftest.err
3808
cat conftest.err >&5
3809
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810
(exit $ac_status); } &&
3811
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3812
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816
(exit $ac_status); }; } &&
3817
{ ac_try='test -s conftest$ac_exeext'
3818
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822
(exit $ac_status); }; }; then
3823
lt_cv_cc_needs_belf=yes
3825
echo "$as_me: failed program was:" >&5
3826
sed 's/^/| /' conftest.$ac_ext >&5
3828
lt_cv_cc_needs_belf=no
3830
rm -f conftest.err conftest.$ac_objext \
3831
conftest$ac_exeext conftest.$ac_ext
3833
ac_cpp='$CPP $CPPFLAGS'
3834
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3835
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3836
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3839
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3840
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3841
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3842
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3843
CFLAGS="$SAVE_CFLAGS"
3849
need_locks="$enable_libtool_lock"
3853
ac_cpp='$CPP $CPPFLAGS'
3854
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3857
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3858
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3859
# On Suns, sometimes $CPP names a directory.
3860
if test -n "$CPP" && test -d "$CPP"; then
3863
if test -z "$CPP"; then
3864
if test "${ac_cv_prog_CPP+set}" = set; then
3865
echo $ECHO_N "(cached) $ECHO_C" >&6
3867
# Double quotes because CPP needs to be expanded
3868
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3871
for ac_c_preproc_warn_flag in '' yes
3873
# Use a header file that comes with gcc, so configuring glibc
3874
# with a fresh cross-compiler works.
3875
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3876
# <limits.h> exists even on freestanding compilers.
3877
# On the NeXT, cc -E runs the code through the compiler's parser,
3878
# not just through cpp. "Syntax error" is here to catch this case.
3879
cat >conftest.$ac_ext <<_ACEOF
3882
cat confdefs.h >>conftest.$ac_ext
3883
cat >>conftest.$ac_ext <<_ACEOF
3884
/* end confdefs.h. */
3886
# include <limits.h>
3888
# include <assert.h>
3892
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3893
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3895
grep -v '^ *+' conftest.er1 >conftest.err
3897
cat conftest.err >&5
3898
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899
(exit $ac_status); } >/dev/null; then
3900
if test -s conftest.err; then
3901
ac_cpp_err=$ac_c_preproc_warn_flag
3902
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3909
if test -z "$ac_cpp_err"; then
3912
echo "$as_me: failed program was:" >&5
3913
sed 's/^/| /' conftest.$ac_ext >&5
3915
# Broken: fails on valid input.
3918
rm -f conftest.err conftest.$ac_ext
3920
# OK, works on sane cases. Now check whether non-existent headers
3921
# can be detected and how.
3922
cat >conftest.$ac_ext <<_ACEOF
3925
cat confdefs.h >>conftest.$ac_ext
3926
cat >>conftest.$ac_ext <<_ACEOF
3927
/* end confdefs.h. */
3928
#include <ac_nonexistent.h>
3930
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3931
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3933
grep -v '^ *+' conftest.er1 >conftest.err
3935
cat conftest.err >&5
3936
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937
(exit $ac_status); } >/dev/null; then
3938
if test -s conftest.err; then
3939
ac_cpp_err=$ac_c_preproc_warn_flag
3940
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3947
if test -z "$ac_cpp_err"; then
3948
# Broken: success on invalid input.
3951
echo "$as_me: failed program was:" >&5
3952
sed 's/^/| /' conftest.$ac_ext >&5
3954
# Passes both tests.
3958
rm -f conftest.err conftest.$ac_ext
3961
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3962
rm -f conftest.err conftest.$ac_ext
3963
if $ac_preproc_ok; then
3975
echo "$as_me:$LINENO: result: $CPP" >&5
3976
echo "${ECHO_T}$CPP" >&6
3978
for ac_c_preproc_warn_flag in '' yes
3980
# Use a header file that comes with gcc, so configuring glibc
3981
# with a fresh cross-compiler works.
3982
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3983
# <limits.h> exists even on freestanding compilers.
3984
# On the NeXT, cc -E runs the code through the compiler's parser,
3985
# not just through cpp. "Syntax error" is here to catch this case.
3986
cat >conftest.$ac_ext <<_ACEOF
3989
cat confdefs.h >>conftest.$ac_ext
3990
cat >>conftest.$ac_ext <<_ACEOF
3991
/* end confdefs.h. */
3993
# include <limits.h>
3995
# include <assert.h>
3999
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4000
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4002
grep -v '^ *+' conftest.er1 >conftest.err
4004
cat conftest.err >&5
4005
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006
(exit $ac_status); } >/dev/null; then
4007
if test -s conftest.err; then
4008
ac_cpp_err=$ac_c_preproc_warn_flag
4009
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4016
if test -z "$ac_cpp_err"; then
4019
echo "$as_me: failed program was:" >&5
4020
sed 's/^/| /' conftest.$ac_ext >&5
4022
# Broken: fails on valid input.
4025
rm -f conftest.err conftest.$ac_ext
4027
# OK, works on sane cases. Now check whether non-existent headers
4028
# can be detected and how.
4029
cat >conftest.$ac_ext <<_ACEOF
4032
cat confdefs.h >>conftest.$ac_ext
4033
cat >>conftest.$ac_ext <<_ACEOF
4034
/* end confdefs.h. */
4035
#include <ac_nonexistent.h>
4037
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4038
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4040
grep -v '^ *+' conftest.er1 >conftest.err
4042
cat conftest.err >&5
4043
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044
(exit $ac_status); } >/dev/null; then
4045
if test -s conftest.err; then
4046
ac_cpp_err=$ac_c_preproc_warn_flag
4047
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4054
if test -z "$ac_cpp_err"; then
4055
# Broken: success on invalid input.
4058
echo "$as_me: failed program was:" >&5
4059
sed 's/^/| /' conftest.$ac_ext >&5
4061
# Passes both tests.
4065
rm -f conftest.err conftest.$ac_ext
4068
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4069
rm -f conftest.err conftest.$ac_ext
4070
if $ac_preproc_ok; then
4073
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4074
See \`config.log' for more details." >&5
4075
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4076
See \`config.log' for more details." >&2;}
4077
{ (exit 1); exit 1; }; }
4081
ac_cpp='$CPP $CPPFLAGS'
4082
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4087
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4088
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4089
if test "${ac_cv_header_stdc+set}" = set; then
4090
echo $ECHO_N "(cached) $ECHO_C" >&6
4092
cat >conftest.$ac_ext <<_ACEOF
4095
cat confdefs.h >>conftest.$ac_ext
4096
cat >>conftest.$ac_ext <<_ACEOF
4097
/* end confdefs.h. */
4111
rm -f conftest.$ac_objext
4112
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4113
(eval $ac_compile) 2>conftest.er1
4115
grep -v '^ *+' conftest.er1 >conftest.err
4117
cat conftest.err >&5
4118
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119
(exit $ac_status); } &&
4120
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4121
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125
(exit $ac_status); }; } &&
4126
{ ac_try='test -s conftest.$ac_objext'
4127
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4130
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131
(exit $ac_status); }; }; then
4132
ac_cv_header_stdc=yes
4134
echo "$as_me: failed program was:" >&5
4135
sed 's/^/| /' conftest.$ac_ext >&5
4137
ac_cv_header_stdc=no
4139
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4141
if test $ac_cv_header_stdc = yes; then
4142
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4143
cat >conftest.$ac_ext <<_ACEOF
4146
cat confdefs.h >>conftest.$ac_ext
4147
cat >>conftest.$ac_ext <<_ACEOF
4148
/* end confdefs.h. */
4152
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4153
$EGREP "memchr" >/dev/null 2>&1; then
4156
ac_cv_header_stdc=no
4162
if test $ac_cv_header_stdc = yes; then
4163
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4164
cat >conftest.$ac_ext <<_ACEOF
4167
cat confdefs.h >>conftest.$ac_ext
4168
cat >>conftest.$ac_ext <<_ACEOF
4169
/* end confdefs.h. */
4173
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4174
$EGREP "free" >/dev/null 2>&1; then
4177
ac_cv_header_stdc=no
4183
if test $ac_cv_header_stdc = yes; then
4184
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4185
if test "$cross_compiling" = yes; then
4188
cat >conftest.$ac_ext <<_ACEOF
4191
cat confdefs.h >>conftest.$ac_ext
4192
cat >>conftest.$ac_ext <<_ACEOF
4193
/* end confdefs.h. */
4195
#if ((' ' & 0x0FF) == 0x020)
4196
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4197
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4199
# define ISLOWER(c) \
4200
(('a' <= (c) && (c) <= 'i') \
4201
|| ('j' <= (c) && (c) <= 'r') \
4202
|| ('s' <= (c) && (c) <= 'z'))
4203
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4206
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4211
for (i = 0; i < 256; i++)
4212
if (XOR (islower (i), ISLOWER (i))
4213
|| toupper (i) != TOUPPER (i))
4218
rm -f conftest$ac_exeext
4219
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4220
(eval $ac_link) 2>&5
4222
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4224
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228
(exit $ac_status); }; }; then
4231
echo "$as_me: program exited with status $ac_status" >&5
4232
echo "$as_me: failed program was:" >&5
4233
sed 's/^/| /' conftest.$ac_ext >&5
4236
ac_cv_header_stdc=no
4238
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4242
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4243
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4244
if test $ac_cv_header_stdc = yes; then
4246
cat >>confdefs.h <<\_ACEOF
4247
#define STDC_HEADERS 1
4252
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4262
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4263
inttypes.h stdint.h unistd.h
4265
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4266
echo "$as_me:$LINENO: checking for $ac_header" >&5
4267
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4268
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4269
echo $ECHO_N "(cached) $ECHO_C" >&6
4271
cat >conftest.$ac_ext <<_ACEOF
4274
cat confdefs.h >>conftest.$ac_ext
4275
cat >>conftest.$ac_ext <<_ACEOF
4276
/* end confdefs.h. */
4277
$ac_includes_default
4279
#include <$ac_header>
4281
rm -f conftest.$ac_objext
4282
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4283
(eval $ac_compile) 2>conftest.er1
4285
grep -v '^ *+' conftest.er1 >conftest.err
4287
cat conftest.err >&5
4288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289
(exit $ac_status); } &&
4290
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4291
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295
(exit $ac_status); }; } &&
4296
{ ac_try='test -s conftest.$ac_objext'
4297
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301
(exit $ac_status); }; }; then
4302
eval "$as_ac_Header=yes"
4304
echo "$as_me: failed program was:" >&5
4305
sed 's/^/| /' conftest.$ac_ext >&5
4307
eval "$as_ac_Header=no"
4309
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4311
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4312
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4313
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4314
cat >>confdefs.h <<_ACEOF
4315
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4324
for ac_header in dlfcn.h
4326
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4327
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4328
echo "$as_me:$LINENO: checking for $ac_header" >&5
4329
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4330
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4331
echo $ECHO_N "(cached) $ECHO_C" >&6
4333
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4334
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4336
# Is the header compilable?
4337
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4338
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4339
cat >conftest.$ac_ext <<_ACEOF
4342
cat confdefs.h >>conftest.$ac_ext
4343
cat >>conftest.$ac_ext <<_ACEOF
4344
/* end confdefs.h. */
4345
$ac_includes_default
4346
#include <$ac_header>
4348
rm -f conftest.$ac_objext
4349
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4350
(eval $ac_compile) 2>conftest.er1
4352
grep -v '^ *+' conftest.er1 >conftest.err
4354
cat conftest.err >&5
4355
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356
(exit $ac_status); } &&
4357
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4358
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362
(exit $ac_status); }; } &&
4363
{ ac_try='test -s conftest.$ac_objext'
4364
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368
(exit $ac_status); }; }; then
4369
ac_header_compiler=yes
4371
echo "$as_me: failed program was:" >&5
4372
sed 's/^/| /' conftest.$ac_ext >&5
4374
ac_header_compiler=no
4376
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4377
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4378
echo "${ECHO_T}$ac_header_compiler" >&6
4380
# Is the header present?
4381
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4382
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4383
cat >conftest.$ac_ext <<_ACEOF
4386
cat confdefs.h >>conftest.$ac_ext
4387
cat >>conftest.$ac_ext <<_ACEOF
4388
/* end confdefs.h. */
4389
#include <$ac_header>
4391
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4392
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4394
grep -v '^ *+' conftest.er1 >conftest.err
4396
cat conftest.err >&5
4397
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398
(exit $ac_status); } >/dev/null; then
4399
if test -s conftest.err; then
4400
ac_cpp_err=$ac_c_preproc_warn_flag
4401
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4408
if test -z "$ac_cpp_err"; then
4409
ac_header_preproc=yes
4411
echo "$as_me: failed program was:" >&5
4412
sed 's/^/| /' conftest.$ac_ext >&5
4414
ac_header_preproc=no
4416
rm -f conftest.err conftest.$ac_ext
4417
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4418
echo "${ECHO_T}$ac_header_preproc" >&6
4420
# So? What about this header?
4421
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4423
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4424
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4425
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4426
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4427
ac_header_preproc=yes
4430
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4431
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4432
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4433
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4434
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4435
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4436
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4437
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4438
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4439
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4440
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4441
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4444
## ---------------------------------- ##
4445
## Report this to sandmann@redhat.com ##
4446
## ---------------------------------- ##
4449
sed "s/^/$as_me: WARNING: /" >&2
4452
echo "$as_me:$LINENO: checking for $ac_header" >&5
4453
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4454
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4455
echo $ECHO_N "(cached) $ECHO_C" >&6
4457
eval "$as_ac_Header=\$ac_header_preproc"
4459
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4460
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4463
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4464
cat >>confdefs.h <<_ACEOF
4465
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4473
ac_cpp='$CXXCPP $CPPFLAGS'
4474
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4475
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4476
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4477
if test -n "$ac_tool_prefix"; then
4478
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4480
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4481
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4482
echo "$as_me:$LINENO: checking for $ac_word" >&5
4483
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4484
if test "${ac_cv_prog_CXX+set}" = set; then
4485
echo $ECHO_N "(cached) $ECHO_C" >&6
4487
if test -n "$CXX"; then
4488
ac_cv_prog_CXX="$CXX" # Let the user override the test.
4490
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494
test -z "$as_dir" && as_dir=.
4495
for ac_exec_ext in '' $ac_executable_extensions; do
4496
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4497
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4498
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507
if test -n "$CXX"; then
4508
echo "$as_me:$LINENO: result: $CXX" >&5
4509
echo "${ECHO_T}$CXX" >&6
4511
echo "$as_me:$LINENO: result: no" >&5
4512
echo "${ECHO_T}no" >&6
4515
test -n "$CXX" && break
4518
if test -z "$CXX"; then
4520
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4522
# Extract the first word of "$ac_prog", so it can be a program name with args.
4523
set dummy $ac_prog; ac_word=$2
4524
echo "$as_me:$LINENO: checking for $ac_word" >&5
4525
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4526
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4527
echo $ECHO_N "(cached) $ECHO_C" >&6
4529
if test -n "$ac_ct_CXX"; then
4530
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4532
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536
test -z "$as_dir" && as_dir=.
4537
for ac_exec_ext in '' $ac_executable_extensions; do
4538
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4539
ac_cv_prog_ac_ct_CXX="$ac_prog"
4540
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4548
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4549
if test -n "$ac_ct_CXX"; then
4550
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4551
echo "${ECHO_T}$ac_ct_CXX" >&6
4553
echo "$as_me:$LINENO: result: no" >&5
4554
echo "${ECHO_T}no" >&6
4557
test -n "$ac_ct_CXX" && break
4559
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4565
# Provide some information about the compiler.
4566
echo "$as_me:$LINENO:" \
4567
"checking for C++ compiler version" >&5
4568
ac_compiler=`set X $ac_compile; echo $2`
4569
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4570
(eval $ac_compiler --version </dev/null >&5) 2>&5
4572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573
(exit $ac_status); }
4574
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4575
(eval $ac_compiler -v </dev/null >&5) 2>&5
4577
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578
(exit $ac_status); }
4579
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4580
(eval $ac_compiler -V </dev/null >&5) 2>&5
4582
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583
(exit $ac_status); }
4585
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4586
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4587
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4588
echo $ECHO_N "(cached) $ECHO_C" >&6
4590
cat >conftest.$ac_ext <<_ACEOF
4593
cat confdefs.h >>conftest.$ac_ext
4594
cat >>conftest.$ac_ext <<_ACEOF
4595
/* end confdefs.h. */
4608
rm -f conftest.$ac_objext
4609
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4610
(eval $ac_compile) 2>conftest.er1
4612
grep -v '^ *+' conftest.er1 >conftest.err
4614
cat conftest.err >&5
4615
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616
(exit $ac_status); } &&
4617
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4618
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622
(exit $ac_status); }; } &&
4623
{ ac_try='test -s conftest.$ac_objext'
4624
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628
(exit $ac_status); }; }; then
4631
echo "$as_me: failed program was:" >&5
4632
sed 's/^/| /' conftest.$ac_ext >&5
4636
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4637
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4640
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4641
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4642
GXX=`test $ac_compiler_gnu = yes && echo yes`
4643
ac_test_CXXFLAGS=${CXXFLAGS+set}
4644
ac_save_CXXFLAGS=$CXXFLAGS
4646
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4647
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4648
if test "${ac_cv_prog_cxx_g+set}" = set; then
4649
echo $ECHO_N "(cached) $ECHO_C" >&6
4651
cat >conftest.$ac_ext <<_ACEOF
4654
cat confdefs.h >>conftest.$ac_ext
4655
cat >>conftest.$ac_ext <<_ACEOF
4656
/* end confdefs.h. */
4666
rm -f conftest.$ac_objext
4667
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4668
(eval $ac_compile) 2>conftest.er1
4670
grep -v '^ *+' conftest.er1 >conftest.err
4672
cat conftest.err >&5
4673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674
(exit $ac_status); } &&
4675
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4676
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680
(exit $ac_status); }; } &&
4681
{ ac_try='test -s conftest.$ac_objext'
4682
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686
(exit $ac_status); }; }; then
4687
ac_cv_prog_cxx_g=yes
4689
echo "$as_me: failed program was:" >&5
4690
sed 's/^/| /' conftest.$ac_ext >&5
4694
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4696
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4697
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4698
if test "$ac_test_CXXFLAGS" = set; then
4699
CXXFLAGS=$ac_save_CXXFLAGS
4700
elif test $ac_cv_prog_cxx_g = yes; then
4701
if test "$GXX" = yes; then
4707
if test "$GXX" = yes; then
4713
for ac_declaration in \
4715
'extern "C" void std::exit (int) throw (); using std::exit;' \
4716
'extern "C" void std::exit (int); using std::exit;' \
4717
'extern "C" void exit (int) throw ();' \
4718
'extern "C" void exit (int);' \
4721
cat >conftest.$ac_ext <<_ACEOF
4724
cat confdefs.h >>conftest.$ac_ext
4725
cat >>conftest.$ac_ext <<_ACEOF
4726
/* end confdefs.h. */
4737
rm -f conftest.$ac_objext
4738
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4739
(eval $ac_compile) 2>conftest.er1
4741
grep -v '^ *+' conftest.er1 >conftest.err
4743
cat conftest.err >&5
4744
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745
(exit $ac_status); } &&
4746
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4747
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751
(exit $ac_status); }; } &&
4752
{ ac_try='test -s conftest.$ac_objext'
4753
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757
(exit $ac_status); }; }; then
4760
echo "$as_me: failed program was:" >&5
4761
sed 's/^/| /' conftest.$ac_ext >&5
4765
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4766
cat >conftest.$ac_ext <<_ACEOF
4769
cat confdefs.h >>conftest.$ac_ext
4770
cat >>conftest.$ac_ext <<_ACEOF
4771
/* end confdefs.h. */
4781
rm -f conftest.$ac_objext
4782
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4783
(eval $ac_compile) 2>conftest.er1
4785
grep -v '^ *+' conftest.er1 >conftest.err
4787
cat conftest.err >&5
4788
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789
(exit $ac_status); } &&
4790
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4791
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795
(exit $ac_status); }; } &&
4796
{ ac_try='test -s conftest.$ac_objext'
4797
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801
(exit $ac_status); }; }; then
4804
echo "$as_me: failed program was:" >&5
4805
sed 's/^/| /' conftest.$ac_ext >&5
4808
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4811
if test -n "$ac_declaration"; then
4812
echo '#ifdef __cplusplus' >>confdefs.h
4813
echo $ac_declaration >>confdefs.h
4814
echo '#endif' >>confdefs.h
4818
ac_cpp='$CXXCPP $CPPFLAGS'
4819
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4820
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4821
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4823
depcc="$CXX" am_compiler_list=
4825
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4826
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4827
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4828
echo $ECHO_N "(cached) $ECHO_C" >&6
4830
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4831
# We make a subdir and do the tests there. Otherwise we can end up
4832
# making bogus files that we don't know about and never remove. For
4833
# instance it was reported that on HP-UX the gcc test will end up
4834
# making a dummy file named `D' -- because `-MD' means `put the output
4837
# Copy depcomp to subdir because otherwise we won't find it if we're
4838
# using a relative directory.
4839
cp "$am_depcomp" conftest.dir
4841
# We will build objects and dependencies in a subdirectory because
4842
# it helps to detect inapplicable dependency modes. For instance
4843
# both Tru64's cc and ICC support -MD to output dependencies as a
4844
# side effect of compilation, but ICC will put the dependencies in
4845
# the current directory while Tru64 will put them in the object
4849
am_cv_CXX_dependencies_compiler_type=none
4850
if test "$am_compiler_list" = ""; then
4851
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4853
for depmode in $am_compiler_list; do
4854
# Setup a source with many dependencies, because some compilers
4855
# like to wrap large dependency lists on column 80 (with \), and
4856
# we should not choose a depcomp mode which is confused by this.
4858
# We need to recreate these files for each test, as the compiler may
4859
# overwrite some of them when testing with obscure command lines.
4860
# This happens at least with the AIX C compiler.
4862
for i in 1 2 3 4 5 6; do
4863
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4864
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4865
# Solaris 8's {/usr,}/bin/sh.
4866
touch sub/conftst$i.h
4868
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4872
# after this tag, mechanisms are not by side-effect, so they'll
4873
# only be used when explicitly requested
4874
if test "x$enable_dependency_tracking" = xyes; then
4882
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4883
# mode. It turns out that the SunPro C++ compiler does not properly
4884
# handle `-M -o', and we need to detect this.
4885
if depmode=$depmode \
4886
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4887
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4888
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4889
>/dev/null 2>conftest.err &&
4890
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4891
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4892
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4893
# icc doesn't choke on unknown options, it will just issue warnings
4894
# or remarks (even with -Werror). So we grep stderr for any message
4895
# that says an option was ignored or not supported.
4896
# When given -MP, icc 7.0 and 7.1 complain thusly:
4897
# icc: Command line warning: ignoring option '-M'; no argument required
4898
# The diagnosis changed in icc 8.0:
4899
# icc: Command line remark: option '-MP' not supported
4900
if (grep 'ignoring option' conftest.err ||
4901
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4902
am_cv_CXX_dependencies_compiler_type=$depmode
4911
am_cv_CXX_dependencies_compiler_type=none
4915
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4916
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4917
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4922
test "x$enable_dependency_tracking" != xno \
4923
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4924
am__fastdepCXX_TRUE=
4925
am__fastdepCXX_FALSE='#'
4927
am__fastdepCXX_TRUE='#'
4928
am__fastdepCXX_FALSE=
4933
ac_cpp='$CXXCPP $CPPFLAGS'
4934
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4935
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4936
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4937
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4938
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4939
if test -z "$CXXCPP"; then
4940
if test "${ac_cv_prog_CXXCPP+set}" = set; then
4941
echo $ECHO_N "(cached) $ECHO_C" >&6
4943
# Double quotes because CXXCPP needs to be expanded
4944
for CXXCPP in "$CXX -E" "/lib/cpp"
4947
for ac_cxx_preproc_warn_flag in '' yes
4949
# Use a header file that comes with gcc, so configuring glibc
4950
# with a fresh cross-compiler works.
4951
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4952
# <limits.h> exists even on freestanding compilers.
4953
# On the NeXT, cc -E runs the code through the compiler's parser,
4954
# not just through cpp. "Syntax error" is here to catch this case.
4955
cat >conftest.$ac_ext <<_ACEOF
4958
cat confdefs.h >>conftest.$ac_ext
4959
cat >>conftest.$ac_ext <<_ACEOF
4960
/* end confdefs.h. */
4962
# include <limits.h>
4964
# include <assert.h>
4968
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4969
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4971
grep -v '^ *+' conftest.er1 >conftest.err
4973
cat conftest.err >&5
4974
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975
(exit $ac_status); } >/dev/null; then
4976
if test -s conftest.err; then
4977
ac_cpp_err=$ac_cxx_preproc_warn_flag
4978
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4985
if test -z "$ac_cpp_err"; then
4988
echo "$as_me: failed program was:" >&5
4989
sed 's/^/| /' conftest.$ac_ext >&5
4991
# Broken: fails on valid input.
4994
rm -f conftest.err conftest.$ac_ext
4996
# OK, works on sane cases. Now check whether non-existent headers
4997
# can be detected and how.
4998
cat >conftest.$ac_ext <<_ACEOF
5001
cat confdefs.h >>conftest.$ac_ext
5002
cat >>conftest.$ac_ext <<_ACEOF
5003
/* end confdefs.h. */
5004
#include <ac_nonexistent.h>
5006
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5007
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5009
grep -v '^ *+' conftest.er1 >conftest.err
5011
cat conftest.err >&5
5012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013
(exit $ac_status); } >/dev/null; then
5014
if test -s conftest.err; then
5015
ac_cpp_err=$ac_cxx_preproc_warn_flag
5016
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5023
if test -z "$ac_cpp_err"; then
5024
# Broken: success on invalid input.
5027
echo "$as_me: failed program was:" >&5
5028
sed 's/^/| /' conftest.$ac_ext >&5
5030
# Passes both tests.
5034
rm -f conftest.err conftest.$ac_ext
5037
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5038
rm -f conftest.err conftest.$ac_ext
5039
if $ac_preproc_ok; then
5044
ac_cv_prog_CXXCPP=$CXXCPP
5047
CXXCPP=$ac_cv_prog_CXXCPP
5049
ac_cv_prog_CXXCPP=$CXXCPP
5051
echo "$as_me:$LINENO: result: $CXXCPP" >&5
5052
echo "${ECHO_T}$CXXCPP" >&6
5054
for ac_cxx_preproc_warn_flag in '' yes
5056
# Use a header file that comes with gcc, so configuring glibc
5057
# with a fresh cross-compiler works.
5058
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5059
# <limits.h> exists even on freestanding compilers.
5060
# On the NeXT, cc -E runs the code through the compiler's parser,
5061
# not just through cpp. "Syntax error" is here to catch this case.
5062
cat >conftest.$ac_ext <<_ACEOF
5065
cat confdefs.h >>conftest.$ac_ext
5066
cat >>conftest.$ac_ext <<_ACEOF
5067
/* end confdefs.h. */
5069
# include <limits.h>
5071
# include <assert.h>
5075
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5076
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5078
grep -v '^ *+' conftest.er1 >conftest.err
5080
cat conftest.err >&5
5081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082
(exit $ac_status); } >/dev/null; then
5083
if test -s conftest.err; then
5084
ac_cpp_err=$ac_cxx_preproc_warn_flag
5085
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5092
if test -z "$ac_cpp_err"; then
5095
echo "$as_me: failed program was:" >&5
5096
sed 's/^/| /' conftest.$ac_ext >&5
5098
# Broken: fails on valid input.
5101
rm -f conftest.err conftest.$ac_ext
5103
# OK, works on sane cases. Now check whether non-existent headers
5104
# can be detected and how.
5105
cat >conftest.$ac_ext <<_ACEOF
5108
cat confdefs.h >>conftest.$ac_ext
5109
cat >>conftest.$ac_ext <<_ACEOF
5110
/* end confdefs.h. */
5111
#include <ac_nonexistent.h>
5113
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5114
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5116
grep -v '^ *+' conftest.er1 >conftest.err
5118
cat conftest.err >&5
5119
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120
(exit $ac_status); } >/dev/null; then
5121
if test -s conftest.err; then
5122
ac_cpp_err=$ac_cxx_preproc_warn_flag
5123
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5130
if test -z "$ac_cpp_err"; then
5131
# Broken: success on invalid input.
5134
echo "$as_me: failed program was:" >&5
5135
sed 's/^/| /' conftest.$ac_ext >&5
5137
# Passes both tests.
5141
rm -f conftest.err conftest.$ac_ext
5144
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5145
rm -f conftest.err conftest.$ac_ext
5146
if $ac_preproc_ok; then
5149
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5150
See \`config.log' for more details." >&5
5151
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5152
See \`config.log' for more details." >&2;}
5153
{ (exit 1); exit 1; }; }
5157
ac_cpp='$CXXCPP $CPPFLAGS'
5158
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5159
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5160
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5164
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5165
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5166
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5167
if test -n "$ac_tool_prefix"; then
5168
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5170
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5171
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5172
echo "$as_me:$LINENO: checking for $ac_word" >&5
5173
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5174
if test "${ac_cv_prog_F77+set}" = set; then
5175
echo $ECHO_N "(cached) $ECHO_C" >&6
5177
if test -n "$F77"; then
5178
ac_cv_prog_F77="$F77" # Let the user override the test.
5180
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184
test -z "$as_dir" && as_dir=.
5185
for ac_exec_ext in '' $ac_executable_extensions; do
5186
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5187
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5188
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197
if test -n "$F77"; then
5198
echo "$as_me:$LINENO: result: $F77" >&5
5199
echo "${ECHO_T}$F77" >&6
5201
echo "$as_me:$LINENO: result: no" >&5
5202
echo "${ECHO_T}no" >&6
5205
test -n "$F77" && break
5208
if test -z "$F77"; then
5210
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5212
# Extract the first word of "$ac_prog", so it can be a program name with args.
5213
set dummy $ac_prog; ac_word=$2
5214
echo "$as_me:$LINENO: checking for $ac_word" >&5
5215
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5216
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5217
echo $ECHO_N "(cached) $ECHO_C" >&6
5219
if test -n "$ac_ct_F77"; then
5220
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5222
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226
test -z "$as_dir" && as_dir=.
5227
for ac_exec_ext in '' $ac_executable_extensions; do
5228
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5229
ac_cv_prog_ac_ct_F77="$ac_prog"
5230
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5238
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5239
if test -n "$ac_ct_F77"; then
5240
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5241
echo "${ECHO_T}$ac_ct_F77" >&6
5243
echo "$as_me:$LINENO: result: no" >&5
5244
echo "${ECHO_T}no" >&6
5247
test -n "$ac_ct_F77" && break
5254
# Provide some information about the compiler.
5255
echo "$as_me:5255:" \
5256
"checking for Fortran 77 compiler version" >&5
5257
ac_compiler=`set X $ac_compile; echo $2`
5258
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5259
(eval $ac_compiler --version </dev/null >&5) 2>&5
5261
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262
(exit $ac_status); }
5263
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5264
(eval $ac_compiler -v </dev/null >&5) 2>&5
5266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267
(exit $ac_status); }
5268
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5269
(eval $ac_compiler -V </dev/null >&5) 2>&5
5271
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272
(exit $ac_status); }
5275
# If we don't use `.F' as extension, the preprocessor is not run on the
5276
# input file. (Note that this only needs to work for GNU compilers.)
5279
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5280
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5281
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5282
echo $ECHO_N "(cached) $ECHO_C" >&6
5284
cat >conftest.$ac_ext <<_ACEOF
5292
rm -f conftest.$ac_objext
5293
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5294
(eval $ac_compile) 2>conftest.er1
5296
grep -v '^ *+' conftest.er1 >conftest.err
5298
cat conftest.err >&5
5299
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300
(exit $ac_status); } &&
5301
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5302
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306
(exit $ac_status); }; } &&
5307
{ ac_try='test -s conftest.$ac_objext'
5308
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312
(exit $ac_status); }; }; then
5315
echo "$as_me: failed program was:" >&5
5316
sed 's/^/| /' conftest.$ac_ext >&5
5320
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5321
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5324
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5325
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5327
ac_test_FFLAGS=${FFLAGS+set}
5328
ac_save_FFLAGS=$FFLAGS
5330
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5331
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5332
if test "${ac_cv_prog_f77_g+set}" = set; then
5333
echo $ECHO_N "(cached) $ECHO_C" >&6
5336
cat >conftest.$ac_ext <<_ACEOF
5341
rm -f conftest.$ac_objext
5342
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5343
(eval $ac_compile) 2>conftest.er1
5345
grep -v '^ *+' conftest.er1 >conftest.err
5347
cat conftest.err >&5
5348
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349
(exit $ac_status); } &&
5350
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5351
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355
(exit $ac_status); }; } &&
5356
{ ac_try='test -s conftest.$ac_objext'
5357
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361
(exit $ac_status); }; }; then
5362
ac_cv_prog_f77_g=yes
5364
echo "$as_me: failed program was:" >&5
5365
sed 's/^/| /' conftest.$ac_ext >&5
5369
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5372
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5373
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5374
if test "$ac_test_FFLAGS" = set; then
5375
FFLAGS=$ac_save_FFLAGS
5376
elif test $ac_cv_prog_f77_g = yes; then
5377
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5383
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5390
G77=`test $ac_compiler_gnu = yes && echo yes`
5392
ac_cpp='$CPP $CPPFLAGS'
5393
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5394
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5395
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5399
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5401
# find the maximum length of command line arguments
5402
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5403
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5404
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5405
echo $ECHO_N "(cached) $ECHO_C" >&6
5412
# On DJGPP, this test can blow up pretty badly due to problems in libc
5413
# (any single argument exceeding 2000 bytes causes a buffer overrun
5414
# during glob expansion). Even if it were fixed, the result of this
5415
# check would be larger than it should be.
5416
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5420
# Under GNU Hurd, this test is not required because there is
5421
# no limit to the length of command line arguments.
5422
# Libtool will interpret -1 as no limit whatsoever
5423
lt_cv_sys_max_cmd_len=-1;
5427
# On Win9x/ME, this test blows up -- it succeeds, but takes
5428
# about 5 minutes as the teststring grows exponentially.
5429
# Worse, since 9x/ME are not pre-emptively multitasking,
5430
# you end up with a "frozen" computer, even though with patience
5431
# the test eventually succeeds (with a max line length of 256k).
5432
# Instead, let's just punt: use the minimum linelength reported by
5433
# all of the supported platforms: 8192 (on NT/2K/XP).
5434
lt_cv_sys_max_cmd_len=8192;
5438
# On AmigaOS with pdksh, this test takes hours, literally.
5439
# So we just punt and use a minimum line length of 8192.
5440
lt_cv_sys_max_cmd_len=8192;
5444
# If test is not a shell built-in, we'll probably end up computing a
5445
# maximum length that is only half of the actual maximum length, but
5447
while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5448
= "XX$teststring") >/dev/null 2>&1 &&
5449
new_result=`expr "X$teststring" : ".*" 2>&1` &&
5450
lt_cv_sys_max_cmd_len=$new_result &&
5451
test $i != 17 # 1/2 MB should be enough
5454
teststring=$teststring$teststring
5457
# Add a significant safety factor because C++ compilers can tack on massive
5458
# amounts of additional arguments before passing them to the linker.
5459
# It appears as though 1/2 is a usable value.
5460
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5466
if test -n $lt_cv_sys_max_cmd_len ; then
5467
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5468
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5470
echo "$as_me:$LINENO: result: none" >&5
5471
echo "${ECHO_T}none" >&6
5477
# Check for command to grab the raw symbol name followed by C symbol from nm.
5478
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5479
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5480
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5481
echo $ECHO_N "(cached) $ECHO_C" >&6
5484
# These are sane defaults that work on at least a few old systems.
5485
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5487
# Character class describing NM global symbol codes.
5488
symcode='[BCDEGRST]'
5490
# Regexp to match symbols that can be accessed directly from C.
5491
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5493
# Transform the above into a raw symbol and a C symbol.
5494
symxfrm='\1 \2\3 \3'
5496
# Transform an extracted symbol line into a proper C declaration
5497
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5499
# Transform an extracted symbol line into symbol name and symbol address
5500
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'"
5502
# Define system-specific variables.
5507
cygwin* | mingw* | pw32*)
5508
symcode='[ABCDGISTW]'
5510
hpux*) # Its linker distinguishes data from code symbols
5511
if test "$host_cpu" = ia64; then
5512
symcode='[ABCDEGRST]'
5514
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5515
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'"
5518
symcode='[BCDEGRST]'
5521
symcode='[BCDEGQRST]'
5531
# Handle CRLF in mingw tool chain
5535
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5539
# If we're using GNU nm, then use its standard symbol codes.
5540
case `$NM -V 2>&1` in
5541
*GNU* | *'with BFD'*)
5542
symcode='[ABCDGIRSTW]' ;;
5545
# Try without a prefix undercore, then with it.
5546
for ac_symprfx in "" "_"; do
5548
# Write the raw and C identifiers.
5549
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5551
# Check to see that the pipe works correctly.
5555
cat > conftest.$ac_ext <<EOF
5560
void nm_test_func(){}
5564
int main(){nm_test_var='a';nm_test_func();return(0);}
5567
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5568
(eval $ac_compile) 2>&5
5570
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571
(exit $ac_status); }; then
5572
# Now try to grab the symbols.
5574
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5575
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5577
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578
(exit $ac_status); } && test -s "$nlist"; then
5579
# Try sorting and uniquifying the output.
5580
if sort "$nlist" | uniq > "$nlist"T; then
5581
mv -f "$nlist"T "$nlist"
5586
# Make sure that we snagged all the symbols we need.
5587
if grep ' nm_test_var$' "$nlist" >/dev/null; then
5588
if grep ' nm_test_func$' "$nlist" >/dev/null; then
5589
cat <<EOF > conftest.$ac_ext
5595
# Now generate the symbol file.
5596
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5598
cat <<EOF >> conftest.$ac_ext
5599
#if defined (__STDC__) && __STDC__
5600
# define lt_ptr_t void *
5602
# define lt_ptr_t char *
5606
/* The mapping between symbol names and symbols. */
5611
lt_preloaded_symbols[] =
5614
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5615
cat <<\EOF >> conftest.$ac_ext
5623
# Now try linking the two files.
5624
mv conftest.$ac_objext conftstm.$ac_objext
5625
lt_save_LIBS="$LIBS"
5626
lt_save_CFLAGS="$CFLAGS"
5627
LIBS="conftstm.$ac_objext"
5628
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5629
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5630
(eval $ac_link) 2>&5
5632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633
(exit $ac_status); } && test -s conftest${ac_exeext}; then
5636
LIBS="$lt_save_LIBS"
5637
CFLAGS="$lt_save_CFLAGS"
5639
echo "cannot find nm_test_func in $nlist" >&5
5642
echo "cannot find nm_test_var in $nlist" >&5
5645
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5648
echo "$progname: failed program was:" >&5
5649
cat conftest.$ac_ext >&5
5651
rm -f conftest* conftst*
5653
# Do not use the global_symbol_pipe unless it works.
5654
if test "$pipe_works" = yes; then
5657
lt_cv_sys_global_symbol_pipe=
5663
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5664
lt_cv_sys_global_symbol_to_cdecl=
5666
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5667
echo "$as_me:$LINENO: result: failed" >&5
5668
echo "${ECHO_T}failed" >&6
5670
echo "$as_me:$LINENO: result: ok" >&5
5671
echo "${ECHO_T}ok" >&6
5674
echo "$as_me:$LINENO: checking for objdir" >&5
5675
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5676
if test "${lt_cv_objdir+set}" = set; then
5677
echo $ECHO_N "(cached) $ECHO_C" >&6
5679
rm -f .libs 2>/dev/null
5680
mkdir .libs 2>/dev/null
5681
if test -d .libs; then
5684
# MS-DOS does not allow filenames that begin with a dot.
5687
rmdir .libs 2>/dev/null
5689
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5690
echo "${ECHO_T}$lt_cv_objdir" >&6
5691
objdir=$lt_cv_objdir
5699
# AIX sometimes has problems with the GCC collect2 program. For some
5700
# reason, if we set the COLLECT_NAMES environment variable, the problems
5701
# vanish in a puff of smoke.
5702
if test "X${COLLECT_NAMES+set}" != Xset; then
5704
export COLLECT_NAMES
5709
# Sed substitution that helps us do robust quoting. It backslashifies
5710
# metacharacters that are still active within double-quoted strings.
5711
Xsed='sed -e s/^X//'
5712
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5714
# Same as above, but do not quote variable references.
5715
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5717
# Sed substitution to delay expansion of an escaped shell variable in a
5718
# double_quote_subst'ed string.
5719
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5721
# Sed substitution to avoid accidental globbing in evaled expressions
5722
no_glob_subst='s/\*/\\\*/g'
5728
default_ofile=libtool
5729
can_build_shared=yes
5731
# All known linkers require a `.a' archive for static linking (except M$VC,
5732
# which needs '.lib').
5734
ltmain="$ac_aux_dir/ltmain.sh"
5735
ofile="$default_ofile"
5736
with_gnu_ld="$lt_cv_prog_gnu_ld"
5738
if test -n "$ac_tool_prefix"; then
5739
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5740
set dummy ${ac_tool_prefix}ar; ac_word=$2
5741
echo "$as_me:$LINENO: checking for $ac_word" >&5
5742
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5743
if test "${ac_cv_prog_AR+set}" = set; then
5744
echo $ECHO_N "(cached) $ECHO_C" >&6
5746
if test -n "$AR"; then
5747
ac_cv_prog_AR="$AR" # Let the user override the test.
5749
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753
test -z "$as_dir" && as_dir=.
5754
for ac_exec_ext in '' $ac_executable_extensions; do
5755
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756
ac_cv_prog_AR="${ac_tool_prefix}ar"
5757
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5766
if test -n "$AR"; then
5767
echo "$as_me:$LINENO: result: $AR" >&5
5768
echo "${ECHO_T}$AR" >&6
5770
echo "$as_me:$LINENO: result: no" >&5
5771
echo "${ECHO_T}no" >&6
5775
if test -z "$ac_cv_prog_AR"; then
5777
# Extract the first word of "ar", so it can be a program name with args.
5778
set dummy ar; ac_word=$2
5779
echo "$as_me:$LINENO: checking for $ac_word" >&5
5780
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5781
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5782
echo $ECHO_N "(cached) $ECHO_C" >&6
5784
if test -n "$ac_ct_AR"; then
5785
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5787
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791
test -z "$as_dir" && as_dir=.
5792
for ac_exec_ext in '' $ac_executable_extensions; do
5793
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5794
ac_cv_prog_ac_ct_AR="ar"
5795
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5801
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5804
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5805
if test -n "$ac_ct_AR"; then
5806
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5807
echo "${ECHO_T}$ac_ct_AR" >&6
5809
echo "$as_me:$LINENO: result: no" >&5
5810
echo "${ECHO_T}no" >&6
5818
if test -n "$ac_tool_prefix"; then
5819
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5820
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5821
echo "$as_me:$LINENO: checking for $ac_word" >&5
5822
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5823
if test "${ac_cv_prog_RANLIB+set}" = set; then
5824
echo $ECHO_N "(cached) $ECHO_C" >&6
5826
if test -n "$RANLIB"; then
5827
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5829
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833
test -z "$as_dir" && as_dir=.
5834
for ac_exec_ext in '' $ac_executable_extensions; do
5835
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5836
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5837
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5845
RANLIB=$ac_cv_prog_RANLIB
5846
if test -n "$RANLIB"; then
5847
echo "$as_me:$LINENO: result: $RANLIB" >&5
5848
echo "${ECHO_T}$RANLIB" >&6
5850
echo "$as_me:$LINENO: result: no" >&5
5851
echo "${ECHO_T}no" >&6
5855
if test -z "$ac_cv_prog_RANLIB"; then
5856
ac_ct_RANLIB=$RANLIB
5857
# Extract the first word of "ranlib", so it can be a program name with args.
5858
set dummy ranlib; ac_word=$2
5859
echo "$as_me:$LINENO: checking for $ac_word" >&5
5860
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5861
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5862
echo $ECHO_N "(cached) $ECHO_C" >&6
5864
if test -n "$ac_ct_RANLIB"; then
5865
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5867
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871
test -z "$as_dir" && as_dir=.
5872
for ac_exec_ext in '' $ac_executable_extensions; do
5873
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5874
ac_cv_prog_ac_ct_RANLIB="ranlib"
5875
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5881
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5884
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5885
if test -n "$ac_ct_RANLIB"; then
5886
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5887
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5889
echo "$as_me:$LINENO: result: no" >&5
5890
echo "${ECHO_T}no" >&6
5893
RANLIB=$ac_ct_RANLIB
5895
RANLIB="$ac_cv_prog_RANLIB"
5898
if test -n "$ac_tool_prefix"; then
5899
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5900
set dummy ${ac_tool_prefix}strip; ac_word=$2
5901
echo "$as_me:$LINENO: checking for $ac_word" >&5
5902
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5903
if test "${ac_cv_prog_STRIP+set}" = set; then
5904
echo $ECHO_N "(cached) $ECHO_C" >&6
5906
if test -n "$STRIP"; then
5907
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5909
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913
test -z "$as_dir" && as_dir=.
5914
for ac_exec_ext in '' $ac_executable_extensions; do
5915
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5916
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5917
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5925
STRIP=$ac_cv_prog_STRIP
5926
if test -n "$STRIP"; then
5927
echo "$as_me:$LINENO: result: $STRIP" >&5
5928
echo "${ECHO_T}$STRIP" >&6
5930
echo "$as_me:$LINENO: result: no" >&5
5931
echo "${ECHO_T}no" >&6
5935
if test -z "$ac_cv_prog_STRIP"; then
5937
# Extract the first word of "strip", so it can be a program name with args.
5938
set dummy strip; ac_word=$2
5939
echo "$as_me:$LINENO: checking for $ac_word" >&5
5940
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5941
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5942
echo $ECHO_N "(cached) $ECHO_C" >&6
5944
if test -n "$ac_ct_STRIP"; then
5945
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5947
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951
test -z "$as_dir" && as_dir=.
5952
for ac_exec_ext in '' $ac_executable_extensions; do
5953
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5954
ac_cv_prog_ac_ct_STRIP="strip"
5955
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5961
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5964
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5965
if test -n "$ac_ct_STRIP"; then
5966
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5967
echo "${ECHO_T}$ac_ct_STRIP" >&6
5969
echo "$as_me:$LINENO: result: no" >&5
5970
echo "${ECHO_T}no" >&6
5975
STRIP="$ac_cv_prog_STRIP"
5980
old_CFLAGS="$CFLAGS"
5982
# Set sane defaults for various variables
5983
test -z "$AR" && AR=ar
5984
test -z "$AR_FLAGS" && AR_FLAGS=cru
5985
test -z "$AS" && AS=as
5986
test -z "$CC" && CC=cc
5987
test -z "$LTCC" && LTCC=$CC
5988
test -z "$DLLTOOL" && DLLTOOL=dlltool
5989
test -z "$LD" && LD=ld
5990
test -z "$LN_S" && LN_S="ln -s"
5991
test -z "$MAGIC_CMD" && MAGIC_CMD=file
5992
test -z "$NM" && NM=nm
5993
test -z "$SED" && SED=sed
5994
test -z "$OBJDUMP" && OBJDUMP=objdump
5995
test -z "$RANLIB" && RANLIB=:
5996
test -z "$STRIP" && STRIP=:
5997
test -z "$ac_objext" && ac_objext=o
5999
# Determine commands to create old-style static archives.
6000
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6001
old_postinstall_cmds='chmod 644 $oldlib'
6002
old_postuninstall_cmds=
6004
if test -n "$RANLIB"; then
6007
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6010
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6013
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6016
# Only perform the check for file, if the check method requires it
6017
case $deplibs_check_method in
6019
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6020
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6021
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6022
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6023
echo $ECHO_N "(cached) $ECHO_C" >&6
6027
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6030
lt_save_MAGIC_CMD="$MAGIC_CMD"
6031
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6032
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6033
for ac_dir in $ac_dummy; do
6035
test -z "$ac_dir" && ac_dir=.
6036
if test -f $ac_dir/${ac_tool_prefix}file; then
6037
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6038
if test -n "$file_magic_test_file"; then
6039
case $deplibs_check_method in
6041
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6042
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6043
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6044
$EGREP "$file_magic_regex" > /dev/null; then
6049
*** Warning: the command libtool uses to detect shared libraries,
6050
*** $file_magic_cmd, produces output that libtool cannot recognize.
6051
*** The result is that libtool may fail to recognize shared libraries
6052
*** as such. This will affect the creation of libtool libraries that
6053
*** depend on shared libraries, but programs linked with such libtool
6054
*** libraries will work regardless of this problem. Nevertheless, you
6055
*** may want to report the problem to your system manager and/or to
6056
*** bug-libtool@gnu.org
6066
MAGIC_CMD="$lt_save_MAGIC_CMD"
6071
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6072
if test -n "$MAGIC_CMD"; then
6073
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6074
echo "${ECHO_T}$MAGIC_CMD" >&6
6076
echo "$as_me:$LINENO: result: no" >&5
6077
echo "${ECHO_T}no" >&6
6080
if test -z "$lt_cv_path_MAGIC_CMD"; then
6081
if test -n "$ac_tool_prefix"; then
6082
echo "$as_me:$LINENO: checking for file" >&5
6083
echo $ECHO_N "checking for file... $ECHO_C" >&6
6084
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6085
echo $ECHO_N "(cached) $ECHO_C" >&6
6089
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6092
lt_save_MAGIC_CMD="$MAGIC_CMD"
6093
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6094
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6095
for ac_dir in $ac_dummy; do
6097
test -z "$ac_dir" && ac_dir=.
6098
if test -f $ac_dir/file; then
6099
lt_cv_path_MAGIC_CMD="$ac_dir/file"
6100
if test -n "$file_magic_test_file"; then
6101
case $deplibs_check_method in
6103
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6104
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6105
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6106
$EGREP "$file_magic_regex" > /dev/null; then
6111
*** Warning: the command libtool uses to detect shared libraries,
6112
*** $file_magic_cmd, produces output that libtool cannot recognize.
6113
*** The result is that libtool may fail to recognize shared libraries
6114
*** as such. This will affect the creation of libtool libraries that
6115
*** depend on shared libraries, but programs linked with such libtool
6116
*** libraries will work regardless of this problem. Nevertheless, you
6117
*** may want to report the problem to your system manager and/or to
6118
*** bug-libtool@gnu.org
6128
MAGIC_CMD="$lt_save_MAGIC_CMD"
6133
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6134
if test -n "$MAGIC_CMD"; then
6135
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6136
echo "${ECHO_T}$MAGIC_CMD" >&6
6138
echo "$as_me:$LINENO: result: no" >&5
6139
echo "${ECHO_T}no" >&6
6154
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6155
if test "${enable_libtool_lock+set}" = set; then
6156
enableval="$enable_libtool_lock"
6159
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6162
# Check whether --with-pic or --without-pic was given.
6163
if test "${with_pic+set}" = set; then
6169
test -z "$pic_mode" && pic_mode=default
6171
# Use C for the default configuration in the libtool script
6175
ac_cpp='$CPP $CPPFLAGS'
6176
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6177
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6178
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6181
# Source file extension for C test sources.
6184
# Object file extension for compiled C test sources.
6188
# Code to be used in simple compile tests
6189
lt_simple_compile_test_code="int some_variable = 0;\n"
6191
# Code to be used in simple link tests
6192
lt_simple_link_test_code='int main(){return(0);}\n'
6195
# If no C compiler was specified, use CC.
6198
# Allow CC to be a program name with arguments.
6203
# Check for any special shared library compilation flags.
6206
if test "$GCC" = no; then
6209
lt_prog_cc_shlib='-belf'
6213
if test -n "$lt_prog_cc_shlib"; then
6214
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6215
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6216
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6218
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6219
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6220
lt_cv_prog_cc_can_build_shared=no
6226
# Check to make sure the static flag actually works.
6228
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6229
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6230
if test "${lt_prog_compiler_static_works+set}" = set; then
6231
echo $ECHO_N "(cached) $ECHO_C" >&6
6233
lt_prog_compiler_static_works=no
6234
save_LDFLAGS="$LDFLAGS"
6235
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6236
printf "$lt_simple_link_test_code" > conftest.$ac_ext
6237
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6238
# The compiler can only warn and ignore the option if not recognized
6239
# So say no if there are warnings
6240
if test -s conftest.err; then
6241
# Append any errors to the config.log.
6242
cat conftest.err 1>&5
6244
lt_prog_compiler_static_works=yes
6248
LDFLAGS="$save_LDFLAGS"
6251
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6252
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6254
if test x"$lt_prog_compiler_static_works" = xyes; then
6257
lt_prog_compiler_static=
6263
lt_prog_compiler_no_builtin_flag=
6265
if test "$GCC" = yes; then
6266
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6269
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6270
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6271
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6272
echo $ECHO_N "(cached) $ECHO_C" >&6
6274
lt_cv_prog_compiler_rtti_exceptions=no
6275
ac_outfile=conftest.$ac_objext
6276
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6277
lt_compiler_flag="-fno-rtti -fno-exceptions"
6278
# Insert the option either (1) after the last *FLAGS variable, or
6279
# (2) before a word containing "conftest.", or (3) at the end.
6280
# Note that $ac_compile itself does not contain backslashes and begins
6281
# with a dollar sign (not a hyphen), so the echo should work correctly.
6282
# The option is referenced via a variable to avoid confusing sed.
6283
lt_compile=`echo "$ac_compile" | $SED \
6284
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6285
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6286
-e 's:$: $lt_compiler_flag:'`
6287
(eval echo "\"\$as_me:6287: $lt_compile\"" >&5)
6288
(eval "$lt_compile" 2>conftest.err)
6290
cat conftest.err >&5
6291
echo "$as_me:6291: \$? = $ac_status" >&5
6292
if (exit $ac_status) && test -s "$ac_outfile"; then
6293
# The compiler can only warn and ignore the option if not recognized
6294
# So say no if there are warnings
6295
if test ! -s conftest.err; then
6296
lt_cv_prog_compiler_rtti_exceptions=yes
6302
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6303
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6305
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6306
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6313
lt_prog_compiler_wl=
6314
lt_prog_compiler_pic=
6315
lt_prog_compiler_static=
6317
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6318
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6320
if test "$GCC" = yes; then
6321
lt_prog_compiler_wl='-Wl,'
6322
lt_prog_compiler_static='-static'
6326
# All AIX code is PIC.
6327
if test "$host_cpu" = ia64; then
6328
# AIX 5 now supports IA64 processor
6329
lt_prog_compiler_static='-Bstatic'
6334
# FIXME: we need at least 68020 code to build shared libraries, but
6335
# adding the `-m68020' flag to GCC prevents building anything better,
6337
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6340
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6341
# PIC is the default for these OSes.
6344
mingw* | pw32* | os2*)
6345
# This hack is so that the source file can tell whether it is being
6346
# built for inclusion in a dll (and should export symbols for example).
6347
lt_prog_compiler_pic='-DDLL_EXPORT'
6350
darwin* | rhapsody*)
6351
# PIC is the default on this platform
6352
# Common symbols not allowed in MH_DYLIB files
6353
lt_prog_compiler_pic='-fno-common'
6357
# Just because we use GCC doesn't mean we suddenly get shared libraries
6358
# on systems that don't support them.
6359
lt_prog_compiler_can_build_shared=no
6364
if test -d /usr/nec; then
6365
lt_prog_compiler_pic=-Kconform_pic
6370
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6377
lt_prog_compiler_pic='-fPIC'
6383
lt_prog_compiler_pic='-fPIC'
6387
# PORTME Check for flag to pass linker flags through the system compiler.
6390
lt_prog_compiler_wl='-Wl,'
6391
if test "$host_cpu" = ia64; then
6392
# AIX 5 now supports IA64 processor
6393
lt_prog_compiler_static='-Bstatic'
6395
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6399
mingw* | pw32* | os2*)
6400
# This hack is so that the source file can tell whether it is being
6401
# built for inclusion in a dll (and should export symbols for example).
6402
lt_prog_compiler_pic='-DDLL_EXPORT'
6405
hpux9* | hpux10* | hpux11*)
6406
lt_prog_compiler_wl='-Wl,'
6407
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6414
lt_prog_compiler_pic='+Z'
6417
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6418
lt_prog_compiler_static='${wl}-a ${wl}archive'
6421
irix5* | irix6* | nonstopux*)
6422
lt_prog_compiler_wl='-Wl,'
6423
# PIC (with -KPIC) is the default.
6424
lt_prog_compiler_static='-non_shared'
6428
lt_prog_compiler_pic='-KPIC'
6429
lt_prog_compiler_static='-Bstatic'
6435
lt_prog_compiler_wl='-Wl,'
6436
lt_prog_compiler_pic='-KPIC'
6437
lt_prog_compiler_static='-static'
6440
lt_prog_compiler_wl='-Wl,'
6441
# All Alpha code is PIC.
6442
lt_prog_compiler_static='-non_shared'
6447
osf3* | osf4* | osf5*)
6448
lt_prog_compiler_wl='-Wl,'
6449
# All OSF/1 code is PIC.
6450
lt_prog_compiler_static='-non_shared'
6454
lt_prog_compiler_pic='-Kpic'
6455
lt_prog_compiler_static='-dn'
6459
lt_prog_compiler_wl='-Wl,'
6460
lt_prog_compiler_pic='-KPIC'
6461
lt_prog_compiler_static='-Bstatic'
6465
lt_prog_compiler_wl='-Qoption ld '
6466
lt_prog_compiler_pic='-PIC'
6467
lt_prog_compiler_static='-Bstatic'
6470
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6471
lt_prog_compiler_wl='-Wl,'
6472
lt_prog_compiler_pic='-KPIC'
6473
lt_prog_compiler_static='-Bstatic'
6477
if test -d /usr/nec ;then
6478
lt_prog_compiler_pic='-Kconform_pic'
6479
lt_prog_compiler_static='-Bstatic'
6484
lt_prog_compiler_pic='-pic'
6485
lt_prog_compiler_static='-Bstatic'
6489
lt_prog_compiler_can_build_shared=no
6494
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6495
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6498
# Check to make sure the PIC flag actually works.
6500
if test -n "$lt_prog_compiler_pic"; then
6502
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6503
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6504
if test "${lt_prog_compiler_pic_works+set}" = set; then
6505
echo $ECHO_N "(cached) $ECHO_C" >&6
6507
lt_prog_compiler_pic_works=no
6508
ac_outfile=conftest.$ac_objext
6509
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6510
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6511
# Insert the option either (1) after the last *FLAGS variable, or
6512
# (2) before a word containing "conftest.", or (3) at the end.
6513
# Note that $ac_compile itself does not contain backslashes and begins
6514
# with a dollar sign (not a hyphen), so the echo should work correctly.
6515
# The option is referenced via a variable to avoid confusing sed.
6516
lt_compile=`echo "$ac_compile" | $SED \
6517
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6518
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6519
-e 's:$: $lt_compiler_flag:'`
6520
(eval echo "\"\$as_me:6520: $lt_compile\"" >&5)
6521
(eval "$lt_compile" 2>conftest.err)
6523
cat conftest.err >&5
6524
echo "$as_me:6524: \$? = $ac_status" >&5
6525
if (exit $ac_status) && test -s "$ac_outfile"; then
6526
# The compiler can only warn and ignore the option if not recognized
6527
# So say no if there are warnings
6528
if test ! -s conftest.err; then
6529
lt_prog_compiler_pic_works=yes
6535
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6536
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6538
if test x"$lt_prog_compiler_pic_works" = xyes; then
6539
case $lt_prog_compiler_pic in
6541
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6544
lt_prog_compiler_pic=
6545
lt_prog_compiler_can_build_shared=no
6550
# For platforms which do not support PIC, -DPIC is meaningless:
6552
lt_prog_compiler_pic=
6555
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6559
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6560
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6561
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6562
echo $ECHO_N "(cached) $ECHO_C" >&6
6564
lt_cv_prog_compiler_c_o=no
6565
$rm -r conftest 2>/dev/null
6569
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6571
lt_compiler_flag="-o out/conftest2.$ac_objext"
6572
# Insert the option either (1) after the last *FLAGS variable, or
6573
# (2) before a word containing "conftest.", or (3) at the end.
6574
# Note that $ac_compile itself does not contain backslashes and begins
6575
# with a dollar sign (not a hyphen), so the echo should work correctly.
6576
lt_compile=`echo "$ac_compile" | $SED \
6577
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6578
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6579
-e 's:$: $lt_compiler_flag:'`
6580
(eval echo "\"\$as_me:6580: $lt_compile\"" >&5)
6581
(eval "$lt_compile" 2>out/conftest.err)
6583
cat out/conftest.err >&5
6584
echo "$as_me:6584: \$? = $ac_status" >&5
6585
if (exit $ac_status) && test -s out/conftest2.$ac_objext
6587
# The compiler can only warn and ignore the option if not recognized
6588
# So say no if there are warnings
6589
if test ! -s out/conftest.err; then
6590
lt_cv_prog_compiler_c_o=yes
6595
# SGI C++ compiler will create directory out/ii_files/ for
6596
# template instantiation
6597
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6598
$rm out/* && rmdir out
6604
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6605
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6608
hard_links="nottested"
6609
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6610
# do not overwrite the value of need_locks provided by the user
6611
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6612
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6615
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6617
ln conftest.a conftest.b 2>&5 || hard_links=no
6618
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6619
echo "$as_me:$LINENO: result: $hard_links" >&5
6620
echo "${ECHO_T}$hard_links" >&6
6621
if test "$hard_links" = no; then
6622
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6623
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6630
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6631
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6634
allow_undefined_flag=
6635
enable_shared_with_static_runtimes=no
6637
archive_expsym_cmds=
6638
old_archive_From_new_cmds=
6639
old_archive_from_expsyms_cmds=
6640
export_dynamic_flag_spec=
6641
whole_archive_flag_spec=
6642
thread_safe_flag_spec=
6643
hardcode_libdir_flag_spec=
6644
hardcode_libdir_flag_spec_ld=
6645
hardcode_libdir_separator=
6648
hardcode_shlibpath_var=unsupported
6649
link_all_deplibs=unknown
6650
hardcode_automatic=no
6653
always_export_symbols=no
6654
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6655
# include_expsyms should be a list of space-separated symbols to be *always*
6656
# included in the symbol list
6658
# exclude_expsyms can be an extended regexp of symbols to exclude
6659
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6660
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6661
# as well as any symbol that contains `d'.
6662
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6663
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6664
# platforms (ab)use it in PIC code, but their linkers get confused if
6665
# the symbol is explicitly referenced. Since portable code cannot
6666
# rely on this symbol name, it's probably fine to never include it in
6667
# preloaded symbol tables.
6668
extract_expsyms_cmds=
6671
cygwin* | mingw* | pw32*)
6672
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6673
# When not using gcc, we currently assume that we are using
6674
# Microsoft Visual C++.
6675
if test "$GCC" != yes; then
6685
if test "$with_gnu_ld" = yes; then
6686
# If archive_cmds runs LD, not CC, wlarc should be empty
6689
# See if GNU ld supports shared libraries.
6691
aix3* | aix4* | aix5*)
6692
# On AIX/PPC, the GNU linker is very broken
6693
if test "$host_cpu" != ia64; then
6697
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6698
*** to be unable to reliably create shared libraries on AIX.
6699
*** Therefore, libtool is disabling shared libraries support. If you
6700
*** really care for shared libraries, you may want to modify your PATH
6701
*** so that a non-GNU linker is found, and then restart.
6708
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)'
6709
hardcode_libdir_flag_spec='-L$libdir'
6710
hardcode_minus_L=yes
6712
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6713
# that the semantics of dynamic libraries on AmigaOS, at least up
6714
# to version 4, is to share data among multiple programs linked
6715
# with the same dynamic library. Since this doesn't match the
6716
# behavior of shared libraries on other platforms, we can't use
6722
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6723
allow_undefined_flag=unsupported
6724
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6725
# support --undefined. This deserves some investigation. FIXME
6726
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6732
cygwin* | mingw* | pw32*)
6733
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6734
# as there is no search path for DLLs.
6735
hardcode_libdir_flag_spec='-L$libdir'
6736
allow_undefined_flag=unsupported
6737
always_export_symbols=no
6738
enable_shared_with_static_runtimes=yes
6739
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6741
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6742
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6743
# If the export-symbols file already is a .def file (1st line
6744
# is EXPORTS), use it as is; otherwise, prepend...
6745
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6746
cp $export_symbols $output_objdir/$soname.def;
6748
echo EXPORTS > $output_objdir/$soname.def;
6749
cat $export_symbols >> $output_objdir/$soname.def;
6751
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6757
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6758
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6759
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6762
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6763
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6768
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6772
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6773
*** create shared libraries on Solaris systems. Therefore, libtool
6774
*** is disabling shared libraries support. We urge you to upgrade GNU
6775
*** binutils to release 2.9.1 or newer. Another option is to modify
6776
*** your PATH or compiler configuration so that the native linker is
6777
*** used, and then restart.
6780
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6781
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6782
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6789
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6792
hardcode_shlibpath_var=no
6796
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6797
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6798
archive_cmds="$tmp_archive_cmds"
6799
supports_anon_versioning=no
6800
case `$LD -v 2>/dev/null` in
6801
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6802
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6803
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6804
*\ 2.11.*) ;; # other 2.11 versions
6805
*) supports_anon_versioning=yes ;;
6807
if test $supports_anon_versioning = yes; then
6808
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6809
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6810
$echo "local: *; };" >> $output_objdir/$libname.ver~
6811
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6813
archive_expsym_cmds="$tmp_archive_cmds"
6822
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6823
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6824
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6831
if test "$ld_shlibs" = yes; then
6832
runpath_var=LD_RUN_PATH
6833
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6834
export_dynamic_flag_spec='${wl}--export-dynamic'
6835
# ancient GNU ld didn't support --whole-archive et. al.
6836
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6837
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6839
whole_archive_flag_spec=
6843
# PORTME fill in a description of your system's linker (not GNU ld)
6846
allow_undefined_flag=unsupported
6847
always_export_symbols=yes
6848
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'
6849
# Note: this linker hardcodes the directories in LIBPATH if there
6850
# are no directories specified by -L.
6851
hardcode_minus_L=yes
6852
if test "$GCC" = yes && test -z "$link_static_flag"; then
6853
# Neither direct hardcoding nor static linking is supported with a
6855
hardcode_direct=unsupported
6860
if test "$host_cpu" = ia64; then
6861
# On IA64, the linker does run time linking by default, so we don't
6862
# have to do anything special.
6863
aix_use_runtimelinking=no
6864
exp_sym_flag='-Bexport'
6867
# If we're using GNU nm, then we don't want the "-C" option.
6868
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6869
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6870
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'
6872
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'
6874
aix_use_runtimelinking=no
6876
# Test if we are trying to use run time linking or normal
6877
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6878
# need to do runtime linking.
6879
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6880
for ld_flag in $LDFLAGS; do
6881
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6882
aix_use_runtimelinking=yes
6888
exp_sym_flag='-bexport'
6889
no_entry_flag='-bnoentry'
6892
# When large executables or shared objects are built, AIX ld can
6893
# have problems creating the table of contents. If linking a library
6894
# or program results in "error TOC overflow" add -mminimal-toc to
6895
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6896
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6900
hardcode_libdir_separator=':'
6901
link_all_deplibs=yes
6903
if test "$GCC" = yes; then
6904
case $host_os in aix4.012|aix4.012.*)
6905
# We only want to do this on AIX 4.2 and lower, the check
6906
# below for broken collect2 doesn't work under 4.3+
6907
collect2name=`${CC} -print-prog-name=collect2`
6908
if test -f "$collect2name" && \
6909
strings "$collect2name" | grep resolve_lib_name >/dev/null
6911
# We have reworked collect2
6914
# We have old collect2
6915
hardcode_direct=unsupported
6916
# It fails to find uninstalled libraries when the uninstalled
6917
# path is not listed in the libpath. Setting hardcode_minus_L
6918
# to unsupported forces relinking
6919
hardcode_minus_L=yes
6920
hardcode_libdir_flag_spec='-L$libdir'
6921
hardcode_libdir_separator=
6924
shared_flag='-shared'
6927
if test "$host_cpu" = ia64; then
6928
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6929
# chokes on -Wl,-G. The following line is correct:
6932
if test "$aix_use_runtimelinking" = yes; then
6933
shared_flag='${wl}-G'
6935
shared_flag='${wl}-bM:SRE'
6940
# It seems that -bexpall does not export symbols beginning with
6941
# underscore (_), so it is better to generate a list of symbols to export.
6942
always_export_symbols=yes
6943
if test "$aix_use_runtimelinking" = yes; then
6944
# Warning - without using the other runtime loading flags (-brtl),
6945
# -berok will link without error, but may produce a broken library.
6946
allow_undefined_flag='-berok'
6947
# Determine the default libpath from the value encoded in an empty executable.
6948
cat >conftest.$ac_ext <<_ACEOF
6951
cat confdefs.h >>conftest.$ac_ext
6952
cat >>conftest.$ac_ext <<_ACEOF
6953
/* end confdefs.h. */
6963
rm -f conftest.$ac_objext conftest$ac_exeext
6964
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6965
(eval $ac_link) 2>conftest.er1
6967
grep -v '^ *+' conftest.er1 >conftest.err
6969
cat conftest.err >&5
6970
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971
(exit $ac_status); } &&
6972
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6973
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977
(exit $ac_status); }; } &&
6978
{ ac_try='test -s conftest$ac_exeext'
6979
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983
(exit $ac_status); }; }; then
6985
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6987
# Check for a 64-bit object if we didn't find anything.
6988
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; }
6991
echo "$as_me: failed program was:" >&5
6992
sed 's/^/| /' conftest.$ac_ext >&5
6995
rm -f conftest.err conftest.$ac_objext \
6996
conftest$ac_exeext conftest.$ac_ext
6997
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6999
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7000
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"
7002
if test "$host_cpu" = ia64; then
7003
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7004
allow_undefined_flag="-z nodefs"
7005
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"
7007
# Determine the default libpath from the value encoded in an empty executable.
7008
cat >conftest.$ac_ext <<_ACEOF
7011
cat confdefs.h >>conftest.$ac_ext
7012
cat >>conftest.$ac_ext <<_ACEOF
7013
/* end confdefs.h. */
7023
rm -f conftest.$ac_objext conftest$ac_exeext
7024
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7025
(eval $ac_link) 2>conftest.er1
7027
grep -v '^ *+' conftest.er1 >conftest.err
7029
cat conftest.err >&5
7030
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031
(exit $ac_status); } &&
7032
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7033
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037
(exit $ac_status); }; } &&
7038
{ ac_try='test -s conftest$ac_exeext'
7039
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7042
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043
(exit $ac_status); }; }; then
7045
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7047
# Check for a 64-bit object if we didn't find anything.
7048
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; }
7051
echo "$as_me: failed program was:" >&5
7052
sed 's/^/| /' conftest.$ac_ext >&5
7055
rm -f conftest.err conftest.$ac_objext \
7056
conftest$ac_exeext conftest.$ac_ext
7057
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7059
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7060
# Warning - without using the other run time loading flags,
7061
# -berok will link without error, but may produce a broken library.
7062
no_undefined_flag=' ${wl}-bernotok'
7063
allow_undefined_flag=' ${wl}-berok'
7064
# -bexpall does not export symbols beginning with underscore (_)
7065
always_export_symbols=yes
7066
# Exported symbols can be pulled into shared objects from archives
7067
whole_archive_flag_spec=' '
7068
archive_cmds_need_lc=yes
7069
# This is similar to how AIX traditionally builds it's shared libraries.
7070
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'
7076
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)'
7077
hardcode_libdir_flag_spec='-L$libdir'
7078
hardcode_minus_L=yes
7079
# see comment about different semantics on the GNU ld section
7084
export_dynamic_flag_spec=-rdynamic
7087
cygwin* | mingw* | pw32*)
7088
# When not using gcc, we currently assume that we are using
7089
# Microsoft Visual C++.
7090
# hardcode_libdir_flag_spec is actually meaningless, as there is
7091
# no search path for DLLs.
7092
hardcode_libdir_flag_spec=' '
7093
allow_undefined_flag=unsupported
7094
# Tell ltmain to make .lib files, not .a files.
7096
# Tell ltmain to make .dll files, not .so files.
7098
# FIXME: Setting linknames here is a bad hack.
7099
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7100
# The linker will automatically build a .lib file if we build a DLL.
7101
old_archive_From_new_cmds='true'
7102
# FIXME: Should let the user specify the lib program.
7103
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7104
fix_srcfile_path='`cygpath -w "$srcfile"`'
7105
enable_shared_with_static_runtimes=yes
7108
darwin* | rhapsody*)
7109
if test "$GXX" = yes ; then
7110
archive_cmds_need_lc=no
7112
rhapsody* | darwin1.[012])
7113
allow_undefined_flag='-undefined suppress'
7116
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7117
allow_undefined_flag='-flat_namespace -undefined suppress'
7119
case ${MACOSX_DEPLOYMENT_TARGET} in
7121
allow_undefined_flag='-flat_namespace -undefined suppress'
7124
allow_undefined_flag='-undefined dynamic_lookup'
7130
lt_int_apple_cc_single_mod=no
7131
output_verbose_link_cmd='echo'
7132
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7133
lt_int_apple_cc_single_mod=yes
7135
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7136
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7138
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'
7140
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7141
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7142
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7143
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}'
7145
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}'
7147
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}'
7149
hardcode_automatic=yes
7150
hardcode_shlibpath_var=unsupported
7151
whole_archive_flag_spec='-all_load $convenience'
7152
link_all_deplibs=yes
7159
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7160
hardcode_libdir_flag_spec='-L$libdir'
7161
hardcode_shlibpath_var=no
7168
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7169
# support. Future versions do this automatically, but an explicit c++rt0.o
7170
# does not break anything, and helps significantly (at the cost of a little
7173
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7174
hardcode_libdir_flag_spec='-R$libdir'
7176
hardcode_shlibpath_var=no
7179
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
7181
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7183
hardcode_minus_L=yes
7184
hardcode_shlibpath_var=no
7187
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7188
freebsd* | kfreebsd*-gnu)
7189
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7190
hardcode_libdir_flag_spec='-R$libdir'
7192
hardcode_shlibpath_var=no
7196
if test "$GCC" = yes; then
7197
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'
7199
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'
7201
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7202
hardcode_libdir_separator=:
7205
# hardcode_minus_L: Not really in the search PATH,
7206
# but as the default location of the library.
7207
hardcode_minus_L=yes
7208
export_dynamic_flag_spec='${wl}-E'
7212
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7215
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7218
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7224
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7227
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7231
if test "$with_gnu_ld" = no; then
7234
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7235
hardcode_libdir_flag_spec_ld='+b $libdir'
7236
hardcode_libdir_separator=:
7238
hardcode_shlibpath_var=no
7241
hardcode_libdir_flag_spec='-L$libdir'
7243
hardcode_shlibpath_var=no
7245
# hardcode_minus_L: Not really in the search PATH,
7246
# but as the default location of the library.
7247
hardcode_minus_L=yes
7250
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7251
hardcode_libdir_separator=:
7253
export_dynamic_flag_spec='${wl}-E'
7255
# hardcode_minus_L: Not really in the search PATH,
7256
# but as the default location of the library.
7257
hardcode_minus_L=yes
7263
irix5* | irix6* | nonstopux*)
7264
if test "$GCC" = yes; then
7265
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'
7267
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'
7268
hardcode_libdir_flag_spec_ld='-rpath $libdir'
7270
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7271
hardcode_libdir_separator=:
7272
link_all_deplibs=yes
7275
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7276
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7277
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7279
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7281
hardcode_libdir_flag_spec='-R$libdir'
7283
hardcode_shlibpath_var=no
7287
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7289
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7290
hardcode_libdir_separator=:
7291
hardcode_shlibpath_var=no
7296
hardcode_shlibpath_var=no
7297
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7298
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7299
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7300
export_dynamic_flag_spec='${wl}-E'
7303
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7304
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7305
hardcode_libdir_flag_spec='-R$libdir'
7308
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7309
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7316
hardcode_libdir_flag_spec='-L$libdir'
7317
hardcode_minus_L=yes
7318
allow_undefined_flag=unsupported
7319
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'
7320
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7324
if test "$GCC" = yes; then
7325
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7326
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'
7328
allow_undefined_flag=' -expect_unresolved \*'
7329
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'
7331
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7332
hardcode_libdir_separator=:
7335
osf4* | osf5*) # as osf3* with the addition of -msym flag
7336
if test "$GCC" = yes; then
7337
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7338
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'
7339
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7341
allow_undefined_flag=' -expect_unresolved \*'
7342
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'
7343
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7344
$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'
7346
# Both c and cxx compiler support -rpath directly
7347
hardcode_libdir_flag_spec='-rpath $libdir'
7349
hardcode_libdir_separator=:
7353
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7354
hardcode_shlibpath_var=no
7355
export_dynamic_flag_spec='${wl}-Bexport'
7356
runpath_var=LD_RUN_PATH
7357
hardcode_runpath_var=yes
7361
no_undefined_flag=' -z text'
7362
if test "$GCC" = yes; then
7363
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7364
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7365
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7367
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7368
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7369
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7371
hardcode_libdir_flag_spec='-R$libdir'
7372
hardcode_shlibpath_var=no
7374
solaris2.[0-5] | solaris2.[0-5].*) ;;
7375
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
7376
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7378
link_all_deplibs=yes
7382
if test "x$host_vendor" = xsequent; then
7383
# Use $CC to link under sequent, because it throws in some extra .o
7384
# files that make .init and .fini sections work.
7385
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7387
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7389
hardcode_libdir_flag_spec='-L$libdir'
7391
hardcode_minus_L=yes
7392
hardcode_shlibpath_var=no
7396
case $host_vendor in
7398
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7399
hardcode_direct=yes # is this really true???
7402
## LD is ld it makes a PLAMLIB
7403
## CC just makes a GrossModule.
7404
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7405
reload_cmds='$CC -r -o $output$reload_objs'
7409
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7410
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7413
runpath_var='LD_RUN_PATH'
7414
hardcode_shlibpath_var=no
7418
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7419
hardcode_shlibpath_var=no
7420
export_dynamic_flag_spec='-Bexport'
7424
if test -d /usr/nec; then
7425
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7426
hardcode_shlibpath_var=no
7427
runpath_var=LD_RUN_PATH
7428
hardcode_runpath_var=yes
7434
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7437
hardcode_shlibpath_var=no
7438
hardcode_runpath_var=yes
7439
runpath_var=LD_RUN_PATH
7442
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7443
no_undefined_flag='${wl}-z ${wl}text'
7444
if test "$GCC" = yes; then
7445
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7447
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7449
runpath_var='LD_RUN_PATH'
7450
hardcode_shlibpath_var=no
7454
no_undefined_flag=' -z text'
7455
# $CC -shared without GNU ld will not create a library from C++
7456
# object files and a static libstdc++, better avoid it by now
7457
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7458
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7459
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7460
hardcode_libdir_flag_spec=
7461
hardcode_shlibpath_var=no
7462
runpath_var='LD_RUN_PATH'
7466
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7467
hardcode_libdir_flag_spec='-L$libdir'
7468
hardcode_shlibpath_var=no
7477
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7478
echo "${ECHO_T}$ld_shlibs" >&6
7479
test "$ld_shlibs" = no && can_build_shared=no
7481
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7482
if test "$GCC" = yes; then
7483
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7487
# Do we need to explicitly link libc?
7489
case "x$archive_cmds_need_lc" in
7491
# Assume -lc should be added
7492
archive_cmds_need_lc=yes
7494
if test "$enable_shared" = yes && test "$GCC" = yes; then
7495
case $archive_cmds in
7497
# FIXME: we may have to deal with multi-command sequences.
7500
# Test whether the compiler implicitly links with -lc since on some
7501
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7502
# to ld, don't add -lc before -lgcc.
7503
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7504
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7506
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7508
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7509
(eval $ac_compile) 2>&5
7511
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512
(exit $ac_status); } 2>conftest.err; then
7515
libobjs=conftest.$ac_objext
7517
wl=$lt_prog_compiler_wl
7523
lt_save_allow_undefined_flag=$allow_undefined_flag
7524
allow_undefined_flag=
7525
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7526
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7528
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529
(exit $ac_status); }
7531
archive_cmds_need_lc=no
7533
archive_cmds_need_lc=yes
7535
allow_undefined_flag=$lt_save_allow_undefined_flag
7537
cat conftest.err 1>&5
7540
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7541
echo "${ECHO_T}$archive_cmds_need_lc" >&6
7548
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7549
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7551
libname_spec='lib$name'
7559
shlibpath_overrides_runpath=unknown
7561
dynamic_linker="$host_os ld.so"
7562
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7563
if test "$GCC" = yes; then
7564
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7565
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7566
# if the path contains ";" then we assume it to be the separator
7567
# otherwise default to the standard path separator (i.e. ":") - it is
7568
# assumed that no part of a normal pathname contains ";" but that should
7569
# okay in the real world where ";" in dirpaths is itself problematic.
7570
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7572
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7575
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7577
need_lib_prefix=unknown
7578
hardcode_into_libs=no
7580
# when you set need_version to no, make sure it does not cause -set_version
7581
# flags to be left without arguments
7582
need_version=unknown
7587
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7588
shlibpath_var=LIBPATH
7590
# AIX 3 has no versioning support, so we append a major version to the name.
7591
soname_spec='${libname}${release}${shared_ext}$major'
7598
hardcode_into_libs=yes
7599
if test "$host_cpu" = ia64; then
7600
# AIX 5 supports IA64
7601
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7602
shlibpath_var=LD_LIBRARY_PATH
7604
# With GCC up to 2.95.x, collect2 would create an import file
7605
# for dependence libraries. The import file would start with
7606
# the line `#! .'. This would cause the generated library to
7607
# depend on `.', always an invalid library. This was fixed in
7608
# development snapshots of GCC prior to 3.0.
7610
aix4 | aix4.[01] | aix4.[01].*)
7611
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7613
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7620
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7621
# soname into executable. Probably we can add versioning support to
7622
# collect2, so additional links can be useful in future.
7623
if test "$aix_use_runtimelinking" = yes; then
7624
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
7625
# instead of lib<name>.a to let people know that these are not
7626
# typical AIX shared libraries.
7627
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7629
# We preserve .a as extension for shared libraries through AIX4.2
7630
# and later when we are not doing run time linking.
7631
library_names_spec='${libname}${release}.a $libname.a'
7632
soname_spec='${libname}${release}${shared_ext}$major'
7634
shlibpath_var=LIBPATH
7639
library_names_spec='$libname.ixlibrary $libname.a'
7640
# Create ${libname}_ixlibrary.a entries in /sys/libs.
7641
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'
7645
library_names_spec='${libname}${shared_ext}'
7646
dynamic_linker="$host_os ld.so"
7647
shlibpath_var=LIBRARY_PATH
7653
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7654
soname_spec='${libname}${release}${shared_ext}$major'
7655
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7656
shlibpath_var=LD_LIBRARY_PATH
7657
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7658
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7659
# the default ld.so.conf also contains /usr/contrib/lib and
7660
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7661
# libtool to hard-code these into programs
7664
cygwin* | mingw* | pw32*)
7665
version_type=windows
7670
case $GCC,$host_os in
7671
yes,cygwin* | yes,mingw* | yes,pw32*)
7672
library_names_spec='$libname.dll.a'
7673
# DLL is installed to $(libdir)/../bin by postinstall_cmds
7674
postinstall_cmds='base_file=`basename \${file}`~
7675
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7676
dldir=$destdir/`dirname \$dlpath`~
7677
test -d \$dldir || mkdir -p \$dldir~
7678
$install_prog $dir/$dlname \$dldir/$dlname'
7679
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7680
dlpath=$dir/\$dldll~
7682
shlibpath_overrides_runpath=yes
7686
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
7687
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7688
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7691
# MinGW DLLs use traditional 'lib' prefix
7692
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7693
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7694
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7695
# It is most probably a Windows format PATH printed by
7696
# mingw gcc, but we are running on Cygwin. Gcc prints its search
7697
# path with ; separators, and with drive letters. We can handle the
7698
# drive letters (cygwin fileutils understands them), so leave them,
7699
# especially as we might pass files found there to a mingw objdump,
7700
# which wouldn't understand a cygwinified path. Ahh.
7701
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7703
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7707
# pw32 DLLs use 'pw' prefix rather than 'lib'
7708
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7714
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7717
dynamic_linker='Win32 ld.exe'
7718
# FIXME: first we should search . and the directory the executable is in
7722
darwin* | rhapsody*)
7723
dynamic_linker="$host_os dyld"
7727
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7728
soname_spec='${libname}${release}${major}$shared_ext'
7729
shlibpath_overrides_runpath=yes
7730
shlibpath_var=DYLD_LIBRARY_PATH
7731
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7732
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7733
if test "$GCC" = yes; then
7734
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"`
7736
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7738
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7745
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7746
soname_spec='${libname}${release}${shared_ext}$major'
7747
shlibpath_var=LD_LIBRARY_PATH
7758
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7759
soname_spec='${libname}${release}${shared_ext}$major'
7760
shlibpath_var=LD_LIBRARY_PATH
7761
shlibpath_overrides_runpath=no
7762
hardcode_into_libs=yes
7763
dynamic_linker='GNU ld.so'
7767
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7768
version_type=freebsd-$objformat
7769
case $version_type in
7771
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7776
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7780
shlibpath_var=LD_LIBRARY_PATH
7783
shlibpath_overrides_runpath=yes
7785
freebsd3.01* | freebsdelf3.01*)
7786
shlibpath_overrides_runpath=yes
7787
hardcode_into_libs=yes
7790
shlibpath_overrides_runpath=no
7791
hardcode_into_libs=yes
7800
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7801
soname_spec='${libname}${release}${shared_ext}$major'
7802
shlibpath_var=LD_LIBRARY_PATH
7803
hardcode_into_libs=yes
7806
hpux9* | hpux10* | hpux11*)
7807
# Give a soname corresponding to the major version so that dld.sl refuses to
7808
# link against other versions.
7815
hardcode_into_libs=yes
7816
dynamic_linker="$host_os dld.so"
7817
shlibpath_var=LD_LIBRARY_PATH
7818
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7819
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7820
soname_spec='${libname}${release}${shared_ext}$major'
7821
if test "X$HPUX_IA64_MODE" = X32; then
7822
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7824
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7826
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7830
hardcode_into_libs=yes
7831
dynamic_linker="$host_os dld.sl"
7832
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7833
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7834
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7835
soname_spec='${libname}${release}${shared_ext}$major'
7836
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7837
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7841
dynamic_linker="$host_os dld.sl"
7842
shlibpath_var=SHLIB_PATH
7843
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7844
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7845
soname_spec='${libname}${release}${shared_ext}$major'
7848
# HP-UX runs *really* slowly unless shared libraries are mode 555.
7849
postinstall_cmds='chmod 555 $lib'
7852
irix5* | irix6* | nonstopux*)
7854
nonstopux*) version_type=nonstopux ;;
7856
if test "$lt_cv_prog_gnu_ld" = yes; then
7864
soname_spec='${libname}${release}${shared_ext}$major'
7865
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7867
irix5* | nonstopux*)
7871
case $LD in # libtool.m4 will add one of these switches to LD
7872
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7873
libsuff= shlibsuff= libmagic=32-bit;;
7874
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7875
libsuff=32 shlibsuff=N32 libmagic=N32;;
7876
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7877
libsuff=64 shlibsuff=64 libmagic=64-bit;;
7878
*) libsuff= shlibsuff= libmagic=never-match;;
7882
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7883
shlibpath_overrides_runpath=no
7884
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7885
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7886
hardcode_into_libs=yes
7889
# No shared lib support for Linux oldld, aout, or coff.
7890
linux*oldld* | linux*aout* | linux*coff*)
7894
# This must be Linux ELF.
7899
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7900
soname_spec='${libname}${release}${shared_ext}$major'
7901
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7902
shlibpath_var=LD_LIBRARY_PATH
7903
shlibpath_overrides_runpath=no
7904
# This implies no fast_install, which is unacceptable.
7905
# Some rework will be needed to allow for fast_install
7906
# before this can be enabled.
7907
hardcode_into_libs=yes
7909
# Append ld.so.conf contents to the search path
7910
if test -f /etc/ld.so.conf; then
7911
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7912
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7915
# We used to test for /lib/ld.so.1 and disable shared libraries on
7916
# powerpc, because MkLinux only supported shared libraries with the
7917
# GNU dynamic linker. Since this was broken with cross compilers,
7918
# most powerpc-linux boxes support dynamic linking these days and
7919
# people can always --disable-shared, the test was removed, and we
7920
# assume the GNU/Linux dynamic linker is in use.
7921
dynamic_linker='GNU/Linux ld.so'
7928
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7929
soname_spec='${libname}${release}${shared_ext}$major'
7930
shlibpath_var=LD_LIBRARY_PATH
7931
shlibpath_overrides_runpath=no
7932
hardcode_into_libs=yes
7933
dynamic_linker='NetBSD ld.elf_so'
7940
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7941
soname_spec='${libname}${release}${shared_ext}$major'
7942
shlibpath_var=LD_LIBRARY_PATH
7943
shlibpath_overrides_runpath=no
7944
hardcode_into_libs=yes
7945
dynamic_linker='GNU ld.so'
7952
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7953
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7954
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7955
dynamic_linker='NetBSD (a.out) ld.so'
7957
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7958
soname_spec='${libname}${release}${shared_ext}$major'
7959
dynamic_linker='NetBSD ld.elf_so'
7961
shlibpath_var=LD_LIBRARY_PATH
7962
shlibpath_overrides_runpath=yes
7963
hardcode_into_libs=yes
7968
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7969
shlibpath_var=LD_LIBRARY_PATH
7970
shlibpath_overrides_runpath=yes
7977
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7978
soname_spec='${libname}${release}${shared_ext}$major'
7979
shlibpath_var=LD_LIBRARY_PATH
7980
shlibpath_overrides_runpath=yes
7987
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7988
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7989
shlibpath_var=LD_LIBRARY_PATH
7990
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7992
openbsd2.[89] | openbsd2.[89].*)
7993
shlibpath_overrides_runpath=no
7996
shlibpath_overrides_runpath=yes
8000
shlibpath_overrides_runpath=yes
8005
libname_spec='$name'
8008
library_names_spec='$libname${shared_ext} $libname.a'
8009
dynamic_linker='OS/2 ld.exe'
8010
shlibpath_var=LIBPATH
8013
osf3* | osf4* | osf5*)
8017
soname_spec='${libname}${release}${shared_ext}$major'
8018
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8019
shlibpath_var=LD_LIBRARY_PATH
8020
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8021
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8026
soname_spec='${libname}${release}${shared_ext}$major'
8027
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8028
shlibpath_var=LD_LIBRARY_PATH
8035
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8036
soname_spec='${libname}${release}${shared_ext}$major'
8037
shlibpath_var=LD_LIBRARY_PATH
8038
shlibpath_overrides_runpath=yes
8039
hardcode_into_libs=yes
8040
# ldd complains unless libraries are executable
8041
postinstall_cmds='chmod +x $lib'
8046
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8047
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8048
shlibpath_var=LD_LIBRARY_PATH
8049
shlibpath_overrides_runpath=yes
8050
if test "$with_gnu_ld" = yes; then
8056
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8058
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8059
soname_spec='${libname}${release}${shared_ext}$major'
8060
shlibpath_var=LD_LIBRARY_PATH
8061
case $host_vendor in
8063
shlibpath_overrides_runpath=no
8065
export_dynamic_flag_spec='${wl}-Blargedynsym'
8066
runpath_var=LD_RUN_PATH
8074
shlibpath_overrides_runpath=no
8075
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8081
if test -d /usr/nec ;then
8083
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8084
soname_spec='$libname${shared_ext}.$major'
8085
shlibpath_var=LD_LIBRARY_PATH
8091
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8092
soname_spec='${libname}${release}${shared_ext}$major'
8093
shlibpath_var=LD_LIBRARY_PATH
8100
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8101
echo "${ECHO_T}$dynamic_linker" >&6
8102
test "$dynamic_linker" = no && can_build_shared=no
8104
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8105
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8107
if test -n "$hardcode_libdir_flag_spec" || \
8108
test -n "$runpath_var " || \
8109
test "X$hardcode_automatic"="Xyes" ; then
8111
# We can hardcode non-existant directories.
8112
if test "$hardcode_direct" != no &&
8113
# If the only mechanism to avoid hardcoding is shlibpath_var, we
8114
# have to relink, otherwise we might link with an installed library
8115
# when we should be linking with a yet-to-be-installed one
8116
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8117
test "$hardcode_minus_L" != no; then
8118
# Linking always hardcodes the temporary library directory.
8119
hardcode_action=relink
8121
# We can link without hardcoding, and we can hardcode nonexisting dirs.
8122
hardcode_action=immediate
8125
# We cannot hardcode anything, or else we can only hardcode existing
8127
hardcode_action=unsupported
8129
echo "$as_me:$LINENO: result: $hardcode_action" >&5
8130
echo "${ECHO_T}$hardcode_action" >&6
8132
if test "$hardcode_action" = relink; then
8133
# Fast installation is not supported
8134
enable_fast_install=no
8135
elif test "$shlibpath_overrides_runpath" = yes ||
8136
test "$enable_shared" = no; then
8137
# Fast installation is not necessary
8138
enable_fast_install=needless
8143
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8144
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8145
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8146
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8147
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8148
echo "$as_me:$LINENO: result: yes" >&5
8149
echo "${ECHO_T}yes" >&6
8151
# FIXME - insert some real tests, host_os isn't really good enough
8154
if test -n "$STRIP" ; then
8155
striplib="$STRIP -x"
8156
echo "$as_me:$LINENO: result: yes" >&5
8157
echo "${ECHO_T}yes" >&6
8159
echo "$as_me:$LINENO: result: no" >&5
8160
echo "${ECHO_T}no" >&6
8164
echo "$as_me:$LINENO: result: no" >&5
8165
echo "${ECHO_T}no" >&6
8170
if test "x$enable_dlopen" != xyes; then
8171
enable_dlopen=unknown
8172
enable_dlopen_self=unknown
8173
enable_dlopen_self_static=unknown
8180
lt_cv_dlopen="load_add_on"
8182
lt_cv_dlopen_self=yes
8186
lt_cv_dlopen="LoadLibrary"
8191
lt_cv_dlopen="dlopen"
8196
# if libdl is installed we need to link against it
8197
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8198
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8199
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8200
echo $ECHO_N "(cached) $ECHO_C" >&6
8202
ac_check_lib_save_LIBS=$LIBS
8204
cat >conftest.$ac_ext <<_ACEOF
8207
cat confdefs.h >>conftest.$ac_ext
8208
cat >>conftest.$ac_ext <<_ACEOF
8209
/* end confdefs.h. */
8211
/* Override any gcc2 internal prototype to avoid an error. */
8215
/* We use char because int might match the return type of a gcc2
8216
builtin and then its argument prototype would still apply. */
8226
rm -f conftest.$ac_objext conftest$ac_exeext
8227
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8228
(eval $ac_link) 2>conftest.er1
8230
grep -v '^ *+' conftest.er1 >conftest.err
8232
cat conftest.err >&5
8233
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234
(exit $ac_status); } &&
8235
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8236
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240
(exit $ac_status); }; } &&
8241
{ ac_try='test -s conftest$ac_exeext'
8242
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246
(exit $ac_status); }; }; then
8247
ac_cv_lib_dl_dlopen=yes
8249
echo "$as_me: failed program was:" >&5
8250
sed 's/^/| /' conftest.$ac_ext >&5
8252
ac_cv_lib_dl_dlopen=no
8254
rm -f conftest.err conftest.$ac_objext \
8255
conftest$ac_exeext conftest.$ac_ext
8256
LIBS=$ac_check_lib_save_LIBS
8258
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8259
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8260
if test $ac_cv_lib_dl_dlopen = yes; then
8261
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8266
lt_cv_dlopen_self=yes
8273
echo "$as_me:$LINENO: checking for shl_load" >&5
8274
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8275
if test "${ac_cv_func_shl_load+set}" = set; then
8276
echo $ECHO_N "(cached) $ECHO_C" >&6
8278
cat >conftest.$ac_ext <<_ACEOF
8281
cat confdefs.h >>conftest.$ac_ext
8282
cat >>conftest.$ac_ext <<_ACEOF
8283
/* end confdefs.h. */
8284
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8285
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8286
#define shl_load innocuous_shl_load
8288
/* System header to define __stub macros and hopefully few prototypes,
8289
which can conflict with char shl_load (); below.
8290
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8291
<limits.h> exists even on freestanding compilers. */
8294
# include <limits.h>
8296
# include <assert.h>
8301
/* Override any gcc2 internal prototype to avoid an error. */
8306
/* We use char because int might match the return type of a gcc2
8307
builtin and then its argument prototype would still apply. */
8309
/* The GNU C library defines this for functions which it implements
8310
to always fail with ENOSYS. Some functions are actually named
8311
something starting with __ and the normal name is an alias. */
8312
#if defined (__stub_shl_load) || defined (__stub___shl_load)
8315
char (*f) () = shl_load;
8324
return f != shl_load;
8329
rm -f conftest.$ac_objext conftest$ac_exeext
8330
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8331
(eval $ac_link) 2>conftest.er1
8333
grep -v '^ *+' conftest.er1 >conftest.err
8335
cat conftest.err >&5
8336
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337
(exit $ac_status); } &&
8338
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8339
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8342
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343
(exit $ac_status); }; } &&
8344
{ ac_try='test -s conftest$ac_exeext'
8345
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349
(exit $ac_status); }; }; then
8350
ac_cv_func_shl_load=yes
8352
echo "$as_me: failed program was:" >&5
8353
sed 's/^/| /' conftest.$ac_ext >&5
8355
ac_cv_func_shl_load=no
8357
rm -f conftest.err conftest.$ac_objext \
8358
conftest$ac_exeext conftest.$ac_ext
8360
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8361
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8362
if test $ac_cv_func_shl_load = yes; then
8363
lt_cv_dlopen="shl_load"
8365
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8366
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8367
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8368
echo $ECHO_N "(cached) $ECHO_C" >&6
8370
ac_check_lib_save_LIBS=$LIBS
8372
cat >conftest.$ac_ext <<_ACEOF
8375
cat confdefs.h >>conftest.$ac_ext
8376
cat >>conftest.$ac_ext <<_ACEOF
8377
/* end confdefs.h. */
8379
/* Override any gcc2 internal prototype to avoid an error. */
8383
/* We use char because int might match the return type of a gcc2
8384
builtin and then its argument prototype would still apply. */
8394
rm -f conftest.$ac_objext conftest$ac_exeext
8395
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8396
(eval $ac_link) 2>conftest.er1
8398
grep -v '^ *+' conftest.er1 >conftest.err
8400
cat conftest.err >&5
8401
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402
(exit $ac_status); } &&
8403
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8404
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408
(exit $ac_status); }; } &&
8409
{ ac_try='test -s conftest$ac_exeext'
8410
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414
(exit $ac_status); }; }; then
8415
ac_cv_lib_dld_shl_load=yes
8417
echo "$as_me: failed program was:" >&5
8418
sed 's/^/| /' conftest.$ac_ext >&5
8420
ac_cv_lib_dld_shl_load=no
8422
rm -f conftest.err conftest.$ac_objext \
8423
conftest$ac_exeext conftest.$ac_ext
8424
LIBS=$ac_check_lib_save_LIBS
8426
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8427
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8428
if test $ac_cv_lib_dld_shl_load = yes; then
8429
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8431
echo "$as_me:$LINENO: checking for dlopen" >&5
8432
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8433
if test "${ac_cv_func_dlopen+set}" = set; then
8434
echo $ECHO_N "(cached) $ECHO_C" >&6
8436
cat >conftest.$ac_ext <<_ACEOF
8439
cat confdefs.h >>conftest.$ac_ext
8440
cat >>conftest.$ac_ext <<_ACEOF
8441
/* end confdefs.h. */
8442
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8443
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8444
#define dlopen innocuous_dlopen
8446
/* System header to define __stub macros and hopefully few prototypes,
8447
which can conflict with char dlopen (); below.
8448
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8449
<limits.h> exists even on freestanding compilers. */
8452
# include <limits.h>
8454
# include <assert.h>
8459
/* Override any gcc2 internal prototype to avoid an error. */
8464
/* We use char because int might match the return type of a gcc2
8465
builtin and then its argument prototype would still apply. */
8467
/* The GNU C library defines this for functions which it implements
8468
to always fail with ENOSYS. Some functions are actually named
8469
something starting with __ and the normal name is an alias. */
8470
#if defined (__stub_dlopen) || defined (__stub___dlopen)
8473
char (*f) () = dlopen;
8487
rm -f conftest.$ac_objext conftest$ac_exeext
8488
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8489
(eval $ac_link) 2>conftest.er1
8491
grep -v '^ *+' conftest.er1 >conftest.err
8493
cat conftest.err >&5
8494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495
(exit $ac_status); } &&
8496
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8497
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501
(exit $ac_status); }; } &&
8502
{ ac_try='test -s conftest$ac_exeext'
8503
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507
(exit $ac_status); }; }; then
8508
ac_cv_func_dlopen=yes
8510
echo "$as_me: failed program was:" >&5
8511
sed 's/^/| /' conftest.$ac_ext >&5
8513
ac_cv_func_dlopen=no
8515
rm -f conftest.err conftest.$ac_objext \
8516
conftest$ac_exeext conftest.$ac_ext
8518
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8519
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8520
if test $ac_cv_func_dlopen = yes; then
8521
lt_cv_dlopen="dlopen"
8523
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8524
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8525
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8526
echo $ECHO_N "(cached) $ECHO_C" >&6
8528
ac_check_lib_save_LIBS=$LIBS
8530
cat >conftest.$ac_ext <<_ACEOF
8533
cat confdefs.h >>conftest.$ac_ext
8534
cat >>conftest.$ac_ext <<_ACEOF
8535
/* end confdefs.h. */
8537
/* Override any gcc2 internal prototype to avoid an error. */
8541
/* We use char because int might match the return type of a gcc2
8542
builtin and then its argument prototype would still apply. */
8552
rm -f conftest.$ac_objext conftest$ac_exeext
8553
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8554
(eval $ac_link) 2>conftest.er1
8556
grep -v '^ *+' conftest.er1 >conftest.err
8558
cat conftest.err >&5
8559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560
(exit $ac_status); } &&
8561
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8562
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566
(exit $ac_status); }; } &&
8567
{ ac_try='test -s conftest$ac_exeext'
8568
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572
(exit $ac_status); }; }; then
8573
ac_cv_lib_dl_dlopen=yes
8575
echo "$as_me: failed program was:" >&5
8576
sed 's/^/| /' conftest.$ac_ext >&5
8578
ac_cv_lib_dl_dlopen=no
8580
rm -f conftest.err conftest.$ac_objext \
8581
conftest$ac_exeext conftest.$ac_ext
8582
LIBS=$ac_check_lib_save_LIBS
8584
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8585
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8586
if test $ac_cv_lib_dl_dlopen = yes; then
8587
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8589
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8590
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8591
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8592
echo $ECHO_N "(cached) $ECHO_C" >&6
8594
ac_check_lib_save_LIBS=$LIBS
8596
cat >conftest.$ac_ext <<_ACEOF
8599
cat confdefs.h >>conftest.$ac_ext
8600
cat >>conftest.$ac_ext <<_ACEOF
8601
/* end confdefs.h. */
8603
/* Override any gcc2 internal prototype to avoid an error. */
8607
/* We use char because int might match the return type of a gcc2
8608
builtin and then its argument prototype would still apply. */
8618
rm -f conftest.$ac_objext conftest$ac_exeext
8619
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8620
(eval $ac_link) 2>conftest.er1
8622
grep -v '^ *+' conftest.er1 >conftest.err
8624
cat conftest.err >&5
8625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626
(exit $ac_status); } &&
8627
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8628
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632
(exit $ac_status); }; } &&
8633
{ ac_try='test -s conftest$ac_exeext'
8634
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638
(exit $ac_status); }; }; then
8639
ac_cv_lib_svld_dlopen=yes
8641
echo "$as_me: failed program was:" >&5
8642
sed 's/^/| /' conftest.$ac_ext >&5
8644
ac_cv_lib_svld_dlopen=no
8646
rm -f conftest.err conftest.$ac_objext \
8647
conftest$ac_exeext conftest.$ac_ext
8648
LIBS=$ac_check_lib_save_LIBS
8650
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8651
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8652
if test $ac_cv_lib_svld_dlopen = yes; then
8653
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8655
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8656
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8657
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8658
echo $ECHO_N "(cached) $ECHO_C" >&6
8660
ac_check_lib_save_LIBS=$LIBS
8662
cat >conftest.$ac_ext <<_ACEOF
8665
cat confdefs.h >>conftest.$ac_ext
8666
cat >>conftest.$ac_ext <<_ACEOF
8667
/* end confdefs.h. */
8669
/* Override any gcc2 internal prototype to avoid an error. */
8673
/* We use char because int might match the return type of a gcc2
8674
builtin and then its argument prototype would still apply. */
8684
rm -f conftest.$ac_objext conftest$ac_exeext
8685
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8686
(eval $ac_link) 2>conftest.er1
8688
grep -v '^ *+' conftest.er1 >conftest.err
8690
cat conftest.err >&5
8691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692
(exit $ac_status); } &&
8693
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8694
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698
(exit $ac_status); }; } &&
8699
{ ac_try='test -s conftest$ac_exeext'
8700
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704
(exit $ac_status); }; }; then
8705
ac_cv_lib_dld_dld_link=yes
8707
echo "$as_me: failed program was:" >&5
8708
sed 's/^/| /' conftest.$ac_ext >&5
8710
ac_cv_lib_dld_dld_link=no
8712
rm -f conftest.err conftest.$ac_objext \
8713
conftest$ac_exeext conftest.$ac_ext
8714
LIBS=$ac_check_lib_save_LIBS
8716
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8717
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8718
if test $ac_cv_lib_dld_dld_link = yes; then
8719
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8740
if test "x$lt_cv_dlopen" != xno; then
8746
case $lt_cv_dlopen in
8748
save_CPPFLAGS="$CPPFLAGS"
8749
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8751
save_LDFLAGS="$LDFLAGS"
8752
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8755
LIBS="$lt_cv_dlopen_libs $LIBS"
8757
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8758
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8759
if test "${lt_cv_dlopen_self+set}" = set; then
8760
echo $ECHO_N "(cached) $ECHO_C" >&6
8762
if test "$cross_compiling" = yes; then :
8763
lt_cv_dlopen_self=cross
8765
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8766
lt_status=$lt_dlunknown
8767
cat > conftest.$ac_ext <<EOF
8768
#line 8768 "configure"
8769
#include "confdefs.h"
8778
# define LT_DLGLOBAL RTLD_GLOBAL
8781
# define LT_DLGLOBAL DL_GLOBAL
8783
# define LT_DLGLOBAL 0
8787
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8788
find out it does not work in some platform. */
8789
#ifndef LT_DLLAZY_OR_NOW
8791
# define LT_DLLAZY_OR_NOW RTLD_LAZY
8794
# define LT_DLLAZY_OR_NOW DL_LAZY
8797
# define LT_DLLAZY_OR_NOW RTLD_NOW
8800
# define LT_DLLAZY_OR_NOW DL_NOW
8802
# define LT_DLLAZY_OR_NOW 0
8810
extern "C" void exit (int);
8813
void fnord() { int i=42;}
8816
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8817
int status = $lt_dlunknown;
8821
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8822
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8823
/* dlclose (self); */
8829
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8830
(eval $ac_link) 2>&5
8832
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8834
(./conftest; exit; ) 2>/dev/null
8837
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8838
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8839
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8842
# compilation failed
8843
lt_cv_dlopen_self=no
8850
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8851
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8853
if test "x$lt_cv_dlopen_self" = xyes; then
8854
LDFLAGS="$LDFLAGS $link_static_flag"
8855
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8856
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8857
if test "${lt_cv_dlopen_self_static+set}" = set; then
8858
echo $ECHO_N "(cached) $ECHO_C" >&6
8860
if test "$cross_compiling" = yes; then :
8861
lt_cv_dlopen_self_static=cross
8863
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8864
lt_status=$lt_dlunknown
8865
cat > conftest.$ac_ext <<EOF
8866
#line 8866 "configure"
8867
#include "confdefs.h"
8876
# define LT_DLGLOBAL RTLD_GLOBAL
8879
# define LT_DLGLOBAL DL_GLOBAL
8881
# define LT_DLGLOBAL 0
8885
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8886
find out it does not work in some platform. */
8887
#ifndef LT_DLLAZY_OR_NOW
8889
# define LT_DLLAZY_OR_NOW RTLD_LAZY
8892
# define LT_DLLAZY_OR_NOW DL_LAZY
8895
# define LT_DLLAZY_OR_NOW RTLD_NOW
8898
# define LT_DLLAZY_OR_NOW DL_NOW
8900
# define LT_DLLAZY_OR_NOW 0
8908
extern "C" void exit (int);
8911
void fnord() { int i=42;}
8914
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8915
int status = $lt_dlunknown;
8919
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8920
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8921
/* dlclose (self); */
8927
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8928
(eval $ac_link) 2>&5
8930
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8932
(./conftest; exit; ) 2>/dev/null
8935
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8936
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8937
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8940
# compilation failed
8941
lt_cv_dlopen_self_static=no
8948
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8949
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8952
CPPFLAGS="$save_CPPFLAGS"
8953
LDFLAGS="$save_LDFLAGS"
8958
case $lt_cv_dlopen_self in
8959
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8960
*) enable_dlopen_self=unknown ;;
8963
case $lt_cv_dlopen_self_static in
8964
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8965
*) enable_dlopen_self_static=unknown ;;
8970
# Report which librarie types wil actually be built
8971
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8972
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8973
echo "$as_me:$LINENO: result: $can_build_shared" >&5
8974
echo "${ECHO_T}$can_build_shared" >&6
8976
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8977
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8978
test "$can_build_shared" = "no" && enable_shared=no
8980
# On AIX, shared libraries and static libraries use the same namespace, and
8981
# are all built from PIC.
8984
test "$enable_shared" = yes && enable_static=no
8985
if test -n "$RANLIB"; then
8986
archive_cmds="$archive_cmds~\$RANLIB \$lib"
8987
postinstall_cmds='$RANLIB $lib'
8992
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8993
test "$enable_shared" = yes && enable_static=no
8996
darwin* | rhapsody*)
8997
if test "$GCC" = yes; then
8998
archive_cmds_need_lc=no
9000
rhapsody* | darwin1.[012])
9001
allow_undefined_flag='-undefined suppress'
9004
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9005
allow_undefined_flag='-flat_namespace -undefined suppress'
9007
case ${MACOSX_DEPLOYMENT_TARGET} in
9009
allow_undefined_flag='-flat_namespace -undefined suppress'
9012
allow_undefined_flag='-undefined dynamic_lookup'
9018
output_verbose_link_cmd='echo'
9019
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9020
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9021
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9022
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}'
9023
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}'
9025
hardcode_automatic=yes
9026
hardcode_shlibpath_var=unsupported
9027
whole_archive_flag_spec='-all_load $convenience'
9028
link_all_deplibs=yes
9034
echo "$as_me:$LINENO: result: $enable_shared" >&5
9035
echo "${ECHO_T}$enable_shared" >&6
9037
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9038
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9039
# Make sure either enable_shared or enable_static is yes.
9040
test "$enable_shared" = yes || enable_static=yes
9041
echo "$as_me:$LINENO: result: $enable_static" >&5
9042
echo "${ECHO_T}$enable_static" >&6
9044
# The else clause should only fire when bootstrapping the
9045
# libtool distribution, otherwise you forgot to ship ltmain.sh
9046
# with your package, and you will get complaints that there are
9047
# no rules to generate ltmain.sh.
9048
if test -f "$ltmain"; then
9049
# See if we are running on zsh, and set the options which allow our commands through
9050
# without removal of \ escapes.
9051
if test -n "${ZSH_VERSION+set}" ; then
9052
setopt NO_GLOB_SUBST
9054
# Now quote all the things that may contain metacharacters while being
9055
# careful not to overquote the AC_SUBSTed values. We take copies of the
9056
# variables and quote the copies for generation of the libtool script.
9057
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9059
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9060
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9061
deplibs_check_method reload_flag reload_cmds need_locks \
9062
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9063
lt_cv_sys_global_symbol_to_c_name_address \
9064
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9065
old_postinstall_cmds old_postuninstall_cmds \
9069
lt_prog_compiler_wl \
9070
lt_prog_compiler_pic \
9071
lt_prog_compiler_static \
9072
lt_prog_compiler_no_builtin_flag \
9073
export_dynamic_flag_spec \
9074
thread_safe_flag_spec \
9075
whole_archive_flag_spec \
9076
enable_shared_with_static_runtimes \
9078
old_archive_from_new_cmds \
9083
compiler_lib_search_path \
9085
archive_expsym_cmds \
9087
postuninstall_cmds \
9088
old_archive_from_expsyms_cmds \
9089
allow_undefined_flag \
9091
export_symbols_cmds \
9092
hardcode_libdir_flag_spec \
9093
hardcode_libdir_flag_spec_ld \
9094
hardcode_libdir_separator \
9095
hardcode_automatic \
9097
module_expsym_cmds \
9098
lt_cv_prog_compiler_c_o \
9103
old_archive_cmds | \
9104
old_archive_from_new_cmds | \
9106
archive_expsym_cmds | \
9108
module_expsym_cmds | \
9109
old_archive_from_expsyms_cmds | \
9110
export_symbols_cmds | \
9111
extract_expsyms_cmds | reload_cmds | finish_cmds | \
9112
postinstall_cmds | postuninstall_cmds | \
9113
old_postinstall_cmds | old_postuninstall_cmds | \
9114
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9115
# Double-quote double-evaled strings.
9116
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9119
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9125
*'\$0 --fallback-echo"')
9126
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9131
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9133
{ echo "$as_me:$LINENO: creating $ofile" >&5
9134
echo "$as_me: creating $ofile" >&6;}
9136
cat <<__EOF__ >> "$cfgfile"
9139
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9140
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9141
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9143
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9144
# Free Software Foundation, Inc.
9146
# This file is part of GNU Libtool:
9147
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9149
# This program is free software; you can redistribute it and/or modify
9150
# it under the terms of the GNU General Public License as published by
9151
# the Free Software Foundation; either version 2 of the License, or
9152
# (at your option) any later version.
9154
# This program is distributed in the hope that it will be useful, but
9155
# WITHOUT ANY WARRANTY; without even the implied warranty of
9156
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9157
# General Public License for more details.
9159
# You should have received a copy of the GNU General Public License
9160
# along with this program; if not, write to the Free Software
9161
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9163
# As a special exception to the GNU General Public License, if you
9164
# distribute this file as part of a program that contains a
9165
# configuration script generated by Autoconf, you may include it under
9166
# the same distribution terms that you use for the rest of that program.
9168
# A sed program that does not truncate output.
9171
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9172
Xsed="$SED -e s/^X//"
9174
# The HP-UX ksh and POSIX shell print the target directory to stdout
9176
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9178
# The names of the tagged configurations supported by this script.
9181
# ### BEGIN LIBTOOL CONFIG
9183
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9185
# Shell to use when invoking shell scripts.
9188
# Whether or not to build shared libraries.
9189
build_libtool_libs=$enable_shared
9191
# Whether or not to build static libraries.
9192
build_old_libs=$enable_static
9194
# Whether or not to add -lc for building shared libraries.
9195
build_libtool_need_lc=$archive_cmds_need_lc
9197
# Whether or not to disallow shared libs when runtime libs are static
9198
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9200
# Whether or not to optimize for fast installation.
9201
fast_install=$enable_fast_install
9204
host_alias=$host_alias
9207
# An echo program that does not interpret backslashes.
9212
AR_FLAGS=$lt_AR_FLAGS
9217
# A language-specific compiler.
9220
# Is the compiler the GNU C compiler?
9226
# The linker used to build libraries.
9229
# Whether we need hard or soft links.
9232
# A BSD-compatible nm program.
9235
# A symbol stripping program
9238
# Used to examine libraries when file_magic_cmd begins "file"
9239
MAGIC_CMD=$MAGIC_CMD
9241
# Used on cygwin: DLL creation program.
9244
# Used on cygwin: object dumper.
9247
# Used on cygwin: assembler.
9250
# The name of the directory that contains temporary libtool files.
9253
# How to create reloadable object files.
9254
reload_flag=$lt_reload_flag
9255
reload_cmds=$lt_reload_cmds
9257
# How to pass a linker flag through the compiler.
9258
wl=$lt_lt_prog_compiler_wl
9260
# Object file suffix (normally "o").
9263
# Old archive suffix (normally "a").
9266
# Shared library suffix (normally ".so").
9267
shrext_cmds='$shrext_cmds'
9269
# Executable file suffix (normally "").
9272
# Additional compiler flags for building library objects.
9273
pic_flag=$lt_lt_prog_compiler_pic
9276
# What is the maximum length of a command?
9277
max_cmd_len=$lt_cv_sys_max_cmd_len
9279
# Does compiler simultaneously support -c and -o options?
9280
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9282
# Must we lock files when doing compilation ?
9283
need_locks=$lt_need_locks
9285
# Do we need the lib prefix for modules?
9286
need_lib_prefix=$need_lib_prefix
9288
# Do we need a version for libraries?
9289
need_version=$need_version
9291
# Whether dlopen is supported.
9292
dlopen_support=$enable_dlopen
9294
# Whether dlopen of programs is supported.
9295
dlopen_self=$enable_dlopen_self
9297
# Whether dlopen of statically linked programs is supported.
9298
dlopen_self_static=$enable_dlopen_self_static
9300
# Compiler flag to prevent dynamic linking.
9301
link_static_flag=$lt_lt_prog_compiler_static
9303
# Compiler flag to turn off builtin functions.
9304
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9306
# Compiler flag to allow reflexive dlopens.
9307
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9309
# Compiler flag to generate shared objects directly from archives.
9310
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9312
# Compiler flag to generate thread-safe objects.
9313
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9315
# Library versioning type.
9316
version_type=$version_type
9318
# Format of library name prefix.
9319
libname_spec=$lt_libname_spec
9321
# List of archive names. First name is the real one, the rest are links.
9322
# The last name is the one that the linker finds with -lNAME.
9323
library_names_spec=$lt_library_names_spec
9325
# The coded name of the library, if different from the real name.
9326
soname_spec=$lt_soname_spec
9328
# Commands used to build and install an old-style archive.
9330
old_archive_cmds=$lt_old_archive_cmds
9331
old_postinstall_cmds=$lt_old_postinstall_cmds
9332
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9334
# Create an old-style archive from a shared archive.
9335
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9337
# Create a temporary old-style archive to link instead of a shared archive.
9338
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9340
# Commands used to build and install a shared archive.
9341
archive_cmds=$lt_archive_cmds
9342
archive_expsym_cmds=$lt_archive_expsym_cmds
9343
postinstall_cmds=$lt_postinstall_cmds
9344
postuninstall_cmds=$lt_postuninstall_cmds
9346
# Commands used to build a loadable module (assumed same as above if empty)
9347
module_cmds=$lt_module_cmds
9348
module_expsym_cmds=$lt_module_expsym_cmds
9350
# Commands to strip libraries.
9351
old_striplib=$lt_old_striplib
9352
striplib=$lt_striplib
9354
# Dependencies to place before the objects being linked to create a
9356
predep_objects=$lt_predep_objects
9358
# Dependencies to place after the objects being linked to create a
9360
postdep_objects=$lt_postdep_objects
9362
# Dependencies to place before the objects being linked to create a
9366
# Dependencies to place after the objects being linked to create a
9368
postdeps=$lt_postdeps
9370
# The library search path used internally by the compiler when linking
9372
compiler_lib_search_path=$lt_compiler_lib_search_path
9374
# Method to check whether dependent libraries are shared objects.
9375
deplibs_check_method=$lt_deplibs_check_method
9377
# Command to use when deplibs_check_method == file_magic.
9378
file_magic_cmd=$lt_file_magic_cmd
9380
# Flag that allows shared libraries with undefined symbols to be built.
9381
allow_undefined_flag=$lt_allow_undefined_flag
9383
# Flag that forces no undefined symbols.
9384
no_undefined_flag=$lt_no_undefined_flag
9386
# Commands used to finish a libtool library installation in a directory.
9387
finish_cmds=$lt_finish_cmds
9389
# Same as above, but a single script fragment to be evaled but not shown.
9390
finish_eval=$lt_finish_eval
9392
# Take the output of nm and produce a listing of raw symbols and C names.
9393
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9395
# Transform the output of nm in a proper C declaration
9396
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9398
# Transform the output of nm in a C name address pair
9399
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9401
# This is the shared library runtime path variable.
9402
runpath_var=$runpath_var
9404
# This is the shared library path variable.
9405
shlibpath_var=$shlibpath_var
9407
# Is shlibpath searched before the hard-coded library search path?
9408
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9410
# How to hardcode a shared library path into an executable.
9411
hardcode_action=$hardcode_action
9413
# Whether we should hardcode library paths into libraries.
9414
hardcode_into_libs=$hardcode_into_libs
9416
# Flag to hardcode \$libdir into a binary during linking.
9417
# This must work even if \$libdir does not exist.
9418
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9420
# If ld is used when linking, flag to hardcode \$libdir into
9421
# a binary during linking. This must work even if \$libdir does
9423
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9425
# Whether we need a single -rpath flag with a separated argument.
9426
hardcode_libdir_separator=$lt_hardcode_libdir_separator
9428
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9430
hardcode_direct=$hardcode_direct
9432
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9434
hardcode_minus_L=$hardcode_minus_L
9436
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9437
# the resulting binary.
9438
hardcode_shlibpath_var=$hardcode_shlibpath_var
9440
# Set to yes if building a shared library automatically hardcodes DIR into the library
9441
# and all subsequent libraries and executables linked against it.
9442
hardcode_automatic=$hardcode_automatic
9444
# Variables whose values should be saved in libtool wrapper scripts and
9445
# restored at relink time.
9446
variables_saved_for_relink="$variables_saved_for_relink"
9448
# Whether libtool must link a program against all its dependency libraries.
9449
link_all_deplibs=$link_all_deplibs
9451
# Compile-time system search path for libraries
9452
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9454
# Run-time system search path for libraries
9455
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9457
# Fix the shell variable \$srcfile for the compiler.
9458
fix_srcfile_path="$fix_srcfile_path"
9460
# Set to yes if exported symbols are required.
9461
always_export_symbols=$always_export_symbols
9463
# The commands to list exported symbols.
9464
export_symbols_cmds=$lt_export_symbols_cmds
9466
# The commands to extract the exported symbol list from a shared archive.
9467
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9469
# Symbols that should not be listed in the preloaded symbols.
9470
exclude_expsyms=$lt_exclude_expsyms
9472
# Symbols that must always be exported.
9473
include_expsyms=$lt_include_expsyms
9475
# ### END LIBTOOL CONFIG
9482
cat <<\EOF >> "$cfgfile"
9484
# AIX sometimes has problems with the GCC collect2 program. For some
9485
# reason, if we set the COLLECT_NAMES environment variable, the problems
9486
# vanish in a puff of smoke.
9487
if test "X${COLLECT_NAMES+set}" != Xset; then
9489
export COLLECT_NAMES
9495
# We use sed instead of cat because bash on DJGPP gets confused if
9496
# if finds mixed CR/LF and LF-only lines. Since sed operates in
9497
# text mode, it properly converts lines to CR/LF. This bash problem
9498
# is reportedly fixed, but why not run on old versions too?
9499
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9501
mv -f "$cfgfile" "$ofile" || \
9502
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9506
# If there is no Makefile yet, we rely on a make rule to execute
9507
# `config.status --recheck' to rerun these tests and create the
9508
# libtool script then.
9509
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9510
if test -f "$ltmain_in"; then
9511
test -f Makefile && make "$ltmain"
9517
ac_cpp='$CPP $CPPFLAGS'
9518
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9519
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9520
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9525
# Check whether --with-tags or --without-tags was given.
9526
if test "${with_tags+set}" = set; then
9527
withval="$with_tags"
9531
if test -f "$ltmain" && test -n "$tagnames"; then
9532
if test ! -f "${ofile}"; then
9533
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9534
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9537
if test -z "$LTCC"; then
9538
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9539
if test -z "$LTCC"; then
9540
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9541
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9543
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9544
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9548
# Extract list of available tagged configurations in $ofile.
9549
# Note that this assumes the entire list is on one line.
9550
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9552
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9553
for tagname in $tagnames; do
9555
# Check whether tagname contains only valid characters
9556
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9558
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9559
echo "$as_me: error: invalid tag name: $tagname" >&2;}
9560
{ (exit 1); exit 1; }; }
9564
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9566
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9567
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9568
{ (exit 1); exit 1; }; }
9571
# Update the list of available tags.
9572
if test -n "$tagname"; then
9573
echo appending configuration tag \"$tagname\" to $ofile
9577
if test -n "$CXX" && test "X$CXX" != "Xno"; then
9579
ac_cpp='$CXXCPP $CPPFLAGS'
9580
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9581
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9582
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9587
archive_cmds_need_lc_CXX=no
9588
allow_undefined_flag_CXX=
9589
always_export_symbols_CXX=no
9590
archive_expsym_cmds_CXX=
9591
export_dynamic_flag_spec_CXX=
9592
hardcode_direct_CXX=no
9593
hardcode_libdir_flag_spec_CXX=
9594
hardcode_libdir_flag_spec_ld_CXX=
9595
hardcode_libdir_separator_CXX=
9596
hardcode_minus_L_CXX=no
9597
hardcode_automatic_CXX=no
9599
module_expsym_cmds_CXX=
9600
link_all_deplibs_CXX=unknown
9601
old_archive_cmds_CXX=$old_archive_cmds
9602
no_undefined_flag_CXX=
9603
whole_archive_flag_spec_CXX=
9604
enable_shared_with_static_runtimes_CXX=no
9606
# Dependencies to place before and after the object being linked:
9608
postdep_objects_CXX=
9611
compiler_lib_search_path_CXX=
9613
# Source file extension for C++ test sources.
9616
# Object file extension for compiled C++ test sources.
9620
# Code to be used in simple compile tests
9621
lt_simple_compile_test_code="int some_variable = 0;\n"
9623
# Code to be used in simple link tests
9624
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9626
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9628
# If no C compiler was specified, use CC.
9631
# Allow CC to be a program name with arguments.
9635
# Allow CC to be a program name with arguments.
9640
lt_save_with_gnu_ld=$with_gnu_ld
9641
lt_save_path_LD=$lt_cv_path_LD
9642
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9643
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9645
unset lt_cv_prog_gnu_ld
9647
if test -n "${lt_cv_path_LDCXX+set}"; then
9648
lt_cv_path_LD=$lt_cv_path_LDCXX
9652
test -z "${LDCXX+set}" || LD=$LDCXX
9656
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9658
# We don't want -fno-exception wen compiling C++ code, so set the
9659
# no_builtin_flag separately
9660
if test "$GXX" = yes; then
9661
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9663
lt_prog_compiler_no_builtin_flag_CXX=
9666
if test "$GXX" = yes; then
9667
# Set up default GNU C++ configuration
9670
# Check whether --with-gnu-ld or --without-gnu-ld was given.
9671
if test "${with_gnu_ld+set}" = set; then
9672
withval="$with_gnu_ld"
9673
test "$withval" = no || with_gnu_ld=yes
9678
if test "$GCC" = yes; then
9679
# Check if gcc -print-prog-name=ld gives a path.
9680
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9681
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9684
# gcc leaves a trailing carriage return which upsets mingw
9685
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9687
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9690
# Accept absolute paths.
9692
re_direlt='/[^/][^/]*/\.\./'
9693
# Canonicalize the pathname of ld
9694
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9695
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9696
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9698
test -z "$LD" && LD="$ac_prog"
9701
# If it fails, then pretend we aren't using GCC.
9705
# If it is relative, then search for the first ld in PATH.
9709
elif test "$with_gnu_ld" = yes; then
9710
echo "$as_me:$LINENO: checking for GNU ld" >&5
9711
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9713
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9714
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9716
if test "${lt_cv_path_LD+set}" = set; then
9717
echo $ECHO_N "(cached) $ECHO_C" >&6
9719
if test -z "$LD"; then
9720
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9721
for ac_dir in $PATH; do
9723
test -z "$ac_dir" && ac_dir=.
9724
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9725
lt_cv_path_LD="$ac_dir/$ac_prog"
9726
# Check to see if the program is GNU ld. I'd rather use --version,
9727
# but apparently some GNU ld's only accept -v.
9728
# Break only if it was the GNU/non-GNU ld that we prefer.
9729
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9730
*GNU* | *'with BFD'*)
9731
test "$with_gnu_ld" != no && break
9734
test "$with_gnu_ld" != yes && break
9741
lt_cv_path_LD="$LD" # Let the user override the test with a path.
9746
if test -n "$LD"; then
9747
echo "$as_me:$LINENO: result: $LD" >&5
9748
echo "${ECHO_T}$LD" >&6
9750
echo "$as_me:$LINENO: result: no" >&5
9751
echo "${ECHO_T}no" >&6
9753
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9754
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9755
{ (exit 1); exit 1; }; }
9756
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9757
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9758
if test "${lt_cv_prog_gnu_ld+set}" = set; then
9759
echo $ECHO_N "(cached) $ECHO_C" >&6
9761
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
9762
case `$LD -v 2>&1 </dev/null` in
9763
*GNU* | *'with BFD'*)
9764
lt_cv_prog_gnu_ld=yes
9767
lt_cv_prog_gnu_ld=no
9771
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9772
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9773
with_gnu_ld=$lt_cv_prog_gnu_ld
9777
# Check if GNU C++ uses GNU ld as the underlying linker, since the
9778
# archiving commands below assume that GNU ld is being used.
9779
if test "$with_gnu_ld" = yes; then
9780
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9781
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'
9783
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9784
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9786
# If archive_cmds runs LD, not CC, wlarc should be empty
9787
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9788
# investigate it a little bit more. (MM)
9791
# ancient GNU ld didn't support --whole-archive et. al.
9792
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9793
grep 'no-whole-archive' > /dev/null; then
9794
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9796
whole_archive_flag_spec_CXX=
9802
# A generic and very simple default shared library creation
9803
# command for GNU C++ for the case where it uses the native
9804
# linker, instead of GNU ld. If possible, this setting should
9805
# overridden to take advantage of the native linker features on
9806
# the platform it is being used on.
9807
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9810
# Commands to make compiler produce verbose output that lists
9811
# what "hidden" libraries, object files and flags are used when
9812
# linking a shared library.
9813
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9821
# PORTME: fill in a description of your system's C++ link characteristics
9822
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9823
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9827
# FIXME: insert proper C++ library support
9831
if test "$host_cpu" = ia64; then
9832
# On IA64, the linker does run time linking by default, so we don't
9833
# have to do anything special.
9834
aix_use_runtimelinking=no
9835
exp_sym_flag='-Bexport'
9838
aix_use_runtimelinking=no
9840
# Test if we are trying to use run time linking or normal
9841
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9842
# need to do runtime linking.
9843
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9844
for ld_flag in $LDFLAGS; do
9847
aix_use_runtimelinking=yes
9854
exp_sym_flag='-bexport'
9855
no_entry_flag='-bnoentry'
9858
# When large executables or shared objects are built, AIX ld can
9859
# have problems creating the table of contents. If linking a library
9860
# or program results in "error TOC overflow" add -mminimal-toc to
9861
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9862
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9865
hardcode_direct_CXX=yes
9866
hardcode_libdir_separator_CXX=':'
9867
link_all_deplibs_CXX=yes
9869
if test "$GXX" = yes; then
9870
case $host_os in aix4.012|aix4.012.*)
9871
# We only want to do this on AIX 4.2 and lower, the check
9872
# below for broken collect2 doesn't work under 4.3+
9873
collect2name=`${CC} -print-prog-name=collect2`
9874
if test -f "$collect2name" && \
9875
strings "$collect2name" | grep resolve_lib_name >/dev/null
9877
# We have reworked collect2
9878
hardcode_direct_CXX=yes
9880
# We have old collect2
9881
hardcode_direct_CXX=unsupported
9882
# It fails to find uninstalled libraries when the uninstalled
9883
# path is not listed in the libpath. Setting hardcode_minus_L
9884
# to unsupported forces relinking
9885
hardcode_minus_L_CXX=yes
9886
hardcode_libdir_flag_spec_CXX='-L$libdir'
9887
hardcode_libdir_separator_CXX=
9890
shared_flag='-shared'
9893
if test "$host_cpu" = ia64; then
9894
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9895
# chokes on -Wl,-G. The following line is correct:
9898
if test "$aix_use_runtimelinking" = yes; then
9899
shared_flag='${wl}-G'
9901
shared_flag='${wl}-bM:SRE'
9906
# It seems that -bexpall does not export symbols beginning with
9907
# underscore (_), so it is better to generate a list of symbols to export.
9908
always_export_symbols_CXX=yes
9909
if test "$aix_use_runtimelinking" = yes; then
9910
# Warning - without using the other runtime loading flags (-brtl),
9911
# -berok will link without error, but may produce a broken library.
9912
allow_undefined_flag_CXX='-berok'
9913
# Determine the default libpath from the value encoded in an empty executable.
9914
cat >conftest.$ac_ext <<_ACEOF
9917
cat confdefs.h >>conftest.$ac_ext
9918
cat >>conftest.$ac_ext <<_ACEOF
9919
/* end confdefs.h. */
9929
rm -f conftest.$ac_objext conftest$ac_exeext
9930
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9931
(eval $ac_link) 2>conftest.er1
9933
grep -v '^ *+' conftest.er1 >conftest.err
9935
cat conftest.err >&5
9936
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937
(exit $ac_status); } &&
9938
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9939
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943
(exit $ac_status); }; } &&
9944
{ ac_try='test -s conftest$ac_exeext'
9945
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9948
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949
(exit $ac_status); }; }; then
9951
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9953
# Check for a 64-bit object if we didn't find anything.
9954
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; }
9957
echo "$as_me: failed program was:" >&5
9958
sed 's/^/| /' conftest.$ac_ext >&5
9961
rm -f conftest.err conftest.$ac_objext \
9962
conftest$ac_exeext conftest.$ac_ext
9963
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9965
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9967
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"
9969
if test "$host_cpu" = ia64; then
9970
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9971
allow_undefined_flag_CXX="-z nodefs"
9972
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"
9974
# Determine the default libpath from the value encoded in an empty executable.
9975
cat >conftest.$ac_ext <<_ACEOF
9978
cat confdefs.h >>conftest.$ac_ext
9979
cat >>conftest.$ac_ext <<_ACEOF
9980
/* end confdefs.h. */
9990
rm -f conftest.$ac_objext conftest$ac_exeext
9991
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9992
(eval $ac_link) 2>conftest.er1
9994
grep -v '^ *+' conftest.er1 >conftest.err
9996
cat conftest.err >&5
9997
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998
(exit $ac_status); } &&
9999
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10000
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001
(eval $ac_try) 2>&5
10003
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004
(exit $ac_status); }; } &&
10005
{ ac_try='test -s conftest$ac_exeext'
10006
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007
(eval $ac_try) 2>&5
10009
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010
(exit $ac_status); }; }; then
10012
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10014
# Check for a 64-bit object if we didn't find anything.
10015
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; }
10018
echo "$as_me: failed program was:" >&5
10019
sed 's/^/| /' conftest.$ac_ext >&5
10022
rm -f conftest.err conftest.$ac_objext \
10023
conftest$ac_exeext conftest.$ac_ext
10024
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10026
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10027
# Warning - without using the other run time loading flags,
10028
# -berok will link without error, but may produce a broken library.
10029
no_undefined_flag_CXX=' ${wl}-bernotok'
10030
allow_undefined_flag_CXX=' ${wl}-berok'
10031
# -bexpall does not export symbols beginning with underscore (_)
10032
always_export_symbols_CXX=yes
10033
# Exported symbols can be pulled into shared objects from archives
10034
whole_archive_flag_spec_CXX=' '
10035
archive_cmds_need_lc_CXX=yes
10036
# This is similar to how AIX traditionally builds it's shared libraries.
10037
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'
10042
case $cc_basename in
10044
# FIXME: insert proper C++ library support
10050
cygwin* | mingw* | pw32*)
10051
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10052
# as there is no search path for DLLs.
10053
hardcode_libdir_flag_spec_CXX='-L$libdir'
10054
allow_undefined_flag_CXX=unsupported
10055
always_export_symbols_CXX=no
10056
enable_shared_with_static_runtimes_CXX=yes
10058
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10059
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'
10060
# If the export-symbols file already is a .def file (1st line
10061
# is EXPORTS), use it as is; otherwise, prepend...
10062
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10063
cp $export_symbols $output_objdir/$soname.def;
10065
echo EXPORTS > $output_objdir/$soname.def;
10066
cat $export_symbols >> $output_objdir/$soname.def;
10068
$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'
10074
darwin* | rhapsody*)
10075
if test "$GXX" = yes; then
10076
archive_cmds_need_lc_CXX=no
10078
rhapsody* | darwin1.[012])
10079
allow_undefined_flag_CXX='-undefined suppress'
10082
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10083
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10085
case ${MACOSX_DEPLOYMENT_TARGET} in
10087
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10090
allow_undefined_flag_CXX='-undefined dynamic_lookup'
10096
lt_int_apple_cc_single_mod=no
10097
output_verbose_link_cmd='echo'
10098
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10099
lt_int_apple_cc_single_mod=yes
10101
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10102
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10104
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'
10106
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10108
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10109
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10110
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}'
10112
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}'
10114
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}'
10115
hardcode_direct_CXX=no
10116
hardcode_automatic_CXX=yes
10117
hardcode_shlibpath_var_CXX=unsupported
10118
whole_archive_flag_spec_CXX='-all_load $convenience'
10119
link_all_deplibs_CXX=yes
10126
case $cc_basename in
10128
# FIXME: insert proper C++ library support
10132
# Green Hills C++ Compiler
10133
# FIXME: insert proper C++ library support
10137
# FIXME: insert proper C++ library support
10143
# C++ shared libraries reported to be fairly broken before switch to ELF
10147
archive_cmds_need_lc_CXX=no
10149
freebsd* | kfreebsd*-gnu)
10150
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10157
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10158
hardcode_libdir_separator_CXX=:
10159
export_dynamic_flag_spec_CXX='${wl}-E'
10160
hardcode_direct_CXX=yes
10161
hardcode_minus_L_CXX=yes # Not in the search PATH,
10162
# but as the default
10163
# location of the library.
10165
case $cc_basename in
10167
# FIXME: insert proper C++ library support
10171
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'
10172
# Commands to make compiler produce verbose output that lists
10173
# what "hidden" libraries, object files and flags are used when
10174
# linking a shared library.
10176
# There doesn't appear to be a way to prevent this compiler from
10177
# explicitly linking system object files so we need to strip them
10178
# from the output so that they don't get included in the library
10180
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'
10183
if test "$GXX" = yes; then
10184
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'
10186
# FIXME: insert proper C++ library support
10193
if test $with_gnu_ld = no; then
10194
case "$host_cpu" in
10196
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10197
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10198
hardcode_libdir_separator_CXX=:
10201
hardcode_libdir_flag_spec_CXX='-L$libdir'
10204
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10205
hardcode_libdir_separator_CXX=:
10206
export_dynamic_flag_spec_CXX='${wl}-E'
10210
case "$host_cpu" in
10212
hardcode_direct_CXX=no
10213
hardcode_shlibpath_var_CXX=no
10216
hardcode_direct_CXX=no
10217
hardcode_shlibpath_var_CXX=no
10218
hardcode_minus_L_CXX=yes # Not in the search PATH,
10219
# but as the default
10220
# location of the library.
10223
hardcode_direct_CXX=yes
10224
hardcode_minus_L_CXX=yes # Not in the search PATH,
10225
# but as the default
10226
# location of the library.
10230
case $cc_basename in
10232
# FIXME: insert proper C++ library support
10236
case "$host_cpu" in
10238
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10241
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10244
# Commands to make compiler produce verbose output that lists
10245
# what "hidden" libraries, object files and flags are used when
10246
# linking a shared library.
10248
# There doesn't appear to be a way to prevent this compiler from
10249
# explicitly linking system object files so we need to strip them
10250
# from the output so that they don't get included in the library
10252
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'
10255
if test "$GXX" = yes; then
10256
if test $with_gnu_ld = no; then
10257
case "$host_cpu" in
10259
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10262
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'
10267
# FIXME: insert proper C++ library support
10274
case $cc_basename in
10277
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'
10279
# Archives containing C++ object files must be created using
10280
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
10281
# necessary to make sure instantiated templates are included
10283
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10286
if test "$GXX" = yes; then
10287
if test "$with_gnu_ld" = no; then
10288
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'
10290
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'
10293
link_all_deplibs_CXX=yes
10296
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10297
hardcode_libdir_separator_CXX=:
10300
case $cc_basename in
10302
# Kuck and Associates, Inc. (KAI) C++ Compiler
10304
# KCC will only create a shared library if the output file
10305
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10306
# to its proper name (with version) after linking.
10307
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'
10308
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'
10309
# Commands to make compiler produce verbose output that lists
10310
# what "hidden" libraries, object files and flags are used when
10311
# linking a shared library.
10313
# There doesn't appear to be a way to prevent this compiler from
10314
# explicitly linking system object files so we need to strip them
10315
# from the output so that they don't get included in the library
10317
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'
10319
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10320
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10322
# Archives containing C++ object files must be created using
10323
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10324
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10329
archive_cmds_need_lc_CXX=no
10330
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10331
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'
10332
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10333
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10334
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10338
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10339
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'
10341
runpath_var=LD_RUN_PATH
10342
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10343
hardcode_libdir_separator_CXX=:
10345
# Commands to make compiler produce verbose output that lists
10346
# what "hidden" libraries, object files and flags are used when
10347
# linking a shared library.
10349
# There doesn't appear to be a way to prevent this compiler from
10350
# explicitly linking system object files so we need to strip them
10351
# from the output so that they don't get included in the library
10353
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'
10358
# FIXME: insert proper C++ library support
10362
# FIXME: insert proper C++ library support
10366
case $cc_basename in
10368
# FIXME: insert proper C++ library support
10372
# FIXME: insert proper C++ library support
10377
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10378
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10379
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10381
hardcode_libdir_flag_spec_CXX='-R$libdir'
10382
hardcode_direct_CXX=yes
10383
hardcode_shlibpath_var_CXX=no
10385
# Workaround some broken pre-1.5 toolchains
10386
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10389
case $cc_basename in
10391
# Kuck and Associates, Inc. (KAI) C++ Compiler
10393
# KCC will only create a shared library if the output file
10394
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10395
# to its proper name (with version) after linking.
10396
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'
10398
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10399
hardcode_libdir_separator_CXX=:
10401
# Archives containing C++ object files must be created using
10402
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10403
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10407
# Rational C++ 2.4.1
10408
# FIXME: insert proper C++ library support
10412
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10413
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'
10415
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10416
hardcode_libdir_separator_CXX=:
10418
# Commands to make compiler produce verbose output that lists
10419
# what "hidden" libraries, object files and flags are used when
10420
# linking a shared library.
10422
# There doesn't appear to be a way to prevent this compiler from
10423
# explicitly linking system object files so we need to strip them
10424
# from the output so that they don't get included in the library
10426
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'
10429
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10430
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10431
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'
10433
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10434
hardcode_libdir_separator_CXX=:
10436
# Commands to make compiler produce verbose output that lists
10437
# what "hidden" libraries, object files and flags are used when
10438
# linking a shared library.
10439
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10442
# FIXME: insert proper C++ library support
10449
case $cc_basename in
10451
# Kuck and Associates, Inc. (KAI) C++ Compiler
10453
# KCC will only create a shared library if the output file
10454
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10455
# to its proper name (with version) after linking.
10456
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'
10458
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10459
hardcode_libdir_separator_CXX=:
10461
# Archives containing C++ object files must be created using
10462
# the KAI C++ compiler.
10463
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10466
# Rational C++ 2.4.1
10467
# FIXME: insert proper C++ library support
10471
allow_undefined_flag_CXX=' -expect_unresolved \*'
10472
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'
10473
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10474
echo "-hidden">> $lib.exp~
10475
$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~
10478
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10479
hardcode_libdir_separator_CXX=:
10481
# Commands to make compiler produce verbose output that lists
10482
# what "hidden" libraries, object files and flags are used when
10483
# linking a shared library.
10485
# There doesn't appear to be a way to prevent this compiler from
10486
# explicitly linking system object files so we need to strip them
10487
# from the output so that they don't get included in the library
10489
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'
10492
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10493
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10494
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'
10496
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10497
hardcode_libdir_separator_CXX=:
10499
# Commands to make compiler produce verbose output that lists
10500
# what "hidden" libraries, object files and flags are used when
10501
# linking a shared library.
10502
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10505
# FIXME: insert proper C++ library support
10512
# FIXME: insert proper C++ library support
10516
archive_cmds_need_lc_CXX=no
10517
case $cc_basename in
10519
# FIXME: insert proper C++ library support
10523
# FIXME: insert proper C++ library support
10529
case $cc_basename in
10532
# FIXME: insert proper C++ library support
10537
# FIXME: insert proper C++ library support
10541
# FIXME: insert proper C++ library support
10547
case $cc_basename in
10549
# Sun C++ 4.2, 5.x and Centerline C++
10550
no_undefined_flag_CXX=' -zdefs'
10551
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10552
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10553
$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'
10555
hardcode_libdir_flag_spec_CXX='-R$libdir'
10556
hardcode_shlibpath_var_CXX=no
10558
solaris2.0-5 | solaris2.0-5.*) ;;
10560
# The C++ compiler is used as linker so we must use $wl
10561
# flag to pass the commands to the underlying system
10563
# Supported since Solaris 2.6 (maybe 2.5.1?)
10564
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10567
link_all_deplibs_CXX=yes
10569
# Commands to make compiler produce verbose output that lists
10570
# what "hidden" libraries, object files and flags are used when
10571
# linking a shared library.
10573
# There doesn't appear to be a way to prevent this compiler from
10574
# explicitly linking system object files so we need to strip them
10575
# from the output so that they don't get included in the library
10577
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'
10579
# Archives containing C++ object files must be created using
10580
# "CC -xar", where "CC" is the Sun C++ compiler. This is
10581
# necessary to make sure instantiated templates are included
10583
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10586
# Green Hills C++ Compiler
10587
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10589
# The C++ compiler must be used to create the archive.
10590
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10593
# GNU C++ compiler with Solaris linker
10594
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10595
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10596
if $CC --version | grep -v '^2\.7' > /dev/null; then
10597
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10598
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10599
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10601
# Commands to make compiler produce verbose output that lists
10602
# what "hidden" libraries, object files and flags are used when
10603
# linking a shared library.
10604
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10606
# g++ 2.7 appears to require `-G' NOT `-shared' on this
10608
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10609
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10610
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10612
# Commands to make compiler produce verbose output that lists
10613
# what "hidden" libraries, object files and flags are used when
10614
# linking a shared library.
10615
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10618
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10623
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10624
archive_cmds_need_lc_CXX=no
10627
case $cc_basename in
10629
# NonStop-UX NCC 3.20
10630
# FIXME: insert proper C++ library support
10634
# FIXME: insert proper C++ library support
10640
# FIXME: insert proper C++ library support
10644
# FIXME: insert proper C++ library support
10648
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10649
echo "${ECHO_T}$ld_shlibs_CXX" >&6
10650
test "$ld_shlibs_CXX" = no && can_build_shared=no
10656
cat > conftest.$ac_ext <<EOF
10660
Foo (void) { a = 0; }
10666
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10667
(eval $ac_compile) 2>&5
10669
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670
(exit $ac_status); }; then
10671
# Parse the compiler output and extract the necessary
10672
# objects, libraries and library flags.
10674
# Sentinel used to keep track of whether or not we are before
10675
# the conftest object file.
10676
pre_test_object_deps_done=no
10678
# The `*' in the case matches for architectures that use `case' in
10679
# $output_verbose_cmd can trigger glob expansion during the loop
10680
# eval without this substitution.
10681
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10683
for p in `eval $output_verbose_link_cmd`; do
10687
# Some compilers place space between "-{L,R}" and the path.
10688
# Remove the space.
10689
if test $p = "-L" \
10690
|| test $p = "-R"; then
10697
if test "$pre_test_object_deps_done" = no; then
10700
# Internal compiler library paths should come after those
10701
# provided the user. The postdeps already come after the
10702
# user supplied libs so there is no need to process them.
10703
if test -z "$compiler_lib_search_path_CXX"; then
10704
compiler_lib_search_path_CXX="${prev}${p}"
10706
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10709
# The "-l" case would never come before the object being
10710
# linked, so don't bother handling this case.
10713
if test -z "$postdeps_CXX"; then
10714
postdeps_CXX="${prev}${p}"
10716
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10722
# This assumes that the test object file only shows up
10723
# once in the compiler output.
10724
if test "$p" = "conftest.$objext"; then
10725
pre_test_object_deps_done=yes
10729
if test "$pre_test_object_deps_done" = no; then
10730
if test -z "$predep_objects_CXX"; then
10731
predep_objects_CXX="$p"
10733
predep_objects_CXX="$predep_objects_CXX $p"
10736
if test -z "$postdep_objects_CXX"; then
10737
postdep_objects_CXX="$p"
10739
postdep_objects_CXX="$postdep_objects_CXX $p"
10744
*) ;; # Ignore the rest.
10752
echo "libtool.m4: error: problem compiling CXX test program"
10755
$rm -f confest.$objext
10757
case " $postdeps_CXX " in
10758
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10761
lt_prog_compiler_wl_CXX=
10762
lt_prog_compiler_pic_CXX=
10763
lt_prog_compiler_static_CXX=
10765
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10766
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10768
# C++ specific cases for pic, static, wl, etc.
10769
if test "$GXX" = yes; then
10770
lt_prog_compiler_wl_CXX='-Wl,'
10771
lt_prog_compiler_static_CXX='-static'
10775
# All AIX code is PIC.
10776
if test "$host_cpu" = ia64; then
10777
# AIX 5 now supports IA64 processor
10778
lt_prog_compiler_static_CXX='-Bstatic'
10782
# FIXME: we need at least 68020 code to build shared libraries, but
10783
# adding the `-m68020' flag to GCC prevents building anything better,
10785
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10787
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10788
# PIC is the default for these OSes.
10790
mingw* | os2* | pw32*)
10791
# This hack is so that the source file can tell whether it is being
10792
# built for inclusion in a dll (and should export symbols for example).
10793
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10795
darwin* | rhapsody*)
10796
# PIC is the default on this platform
10797
# Common symbols not allowed in MH_DYLIB files
10798
lt_prog_compiler_pic_CXX='-fno-common'
10801
# DJGPP does not support shared libraries at all
10802
lt_prog_compiler_pic_CXX=
10805
if test -d /usr/nec; then
10806
lt_prog_compiler_pic_CXX=-Kconform_pic
10810
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10811
# not for PA HP-UX.
10812
case "$host_cpu" in
10816
lt_prog_compiler_pic_CXX='-fPIC'
10821
lt_prog_compiler_pic_CXX='-fPIC'
10827
# All AIX code is PIC.
10828
if test "$host_cpu" = ia64; then
10829
# AIX 5 now supports IA64 processor
10830
lt_prog_compiler_static_CXX='-Bstatic'
10832
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10836
case $cc_basename in
10838
# Green Hills C++ Compiler
10839
# _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"
10844
case $cc_basename in
10846
lt_prog_compiler_pic_CXX='-KPIC'
10849
# Green Hills C++ Compiler
10850
lt_prog_compiler_pic_CXX='-pic'
10856
freebsd* | kfreebsd*-gnu)
10857
# FreeBSD uses GNU C++
10859
hpux9* | hpux10* | hpux11*)
10860
case $cc_basename in
10862
lt_prog_compiler_wl_CXX='-Wl,'
10863
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10864
if test "$host_cpu" != ia64; then
10865
lt_prog_compiler_pic_CXX='+Z'
10869
lt_prog_compiler_wl_CXX='-Wl,'
10870
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10871
case "$host_cpu" in
10876
lt_prog_compiler_pic_CXX='+Z'
10884
irix5* | irix6* | nonstopux*)
10885
case $cc_basename in
10887
lt_prog_compiler_wl_CXX='-Wl,'
10888
lt_prog_compiler_static_CXX='-non_shared'
10889
# CC pic flag -KPIC is the default.
10896
case $cc_basename in
10899
lt_prog_compiler_wl_CXX='--backend -Wl,'
10900
lt_prog_compiler_pic_CXX='-fPIC'
10904
lt_prog_compiler_wl_CXX='-Wl,'
10905
lt_prog_compiler_pic_CXX='-KPIC'
10906
lt_prog_compiler_static_CXX='-static'
10910
# Make sure the PIC flag is empty. It appears that all Alpha
10911
# Linux and Compaq Tru64 Unix objects are PIC.
10912
lt_prog_compiler_pic_CXX=
10913
lt_prog_compiler_static_CXX='-non_shared'
10924
case $cc_basename in
10926
lt_prog_compiler_pic_CXX='-W c,exportall'
10932
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10934
osf3* | osf4* | osf5*)
10935
case $cc_basename in
10937
lt_prog_compiler_wl_CXX='--backend -Wl,'
10940
# Rational C++ 2.4.1
10941
lt_prog_compiler_pic_CXX='-pic'
10944
# Digital/Compaq C++
10945
lt_prog_compiler_wl_CXX='-Wl,'
10946
# Make sure the PIC flag is empty. It appears that all Alpha
10947
# Linux and Compaq Tru64 Unix objects are PIC.
10948
lt_prog_compiler_pic_CXX=
10949
lt_prog_compiler_static_CXX='-non_shared'
10958
case $cc_basename in
10960
lt_prog_compiler_pic_CXX='-fPIC'
10967
case $cc_basename in
10969
# Sun C++ 4.2, 5.x and Centerline C++
10970
lt_prog_compiler_pic_CXX='-KPIC'
10971
lt_prog_compiler_static_CXX='-Bstatic'
10972
lt_prog_compiler_wl_CXX='-Qoption ld '
10975
# Green Hills C++ Compiler
10976
lt_prog_compiler_pic_CXX='-PIC'
10983
case $cc_basename in
10986
lt_prog_compiler_pic_CXX='-pic'
10987
lt_prog_compiler_static_CXX='-Bstatic'
10991
lt_prog_compiler_pic_CXX='-pic'
10998
case $cc_basename in
11000
# NonStop-UX NCC 3.20
11001
lt_prog_compiler_pic_CXX='-KPIC'
11012
lt_prog_compiler_can_build_shared_CXX=no
11017
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11018
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11021
# Check to make sure the PIC flag actually works.
11023
if test -n "$lt_prog_compiler_pic_CXX"; then
11025
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11026
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11027
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11028
echo $ECHO_N "(cached) $ECHO_C" >&6
11030
lt_prog_compiler_pic_works_CXX=no
11031
ac_outfile=conftest.$ac_objext
11032
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11033
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11034
# Insert the option either (1) after the last *FLAGS variable, or
11035
# (2) before a word containing "conftest.", or (3) at the end.
11036
# Note that $ac_compile itself does not contain backslashes and begins
11037
# with a dollar sign (not a hyphen), so the echo should work correctly.
11038
# The option is referenced via a variable to avoid confusing sed.
11039
lt_compile=`echo "$ac_compile" | $SED \
11040
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11041
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11042
-e 's:$: $lt_compiler_flag:'`
11043
(eval echo "\"\$as_me:11043: $lt_compile\"" >&5)
11044
(eval "$lt_compile" 2>conftest.err)
11046
cat conftest.err >&5
11047
echo "$as_me:11047: \$? = $ac_status" >&5
11048
if (exit $ac_status) && test -s "$ac_outfile"; then
11049
# The compiler can only warn and ignore the option if not recognized
11050
# So say no if there are warnings
11051
if test ! -s conftest.err; then
11052
lt_prog_compiler_pic_works_CXX=yes
11058
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11059
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11061
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11062
case $lt_prog_compiler_pic_CXX in
11064
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11067
lt_prog_compiler_pic_CXX=
11068
lt_prog_compiler_can_build_shared_CXX=no
11073
# For platforms which do not support PIC, -DPIC is meaningless:
11075
lt_prog_compiler_pic_CXX=
11078
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11082
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11083
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11084
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11085
echo $ECHO_N "(cached) $ECHO_C" >&6
11087
lt_cv_prog_compiler_c_o_CXX=no
11088
$rm -r conftest 2>/dev/null
11092
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11094
lt_compiler_flag="-o out/conftest2.$ac_objext"
11095
# Insert the option either (1) after the last *FLAGS variable, or
11096
# (2) before a word containing "conftest.", or (3) at the end.
11097
# Note that $ac_compile itself does not contain backslashes and begins
11098
# with a dollar sign (not a hyphen), so the echo should work correctly.
11099
lt_compile=`echo "$ac_compile" | $SED \
11100
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11101
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11102
-e 's:$: $lt_compiler_flag:'`
11103
(eval echo "\"\$as_me:11103: $lt_compile\"" >&5)
11104
(eval "$lt_compile" 2>out/conftest.err)
11106
cat out/conftest.err >&5
11107
echo "$as_me:11107: \$? = $ac_status" >&5
11108
if (exit $ac_status) && test -s out/conftest2.$ac_objext
11110
# The compiler can only warn and ignore the option if not recognized
11111
# So say no if there are warnings
11112
if test ! -s out/conftest.err; then
11113
lt_cv_prog_compiler_c_o_CXX=yes
11118
# SGI C++ compiler will create directory out/ii_files/ for
11119
# template instantiation
11120
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11121
$rm out/* && rmdir out
11127
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11128
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11131
hard_links="nottested"
11132
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11133
# do not overwrite the value of need_locks provided by the user
11134
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11135
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11138
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11140
ln conftest.a conftest.b 2>&5 || hard_links=no
11141
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11142
echo "$as_me:$LINENO: result: $hard_links" >&5
11143
echo "${ECHO_T}$hard_links" >&6
11144
if test "$hard_links" = no; then
11145
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11146
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11153
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11154
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11156
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11159
# If we're using GNU nm, then we don't want the "-C" option.
11160
# -C means demangle to AIX nm, but means don't demangle with GNU nm
11161
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11162
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'
11164
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'
11168
export_symbols_cmds_CXX="$ltdll_cmds"
11171
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11174
link_all_deplibs_CXX=no
11177
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11181
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11182
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11183
test "$ld_shlibs_CXX" = no && can_build_shared=no
11185
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11186
if test "$GCC" = yes; then
11187
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11191
# Do we need to explicitly link libc?
11193
case "x$archive_cmds_need_lc_CXX" in
11195
# Assume -lc should be added
11196
archive_cmds_need_lc_CXX=yes
11198
if test "$enable_shared" = yes && test "$GCC" = yes; then
11199
case $archive_cmds_CXX in
11201
# FIXME: we may have to deal with multi-command sequences.
11204
# Test whether the compiler implicitly links with -lc since on some
11205
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11206
# to ld, don't add -lc before -lgcc.
11207
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11208
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11210
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11212
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11213
(eval $ac_compile) 2>&5
11215
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216
(exit $ac_status); } 2>conftest.err; then
11219
libobjs=conftest.$ac_objext
11221
wl=$lt_prog_compiler_wl_CXX
11227
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11228
allow_undefined_flag_CXX=
11229
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11230
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11232
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233
(exit $ac_status); }
11235
archive_cmds_need_lc_CXX=no
11237
archive_cmds_need_lc_CXX=yes
11239
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11241
cat conftest.err 1>&5
11244
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11245
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11252
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11253
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11254
library_names_spec=
11255
libname_spec='lib$name'
11259
postuninstall_cmds=
11263
shlibpath_overrides_runpath=unknown
11265
dynamic_linker="$host_os ld.so"
11266
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11267
if test "$GCC" = yes; then
11268
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11269
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11270
# if the path contains ";" then we assume it to be the separator
11271
# otherwise default to the standard path separator (i.e. ":") - it is
11272
# assumed that no part of a normal pathname contains ";" but that should
11273
# okay in the real world where ";" in dirpaths is itself problematic.
11274
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11276
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11279
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11281
need_lib_prefix=unknown
11282
hardcode_into_libs=no
11284
# when you set need_version to no, make sure it does not cause -set_version
11285
# flags to be left without arguments
11286
need_version=unknown
11291
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11292
shlibpath_var=LIBPATH
11294
# AIX 3 has no versioning support, so we append a major version to the name.
11295
soname_spec='${libname}${release}${shared_ext}$major'
11302
hardcode_into_libs=yes
11303
if test "$host_cpu" = ia64; then
11304
# AIX 5 supports IA64
11305
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11306
shlibpath_var=LD_LIBRARY_PATH
11308
# With GCC up to 2.95.x, collect2 would create an import file
11309
# for dependence libraries. The import file would start with
11310
# the line `#! .'. This would cause the generated library to
11311
# depend on `.', always an invalid library. This was fixed in
11312
# development snapshots of GCC prior to 3.0.
11314
aix4 | aix4.[01] | aix4.[01].*)
11315
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11317
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11320
can_build_shared=no
11324
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11325
# soname into executable. Probably we can add versioning support to
11326
# collect2, so additional links can be useful in future.
11327
if test "$aix_use_runtimelinking" = yes; then
11328
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11329
# instead of lib<name>.a to let people know that these are not
11330
# typical AIX shared libraries.
11331
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11333
# We preserve .a as extension for shared libraries through AIX4.2
11334
# and later when we are not doing run time linking.
11335
library_names_spec='${libname}${release}.a $libname.a'
11336
soname_spec='${libname}${release}${shared_ext}$major'
11338
shlibpath_var=LIBPATH
11343
library_names_spec='$libname.ixlibrary $libname.a'
11344
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11345
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'
11349
library_names_spec='${libname}${shared_ext}'
11350
dynamic_linker="$host_os ld.so"
11351
shlibpath_var=LIBRARY_PATH
11357
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11358
soname_spec='${libname}${release}${shared_ext}$major'
11359
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11360
shlibpath_var=LD_LIBRARY_PATH
11361
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11362
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11363
# the default ld.so.conf also contains /usr/contrib/lib and
11364
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11365
# libtool to hard-code these into programs
11368
cygwin* | mingw* | pw32*)
11369
version_type=windows
11374
case $GCC,$host_os in
11375
yes,cygwin* | yes,mingw* | yes,pw32*)
11376
library_names_spec='$libname.dll.a'
11377
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11378
postinstall_cmds='base_file=`basename \${file}`~
11379
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11380
dldir=$destdir/`dirname \$dlpath`~
11381
test -d \$dldir || mkdir -p \$dldir~
11382
$install_prog $dir/$dlname \$dldir/$dlname'
11383
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11384
dlpath=$dir/\$dldll~
11386
shlibpath_overrides_runpath=yes
11390
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11391
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11392
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11395
# MinGW DLLs use traditional 'lib' prefix
11396
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11397
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11398
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11399
# It is most probably a Windows format PATH printed by
11400
# mingw gcc, but we are running on Cygwin. Gcc prints its search
11401
# path with ; separators, and with drive letters. We can handle the
11402
# drive letters (cygwin fileutils understands them), so leave them,
11403
# especially as we might pass files found there to a mingw objdump,
11404
# which wouldn't understand a cygwinified path. Ahh.
11405
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11407
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11411
# pw32 DLLs use 'pw' prefix rather than 'lib'
11412
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11418
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11421
dynamic_linker='Win32 ld.exe'
11422
# FIXME: first we should search . and the directory the executable is in
11426
darwin* | rhapsody*)
11427
dynamic_linker="$host_os dyld"
11428
version_type=darwin
11431
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11432
soname_spec='${libname}${release}${major}$shared_ext'
11433
shlibpath_overrides_runpath=yes
11434
shlibpath_var=DYLD_LIBRARY_PATH
11435
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11436
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11437
if test "$GCC" = yes; then
11438
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"`
11440
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11442
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11449
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11450
soname_spec='${libname}${release}${shared_ext}$major'
11451
shlibpath_var=LD_LIBRARY_PATH
11462
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11463
soname_spec='${libname}${release}${shared_ext}$major'
11464
shlibpath_var=LD_LIBRARY_PATH
11465
shlibpath_overrides_runpath=no
11466
hardcode_into_libs=yes
11467
dynamic_linker='GNU ld.so'
11471
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11472
version_type=freebsd-$objformat
11473
case $version_type in
11475
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11480
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11484
shlibpath_var=LD_LIBRARY_PATH
11487
shlibpath_overrides_runpath=yes
11489
freebsd3.01* | freebsdelf3.01*)
11490
shlibpath_overrides_runpath=yes
11491
hardcode_into_libs=yes
11494
shlibpath_overrides_runpath=no
11495
hardcode_into_libs=yes
11504
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11505
soname_spec='${libname}${release}${shared_ext}$major'
11506
shlibpath_var=LD_LIBRARY_PATH
11507
hardcode_into_libs=yes
11510
hpux9* | hpux10* | hpux11*)
11511
# Give a soname corresponding to the major version so that dld.sl refuses to
11512
# link against other versions.
11516
case "$host_cpu" in
11519
hardcode_into_libs=yes
11520
dynamic_linker="$host_os dld.so"
11521
shlibpath_var=LD_LIBRARY_PATH
11522
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11523
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11524
soname_spec='${libname}${release}${shared_ext}$major'
11525
if test "X$HPUX_IA64_MODE" = X32; then
11526
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11528
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11530
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11534
hardcode_into_libs=yes
11535
dynamic_linker="$host_os dld.sl"
11536
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11537
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11538
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11539
soname_spec='${libname}${release}${shared_ext}$major'
11540
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11541
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11545
dynamic_linker="$host_os dld.sl"
11546
shlibpath_var=SHLIB_PATH
11547
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11548
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11549
soname_spec='${libname}${release}${shared_ext}$major'
11552
# HP-UX runs *really* slowly unless shared libraries are mode 555.
11553
postinstall_cmds='chmod 555 $lib'
11556
irix5* | irix6* | nonstopux*)
11558
nonstopux*) version_type=nonstopux ;;
11560
if test "$lt_cv_prog_gnu_ld" = yes; then
11568
soname_spec='${libname}${release}${shared_ext}$major'
11569
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11571
irix5* | nonstopux*)
11572
libsuff= shlibsuff=
11575
case $LD in # libtool.m4 will add one of these switches to LD
11576
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11577
libsuff= shlibsuff= libmagic=32-bit;;
11578
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11579
libsuff=32 shlibsuff=N32 libmagic=N32;;
11580
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11581
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11582
*) libsuff= shlibsuff= libmagic=never-match;;
11586
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11587
shlibpath_overrides_runpath=no
11588
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11589
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11590
hardcode_into_libs=yes
11593
# No shared lib support for Linux oldld, aout, or coff.
11594
linux*oldld* | linux*aout* | linux*coff*)
11598
# This must be Linux ELF.
11603
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11604
soname_spec='${libname}${release}${shared_ext}$major'
11605
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11606
shlibpath_var=LD_LIBRARY_PATH
11607
shlibpath_overrides_runpath=no
11608
# This implies no fast_install, which is unacceptable.
11609
# Some rework will be needed to allow for fast_install
11610
# before this can be enabled.
11611
hardcode_into_libs=yes
11613
# Append ld.so.conf contents to the search path
11614
if test -f /etc/ld.so.conf; then
11615
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11616
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11619
# We used to test for /lib/ld.so.1 and disable shared libraries on
11620
# powerpc, because MkLinux only supported shared libraries with the
11621
# GNU dynamic linker. Since this was broken with cross compilers,
11622
# most powerpc-linux boxes support dynamic linking these days and
11623
# people can always --disable-shared, the test was removed, and we
11624
# assume the GNU/Linux dynamic linker is in use.
11625
dynamic_linker='GNU/Linux ld.so'
11632
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11633
soname_spec='${libname}${release}${shared_ext}$major'
11634
shlibpath_var=LD_LIBRARY_PATH
11635
shlibpath_overrides_runpath=no
11636
hardcode_into_libs=yes
11637
dynamic_linker='NetBSD ld.elf_so'
11644
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11645
soname_spec='${libname}${release}${shared_ext}$major'
11646
shlibpath_var=LD_LIBRARY_PATH
11647
shlibpath_overrides_runpath=no
11648
hardcode_into_libs=yes
11649
dynamic_linker='GNU ld.so'
11656
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11657
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11658
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11659
dynamic_linker='NetBSD (a.out) ld.so'
11661
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11662
soname_spec='${libname}${release}${shared_ext}$major'
11663
dynamic_linker='NetBSD ld.elf_so'
11665
shlibpath_var=LD_LIBRARY_PATH
11666
shlibpath_overrides_runpath=yes
11667
hardcode_into_libs=yes
11672
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11673
shlibpath_var=LD_LIBRARY_PATH
11674
shlibpath_overrides_runpath=yes
11681
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11682
soname_spec='${libname}${release}${shared_ext}$major'
11683
shlibpath_var=LD_LIBRARY_PATH
11684
shlibpath_overrides_runpath=yes
11691
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11692
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11693
shlibpath_var=LD_LIBRARY_PATH
11694
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11696
openbsd2.[89] | openbsd2.[89].*)
11697
shlibpath_overrides_runpath=no
11700
shlibpath_overrides_runpath=yes
11704
shlibpath_overrides_runpath=yes
11709
libname_spec='$name'
11712
library_names_spec='$libname${shared_ext} $libname.a'
11713
dynamic_linker='OS/2 ld.exe'
11714
shlibpath_var=LIBPATH
11717
osf3* | osf4* | osf5*)
11721
soname_spec='${libname}${release}${shared_ext}$major'
11722
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11723
shlibpath_var=LD_LIBRARY_PATH
11724
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11725
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11730
soname_spec='${libname}${release}${shared_ext}$major'
11731
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11732
shlibpath_var=LD_LIBRARY_PATH
11739
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11740
soname_spec='${libname}${release}${shared_ext}$major'
11741
shlibpath_var=LD_LIBRARY_PATH
11742
shlibpath_overrides_runpath=yes
11743
hardcode_into_libs=yes
11744
# ldd complains unless libraries are executable
11745
postinstall_cmds='chmod +x $lib'
11750
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11751
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11752
shlibpath_var=LD_LIBRARY_PATH
11753
shlibpath_overrides_runpath=yes
11754
if test "$with_gnu_ld" = yes; then
11760
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11762
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11763
soname_spec='${libname}${release}${shared_ext}$major'
11764
shlibpath_var=LD_LIBRARY_PATH
11765
case $host_vendor in
11767
shlibpath_overrides_runpath=no
11769
export_dynamic_flag_spec='${wl}-Blargedynsym'
11770
runpath_var=LD_RUN_PATH
11778
shlibpath_overrides_runpath=no
11779
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11785
if test -d /usr/nec ;then
11787
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11788
soname_spec='$libname${shared_ext}.$major'
11789
shlibpath_var=LD_LIBRARY_PATH
11795
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11796
soname_spec='${libname}${release}${shared_ext}$major'
11797
shlibpath_var=LD_LIBRARY_PATH
11804
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11805
echo "${ECHO_T}$dynamic_linker" >&6
11806
test "$dynamic_linker" = no && can_build_shared=no
11808
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11809
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11810
hardcode_action_CXX=
11811
if test -n "$hardcode_libdir_flag_spec_CXX" || \
11812
test -n "$runpath_var CXX" || \
11813
test "X$hardcode_automatic_CXX"="Xyes" ; then
11815
# We can hardcode non-existant directories.
11816
if test "$hardcode_direct_CXX" != no &&
11817
# If the only mechanism to avoid hardcoding is shlibpath_var, we
11818
# have to relink, otherwise we might link with an installed library
11819
# when we should be linking with a yet-to-be-installed one
11820
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11821
test "$hardcode_minus_L_CXX" != no; then
11822
# Linking always hardcodes the temporary library directory.
11823
hardcode_action_CXX=relink
11825
# We can link without hardcoding, and we can hardcode nonexisting dirs.
11826
hardcode_action_CXX=immediate
11829
# We cannot hardcode anything, or else we can only hardcode existing
11831
hardcode_action_CXX=unsupported
11833
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11834
echo "${ECHO_T}$hardcode_action_CXX" >&6
11836
if test "$hardcode_action_CXX" = relink; then
11837
# Fast installation is not supported
11838
enable_fast_install=no
11839
elif test "$shlibpath_overrides_runpath" = yes ||
11840
test "$enable_shared" = no; then
11841
# Fast installation is not necessary
11842
enable_fast_install=needless
11847
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11848
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11849
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11850
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11851
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11852
echo "$as_me:$LINENO: result: yes" >&5
11853
echo "${ECHO_T}yes" >&6
11855
# FIXME - insert some real tests, host_os isn't really good enough
11858
if test -n "$STRIP" ; then
11859
striplib="$STRIP -x"
11860
echo "$as_me:$LINENO: result: yes" >&5
11861
echo "${ECHO_T}yes" >&6
11863
echo "$as_me:$LINENO: result: no" >&5
11864
echo "${ECHO_T}no" >&6
11868
echo "$as_me:$LINENO: result: no" >&5
11869
echo "${ECHO_T}no" >&6
11874
if test "x$enable_dlopen" != xyes; then
11875
enable_dlopen=unknown
11876
enable_dlopen_self=unknown
11877
enable_dlopen_self_static=unknown
11884
lt_cv_dlopen="load_add_on"
11886
lt_cv_dlopen_self=yes
11890
lt_cv_dlopen="LoadLibrary"
11895
lt_cv_dlopen="dlopen"
11900
# if libdl is installed we need to link against it
11901
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11902
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11903
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11904
echo $ECHO_N "(cached) $ECHO_C" >&6
11906
ac_check_lib_save_LIBS=$LIBS
11908
cat >conftest.$ac_ext <<_ACEOF
11911
cat confdefs.h >>conftest.$ac_ext
11912
cat >>conftest.$ac_ext <<_ACEOF
11913
/* end confdefs.h. */
11915
/* Override any gcc2 internal prototype to avoid an error. */
11919
/* We use char because int might match the return type of a gcc2
11920
builtin and then its argument prototype would still apply. */
11930
rm -f conftest.$ac_objext conftest$ac_exeext
11931
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11932
(eval $ac_link) 2>conftest.er1
11934
grep -v '^ *+' conftest.er1 >conftest.err
11936
cat conftest.err >&5
11937
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938
(exit $ac_status); } &&
11939
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11940
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941
(eval $ac_try) 2>&5
11943
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944
(exit $ac_status); }; } &&
11945
{ ac_try='test -s conftest$ac_exeext'
11946
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947
(eval $ac_try) 2>&5
11949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950
(exit $ac_status); }; }; then
11951
ac_cv_lib_dl_dlopen=yes
11953
echo "$as_me: failed program was:" >&5
11954
sed 's/^/| /' conftest.$ac_ext >&5
11956
ac_cv_lib_dl_dlopen=no
11958
rm -f conftest.err conftest.$ac_objext \
11959
conftest$ac_exeext conftest.$ac_ext
11960
LIBS=$ac_check_lib_save_LIBS
11962
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11963
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11964
if test $ac_cv_lib_dl_dlopen = yes; then
11965
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11968
lt_cv_dlopen="dyld"
11970
lt_cv_dlopen_self=yes
11977
echo "$as_me:$LINENO: checking for shl_load" >&5
11978
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11979
if test "${ac_cv_func_shl_load+set}" = set; then
11980
echo $ECHO_N "(cached) $ECHO_C" >&6
11982
cat >conftest.$ac_ext <<_ACEOF
11985
cat confdefs.h >>conftest.$ac_ext
11986
cat >>conftest.$ac_ext <<_ACEOF
11987
/* end confdefs.h. */
11988
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11989
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11990
#define shl_load innocuous_shl_load
11992
/* System header to define __stub macros and hopefully few prototypes,
11993
which can conflict with char shl_load (); below.
11994
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11995
<limits.h> exists even on freestanding compilers. */
11998
# include <limits.h>
12000
# include <assert.h>
12005
/* Override any gcc2 internal prototype to avoid an error. */
12010
/* We use char because int might match the return type of a gcc2
12011
builtin and then its argument prototype would still apply. */
12013
/* The GNU C library defines this for functions which it implements
12014
to always fail with ENOSYS. Some functions are actually named
12015
something starting with __ and the normal name is an alias. */
12016
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12019
char (*f) () = shl_load;
12028
return f != shl_load;
12033
rm -f conftest.$ac_objext conftest$ac_exeext
12034
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12035
(eval $ac_link) 2>conftest.er1
12037
grep -v '^ *+' conftest.er1 >conftest.err
12039
cat conftest.err >&5
12040
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041
(exit $ac_status); } &&
12042
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12043
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044
(eval $ac_try) 2>&5
12046
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047
(exit $ac_status); }; } &&
12048
{ ac_try='test -s conftest$ac_exeext'
12049
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050
(eval $ac_try) 2>&5
12052
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053
(exit $ac_status); }; }; then
12054
ac_cv_func_shl_load=yes
12056
echo "$as_me: failed program was:" >&5
12057
sed 's/^/| /' conftest.$ac_ext >&5
12059
ac_cv_func_shl_load=no
12061
rm -f conftest.err conftest.$ac_objext \
12062
conftest$ac_exeext conftest.$ac_ext
12064
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12065
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12066
if test $ac_cv_func_shl_load = yes; then
12067
lt_cv_dlopen="shl_load"
12069
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12070
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12071
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12072
echo $ECHO_N "(cached) $ECHO_C" >&6
12074
ac_check_lib_save_LIBS=$LIBS
12076
cat >conftest.$ac_ext <<_ACEOF
12079
cat confdefs.h >>conftest.$ac_ext
12080
cat >>conftest.$ac_ext <<_ACEOF
12081
/* end confdefs.h. */
12083
/* Override any gcc2 internal prototype to avoid an error. */
12087
/* We use char because int might match the return type of a gcc2
12088
builtin and then its argument prototype would still apply. */
12098
rm -f conftest.$ac_objext conftest$ac_exeext
12099
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12100
(eval $ac_link) 2>conftest.er1
12102
grep -v '^ *+' conftest.er1 >conftest.err
12104
cat conftest.err >&5
12105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106
(exit $ac_status); } &&
12107
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12108
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12109
(eval $ac_try) 2>&5
12111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112
(exit $ac_status); }; } &&
12113
{ ac_try='test -s conftest$ac_exeext'
12114
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115
(eval $ac_try) 2>&5
12117
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118
(exit $ac_status); }; }; then
12119
ac_cv_lib_dld_shl_load=yes
12121
echo "$as_me: failed program was:" >&5
12122
sed 's/^/| /' conftest.$ac_ext >&5
12124
ac_cv_lib_dld_shl_load=no
12126
rm -f conftest.err conftest.$ac_objext \
12127
conftest$ac_exeext conftest.$ac_ext
12128
LIBS=$ac_check_lib_save_LIBS
12130
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12131
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12132
if test $ac_cv_lib_dld_shl_load = yes; then
12133
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12135
echo "$as_me:$LINENO: checking for dlopen" >&5
12136
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12137
if test "${ac_cv_func_dlopen+set}" = set; then
12138
echo $ECHO_N "(cached) $ECHO_C" >&6
12140
cat >conftest.$ac_ext <<_ACEOF
12143
cat confdefs.h >>conftest.$ac_ext
12144
cat >>conftest.$ac_ext <<_ACEOF
12145
/* end confdefs.h. */
12146
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12147
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12148
#define dlopen innocuous_dlopen
12150
/* System header to define __stub macros and hopefully few prototypes,
12151
which can conflict with char dlopen (); below.
12152
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12153
<limits.h> exists even on freestanding compilers. */
12156
# include <limits.h>
12158
# include <assert.h>
12163
/* Override any gcc2 internal prototype to avoid an error. */
12168
/* We use char because int might match the return type of a gcc2
12169
builtin and then its argument prototype would still apply. */
12171
/* The GNU C library defines this for functions which it implements
12172
to always fail with ENOSYS. Some functions are actually named
12173
something starting with __ and the normal name is an alias. */
12174
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12177
char (*f) () = dlopen;
12186
return f != dlopen;
12191
rm -f conftest.$ac_objext conftest$ac_exeext
12192
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12193
(eval $ac_link) 2>conftest.er1
12195
grep -v '^ *+' conftest.er1 >conftest.err
12197
cat conftest.err >&5
12198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199
(exit $ac_status); } &&
12200
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12201
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202
(eval $ac_try) 2>&5
12204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205
(exit $ac_status); }; } &&
12206
{ ac_try='test -s conftest$ac_exeext'
12207
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208
(eval $ac_try) 2>&5
12210
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211
(exit $ac_status); }; }; then
12212
ac_cv_func_dlopen=yes
12214
echo "$as_me: failed program was:" >&5
12215
sed 's/^/| /' conftest.$ac_ext >&5
12217
ac_cv_func_dlopen=no
12219
rm -f conftest.err conftest.$ac_objext \
12220
conftest$ac_exeext conftest.$ac_ext
12222
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12223
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12224
if test $ac_cv_func_dlopen = yes; then
12225
lt_cv_dlopen="dlopen"
12227
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12228
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12229
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12230
echo $ECHO_N "(cached) $ECHO_C" >&6
12232
ac_check_lib_save_LIBS=$LIBS
12234
cat >conftest.$ac_ext <<_ACEOF
12237
cat confdefs.h >>conftest.$ac_ext
12238
cat >>conftest.$ac_ext <<_ACEOF
12239
/* end confdefs.h. */
12241
/* Override any gcc2 internal prototype to avoid an error. */
12245
/* We use char because int might match the return type of a gcc2
12246
builtin and then its argument prototype would still apply. */
12256
rm -f conftest.$ac_objext conftest$ac_exeext
12257
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12258
(eval $ac_link) 2>conftest.er1
12260
grep -v '^ *+' conftest.er1 >conftest.err
12262
cat conftest.err >&5
12263
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264
(exit $ac_status); } &&
12265
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12266
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12267
(eval $ac_try) 2>&5
12269
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270
(exit $ac_status); }; } &&
12271
{ ac_try='test -s conftest$ac_exeext'
12272
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273
(eval $ac_try) 2>&5
12275
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276
(exit $ac_status); }; }; then
12277
ac_cv_lib_dl_dlopen=yes
12279
echo "$as_me: failed program was:" >&5
12280
sed 's/^/| /' conftest.$ac_ext >&5
12282
ac_cv_lib_dl_dlopen=no
12284
rm -f conftest.err conftest.$ac_objext \
12285
conftest$ac_exeext conftest.$ac_ext
12286
LIBS=$ac_check_lib_save_LIBS
12288
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12289
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12290
if test $ac_cv_lib_dl_dlopen = yes; then
12291
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12293
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12294
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12295
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12296
echo $ECHO_N "(cached) $ECHO_C" >&6
12298
ac_check_lib_save_LIBS=$LIBS
12299
LIBS="-lsvld $LIBS"
12300
cat >conftest.$ac_ext <<_ACEOF
12303
cat confdefs.h >>conftest.$ac_ext
12304
cat >>conftest.$ac_ext <<_ACEOF
12305
/* end confdefs.h. */
12307
/* Override any gcc2 internal prototype to avoid an error. */
12311
/* We use char because int might match the return type of a gcc2
12312
builtin and then its argument prototype would still apply. */
12322
rm -f conftest.$ac_objext conftest$ac_exeext
12323
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12324
(eval $ac_link) 2>conftest.er1
12326
grep -v '^ *+' conftest.er1 >conftest.err
12328
cat conftest.err >&5
12329
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330
(exit $ac_status); } &&
12331
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12332
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333
(eval $ac_try) 2>&5
12335
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336
(exit $ac_status); }; } &&
12337
{ ac_try='test -s conftest$ac_exeext'
12338
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339
(eval $ac_try) 2>&5
12341
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342
(exit $ac_status); }; }; then
12343
ac_cv_lib_svld_dlopen=yes
12345
echo "$as_me: failed program was:" >&5
12346
sed 's/^/| /' conftest.$ac_ext >&5
12348
ac_cv_lib_svld_dlopen=no
12350
rm -f conftest.err conftest.$ac_objext \
12351
conftest$ac_exeext conftest.$ac_ext
12352
LIBS=$ac_check_lib_save_LIBS
12354
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12355
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12356
if test $ac_cv_lib_svld_dlopen = yes; then
12357
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12359
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12360
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12361
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12362
echo $ECHO_N "(cached) $ECHO_C" >&6
12364
ac_check_lib_save_LIBS=$LIBS
12366
cat >conftest.$ac_ext <<_ACEOF
12369
cat confdefs.h >>conftest.$ac_ext
12370
cat >>conftest.$ac_ext <<_ACEOF
12371
/* end confdefs.h. */
12373
/* Override any gcc2 internal prototype to avoid an error. */
12377
/* We use char because int might match the return type of a gcc2
12378
builtin and then its argument prototype would still apply. */
12388
rm -f conftest.$ac_objext conftest$ac_exeext
12389
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12390
(eval $ac_link) 2>conftest.er1
12392
grep -v '^ *+' conftest.er1 >conftest.err
12394
cat conftest.err >&5
12395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396
(exit $ac_status); } &&
12397
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12398
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399
(eval $ac_try) 2>&5
12401
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402
(exit $ac_status); }; } &&
12403
{ ac_try='test -s conftest$ac_exeext'
12404
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12405
(eval $ac_try) 2>&5
12407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408
(exit $ac_status); }; }; then
12409
ac_cv_lib_dld_dld_link=yes
12411
echo "$as_me: failed program was:" >&5
12412
sed 's/^/| /' conftest.$ac_ext >&5
12414
ac_cv_lib_dld_dld_link=no
12416
rm -f conftest.err conftest.$ac_objext \
12417
conftest$ac_exeext conftest.$ac_ext
12418
LIBS=$ac_check_lib_save_LIBS
12420
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12421
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12422
if test $ac_cv_lib_dld_dld_link = yes; then
12423
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12444
if test "x$lt_cv_dlopen" != xno; then
12450
case $lt_cv_dlopen in
12452
save_CPPFLAGS="$CPPFLAGS"
12453
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12455
save_LDFLAGS="$LDFLAGS"
12456
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12459
LIBS="$lt_cv_dlopen_libs $LIBS"
12461
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12462
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12463
if test "${lt_cv_dlopen_self+set}" = set; then
12464
echo $ECHO_N "(cached) $ECHO_C" >&6
12466
if test "$cross_compiling" = yes; then :
12467
lt_cv_dlopen_self=cross
12469
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12470
lt_status=$lt_dlunknown
12471
cat > conftest.$ac_ext <<EOF
12472
#line 12472 "configure"
12473
#include "confdefs.h"
12482
# define LT_DLGLOBAL RTLD_GLOBAL
12485
# define LT_DLGLOBAL DL_GLOBAL
12487
# define LT_DLGLOBAL 0
12491
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12492
find out it does not work in some platform. */
12493
#ifndef LT_DLLAZY_OR_NOW
12495
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12498
# define LT_DLLAZY_OR_NOW DL_LAZY
12501
# define LT_DLLAZY_OR_NOW RTLD_NOW
12504
# define LT_DLLAZY_OR_NOW DL_NOW
12506
# define LT_DLLAZY_OR_NOW 0
12514
extern "C" void exit (int);
12517
void fnord() { int i=42;}
12520
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12521
int status = $lt_dlunknown;
12525
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12526
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12527
/* dlclose (self); */
12533
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12534
(eval $ac_link) 2>&5
12536
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12538
(./conftest; exit; ) 2>/dev/null
12540
case x$lt_status in
12541
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12542
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12543
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12546
# compilation failed
12547
lt_cv_dlopen_self=no
12554
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12555
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12557
if test "x$lt_cv_dlopen_self" = xyes; then
12558
LDFLAGS="$LDFLAGS $link_static_flag"
12559
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12560
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12561
if test "${lt_cv_dlopen_self_static+set}" = set; then
12562
echo $ECHO_N "(cached) $ECHO_C" >&6
12564
if test "$cross_compiling" = yes; then :
12565
lt_cv_dlopen_self_static=cross
12567
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12568
lt_status=$lt_dlunknown
12569
cat > conftest.$ac_ext <<EOF
12570
#line 12570 "configure"
12571
#include "confdefs.h"
12580
# define LT_DLGLOBAL RTLD_GLOBAL
12583
# define LT_DLGLOBAL DL_GLOBAL
12585
# define LT_DLGLOBAL 0
12589
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12590
find out it does not work in some platform. */
12591
#ifndef LT_DLLAZY_OR_NOW
12593
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12596
# define LT_DLLAZY_OR_NOW DL_LAZY
12599
# define LT_DLLAZY_OR_NOW RTLD_NOW
12602
# define LT_DLLAZY_OR_NOW DL_NOW
12604
# define LT_DLLAZY_OR_NOW 0
12612
extern "C" void exit (int);
12615
void fnord() { int i=42;}
12618
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12619
int status = $lt_dlunknown;
12623
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12624
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12625
/* dlclose (self); */
12631
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12632
(eval $ac_link) 2>&5
12634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12636
(./conftest; exit; ) 2>/dev/null
12638
case x$lt_status in
12639
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12640
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12641
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12644
# compilation failed
12645
lt_cv_dlopen_self_static=no
12652
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12653
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12656
CPPFLAGS="$save_CPPFLAGS"
12657
LDFLAGS="$save_LDFLAGS"
12662
case $lt_cv_dlopen_self in
12663
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12664
*) enable_dlopen_self=unknown ;;
12667
case $lt_cv_dlopen_self_static in
12668
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12669
*) enable_dlopen_self_static=unknown ;;
12674
# The else clause should only fire when bootstrapping the
12675
# libtool distribution, otherwise you forgot to ship ltmain.sh
12676
# with your package, and you will get complaints that there are
12677
# no rules to generate ltmain.sh.
12678
if test -f "$ltmain"; then
12679
# See if we are running on zsh, and set the options which allow our commands through
12680
# without removal of \ escapes.
12681
if test -n "${ZSH_VERSION+set}" ; then
12682
setopt NO_GLOB_SUBST
12684
# Now quote all the things that may contain metacharacters while being
12685
# careful not to overquote the AC_SUBSTed values. We take copies of the
12686
# variables and quote the copies for generation of the libtool script.
12687
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12689
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12690
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12691
deplibs_check_method reload_flag reload_cmds need_locks \
12692
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12693
lt_cv_sys_global_symbol_to_c_name_address \
12694
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12695
old_postinstall_cmds old_postuninstall_cmds \
12699
lt_prog_compiler_wl_CXX \
12700
lt_prog_compiler_pic_CXX \
12701
lt_prog_compiler_static_CXX \
12702
lt_prog_compiler_no_builtin_flag_CXX \
12703
export_dynamic_flag_spec_CXX \
12704
thread_safe_flag_spec_CXX \
12705
whole_archive_flag_spec_CXX \
12706
enable_shared_with_static_runtimes_CXX \
12707
old_archive_cmds_CXX \
12708
old_archive_from_new_cmds_CXX \
12709
predep_objects_CXX \
12710
postdep_objects_CXX \
12713
compiler_lib_search_path_CXX \
12715
archive_expsym_cmds_CXX \
12716
postinstall_cmds_CXX \
12717
postuninstall_cmds_CXX \
12718
old_archive_from_expsyms_cmds_CXX \
12719
allow_undefined_flag_CXX \
12720
no_undefined_flag_CXX \
12721
export_symbols_cmds_CXX \
12722
hardcode_libdir_flag_spec_CXX \
12723
hardcode_libdir_flag_spec_ld_CXX \
12724
hardcode_libdir_separator_CXX \
12725
hardcode_automatic_CXX \
12727
module_expsym_cmds_CXX \
12728
lt_cv_prog_compiler_c_o_CXX \
12729
exclude_expsyms_CXX \
12730
include_expsyms_CXX; do
12733
old_archive_cmds_CXX | \
12734
old_archive_from_new_cmds_CXX | \
12735
archive_cmds_CXX | \
12736
archive_expsym_cmds_CXX | \
12737
module_cmds_CXX | \
12738
module_expsym_cmds_CXX | \
12739
old_archive_from_expsyms_cmds_CXX | \
12740
export_symbols_cmds_CXX | \
12741
extract_expsyms_cmds | reload_cmds | finish_cmds | \
12742
postinstall_cmds | postuninstall_cmds | \
12743
old_postinstall_cmds | old_postuninstall_cmds | \
12744
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12745
# Double-quote double-evaled strings.
12746
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12749
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12755
*'\$0 --fallback-echo"')
12756
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12762
cat <<__EOF__ >> "$cfgfile"
12763
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12765
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12767
# Shell to use when invoking shell scripts.
12770
# Whether or not to build shared libraries.
12771
build_libtool_libs=$enable_shared
12773
# Whether or not to build static libraries.
12774
build_old_libs=$enable_static
12776
# Whether or not to add -lc for building shared libraries.
12777
build_libtool_need_lc=$archive_cmds_need_lc_CXX
12779
# Whether or not to disallow shared libs when runtime libs are static
12780
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12782
# Whether or not to optimize for fast installation.
12783
fast_install=$enable_fast_install
12786
host_alias=$host_alias
12789
# An echo program that does not interpret backslashes.
12794
AR_FLAGS=$lt_AR_FLAGS
12799
# A language-specific compiler.
12800
CC=$lt_compiler_CXX
12802
# Is the compiler the GNU C compiler?
12808
# The linker used to build libraries.
12811
# Whether we need hard or soft links.
12814
# A BSD-compatible nm program.
12817
# A symbol stripping program
12820
# Used to examine libraries when file_magic_cmd begins "file"
12821
MAGIC_CMD=$MAGIC_CMD
12823
# Used on cygwin: DLL creation program.
12826
# Used on cygwin: object dumper.
12829
# Used on cygwin: assembler.
12832
# The name of the directory that contains temporary libtool files.
12835
# How to create reloadable object files.
12836
reload_flag=$lt_reload_flag
12837
reload_cmds=$lt_reload_cmds
12839
# How to pass a linker flag through the compiler.
12840
wl=$lt_lt_prog_compiler_wl_CXX
12842
# Object file suffix (normally "o").
12843
objext="$ac_objext"
12845
# Old archive suffix (normally "a").
12848
# Shared library suffix (normally ".so").
12849
shrext_cmds='$shrext_cmds'
12851
# Executable file suffix (normally "").
12854
# Additional compiler flags for building library objects.
12855
pic_flag=$lt_lt_prog_compiler_pic_CXX
12858
# What is the maximum length of a command?
12859
max_cmd_len=$lt_cv_sys_max_cmd_len
12861
# Does compiler simultaneously support -c and -o options?
12862
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12864
# Must we lock files when doing compilation ?
12865
need_locks=$lt_need_locks
12867
# Do we need the lib prefix for modules?
12868
need_lib_prefix=$need_lib_prefix
12870
# Do we need a version for libraries?
12871
need_version=$need_version
12873
# Whether dlopen is supported.
12874
dlopen_support=$enable_dlopen
12876
# Whether dlopen of programs is supported.
12877
dlopen_self=$enable_dlopen_self
12879
# Whether dlopen of statically linked programs is supported.
12880
dlopen_self_static=$enable_dlopen_self_static
12882
# Compiler flag to prevent dynamic linking.
12883
link_static_flag=$lt_lt_prog_compiler_static_CXX
12885
# Compiler flag to turn off builtin functions.
12886
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12888
# Compiler flag to allow reflexive dlopens.
12889
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12891
# Compiler flag to generate shared objects directly from archives.
12892
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12894
# Compiler flag to generate thread-safe objects.
12895
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12897
# Library versioning type.
12898
version_type=$version_type
12900
# Format of library name prefix.
12901
libname_spec=$lt_libname_spec
12903
# List of archive names. First name is the real one, the rest are links.
12904
# The last name is the one that the linker finds with -lNAME.
12905
library_names_spec=$lt_library_names_spec
12907
# The coded name of the library, if different from the real name.
12908
soname_spec=$lt_soname_spec
12910
# Commands used to build and install an old-style archive.
12912
old_archive_cmds=$lt_old_archive_cmds_CXX
12913
old_postinstall_cmds=$lt_old_postinstall_cmds
12914
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12916
# Create an old-style archive from a shared archive.
12917
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12919
# Create a temporary old-style archive to link instead of a shared archive.
12920
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12922
# Commands used to build and install a shared archive.
12923
archive_cmds=$lt_archive_cmds_CXX
12924
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12925
postinstall_cmds=$lt_postinstall_cmds
12926
postuninstall_cmds=$lt_postuninstall_cmds
12928
# Commands used to build a loadable module (assumed same as above if empty)
12929
module_cmds=$lt_module_cmds_CXX
12930
module_expsym_cmds=$lt_module_expsym_cmds_CXX
12932
# Commands to strip libraries.
12933
old_striplib=$lt_old_striplib
12934
striplib=$lt_striplib
12936
# Dependencies to place before the objects being linked to create a
12938
predep_objects=$lt_predep_objects_CXX
12940
# Dependencies to place after the objects being linked to create a
12942
postdep_objects=$lt_postdep_objects_CXX
12944
# Dependencies to place before the objects being linked to create a
12946
predeps=$lt_predeps_CXX
12948
# Dependencies to place after the objects being linked to create a
12950
postdeps=$lt_postdeps_CXX
12952
# The library search path used internally by the compiler when linking
12953
# a shared library.
12954
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12956
# Method to check whether dependent libraries are shared objects.
12957
deplibs_check_method=$lt_deplibs_check_method
12959
# Command to use when deplibs_check_method == file_magic.
12960
file_magic_cmd=$lt_file_magic_cmd
12962
# Flag that allows shared libraries with undefined symbols to be built.
12963
allow_undefined_flag=$lt_allow_undefined_flag_CXX
12965
# Flag that forces no undefined symbols.
12966
no_undefined_flag=$lt_no_undefined_flag_CXX
12968
# Commands used to finish a libtool library installation in a directory.
12969
finish_cmds=$lt_finish_cmds
12971
# Same as above, but a single script fragment to be evaled but not shown.
12972
finish_eval=$lt_finish_eval
12974
# Take the output of nm and produce a listing of raw symbols and C names.
12975
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12977
# Transform the output of nm in a proper C declaration
12978
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12980
# Transform the output of nm in a C name address pair
12981
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12983
# This is the shared library runtime path variable.
12984
runpath_var=$runpath_var
12986
# This is the shared library path variable.
12987
shlibpath_var=$shlibpath_var
12989
# Is shlibpath searched before the hard-coded library search path?
12990
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12992
# How to hardcode a shared library path into an executable.
12993
hardcode_action=$hardcode_action_CXX
12995
# Whether we should hardcode library paths into libraries.
12996
hardcode_into_libs=$hardcode_into_libs
12998
# Flag to hardcode \$libdir into a binary during linking.
12999
# This must work even if \$libdir does not exist.
13000
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13002
# If ld is used when linking, flag to hardcode \$libdir into
13003
# a binary during linking. This must work even if \$libdir does
13005
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13007
# Whether we need a single -rpath flag with a separated argument.
13008
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13010
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13011
# resulting binary.
13012
hardcode_direct=$hardcode_direct_CXX
13014
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13015
# resulting binary.
13016
hardcode_minus_L=$hardcode_minus_L_CXX
13018
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13019
# the resulting binary.
13020
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13022
# Set to yes if building a shared library automatically hardcodes DIR into the library
13023
# and all subsequent libraries and executables linked against it.
13024
hardcode_automatic=$hardcode_automatic_CXX
13026
# Variables whose values should be saved in libtool wrapper scripts and
13027
# restored at relink time.
13028
variables_saved_for_relink="$variables_saved_for_relink"
13030
# Whether libtool must link a program against all its dependency libraries.
13031
link_all_deplibs=$link_all_deplibs_CXX
13033
# Compile-time system search path for libraries
13034
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13036
# Run-time system search path for libraries
13037
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13039
# Fix the shell variable \$srcfile for the compiler.
13040
fix_srcfile_path="$fix_srcfile_path_CXX"
13042
# Set to yes if exported symbols are required.
13043
always_export_symbols=$always_export_symbols_CXX
13045
# The commands to list exported symbols.
13046
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13048
# The commands to extract the exported symbol list from a shared archive.
13049
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13051
# Symbols that should not be listed in the preloaded symbols.
13052
exclude_expsyms=$lt_exclude_expsyms_CXX
13054
# Symbols that must always be exported.
13055
include_expsyms=$lt_include_expsyms_CXX
13057
# ### END LIBTOOL TAG CONFIG: $tagname
13063
# If there is no Makefile yet, we rely on a make rule to execute
13064
# `config.status --recheck' to rerun these tests and create the
13065
# libtool script then.
13066
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13067
if test -f "$ltmain_in"; then
13068
test -f Makefile && make "$ltmain"
13074
ac_cpp='$CPP $CPPFLAGS'
13075
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13076
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13077
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13083
with_gnu_ldcxx=$with_gnu_ld
13084
with_gnu_ld=$lt_save_with_gnu_ld
13085
lt_cv_path_LDCXX=$lt_cv_path_LD
13086
lt_cv_path_LD=$lt_save_path_LD
13087
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13088
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13096
if test -n "$F77" && test "X$F77" != "Xno"; then
13099
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13100
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13101
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13104
archive_cmds_need_lc_F77=no
13105
allow_undefined_flag_F77=
13106
always_export_symbols_F77=no
13107
archive_expsym_cmds_F77=
13108
export_dynamic_flag_spec_F77=
13109
hardcode_direct_F77=no
13110
hardcode_libdir_flag_spec_F77=
13111
hardcode_libdir_flag_spec_ld_F77=
13112
hardcode_libdir_separator_F77=
13113
hardcode_minus_L_F77=no
13114
hardcode_automatic_F77=no
13116
module_expsym_cmds_F77=
13117
link_all_deplibs_F77=unknown
13118
old_archive_cmds_F77=$old_archive_cmds
13119
no_undefined_flag_F77=
13120
whole_archive_flag_spec_F77=
13121
enable_shared_with_static_runtimes_F77=no
13123
# Source file extension for f77 test sources.
13126
# Object file extension for compiled f77 test sources.
13130
# Code to be used in simple compile tests
13131
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13133
# Code to be used in simple link tests
13134
lt_simple_link_test_code=" program t\n end\n"
13136
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13138
# If no C compiler was specified, use CC.
13141
# Allow CC to be a program name with arguments.
13145
# Allow CC to be a program name with arguments.
13150
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13152
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13153
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13154
echo "$as_me:$LINENO: result: $can_build_shared" >&5
13155
echo "${ECHO_T}$can_build_shared" >&6
13157
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13158
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13159
test "$can_build_shared" = "no" && enable_shared=no
13161
# On AIX, shared libraries and static libraries use the same namespace, and
13162
# are all built from PIC.
13165
test "$enable_shared" = yes && enable_static=no
13166
if test -n "$RANLIB"; then
13167
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13168
postinstall_cmds='$RANLIB $lib'
13172
test "$enable_shared" = yes && enable_static=no
13175
echo "$as_me:$LINENO: result: $enable_shared" >&5
13176
echo "${ECHO_T}$enable_shared" >&6
13178
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13179
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13180
# Make sure either enable_shared or enable_static is yes.
13181
test "$enable_shared" = yes || enable_static=yes
13182
echo "$as_me:$LINENO: result: $enable_static" >&5
13183
echo "${ECHO_T}$enable_static" >&6
13185
test "$ld_shlibs_F77" = no && can_build_shared=no
13190
lt_prog_compiler_wl_F77=
13191
lt_prog_compiler_pic_F77=
13192
lt_prog_compiler_static_F77=
13194
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13195
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13197
if test "$GCC" = yes; then
13198
lt_prog_compiler_wl_F77='-Wl,'
13199
lt_prog_compiler_static_F77='-static'
13203
# All AIX code is PIC.
13204
if test "$host_cpu" = ia64; then
13205
# AIX 5 now supports IA64 processor
13206
lt_prog_compiler_static_F77='-Bstatic'
13211
# FIXME: we need at least 68020 code to build shared libraries, but
13212
# adding the `-m68020' flag to GCC prevents building anything better,
13214
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13217
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13218
# PIC is the default for these OSes.
13221
mingw* | pw32* | os2*)
13222
# This hack is so that the source file can tell whether it is being
13223
# built for inclusion in a dll (and should export symbols for example).
13224
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13227
darwin* | rhapsody*)
13228
# PIC is the default on this platform
13229
# Common symbols not allowed in MH_DYLIB files
13230
lt_prog_compiler_pic_F77='-fno-common'
13234
# Just because we use GCC doesn't mean we suddenly get shared libraries
13235
# on systems that don't support them.
13236
lt_prog_compiler_can_build_shared_F77=no
13241
if test -d /usr/nec; then
13242
lt_prog_compiler_pic_F77=-Kconform_pic
13247
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13248
# not for PA HP-UX.
13249
case "$host_cpu" in
13254
lt_prog_compiler_pic_F77='-fPIC'
13260
lt_prog_compiler_pic_F77='-fPIC'
13264
# PORTME Check for flag to pass linker flags through the system compiler.
13267
lt_prog_compiler_wl_F77='-Wl,'
13268
if test "$host_cpu" = ia64; then
13269
# AIX 5 now supports IA64 processor
13270
lt_prog_compiler_static_F77='-Bstatic'
13272
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13276
mingw* | pw32* | os2*)
13277
# This hack is so that the source file can tell whether it is being
13278
# built for inclusion in a dll (and should export symbols for example).
13279
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13282
hpux9* | hpux10* | hpux11*)
13283
lt_prog_compiler_wl_F77='-Wl,'
13284
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13285
# not for PA HP-UX.
13286
case "$host_cpu" in
13291
lt_prog_compiler_pic_F77='+Z'
13294
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13295
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13298
irix5* | irix6* | nonstopux*)
13299
lt_prog_compiler_wl_F77='-Wl,'
13300
# PIC (with -KPIC) is the default.
13301
lt_prog_compiler_static_F77='-non_shared'
13305
lt_prog_compiler_pic_F77='-KPIC'
13306
lt_prog_compiler_static_F77='-Bstatic'
13312
lt_prog_compiler_wl_F77='-Wl,'
13313
lt_prog_compiler_pic_F77='-KPIC'
13314
lt_prog_compiler_static_F77='-static'
13317
lt_prog_compiler_wl_F77='-Wl,'
13318
# All Alpha code is PIC.
13319
lt_prog_compiler_static_F77='-non_shared'
13324
osf3* | osf4* | osf5*)
13325
lt_prog_compiler_wl_F77='-Wl,'
13326
# All OSF/1 code is PIC.
13327
lt_prog_compiler_static_F77='-non_shared'
13331
lt_prog_compiler_pic_F77='-Kpic'
13332
lt_prog_compiler_static_F77='-dn'
13336
lt_prog_compiler_wl_F77='-Wl,'
13337
lt_prog_compiler_pic_F77='-KPIC'
13338
lt_prog_compiler_static_F77='-Bstatic'
13342
lt_prog_compiler_wl_F77='-Qoption ld '
13343
lt_prog_compiler_pic_F77='-PIC'
13344
lt_prog_compiler_static_F77='-Bstatic'
13347
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13348
lt_prog_compiler_wl_F77='-Wl,'
13349
lt_prog_compiler_pic_F77='-KPIC'
13350
lt_prog_compiler_static_F77='-Bstatic'
13354
if test -d /usr/nec ;then
13355
lt_prog_compiler_pic_F77='-Kconform_pic'
13356
lt_prog_compiler_static_F77='-Bstatic'
13361
lt_prog_compiler_pic_F77='-pic'
13362
lt_prog_compiler_static_F77='-Bstatic'
13366
lt_prog_compiler_can_build_shared_F77=no
13371
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13372
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13375
# Check to make sure the PIC flag actually works.
13377
if test -n "$lt_prog_compiler_pic_F77"; then
13379
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13380
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13381
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13382
echo $ECHO_N "(cached) $ECHO_C" >&6
13384
lt_prog_compiler_pic_works_F77=no
13385
ac_outfile=conftest.$ac_objext
13386
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13387
lt_compiler_flag="$lt_prog_compiler_pic_F77"
13388
# Insert the option either (1) after the last *FLAGS variable, or
13389
# (2) before a word containing "conftest.", or (3) at the end.
13390
# Note that $ac_compile itself does not contain backslashes and begins
13391
# with a dollar sign (not a hyphen), so the echo should work correctly.
13392
# The option is referenced via a variable to avoid confusing sed.
13393
lt_compile=`echo "$ac_compile" | $SED \
13394
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13395
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13396
-e 's:$: $lt_compiler_flag:'`
13397
(eval echo "\"\$as_me:13397: $lt_compile\"" >&5)
13398
(eval "$lt_compile" 2>conftest.err)
13400
cat conftest.err >&5
13401
echo "$as_me:13401: \$? = $ac_status" >&5
13402
if (exit $ac_status) && test -s "$ac_outfile"; then
13403
# The compiler can only warn and ignore the option if not recognized
13404
# So say no if there are warnings
13405
if test ! -s conftest.err; then
13406
lt_prog_compiler_pic_works_F77=yes
13412
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13413
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13415
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13416
case $lt_prog_compiler_pic_F77 in
13418
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13421
lt_prog_compiler_pic_F77=
13422
lt_prog_compiler_can_build_shared_F77=no
13427
# For platforms which do not support PIC, -DPIC is meaningless:
13429
lt_prog_compiler_pic_F77=
13432
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13436
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13437
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13438
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13439
echo $ECHO_N "(cached) $ECHO_C" >&6
13441
lt_cv_prog_compiler_c_o_F77=no
13442
$rm -r conftest 2>/dev/null
13446
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13448
lt_compiler_flag="-o out/conftest2.$ac_objext"
13449
# Insert the option either (1) after the last *FLAGS variable, or
13450
# (2) before a word containing "conftest.", or (3) at the end.
13451
# Note that $ac_compile itself does not contain backslashes and begins
13452
# with a dollar sign (not a hyphen), so the echo should work correctly.
13453
lt_compile=`echo "$ac_compile" | $SED \
13454
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13455
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13456
-e 's:$: $lt_compiler_flag:'`
13457
(eval echo "\"\$as_me:13457: $lt_compile\"" >&5)
13458
(eval "$lt_compile" 2>out/conftest.err)
13460
cat out/conftest.err >&5
13461
echo "$as_me:13461: \$? = $ac_status" >&5
13462
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13464
# The compiler can only warn and ignore the option if not recognized
13465
# So say no if there are warnings
13466
if test ! -s out/conftest.err; then
13467
lt_cv_prog_compiler_c_o_F77=yes
13472
# SGI C++ compiler will create directory out/ii_files/ for
13473
# template instantiation
13474
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13475
$rm out/* && rmdir out
13481
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13482
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13485
hard_links="nottested"
13486
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13487
# do not overwrite the value of need_locks provided by the user
13488
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13489
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13492
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13494
ln conftest.a conftest.b 2>&5 || hard_links=no
13495
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13496
echo "$as_me:$LINENO: result: $hard_links" >&5
13497
echo "${ECHO_T}$hard_links" >&6
13498
if test "$hard_links" = no; then
13499
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13500
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13507
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13508
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13511
allow_undefined_flag_F77=
13512
enable_shared_with_static_runtimes_F77=no
13514
archive_expsym_cmds_F77=
13515
old_archive_From_new_cmds_F77=
13516
old_archive_from_expsyms_cmds_F77=
13517
export_dynamic_flag_spec_F77=
13518
whole_archive_flag_spec_F77=
13519
thread_safe_flag_spec_F77=
13520
hardcode_libdir_flag_spec_F77=
13521
hardcode_libdir_flag_spec_ld_F77=
13522
hardcode_libdir_separator_F77=
13523
hardcode_direct_F77=no
13524
hardcode_minus_L_F77=no
13525
hardcode_shlibpath_var_F77=unsupported
13526
link_all_deplibs_F77=unknown
13527
hardcode_automatic_F77=no
13529
module_expsym_cmds_F77=
13530
always_export_symbols_F77=no
13531
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13532
# include_expsyms should be a list of space-separated symbols to be *always*
13533
# included in the symbol list
13534
include_expsyms_F77=
13535
# exclude_expsyms can be an extended regexp of symbols to exclude
13536
# it will be wrapped by ` (' and `)$', so one must not match beginning or
13537
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13538
# as well as any symbol that contains `d'.
13539
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13540
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13541
# platforms (ab)use it in PIC code, but their linkers get confused if
13542
# the symbol is explicitly referenced. Since portable code cannot
13543
# rely on this symbol name, it's probably fine to never include it in
13544
# preloaded symbol tables.
13545
extract_expsyms_cmds=
13548
cygwin* | mingw* | pw32*)
13549
# FIXME: the MSVC++ port hasn't been tested in a loooong time
13550
# When not using gcc, we currently assume that we are using
13551
# Microsoft Visual C++.
13552
if test "$GCC" != yes; then
13562
if test "$with_gnu_ld" = yes; then
13563
# If archive_cmds runs LD, not CC, wlarc should be empty
13566
# See if GNU ld supports shared libraries.
13568
aix3* | aix4* | aix5*)
13569
# On AIX/PPC, the GNU linker is very broken
13570
if test "$host_cpu" != ia64; then
13574
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13575
*** to be unable to reliably create shared libraries on AIX.
13576
*** Therefore, libtool is disabling shared libraries support. If you
13577
*** really care for shared libraries, you may want to modify your PATH
13578
*** so that a non-GNU linker is found, and then restart.
13585
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)'
13586
hardcode_libdir_flag_spec_F77='-L$libdir'
13587
hardcode_minus_L_F77=yes
13589
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13590
# that the semantics of dynamic libraries on AmigaOS, at least up
13591
# to version 4, is to share data among multiple programs linked
13592
# with the same dynamic library. Since this doesn't match the
13593
# behavior of shared libraries on other platforms, we can't use
13599
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13600
allow_undefined_flag_F77=unsupported
13601
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13602
# support --undefined. This deserves some investigation. FIXME
13603
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13609
cygwin* | mingw* | pw32*)
13610
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13611
# as there is no search path for DLLs.
13612
hardcode_libdir_flag_spec_F77='-L$libdir'
13613
allow_undefined_flag_F77=unsupported
13614
always_export_symbols_F77=no
13615
enable_shared_with_static_runtimes_F77=yes
13616
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13618
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13619
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13620
# If the export-symbols file already is a .def file (1st line
13621
# is EXPORTS), use it as is; otherwise, prepend...
13622
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13623
cp $export_symbols $output_objdir/$soname.def;
13625
echo EXPORTS > $output_objdir/$soname.def;
13626
cat $export_symbols >> $output_objdir/$soname.def;
13628
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13634
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13635
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13636
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13639
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13640
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13645
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13649
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13650
*** create shared libraries on Solaris systems. Therefore, libtool
13651
*** is disabling shared libraries support. We urge you to upgrade GNU
13652
*** binutils to release 2.9.1 or newer. Another option is to modify
13653
*** your PATH or compiler configuration so that the native linker is
13654
*** used, and then restart.
13657
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13658
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13659
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13666
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13668
hardcode_direct_F77=yes
13669
hardcode_shlibpath_var_F77=no
13673
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13674
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13675
archive_cmds_F77="$tmp_archive_cmds"
13676
supports_anon_versioning=no
13677
case `$LD -v 2>/dev/null` in
13678
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13679
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13680
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13681
*\ 2.11.*) ;; # other 2.11 versions
13682
*) supports_anon_versioning=yes ;;
13684
if test $supports_anon_versioning = yes; then
13685
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13686
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13687
$echo "local: *; };" >> $output_objdir/$libname.ver~
13688
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13690
archive_expsym_cmds_F77="$tmp_archive_cmds"
13692
link_all_deplibs_F77=no
13699
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13700
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13701
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13708
if test "$ld_shlibs_F77" = yes; then
13709
runpath_var=LD_RUN_PATH
13710
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13711
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13712
# ancient GNU ld didn't support --whole-archive et. al.
13713
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13714
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13716
whole_archive_flag_spec_F77=
13720
# PORTME fill in a description of your system's linker (not GNU ld)
13723
allow_undefined_flag_F77=unsupported
13724
always_export_symbols_F77=yes
13725
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'
13726
# Note: this linker hardcodes the directories in LIBPATH if there
13727
# are no directories specified by -L.
13728
hardcode_minus_L_F77=yes
13729
if test "$GCC" = yes && test -z "$link_static_flag"; then
13730
# Neither direct hardcoding nor static linking is supported with a
13732
hardcode_direct_F77=unsupported
13737
if test "$host_cpu" = ia64; then
13738
# On IA64, the linker does run time linking by default, so we don't
13739
# have to do anything special.
13740
aix_use_runtimelinking=no
13741
exp_sym_flag='-Bexport'
13744
# If we're using GNU nm, then we don't want the "-C" option.
13745
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13746
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13747
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'
13749
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'
13751
aix_use_runtimelinking=no
13753
# Test if we are trying to use run time linking or normal
13754
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13755
# need to do runtime linking.
13756
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13757
for ld_flag in $LDFLAGS; do
13758
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13759
aix_use_runtimelinking=yes
13765
exp_sym_flag='-bexport'
13766
no_entry_flag='-bnoentry'
13769
# When large executables or shared objects are built, AIX ld can
13770
# have problems creating the table of contents. If linking a library
13771
# or program results in "error TOC overflow" add -mminimal-toc to
13772
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13773
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13775
archive_cmds_F77=''
13776
hardcode_direct_F77=yes
13777
hardcode_libdir_separator_F77=':'
13778
link_all_deplibs_F77=yes
13780
if test "$GCC" = yes; then
13781
case $host_os in aix4.012|aix4.012.*)
13782
# We only want to do this on AIX 4.2 and lower, the check
13783
# below for broken collect2 doesn't work under 4.3+
13784
collect2name=`${CC} -print-prog-name=collect2`
13785
if test -f "$collect2name" && \
13786
strings "$collect2name" | grep resolve_lib_name >/dev/null
13788
# We have reworked collect2
13789
hardcode_direct_F77=yes
13791
# We have old collect2
13792
hardcode_direct_F77=unsupported
13793
# It fails to find uninstalled libraries when the uninstalled
13794
# path is not listed in the libpath. Setting hardcode_minus_L
13795
# to unsupported forces relinking
13796
hardcode_minus_L_F77=yes
13797
hardcode_libdir_flag_spec_F77='-L$libdir'
13798
hardcode_libdir_separator_F77=
13801
shared_flag='-shared'
13804
if test "$host_cpu" = ia64; then
13805
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13806
# chokes on -Wl,-G. The following line is correct:
13809
if test "$aix_use_runtimelinking" = yes; then
13810
shared_flag='${wl}-G'
13812
shared_flag='${wl}-bM:SRE'
13817
# It seems that -bexpall does not export symbols beginning with
13818
# underscore (_), so it is better to generate a list of symbols to export.
13819
always_export_symbols_F77=yes
13820
if test "$aix_use_runtimelinking" = yes; then
13821
# Warning - without using the other runtime loading flags (-brtl),
13822
# -berok will link without error, but may produce a broken library.
13823
allow_undefined_flag_F77='-berok'
13824
# Determine the default libpath from the value encoded in an empty executable.
13825
cat >conftest.$ac_ext <<_ACEOF
13830
rm -f conftest.$ac_objext conftest$ac_exeext
13831
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13832
(eval $ac_link) 2>conftest.er1
13834
grep -v '^ *+' conftest.er1 >conftest.err
13836
cat conftest.err >&5
13837
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838
(exit $ac_status); } &&
13839
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13840
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13841
(eval $ac_try) 2>&5
13843
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844
(exit $ac_status); }; } &&
13845
{ ac_try='test -s conftest$ac_exeext'
13846
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847
(eval $ac_try) 2>&5
13849
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850
(exit $ac_status); }; }; then
13852
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13854
# Check for a 64-bit object if we didn't find anything.
13855
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; }
13858
echo "$as_me: failed program was:" >&5
13859
sed 's/^/| /' conftest.$ac_ext >&5
13862
rm -f conftest.err conftest.$ac_objext \
13863
conftest$ac_exeext conftest.$ac_ext
13864
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13866
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13867
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"
13869
if test "$host_cpu" = ia64; then
13870
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13871
allow_undefined_flag_F77="-z nodefs"
13872
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"
13874
# Determine the default libpath from the value encoded in an empty executable.
13875
cat >conftest.$ac_ext <<_ACEOF
13880
rm -f conftest.$ac_objext conftest$ac_exeext
13881
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13882
(eval $ac_link) 2>conftest.er1
13884
grep -v '^ *+' conftest.er1 >conftest.err
13886
cat conftest.err >&5
13887
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888
(exit $ac_status); } &&
13889
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13890
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13891
(eval $ac_try) 2>&5
13893
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894
(exit $ac_status); }; } &&
13895
{ ac_try='test -s conftest$ac_exeext'
13896
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897
(eval $ac_try) 2>&5
13899
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900
(exit $ac_status); }; }; then
13902
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13904
# Check for a 64-bit object if we didn't find anything.
13905
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; }
13908
echo "$as_me: failed program was:" >&5
13909
sed 's/^/| /' conftest.$ac_ext >&5
13912
rm -f conftest.err conftest.$ac_objext \
13913
conftest$ac_exeext conftest.$ac_ext
13914
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13916
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13917
# Warning - without using the other run time loading flags,
13918
# -berok will link without error, but may produce a broken library.
13919
no_undefined_flag_F77=' ${wl}-bernotok'
13920
allow_undefined_flag_F77=' ${wl}-berok'
13921
# -bexpall does not export symbols beginning with underscore (_)
13922
always_export_symbols_F77=yes
13923
# Exported symbols can be pulled into shared objects from archives
13924
whole_archive_flag_spec_F77=' '
13925
archive_cmds_need_lc_F77=yes
13926
# This is similar to how AIX traditionally builds it's shared libraries.
13927
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'
13933
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)'
13934
hardcode_libdir_flag_spec_F77='-L$libdir'
13935
hardcode_minus_L_F77=yes
13936
# see comment about different semantics on the GNU ld section
13941
export_dynamic_flag_spec_F77=-rdynamic
13944
cygwin* | mingw* | pw32*)
13945
# When not using gcc, we currently assume that we are using
13946
# Microsoft Visual C++.
13947
# hardcode_libdir_flag_spec is actually meaningless, as there is
13948
# no search path for DLLs.
13949
hardcode_libdir_flag_spec_F77=' '
13950
allow_undefined_flag_F77=unsupported
13951
# Tell ltmain to make .lib files, not .a files.
13953
# Tell ltmain to make .dll files, not .so files.
13955
# FIXME: Setting linknames here is a bad hack.
13956
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13957
# The linker will automatically build a .lib file if we build a DLL.
13958
old_archive_From_new_cmds_F77='true'
13959
# FIXME: Should let the user specify the lib program.
13960
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13961
fix_srcfile_path='`cygpath -w "$srcfile"`'
13962
enable_shared_with_static_runtimes_F77=yes
13965
darwin* | rhapsody*)
13966
if test "$GXX" = yes ; then
13967
archive_cmds_need_lc_F77=no
13969
rhapsody* | darwin1.[012])
13970
allow_undefined_flag_F77='-undefined suppress'
13973
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13974
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13976
case ${MACOSX_DEPLOYMENT_TARGET} in
13978
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13981
allow_undefined_flag_F77='-undefined dynamic_lookup'
13987
lt_int_apple_cc_single_mod=no
13988
output_verbose_link_cmd='echo'
13989
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13990
lt_int_apple_cc_single_mod=yes
13992
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13993
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13995
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'
13997
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13998
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13999
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14000
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}'
14002
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}'
14004
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}'
14005
hardcode_direct_F77=no
14006
hardcode_automatic_F77=yes
14007
hardcode_shlibpath_var_F77=unsupported
14008
whole_archive_flag_spec_F77='-all_load $convenience'
14009
link_all_deplibs_F77=yes
14016
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14017
hardcode_libdir_flag_spec_F77='-L$libdir'
14018
hardcode_shlibpath_var_F77=no
14025
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14026
# support. Future versions do this automatically, but an explicit c++rt0.o
14027
# does not break anything, and helps significantly (at the cost of a little
14030
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14031
hardcode_libdir_flag_spec_F77='-R$libdir'
14032
hardcode_direct_F77=yes
14033
hardcode_shlibpath_var_F77=no
14036
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
14038
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14039
hardcode_direct_F77=yes
14040
hardcode_minus_L_F77=yes
14041
hardcode_shlibpath_var_F77=no
14044
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14045
freebsd* | kfreebsd*-gnu)
14046
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14047
hardcode_libdir_flag_spec_F77='-R$libdir'
14048
hardcode_direct_F77=yes
14049
hardcode_shlibpath_var_F77=no
14053
if test "$GCC" = yes; then
14054
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'
14056
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'
14058
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14059
hardcode_libdir_separator_F77=:
14060
hardcode_direct_F77=yes
14062
# hardcode_minus_L: Not really in the search PATH,
14063
# but as the default location of the library.
14064
hardcode_minus_L_F77=yes
14065
export_dynamic_flag_spec_F77='${wl}-E'
14069
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14070
case "$host_cpu" in
14072
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14075
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14079
case "$host_cpu" in
14081
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14084
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14088
if test "$with_gnu_ld" = no; then
14089
case "$host_cpu" in
14091
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14092
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14093
hardcode_libdir_separator_F77=:
14094
hardcode_direct_F77=no
14095
hardcode_shlibpath_var_F77=no
14098
hardcode_libdir_flag_spec_F77='-L$libdir'
14099
hardcode_direct_F77=no
14100
hardcode_shlibpath_var_F77=no
14102
# hardcode_minus_L: Not really in the search PATH,
14103
# but as the default location of the library.
14104
hardcode_minus_L_F77=yes
14107
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14108
hardcode_libdir_separator_F77=:
14109
hardcode_direct_F77=yes
14110
export_dynamic_flag_spec_F77='${wl}-E'
14112
# hardcode_minus_L: Not really in the search PATH,
14113
# but as the default location of the library.
14114
hardcode_minus_L_F77=yes
14120
irix5* | irix6* | nonstopux*)
14121
if test "$GCC" = yes; then
14122
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'
14124
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'
14125
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14127
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14128
hardcode_libdir_separator_F77=:
14129
link_all_deplibs_F77=yes
14132
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14133
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14134
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14136
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14138
hardcode_libdir_flag_spec_F77='-R$libdir'
14139
hardcode_direct_F77=yes
14140
hardcode_shlibpath_var_F77=no
14144
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14145
hardcode_direct_F77=yes
14146
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14147
hardcode_libdir_separator_F77=:
14148
hardcode_shlibpath_var_F77=no
14152
hardcode_direct_F77=yes
14153
hardcode_shlibpath_var_F77=no
14154
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14155
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14156
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14157
export_dynamic_flag_spec_F77='${wl}-E'
14160
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14161
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14162
hardcode_libdir_flag_spec_F77='-R$libdir'
14165
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14166
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14173
hardcode_libdir_flag_spec_F77='-L$libdir'
14174
hardcode_minus_L_F77=yes
14175
allow_undefined_flag_F77=unsupported
14176
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'
14177
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14181
if test "$GCC" = yes; then
14182
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14183
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'
14185
allow_undefined_flag_F77=' -expect_unresolved \*'
14186
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'
14188
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14189
hardcode_libdir_separator_F77=:
14192
osf4* | osf5*) # as osf3* with the addition of -msym flag
14193
if test "$GCC" = yes; then
14194
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14195
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'
14196
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14198
allow_undefined_flag_F77=' -expect_unresolved \*'
14199
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'
14200
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~
14201
$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'
14203
# Both c and cxx compiler support -rpath directly
14204
hardcode_libdir_flag_spec_F77='-rpath $libdir'
14206
hardcode_libdir_separator_F77=:
14210
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14211
hardcode_shlibpath_var_F77=no
14212
export_dynamic_flag_spec_F77='${wl}-Bexport'
14213
runpath_var=LD_RUN_PATH
14214
hardcode_runpath_var=yes
14218
no_undefined_flag_F77=' -z text'
14219
if test "$GCC" = yes; then
14220
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14221
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14222
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14224
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14225
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14226
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14228
hardcode_libdir_flag_spec_F77='-R$libdir'
14229
hardcode_shlibpath_var_F77=no
14231
solaris2.[0-5] | solaris2.[0-5].*) ;;
14232
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
14233
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14235
link_all_deplibs_F77=yes
14239
if test "x$host_vendor" = xsequent; then
14240
# Use $CC to link under sequent, because it throws in some extra .o
14241
# files that make .init and .fini sections work.
14242
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14244
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14246
hardcode_libdir_flag_spec_F77='-L$libdir'
14247
hardcode_direct_F77=yes
14248
hardcode_minus_L_F77=yes
14249
hardcode_shlibpath_var_F77=no
14253
case $host_vendor in
14255
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14256
hardcode_direct_F77=yes # is this really true???
14259
## LD is ld it makes a PLAMLIB
14260
## CC just makes a GrossModule.
14261
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14262
reload_cmds_F77='$CC -r -o $output$reload_objs'
14263
hardcode_direct_F77=no
14266
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14267
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14270
runpath_var='LD_RUN_PATH'
14271
hardcode_shlibpath_var_F77=no
14275
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14276
hardcode_shlibpath_var_F77=no
14277
export_dynamic_flag_spec_F77='-Bexport'
14281
if test -d /usr/nec; then
14282
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14283
hardcode_shlibpath_var_F77=no
14284
runpath_var=LD_RUN_PATH
14285
hardcode_runpath_var=yes
14291
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14292
hardcode_direct_F77=yes
14293
hardcode_minus_L_F77=no
14294
hardcode_shlibpath_var_F77=no
14295
hardcode_runpath_var=yes
14296
runpath_var=LD_RUN_PATH
14299
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14300
no_undefined_flag_F77='${wl}-z ${wl}text'
14301
if test "$GCC" = yes; then
14302
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14304
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14306
runpath_var='LD_RUN_PATH'
14307
hardcode_shlibpath_var_F77=no
14311
no_undefined_flag_F77=' -z text'
14312
# $CC -shared without GNU ld will not create a library from C++
14313
# object files and a static libstdc++, better avoid it by now
14314
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14315
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14316
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14317
hardcode_libdir_flag_spec_F77=
14318
hardcode_shlibpath_var_F77=no
14319
runpath_var='LD_RUN_PATH'
14323
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14324
hardcode_libdir_flag_spec_F77='-L$libdir'
14325
hardcode_shlibpath_var_F77=no
14334
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14335
echo "${ECHO_T}$ld_shlibs_F77" >&6
14336
test "$ld_shlibs_F77" = no && can_build_shared=no
14338
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14339
if test "$GCC" = yes; then
14340
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14344
# Do we need to explicitly link libc?
14346
case "x$archive_cmds_need_lc_F77" in
14348
# Assume -lc should be added
14349
archive_cmds_need_lc_F77=yes
14351
if test "$enable_shared" = yes && test "$GCC" = yes; then
14352
case $archive_cmds_F77 in
14354
# FIXME: we may have to deal with multi-command sequences.
14357
# Test whether the compiler implicitly links with -lc since on some
14358
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14359
# to ld, don't add -lc before -lgcc.
14360
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14361
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14363
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14365
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14366
(eval $ac_compile) 2>&5
14368
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369
(exit $ac_status); } 2>conftest.err; then
14372
libobjs=conftest.$ac_objext
14374
wl=$lt_prog_compiler_wl_F77
14380
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14381
allow_undefined_flag_F77=
14382
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14383
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14385
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386
(exit $ac_status); }
14388
archive_cmds_need_lc_F77=no
14390
archive_cmds_need_lc_F77=yes
14392
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14394
cat conftest.err 1>&5
14397
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14398
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14405
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14406
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14407
library_names_spec=
14408
libname_spec='lib$name'
14412
postuninstall_cmds=
14416
shlibpath_overrides_runpath=unknown
14418
dynamic_linker="$host_os ld.so"
14419
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14420
if test "$GCC" = yes; then
14421
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14422
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14423
# if the path contains ";" then we assume it to be the separator
14424
# otherwise default to the standard path separator (i.e. ":") - it is
14425
# assumed that no part of a normal pathname contains ";" but that should
14426
# okay in the real world where ";" in dirpaths is itself problematic.
14427
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14429
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14432
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14434
need_lib_prefix=unknown
14435
hardcode_into_libs=no
14437
# when you set need_version to no, make sure it does not cause -set_version
14438
# flags to be left without arguments
14439
need_version=unknown
14444
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14445
shlibpath_var=LIBPATH
14447
# AIX 3 has no versioning support, so we append a major version to the name.
14448
soname_spec='${libname}${release}${shared_ext}$major'
14455
hardcode_into_libs=yes
14456
if test "$host_cpu" = ia64; then
14457
# AIX 5 supports IA64
14458
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14459
shlibpath_var=LD_LIBRARY_PATH
14461
# With GCC up to 2.95.x, collect2 would create an import file
14462
# for dependence libraries. The import file would start with
14463
# the line `#! .'. This would cause the generated library to
14464
# depend on `.', always an invalid library. This was fixed in
14465
# development snapshots of GCC prior to 3.0.
14467
aix4 | aix4.[01] | aix4.[01].*)
14468
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14470
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14473
can_build_shared=no
14477
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14478
# soname into executable. Probably we can add versioning support to
14479
# collect2, so additional links can be useful in future.
14480
if test "$aix_use_runtimelinking" = yes; then
14481
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14482
# instead of lib<name>.a to let people know that these are not
14483
# typical AIX shared libraries.
14484
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14486
# We preserve .a as extension for shared libraries through AIX4.2
14487
# and later when we are not doing run time linking.
14488
library_names_spec='${libname}${release}.a $libname.a'
14489
soname_spec='${libname}${release}${shared_ext}$major'
14491
shlibpath_var=LIBPATH
14496
library_names_spec='$libname.ixlibrary $libname.a'
14497
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14498
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'
14502
library_names_spec='${libname}${shared_ext}'
14503
dynamic_linker="$host_os ld.so"
14504
shlibpath_var=LIBRARY_PATH
14510
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14511
soname_spec='${libname}${release}${shared_ext}$major'
14512
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14513
shlibpath_var=LD_LIBRARY_PATH
14514
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14515
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14516
# the default ld.so.conf also contains /usr/contrib/lib and
14517
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14518
# libtool to hard-code these into programs
14521
cygwin* | mingw* | pw32*)
14522
version_type=windows
14527
case $GCC,$host_os in
14528
yes,cygwin* | yes,mingw* | yes,pw32*)
14529
library_names_spec='$libname.dll.a'
14530
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14531
postinstall_cmds='base_file=`basename \${file}`~
14532
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14533
dldir=$destdir/`dirname \$dlpath`~
14534
test -d \$dldir || mkdir -p \$dldir~
14535
$install_prog $dir/$dlname \$dldir/$dlname'
14536
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14537
dlpath=$dir/\$dldll~
14539
shlibpath_overrides_runpath=yes
14543
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14544
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14545
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14548
# MinGW DLLs use traditional 'lib' prefix
14549
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14550
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14551
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14552
# It is most probably a Windows format PATH printed by
14553
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14554
# path with ; separators, and with drive letters. We can handle the
14555
# drive letters (cygwin fileutils understands them), so leave them,
14556
# especially as we might pass files found there to a mingw objdump,
14557
# which wouldn't understand a cygwinified path. Ahh.
14558
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14560
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14564
# pw32 DLLs use 'pw' prefix rather than 'lib'
14565
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14571
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14574
dynamic_linker='Win32 ld.exe'
14575
# FIXME: first we should search . and the directory the executable is in
14579
darwin* | rhapsody*)
14580
dynamic_linker="$host_os dyld"
14581
version_type=darwin
14584
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14585
soname_spec='${libname}${release}${major}$shared_ext'
14586
shlibpath_overrides_runpath=yes
14587
shlibpath_var=DYLD_LIBRARY_PATH
14588
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14589
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14590
if test "$GCC" = yes; then
14591
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"`
14593
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14595
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14602
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14603
soname_spec='${libname}${release}${shared_ext}$major'
14604
shlibpath_var=LD_LIBRARY_PATH
14615
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14616
soname_spec='${libname}${release}${shared_ext}$major'
14617
shlibpath_var=LD_LIBRARY_PATH
14618
shlibpath_overrides_runpath=no
14619
hardcode_into_libs=yes
14620
dynamic_linker='GNU ld.so'
14624
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14625
version_type=freebsd-$objformat
14626
case $version_type in
14628
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14633
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14637
shlibpath_var=LD_LIBRARY_PATH
14640
shlibpath_overrides_runpath=yes
14642
freebsd3.01* | freebsdelf3.01*)
14643
shlibpath_overrides_runpath=yes
14644
hardcode_into_libs=yes
14647
shlibpath_overrides_runpath=no
14648
hardcode_into_libs=yes
14657
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14658
soname_spec='${libname}${release}${shared_ext}$major'
14659
shlibpath_var=LD_LIBRARY_PATH
14660
hardcode_into_libs=yes
14663
hpux9* | hpux10* | hpux11*)
14664
# Give a soname corresponding to the major version so that dld.sl refuses to
14665
# link against other versions.
14669
case "$host_cpu" in
14672
hardcode_into_libs=yes
14673
dynamic_linker="$host_os dld.so"
14674
shlibpath_var=LD_LIBRARY_PATH
14675
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14676
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14677
soname_spec='${libname}${release}${shared_ext}$major'
14678
if test "X$HPUX_IA64_MODE" = X32; then
14679
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14681
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14683
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14687
hardcode_into_libs=yes
14688
dynamic_linker="$host_os dld.sl"
14689
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14690
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14691
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14692
soname_spec='${libname}${release}${shared_ext}$major'
14693
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14694
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14698
dynamic_linker="$host_os dld.sl"
14699
shlibpath_var=SHLIB_PATH
14700
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14701
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14702
soname_spec='${libname}${release}${shared_ext}$major'
14705
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14706
postinstall_cmds='chmod 555 $lib'
14709
irix5* | irix6* | nonstopux*)
14711
nonstopux*) version_type=nonstopux ;;
14713
if test "$lt_cv_prog_gnu_ld" = yes; then
14721
soname_spec='${libname}${release}${shared_ext}$major'
14722
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14724
irix5* | nonstopux*)
14725
libsuff= shlibsuff=
14728
case $LD in # libtool.m4 will add one of these switches to LD
14729
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14730
libsuff= shlibsuff= libmagic=32-bit;;
14731
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14732
libsuff=32 shlibsuff=N32 libmagic=N32;;
14733
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14734
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14735
*) libsuff= shlibsuff= libmagic=never-match;;
14739
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14740
shlibpath_overrides_runpath=no
14741
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14742
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14743
hardcode_into_libs=yes
14746
# No shared lib support for Linux oldld, aout, or coff.
14747
linux*oldld* | linux*aout* | linux*coff*)
14751
# This must be Linux ELF.
14756
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14757
soname_spec='${libname}${release}${shared_ext}$major'
14758
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14759
shlibpath_var=LD_LIBRARY_PATH
14760
shlibpath_overrides_runpath=no
14761
# This implies no fast_install, which is unacceptable.
14762
# Some rework will be needed to allow for fast_install
14763
# before this can be enabled.
14764
hardcode_into_libs=yes
14766
# Append ld.so.conf contents to the search path
14767
if test -f /etc/ld.so.conf; then
14768
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14769
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14772
# We used to test for /lib/ld.so.1 and disable shared libraries on
14773
# powerpc, because MkLinux only supported shared libraries with the
14774
# GNU dynamic linker. Since this was broken with cross compilers,
14775
# most powerpc-linux boxes support dynamic linking these days and
14776
# people can always --disable-shared, the test was removed, and we
14777
# assume the GNU/Linux dynamic linker is in use.
14778
dynamic_linker='GNU/Linux ld.so'
14785
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14786
soname_spec='${libname}${release}${shared_ext}$major'
14787
shlibpath_var=LD_LIBRARY_PATH
14788
shlibpath_overrides_runpath=no
14789
hardcode_into_libs=yes
14790
dynamic_linker='NetBSD ld.elf_so'
14797
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14798
soname_spec='${libname}${release}${shared_ext}$major'
14799
shlibpath_var=LD_LIBRARY_PATH
14800
shlibpath_overrides_runpath=no
14801
hardcode_into_libs=yes
14802
dynamic_linker='GNU ld.so'
14809
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14810
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14811
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14812
dynamic_linker='NetBSD (a.out) ld.so'
14814
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14815
soname_spec='${libname}${release}${shared_ext}$major'
14816
dynamic_linker='NetBSD ld.elf_so'
14818
shlibpath_var=LD_LIBRARY_PATH
14819
shlibpath_overrides_runpath=yes
14820
hardcode_into_libs=yes
14825
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14826
shlibpath_var=LD_LIBRARY_PATH
14827
shlibpath_overrides_runpath=yes
14834
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14835
soname_spec='${libname}${release}${shared_ext}$major'
14836
shlibpath_var=LD_LIBRARY_PATH
14837
shlibpath_overrides_runpath=yes
14844
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14845
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14846
shlibpath_var=LD_LIBRARY_PATH
14847
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14849
openbsd2.[89] | openbsd2.[89].*)
14850
shlibpath_overrides_runpath=no
14853
shlibpath_overrides_runpath=yes
14857
shlibpath_overrides_runpath=yes
14862
libname_spec='$name'
14865
library_names_spec='$libname${shared_ext} $libname.a'
14866
dynamic_linker='OS/2 ld.exe'
14867
shlibpath_var=LIBPATH
14870
osf3* | osf4* | osf5*)
14874
soname_spec='${libname}${release}${shared_ext}$major'
14875
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14876
shlibpath_var=LD_LIBRARY_PATH
14877
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14878
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14883
soname_spec='${libname}${release}${shared_ext}$major'
14884
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14885
shlibpath_var=LD_LIBRARY_PATH
14892
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14893
soname_spec='${libname}${release}${shared_ext}$major'
14894
shlibpath_var=LD_LIBRARY_PATH
14895
shlibpath_overrides_runpath=yes
14896
hardcode_into_libs=yes
14897
# ldd complains unless libraries are executable
14898
postinstall_cmds='chmod +x $lib'
14903
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14904
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14905
shlibpath_var=LD_LIBRARY_PATH
14906
shlibpath_overrides_runpath=yes
14907
if test "$with_gnu_ld" = yes; then
14913
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14915
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14916
soname_spec='${libname}${release}${shared_ext}$major'
14917
shlibpath_var=LD_LIBRARY_PATH
14918
case $host_vendor in
14920
shlibpath_overrides_runpath=no
14922
export_dynamic_flag_spec='${wl}-Blargedynsym'
14923
runpath_var=LD_RUN_PATH
14931
shlibpath_overrides_runpath=no
14932
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14938
if test -d /usr/nec ;then
14940
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14941
soname_spec='$libname${shared_ext}.$major'
14942
shlibpath_var=LD_LIBRARY_PATH
14948
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14949
soname_spec='${libname}${release}${shared_ext}$major'
14950
shlibpath_var=LD_LIBRARY_PATH
14957
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14958
echo "${ECHO_T}$dynamic_linker" >&6
14959
test "$dynamic_linker" = no && can_build_shared=no
14961
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14962
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14963
hardcode_action_F77=
14964
if test -n "$hardcode_libdir_flag_spec_F77" || \
14965
test -n "$runpath_var F77" || \
14966
test "X$hardcode_automatic_F77"="Xyes" ; then
14968
# We can hardcode non-existant directories.
14969
if test "$hardcode_direct_F77" != no &&
14970
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14971
# have to relink, otherwise we might link with an installed library
14972
# when we should be linking with a yet-to-be-installed one
14973
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14974
test "$hardcode_minus_L_F77" != no; then
14975
# Linking always hardcodes the temporary library directory.
14976
hardcode_action_F77=relink
14978
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14979
hardcode_action_F77=immediate
14982
# We cannot hardcode anything, or else we can only hardcode existing
14984
hardcode_action_F77=unsupported
14986
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14987
echo "${ECHO_T}$hardcode_action_F77" >&6
14989
if test "$hardcode_action_F77" = relink; then
14990
# Fast installation is not supported
14991
enable_fast_install=no
14992
elif test "$shlibpath_overrides_runpath" = yes ||
14993
test "$enable_shared" = no; then
14994
# Fast installation is not necessary
14995
enable_fast_install=needless
15000
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15001
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15002
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15003
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15004
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15005
echo "$as_me:$LINENO: result: yes" >&5
15006
echo "${ECHO_T}yes" >&6
15008
# FIXME - insert some real tests, host_os isn't really good enough
15011
if test -n "$STRIP" ; then
15012
striplib="$STRIP -x"
15013
echo "$as_me:$LINENO: result: yes" >&5
15014
echo "${ECHO_T}yes" >&6
15016
echo "$as_me:$LINENO: result: no" >&5
15017
echo "${ECHO_T}no" >&6
15021
echo "$as_me:$LINENO: result: no" >&5
15022
echo "${ECHO_T}no" >&6
15029
# The else clause should only fire when bootstrapping the
15030
# libtool distribution, otherwise you forgot to ship ltmain.sh
15031
# with your package, and you will get complaints that there are
15032
# no rules to generate ltmain.sh.
15033
if test -f "$ltmain"; then
15034
# See if we are running on zsh, and set the options which allow our commands through
15035
# without removal of \ escapes.
15036
if test -n "${ZSH_VERSION+set}" ; then
15037
setopt NO_GLOB_SUBST
15039
# Now quote all the things that may contain metacharacters while being
15040
# careful not to overquote the AC_SUBSTed values. We take copies of the
15041
# variables and quote the copies for generation of the libtool script.
15042
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15044
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15045
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15046
deplibs_check_method reload_flag reload_cmds need_locks \
15047
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15048
lt_cv_sys_global_symbol_to_c_name_address \
15049
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15050
old_postinstall_cmds old_postuninstall_cmds \
15054
lt_prog_compiler_wl_F77 \
15055
lt_prog_compiler_pic_F77 \
15056
lt_prog_compiler_static_F77 \
15057
lt_prog_compiler_no_builtin_flag_F77 \
15058
export_dynamic_flag_spec_F77 \
15059
thread_safe_flag_spec_F77 \
15060
whole_archive_flag_spec_F77 \
15061
enable_shared_with_static_runtimes_F77 \
15062
old_archive_cmds_F77 \
15063
old_archive_from_new_cmds_F77 \
15064
predep_objects_F77 \
15065
postdep_objects_F77 \
15068
compiler_lib_search_path_F77 \
15070
archive_expsym_cmds_F77 \
15071
postinstall_cmds_F77 \
15072
postuninstall_cmds_F77 \
15073
old_archive_from_expsyms_cmds_F77 \
15074
allow_undefined_flag_F77 \
15075
no_undefined_flag_F77 \
15076
export_symbols_cmds_F77 \
15077
hardcode_libdir_flag_spec_F77 \
15078
hardcode_libdir_flag_spec_ld_F77 \
15079
hardcode_libdir_separator_F77 \
15080
hardcode_automatic_F77 \
15082
module_expsym_cmds_F77 \
15083
lt_cv_prog_compiler_c_o_F77 \
15084
exclude_expsyms_F77 \
15085
include_expsyms_F77; do
15088
old_archive_cmds_F77 | \
15089
old_archive_from_new_cmds_F77 | \
15090
archive_cmds_F77 | \
15091
archive_expsym_cmds_F77 | \
15092
module_cmds_F77 | \
15093
module_expsym_cmds_F77 | \
15094
old_archive_from_expsyms_cmds_F77 | \
15095
export_symbols_cmds_F77 | \
15096
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15097
postinstall_cmds | postuninstall_cmds | \
15098
old_postinstall_cmds | old_postuninstall_cmds | \
15099
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15100
# Double-quote double-evaled strings.
15101
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15104
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15110
*'\$0 --fallback-echo"')
15111
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15117
cat <<__EOF__ >> "$cfgfile"
15118
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15120
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15122
# Shell to use when invoking shell scripts.
15125
# Whether or not to build shared libraries.
15126
build_libtool_libs=$enable_shared
15128
# Whether or not to build static libraries.
15129
build_old_libs=$enable_static
15131
# Whether or not to add -lc for building shared libraries.
15132
build_libtool_need_lc=$archive_cmds_need_lc_F77
15134
# Whether or not to disallow shared libs when runtime libs are static
15135
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15137
# Whether or not to optimize for fast installation.
15138
fast_install=$enable_fast_install
15141
host_alias=$host_alias
15144
# An echo program that does not interpret backslashes.
15149
AR_FLAGS=$lt_AR_FLAGS
15154
# A language-specific compiler.
15155
CC=$lt_compiler_F77
15157
# Is the compiler the GNU C compiler?
15163
# The linker used to build libraries.
15166
# Whether we need hard or soft links.
15169
# A BSD-compatible nm program.
15172
# A symbol stripping program
15175
# Used to examine libraries when file_magic_cmd begins "file"
15176
MAGIC_CMD=$MAGIC_CMD
15178
# Used on cygwin: DLL creation program.
15181
# Used on cygwin: object dumper.
15184
# Used on cygwin: assembler.
15187
# The name of the directory that contains temporary libtool files.
15190
# How to create reloadable object files.
15191
reload_flag=$lt_reload_flag
15192
reload_cmds=$lt_reload_cmds
15194
# How to pass a linker flag through the compiler.
15195
wl=$lt_lt_prog_compiler_wl_F77
15197
# Object file suffix (normally "o").
15198
objext="$ac_objext"
15200
# Old archive suffix (normally "a").
15203
# Shared library suffix (normally ".so").
15204
shrext_cmds='$shrext_cmds'
15206
# Executable file suffix (normally "").
15209
# Additional compiler flags for building library objects.
15210
pic_flag=$lt_lt_prog_compiler_pic_F77
15213
# What is the maximum length of a command?
15214
max_cmd_len=$lt_cv_sys_max_cmd_len
15216
# Does compiler simultaneously support -c and -o options?
15217
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15219
# Must we lock files when doing compilation ?
15220
need_locks=$lt_need_locks
15222
# Do we need the lib prefix for modules?
15223
need_lib_prefix=$need_lib_prefix
15225
# Do we need a version for libraries?
15226
need_version=$need_version
15228
# Whether dlopen is supported.
15229
dlopen_support=$enable_dlopen
15231
# Whether dlopen of programs is supported.
15232
dlopen_self=$enable_dlopen_self
15234
# Whether dlopen of statically linked programs is supported.
15235
dlopen_self_static=$enable_dlopen_self_static
15237
# Compiler flag to prevent dynamic linking.
15238
link_static_flag=$lt_lt_prog_compiler_static_F77
15240
# Compiler flag to turn off builtin functions.
15241
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15243
# Compiler flag to allow reflexive dlopens.
15244
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15246
# Compiler flag to generate shared objects directly from archives.
15247
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15249
# Compiler flag to generate thread-safe objects.
15250
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15252
# Library versioning type.
15253
version_type=$version_type
15255
# Format of library name prefix.
15256
libname_spec=$lt_libname_spec
15258
# List of archive names. First name is the real one, the rest are links.
15259
# The last name is the one that the linker finds with -lNAME.
15260
library_names_spec=$lt_library_names_spec
15262
# The coded name of the library, if different from the real name.
15263
soname_spec=$lt_soname_spec
15265
# Commands used to build and install an old-style archive.
15267
old_archive_cmds=$lt_old_archive_cmds_F77
15268
old_postinstall_cmds=$lt_old_postinstall_cmds
15269
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15271
# Create an old-style archive from a shared archive.
15272
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15274
# Create a temporary old-style archive to link instead of a shared archive.
15275
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15277
# Commands used to build and install a shared archive.
15278
archive_cmds=$lt_archive_cmds_F77
15279
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15280
postinstall_cmds=$lt_postinstall_cmds
15281
postuninstall_cmds=$lt_postuninstall_cmds
15283
# Commands used to build a loadable module (assumed same as above if empty)
15284
module_cmds=$lt_module_cmds_F77
15285
module_expsym_cmds=$lt_module_expsym_cmds_F77
15287
# Commands to strip libraries.
15288
old_striplib=$lt_old_striplib
15289
striplib=$lt_striplib
15291
# Dependencies to place before the objects being linked to create a
15293
predep_objects=$lt_predep_objects_F77
15295
# Dependencies to place after the objects being linked to create a
15297
postdep_objects=$lt_postdep_objects_F77
15299
# Dependencies to place before the objects being linked to create a
15301
predeps=$lt_predeps_F77
15303
# Dependencies to place after the objects being linked to create a
15305
postdeps=$lt_postdeps_F77
15307
# The library search path used internally by the compiler when linking
15308
# a shared library.
15309
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15311
# Method to check whether dependent libraries are shared objects.
15312
deplibs_check_method=$lt_deplibs_check_method
15314
# Command to use when deplibs_check_method == file_magic.
15315
file_magic_cmd=$lt_file_magic_cmd
15317
# Flag that allows shared libraries with undefined symbols to be built.
15318
allow_undefined_flag=$lt_allow_undefined_flag_F77
15320
# Flag that forces no undefined symbols.
15321
no_undefined_flag=$lt_no_undefined_flag_F77
15323
# Commands used to finish a libtool library installation in a directory.
15324
finish_cmds=$lt_finish_cmds
15326
# Same as above, but a single script fragment to be evaled but not shown.
15327
finish_eval=$lt_finish_eval
15329
# Take the output of nm and produce a listing of raw symbols and C names.
15330
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15332
# Transform the output of nm in a proper C declaration
15333
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15335
# Transform the output of nm in a C name address pair
15336
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15338
# This is the shared library runtime path variable.
15339
runpath_var=$runpath_var
15341
# This is the shared library path variable.
15342
shlibpath_var=$shlibpath_var
15344
# Is shlibpath searched before the hard-coded library search path?
15345
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15347
# How to hardcode a shared library path into an executable.
15348
hardcode_action=$hardcode_action_F77
15350
# Whether we should hardcode library paths into libraries.
15351
hardcode_into_libs=$hardcode_into_libs
15353
# Flag to hardcode \$libdir into a binary during linking.
15354
# This must work even if \$libdir does not exist.
15355
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15357
# If ld is used when linking, flag to hardcode \$libdir into
15358
# a binary during linking. This must work even if \$libdir does
15360
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15362
# Whether we need a single -rpath flag with a separated argument.
15363
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15365
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15366
# resulting binary.
15367
hardcode_direct=$hardcode_direct_F77
15369
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15370
# resulting binary.
15371
hardcode_minus_L=$hardcode_minus_L_F77
15373
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15374
# the resulting binary.
15375
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15377
# Set to yes if building a shared library automatically hardcodes DIR into the library
15378
# and all subsequent libraries and executables linked against it.
15379
hardcode_automatic=$hardcode_automatic_F77
15381
# Variables whose values should be saved in libtool wrapper scripts and
15382
# restored at relink time.
15383
variables_saved_for_relink="$variables_saved_for_relink"
15385
# Whether libtool must link a program against all its dependency libraries.
15386
link_all_deplibs=$link_all_deplibs_F77
15388
# Compile-time system search path for libraries
15389
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15391
# Run-time system search path for libraries
15392
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15394
# Fix the shell variable \$srcfile for the compiler.
15395
fix_srcfile_path="$fix_srcfile_path_F77"
15397
# Set to yes if exported symbols are required.
15398
always_export_symbols=$always_export_symbols_F77
15400
# The commands to list exported symbols.
15401
export_symbols_cmds=$lt_export_symbols_cmds_F77
15403
# The commands to extract the exported symbol list from a shared archive.
15404
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15406
# Symbols that should not be listed in the preloaded symbols.
15407
exclude_expsyms=$lt_exclude_expsyms_F77
15409
# Symbols that must always be exported.
15410
include_expsyms=$lt_include_expsyms_F77
15412
# ### END LIBTOOL TAG CONFIG: $tagname
15418
# If there is no Makefile yet, we rely on a make rule to execute
15419
# `config.status --recheck' to rerun these tests and create the
15420
# libtool script then.
15421
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15422
if test -f "$ltmain_in"; then
15423
test -f Makefile && make "$ltmain"
15429
ac_cpp='$CPP $CPPFLAGS'
15430
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15431
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15432
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15442
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15446
# Source file extension for Java test sources.
15449
# Object file extension for compiled Java test sources.
15453
# Code to be used in simple compile tests
15454
lt_simple_compile_test_code="class foo {}\n"
15456
# Code to be used in simple link tests
15457
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15459
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15461
# If no C compiler was specified, use CC.
15464
# Allow CC to be a program name with arguments.
15468
# Allow CC to be a program name with arguments.
15474
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15475
archive_cmds_need_lc_GCJ=no
15478
lt_prog_compiler_no_builtin_flag_GCJ=
15480
if test "$GCC" = yes; then
15481
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15484
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15485
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15486
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15487
echo $ECHO_N "(cached) $ECHO_C" >&6
15489
lt_cv_prog_compiler_rtti_exceptions=no
15490
ac_outfile=conftest.$ac_objext
15491
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15492
lt_compiler_flag="-fno-rtti -fno-exceptions"
15493
# Insert the option either (1) after the last *FLAGS variable, or
15494
# (2) before a word containing "conftest.", or (3) at the end.
15495
# Note that $ac_compile itself does not contain backslashes and begins
15496
# with a dollar sign (not a hyphen), so the echo should work correctly.
15497
# The option is referenced via a variable to avoid confusing sed.
15498
lt_compile=`echo "$ac_compile" | $SED \
15499
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15500
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15501
-e 's:$: $lt_compiler_flag:'`
15502
(eval echo "\"\$as_me:15502: $lt_compile\"" >&5)
15503
(eval "$lt_compile" 2>conftest.err)
15505
cat conftest.err >&5
15506
echo "$as_me:15506: \$? = $ac_status" >&5
15507
if (exit $ac_status) && test -s "$ac_outfile"; then
15508
# The compiler can only warn and ignore the option if not recognized
15509
# So say no if there are warnings
15510
if test ! -s conftest.err; then
15511
lt_cv_prog_compiler_rtti_exceptions=yes
15517
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15518
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15520
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15521
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15528
lt_prog_compiler_wl_GCJ=
15529
lt_prog_compiler_pic_GCJ=
15530
lt_prog_compiler_static_GCJ=
15532
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15533
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15535
if test "$GCC" = yes; then
15536
lt_prog_compiler_wl_GCJ='-Wl,'
15537
lt_prog_compiler_static_GCJ='-static'
15541
# All AIX code is PIC.
15542
if test "$host_cpu" = ia64; then
15543
# AIX 5 now supports IA64 processor
15544
lt_prog_compiler_static_GCJ='-Bstatic'
15549
# FIXME: we need at least 68020 code to build shared libraries, but
15550
# adding the `-m68020' flag to GCC prevents building anything better,
15552
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15555
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15556
# PIC is the default for these OSes.
15559
mingw* | pw32* | os2*)
15560
# This hack is so that the source file can tell whether it is being
15561
# built for inclusion in a dll (and should export symbols for example).
15562
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15565
darwin* | rhapsody*)
15566
# PIC is the default on this platform
15567
# Common symbols not allowed in MH_DYLIB files
15568
lt_prog_compiler_pic_GCJ='-fno-common'
15572
# Just because we use GCC doesn't mean we suddenly get shared libraries
15573
# on systems that don't support them.
15574
lt_prog_compiler_can_build_shared_GCJ=no
15579
if test -d /usr/nec; then
15580
lt_prog_compiler_pic_GCJ=-Kconform_pic
15585
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15586
# not for PA HP-UX.
15587
case "$host_cpu" in
15592
lt_prog_compiler_pic_GCJ='-fPIC'
15598
lt_prog_compiler_pic_GCJ='-fPIC'
15602
# PORTME Check for flag to pass linker flags through the system compiler.
15605
lt_prog_compiler_wl_GCJ='-Wl,'
15606
if test "$host_cpu" = ia64; then
15607
# AIX 5 now supports IA64 processor
15608
lt_prog_compiler_static_GCJ='-Bstatic'
15610
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15614
mingw* | pw32* | os2*)
15615
# This hack is so that the source file can tell whether it is being
15616
# built for inclusion in a dll (and should export symbols for example).
15617
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15620
hpux9* | hpux10* | hpux11*)
15621
lt_prog_compiler_wl_GCJ='-Wl,'
15622
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15623
# not for PA HP-UX.
15624
case "$host_cpu" in
15629
lt_prog_compiler_pic_GCJ='+Z'
15632
# Is there a better lt_prog_compiler_static that works with the bundled CC?
15633
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15636
irix5* | irix6* | nonstopux*)
15637
lt_prog_compiler_wl_GCJ='-Wl,'
15638
# PIC (with -KPIC) is the default.
15639
lt_prog_compiler_static_GCJ='-non_shared'
15643
lt_prog_compiler_pic_GCJ='-KPIC'
15644
lt_prog_compiler_static_GCJ='-Bstatic'
15650
lt_prog_compiler_wl_GCJ='-Wl,'
15651
lt_prog_compiler_pic_GCJ='-KPIC'
15652
lt_prog_compiler_static_GCJ='-static'
15655
lt_prog_compiler_wl_GCJ='-Wl,'
15656
# All Alpha code is PIC.
15657
lt_prog_compiler_static_GCJ='-non_shared'
15662
osf3* | osf4* | osf5*)
15663
lt_prog_compiler_wl_GCJ='-Wl,'
15664
# All OSF/1 code is PIC.
15665
lt_prog_compiler_static_GCJ='-non_shared'
15669
lt_prog_compiler_pic_GCJ='-Kpic'
15670
lt_prog_compiler_static_GCJ='-dn'
15674
lt_prog_compiler_wl_GCJ='-Wl,'
15675
lt_prog_compiler_pic_GCJ='-KPIC'
15676
lt_prog_compiler_static_GCJ='-Bstatic'
15680
lt_prog_compiler_wl_GCJ='-Qoption ld '
15681
lt_prog_compiler_pic_GCJ='-PIC'
15682
lt_prog_compiler_static_GCJ='-Bstatic'
15685
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15686
lt_prog_compiler_wl_GCJ='-Wl,'
15687
lt_prog_compiler_pic_GCJ='-KPIC'
15688
lt_prog_compiler_static_GCJ='-Bstatic'
15692
if test -d /usr/nec ;then
15693
lt_prog_compiler_pic_GCJ='-Kconform_pic'
15694
lt_prog_compiler_static_GCJ='-Bstatic'
15699
lt_prog_compiler_pic_GCJ='-pic'
15700
lt_prog_compiler_static_GCJ='-Bstatic'
15704
lt_prog_compiler_can_build_shared_GCJ=no
15709
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15710
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15713
# Check to make sure the PIC flag actually works.
15715
if test -n "$lt_prog_compiler_pic_GCJ"; then
15717
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15718
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15719
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15720
echo $ECHO_N "(cached) $ECHO_C" >&6
15722
lt_prog_compiler_pic_works_GCJ=no
15723
ac_outfile=conftest.$ac_objext
15724
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15725
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15726
# Insert the option either (1) after the last *FLAGS variable, or
15727
# (2) before a word containing "conftest.", or (3) at the end.
15728
# Note that $ac_compile itself does not contain backslashes and begins
15729
# with a dollar sign (not a hyphen), so the echo should work correctly.
15730
# The option is referenced via a variable to avoid confusing sed.
15731
lt_compile=`echo "$ac_compile" | $SED \
15732
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15733
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15734
-e 's:$: $lt_compiler_flag:'`
15735
(eval echo "\"\$as_me:15735: $lt_compile\"" >&5)
15736
(eval "$lt_compile" 2>conftest.err)
15738
cat conftest.err >&5
15739
echo "$as_me:15739: \$? = $ac_status" >&5
15740
if (exit $ac_status) && test -s "$ac_outfile"; then
15741
# The compiler can only warn and ignore the option if not recognized
15742
# So say no if there are warnings
15743
if test ! -s conftest.err; then
15744
lt_prog_compiler_pic_works_GCJ=yes
15750
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15751
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15753
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15754
case $lt_prog_compiler_pic_GCJ in
15756
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15759
lt_prog_compiler_pic_GCJ=
15760
lt_prog_compiler_can_build_shared_GCJ=no
15765
# For platforms which do not support PIC, -DPIC is meaningless:
15767
lt_prog_compiler_pic_GCJ=
15770
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15774
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15775
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15776
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15777
echo $ECHO_N "(cached) $ECHO_C" >&6
15779
lt_cv_prog_compiler_c_o_GCJ=no
15780
$rm -r conftest 2>/dev/null
15784
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15786
lt_compiler_flag="-o out/conftest2.$ac_objext"
15787
# Insert the option either (1) after the last *FLAGS variable, or
15788
# (2) before a word containing "conftest.", or (3) at the end.
15789
# Note that $ac_compile itself does not contain backslashes and begins
15790
# with a dollar sign (not a hyphen), so the echo should work correctly.
15791
lt_compile=`echo "$ac_compile" | $SED \
15792
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15793
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15794
-e 's:$: $lt_compiler_flag:'`
15795
(eval echo "\"\$as_me:15795: $lt_compile\"" >&5)
15796
(eval "$lt_compile" 2>out/conftest.err)
15798
cat out/conftest.err >&5
15799
echo "$as_me:15799: \$? = $ac_status" >&5
15800
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15802
# The compiler can only warn and ignore the option if not recognized
15803
# So say no if there are warnings
15804
if test ! -s out/conftest.err; then
15805
lt_cv_prog_compiler_c_o_GCJ=yes
15810
# SGI C++ compiler will create directory out/ii_files/ for
15811
# template instantiation
15812
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15813
$rm out/* && rmdir out
15819
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15820
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15823
hard_links="nottested"
15824
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15825
# do not overwrite the value of need_locks provided by the user
15826
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15827
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15830
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15832
ln conftest.a conftest.b 2>&5 || hard_links=no
15833
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15834
echo "$as_me:$LINENO: result: $hard_links" >&5
15835
echo "${ECHO_T}$hard_links" >&6
15836
if test "$hard_links" = no; then
15837
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15838
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15845
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15846
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15849
allow_undefined_flag_GCJ=
15850
enable_shared_with_static_runtimes_GCJ=no
15852
archive_expsym_cmds_GCJ=
15853
old_archive_From_new_cmds_GCJ=
15854
old_archive_from_expsyms_cmds_GCJ=
15855
export_dynamic_flag_spec_GCJ=
15856
whole_archive_flag_spec_GCJ=
15857
thread_safe_flag_spec_GCJ=
15858
hardcode_libdir_flag_spec_GCJ=
15859
hardcode_libdir_flag_spec_ld_GCJ=
15860
hardcode_libdir_separator_GCJ=
15861
hardcode_direct_GCJ=no
15862
hardcode_minus_L_GCJ=no
15863
hardcode_shlibpath_var_GCJ=unsupported
15864
link_all_deplibs_GCJ=unknown
15865
hardcode_automatic_GCJ=no
15867
module_expsym_cmds_GCJ=
15868
always_export_symbols_GCJ=no
15869
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15870
# include_expsyms should be a list of space-separated symbols to be *always*
15871
# included in the symbol list
15872
include_expsyms_GCJ=
15873
# exclude_expsyms can be an extended regexp of symbols to exclude
15874
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15875
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15876
# as well as any symbol that contains `d'.
15877
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15878
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15879
# platforms (ab)use it in PIC code, but their linkers get confused if
15880
# the symbol is explicitly referenced. Since portable code cannot
15881
# rely on this symbol name, it's probably fine to never include it in
15882
# preloaded symbol tables.
15883
extract_expsyms_cmds=
15886
cygwin* | mingw* | pw32*)
15887
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15888
# When not using gcc, we currently assume that we are using
15889
# Microsoft Visual C++.
15890
if test "$GCC" != yes; then
15900
if test "$with_gnu_ld" = yes; then
15901
# If archive_cmds runs LD, not CC, wlarc should be empty
15904
# See if GNU ld supports shared libraries.
15906
aix3* | aix4* | aix5*)
15907
# On AIX/PPC, the GNU linker is very broken
15908
if test "$host_cpu" != ia64; then
15912
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15913
*** to be unable to reliably create shared libraries on AIX.
15914
*** Therefore, libtool is disabling shared libraries support. If you
15915
*** really care for shared libraries, you may want to modify your PATH
15916
*** so that a non-GNU linker is found, and then restart.
15923
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)'
15924
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15925
hardcode_minus_L_GCJ=yes
15927
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15928
# that the semantics of dynamic libraries on AmigaOS, at least up
15929
# to version 4, is to share data among multiple programs linked
15930
# with the same dynamic library. Since this doesn't match the
15931
# behavior of shared libraries on other platforms, we can't use
15937
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15938
allow_undefined_flag_GCJ=unsupported
15939
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15940
# support --undefined. This deserves some investigation. FIXME
15941
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15947
cygwin* | mingw* | pw32*)
15948
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15949
# as there is no search path for DLLs.
15950
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15951
allow_undefined_flag_GCJ=unsupported
15952
always_export_symbols_GCJ=no
15953
enable_shared_with_static_runtimes_GCJ=yes
15954
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15956
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15957
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15958
# If the export-symbols file already is a .def file (1st line
15959
# is EXPORTS), use it as is; otherwise, prepend...
15960
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15961
cp $export_symbols $output_objdir/$soname.def;
15963
echo EXPORTS > $output_objdir/$soname.def;
15964
cat $export_symbols >> $output_objdir/$soname.def;
15966
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15972
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15973
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15974
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15977
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15978
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15983
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15987
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15988
*** create shared libraries on Solaris systems. Therefore, libtool
15989
*** is disabling shared libraries support. We urge you to upgrade GNU
15990
*** binutils to release 2.9.1 or newer. Another option is to modify
15991
*** your PATH or compiler configuration so that the native linker is
15992
*** used, and then restart.
15995
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15996
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15997
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16004
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16006
hardcode_direct_GCJ=yes
16007
hardcode_shlibpath_var_GCJ=no
16011
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16012
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16013
archive_cmds_GCJ="$tmp_archive_cmds"
16014
supports_anon_versioning=no
16015
case `$LD -v 2>/dev/null` in
16016
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16017
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16018
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16019
*\ 2.11.*) ;; # other 2.11 versions
16020
*) supports_anon_versioning=yes ;;
16022
if test $supports_anon_versioning = yes; then
16023
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16024
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16025
$echo "local: *; };" >> $output_objdir/$libname.ver~
16026
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16028
archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16030
link_all_deplibs_GCJ=no
16037
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16038
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16039
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16046
if test "$ld_shlibs_GCJ" = yes; then
16047
runpath_var=LD_RUN_PATH
16048
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16049
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16050
# ancient GNU ld didn't support --whole-archive et. al.
16051
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16052
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16054
whole_archive_flag_spec_GCJ=
16058
# PORTME fill in a description of your system's linker (not GNU ld)
16061
allow_undefined_flag_GCJ=unsupported
16062
always_export_symbols_GCJ=yes
16063
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'
16064
# Note: this linker hardcodes the directories in LIBPATH if there
16065
# are no directories specified by -L.
16066
hardcode_minus_L_GCJ=yes
16067
if test "$GCC" = yes && test -z "$link_static_flag"; then
16068
# Neither direct hardcoding nor static linking is supported with a
16070
hardcode_direct_GCJ=unsupported
16075
if test "$host_cpu" = ia64; then
16076
# On IA64, the linker does run time linking by default, so we don't
16077
# have to do anything special.
16078
aix_use_runtimelinking=no
16079
exp_sym_flag='-Bexport'
16082
# If we're using GNU nm, then we don't want the "-C" option.
16083
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16084
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16085
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'
16087
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'
16089
aix_use_runtimelinking=no
16091
# Test if we are trying to use run time linking or normal
16092
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16093
# need to do runtime linking.
16094
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16095
for ld_flag in $LDFLAGS; do
16096
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16097
aix_use_runtimelinking=yes
16103
exp_sym_flag='-bexport'
16104
no_entry_flag='-bnoentry'
16107
# When large executables or shared objects are built, AIX ld can
16108
# have problems creating the table of contents. If linking a library
16109
# or program results in "error TOC overflow" add -mminimal-toc to
16110
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16111
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16113
archive_cmds_GCJ=''
16114
hardcode_direct_GCJ=yes
16115
hardcode_libdir_separator_GCJ=':'
16116
link_all_deplibs_GCJ=yes
16118
if test "$GCC" = yes; then
16119
case $host_os in aix4.012|aix4.012.*)
16120
# We only want to do this on AIX 4.2 and lower, the check
16121
# below for broken collect2 doesn't work under 4.3+
16122
collect2name=`${CC} -print-prog-name=collect2`
16123
if test -f "$collect2name" && \
16124
strings "$collect2name" | grep resolve_lib_name >/dev/null
16126
# We have reworked collect2
16127
hardcode_direct_GCJ=yes
16129
# We have old collect2
16130
hardcode_direct_GCJ=unsupported
16131
# It fails to find uninstalled libraries when the uninstalled
16132
# path is not listed in the libpath. Setting hardcode_minus_L
16133
# to unsupported forces relinking
16134
hardcode_minus_L_GCJ=yes
16135
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16136
hardcode_libdir_separator_GCJ=
16139
shared_flag='-shared'
16142
if test "$host_cpu" = ia64; then
16143
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16144
# chokes on -Wl,-G. The following line is correct:
16147
if test "$aix_use_runtimelinking" = yes; then
16148
shared_flag='${wl}-G'
16150
shared_flag='${wl}-bM:SRE'
16155
# It seems that -bexpall does not export symbols beginning with
16156
# underscore (_), so it is better to generate a list of symbols to export.
16157
always_export_symbols_GCJ=yes
16158
if test "$aix_use_runtimelinking" = yes; then
16159
# Warning - without using the other runtime loading flags (-brtl),
16160
# -berok will link without error, but may produce a broken library.
16161
allow_undefined_flag_GCJ='-berok'
16162
# Determine the default libpath from the value encoded in an empty executable.
16163
cat >conftest.$ac_ext <<_ACEOF
16166
cat confdefs.h >>conftest.$ac_ext
16167
cat >>conftest.$ac_ext <<_ACEOF
16168
/* end confdefs.h. */
16178
rm -f conftest.$ac_objext conftest$ac_exeext
16179
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16180
(eval $ac_link) 2>conftest.er1
16182
grep -v '^ *+' conftest.er1 >conftest.err
16184
cat conftest.err >&5
16185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186
(exit $ac_status); } &&
16187
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16188
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189
(eval $ac_try) 2>&5
16191
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192
(exit $ac_status); }; } &&
16193
{ ac_try='test -s conftest$ac_exeext'
16194
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16195
(eval $ac_try) 2>&5
16197
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198
(exit $ac_status); }; }; then
16200
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16202
# Check for a 64-bit object if we didn't find anything.
16203
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; }
16206
echo "$as_me: failed program was:" >&5
16207
sed 's/^/| /' conftest.$ac_ext >&5
16210
rm -f conftest.err conftest.$ac_objext \
16211
conftest$ac_exeext conftest.$ac_ext
16212
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16214
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16215
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"
16217
if test "$host_cpu" = ia64; then
16218
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16219
allow_undefined_flag_GCJ="-z nodefs"
16220
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"
16222
# Determine the default libpath from the value encoded in an empty executable.
16223
cat >conftest.$ac_ext <<_ACEOF
16226
cat confdefs.h >>conftest.$ac_ext
16227
cat >>conftest.$ac_ext <<_ACEOF
16228
/* end confdefs.h. */
16238
rm -f conftest.$ac_objext conftest$ac_exeext
16239
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16240
(eval $ac_link) 2>conftest.er1
16242
grep -v '^ *+' conftest.er1 >conftest.err
16244
cat conftest.err >&5
16245
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246
(exit $ac_status); } &&
16247
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16248
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16249
(eval $ac_try) 2>&5
16251
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252
(exit $ac_status); }; } &&
16253
{ ac_try='test -s conftest$ac_exeext'
16254
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255
(eval $ac_try) 2>&5
16257
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258
(exit $ac_status); }; }; then
16260
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16262
# Check for a 64-bit object if we didn't find anything.
16263
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; }
16266
echo "$as_me: failed program was:" >&5
16267
sed 's/^/| /' conftest.$ac_ext >&5
16270
rm -f conftest.err conftest.$ac_objext \
16271
conftest$ac_exeext conftest.$ac_ext
16272
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16274
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16275
# Warning - without using the other run time loading flags,
16276
# -berok will link without error, but may produce a broken library.
16277
no_undefined_flag_GCJ=' ${wl}-bernotok'
16278
allow_undefined_flag_GCJ=' ${wl}-berok'
16279
# -bexpall does not export symbols beginning with underscore (_)
16280
always_export_symbols_GCJ=yes
16281
# Exported symbols can be pulled into shared objects from archives
16282
whole_archive_flag_spec_GCJ=' '
16283
archive_cmds_need_lc_GCJ=yes
16284
# This is similar to how AIX traditionally builds it's shared libraries.
16285
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'
16291
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)'
16292
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16293
hardcode_minus_L_GCJ=yes
16294
# see comment about different semantics on the GNU ld section
16299
export_dynamic_flag_spec_GCJ=-rdynamic
16302
cygwin* | mingw* | pw32*)
16303
# When not using gcc, we currently assume that we are using
16304
# Microsoft Visual C++.
16305
# hardcode_libdir_flag_spec is actually meaningless, as there is
16306
# no search path for DLLs.
16307
hardcode_libdir_flag_spec_GCJ=' '
16308
allow_undefined_flag_GCJ=unsupported
16309
# Tell ltmain to make .lib files, not .a files.
16311
# Tell ltmain to make .dll files, not .so files.
16313
# FIXME: Setting linknames here is a bad hack.
16314
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16315
# The linker will automatically build a .lib file if we build a DLL.
16316
old_archive_From_new_cmds_GCJ='true'
16317
# FIXME: Should let the user specify the lib program.
16318
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16319
fix_srcfile_path='`cygpath -w "$srcfile"`'
16320
enable_shared_with_static_runtimes_GCJ=yes
16323
darwin* | rhapsody*)
16324
if test "$GXX" = yes ; then
16325
archive_cmds_need_lc_GCJ=no
16327
rhapsody* | darwin1.[012])
16328
allow_undefined_flag_GCJ='-undefined suppress'
16331
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16332
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16334
case ${MACOSX_DEPLOYMENT_TARGET} in
16336
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16339
allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16345
lt_int_apple_cc_single_mod=no
16346
output_verbose_link_cmd='echo'
16347
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16348
lt_int_apple_cc_single_mod=yes
16350
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16351
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16353
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'
16355
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16356
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16357
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16358
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}'
16360
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}'
16362
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}'
16363
hardcode_direct_GCJ=no
16364
hardcode_automatic_GCJ=yes
16365
hardcode_shlibpath_var_GCJ=unsupported
16366
whole_archive_flag_spec_GCJ='-all_load $convenience'
16367
link_all_deplibs_GCJ=yes
16374
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16375
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16376
hardcode_shlibpath_var_GCJ=no
16383
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16384
# support. Future versions do this automatically, but an explicit c++rt0.o
16385
# does not break anything, and helps significantly (at the cost of a little
16388
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16389
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16390
hardcode_direct_GCJ=yes
16391
hardcode_shlibpath_var_GCJ=no
16394
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16396
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16397
hardcode_direct_GCJ=yes
16398
hardcode_minus_L_GCJ=yes
16399
hardcode_shlibpath_var_GCJ=no
16402
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16403
freebsd* | kfreebsd*-gnu)
16404
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16405
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16406
hardcode_direct_GCJ=yes
16407
hardcode_shlibpath_var_GCJ=no
16411
if test "$GCC" = yes; then
16412
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'
16414
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'
16416
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16417
hardcode_libdir_separator_GCJ=:
16418
hardcode_direct_GCJ=yes
16420
# hardcode_minus_L: Not really in the search PATH,
16421
# but as the default location of the library.
16422
hardcode_minus_L_GCJ=yes
16423
export_dynamic_flag_spec_GCJ='${wl}-E'
16427
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16428
case "$host_cpu" in
16430
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16433
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16437
case "$host_cpu" in
16439
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16442
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16446
if test "$with_gnu_ld" = no; then
16447
case "$host_cpu" in
16449
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16450
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16451
hardcode_libdir_separator_GCJ=:
16452
hardcode_direct_GCJ=no
16453
hardcode_shlibpath_var_GCJ=no
16456
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16457
hardcode_direct_GCJ=no
16458
hardcode_shlibpath_var_GCJ=no
16460
# hardcode_minus_L: Not really in the search PATH,
16461
# but as the default location of the library.
16462
hardcode_minus_L_GCJ=yes
16465
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16466
hardcode_libdir_separator_GCJ=:
16467
hardcode_direct_GCJ=yes
16468
export_dynamic_flag_spec_GCJ='${wl}-E'
16470
# hardcode_minus_L: Not really in the search PATH,
16471
# but as the default location of the library.
16472
hardcode_minus_L_GCJ=yes
16478
irix5* | irix6* | nonstopux*)
16479
if test "$GCC" = yes; then
16480
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'
16482
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'
16483
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16485
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16486
hardcode_libdir_separator_GCJ=:
16487
link_all_deplibs_GCJ=yes
16490
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16491
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16492
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16494
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16496
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16497
hardcode_direct_GCJ=yes
16498
hardcode_shlibpath_var_GCJ=no
16502
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16503
hardcode_direct_GCJ=yes
16504
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16505
hardcode_libdir_separator_GCJ=:
16506
hardcode_shlibpath_var_GCJ=no
16510
hardcode_direct_GCJ=yes
16511
hardcode_shlibpath_var_GCJ=no
16512
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16513
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16514
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16515
export_dynamic_flag_spec_GCJ='${wl}-E'
16518
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16519
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16520
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16523
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16524
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16531
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16532
hardcode_minus_L_GCJ=yes
16533
allow_undefined_flag_GCJ=unsupported
16534
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'
16535
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16539
if test "$GCC" = yes; then
16540
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16541
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'
16543
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16544
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'
16546
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16547
hardcode_libdir_separator_GCJ=:
16550
osf4* | osf5*) # as osf3* with the addition of -msym flag
16551
if test "$GCC" = yes; then
16552
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16553
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'
16554
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16556
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16557
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'
16558
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~
16559
$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'
16561
# Both c and cxx compiler support -rpath directly
16562
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16564
hardcode_libdir_separator_GCJ=:
16568
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16569
hardcode_shlibpath_var_GCJ=no
16570
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16571
runpath_var=LD_RUN_PATH
16572
hardcode_runpath_var=yes
16576
no_undefined_flag_GCJ=' -z text'
16577
if test "$GCC" = yes; then
16578
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16579
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16580
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16582
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16583
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16584
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16586
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16587
hardcode_shlibpath_var_GCJ=no
16589
solaris2.[0-5] | solaris2.[0-5].*) ;;
16590
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
16591
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16593
link_all_deplibs_GCJ=yes
16597
if test "x$host_vendor" = xsequent; then
16598
# Use $CC to link under sequent, because it throws in some extra .o
16599
# files that make .init and .fini sections work.
16600
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16602
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16604
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16605
hardcode_direct_GCJ=yes
16606
hardcode_minus_L_GCJ=yes
16607
hardcode_shlibpath_var_GCJ=no
16611
case $host_vendor in
16613
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16614
hardcode_direct_GCJ=yes # is this really true???
16617
## LD is ld it makes a PLAMLIB
16618
## CC just makes a GrossModule.
16619
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16620
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16621
hardcode_direct_GCJ=no
16624
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16625
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16628
runpath_var='LD_RUN_PATH'
16629
hardcode_shlibpath_var_GCJ=no
16633
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16634
hardcode_shlibpath_var_GCJ=no
16635
export_dynamic_flag_spec_GCJ='-Bexport'
16639
if test -d /usr/nec; then
16640
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16641
hardcode_shlibpath_var_GCJ=no
16642
runpath_var=LD_RUN_PATH
16643
hardcode_runpath_var=yes
16649
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16650
hardcode_direct_GCJ=yes
16651
hardcode_minus_L_GCJ=no
16652
hardcode_shlibpath_var_GCJ=no
16653
hardcode_runpath_var=yes
16654
runpath_var=LD_RUN_PATH
16657
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16658
no_undefined_flag_GCJ='${wl}-z ${wl}text'
16659
if test "$GCC" = yes; then
16660
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16662
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16664
runpath_var='LD_RUN_PATH'
16665
hardcode_shlibpath_var_GCJ=no
16669
no_undefined_flag_GCJ=' -z text'
16670
# $CC -shared without GNU ld will not create a library from C++
16671
# object files and a static libstdc++, better avoid it by now
16672
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16673
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16674
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16675
hardcode_libdir_flag_spec_GCJ=
16676
hardcode_shlibpath_var_GCJ=no
16677
runpath_var='LD_RUN_PATH'
16681
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16682
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16683
hardcode_shlibpath_var_GCJ=no
16692
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16693
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16694
test "$ld_shlibs_GCJ" = no && can_build_shared=no
16696
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16697
if test "$GCC" = yes; then
16698
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16702
# Do we need to explicitly link libc?
16704
case "x$archive_cmds_need_lc_GCJ" in
16706
# Assume -lc should be added
16707
archive_cmds_need_lc_GCJ=yes
16709
if test "$enable_shared" = yes && test "$GCC" = yes; then
16710
case $archive_cmds_GCJ in
16712
# FIXME: we may have to deal with multi-command sequences.
16715
# Test whether the compiler implicitly links with -lc since on some
16716
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16717
# to ld, don't add -lc before -lgcc.
16718
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16719
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16721
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16723
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16724
(eval $ac_compile) 2>&5
16726
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727
(exit $ac_status); } 2>conftest.err; then
16730
libobjs=conftest.$ac_objext
16732
wl=$lt_prog_compiler_wl_GCJ
16738
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16739
allow_undefined_flag_GCJ=
16740
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16741
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16743
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744
(exit $ac_status); }
16746
archive_cmds_need_lc_GCJ=no
16748
archive_cmds_need_lc_GCJ=yes
16750
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16752
cat conftest.err 1>&5
16755
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16756
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16763
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16764
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16765
library_names_spec=
16766
libname_spec='lib$name'
16770
postuninstall_cmds=
16774
shlibpath_overrides_runpath=unknown
16776
dynamic_linker="$host_os ld.so"
16777
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16778
if test "$GCC" = yes; then
16779
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16780
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16781
# if the path contains ";" then we assume it to be the separator
16782
# otherwise default to the standard path separator (i.e. ":") - it is
16783
# assumed that no part of a normal pathname contains ";" but that should
16784
# okay in the real world where ";" in dirpaths is itself problematic.
16785
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16787
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16790
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16792
need_lib_prefix=unknown
16793
hardcode_into_libs=no
16795
# when you set need_version to no, make sure it does not cause -set_version
16796
# flags to be left without arguments
16797
need_version=unknown
16802
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16803
shlibpath_var=LIBPATH
16805
# AIX 3 has no versioning support, so we append a major version to the name.
16806
soname_spec='${libname}${release}${shared_ext}$major'
16813
hardcode_into_libs=yes
16814
if test "$host_cpu" = ia64; then
16815
# AIX 5 supports IA64
16816
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16817
shlibpath_var=LD_LIBRARY_PATH
16819
# With GCC up to 2.95.x, collect2 would create an import file
16820
# for dependence libraries. The import file would start with
16821
# the line `#! .'. This would cause the generated library to
16822
# depend on `.', always an invalid library. This was fixed in
16823
# development snapshots of GCC prior to 3.0.
16825
aix4 | aix4.[01] | aix4.[01].*)
16826
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16828
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16831
can_build_shared=no
16835
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16836
# soname into executable. Probably we can add versioning support to
16837
# collect2, so additional links can be useful in future.
16838
if test "$aix_use_runtimelinking" = yes; then
16839
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16840
# instead of lib<name>.a to let people know that these are not
16841
# typical AIX shared libraries.
16842
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16844
# We preserve .a as extension for shared libraries through AIX4.2
16845
# and later when we are not doing run time linking.
16846
library_names_spec='${libname}${release}.a $libname.a'
16847
soname_spec='${libname}${release}${shared_ext}$major'
16849
shlibpath_var=LIBPATH
16854
library_names_spec='$libname.ixlibrary $libname.a'
16855
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16856
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'
16860
library_names_spec='${libname}${shared_ext}'
16861
dynamic_linker="$host_os ld.so"
16862
shlibpath_var=LIBRARY_PATH
16868
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16869
soname_spec='${libname}${release}${shared_ext}$major'
16870
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16871
shlibpath_var=LD_LIBRARY_PATH
16872
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16873
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16874
# the default ld.so.conf also contains /usr/contrib/lib and
16875
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16876
# libtool to hard-code these into programs
16879
cygwin* | mingw* | pw32*)
16880
version_type=windows
16885
case $GCC,$host_os in
16886
yes,cygwin* | yes,mingw* | yes,pw32*)
16887
library_names_spec='$libname.dll.a'
16888
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16889
postinstall_cmds='base_file=`basename \${file}`~
16890
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16891
dldir=$destdir/`dirname \$dlpath`~
16892
test -d \$dldir || mkdir -p \$dldir~
16893
$install_prog $dir/$dlname \$dldir/$dlname'
16894
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16895
dlpath=$dir/\$dldll~
16897
shlibpath_overrides_runpath=yes
16901
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16902
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16903
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16906
# MinGW DLLs use traditional 'lib' prefix
16907
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16908
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16909
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16910
# It is most probably a Windows format PATH printed by
16911
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16912
# path with ; separators, and with drive letters. We can handle the
16913
# drive letters (cygwin fileutils understands them), so leave them,
16914
# especially as we might pass files found there to a mingw objdump,
16915
# which wouldn't understand a cygwinified path. Ahh.
16916
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16918
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16922
# pw32 DLLs use 'pw' prefix rather than 'lib'
16923
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16929
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16932
dynamic_linker='Win32 ld.exe'
16933
# FIXME: first we should search . and the directory the executable is in
16937
darwin* | rhapsody*)
16938
dynamic_linker="$host_os dyld"
16939
version_type=darwin
16942
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16943
soname_spec='${libname}${release}${major}$shared_ext'
16944
shlibpath_overrides_runpath=yes
16945
shlibpath_var=DYLD_LIBRARY_PATH
16946
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16947
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16948
if test "$GCC" = yes; then
16949
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"`
16951
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16953
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16960
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16961
soname_spec='${libname}${release}${shared_ext}$major'
16962
shlibpath_var=LD_LIBRARY_PATH
16973
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16974
soname_spec='${libname}${release}${shared_ext}$major'
16975
shlibpath_var=LD_LIBRARY_PATH
16976
shlibpath_overrides_runpath=no
16977
hardcode_into_libs=yes
16978
dynamic_linker='GNU ld.so'
16982
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16983
version_type=freebsd-$objformat
16984
case $version_type in
16986
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16991
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16995
shlibpath_var=LD_LIBRARY_PATH
16998
shlibpath_overrides_runpath=yes
17000
freebsd3.01* | freebsdelf3.01*)
17001
shlibpath_overrides_runpath=yes
17002
hardcode_into_libs=yes
17005
shlibpath_overrides_runpath=no
17006
hardcode_into_libs=yes
17015
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17016
soname_spec='${libname}${release}${shared_ext}$major'
17017
shlibpath_var=LD_LIBRARY_PATH
17018
hardcode_into_libs=yes
17021
hpux9* | hpux10* | hpux11*)
17022
# Give a soname corresponding to the major version so that dld.sl refuses to
17023
# link against other versions.
17027
case "$host_cpu" in
17030
hardcode_into_libs=yes
17031
dynamic_linker="$host_os dld.so"
17032
shlibpath_var=LD_LIBRARY_PATH
17033
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17034
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17035
soname_spec='${libname}${release}${shared_ext}$major'
17036
if test "X$HPUX_IA64_MODE" = X32; then
17037
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17039
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17041
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17045
hardcode_into_libs=yes
17046
dynamic_linker="$host_os dld.sl"
17047
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17048
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17049
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17050
soname_spec='${libname}${release}${shared_ext}$major'
17051
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17052
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17056
dynamic_linker="$host_os dld.sl"
17057
shlibpath_var=SHLIB_PATH
17058
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17059
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17060
soname_spec='${libname}${release}${shared_ext}$major'
17063
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17064
postinstall_cmds='chmod 555 $lib'
17067
irix5* | irix6* | nonstopux*)
17069
nonstopux*) version_type=nonstopux ;;
17071
if test "$lt_cv_prog_gnu_ld" = yes; then
17079
soname_spec='${libname}${release}${shared_ext}$major'
17080
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17082
irix5* | nonstopux*)
17083
libsuff= shlibsuff=
17086
case $LD in # libtool.m4 will add one of these switches to LD
17087
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17088
libsuff= shlibsuff= libmagic=32-bit;;
17089
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17090
libsuff=32 shlibsuff=N32 libmagic=N32;;
17091
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17092
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17093
*) libsuff= shlibsuff= libmagic=never-match;;
17097
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17098
shlibpath_overrides_runpath=no
17099
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17100
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17101
hardcode_into_libs=yes
17104
# No shared lib support for Linux oldld, aout, or coff.
17105
linux*oldld* | linux*aout* | linux*coff*)
17109
# This must be Linux ELF.
17114
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17115
soname_spec='${libname}${release}${shared_ext}$major'
17116
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17117
shlibpath_var=LD_LIBRARY_PATH
17118
shlibpath_overrides_runpath=no
17119
# This implies no fast_install, which is unacceptable.
17120
# Some rework will be needed to allow for fast_install
17121
# before this can be enabled.
17122
hardcode_into_libs=yes
17124
# Append ld.so.conf contents to the search path
17125
if test -f /etc/ld.so.conf; then
17126
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17127
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17130
# We used to test for /lib/ld.so.1 and disable shared libraries on
17131
# powerpc, because MkLinux only supported shared libraries with the
17132
# GNU dynamic linker. Since this was broken with cross compilers,
17133
# most powerpc-linux boxes support dynamic linking these days and
17134
# people can always --disable-shared, the test was removed, and we
17135
# assume the GNU/Linux dynamic linker is in use.
17136
dynamic_linker='GNU/Linux ld.so'
17143
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17144
soname_spec='${libname}${release}${shared_ext}$major'
17145
shlibpath_var=LD_LIBRARY_PATH
17146
shlibpath_overrides_runpath=no
17147
hardcode_into_libs=yes
17148
dynamic_linker='NetBSD ld.elf_so'
17155
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17156
soname_spec='${libname}${release}${shared_ext}$major'
17157
shlibpath_var=LD_LIBRARY_PATH
17158
shlibpath_overrides_runpath=no
17159
hardcode_into_libs=yes
17160
dynamic_linker='GNU ld.so'
17167
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17168
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17169
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17170
dynamic_linker='NetBSD (a.out) ld.so'
17172
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17173
soname_spec='${libname}${release}${shared_ext}$major'
17174
dynamic_linker='NetBSD ld.elf_so'
17176
shlibpath_var=LD_LIBRARY_PATH
17177
shlibpath_overrides_runpath=yes
17178
hardcode_into_libs=yes
17183
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17184
shlibpath_var=LD_LIBRARY_PATH
17185
shlibpath_overrides_runpath=yes
17192
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17193
soname_spec='${libname}${release}${shared_ext}$major'
17194
shlibpath_var=LD_LIBRARY_PATH
17195
shlibpath_overrides_runpath=yes
17202
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17203
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17204
shlibpath_var=LD_LIBRARY_PATH
17205
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17207
openbsd2.[89] | openbsd2.[89].*)
17208
shlibpath_overrides_runpath=no
17211
shlibpath_overrides_runpath=yes
17215
shlibpath_overrides_runpath=yes
17220
libname_spec='$name'
17223
library_names_spec='$libname${shared_ext} $libname.a'
17224
dynamic_linker='OS/2 ld.exe'
17225
shlibpath_var=LIBPATH
17228
osf3* | osf4* | osf5*)
17232
soname_spec='${libname}${release}${shared_ext}$major'
17233
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17234
shlibpath_var=LD_LIBRARY_PATH
17235
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17236
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17241
soname_spec='${libname}${release}${shared_ext}$major'
17242
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17243
shlibpath_var=LD_LIBRARY_PATH
17250
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17251
soname_spec='${libname}${release}${shared_ext}$major'
17252
shlibpath_var=LD_LIBRARY_PATH
17253
shlibpath_overrides_runpath=yes
17254
hardcode_into_libs=yes
17255
# ldd complains unless libraries are executable
17256
postinstall_cmds='chmod +x $lib'
17261
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17262
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17263
shlibpath_var=LD_LIBRARY_PATH
17264
shlibpath_overrides_runpath=yes
17265
if test "$with_gnu_ld" = yes; then
17271
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17273
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17274
soname_spec='${libname}${release}${shared_ext}$major'
17275
shlibpath_var=LD_LIBRARY_PATH
17276
case $host_vendor in
17278
shlibpath_overrides_runpath=no
17280
export_dynamic_flag_spec='${wl}-Blargedynsym'
17281
runpath_var=LD_RUN_PATH
17289
shlibpath_overrides_runpath=no
17290
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17296
if test -d /usr/nec ;then
17298
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17299
soname_spec='$libname${shared_ext}.$major'
17300
shlibpath_var=LD_LIBRARY_PATH
17306
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17307
soname_spec='${libname}${release}${shared_ext}$major'
17308
shlibpath_var=LD_LIBRARY_PATH
17315
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17316
echo "${ECHO_T}$dynamic_linker" >&6
17317
test "$dynamic_linker" = no && can_build_shared=no
17319
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17320
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17321
hardcode_action_GCJ=
17322
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17323
test -n "$runpath_var GCJ" || \
17324
test "X$hardcode_automatic_GCJ"="Xyes" ; then
17326
# We can hardcode non-existant directories.
17327
if test "$hardcode_direct_GCJ" != no &&
17328
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17329
# have to relink, otherwise we might link with an installed library
17330
# when we should be linking with a yet-to-be-installed one
17331
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17332
test "$hardcode_minus_L_GCJ" != no; then
17333
# Linking always hardcodes the temporary library directory.
17334
hardcode_action_GCJ=relink
17336
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17337
hardcode_action_GCJ=immediate
17340
# We cannot hardcode anything, or else we can only hardcode existing
17342
hardcode_action_GCJ=unsupported
17344
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17345
echo "${ECHO_T}$hardcode_action_GCJ" >&6
17347
if test "$hardcode_action_GCJ" = relink; then
17348
# Fast installation is not supported
17349
enable_fast_install=no
17350
elif test "$shlibpath_overrides_runpath" = yes ||
17351
test "$enable_shared" = no; then
17352
# Fast installation is not necessary
17353
enable_fast_install=needless
17358
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17359
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17360
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17361
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17362
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17363
echo "$as_me:$LINENO: result: yes" >&5
17364
echo "${ECHO_T}yes" >&6
17366
# FIXME - insert some real tests, host_os isn't really good enough
17369
if test -n "$STRIP" ; then
17370
striplib="$STRIP -x"
17371
echo "$as_me:$LINENO: result: yes" >&5
17372
echo "${ECHO_T}yes" >&6
17374
echo "$as_me:$LINENO: result: no" >&5
17375
echo "${ECHO_T}no" >&6
17379
echo "$as_me:$LINENO: result: no" >&5
17380
echo "${ECHO_T}no" >&6
17385
if test "x$enable_dlopen" != xyes; then
17386
enable_dlopen=unknown
17387
enable_dlopen_self=unknown
17388
enable_dlopen_self_static=unknown
17395
lt_cv_dlopen="load_add_on"
17397
lt_cv_dlopen_self=yes
17401
lt_cv_dlopen="LoadLibrary"
17406
lt_cv_dlopen="dlopen"
17411
# if libdl is installed we need to link against it
17412
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17413
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17414
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17415
echo $ECHO_N "(cached) $ECHO_C" >&6
17417
ac_check_lib_save_LIBS=$LIBS
17419
cat >conftest.$ac_ext <<_ACEOF
17422
cat confdefs.h >>conftest.$ac_ext
17423
cat >>conftest.$ac_ext <<_ACEOF
17424
/* end confdefs.h. */
17426
/* Override any gcc2 internal prototype to avoid an error. */
17430
/* We use char because int might match the return type of a gcc2
17431
builtin and then its argument prototype would still apply. */
17441
rm -f conftest.$ac_objext conftest$ac_exeext
17442
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17443
(eval $ac_link) 2>conftest.er1
17445
grep -v '^ *+' conftest.er1 >conftest.err
17447
cat conftest.err >&5
17448
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449
(exit $ac_status); } &&
17450
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17451
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17452
(eval $ac_try) 2>&5
17454
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455
(exit $ac_status); }; } &&
17456
{ ac_try='test -s conftest$ac_exeext'
17457
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17458
(eval $ac_try) 2>&5
17460
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461
(exit $ac_status); }; }; then
17462
ac_cv_lib_dl_dlopen=yes
17464
echo "$as_me: failed program was:" >&5
17465
sed 's/^/| /' conftest.$ac_ext >&5
17467
ac_cv_lib_dl_dlopen=no
17469
rm -f conftest.err conftest.$ac_objext \
17470
conftest$ac_exeext conftest.$ac_ext
17471
LIBS=$ac_check_lib_save_LIBS
17473
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17474
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17475
if test $ac_cv_lib_dl_dlopen = yes; then
17476
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17479
lt_cv_dlopen="dyld"
17481
lt_cv_dlopen_self=yes
17488
echo "$as_me:$LINENO: checking for shl_load" >&5
17489
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17490
if test "${ac_cv_func_shl_load+set}" = set; then
17491
echo $ECHO_N "(cached) $ECHO_C" >&6
17493
cat >conftest.$ac_ext <<_ACEOF
17496
cat confdefs.h >>conftest.$ac_ext
17497
cat >>conftest.$ac_ext <<_ACEOF
17498
/* end confdefs.h. */
17499
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17500
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17501
#define shl_load innocuous_shl_load
17503
/* System header to define __stub macros and hopefully few prototypes,
17504
which can conflict with char shl_load (); below.
17505
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17506
<limits.h> exists even on freestanding compilers. */
17509
# include <limits.h>
17511
# include <assert.h>
17516
/* Override any gcc2 internal prototype to avoid an error. */
17521
/* We use char because int might match the return type of a gcc2
17522
builtin and then its argument prototype would still apply. */
17524
/* The GNU C library defines this for functions which it implements
17525
to always fail with ENOSYS. Some functions are actually named
17526
something starting with __ and the normal name is an alias. */
17527
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17530
char (*f) () = shl_load;
17539
return f != shl_load;
17544
rm -f conftest.$ac_objext conftest$ac_exeext
17545
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17546
(eval $ac_link) 2>conftest.er1
17548
grep -v '^ *+' conftest.er1 >conftest.err
17550
cat conftest.err >&5
17551
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552
(exit $ac_status); } &&
17553
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17554
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555
(eval $ac_try) 2>&5
17557
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558
(exit $ac_status); }; } &&
17559
{ ac_try='test -s conftest$ac_exeext'
17560
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561
(eval $ac_try) 2>&5
17563
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564
(exit $ac_status); }; }; then
17565
ac_cv_func_shl_load=yes
17567
echo "$as_me: failed program was:" >&5
17568
sed 's/^/| /' conftest.$ac_ext >&5
17570
ac_cv_func_shl_load=no
17572
rm -f conftest.err conftest.$ac_objext \
17573
conftest$ac_exeext conftest.$ac_ext
17575
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17576
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17577
if test $ac_cv_func_shl_load = yes; then
17578
lt_cv_dlopen="shl_load"
17580
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17581
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17582
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17583
echo $ECHO_N "(cached) $ECHO_C" >&6
17585
ac_check_lib_save_LIBS=$LIBS
17587
cat >conftest.$ac_ext <<_ACEOF
17590
cat confdefs.h >>conftest.$ac_ext
17591
cat >>conftest.$ac_ext <<_ACEOF
17592
/* end confdefs.h. */
17594
/* Override any gcc2 internal prototype to avoid an error. */
17598
/* We use char because int might match the return type of a gcc2
17599
builtin and then its argument prototype would still apply. */
17609
rm -f conftest.$ac_objext conftest$ac_exeext
17610
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17611
(eval $ac_link) 2>conftest.er1
17613
grep -v '^ *+' conftest.er1 >conftest.err
17615
cat conftest.err >&5
17616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617
(exit $ac_status); } &&
17618
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17619
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17620
(eval $ac_try) 2>&5
17622
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623
(exit $ac_status); }; } &&
17624
{ ac_try='test -s conftest$ac_exeext'
17625
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17626
(eval $ac_try) 2>&5
17628
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629
(exit $ac_status); }; }; then
17630
ac_cv_lib_dld_shl_load=yes
17632
echo "$as_me: failed program was:" >&5
17633
sed 's/^/| /' conftest.$ac_ext >&5
17635
ac_cv_lib_dld_shl_load=no
17637
rm -f conftest.err conftest.$ac_objext \
17638
conftest$ac_exeext conftest.$ac_ext
17639
LIBS=$ac_check_lib_save_LIBS
17641
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17642
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17643
if test $ac_cv_lib_dld_shl_load = yes; then
17644
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17646
echo "$as_me:$LINENO: checking for dlopen" >&5
17647
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17648
if test "${ac_cv_func_dlopen+set}" = set; then
17649
echo $ECHO_N "(cached) $ECHO_C" >&6
17651
cat >conftest.$ac_ext <<_ACEOF
17654
cat confdefs.h >>conftest.$ac_ext
17655
cat >>conftest.$ac_ext <<_ACEOF
17656
/* end confdefs.h. */
17657
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17658
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17659
#define dlopen innocuous_dlopen
17661
/* System header to define __stub macros and hopefully few prototypes,
17662
which can conflict with char dlopen (); below.
17663
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17664
<limits.h> exists even on freestanding compilers. */
17667
# include <limits.h>
17669
# include <assert.h>
17674
/* Override any gcc2 internal prototype to avoid an error. */
17679
/* We use char because int might match the return type of a gcc2
17680
builtin and then its argument prototype would still apply. */
17682
/* The GNU C library defines this for functions which it implements
17683
to always fail with ENOSYS. Some functions are actually named
17684
something starting with __ and the normal name is an alias. */
17685
#if defined (__stub_dlopen) || defined (__stub___dlopen)
17688
char (*f) () = dlopen;
17697
return f != dlopen;
17702
rm -f conftest.$ac_objext conftest$ac_exeext
17703
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17704
(eval $ac_link) 2>conftest.er1
17706
grep -v '^ *+' conftest.er1 >conftest.err
17708
cat conftest.err >&5
17709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710
(exit $ac_status); } &&
17711
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17712
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17713
(eval $ac_try) 2>&5
17715
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716
(exit $ac_status); }; } &&
17717
{ ac_try='test -s conftest$ac_exeext'
17718
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719
(eval $ac_try) 2>&5
17721
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722
(exit $ac_status); }; }; then
17723
ac_cv_func_dlopen=yes
17725
echo "$as_me: failed program was:" >&5
17726
sed 's/^/| /' conftest.$ac_ext >&5
17728
ac_cv_func_dlopen=no
17730
rm -f conftest.err conftest.$ac_objext \
17731
conftest$ac_exeext conftest.$ac_ext
17733
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17734
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17735
if test $ac_cv_func_dlopen = yes; then
17736
lt_cv_dlopen="dlopen"
17738
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17739
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17740
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17741
echo $ECHO_N "(cached) $ECHO_C" >&6
17743
ac_check_lib_save_LIBS=$LIBS
17745
cat >conftest.$ac_ext <<_ACEOF
17748
cat confdefs.h >>conftest.$ac_ext
17749
cat >>conftest.$ac_ext <<_ACEOF
17750
/* end confdefs.h. */
17752
/* Override any gcc2 internal prototype to avoid an error. */
17756
/* We use char because int might match the return type of a gcc2
17757
builtin and then its argument prototype would still apply. */
17767
rm -f conftest.$ac_objext conftest$ac_exeext
17768
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17769
(eval $ac_link) 2>conftest.er1
17771
grep -v '^ *+' conftest.er1 >conftest.err
17773
cat conftest.err >&5
17774
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775
(exit $ac_status); } &&
17776
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17777
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17778
(eval $ac_try) 2>&5
17780
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781
(exit $ac_status); }; } &&
17782
{ ac_try='test -s conftest$ac_exeext'
17783
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784
(eval $ac_try) 2>&5
17786
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787
(exit $ac_status); }; }; then
17788
ac_cv_lib_dl_dlopen=yes
17790
echo "$as_me: failed program was:" >&5
17791
sed 's/^/| /' conftest.$ac_ext >&5
17793
ac_cv_lib_dl_dlopen=no
17795
rm -f conftest.err conftest.$ac_objext \
17796
conftest$ac_exeext conftest.$ac_ext
17797
LIBS=$ac_check_lib_save_LIBS
17799
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17800
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17801
if test $ac_cv_lib_dl_dlopen = yes; then
17802
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17804
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17805
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17806
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17807
echo $ECHO_N "(cached) $ECHO_C" >&6
17809
ac_check_lib_save_LIBS=$LIBS
17810
LIBS="-lsvld $LIBS"
17811
cat >conftest.$ac_ext <<_ACEOF
17814
cat confdefs.h >>conftest.$ac_ext
17815
cat >>conftest.$ac_ext <<_ACEOF
17816
/* end confdefs.h. */
17818
/* Override any gcc2 internal prototype to avoid an error. */
17822
/* We use char because int might match the return type of a gcc2
17823
builtin and then its argument prototype would still apply. */
17833
rm -f conftest.$ac_objext conftest$ac_exeext
17834
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17835
(eval $ac_link) 2>conftest.er1
17837
grep -v '^ *+' conftest.er1 >conftest.err
17839
cat conftest.err >&5
17840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841
(exit $ac_status); } &&
17842
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17843
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17844
(eval $ac_try) 2>&5
17846
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847
(exit $ac_status); }; } &&
17848
{ ac_try='test -s conftest$ac_exeext'
17849
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850
(eval $ac_try) 2>&5
17852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853
(exit $ac_status); }; }; then
17854
ac_cv_lib_svld_dlopen=yes
17856
echo "$as_me: failed program was:" >&5
17857
sed 's/^/| /' conftest.$ac_ext >&5
17859
ac_cv_lib_svld_dlopen=no
17861
rm -f conftest.err conftest.$ac_objext \
17862
conftest$ac_exeext conftest.$ac_ext
17863
LIBS=$ac_check_lib_save_LIBS
17865
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17866
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17867
if test $ac_cv_lib_svld_dlopen = yes; then
17868
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17870
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17871
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17872
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17873
echo $ECHO_N "(cached) $ECHO_C" >&6
17875
ac_check_lib_save_LIBS=$LIBS
17877
cat >conftest.$ac_ext <<_ACEOF
17880
cat confdefs.h >>conftest.$ac_ext
17881
cat >>conftest.$ac_ext <<_ACEOF
17882
/* end confdefs.h. */
17884
/* Override any gcc2 internal prototype to avoid an error. */
17888
/* We use char because int might match the return type of a gcc2
17889
builtin and then its argument prototype would still apply. */
17899
rm -f conftest.$ac_objext conftest$ac_exeext
17900
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17901
(eval $ac_link) 2>conftest.er1
17903
grep -v '^ *+' conftest.er1 >conftest.err
17905
cat conftest.err >&5
17906
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907
(exit $ac_status); } &&
17908
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17909
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17910
(eval $ac_try) 2>&5
17912
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913
(exit $ac_status); }; } &&
17914
{ ac_try='test -s conftest$ac_exeext'
17915
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916
(eval $ac_try) 2>&5
17918
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919
(exit $ac_status); }; }; then
17920
ac_cv_lib_dld_dld_link=yes
17922
echo "$as_me: failed program was:" >&5
17923
sed 's/^/| /' conftest.$ac_ext >&5
17925
ac_cv_lib_dld_dld_link=no
17927
rm -f conftest.err conftest.$ac_objext \
17928
conftest$ac_exeext conftest.$ac_ext
17929
LIBS=$ac_check_lib_save_LIBS
17931
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17932
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17933
if test $ac_cv_lib_dld_dld_link = yes; then
17934
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17955
if test "x$lt_cv_dlopen" != xno; then
17961
case $lt_cv_dlopen in
17963
save_CPPFLAGS="$CPPFLAGS"
17964
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17966
save_LDFLAGS="$LDFLAGS"
17967
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17970
LIBS="$lt_cv_dlopen_libs $LIBS"
17972
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17973
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17974
if test "${lt_cv_dlopen_self+set}" = set; then
17975
echo $ECHO_N "(cached) $ECHO_C" >&6
17977
if test "$cross_compiling" = yes; then :
17978
lt_cv_dlopen_self=cross
17980
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17981
lt_status=$lt_dlunknown
17982
cat > conftest.$ac_ext <<EOF
17983
#line 17983 "configure"
17984
#include "confdefs.h"
17993
# define LT_DLGLOBAL RTLD_GLOBAL
17996
# define LT_DLGLOBAL DL_GLOBAL
17998
# define LT_DLGLOBAL 0
18002
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18003
find out it does not work in some platform. */
18004
#ifndef LT_DLLAZY_OR_NOW
18006
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18009
# define LT_DLLAZY_OR_NOW DL_LAZY
18012
# define LT_DLLAZY_OR_NOW RTLD_NOW
18015
# define LT_DLLAZY_OR_NOW DL_NOW
18017
# define LT_DLLAZY_OR_NOW 0
18025
extern "C" void exit (int);
18028
void fnord() { int i=42;}
18031
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18032
int status = $lt_dlunknown;
18036
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18037
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18038
/* dlclose (self); */
18044
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18045
(eval $ac_link) 2>&5
18047
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18049
(./conftest; exit; ) 2>/dev/null
18051
case x$lt_status in
18052
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18053
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18054
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18057
# compilation failed
18058
lt_cv_dlopen_self=no
18065
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18066
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18068
if test "x$lt_cv_dlopen_self" = xyes; then
18069
LDFLAGS="$LDFLAGS $link_static_flag"
18070
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18071
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18072
if test "${lt_cv_dlopen_self_static+set}" = set; then
18073
echo $ECHO_N "(cached) $ECHO_C" >&6
18075
if test "$cross_compiling" = yes; then :
18076
lt_cv_dlopen_self_static=cross
18078
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18079
lt_status=$lt_dlunknown
18080
cat > conftest.$ac_ext <<EOF
18081
#line 18081 "configure"
18082
#include "confdefs.h"
18091
# define LT_DLGLOBAL RTLD_GLOBAL
18094
# define LT_DLGLOBAL DL_GLOBAL
18096
# define LT_DLGLOBAL 0
18100
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18101
find out it does not work in some platform. */
18102
#ifndef LT_DLLAZY_OR_NOW
18104
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18107
# define LT_DLLAZY_OR_NOW DL_LAZY
18110
# define LT_DLLAZY_OR_NOW RTLD_NOW
18113
# define LT_DLLAZY_OR_NOW DL_NOW
18115
# define LT_DLLAZY_OR_NOW 0
18123
extern "C" void exit (int);
18126
void fnord() { int i=42;}
18129
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18130
int status = $lt_dlunknown;
18134
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18135
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18136
/* dlclose (self); */
18142
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18143
(eval $ac_link) 2>&5
18145
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18147
(./conftest; exit; ) 2>/dev/null
18149
case x$lt_status in
18150
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18151
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18152
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18155
# compilation failed
18156
lt_cv_dlopen_self_static=no
18163
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18164
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18167
CPPFLAGS="$save_CPPFLAGS"
18168
LDFLAGS="$save_LDFLAGS"
18173
case $lt_cv_dlopen_self in
18174
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18175
*) enable_dlopen_self=unknown ;;
18178
case $lt_cv_dlopen_self_static in
18179
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18180
*) enable_dlopen_self_static=unknown ;;
18185
# The else clause should only fire when bootstrapping the
18186
# libtool distribution, otherwise you forgot to ship ltmain.sh
18187
# with your package, and you will get complaints that there are
18188
# no rules to generate ltmain.sh.
18189
if test -f "$ltmain"; then
18190
# See if we are running on zsh, and set the options which allow our commands through
18191
# without removal of \ escapes.
18192
if test -n "${ZSH_VERSION+set}" ; then
18193
setopt NO_GLOB_SUBST
18195
# Now quote all the things that may contain metacharacters while being
18196
# careful not to overquote the AC_SUBSTed values. We take copies of the
18197
# variables and quote the copies for generation of the libtool script.
18198
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18200
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18201
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18202
deplibs_check_method reload_flag reload_cmds need_locks \
18203
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18204
lt_cv_sys_global_symbol_to_c_name_address \
18205
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18206
old_postinstall_cmds old_postuninstall_cmds \
18210
lt_prog_compiler_wl_GCJ \
18211
lt_prog_compiler_pic_GCJ \
18212
lt_prog_compiler_static_GCJ \
18213
lt_prog_compiler_no_builtin_flag_GCJ \
18214
export_dynamic_flag_spec_GCJ \
18215
thread_safe_flag_spec_GCJ \
18216
whole_archive_flag_spec_GCJ \
18217
enable_shared_with_static_runtimes_GCJ \
18218
old_archive_cmds_GCJ \
18219
old_archive_from_new_cmds_GCJ \
18220
predep_objects_GCJ \
18221
postdep_objects_GCJ \
18224
compiler_lib_search_path_GCJ \
18226
archive_expsym_cmds_GCJ \
18227
postinstall_cmds_GCJ \
18228
postuninstall_cmds_GCJ \
18229
old_archive_from_expsyms_cmds_GCJ \
18230
allow_undefined_flag_GCJ \
18231
no_undefined_flag_GCJ \
18232
export_symbols_cmds_GCJ \
18233
hardcode_libdir_flag_spec_GCJ \
18234
hardcode_libdir_flag_spec_ld_GCJ \
18235
hardcode_libdir_separator_GCJ \
18236
hardcode_automatic_GCJ \
18238
module_expsym_cmds_GCJ \
18239
lt_cv_prog_compiler_c_o_GCJ \
18240
exclude_expsyms_GCJ \
18241
include_expsyms_GCJ; do
18244
old_archive_cmds_GCJ | \
18245
old_archive_from_new_cmds_GCJ | \
18246
archive_cmds_GCJ | \
18247
archive_expsym_cmds_GCJ | \
18248
module_cmds_GCJ | \
18249
module_expsym_cmds_GCJ | \
18250
old_archive_from_expsyms_cmds_GCJ | \
18251
export_symbols_cmds_GCJ | \
18252
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18253
postinstall_cmds | postuninstall_cmds | \
18254
old_postinstall_cmds | old_postuninstall_cmds | \
18255
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18256
# Double-quote double-evaled strings.
18257
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18260
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18266
*'\$0 --fallback-echo"')
18267
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18273
cat <<__EOF__ >> "$cfgfile"
18274
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18276
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18278
# Shell to use when invoking shell scripts.
18281
# Whether or not to build shared libraries.
18282
build_libtool_libs=$enable_shared
18284
# Whether or not to build static libraries.
18285
build_old_libs=$enable_static
18287
# Whether or not to add -lc for building shared libraries.
18288
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18290
# Whether or not to disallow shared libs when runtime libs are static
18291
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18293
# Whether or not to optimize for fast installation.
18294
fast_install=$enable_fast_install
18297
host_alias=$host_alias
18300
# An echo program that does not interpret backslashes.
18305
AR_FLAGS=$lt_AR_FLAGS
18310
# A language-specific compiler.
18311
CC=$lt_compiler_GCJ
18313
# Is the compiler the GNU C compiler?
18319
# The linker used to build libraries.
18322
# Whether we need hard or soft links.
18325
# A BSD-compatible nm program.
18328
# A symbol stripping program
18331
# Used to examine libraries when file_magic_cmd begins "file"
18332
MAGIC_CMD=$MAGIC_CMD
18334
# Used on cygwin: DLL creation program.
18337
# Used on cygwin: object dumper.
18340
# Used on cygwin: assembler.
18343
# The name of the directory that contains temporary libtool files.
18346
# How to create reloadable object files.
18347
reload_flag=$lt_reload_flag
18348
reload_cmds=$lt_reload_cmds
18350
# How to pass a linker flag through the compiler.
18351
wl=$lt_lt_prog_compiler_wl_GCJ
18353
# Object file suffix (normally "o").
18354
objext="$ac_objext"
18356
# Old archive suffix (normally "a").
18359
# Shared library suffix (normally ".so").
18360
shrext_cmds='$shrext_cmds'
18362
# Executable file suffix (normally "").
18365
# Additional compiler flags for building library objects.
18366
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18369
# What is the maximum length of a command?
18370
max_cmd_len=$lt_cv_sys_max_cmd_len
18372
# Does compiler simultaneously support -c and -o options?
18373
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18375
# Must we lock files when doing compilation ?
18376
need_locks=$lt_need_locks
18378
# Do we need the lib prefix for modules?
18379
need_lib_prefix=$need_lib_prefix
18381
# Do we need a version for libraries?
18382
need_version=$need_version
18384
# Whether dlopen is supported.
18385
dlopen_support=$enable_dlopen
18387
# Whether dlopen of programs is supported.
18388
dlopen_self=$enable_dlopen_self
18390
# Whether dlopen of statically linked programs is supported.
18391
dlopen_self_static=$enable_dlopen_self_static
18393
# Compiler flag to prevent dynamic linking.
18394
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18396
# Compiler flag to turn off builtin functions.
18397
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18399
# Compiler flag to allow reflexive dlopens.
18400
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18402
# Compiler flag to generate shared objects directly from archives.
18403
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18405
# Compiler flag to generate thread-safe objects.
18406
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18408
# Library versioning type.
18409
version_type=$version_type
18411
# Format of library name prefix.
18412
libname_spec=$lt_libname_spec
18414
# List of archive names. First name is the real one, the rest are links.
18415
# The last name is the one that the linker finds with -lNAME.
18416
library_names_spec=$lt_library_names_spec
18418
# The coded name of the library, if different from the real name.
18419
soname_spec=$lt_soname_spec
18421
# Commands used to build and install an old-style archive.
18423
old_archive_cmds=$lt_old_archive_cmds_GCJ
18424
old_postinstall_cmds=$lt_old_postinstall_cmds
18425
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18427
# Create an old-style archive from a shared archive.
18428
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18430
# Create a temporary old-style archive to link instead of a shared archive.
18431
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18433
# Commands used to build and install a shared archive.
18434
archive_cmds=$lt_archive_cmds_GCJ
18435
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18436
postinstall_cmds=$lt_postinstall_cmds
18437
postuninstall_cmds=$lt_postuninstall_cmds
18439
# Commands used to build a loadable module (assumed same as above if empty)
18440
module_cmds=$lt_module_cmds_GCJ
18441
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18443
# Commands to strip libraries.
18444
old_striplib=$lt_old_striplib
18445
striplib=$lt_striplib
18447
# Dependencies to place before the objects being linked to create a
18449
predep_objects=$lt_predep_objects_GCJ
18451
# Dependencies to place after the objects being linked to create a
18453
postdep_objects=$lt_postdep_objects_GCJ
18455
# Dependencies to place before the objects being linked to create a
18457
predeps=$lt_predeps_GCJ
18459
# Dependencies to place after the objects being linked to create a
18461
postdeps=$lt_postdeps_GCJ
18463
# The library search path used internally by the compiler when linking
18464
# a shared library.
18465
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18467
# Method to check whether dependent libraries are shared objects.
18468
deplibs_check_method=$lt_deplibs_check_method
18470
# Command to use when deplibs_check_method == file_magic.
18471
file_magic_cmd=$lt_file_magic_cmd
18473
# Flag that allows shared libraries with undefined symbols to be built.
18474
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18476
# Flag that forces no undefined symbols.
18477
no_undefined_flag=$lt_no_undefined_flag_GCJ
18479
# Commands used to finish a libtool library installation in a directory.
18480
finish_cmds=$lt_finish_cmds
18482
# Same as above, but a single script fragment to be evaled but not shown.
18483
finish_eval=$lt_finish_eval
18485
# Take the output of nm and produce a listing of raw symbols and C names.
18486
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18488
# Transform the output of nm in a proper C declaration
18489
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18491
# Transform the output of nm in a C name address pair
18492
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18494
# This is the shared library runtime path variable.
18495
runpath_var=$runpath_var
18497
# This is the shared library path variable.
18498
shlibpath_var=$shlibpath_var
18500
# Is shlibpath searched before the hard-coded library search path?
18501
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18503
# How to hardcode a shared library path into an executable.
18504
hardcode_action=$hardcode_action_GCJ
18506
# Whether we should hardcode library paths into libraries.
18507
hardcode_into_libs=$hardcode_into_libs
18509
# Flag to hardcode \$libdir into a binary during linking.
18510
# This must work even if \$libdir does not exist.
18511
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18513
# If ld is used when linking, flag to hardcode \$libdir into
18514
# a binary during linking. This must work even if \$libdir does
18516
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18518
# Whether we need a single -rpath flag with a separated argument.
18519
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18521
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18522
# resulting binary.
18523
hardcode_direct=$hardcode_direct_GCJ
18525
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18526
# resulting binary.
18527
hardcode_minus_L=$hardcode_minus_L_GCJ
18529
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18530
# the resulting binary.
18531
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18533
# Set to yes if building a shared library automatically hardcodes DIR into the library
18534
# and all subsequent libraries and executables linked against it.
18535
hardcode_automatic=$hardcode_automatic_GCJ
18537
# Variables whose values should be saved in libtool wrapper scripts and
18538
# restored at relink time.
18539
variables_saved_for_relink="$variables_saved_for_relink"
18541
# Whether libtool must link a program against all its dependency libraries.
18542
link_all_deplibs=$link_all_deplibs_GCJ
18544
# Compile-time system search path for libraries
18545
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18547
# Run-time system search path for libraries
18548
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18550
# Fix the shell variable \$srcfile for the compiler.
18551
fix_srcfile_path="$fix_srcfile_path_GCJ"
18553
# Set to yes if exported symbols are required.
18554
always_export_symbols=$always_export_symbols_GCJ
18556
# The commands to list exported symbols.
18557
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18559
# The commands to extract the exported symbol list from a shared archive.
18560
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18562
# Symbols that should not be listed in the preloaded symbols.
18563
exclude_expsyms=$lt_exclude_expsyms_GCJ
18565
# Symbols that must always be exported.
18566
include_expsyms=$lt_include_expsyms_GCJ
18568
# ### END LIBTOOL TAG CONFIG: $tagname
18574
# If there is no Makefile yet, we rely on a make rule to execute
18575
# `config.status --recheck' to rerun these tests and create the
18576
# libtool script then.
18577
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18578
if test -f "$ltmain_in"; then
18579
test -f Makefile && make "$ltmain"
18585
ac_cpp='$CPP $CPPFLAGS'
18586
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18587
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18588
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18601
# Source file extension for RC test sources.
18604
# Object file extension for compiled RC test sources.
18608
# Code to be used in simple compile tests
18609
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18611
# Code to be used in simple link tests
18612
lt_simple_link_test_code="$lt_simple_compile_test_code"
18614
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18616
# If no C compiler was specified, use CC.
18619
# Allow CC to be a program name with arguments.
18623
# Allow CC to be a program name with arguments.
18628
lt_cv_prog_compiler_c_o_RC=yes
18630
# The else clause should only fire when bootstrapping the
18631
# libtool distribution, otherwise you forgot to ship ltmain.sh
18632
# with your package, and you will get complaints that there are
18633
# no rules to generate ltmain.sh.
18634
if test -f "$ltmain"; then
18635
# See if we are running on zsh, and set the options which allow our commands through
18636
# without removal of \ escapes.
18637
if test -n "${ZSH_VERSION+set}" ; then
18638
setopt NO_GLOB_SUBST
18640
# Now quote all the things that may contain metacharacters while being
18641
# careful not to overquote the AC_SUBSTed values. We take copies of the
18642
# variables and quote the copies for generation of the libtool script.
18643
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18645
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18646
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18647
deplibs_check_method reload_flag reload_cmds need_locks \
18648
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18649
lt_cv_sys_global_symbol_to_c_name_address \
18650
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18651
old_postinstall_cmds old_postuninstall_cmds \
18655
lt_prog_compiler_wl_RC \
18656
lt_prog_compiler_pic_RC \
18657
lt_prog_compiler_static_RC \
18658
lt_prog_compiler_no_builtin_flag_RC \
18659
export_dynamic_flag_spec_RC \
18660
thread_safe_flag_spec_RC \
18661
whole_archive_flag_spec_RC \
18662
enable_shared_with_static_runtimes_RC \
18663
old_archive_cmds_RC \
18664
old_archive_from_new_cmds_RC \
18665
predep_objects_RC \
18666
postdep_objects_RC \
18669
compiler_lib_search_path_RC \
18671
archive_expsym_cmds_RC \
18672
postinstall_cmds_RC \
18673
postuninstall_cmds_RC \
18674
old_archive_from_expsyms_cmds_RC \
18675
allow_undefined_flag_RC \
18676
no_undefined_flag_RC \
18677
export_symbols_cmds_RC \
18678
hardcode_libdir_flag_spec_RC \
18679
hardcode_libdir_flag_spec_ld_RC \
18680
hardcode_libdir_separator_RC \
18681
hardcode_automatic_RC \
18683
module_expsym_cmds_RC \
18684
lt_cv_prog_compiler_c_o_RC \
18685
exclude_expsyms_RC \
18686
include_expsyms_RC; do
18689
old_archive_cmds_RC | \
18690
old_archive_from_new_cmds_RC | \
18691
archive_cmds_RC | \
18692
archive_expsym_cmds_RC | \
18694
module_expsym_cmds_RC | \
18695
old_archive_from_expsyms_cmds_RC | \
18696
export_symbols_cmds_RC | \
18697
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18698
postinstall_cmds | postuninstall_cmds | \
18699
old_postinstall_cmds | old_postuninstall_cmds | \
18700
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18701
# Double-quote double-evaled strings.
18702
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18705
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18711
*'\$0 --fallback-echo"')
18712
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18718
cat <<__EOF__ >> "$cfgfile"
18719
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18721
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18723
# Shell to use when invoking shell scripts.
18726
# Whether or not to build shared libraries.
18727
build_libtool_libs=$enable_shared
18729
# Whether or not to build static libraries.
18730
build_old_libs=$enable_static
18732
# Whether or not to add -lc for building shared libraries.
18733
build_libtool_need_lc=$archive_cmds_need_lc_RC
18735
# Whether or not to disallow shared libs when runtime libs are static
18736
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18738
# Whether or not to optimize for fast installation.
18739
fast_install=$enable_fast_install
18742
host_alias=$host_alias
18745
# An echo program that does not interpret backslashes.
18750
AR_FLAGS=$lt_AR_FLAGS
18755
# A language-specific compiler.
18758
# Is the compiler the GNU C compiler?
18764
# The linker used to build libraries.
18767
# Whether we need hard or soft links.
18770
# A BSD-compatible nm program.
18773
# A symbol stripping program
18776
# Used to examine libraries when file_magic_cmd begins "file"
18777
MAGIC_CMD=$MAGIC_CMD
18779
# Used on cygwin: DLL creation program.
18782
# Used on cygwin: object dumper.
18785
# Used on cygwin: assembler.
18788
# The name of the directory that contains temporary libtool files.
18791
# How to create reloadable object files.
18792
reload_flag=$lt_reload_flag
18793
reload_cmds=$lt_reload_cmds
18795
# How to pass a linker flag through the compiler.
18796
wl=$lt_lt_prog_compiler_wl_RC
18798
# Object file suffix (normally "o").
18799
objext="$ac_objext"
18801
# Old archive suffix (normally "a").
18804
# Shared library suffix (normally ".so").
18805
shrext_cmds='$shrext_cmds'
18807
# Executable file suffix (normally "").
18810
# Additional compiler flags for building library objects.
18811
pic_flag=$lt_lt_prog_compiler_pic_RC
18814
# What is the maximum length of a command?
18815
max_cmd_len=$lt_cv_sys_max_cmd_len
18817
# Does compiler simultaneously support -c and -o options?
18818
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18820
# Must we lock files when doing compilation ?
18821
need_locks=$lt_need_locks
18823
# Do we need the lib prefix for modules?
18824
need_lib_prefix=$need_lib_prefix
18826
# Do we need a version for libraries?
18827
need_version=$need_version
18829
# Whether dlopen is supported.
18830
dlopen_support=$enable_dlopen
18832
# Whether dlopen of programs is supported.
18833
dlopen_self=$enable_dlopen_self
18835
# Whether dlopen of statically linked programs is supported.
18836
dlopen_self_static=$enable_dlopen_self_static
18838
# Compiler flag to prevent dynamic linking.
18839
link_static_flag=$lt_lt_prog_compiler_static_RC
18841
# Compiler flag to turn off builtin functions.
18842
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18844
# Compiler flag to allow reflexive dlopens.
18845
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18847
# Compiler flag to generate shared objects directly from archives.
18848
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18850
# Compiler flag to generate thread-safe objects.
18851
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18853
# Library versioning type.
18854
version_type=$version_type
18856
# Format of library name prefix.
18857
libname_spec=$lt_libname_spec
18859
# List of archive names. First name is the real one, the rest are links.
18860
# The last name is the one that the linker finds with -lNAME.
18861
library_names_spec=$lt_library_names_spec
18863
# The coded name of the library, if different from the real name.
18864
soname_spec=$lt_soname_spec
18866
# Commands used to build and install an old-style archive.
18868
old_archive_cmds=$lt_old_archive_cmds_RC
18869
old_postinstall_cmds=$lt_old_postinstall_cmds
18870
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18872
# Create an old-style archive from a shared archive.
18873
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18875
# Create a temporary old-style archive to link instead of a shared archive.
18876
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18878
# Commands used to build and install a shared archive.
18879
archive_cmds=$lt_archive_cmds_RC
18880
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18881
postinstall_cmds=$lt_postinstall_cmds
18882
postuninstall_cmds=$lt_postuninstall_cmds
18884
# Commands used to build a loadable module (assumed same as above if empty)
18885
module_cmds=$lt_module_cmds_RC
18886
module_expsym_cmds=$lt_module_expsym_cmds_RC
18888
# Commands to strip libraries.
18889
old_striplib=$lt_old_striplib
18890
striplib=$lt_striplib
18892
# Dependencies to place before the objects being linked to create a
18894
predep_objects=$lt_predep_objects_RC
18896
# Dependencies to place after the objects being linked to create a
18898
postdep_objects=$lt_postdep_objects_RC
18900
# Dependencies to place before the objects being linked to create a
18902
predeps=$lt_predeps_RC
18904
# Dependencies to place after the objects being linked to create a
18906
postdeps=$lt_postdeps_RC
18908
# The library search path used internally by the compiler when linking
18909
# a shared library.
18910
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18912
# Method to check whether dependent libraries are shared objects.
18913
deplibs_check_method=$lt_deplibs_check_method
18915
# Command to use when deplibs_check_method == file_magic.
18916
file_magic_cmd=$lt_file_magic_cmd
18918
# Flag that allows shared libraries with undefined symbols to be built.
18919
allow_undefined_flag=$lt_allow_undefined_flag_RC
18921
# Flag that forces no undefined symbols.
18922
no_undefined_flag=$lt_no_undefined_flag_RC
18924
# Commands used to finish a libtool library installation in a directory.
18925
finish_cmds=$lt_finish_cmds
18927
# Same as above, but a single script fragment to be evaled but not shown.
18928
finish_eval=$lt_finish_eval
18930
# Take the output of nm and produce a listing of raw symbols and C names.
18931
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18933
# Transform the output of nm in a proper C declaration
18934
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18936
# Transform the output of nm in a C name address pair
18937
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18939
# This is the shared library runtime path variable.
18940
runpath_var=$runpath_var
18942
# This is the shared library path variable.
18943
shlibpath_var=$shlibpath_var
18945
# Is shlibpath searched before the hard-coded library search path?
18946
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18948
# How to hardcode a shared library path into an executable.
18949
hardcode_action=$hardcode_action_RC
18951
# Whether we should hardcode library paths into libraries.
18952
hardcode_into_libs=$hardcode_into_libs
18954
# Flag to hardcode \$libdir into a binary during linking.
18955
# This must work even if \$libdir does not exist.
18956
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18958
# If ld is used when linking, flag to hardcode \$libdir into
18959
# a binary during linking. This must work even if \$libdir does
18961
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18963
# Whether we need a single -rpath flag with a separated argument.
18964
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18966
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18967
# resulting binary.
18968
hardcode_direct=$hardcode_direct_RC
18970
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18971
# resulting binary.
18972
hardcode_minus_L=$hardcode_minus_L_RC
18974
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18975
# the resulting binary.
18976
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18978
# Set to yes if building a shared library automatically hardcodes DIR into the library
18979
# and all subsequent libraries and executables linked against it.
18980
hardcode_automatic=$hardcode_automatic_RC
18982
# Variables whose values should be saved in libtool wrapper scripts and
18983
# restored at relink time.
18984
variables_saved_for_relink="$variables_saved_for_relink"
18986
# Whether libtool must link a program against all its dependency libraries.
18987
link_all_deplibs=$link_all_deplibs_RC
18989
# Compile-time system search path for libraries
18990
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18992
# Run-time system search path for libraries
18993
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18995
# Fix the shell variable \$srcfile for the compiler.
18996
fix_srcfile_path="$fix_srcfile_path_RC"
18998
# Set to yes if exported symbols are required.
18999
always_export_symbols=$always_export_symbols_RC
19001
# The commands to list exported symbols.
19002
export_symbols_cmds=$lt_export_symbols_cmds_RC
19004
# The commands to extract the exported symbol list from a shared archive.
19005
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19007
# Symbols that should not be listed in the preloaded symbols.
19008
exclude_expsyms=$lt_exclude_expsyms_RC
19010
# Symbols that must always be exported.
19011
include_expsyms=$lt_include_expsyms_RC
19013
# ### END LIBTOOL TAG CONFIG: $tagname
19019
# If there is no Makefile yet, we rely on a make rule to execute
19020
# `config.status --recheck' to rerun these tests and create the
19021
# libtool script then.
19022
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19023
if test -f "$ltmain_in"; then
19024
test -f Makefile && make "$ltmain"
19030
ac_cpp='$CPP $CPPFLAGS'
19031
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19032
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19033
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19040
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19041
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19042
{ (exit 1); exit 1; }; }
19046
# Append the new tag name to the list of available tags.
19047
if test -n "$tagname" ; then
19048
available_tags="$available_tags $tagname"
19054
# Now substitute the updated list of available tags.
19055
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19056
mv "${ofile}T" "$ofile"
19060
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19061
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19062
{ (exit 1); exit 1; }; }
19068
# This can be used to rebuild libtool when needed
19069
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19071
# Always use our own libtool.
19072
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19074
# Prevent multiple expansion
19096
# Check for dependencies
19099
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19100
if test -n "$ac_tool_prefix"; then
19101
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19102
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19103
echo "$as_me:$LINENO: checking for $ac_word" >&5
19104
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19105
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19106
echo $ECHO_N "(cached) $ECHO_C" >&6
19108
case $PKG_CONFIG in
19110
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19113
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19114
for as_dir in $PATH
19117
test -z "$as_dir" && as_dir=.
19118
for ac_exec_ext in '' $ac_executable_extensions; do
19119
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19120
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19121
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19130
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19132
if test -n "$PKG_CONFIG"; then
19133
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19134
echo "${ECHO_T}$PKG_CONFIG" >&6
19136
echo "$as_me:$LINENO: result: no" >&5
19137
echo "${ECHO_T}no" >&6
19141
if test -z "$ac_cv_path_PKG_CONFIG"; then
19142
ac_pt_PKG_CONFIG=$PKG_CONFIG
19143
# Extract the first word of "pkg-config", so it can be a program name with args.
19144
set dummy pkg-config; ac_word=$2
19145
echo "$as_me:$LINENO: checking for $ac_word" >&5
19146
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19147
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19148
echo $ECHO_N "(cached) $ECHO_C" >&6
19150
case $ac_pt_PKG_CONFIG in
19152
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19155
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19156
for as_dir in $PATH
19159
test -z "$as_dir" && as_dir=.
19160
for ac_exec_ext in '' $ac_executable_extensions; do
19161
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19162
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19163
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19172
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19174
if test -n "$ac_pt_PKG_CONFIG"; then
19175
echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19176
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
19178
echo "$as_me:$LINENO: result: no" >&5
19179
echo "${ECHO_T}no" >&6
19182
PKG_CONFIG=$ac_pt_PKG_CONFIG
19184
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19188
if test -n "$PKG_CONFIG"; then
19189
_pkg_min_version=0.9.0
19190
echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19191
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
19192
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19193
echo "$as_me:$LINENO: result: yes" >&5
19194
echo "${ECHO_T}yes" >&6
19196
echo "$as_me:$LINENO: result: no" >&5
19197
echo "${ECHO_T}no" >&6
19204
echo "$as_me:$LINENO: checking for DEP" >&5
19205
echo $ECHO_N "checking for DEP... $ECHO_C" >&6
19207
if test -n "$PKG_CONFIG"; then
19208
if test -n "$PKG_CONFIG" && \
19209
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto dmxproto\"") >&5
19210
($PKG_CONFIG --exists --print-errors "x11 xext xextproto dmxproto") 2>&5
19212
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213
(exit $ac_status); }; then
19214
pkg_cv_DEP_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xextproto dmxproto" 2>/dev/null`
19221
if test -n "$PKG_CONFIG"; then
19222
if test -n "$PKG_CONFIG" && \
19223
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto dmxproto\"") >&5
19224
($PKG_CONFIG --exists --print-errors "x11 xext xextproto dmxproto") 2>&5
19226
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227
(exit $ac_status); }; then
19228
pkg_cv_DEP_LIBS=`$PKG_CONFIG --libs "x11 xext xextproto dmxproto" 2>/dev/null`
19236
if test $pkg_failed = yes; then
19237
DEP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 xext xextproto dmxproto"`
19238
# Put the nasty error message in config.log where it belongs
19239
echo "$DEP_PKG_ERRORS" 1>&5
19241
{ { echo "$as_me:$LINENO: error: Package requirements (x11 xext xextproto dmxproto) were not met.
19242
Consider adjusting the PKG_CONFIG_PATH environment variable if you
19243
installed software in a non-standard prefix.
19245
Alternatively you may set the DEP_CFLAGS and DEP_LIBS environment variables
19246
to avoid the need to call pkg-config. See the pkg-config man page for
19248
echo "$as_me: error: Package requirements (x11 xext xextproto dmxproto) were not met.
19249
Consider adjusting the PKG_CONFIG_PATH environment variable if you
19250
installed software in a non-standard prefix.
19252
Alternatively you may set the DEP_CFLAGS and DEP_LIBS environment variables
19253
to avoid the need to call pkg-config. See the pkg-config man page for
19254
more details." >&2;}
19255
{ (exit 1); exit 1; }; }
19256
elif test $pkg_failed = untried; then
19257
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
19258
is in your PATH or set the PKG_CONFIG environment variable to the full
19259
path to pkg-config.
19261
Alternatively you may set the DEP_CFLAGS and DEP_LIBS environment variables
19262
to avoid the need to call pkg-config. See the pkg-config man page for
19265
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19266
See \`config.log' for more details." >&5
19267
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
19268
is in your PATH or set the PKG_CONFIG environment variable to the full
19269
path to pkg-config.
19271
Alternatively you may set the DEP_CFLAGS and DEP_LIBS environment variables
19272
to avoid the need to call pkg-config. See the pkg-config man page for
19275
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19276
See \`config.log' for more details." >&2;}
19277
{ (exit 1); exit 1; }; }
19279
DEP_CFLAGS=$pkg_cv_DEP_CFLAGS
19280
DEP_LIBS=$pkg_cv_DEP_LIBS
19287
ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile dmx.pc"
19288
cat >confcache <<\_ACEOF
19289
# This file is a shell script that caches the results of configure
19290
# tests run on this system so they can be shared between configure
19291
# scripts and configure runs, see configure's option --config-cache.
19292
# It is not useful on other systems. If it contains results you don't
19293
# want to keep, you may remove or edit it.
19295
# config.status only pays attention to the cache file if you give it
19296
# the --recheck option to rerun configure.
19298
# `ac_cv_env_foo' variables (set or unset) will be overridden when
19299
# loading this file, other *unset* `ac_cv_foo' will be assigned the
19300
# following values.
19304
# The following way of writing the cache mishandles newlines in values,
19305
# but we know of no workaround that is simple, portable, and efficient.
19306
# So, don't put newlines in cache variables' values.
19307
# Ultrix sh set writes to stderr and can't be redirected directly,
19308
# and sets the high bit in the cache file unless we assign to the vars.
19311
case `(ac_space=' '; set | grep ac_space) 2>&1` in
19313
# `set' does not quote correctly, so add quotes (double-quote
19314
# substitution turns \\\\ into \\, and sed turns \\ into \).
19317
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19320
# `set' quotes correctly as required by POSIX, so do not add quotes.
19322
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19329
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19331
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19333
if diff $cache_file confcache >/dev/null 2>&1; then :; else
19334
if test -w $cache_file; then
19335
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19336
cat confcache >$cache_file
19338
echo "not updating unwritable cache $cache_file"
19343
test "x$prefix" = xNONE && prefix=$ac_default_prefix
19344
# Let make expand exec_prefix.
19345
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19347
# VPATH may cause trouble with some makes, so we remove $(srcdir),
19348
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19349
# trailing colons and then remove the whole line if VPATH becomes empty
19350
# (actually we leave an empty line to preserve line numbers).
19351
if test "x$srcdir" = x.; then
19352
ac_vpsub='/^[ ]*VPATH[ ]*=/{
19353
s/:*\$(srcdir):*/:/;
19354
s/:*\${srcdir}:*/:/;
19356
s/^\([^=]*=[ ]*\):*/\1/;
19362
DEFS=-DHAVE_CONFIG_H
19366
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19367
# 1. Remove the extension, and $U if already installed.
19368
ac_i=`echo "$ac_i" |
19369
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19371
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19372
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19374
LIBOBJS=$ac_libobjs
19376
LTLIBOBJS=$ac_ltlibobjs
19379
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19380
{ { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19381
Usually this means the macro was only invoked conditionally." >&5
19382
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19383
Usually this means the macro was only invoked conditionally." >&2;}
19384
{ (exit 1); exit 1; }; }
19386
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19387
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19388
Usually this means the macro was only invoked conditionally." >&5
19389
echo "$as_me: error: conditional \"AMDEP\" was never defined.
19390
Usually this means the macro was only invoked conditionally." >&2;}
19391
{ (exit 1); exit 1; }; }
19393
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19394
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19395
Usually this means the macro was only invoked conditionally." >&5
19396
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19397
Usually this means the macro was only invoked conditionally." >&2;}
19398
{ (exit 1); exit 1; }; }
19400
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19401
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19402
Usually this means the macro was only invoked conditionally." >&5
19403
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19404
Usually this means the macro was only invoked conditionally." >&2;}
19405
{ (exit 1); exit 1; }; }
19408
: ${CONFIG_STATUS=./config.status}
19409
ac_clean_files_save=$ac_clean_files
19410
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19411
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19412
echo "$as_me: creating $CONFIG_STATUS" >&6;}
19413
cat >$CONFIG_STATUS <<_ACEOF
19415
# Generated by $as_me.
19416
# Run this file to recreate the current configuration.
19417
# Compiler output produced by configure, useful for debugging
19418
# configure, is in config.log if it exists.
19421
ac_cs_recheck=false
19423
SHELL=\${CONFIG_SHELL-$SHELL}
19426
cat >>$CONFIG_STATUS <<\_ACEOF
19427
## --------------------- ##
19428
## M4sh Initialization. ##
19429
## --------------------- ##
19431
# Be Bourne compatible
19432
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19435
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19436
# is contrary to our usage. Disable this feature.
19437
alias -g '${1+"$@"}'='"$@"'
19438
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19441
DUALCASE=1; export DUALCASE # for MKS sh
19443
# Support unset when possible.
19444
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19451
# Work around bugs in pre-3.0 UWIN ksh.
19452
$as_unset ENV MAIL MAILPATH
19459
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19460
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19461
LC_TELEPHONE LC_TIME
19463
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19464
eval $as_var=C; export $as_var
19470
# Required to use basename.
19471
if expr a : '\(a\)' >/dev/null 2>&1; then
19477
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19478
as_basename=basename
19484
# Name of the executable.
19485
as_me=`$as_basename "$0" ||
19486
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19487
X"$0" : 'X\(//\)$' \| \
19488
X"$0" : 'X\(/\)$' \| \
19489
. : '\(.\)' 2>/dev/null ||
19491
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19492
/^X\/\(\/\/\)$/{ s//\1/; q; }
19493
/^X\/\(\/\).*/{ s//\1/; q; }
19497
# PATH needs CR, and LINENO needs CR and PATH.
19498
# Avoid depending upon Character Ranges.
19499
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19500
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19501
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19502
as_cr_digits='0123456789'
19503
as_cr_alnum=$as_cr_Letters$as_cr_digits
19505
# The user is always right.
19506
if test "${PATH_SEPARATOR+set}" != set; then
19507
echo "#! /bin/sh" >conf$$.sh
19508
echo "exit 0" >>conf$$.sh
19510
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19519
as_lineno_1=$LINENO
19520
as_lineno_2=$LINENO
19521
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19522
test "x$as_lineno_1" != "x$as_lineno_2" &&
19523
test "x$as_lineno_3" = "x$as_lineno_2" || {
19524
# Find who we are. Look in the path if we contain no path at all
19527
*[\\/]* ) as_myself=$0 ;;
19528
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19529
for as_dir in $PATH
19532
test -z "$as_dir" && as_dir=.
19533
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19538
# We did not find ourselves, most probably we were run as `sh COMMAND'
19539
# in which case we are not to be found in the path.
19540
if test "x$as_myself" = x; then
19543
if test ! -f "$as_myself"; then
19544
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19545
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19546
{ (exit 1); exit 1; }; }
19548
case $CONFIG_SHELL in
19550
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19551
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19554
test -z "$as_dir" && as_dir=.
19555
for as_base in sh bash ksh sh5; do
19558
if ("$as_dir/$as_base" -c '
19559
as_lineno_1=$LINENO
19560
as_lineno_2=$LINENO
19561
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19562
test "x$as_lineno_1" != "x$as_lineno_2" &&
19563
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19564
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19565
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19566
CONFIG_SHELL=$as_dir/$as_base
19567
export CONFIG_SHELL
19568
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19576
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19577
# uniformly replaced by the line number. The first 'sed' inserts a
19578
# line-number line before each line; the second 'sed' does the real
19579
# work. The second script uses 'N' to pair each line-number line
19580
# with the numbered line, and appends trailing '-' during
19581
# substitution so that $LINENO is not a special case at line end.
19582
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19583
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19584
sed '=' <$as_myself |
19589
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19592
s,^['$as_cr_digits']*\n,,
19593
' >$as_me.lineno &&
19594
chmod +x $as_me.lineno ||
19595
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19596
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19597
{ (exit 1); exit 1; }; }
19599
# Don't try to exec as it changes $[0], causing all sort of problems
19600
# (the dirname of $[0] is not the place where we might find the
19601
# original and so on. Autoconf is especially sensible to this).
19603
# Exit status is that of the last command.
19608
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19609
*c*,-n*) ECHO_N= ECHO_C='
19611
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19612
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19615
if expr a : '\(a\)' >/dev/null 2>&1; then
19621
rm -f conf$$ conf$$.exe conf$$.file
19623
if ln -s conf$$.file conf$$ 2>/dev/null; then
19624
# We could just check for DJGPP; but this test a) works b) is more generic
19625
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19626
if test -f conf$$.exe; then
19627
# Don't use ln at all; we don't have any links
19632
elif ln conf$$.file conf$$ 2>/dev/null; then
19637
rm -f conf$$ conf$$.exe conf$$.file
19639
if mkdir -p . 2>/dev/null; then
19642
test -d ./-p && rmdir ./-p
19646
as_executable_p="test -f"
19648
# Sed expression to map a string onto a valid CPP name.
19649
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19651
# Sed expression to map a string onto a valid variable name.
19652
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19656
# We need space, tab and new line, in precisely that order.
19666
# Open the log real soon, to keep \$[0] and so on meaningful, and to
19667
# report actual input values of CONFIG_FILES etc. instead of their
19668
# values after options handling. Logging --version etc. is OK.
19672
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19673
## Running $as_me. ##
19678
This file was extended by libdmx $as_me 7.0.0, which was
19679
generated by GNU Autoconf 2.59. Invocation command line was
19681
CONFIG_FILES = $CONFIG_FILES
19682
CONFIG_HEADERS = $CONFIG_HEADERS
19683
CONFIG_LINKS = $CONFIG_LINKS
19684
CONFIG_COMMANDS = $CONFIG_COMMANDS
19688
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19692
# Files that config.status was made for.
19693
if test -n "$ac_config_files"; then
19694
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19697
if test -n "$ac_config_headers"; then
19698
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19701
if test -n "$ac_config_links"; then
19702
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19705
if test -n "$ac_config_commands"; then
19706
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19709
cat >>$CONFIG_STATUS <<\_ACEOF
19712
\`$as_me' instantiates files from templates according to the
19713
current configuration.
19715
Usage: $0 [OPTIONS] [FILE]...
19717
-h, --help print this help, then exit
19718
-V, --version print version number, then exit
19719
-q, --quiet do not print progress messages
19720
-d, --debug don't remove temporary files
19721
--recheck update $as_me by reconfiguring in the same conditions
19722
--file=FILE[:TEMPLATE]
19723
instantiate the configuration file FILE
19724
--header=FILE[:TEMPLATE]
19725
instantiate the configuration header FILE
19727
Configuration files:
19730
Configuration headers:
19733
Configuration commands:
19736
Report bugs to <bug-autoconf@gnu.org>."
19739
cat >>$CONFIG_STATUS <<_ACEOF
19741
libdmx config.status 7.0.0
19742
configured by $0, generated by GNU Autoconf 2.59,
19743
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19745
Copyright (C) 2003 Free Software Foundation, Inc.
19746
This config.status script is free software; the Free Software Foundation
19747
gives unlimited permission to copy, distribute and modify it."
19752
cat >>$CONFIG_STATUS <<\_ACEOF
19753
# If no file are specified by the user, then we need to provide default
19754
# value. By we need to know if files were specified by the user.
19760
ac_option=`expr "x$1" : 'x\([^=]*\)='`
19761
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19769
*) # This is not an option, so the user has probably given explicit
19772
ac_need_defaults=false;;
19776
# Handling of the options.
19778
cat >>$CONFIG_STATUS <<\_ACEOF
19779
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19781
--version | --vers* | -V )
19782
echo "$ac_cs_version"; exit 0 ;;
19784
# Conflict between --help and --header
19785
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
19786
Try \`$0 --help' for more information." >&5
19787
echo "$as_me: error: ambiguous option: $1
19788
Try \`$0 --help' for more information." >&2;}
19789
{ (exit 1); exit 1; }; };;
19790
--help | --hel | -h )
19791
echo "$ac_cs_usage"; exit 0 ;;
19792
--debug | --d* | -d )
19794
--file | --fil | --fi | --f )
19796
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19797
ac_need_defaults=false;;
19798
--header | --heade | --head | --hea )
19800
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19801
ac_need_defaults=false;;
19802
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
19803
| -silent | --silent | --silen | --sile | --sil | --si | --s)
19806
# This is an error.
19807
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19808
Try \`$0 --help' for more information." >&5
19809
echo "$as_me: error: unrecognized option: $1
19810
Try \`$0 --help' for more information." >&2;}
19811
{ (exit 1); exit 1; }; } ;;
19813
*) ac_config_targets="$ac_config_targets $1" ;;
19819
ac_configure_extra_args=
19821
if $ac_cs_silent; then
19823
ac_configure_extra_args="$ac_configure_extra_args --silent"
19827
cat >>$CONFIG_STATUS <<_ACEOF
19828
if \$ac_cs_recheck; then
19829
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19830
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19835
cat >>$CONFIG_STATUS <<_ACEOF
19837
# INIT-COMMANDS section.
19840
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19846
cat >>$CONFIG_STATUS <<\_ACEOF
19847
for ac_config_target in $ac_config_targets
19849
case "$ac_config_target" in
19850
# Handling of arguments.
19851
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19852
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19853
"man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19854
"dmx.pc" ) CONFIG_FILES="$CONFIG_FILES dmx.pc" ;;
19855
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19856
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19857
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19858
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19859
{ (exit 1); exit 1; }; };;
19863
# If the user did not use the arguments to specify the items to instantiate,
19864
# then the envvar interface is used. Set only those that are not.
19865
# We use the long form for the default assignment because of an extremely
19866
# bizarre bug on SunOS 4.1.3.
19867
if $ac_need_defaults; then
19868
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19869
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19870
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19873
# Have a temporary directory for convenience. Make it in the build tree
19874
# simply because there is no reason to put it here, and in addition,
19875
# creating and moving files from /tmp can sometimes cause problems.
19876
# Create a temporary directory, and hook for its removal unless debugging.
19879
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19880
trap '{ (exit 1); exit 1; }' 1 2 13 15
19883
# Create a (secure) tmp directory for tmp files.
19886
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19887
test -n "$tmp" && test -d "$tmp"
19890
tmp=./confstat$$-$RANDOM
19891
(umask 077 && mkdir $tmp)
19894
echo "$me: cannot create a temporary directory in ." >&2
19895
{ (exit 1); exit 1; }
19900
cat >>$CONFIG_STATUS <<_ACEOF
19903
# CONFIG_FILES section.
19906
# No need to generate the scripts if there are no CONFIG_FILES.
19907
# This happens for instance when ./config.status config.h
19908
if test -n "\$CONFIG_FILES"; then
19909
# Protect against being on the right side of a sed subst in config.status.
19910
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19911
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19912
s,@SHELL@,$SHELL,;t t
19913
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19914
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19915
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19916
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19917
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19918
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19919
s,@exec_prefix@,$exec_prefix,;t t
19920
s,@prefix@,$prefix,;t t
19921
s,@program_transform_name@,$program_transform_name,;t t
19922
s,@bindir@,$bindir,;t t
19923
s,@sbindir@,$sbindir,;t t
19924
s,@libexecdir@,$libexecdir,;t t
19925
s,@datadir@,$datadir,;t t
19926
s,@sysconfdir@,$sysconfdir,;t t
19927
s,@sharedstatedir@,$sharedstatedir,;t t
19928
s,@localstatedir@,$localstatedir,;t t
19929
s,@libdir@,$libdir,;t t
19930
s,@includedir@,$includedir,;t t
19931
s,@oldincludedir@,$oldincludedir,;t t
19932
s,@infodir@,$infodir,;t t
19933
s,@mandir@,$mandir,;t t
19934
s,@build_alias@,$build_alias,;t t
19935
s,@host_alias@,$host_alias,;t t
19936
s,@target_alias@,$target_alias,;t t
19937
s,@DEFS@,$DEFS,;t t
19938
s,@ECHO_C@,$ECHO_C,;t t
19939
s,@ECHO_N@,$ECHO_N,;t t
19940
s,@ECHO_T@,$ECHO_T,;t t
19941
s,@LIBS@,$LIBS,;t t
19942
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19943
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19944
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19945
s,@CYGPATH_W@,$CYGPATH_W,;t t
19946
s,@PACKAGE@,$PACKAGE,;t t
19947
s,@VERSION@,$VERSION,;t t
19948
s,@ACLOCAL@,$ACLOCAL,;t t
19949
s,@AUTOCONF@,$AUTOCONF,;t t
19950
s,@AUTOMAKE@,$AUTOMAKE,;t t
19951
s,@AUTOHEADER@,$AUTOHEADER,;t t
19952
s,@MAKEINFO@,$MAKEINFO,;t t
19953
s,@install_sh@,$install_sh,;t t
19954
s,@STRIP@,$STRIP,;t t
19955
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19956
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19957
s,@mkdir_p@,$mkdir_p,;t t
19959
s,@SET_MAKE@,$SET_MAKE,;t t
19960
s,@am__leading_dot@,$am__leading_dot,;t t
19961
s,@AMTAR@,$AMTAR,;t t
19962
s,@am__tar@,$am__tar,;t t
19963
s,@am__untar@,$am__untar,;t t
19964
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
19965
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
19966
s,@MAINT@,$MAINT,;t t
19968
s,@CFLAGS@,$CFLAGS,;t t
19969
s,@LDFLAGS@,$LDFLAGS,;t t
19970
s,@CPPFLAGS@,$CPPFLAGS,;t t
19971
s,@ac_ct_CC@,$ac_ct_CC,;t t
19972
s,@EXEEXT@,$EXEEXT,;t t
19973
s,@OBJEXT@,$OBJEXT,;t t
19974
s,@DEPDIR@,$DEPDIR,;t t
19975
s,@am__include@,$am__include,;t t
19976
s,@am__quote@,$am__quote,;t t
19977
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19978
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19979
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19980
s,@CCDEPMODE@,$CCDEPMODE,;t t
19981
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19982
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19983
s,@build@,$build,;t t
19984
s,@build_cpu@,$build_cpu,;t t
19985
s,@build_vendor@,$build_vendor,;t t
19986
s,@build_os@,$build_os,;t t
19987
s,@host@,$host,;t t
19988
s,@host_cpu@,$host_cpu,;t t
19989
s,@host_vendor@,$host_vendor,;t t
19990
s,@host_os@,$host_os,;t t
19991
s,@EGREP@,$EGREP,;t t
19992
s,@LN_S@,$LN_S,;t t
19993
s,@ECHO@,$ECHO,;t t
19995
s,@ac_ct_AR@,$ac_ct_AR,;t t
19996
s,@RANLIB@,$RANLIB,;t t
19997
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20000
s,@CXXFLAGS@,$CXXFLAGS,;t t
20001
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20002
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20003
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20004
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20005
s,@CXXCPP@,$CXXCPP,;t t
20007
s,@FFLAGS@,$FFLAGS,;t t
20008
s,@ac_ct_F77@,$ac_ct_F77,;t t
20009
s,@LIBTOOL@,$LIBTOOL,;t t
20010
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20011
s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20012
s,@DEP_CFLAGS@,$DEP_CFLAGS,;t t
20013
s,@DEP_LIBS@,$DEP_LIBS,;t t
20014
s,@LIBOBJS@,$LIBOBJS,;t t
20015
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20020
cat >>$CONFIG_STATUS <<\_ACEOF
20021
# Split the substitutions into bite-sized pieces for seds with
20022
# small command number limits, like on Digital OSF/1 and HP-UX.
20023
ac_max_sed_lines=48
20024
ac_sed_frag=1 # Number of current file.
20025
ac_beg=1 # First line for current file.
20026
ac_end=$ac_max_sed_lines # Line after last line for current file.
20029
while $ac_more_lines; do
20030
if test $ac_beg -gt 1; then
20031
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20033
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20035
if test ! -s $tmp/subs.frag; then
20036
ac_more_lines=false
20038
# The purpose of the label and of the branching condition is to
20039
# speed up the sed processing (if there are no `@' at all, there
20040
# is no need to browse any of the substitutions).
20041
# These are the two extra sed commands mentioned above.
20043
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20044
if test -z "$ac_sed_cmds"; then
20045
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20047
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20049
ac_sed_frag=`expr $ac_sed_frag + 1`
20051
ac_end=`expr $ac_end + $ac_max_sed_lines`
20054
if test -z "$ac_sed_cmds"; then
20057
fi # test -n "$CONFIG_FILES"
20060
cat >>$CONFIG_STATUS <<\_ACEOF
20061
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20062
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20064
- | *:- | *:-:* ) # input from stdin
20066
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20067
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20068
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20069
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20070
* ) ac_file_in=$ac_file.in ;;
20073
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20074
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20075
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20076
X"$ac_file" : 'X\(//\)[^/]' \| \
20077
X"$ac_file" : 'X\(//\)$' \| \
20078
X"$ac_file" : 'X\(/\)' \| \
20079
. : '\(.\)' 2>/dev/null ||
20081
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20082
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20083
/^X\(\/\/\)$/{ s//\1/; q; }
20084
/^X\(\/\).*/{ s//\1/; q; }
20086
{ if $as_mkdir_p; then
20091
while test ! -d "$as_dir"; do
20092
as_dirs="$as_dir $as_dirs"
20093
as_dir=`(dirname "$as_dir") 2>/dev/null ||
20094
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20095
X"$as_dir" : 'X\(//\)[^/]' \| \
20096
X"$as_dir" : 'X\(//\)$' \| \
20097
X"$as_dir" : 'X\(/\)' \| \
20098
. : '\(.\)' 2>/dev/null ||
20100
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20101
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20102
/^X\(\/\/\)$/{ s//\1/; q; }
20103
/^X\(\/\).*/{ s//\1/; q; }
20106
test ! -n "$as_dirs" || mkdir $as_dirs
20107
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20108
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20109
{ (exit 1); exit 1; }; }; }
20113
if test "$ac_dir" != .; then
20114
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20115
# A "../" for each directory in $ac_dir_suffix.
20116
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20118
ac_dir_suffix= ac_top_builddir=
20122
.) # No --srcdir option. We are building in place.
20124
if test -z "$ac_top_builddir"; then
20127
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20129
[\\/]* | ?:[\\/]* ) # Absolute path.
20130
ac_srcdir=$srcdir$ac_dir_suffix;
20131
ac_top_srcdir=$srcdir ;;
20132
*) # Relative path.
20133
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20134
ac_top_srcdir=$ac_top_builddir$srcdir ;;
20137
# Do not use `cd foo && pwd` to compute absolute paths, because
20138
# the directories may not exist.
20140
.) ac_abs_builddir="$ac_dir";;
20143
.) ac_abs_builddir=`pwd`;;
20144
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20145
*) ac_abs_builddir=`pwd`/"$ac_dir";;
20148
case $ac_abs_builddir in
20149
.) ac_abs_top_builddir=${ac_top_builddir}.;;
20151
case ${ac_top_builddir}. in
20152
.) ac_abs_top_builddir=$ac_abs_builddir;;
20153
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20154
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20157
case $ac_abs_builddir in
20158
.) ac_abs_srcdir=$ac_srcdir;;
20161
.) ac_abs_srcdir=$ac_abs_builddir;;
20162
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20163
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20166
case $ac_abs_builddir in
20167
.) ac_abs_top_srcdir=$ac_top_srcdir;;
20169
case $ac_top_srcdir in
20170
.) ac_abs_top_srcdir=$ac_abs_builddir;;
20171
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20172
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20178
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20179
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20182
# Let's still pretend it is `configure' which instantiates (i.e., don't
20183
# use $as_me), people would be surprised to read:
20184
# /* config.h. Generated by config.status. */
20185
if test x"$ac_file" = x-; then
20188
configure_input="$ac_file. "
20190
configure_input=$configure_input"Generated from `echo $ac_file_in |
20191
sed 's,.*/,,'` by configure."
20193
# First look for the input files in the build tree, otherwise in the
20195
ac_file_inputs=`IFS=:
20196
for f in $ac_file_in; do
20198
-) echo $tmp/stdin ;;
20200
# Absolute (can't be DOS-style, as IFS=:)
20201
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20202
echo "$as_me: error: cannot find input file: $f" >&2;}
20203
{ (exit 1); exit 1; }; }
20206
if test -f "$f"; then
20209
elif test -f "$srcdir/$f"; then
20214
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20215
echo "$as_me: error: cannot find input file: $f" >&2;}
20216
{ (exit 1); exit 1; }; }
20219
done` || { (exit 1); exit 1; }
20221
if test x"$ac_file" != x-; then
20222
{ echo "$as_me:$LINENO: creating $ac_file" >&5
20223
echo "$as_me: creating $ac_file" >&6;}
20227
cat >>$CONFIG_STATUS <<_ACEOF
20231
cat >>$CONFIG_STATUS <<\_ACEOF
20233
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20234
s,@configure_input@,$configure_input,;t t
20235
s,@srcdir@,$ac_srcdir,;t t
20236
s,@abs_srcdir@,$ac_abs_srcdir,;t t
20237
s,@top_srcdir@,$ac_top_srcdir,;t t
20238
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20239
s,@builddir@,$ac_builddir,;t t
20240
s,@abs_builddir@,$ac_abs_builddir,;t t
20241
s,@top_builddir@,$ac_top_builddir,;t t
20242
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20243
s,@INSTALL@,$ac_INSTALL,;t t
20244
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20246
if test x"$ac_file" != x-; then
20247
mv $tmp/out $ac_file
20255
cat >>$CONFIG_STATUS <<\_ACEOF
20258
# CONFIG_HEADER section.
20261
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20262
# NAME is the cpp macro being defined and VALUE is the value it is being given.
20264
# ac_d sets the value in "#define NAME VALUE" lines.
20265
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20266
ac_dB='[ ].*$,\1#\2'
20269
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20270
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20271
ac_uB='$,\1#\2define\3'
20275
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20276
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20278
- | *:- | *:-:* ) # input from stdin
20280
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20281
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20282
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20283
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20284
* ) ac_file_in=$ac_file.in ;;
20287
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20288
echo "$as_me: creating $ac_file" >&6;}
20290
# First look for the input files in the build tree, otherwise in the
20292
ac_file_inputs=`IFS=:
20293
for f in $ac_file_in; do
20295
-) echo $tmp/stdin ;;
20297
# Absolute (can't be DOS-style, as IFS=:)
20298
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20299
echo "$as_me: error: cannot find input file: $f" >&2;}
20300
{ (exit 1); exit 1; }; }
20301
# Do quote $f, to prevent DOS paths from being IFS'd.
20304
if test -f "$f"; then
20307
elif test -f "$srcdir/$f"; then
20312
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20313
echo "$as_me: error: cannot find input file: $f" >&2;}
20314
{ (exit 1); exit 1; }; }
20317
done` || { (exit 1); exit 1; }
20318
# Remove the trailing spaces.
20319
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20323
# Transform confdefs.h into two sed scripts, `conftest.defines' and
20324
# `conftest.undefs', that substitutes the proper values into
20325
# config.h.in to produce config.h. The first handles `#define'
20326
# templates, and the second `#undef' templates.
20327
# And first: Protect against being on the right side of a sed subst in
20328
# config.status. Protect against being in an unquoted here document
20329
# in config.status.
20330
rm -f conftest.defines conftest.undefs
20331
# Using a here document instead of a string reduces the quoting nightmare.
20332
# Putting comments in sed scripts is not portable.
20334
# `end' is used to avoid that the second main sed command (meant for
20335
# 0-ary CPP macros) applies to n-ary macro definitions.
20336
# See the Autoconf documentation for `clear'.
20337
cat >confdef2sed.sed <<\_ACEOF
20342
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20344
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20347
# If some macros were called several times there might be several times
20348
# the same #defines, which is useless. Nevertheless, we may not want to
20349
# sort them, since we want the *last* AC-DEFINE to be honored.
20350
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20351
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20352
rm -f confdef2sed.sed
20354
# This sed command replaces #undef with comments. This is necessary, for
20355
# example, in the case of _POSIX_SOURCE, which is predefined and required
20356
# on some systems where configure will not decide to define it.
20357
cat >>conftest.undefs <<\_ACEOF
20358
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20361
# Break up conftest.defines because some shells have a limit on the size
20362
# of here documents, and old seds have small limits too (100 cmds).
20363
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20364
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20365
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20366
echo ' :' >>$CONFIG_STATUS
20367
rm -f conftest.tail
20368
while grep . conftest.defines >/dev/null
20370
# Write a limited-size here document to $tmp/defines.sed.
20371
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20372
# Speed up: don't consider the non `#define' lines.
20373
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20374
# Work around the forget-to-reset-the-flag bug.
20375
echo 't clr' >>$CONFIG_STATUS
20376
echo ': clr' >>$CONFIG_STATUS
20377
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20379
sed -f $tmp/defines.sed $tmp/in >$tmp/out
20381
mv $tmp/out $tmp/in
20383
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20384
rm -f conftest.defines
20385
mv conftest.tail conftest.defines
20387
rm -f conftest.defines
20388
echo ' fi # grep' >>$CONFIG_STATUS
20389
echo >>$CONFIG_STATUS
20391
# Break up conftest.undefs because some shells have a limit on the size
20392
# of here documents, and old seds have small limits too (100 cmds).
20393
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20394
rm -f conftest.tail
20395
while grep . conftest.undefs >/dev/null
20397
# Write a limited-size here document to $tmp/undefs.sed.
20398
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20399
# Speed up: don't consider the non `#undef'
20400
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20401
# Work around the forget-to-reset-the-flag bug.
20402
echo 't clr' >>$CONFIG_STATUS
20403
echo ': clr' >>$CONFIG_STATUS
20404
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20406
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20408
mv $tmp/out $tmp/in
20410
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20411
rm -f conftest.undefs
20412
mv conftest.tail conftest.undefs
20414
rm -f conftest.undefs
20416
cat >>$CONFIG_STATUS <<\_ACEOF
20417
# Let's still pretend it is `configure' which instantiates (i.e., don't
20418
# use $as_me), people would be surprised to read:
20419
# /* config.h. Generated by config.status. */
20420
if test x"$ac_file" = x-; then
20421
echo "/* Generated by configure. */" >$tmp/config.h
20423
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20425
cat $tmp/in >>$tmp/config.h
20427
if test x"$ac_file" != x-; then
20428
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20429
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20430
echo "$as_me: $ac_file is unchanged" >&6;}
20432
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20433
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20434
X"$ac_file" : 'X\(//\)[^/]' \| \
20435
X"$ac_file" : 'X\(//\)$' \| \
20436
X"$ac_file" : 'X\(/\)' \| \
20437
. : '\(.\)' 2>/dev/null ||
20439
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20440
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20441
/^X\(\/\/\)$/{ s//\1/; q; }
20442
/^X\(\/\).*/{ s//\1/; q; }
20444
{ if $as_mkdir_p; then
20449
while test ! -d "$as_dir"; do
20450
as_dirs="$as_dir $as_dirs"
20451
as_dir=`(dirname "$as_dir") 2>/dev/null ||
20452
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20453
X"$as_dir" : 'X\(//\)[^/]' \| \
20454
X"$as_dir" : 'X\(//\)$' \| \
20455
X"$as_dir" : 'X\(/\)' \| \
20456
. : '\(.\)' 2>/dev/null ||
20458
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20459
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20460
/^X\(\/\/\)$/{ s//\1/; q; }
20461
/^X\(\/\).*/{ s//\1/; q; }
20464
test ! -n "$as_dirs" || mkdir $as_dirs
20465
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20466
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20467
{ (exit 1); exit 1; }; }; }
20470
mv $tmp/config.h $ac_file
20474
rm -f $tmp/config.h
20476
# Compute $ac_file's index in $config_headers.
20478
for _am_header in $config_headers :; do
20479
case $_am_header in
20480
$ac_file | $ac_file:* )
20483
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
20486
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20487
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20488
X$ac_file : 'X\(//\)[^/]' \| \
20489
X$ac_file : 'X\(//\)$' \| \
20490
X$ac_file : 'X\(/\)' \| \
20491
. : '\(.\)' 2>/dev/null ||
20493
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20494
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20495
/^X\(\/\/\)$/{ s//\1/; q; }
20496
/^X\(\/\).*/{ s//\1/; q; }
20497
s/.*/./; q'`/stamp-h$_am_stamp_count
20500
cat >>$CONFIG_STATUS <<\_ACEOF
20503
# CONFIG_COMMANDS section.
20505
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20506
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20507
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20508
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20509
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20510
X"$ac_dest" : 'X\(//\)[^/]' \| \
20511
X"$ac_dest" : 'X\(//\)$' \| \
20512
X"$ac_dest" : 'X\(/\)' \| \
20513
. : '\(.\)' 2>/dev/null ||
20515
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20516
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20517
/^X\(\/\/\)$/{ s//\1/; q; }
20518
/^X\(\/\).*/{ s//\1/; q; }
20520
{ if $as_mkdir_p; then
20525
while test ! -d "$as_dir"; do
20526
as_dirs="$as_dir $as_dirs"
20527
as_dir=`(dirname "$as_dir") 2>/dev/null ||
20528
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20529
X"$as_dir" : 'X\(//\)[^/]' \| \
20530
X"$as_dir" : 'X\(//\)$' \| \
20531
X"$as_dir" : 'X\(/\)' \| \
20532
. : '\(.\)' 2>/dev/null ||
20534
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20535
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20536
/^X\(\/\/\)$/{ s//\1/; q; }
20537
/^X\(\/\).*/{ s//\1/; q; }
20540
test ! -n "$as_dirs" || mkdir $as_dirs
20541
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20542
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20543
{ (exit 1); exit 1; }; }; }
20547
if test "$ac_dir" != .; then
20548
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20549
# A "../" for each directory in $ac_dir_suffix.
20550
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20552
ac_dir_suffix= ac_top_builddir=
20556
.) # No --srcdir option. We are building in place.
20558
if test -z "$ac_top_builddir"; then
20561
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20563
[\\/]* | ?:[\\/]* ) # Absolute path.
20564
ac_srcdir=$srcdir$ac_dir_suffix;
20565
ac_top_srcdir=$srcdir ;;
20566
*) # Relative path.
20567
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20568
ac_top_srcdir=$ac_top_builddir$srcdir ;;
20571
# Do not use `cd foo && pwd` to compute absolute paths, because
20572
# the directories may not exist.
20574
.) ac_abs_builddir="$ac_dir";;
20577
.) ac_abs_builddir=`pwd`;;
20578
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20579
*) ac_abs_builddir=`pwd`/"$ac_dir";;
20582
case $ac_abs_builddir in
20583
.) ac_abs_top_builddir=${ac_top_builddir}.;;
20585
case ${ac_top_builddir}. in
20586
.) ac_abs_top_builddir=$ac_abs_builddir;;
20587
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20588
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20591
case $ac_abs_builddir in
20592
.) ac_abs_srcdir=$ac_srcdir;;
20595
.) ac_abs_srcdir=$ac_abs_builddir;;
20596
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20597
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20600
case $ac_abs_builddir in
20601
.) ac_abs_top_srcdir=$ac_top_srcdir;;
20603
case $ac_top_srcdir in
20604
.) ac_abs_top_srcdir=$ac_abs_builddir;;
20605
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20606
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20611
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20612
echo "$as_me: executing $ac_dest commands" >&6;}
20614
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20615
# Strip MF so we end up with the name of the file.
20616
mf=`echo "$mf" | sed -e 's/:.*$//'`
20617
# Check whether this is an Automake generated Makefile or not.
20618
# We used to match only the files named `Makefile.in', but
20619
# some people rename them; so instead we look at the file content.
20620
# Grep'ing the first line is not enough: some people post-process
20621
# each Makefile.in and add a new line on top of each file to say so.
20622
# So let's grep whole file.
20623
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20624
dirpart=`(dirname "$mf") 2>/dev/null ||
20625
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20626
X"$mf" : 'X\(//\)[^/]' \| \
20627
X"$mf" : 'X\(//\)$' \| \
20628
X"$mf" : 'X\(/\)' \| \
20629
. : '\(.\)' 2>/dev/null ||
20631
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20632
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20633
/^X\(\/\/\)$/{ s//\1/; q; }
20634
/^X\(\/\).*/{ s//\1/; q; }
20639
# Extract the definition of DEPDIR, am__include, and am__quote
20640
# from the Makefile without running `make'.
20641
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20642
test -z "$DEPDIR" && continue
20643
am__include=`sed -n 's/^am__include = //p' < "$mf"`
20644
test -z "am__include" && continue
20645
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20646
# When using ansi2knr, U may be empty or an underscore; expand it
20647
U=`sed -n 's/^U = //p' < "$mf"`
20648
# Find all dependency output files, they are included files with
20649
# $(DEPDIR) in their names. We invoke sed twice because it is the
20650
# simplest approach to changing $(DEPDIR) to its actual value in the
20652
for file in `sed -n "
20653
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20654
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20655
# Make sure the directory exists.
20656
test -f "$dirpart/$file" && continue
20657
fdir=`(dirname "$file") 2>/dev/null ||
20658
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20659
X"$file" : 'X\(//\)[^/]' \| \
20660
X"$file" : 'X\(//\)$' \| \
20661
X"$file" : 'X\(/\)' \| \
20662
. : '\(.\)' 2>/dev/null ||
20664
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20665
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20666
/^X\(\/\/\)$/{ s//\1/; q; }
20667
/^X\(\/\).*/{ s//\1/; q; }
20669
{ if $as_mkdir_p; then
20670
mkdir -p $dirpart/$fdir
20672
as_dir=$dirpart/$fdir
20674
while test ! -d "$as_dir"; do
20675
as_dirs="$as_dir $as_dirs"
20676
as_dir=`(dirname "$as_dir") 2>/dev/null ||
20677
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20678
X"$as_dir" : 'X\(//\)[^/]' \| \
20679
X"$as_dir" : 'X\(//\)$' \| \
20680
X"$as_dir" : 'X\(/\)' \| \
20681
. : '\(.\)' 2>/dev/null ||
20683
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20684
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20685
/^X\(\/\/\)$/{ s//\1/; q; }
20686
/^X\(\/\).*/{ s//\1/; q; }
20689
test ! -n "$as_dirs" || mkdir $as_dirs
20690
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20691
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20692
{ (exit 1); exit 1; }; }; }
20694
# echo "creating $dirpart/$file"
20695
echo '# dummy' > "$dirpart/$file"
20703
cat >>$CONFIG_STATUS <<\_ACEOF
20705
{ (exit 0); exit 0; }
20707
chmod +x $CONFIG_STATUS
20708
ac_clean_files=$ac_clean_files_save
20711
# configure is writing to config.log, and then calls config.status.
20712
# config.status does its own redirection, appending to config.log.
20713
# Unfortunately, on DOS this fails, as config.log is still kept open
20714
# by configure, so config.status won't be able to write to it; its
20715
# output is simply discarded. So we exec the FD to /dev/null,
20716
# effectively closing config.log, so it can be properly (re)opened and
20717
# appended to by config.status. When coming back to configure, we
20718
# need to make the FD available again.
20719
if test "$no_create" != yes; then
20721
ac_config_status_args=
20722
test "$silent" = yes &&
20723
ac_config_status_args="$ac_config_status_args --quiet"
20725
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20727
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
20728
# would make configure fail if this is the last instruction.
20729
$ac_cs_success || { (exit 1); exit 1; }