2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59.
5
# Copyright (C) 2003 Free Software Foundation, Inc.
6
# This configure script is free software; the Free Software Foundation
7
# gives unlimited permission to copy, distribute and modify it.
8
## --------------------- ##
9
## M4sh Initialization. ##
10
## --------------------- ##
12
# Be Bourne compatible
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
# is contrary to our usage. Disable this feature.
18
alias -g '${1+"$@"}'='"$@"'
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22
DUALCASE=1; export DUALCASE # for MKS sh
24
# Support unset when possible.
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
40
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
eval $as_var=C; export $as_var
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65
# Name of the executable.
66
as_me=`$as_basename "$0" ||
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
X"$0" : 'X\(//\)$' \| \
69
X"$0" : 'X\(/\)$' \| \
70
. : '\(.\)' 2>/dev/null ||
72
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
/^X\/\(\/\/\)$/{ s//\1/; q; }
74
/^X\/\(\/\).*/{ s//\1/; q; }
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
echo "#! /bin/sh" >conf$$.sh
89
echo "exit 0" >>conf$$.sh
91
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
test "x$as_lineno_1" != "x$as_lineno_2" &&
104
test "x$as_lineno_3" = "x$as_lineno_2" || {
105
# Find who we are. Look in the path if we contain no path at all
108
*[\\/]* ) as_myself=$0 ;;
109
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113
test -z "$as_dir" && as_dir=.
114
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119
# We did not find ourselves, most probably we were run as `sh COMMAND'
120
# in which case we are not to be found in the path.
121
if test "x$as_myself" = x; then
124
if test ! -f "$as_myself"; then
125
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
{ (exit 1); exit 1; }; }
128
case $CONFIG_SHELL in
130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
test -z "$as_dir" && as_dir=.
135
for as_base in sh bash ksh sh5; do
138
if ("$as_dir/$as_base" -c '
141
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
test "x$as_lineno_1" != "x$as_lineno_2" &&
143
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
CONFIG_SHELL=$as_dir/$as_base
148
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
# uniformly replaced by the line number. The first 'sed' inserts a
158
# line-number line before each line; the second 'sed' does the real
159
# work. The second script uses 'N' to pair each line-number line
160
# with the numbered line, and appends trailing '-' during
161
# substitution so that $LINENO is not a special case at line end.
162
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164
sed '=' <$as_myself |
169
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172
s,^['$as_cr_digits']*\n,,
174
chmod +x $as_me.lineno ||
175
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
{ (exit 1); exit 1; }; }
178
# Don't try to exec as it changes $[0], causing all sort of problems
179
# (the dirname of $[0] is not the place where we might find the
180
# original and so on. Autoconf is especially sensible to this).
182
# Exit status is that of the last command.
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
*c*,-n*) ECHO_N= ECHO_C='
190
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194
if expr a : '\(a\)' >/dev/null 2>&1; then
200
rm -f conf$$ conf$$.exe conf$$.file
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
# We could just check for DJGPP; but this test a) works b) is more generic
204
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
if test -f conf$$.exe; then
206
# Don't use ln at all; we don't have any links
211
elif ln conf$$.file conf$$ 2>/dev/null; then
216
rm -f conf$$ conf$$.exe conf$$.file
218
if mkdir -p . 2>/dev/null; then
221
test -d ./-p && rmdir ./-p
225
as_executable_p="test -f"
227
# Sed expression to map a string onto a valid CPP name.
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
# Sed expression to map a string onto a valid variable name.
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
# We need space, tab and new line, in precisely that order.
245
# Check that we are running under the correct shell.
246
SHELL=${CONFIG_SHELL-/bin/sh}
250
# Remove one level of quotation (which was required for Make).
251
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256
if test "X$1" = X--no-reexec; then
257
# Discard the --no-reexec flag, and continue.
259
elif test "X$1" = X--fallback-echo; then
260
# Avoid inline document here, it may be left over
262
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263
# Yippee, $echo works!
266
# Restart under the correct shell.
267
exec $SHELL "$0" --no-reexec ${1+"$@"}
270
if test "X$1" = X--fallback-echo; then
271
# used as fallback echo
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
281
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283
if test -z "$ECHO"; then
284
if test "X${echo_test_string+set}" != Xset; then
285
# find a string as large as possible, as long as the shell can cope with it
286
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289
echo_test_string=`eval $cmd` &&
290
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299
test "X$echo_testing_string" = "X$echo_test_string"; then
302
# The Solaris, AIX, and Digital Unix default echo programs unquote
303
# backslashes. This makes it impossible to quote backslashes using
304
# echo "$something" | sed 's/\\/\\\\/g'
306
# So, first we look for a working echo in the user's PATH.
308
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309
for dir in $PATH /usr/ucb; do
311
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314
test "X$echo_testing_string" = "X$echo_test_string"; then
321
if test "X$echo" = Xecho; then
322
# We didn't find a better echo, so look for alternatives.
323
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325
test "X$echo_testing_string" = "X$echo_test_string"; then
326
# This shell has a builtin print -r that does the trick.
328
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329
test "X$CONFIG_SHELL" != X/bin/ksh; then
330
# If we have ksh, try running configure again with it.
331
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332
export ORIGINAL_CONFIG_SHELL
333
CONFIG_SHELL=/bin/ksh
335
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341
test "X$echo_testing_string" = "X$echo_test_string"; then
344
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345
test "X$echo_testing_string" = 'X\t' &&
346
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347
test "X$echo_testing_string" = "X$echo_test_string"; then
348
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350
SHELL="$CONFIG_SHELL"
352
echo="$CONFIG_SHELL $0 --fallback-echo"
353
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354
test "X$echo_testing_string" = 'X\t' &&
355
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356
test "X$echo_testing_string" = "X$echo_test_string"; then
357
echo="$CONFIG_SHELL $0 --fallback-echo"
359
# maybe with a smaller string...
362
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370
if test "$prev" != 'sed 50q "$0"'; then
371
echo_test_string=`eval $prev`
372
export echo_test_string
373
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375
# Oops. We lost completely, so just stick with echo.
384
# Copy echo and quote the copy suitably for passing to libtool from
385
# the Makefile, instead of quoting the original, which is used later.
387
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394
tagnames=${tagnames+${tagnames},}CXX
396
tagnames=${tagnames+${tagnames},}F77
399
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400
# so uname gets run too.
401
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408
ac_default_prefix=/usr/local
409
ac_config_libobj_dir=.
414
SHELL=${CONFIG_SHELL-/bin/sh}
416
# Maximum number of lines to put in a shell here document.
417
# This variable seems obsolete. It should probably be removed, and
418
# only ac_max_sed_lines should be used.
419
: ${ac_max_here_lines=38}
421
# Identity of this package.
428
ac_unique_file="Makefile.in"
429
# Factoring default headers for most tests.
430
ac_includes_default="\
433
# include <sys/types.h>
436
# include <sys/stat.h>
447
# if !STDC_HEADERS && HAVE_MEMORY_H
453
# include <strings.h>
456
# include <inttypes.h>
466
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL blddir PACKAGE VERSION EXPAT_MAJOR_VERSION EXPAT_MINOR_VERSION EXPAT_EDIT LIBCURRENT LIBREVISION LIBAGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LIBOBJS FILEMAP_OBJ LTLIBOBJS'
469
# Initialize some variables set by options.
471
ac_init_version=false
472
# The variables have the same names as the options, with
473
# dashes changed to underlines.
481
program_transform_name=s,x,x,
489
# Installation directory options.
490
# These are left unexpanded so users can "make install exec_prefix=/foo"
491
# and all the variables that are supposed to be based on exec_prefix
492
# by default will actually change.
493
# Use braces instead of parens because sh, perl, etc. also accept them.
494
bindir='${exec_prefix}/bin'
495
sbindir='${exec_prefix}/sbin'
496
libexecdir='${exec_prefix}/libexec'
497
datadir='${prefix}/share'
498
sysconfdir='${prefix}/etc'
499
sharedstatedir='${prefix}/com'
500
localstatedir='${prefix}/var'
501
libdir='${exec_prefix}/lib'
502
includedir='${prefix}/include'
503
oldincludedir='/usr/include'
504
infodir='${prefix}/info'
505
mandir='${prefix}/man'
510
# If the previous option needs an argument, assign it.
511
if test -n "$ac_prev"; then
512
eval "$ac_prev=\$ac_option"
517
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
# Accept the important Cygnus configure options, so we can diagnose typos.
523
-bindir | --bindir | --bindi | --bind | --bin | --bi)
525
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528
-build | --build | --buil | --bui | --bu)
529
ac_prev=build_alias ;;
530
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
531
build_alias=$ac_optarg ;;
533
-cache-file | --cache-file | --cache-fil | --cache-fi \
534
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535
ac_prev=cache_file ;;
536
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538
cache_file=$ac_optarg ;;
541
cache_file=config.cache ;;
543
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547
datadir=$ac_optarg ;;
549
-disable-* | --disable-*)
550
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551
# Reject names that are not valid shell variable names.
552
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
554
{ (exit 1); exit 1; }; }
555
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556
eval "enable_$ac_feature=no" ;;
558
-enable-* | --enable-*)
559
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560
# Reject names that are not valid shell variable names.
561
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
563
{ (exit 1); exit 1; }; }
564
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569
eval "enable_$ac_feature='$ac_optarg'" ;;
571
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573
| --exec | --exe | --ex)
574
ac_prev=exec_prefix ;;
575
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577
| --exec=* | --exe=* | --ex=*)
578
exec_prefix=$ac_optarg ;;
580
-gas | --gas | --ga | --g)
581
# Obsolete; use --with-gas.
584
-help | --help | --hel | --he | -h)
586
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587
ac_init_help=recursive ;;
588
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589
ac_init_help=short ;;
591
-host | --host | --hos | --ho)
592
ac_prev=host_alias ;;
593
-host=* | --host=* | --hos=* | --ho=*)
594
host_alias=$ac_optarg ;;
596
-includedir | --includedir | --includedi | --included | --include \
597
| --includ | --inclu | --incl | --inc)
598
ac_prev=includedir ;;
599
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600
| --includ=* | --inclu=* | --incl=* | --inc=*)
601
includedir=$ac_optarg ;;
603
-infodir | --infodir | --infodi | --infod | --info | --inf)
605
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606
infodir=$ac_optarg ;;
608
-libdir | --libdir | --libdi | --libd)
610
-libdir=* | --libdir=* | --libdi=* | --libd=*)
613
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614
| --libexe | --libex | --libe)
615
ac_prev=libexecdir ;;
616
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617
| --libexe=* | --libex=* | --libe=*)
618
libexecdir=$ac_optarg ;;
620
-localstatedir | --localstatedir | --localstatedi | --localstated \
621
| --localstate | --localstat | --localsta | --localst \
622
| --locals | --local | --loca | --loc | --lo)
623
ac_prev=localstatedir ;;
624
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
626
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627
localstatedir=$ac_optarg ;;
629
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635
# Obsolete; use --without-fp.
638
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
639
| --no-cr | --no-c | -n)
642
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
643
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648
| --oldin | --oldi | --old | --ol | --o)
649
ac_prev=oldincludedir ;;
650
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653
oldincludedir=$ac_optarg ;;
655
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660
-program-prefix | --program-prefix | --program-prefi | --program-pref \
661
| --program-pre | --program-pr | --program-p)
662
ac_prev=program_prefix ;;
663
-program-prefix=* | --program-prefix=* | --program-prefi=* \
664
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665
program_prefix=$ac_optarg ;;
667
-program-suffix | --program-suffix | --program-suffi | --program-suff \
668
| --program-suf | --program-su | --program-s)
669
ac_prev=program_suffix ;;
670
-program-suffix=* | --program-suffix=* | --program-suffi=* \
671
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672
program_suffix=$ac_optarg ;;
674
-program-transform-name | --program-transform-name \
675
| --program-transform-nam | --program-transform-na \
676
| --program-transform-n | --program-transform- \
677
| --program-transform | --program-transfor \
678
| --program-transfo | --program-transf \
679
| --program-trans | --program-tran \
680
| --progr-tra | --program-tr | --program-t)
681
ac_prev=program_transform_name ;;
682
-program-transform-name=* | --program-transform-name=* \
683
| --program-transform-nam=* | --program-transform-na=* \
684
| --program-transform-n=* | --program-transform-=* \
685
| --program-transform=* | --program-transfor=* \
686
| --program-transfo=* | --program-transf=* \
687
| --program-trans=* | --program-tran=* \
688
| --progr-tra=* | --program-tr=* | --program-t=*)
689
program_transform_name=$ac_optarg ;;
691
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
692
| -silent | --silent | --silen | --sile | --sil)
695
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699
sbindir=$ac_optarg ;;
701
-sharedstatedir | --sharedstatedir | --sharedstatedi \
702
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703
| --sharedst | --shareds | --shared | --share | --shar \
705
ac_prev=sharedstatedir ;;
706
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710
sharedstatedir=$ac_optarg ;;
712
-site | --site | --sit)
714
-site=* | --site=* | --sit=*)
717
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723
| --syscon | --sysco | --sysc | --sys | --sy)
724
ac_prev=sysconfdir ;;
725
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727
sysconfdir=$ac_optarg ;;
729
-target | --target | --targe | --targ | --tar | --ta | --t)
730
ac_prev=target_alias ;;
731
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732
target_alias=$ac_optarg ;;
734
-v | -verbose | --verbose | --verbos | --verbo | --verb)
737
-version | --version | --versio | --versi | --vers | -V)
741
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742
# Reject names that are not valid shell variable names.
743
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744
{ echo "$as_me: error: invalid package name: $ac_package" >&2
745
{ (exit 1); exit 1; }; }
746
ac_package=`echo $ac_package| sed 's/-/_/g'`
748
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751
eval "with_$ac_package='$ac_optarg'" ;;
753
-without-* | --without-*)
754
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755
# Reject names that are not valid shell variable names.
756
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757
{ echo "$as_me: error: invalid package name: $ac_package" >&2
758
{ (exit 1); exit 1; }; }
759
ac_package=`echo $ac_package | sed 's/-/_/g'`
760
eval "with_$ac_package=no" ;;
763
# Obsolete; use --with-x.
766
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767
| --x-incl | --x-inc | --x-in | --x-i)
768
ac_prev=x_includes ;;
769
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771
x_includes=$ac_optarg ;;
773
-x-libraries | --x-libraries | --x-librarie | --x-librari \
774
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775
ac_prev=x_libraries ;;
776
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778
x_libraries=$ac_optarg ;;
780
-*) { echo "$as_me: error: unrecognized option: $ac_option
781
Try \`$0 --help' for more information." >&2
782
{ (exit 1); exit 1; }; }
786
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787
# Reject names that are not valid shell variable names.
788
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790
{ (exit 1); exit 1; }; }
791
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792
eval "$ac_envvar='$ac_optarg'"
796
# FIXME: should be removed in autoconf 3.0.
797
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806
if test -n "$ac_prev"; then
807
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808
{ echo "$as_me: error: missing argument to $ac_option" >&2
809
{ (exit 1); exit 1; }; }
812
# Be sure to have absolute paths.
813
for ac_var in exec_prefix prefix
815
eval ac_val=$`echo $ac_var`
817
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819
{ (exit 1); exit 1; }; };;
823
# Be sure to have absolute paths.
824
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825
localstatedir libdir includedir oldincludedir infodir mandir
827
eval ac_val=$`echo $ac_var`
829
[\\/$]* | ?:[\\/]* ) ;;
830
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831
{ (exit 1); exit 1; }; };;
835
# There might be people who depend on the old broken behavior: `$host'
836
# used to hold the argument of --host etc.
837
# FIXME: To remove some day.
842
# FIXME: To remove some day.
843
if test "x$host_alias" != x; then
844
if test "x$build_alias" = x; then
845
cross_compiling=maybe
846
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847
If a cross compiler is detected then cross compile mode will be used." >&2
848
elif test "x$build_alias" != "x$host_alias"; then
854
test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
test "$silent" = yes && exec 6>/dev/null
859
# Find the source files, if location was not specified.
860
if test -z "$srcdir"; then
861
ac_srcdir_defaulted=yes
862
# Try the directory containing this script, then its parent.
863
ac_confdir=`(dirname "$0") 2>/dev/null ||
864
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865
X"$0" : 'X\(//\)[^/]' \| \
866
X"$0" : 'X\(//\)$' \| \
867
X"$0" : 'X\(/\)' \| \
868
. : '\(.\)' 2>/dev/null ||
870
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
872
/^X\(\/\/\)$/{ s//\1/; q; }
873
/^X\(\/\).*/{ s//\1/; q; }
876
if test ! -r $srcdir/$ac_unique_file; then
880
ac_srcdir_defaulted=no
882
if test ! -r $srcdir/$ac_unique_file; then
883
if test "$ac_srcdir_defaulted" = yes; then
884
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885
{ (exit 1); exit 1; }; }
887
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888
{ (exit 1); exit 1; }; }
891
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893
{ (exit 1); exit 1; }; }
894
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895
ac_env_build_alias_set=${build_alias+set}
896
ac_env_build_alias_value=$build_alias
897
ac_cv_env_build_alias_set=${build_alias+set}
898
ac_cv_env_build_alias_value=$build_alias
899
ac_env_host_alias_set=${host_alias+set}
900
ac_env_host_alias_value=$host_alias
901
ac_cv_env_host_alias_set=${host_alias+set}
902
ac_cv_env_host_alias_value=$host_alias
903
ac_env_target_alias_set=${target_alias+set}
904
ac_env_target_alias_value=$target_alias
905
ac_cv_env_target_alias_set=${target_alias+set}
906
ac_cv_env_target_alias_value=$target_alias
907
ac_env_CC_set=${CC+set}
909
ac_cv_env_CC_set=${CC+set}
910
ac_cv_env_CC_value=$CC
911
ac_env_CFLAGS_set=${CFLAGS+set}
912
ac_env_CFLAGS_value=$CFLAGS
913
ac_cv_env_CFLAGS_set=${CFLAGS+set}
914
ac_cv_env_CFLAGS_value=$CFLAGS
915
ac_env_LDFLAGS_set=${LDFLAGS+set}
916
ac_env_LDFLAGS_value=$LDFLAGS
917
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918
ac_cv_env_LDFLAGS_value=$LDFLAGS
919
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920
ac_env_CPPFLAGS_value=$CPPFLAGS
921
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923
ac_env_CPP_set=${CPP+set}
924
ac_env_CPP_value=$CPP
925
ac_cv_env_CPP_set=${CPP+set}
926
ac_cv_env_CPP_value=$CPP
927
ac_env_CXX_set=${CXX+set}
928
ac_env_CXX_value=$CXX
929
ac_cv_env_CXX_set=${CXX+set}
930
ac_cv_env_CXX_value=$CXX
931
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932
ac_env_CXXFLAGS_value=$CXXFLAGS
933
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935
ac_env_CXXCPP_set=${CXXCPP+set}
936
ac_env_CXXCPP_value=$CXXCPP
937
ac_cv_env_CXXCPP_set=${CXXCPP+set}
938
ac_cv_env_CXXCPP_value=$CXXCPP
939
ac_env_F77_set=${F77+set}
940
ac_env_F77_value=$F77
941
ac_cv_env_F77_set=${F77+set}
942
ac_cv_env_F77_value=$F77
943
ac_env_FFLAGS_set=${FFLAGS+set}
944
ac_env_FFLAGS_value=$FFLAGS
945
ac_cv_env_FFLAGS_set=${FFLAGS+set}
946
ac_cv_env_FFLAGS_value=$FFLAGS
949
# Report the --help message.
951
if test "$ac_init_help" = "long"; then
952
# Omit some internal or obsolete options to make the list less imposing.
953
# This message is too long to be a string in the A/UX 3.1 sh.
955
\`configure' configures this package to adapt to many kinds of systems.
957
Usage: $0 [OPTION]... [VAR=VALUE]...
959
To assign environment variables (e.g., CC, CFLAGS...), specify them as
960
VAR=VALUE. See below for descriptions of some of the useful variables.
962
Defaults for the options are specified in brackets.
965
-h, --help display this help and exit
966
--help=short display options specific to this package
967
--help=recursive display the short help of all the included packages
968
-V, --version display version information and exit
969
-q, --quiet, --silent do not print \`checking...' messages
970
--cache-file=FILE cache test results in FILE [disabled]
971
-C, --config-cache alias for \`--cache-file=config.cache'
972
-n, --no-create do not create output files
973
--srcdir=DIR find the sources in DIR [configure dir or \`..']
978
Installation directories:
979
--prefix=PREFIX install architecture-independent files in PREFIX
981
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984
By default, \`make install' will install all the files in
985
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987
for instance \`--prefix=\$HOME'.
989
For better control, use the options below.
991
Fine tuning of the installation directories:
992
--bindir=DIR user executables [EPREFIX/bin]
993
--sbindir=DIR system admin executables [EPREFIX/sbin]
994
--libexecdir=DIR program executables [EPREFIX/libexec]
995
--datadir=DIR read-only architecture-independent data [PREFIX/share]
996
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
999
--libdir=DIR object code libraries [EPREFIX/lib]
1000
--includedir=DIR C header files [PREFIX/include]
1001
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1002
--infodir=DIR info documentation [PREFIX/info]
1003
--mandir=DIR man documentation [PREFIX/man]
1009
--build=BUILD configure for building on BUILD [guessed]
1010
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1011
--target=TARGET configure for building compilers for TARGET [HOST]
1015
if test -n "$ac_init_help"; then
1020
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1021
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1022
--enable-shared[=PKGS]
1023
build shared libraries [default=yes]
1024
--enable-static[=PKGS]
1025
build static libraries [default=yes]
1026
--enable-fast-install[=PKGS]
1027
optimize for fast installation [default=yes]
1028
--disable-libtool-lock avoid locking (might break parallel builds)
1031
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1032
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1033
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1034
--with-pic try to use only PIC/non-PIC objects [default=use
1037
include additional configurations [automatic]
1039
Some influential environment variables:
1040
CC C compiler command
1041
CFLAGS C compiler flags
1042
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1043
nonstandard directory <lib dir>
1044
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1045
headers in a nonstandard directory <include dir>
1047
CXX C++ compiler command
1048
CXXFLAGS C++ compiler flags
1049
CXXCPP C++ preprocessor
1050
F77 Fortran 77 compiler command
1051
FFLAGS Fortran 77 compiler flags
1053
Use these variables to override the choices made by `configure' or to help
1054
it to find libraries and programs with nonstandard names/locations.
1059
if test "$ac_init_help" = "recursive"; then
1060
# If there are subdirs, report their specific --help.
1062
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1063
test -d $ac_dir || continue
1066
if test "$ac_dir" != .; then
1067
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1068
# A "../" for each directory in $ac_dir_suffix.
1069
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1071
ac_dir_suffix= ac_top_builddir=
1075
.) # No --srcdir option. We are building in place.
1077
if test -z "$ac_top_builddir"; then
1080
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1082
[\\/]* | ?:[\\/]* ) # Absolute path.
1083
ac_srcdir=$srcdir$ac_dir_suffix;
1084
ac_top_srcdir=$srcdir ;;
1086
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1087
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1090
# Do not use `cd foo && pwd` to compute absolute paths, because
1091
# the directories may not exist.
1093
.) ac_abs_builddir="$ac_dir";;
1096
.) ac_abs_builddir=`pwd`;;
1097
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1098
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1101
case $ac_abs_builddir in
1102
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1104
case ${ac_top_builddir}. in
1105
.) ac_abs_top_builddir=$ac_abs_builddir;;
1106
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1107
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1110
case $ac_abs_builddir in
1111
.) ac_abs_srcdir=$ac_srcdir;;
1114
.) ac_abs_srcdir=$ac_abs_builddir;;
1115
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1116
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1119
case $ac_abs_builddir in
1120
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1122
case $ac_top_srcdir in
1123
.) ac_abs_top_srcdir=$ac_abs_builddir;;
1124
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1125
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1130
# Check for guested configure; otherwise get Cygnus style configure.
1131
if test -f $ac_srcdir/configure.gnu; then
1133
$SHELL $ac_srcdir/configure.gnu --help=recursive
1134
elif test -f $ac_srcdir/configure; then
1136
$SHELL $ac_srcdir/configure --help=recursive
1137
elif test -f $ac_srcdir/configure.ac ||
1138
test -f $ac_srcdir/configure.in; then
1140
$ac_configure --help
1142
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1148
test -n "$ac_init_help" && exit 0
1149
if $ac_init_version; then
1152
Copyright (C) 2003 Free Software Foundation, Inc.
1153
This configure script is free software; the Free Software Foundation
1154
gives unlimited permission to copy, distribute and modify it.
1160
This file contains any messages produced by compilers while
1161
running configure, to aid debugging if configure makes a mistake.
1163
It was created by $as_me, which was
1164
generated by GNU Autoconf 2.59. Invocation command line was
1175
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1176
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1177
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1178
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1179
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1181
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1182
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1184
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1185
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1186
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1187
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1188
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1189
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1190
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1194
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1198
test -z "$as_dir" && as_dir=.
1199
echo "PATH: $as_dir"
1214
# Keep a trace of the command line.
1215
# Strip out --no-create and --no-recursion so they do not pile up.
1216
# Strip out --silent because we don't want to record it for future runs.
1217
# Also quote any args containing shell meta-characters.
1218
# Make two passes to allow for proper duplicate-argument suppression.
1223
ac_must_keep_next=false
1229
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1230
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231
| -silent | --silent | --silen | --sile | --sil)
1233
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1234
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1237
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1239
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1240
if test $ac_must_keep_next = true; then
1241
ac_must_keep_next=false # Got value, back to normal.
1244
*=* | --config-cache | -C | -disable-* | --disable-* \
1245
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1246
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1247
| -with-* | --with-* | -without-* | --without-* | --x)
1248
case "$ac_configure_args0 " in
1249
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1252
-* ) ac_must_keep_next=true ;;
1255
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1256
# Get rid of the leading space.
1262
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1263
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1265
# When interrupted or exit'd, cleanup temporary files, and complete
1266
# config.log. We remove comments because anyway the quotes in there
1267
# would cause problems or look ugly.
1268
# WARNING: Be sure not to use single quotes in there, as some shells,
1269
# such as our DU 5.0 friend, will then `close' the trap.
1270
trap 'exit_status=$?
1271
# Save into config.log some information that might help in debugging.
1276
## ---------------- ##
1277
## Cache variables. ##
1278
## ---------------- ##
1281
# The following way of writing the cache mishandles newlines in values,
1284
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1287
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1288
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1292
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1299
## ----------------- ##
1300
## Output variables. ##
1301
## ----------------- ##
1304
for ac_var in $ac_subst_vars
1306
eval ac_val=$`echo $ac_var`
1307
echo "$ac_var='"'"'$ac_val'"'"'"
1311
if test -n "$ac_subst_files"; then
1318
for ac_var in $ac_subst_files
1320
eval ac_val=$`echo $ac_var`
1321
echo "$ac_var='"'"'$ac_val'"'"'"
1326
if test -s confdefs.h; then
1333
sed "/^$/d" confdefs.h | sort
1336
test "$ac_signal" != 0 &&
1337
echo "$as_me: caught signal $ac_signal"
1338
echo "$as_me: exit $exit_status"
1340
rm -f core *.core &&
1341
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1344
for ac_signal in 1 2 13 15; do
1345
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1349
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1350
rm -rf conftest* confdefs.h
1351
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1354
# Predefined preprocessor variables.
1356
cat >>confdefs.h <<_ACEOF
1357
#define PACKAGE_NAME "$PACKAGE_NAME"
1361
cat >>confdefs.h <<_ACEOF
1362
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1366
cat >>confdefs.h <<_ACEOF
1367
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1371
cat >>confdefs.h <<_ACEOF
1372
#define PACKAGE_STRING "$PACKAGE_STRING"
1376
cat >>confdefs.h <<_ACEOF
1377
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1381
# Let the site file select an alternate cache file if it wants to.
1382
# Prefer explicitly selected file to automatically selected ones.
1383
if test -z "$CONFIG_SITE"; then
1384
if test "x$prefix" != xNONE; then
1385
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1387
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1390
for ac_site_file in $CONFIG_SITE; do
1391
if test -r "$ac_site_file"; then
1392
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1393
echo "$as_me: loading site script $ac_site_file" >&6;}
1394
sed 's/^/| /' "$ac_site_file" >&5
1399
if test -r "$cache_file"; then
1400
# Some versions of bash will fail to source /dev/null (special
1401
# files actually), so we avoid doing that.
1402
if test -f "$cache_file"; then
1403
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1404
echo "$as_me: loading cache $cache_file" >&6;}
1406
[\\/]* | ?:[\\/]* ) . $cache_file;;
1407
*) . ./$cache_file;;
1411
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1412
echo "$as_me: creating cache $cache_file" >&6;}
1416
# Check that the precious variables saved in the cache have kept the same
1418
ac_cache_corrupted=false
1419
for ac_var in `(set) 2>&1 |
1420
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1421
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1422
eval ac_new_set=\$ac_env_${ac_var}_set
1423
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1424
eval ac_new_val="\$ac_env_${ac_var}_value"
1425
case $ac_old_set,$ac_new_set in
1427
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1428
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1429
ac_cache_corrupted=: ;;
1431
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1432
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1433
ac_cache_corrupted=: ;;
1436
if test "x$ac_old_val" != "x$ac_new_val"; then
1437
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1438
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1439
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1440
echo "$as_me: former value: $ac_old_val" >&2;}
1441
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1442
echo "$as_me: current value: $ac_new_val" >&2;}
1443
ac_cache_corrupted=:
1446
# Pass precious variables to config.status.
1447
if test "$ac_new_set" = set; then
1449
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1450
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1451
*) ac_arg=$ac_var=$ac_new_val ;;
1453
case " $ac_configure_args " in
1454
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1455
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1459
if $ac_cache_corrupted; then
1460
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1461
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1462
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1463
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1464
{ (exit 1); exit 1; }; }
1468
ac_cpp='$CPP $CPPFLAGS'
1469
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1470
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1471
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1492
for ac_dir in conftools $srcdir/conftools; do
1493
if test -f $ac_dir/install-sh; then
1495
ac_install_sh="$ac_aux_dir/install-sh -c"
1497
elif test -f $ac_dir/install.sh; then
1499
ac_install_sh="$ac_aux_dir/install.sh -c"
1501
elif test -f $ac_dir/shtool; then
1503
ac_install_sh="$ac_aux_dir/shtool install -c"
1507
if test -z "$ac_aux_dir"; then
1508
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in conftools $srcdir/conftools" >&5
1509
echo "$as_me: error: cannot find install-sh or install.sh in conftools $srcdir/conftools" >&2;}
1510
{ (exit 1); exit 1; }; }
1512
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1513
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1514
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1518
EXPAT_MAJOR_VERSION=1
1519
EXPAT_MINOR_VERSION=95
1522
EXPAT_VERSION=$EXPAT_MAJOR_VERSION.$EXPAT_MINOR_VERSION.$EXPAT_EDIT
1523
VERSION=$EXPAT_VERSION
1531
ac_config_headers="$ac_config_headers config.h"
1534
# Make sure we can run config.sub.
1535
$ac_config_sub sun4 >/dev/null 2>&1 ||
1536
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1537
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1538
{ (exit 1); exit 1; }; }
1540
echo "$as_me:$LINENO: checking build system type" >&5
1541
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1542
if test "${ac_cv_build+set}" = set; then
1543
echo $ECHO_N "(cached) $ECHO_C" >&6
1545
ac_cv_build_alias=$build_alias
1546
test -z "$ac_cv_build_alias" &&
1547
ac_cv_build_alias=`$ac_config_guess`
1548
test -z "$ac_cv_build_alias" &&
1549
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1550
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1551
{ (exit 1); exit 1; }; }
1552
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1553
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1554
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1555
{ (exit 1); exit 1; }; }
1558
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1559
echo "${ECHO_T}$ac_cv_build" >&6
1561
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1562
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1563
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1566
echo "$as_me:$LINENO: checking host system type" >&5
1567
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1568
if test "${ac_cv_host+set}" = set; then
1569
echo $ECHO_N "(cached) $ECHO_C" >&6
1571
ac_cv_host_alias=$host_alias
1572
test -z "$ac_cv_host_alias" &&
1573
ac_cv_host_alias=$ac_cv_build_alias
1574
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1575
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1576
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1577
{ (exit 1); exit 1; }; }
1580
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1581
echo "${ECHO_T}$ac_cv_host" >&6
1583
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1584
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1585
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1588
echo "$as_me:$LINENO: checking target system type" >&5
1589
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1590
if test "${ac_cv_target+set}" = set; then
1591
echo $ECHO_N "(cached) $ECHO_C" >&6
1593
ac_cv_target_alias=$target_alias
1594
test "x$ac_cv_target_alias" = "x" &&
1595
ac_cv_target_alias=$ac_cv_host_alias
1596
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1597
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1598
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1599
{ (exit 1); exit 1; }; }
1602
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1603
echo "${ECHO_T}$ac_cv_target" >&6
1604
target=$ac_cv_target
1605
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1606
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1607
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1610
# The aliases save the names the user supplied, while $host etc.
1611
# will get canonicalized.
1612
test -n "$target_alias" &&
1613
test "$program_prefix$program_suffix$program_transform_name" = \
1615
program_prefix=${target_alias}-
1618
# Use a custom made libtool replacement
1619
echo Using aplibtool
1620
LIBTOOL="$srcdir/../../../apr/build/aplibtool"
1625
# Check whether --enable-shared or --disable-shared was given.
1626
if test "${enable_shared+set}" = set; then
1627
enableval="$enable_shared"
1628
p=${PACKAGE-default}
1630
yes) enable_shared=yes ;;
1631
no) enable_shared=no ;;
1634
# Look at the argument we got. We use all the common list separators.
1635
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1636
for pkg in $enableval; do
1638
if test "X$pkg" = "X$p"; then
1649
# Check whether --enable-static or --disable-static was given.
1650
if test "${enable_static+set}" = set; then
1651
enableval="$enable_static"
1652
p=${PACKAGE-default}
1654
yes) enable_static=yes ;;
1655
no) enable_static=no ;;
1658
# Look at the argument we got. We use all the common list separators.
1659
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1660
for pkg in $enableval; do
1662
if test "X$pkg" = "X$p"; then
1673
# Check whether --enable-fast-install or --disable-fast-install was given.
1674
if test "${enable_fast_install+set}" = set; then
1675
enableval="$enable_fast_install"
1676
p=${PACKAGE-default}
1678
yes) enable_fast_install=yes ;;
1679
no) enable_fast_install=no ;;
1681
enable_fast_install=no
1682
# Look at the argument we got. We use all the common list separators.
1683
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1684
for pkg in $enableval; do
1686
if test "X$pkg" = "X$p"; then
1687
enable_fast_install=yes
1694
enable_fast_install=yes
1698
ac_cpp='$CPP $CPPFLAGS'
1699
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1700
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1701
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1702
if test -n "$ac_tool_prefix"; then
1703
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1704
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1705
echo "$as_me:$LINENO: checking for $ac_word" >&5
1706
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1707
if test "${ac_cv_prog_CC+set}" = set; then
1708
echo $ECHO_N "(cached) $ECHO_C" >&6
1710
if test -n "$CC"; then
1711
ac_cv_prog_CC="$CC" # Let the user override the test.
1713
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717
test -z "$as_dir" && as_dir=.
1718
for ac_exec_ext in '' $ac_executable_extensions; do
1719
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1720
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1721
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1730
if test -n "$CC"; then
1731
echo "$as_me:$LINENO: result: $CC" >&5
1732
echo "${ECHO_T}$CC" >&6
1734
echo "$as_me:$LINENO: result: no" >&5
1735
echo "${ECHO_T}no" >&6
1739
if test -z "$ac_cv_prog_CC"; then
1741
# Extract the first word of "gcc", so it can be a program name with args.
1742
set dummy gcc; ac_word=$2
1743
echo "$as_me:$LINENO: checking for $ac_word" >&5
1744
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1746
echo $ECHO_N "(cached) $ECHO_C" >&6
1748
if test -n "$ac_ct_CC"; then
1749
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1751
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755
test -z "$as_dir" && as_dir=.
1756
for ac_exec_ext in '' $ac_executable_extensions; do
1757
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758
ac_cv_prog_ac_ct_CC="gcc"
1759
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1767
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1768
if test -n "$ac_ct_CC"; then
1769
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1770
echo "${ECHO_T}$ac_ct_CC" >&6
1772
echo "$as_me:$LINENO: result: no" >&5
1773
echo "${ECHO_T}no" >&6
1781
if test -z "$CC"; then
1782
if test -n "$ac_tool_prefix"; then
1783
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1784
set dummy ${ac_tool_prefix}cc; ac_word=$2
1785
echo "$as_me:$LINENO: checking for $ac_word" >&5
1786
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787
if test "${ac_cv_prog_CC+set}" = set; then
1788
echo $ECHO_N "(cached) $ECHO_C" >&6
1790
if test -n "$CC"; then
1791
ac_cv_prog_CC="$CC" # Let the user override the test.
1793
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797
test -z "$as_dir" && as_dir=.
1798
for ac_exec_ext in '' $ac_executable_extensions; do
1799
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800
ac_cv_prog_CC="${ac_tool_prefix}cc"
1801
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1810
if test -n "$CC"; then
1811
echo "$as_me:$LINENO: result: $CC" >&5
1812
echo "${ECHO_T}$CC" >&6
1814
echo "$as_me:$LINENO: result: no" >&5
1815
echo "${ECHO_T}no" >&6
1819
if test -z "$ac_cv_prog_CC"; then
1821
# Extract the first word of "cc", so it can be a program name with args.
1822
set dummy cc; ac_word=$2
1823
echo "$as_me:$LINENO: checking for $ac_word" >&5
1824
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1825
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1826
echo $ECHO_N "(cached) $ECHO_C" >&6
1828
if test -n "$ac_ct_CC"; then
1829
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1831
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835
test -z "$as_dir" && as_dir=.
1836
for ac_exec_ext in '' $ac_executable_extensions; do
1837
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1838
ac_cv_prog_ac_ct_CC="cc"
1839
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1848
if test -n "$ac_ct_CC"; then
1849
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1850
echo "${ECHO_T}$ac_ct_CC" >&6
1852
echo "$as_me:$LINENO: result: no" >&5
1853
echo "${ECHO_T}no" >&6
1862
if test -z "$CC"; then
1863
# Extract the first word of "cc", so it can be a program name with args.
1864
set dummy cc; ac_word=$2
1865
echo "$as_me:$LINENO: checking for $ac_word" >&5
1866
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867
if test "${ac_cv_prog_CC+set}" = set; then
1868
echo $ECHO_N "(cached) $ECHO_C" >&6
1870
if test -n "$CC"; then
1871
ac_cv_prog_CC="$CC" # Let the user override the test.
1874
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878
test -z "$as_dir" && as_dir=.
1879
for ac_exec_ext in '' $ac_executable_extensions; do
1880
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1882
ac_prog_rejected=yes
1886
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892
if test $ac_prog_rejected = yes; then
1893
# We found a bogon in the path, so make sure we never use it.
1894
set dummy $ac_cv_prog_CC
1896
if test $# != 0; then
1897
# We chose a different compiler from the bogus one.
1898
# However, it has the same basename, so the bogon will be chosen
1899
# first if we set CC to just the basename; use the full file name.
1901
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1907
if test -n "$CC"; then
1908
echo "$as_me:$LINENO: result: $CC" >&5
1909
echo "${ECHO_T}$CC" >&6
1911
echo "$as_me:$LINENO: result: no" >&5
1912
echo "${ECHO_T}no" >&6
1916
if test -z "$CC"; then
1917
if test -n "$ac_tool_prefix"; then
1920
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1921
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1922
echo "$as_me:$LINENO: checking for $ac_word" >&5
1923
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924
if test "${ac_cv_prog_CC+set}" = set; then
1925
echo $ECHO_N "(cached) $ECHO_C" >&6
1927
if test -n "$CC"; then
1928
ac_cv_prog_CC="$CC" # Let the user override the test.
1930
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934
test -z "$as_dir" && as_dir=.
1935
for ac_exec_ext in '' $ac_executable_extensions; do
1936
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1937
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1938
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947
if test -n "$CC"; then
1948
echo "$as_me:$LINENO: result: $CC" >&5
1949
echo "${ECHO_T}$CC" >&6
1951
echo "$as_me:$LINENO: result: no" >&5
1952
echo "${ECHO_T}no" >&6
1955
test -n "$CC" && break
1958
if test -z "$CC"; then
1962
# Extract the first word of "$ac_prog", so it can be a program name with args.
1963
set dummy $ac_prog; ac_word=$2
1964
echo "$as_me:$LINENO: checking for $ac_word" >&5
1965
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1966
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1967
echo $ECHO_N "(cached) $ECHO_C" >&6
1969
if test -n "$ac_ct_CC"; then
1970
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1972
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976
test -z "$as_dir" && as_dir=.
1977
for ac_exec_ext in '' $ac_executable_extensions; do
1978
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1979
ac_cv_prog_ac_ct_CC="$ac_prog"
1980
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1988
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1989
if test -n "$ac_ct_CC"; then
1990
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1991
echo "${ECHO_T}$ac_ct_CC" >&6
1993
echo "$as_me:$LINENO: result: no" >&5
1994
echo "${ECHO_T}no" >&6
1997
test -n "$ac_ct_CC" && break
2006
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2007
See \`config.log' for more details." >&5
2008
echo "$as_me: error: no acceptable C compiler found in \$PATH
2009
See \`config.log' for more details." >&2;}
2010
{ (exit 1); exit 1; }; }
2012
# Provide some information about the compiler.
2013
echo "$as_me:$LINENO:" \
2014
"checking for C compiler version" >&5
2015
ac_compiler=`set X $ac_compile; echo $2`
2016
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2017
(eval $ac_compiler --version </dev/null >&5) 2>&5
2019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020
(exit $ac_status); }
2021
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2022
(eval $ac_compiler -v </dev/null >&5) 2>&5
2024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025
(exit $ac_status); }
2026
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2027
(eval $ac_compiler -V </dev/null >&5) 2>&5
2029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030
(exit $ac_status); }
2032
cat >conftest.$ac_ext <<_ACEOF
2035
cat confdefs.h >>conftest.$ac_ext
2036
cat >>conftest.$ac_ext <<_ACEOF
2037
/* end confdefs.h. */
2047
ac_clean_files_save=$ac_clean_files
2048
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2049
# Try to create an executable without -o first, disregard a.out.
2050
# It will help us diagnose broken compilers, and finding out an intuition
2052
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2053
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2054
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2055
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2056
(eval $ac_link_default) 2>&5
2058
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059
(exit $ac_status); }; then
2060
# Find the output, starting from the most likely. This scheme is
2061
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2064
# Be careful to initialize this variable, since it used to be cached.
2065
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2067
# b.out is created by i960 compilers.
2068
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2070
test -f "$ac_file" || continue
2072
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2075
# This is the source file.
2078
# We found the default executable, but exeext='' is most
2082
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2083
# FIXME: I believe we export ac_cv_exeext for Libtool,
2084
# but it would be cool to find out if it's true. Does anybody
2085
# maintain Libtool? --akim.
2093
echo "$as_me: failed program was:" >&5
2094
sed 's/^/| /' conftest.$ac_ext >&5
2096
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2097
See \`config.log' for more details." >&5
2098
echo "$as_me: error: C compiler cannot create executables
2099
See \`config.log' for more details." >&2;}
2100
{ (exit 77); exit 77; }; }
2103
ac_exeext=$ac_cv_exeext
2104
echo "$as_me:$LINENO: result: $ac_file" >&5
2105
echo "${ECHO_T}$ac_file" >&6
2107
# Check the compiler produces executables we can run. If not, either
2108
# the compiler is broken, or we cross compile.
2109
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2110
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2111
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2112
# If not cross compiling, check that we can run a simple program.
2113
if test "$cross_compiling" != yes; then
2114
if { ac_try='./$ac_file'
2115
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2118
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119
(exit $ac_status); }; }; then
2122
if test "$cross_compiling" = maybe; then
2125
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2126
If you meant to cross compile, use \`--host'.
2127
See \`config.log' for more details." >&5
2128
echo "$as_me: error: cannot run C compiled programs.
2129
If you meant to cross compile, use \`--host'.
2130
See \`config.log' for more details." >&2;}
2131
{ (exit 1); exit 1; }; }
2135
echo "$as_me:$LINENO: result: yes" >&5
2136
echo "${ECHO_T}yes" >&6
2138
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2139
ac_clean_files=$ac_clean_files_save
2140
# Check the compiler produces executables we can run. If not, either
2141
# the compiler is broken, or we cross compile.
2142
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2143
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2144
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2145
echo "${ECHO_T}$cross_compiling" >&6
2147
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2148
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2149
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2150
(eval $ac_link) 2>&5
2152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153
(exit $ac_status); }; then
2154
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2155
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2156
# work properly (i.e., refer to `conftest.exe'), while it won't with
2158
for ac_file in conftest.exe conftest conftest.*; do
2159
test -f "$ac_file" || continue
2161
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2162
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2169
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2170
See \`config.log' for more details." >&5
2171
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2172
See \`config.log' for more details." >&2;}
2173
{ (exit 1); exit 1; }; }
2176
rm -f conftest$ac_cv_exeext
2177
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2178
echo "${ECHO_T}$ac_cv_exeext" >&6
2180
rm -f conftest.$ac_ext
2181
EXEEXT=$ac_cv_exeext
2183
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2184
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2185
if test "${ac_cv_objext+set}" = set; then
2186
echo $ECHO_N "(cached) $ECHO_C" >&6
2188
cat >conftest.$ac_ext <<_ACEOF
2191
cat confdefs.h >>conftest.$ac_ext
2192
cat >>conftest.$ac_ext <<_ACEOF
2193
/* end confdefs.h. */
2203
rm -f conftest.o conftest.obj
2204
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2205
(eval $ac_compile) 2>&5
2207
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208
(exit $ac_status); }; then
2209
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2211
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2212
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2217
echo "$as_me: failed program was:" >&5
2218
sed 's/^/| /' conftest.$ac_ext >&5
2220
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2221
See \`config.log' for more details." >&5
2222
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2223
See \`config.log' for more details." >&2;}
2224
{ (exit 1); exit 1; }; }
2227
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2229
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2230
echo "${ECHO_T}$ac_cv_objext" >&6
2231
OBJEXT=$ac_cv_objext
2233
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2234
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2235
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2236
echo $ECHO_N "(cached) $ECHO_C" >&6
2238
cat >conftest.$ac_ext <<_ACEOF
2241
cat confdefs.h >>conftest.$ac_ext
2242
cat >>conftest.$ac_ext <<_ACEOF
2243
/* end confdefs.h. */
2256
rm -f conftest.$ac_objext
2257
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2258
(eval $ac_compile) 2>conftest.er1
2260
grep -v '^ *+' conftest.er1 >conftest.err
2262
cat conftest.err >&5
2263
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264
(exit $ac_status); } &&
2265
{ ac_try='test -z "$ac_c_werror_flag"
2266
|| test ! -s conftest.err'
2267
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271
(exit $ac_status); }; } &&
2272
{ ac_try='test -s conftest.$ac_objext'
2273
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277
(exit $ac_status); }; }; then
2280
echo "$as_me: failed program was:" >&5
2281
sed 's/^/| /' conftest.$ac_ext >&5
2285
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2286
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2289
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2290
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2291
GCC=`test $ac_compiler_gnu = yes && echo yes`
2292
ac_test_CFLAGS=${CFLAGS+set}
2293
ac_save_CFLAGS=$CFLAGS
2295
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2296
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2297
if test "${ac_cv_prog_cc_g+set}" = set; then
2298
echo $ECHO_N "(cached) $ECHO_C" >&6
2300
cat >conftest.$ac_ext <<_ACEOF
2303
cat confdefs.h >>conftest.$ac_ext
2304
cat >>conftest.$ac_ext <<_ACEOF
2305
/* end confdefs.h. */
2315
rm -f conftest.$ac_objext
2316
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317
(eval $ac_compile) 2>conftest.er1
2319
grep -v '^ *+' conftest.er1 >conftest.err
2321
cat conftest.err >&5
2322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323
(exit $ac_status); } &&
2324
{ ac_try='test -z "$ac_c_werror_flag"
2325
|| test ! -s conftest.err'
2326
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330
(exit $ac_status); }; } &&
2331
{ ac_try='test -s conftest.$ac_objext'
2332
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336
(exit $ac_status); }; }; then
2339
echo "$as_me: failed program was:" >&5
2340
sed 's/^/| /' conftest.$ac_ext >&5
2344
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2346
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2347
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2348
if test "$ac_test_CFLAGS" = set; then
2349
CFLAGS=$ac_save_CFLAGS
2350
elif test $ac_cv_prog_cc_g = yes; then
2351
if test "$GCC" = yes; then
2357
if test "$GCC" = yes; then
2363
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2364
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2365
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2366
echo $ECHO_N "(cached) $ECHO_C" >&6
2368
ac_cv_prog_cc_stdc=no
2370
cat >conftest.$ac_ext <<_ACEOF
2373
cat confdefs.h >>conftest.$ac_ext
2374
cat >>conftest.$ac_ext <<_ACEOF
2375
/* end confdefs.h. */
2378
#include <sys/types.h>
2379
#include <sys/stat.h>
2380
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2381
struct buf { int x; };
2382
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2383
static char *e (p, i)
2389
static char *f (char * (*g) (char **, int), char **p, ...)
2394
s = g (p, va_arg (v,int));
2399
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2400
function prototypes and stuff, but not '\xHH' hex character constants.
2401
These don't provoke an error unfortunately, instead are silently treated
2402
as 'x'. The following induces an error, until -std1 is added to get
2403
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2404
array size at least. It's necessary to write '\x00'==0 to get something
2405
that's true only with -std1. */
2406
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2408
int test (int i, double x);
2409
struct s1 {int (*f) (int a);};
2410
struct s2 {int (*f) (double a);};
2411
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2417
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2422
# Don't try gcc -ansi; that turns off useful extensions and
2423
# breaks some systems' header files.
2424
# AIX -qlanglvl=ansi
2425
# Ultrix and OSF/1 -std1
2426
# HP-UX 10.20 and later -Ae
2427
# HP-UX older versions -Aa -D_HPUX_SOURCE
2428
# SVR4 -Xc -D__EXTENSIONS__
2429
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2431
CC="$ac_save_CC $ac_arg"
2432
rm -f conftest.$ac_objext
2433
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434
(eval $ac_compile) 2>conftest.er1
2436
grep -v '^ *+' conftest.er1 >conftest.err
2438
cat conftest.err >&5
2439
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440
(exit $ac_status); } &&
2441
{ ac_try='test -z "$ac_c_werror_flag"
2442
|| test ! -s conftest.err'
2443
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447
(exit $ac_status); }; } &&
2448
{ ac_try='test -s conftest.$ac_objext'
2449
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453
(exit $ac_status); }; }; then
2454
ac_cv_prog_cc_stdc=$ac_arg
2457
echo "$as_me: failed program was:" >&5
2458
sed 's/^/| /' conftest.$ac_ext >&5
2461
rm -f conftest.err conftest.$ac_objext
2463
rm -f conftest.$ac_ext conftest.$ac_objext
2468
case "x$ac_cv_prog_cc_stdc" in
2470
echo "$as_me:$LINENO: result: none needed" >&5
2471
echo "${ECHO_T}none needed" >&6 ;;
2473
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2474
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2475
CC="$CC $ac_cv_prog_cc_stdc" ;;
2478
# Some people use a C++ compiler to compile C. Since we use `exit',
2479
# in C++ we need to declare it. In case someone uses the same compiler
2480
# for both compiling C and C++ we need to have the C++ compiler decide
2481
# the declaration of exit, since it's the most demanding environment.
2482
cat >conftest.$ac_ext <<_ACEOF
2487
rm -f conftest.$ac_objext
2488
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2489
(eval $ac_compile) 2>conftest.er1
2491
grep -v '^ *+' conftest.er1 >conftest.err
2493
cat conftest.err >&5
2494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495
(exit $ac_status); } &&
2496
{ ac_try='test -z "$ac_c_werror_flag"
2497
|| test ! -s conftest.err'
2498
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502
(exit $ac_status); }; } &&
2503
{ ac_try='test -s conftest.$ac_objext'
2504
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508
(exit $ac_status); }; }; then
2509
for ac_declaration in \
2511
'extern "C" void std::exit (int) throw (); using std::exit;' \
2512
'extern "C" void std::exit (int); using std::exit;' \
2513
'extern "C" void exit (int) throw ();' \
2514
'extern "C" void exit (int);' \
2517
cat >conftest.$ac_ext <<_ACEOF
2520
cat confdefs.h >>conftest.$ac_ext
2521
cat >>conftest.$ac_ext <<_ACEOF
2522
/* end confdefs.h. */
2533
rm -f conftest.$ac_objext
2534
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2535
(eval $ac_compile) 2>conftest.er1
2537
grep -v '^ *+' conftest.er1 >conftest.err
2539
cat conftest.err >&5
2540
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541
(exit $ac_status); } &&
2542
{ ac_try='test -z "$ac_c_werror_flag"
2543
|| test ! -s conftest.err'
2544
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548
(exit $ac_status); }; } &&
2549
{ ac_try='test -s conftest.$ac_objext'
2550
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554
(exit $ac_status); }; }; then
2557
echo "$as_me: failed program was:" >&5
2558
sed 's/^/| /' conftest.$ac_ext >&5
2562
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2563
cat >conftest.$ac_ext <<_ACEOF
2566
cat confdefs.h >>conftest.$ac_ext
2567
cat >>conftest.$ac_ext <<_ACEOF
2568
/* end confdefs.h. */
2578
rm -f conftest.$ac_objext
2579
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580
(eval $ac_compile) 2>conftest.er1
2582
grep -v '^ *+' conftest.er1 >conftest.err
2584
cat conftest.err >&5
2585
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586
(exit $ac_status); } &&
2587
{ ac_try='test -z "$ac_c_werror_flag"
2588
|| test ! -s conftest.err'
2589
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593
(exit $ac_status); }; } &&
2594
{ ac_try='test -s conftest.$ac_objext'
2595
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599
(exit $ac_status); }; }; then
2602
echo "$as_me: failed program was:" >&5
2603
sed 's/^/| /' conftest.$ac_ext >&5
2606
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2609
if test -n "$ac_declaration"; then
2610
echo '#ifdef __cplusplus' >>confdefs.h
2611
echo $ac_declaration >>confdefs.h
2612
echo '#endif' >>confdefs.h
2616
echo "$as_me: failed program was:" >&5
2617
sed 's/^/| /' conftest.$ac_ext >&5
2620
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2622
ac_cpp='$CPP $CPPFLAGS'
2623
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2624
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2625
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2627
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2628
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2629
if test "${lt_cv_path_SED+set}" = set; then
2630
echo $ECHO_N "(cached) $ECHO_C" >&6
2632
# Loop through the user's path and test for sed and gsed.
2633
# Then use that list of sed's as ones to test for truncation.
2634
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638
test -z "$as_dir" && as_dir=.
2639
for lt_ac_prog in sed gsed; do
2640
for ac_exec_ext in '' $ac_executable_extensions; do
2641
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2642
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2649
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
2650
# along with /bin/sed that truncates output.
2651
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2652
test ! -f $lt_ac_sed && continue
2653
cat /dev/null > conftest.in
2655
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2656
# Check for GNU sed and select it if it is found.
2657
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2658
lt_cv_path_SED=$lt_ac_sed
2662
cat conftest.in conftest.in >conftest.tmp
2663
mv conftest.tmp conftest.in
2664
cp conftest.in conftest.nl
2666
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2667
cmp -s conftest.out conftest.nl || break
2668
# 10000 chars as input seems more than enough
2669
test $lt_ac_count -gt 10 && break
2670
lt_ac_count=`expr $lt_ac_count + 1`
2671
if test $lt_ac_count -gt $lt_ac_max; then
2672
lt_ac_max=$lt_ac_count
2673
lt_cv_path_SED=$lt_ac_sed
2681
echo "$as_me:$LINENO: result: $SED" >&5
2682
echo "${ECHO_T}$SED" >&6
2684
echo "$as_me:$LINENO: checking for egrep" >&5
2685
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2686
if test "${ac_cv_prog_egrep+set}" = set; then
2687
echo $ECHO_N "(cached) $ECHO_C" >&6
2689
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2690
then ac_cv_prog_egrep='grep -E'
2691
else ac_cv_prog_egrep='egrep'
2694
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2695
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2696
EGREP=$ac_cv_prog_egrep
2700
# Check whether --with-gnu-ld or --without-gnu-ld was given.
2701
if test "${with_gnu_ld+set}" = set; then
2702
withval="$with_gnu_ld"
2703
test "$withval" = no || with_gnu_ld=yes
2708
if test "$GCC" = yes; then
2709
# Check if gcc -print-prog-name=ld gives a path.
2710
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2711
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2714
# gcc leaves a trailing carriage return which upsets mingw
2715
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2717
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2720
# Accept absolute paths.
2722
re_direlt='/[^/][^/]*/\.\./'
2723
# Canonicalize the pathname of ld
2724
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2725
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2726
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2728
test -z "$LD" && LD="$ac_prog"
2731
# If it fails, then pretend we aren't using GCC.
2735
# If it is relative, then search for the first ld in PATH.
2739
elif test "$with_gnu_ld" = yes; then
2740
echo "$as_me:$LINENO: checking for GNU ld" >&5
2741
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2743
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2744
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2746
if test "${lt_cv_path_LD+set}" = set; then
2747
echo $ECHO_N "(cached) $ECHO_C" >&6
2749
if test -z "$LD"; then
2750
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2751
for ac_dir in $PATH; do
2753
test -z "$ac_dir" && ac_dir=.
2754
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2755
lt_cv_path_LD="$ac_dir/$ac_prog"
2756
# Check to see if the program is GNU ld. I'd rather use --version,
2757
# but apparently some variants of GNU ld only accept -v.
2758
# Break only if it was the GNU/non-GNU ld that we prefer.
2759
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2760
*GNU* | *'with BFD'*)
2761
test "$with_gnu_ld" != no && break
2764
test "$with_gnu_ld" != yes && break
2771
lt_cv_path_LD="$LD" # Let the user override the test with a path.
2776
if test -n "$LD"; then
2777
echo "$as_me:$LINENO: result: $LD" >&5
2778
echo "${ECHO_T}$LD" >&6
2780
echo "$as_me:$LINENO: result: no" >&5
2781
echo "${ECHO_T}no" >&6
2783
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2784
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2785
{ (exit 1); exit 1; }; }
2786
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2787
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2788
if test "${lt_cv_prog_gnu_ld+set}" = set; then
2789
echo $ECHO_N "(cached) $ECHO_C" >&6
2791
# I'd rather use --version here, but apparently some GNU lds only accept -v.
2792
case `$LD -v 2>&1 </dev/null` in
2793
*GNU* | *'with BFD'*)
2794
lt_cv_prog_gnu_ld=yes
2797
lt_cv_prog_gnu_ld=no
2801
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2802
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2803
with_gnu_ld=$lt_cv_prog_gnu_ld
2806
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2807
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2808
if test "${lt_cv_ld_reload_flag+set}" = set; then
2809
echo $ECHO_N "(cached) $ECHO_C" >&6
2811
lt_cv_ld_reload_flag='-r'
2813
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2814
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2815
reload_flag=$lt_cv_ld_reload_flag
2816
case $reload_flag in
2818
*) reload_flag=" $reload_flag" ;;
2820
reload_cmds='$LD$reload_flag -o $output$reload_objs'
2823
if test "$GCC" = yes; then
2824
reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
2826
reload_cmds='$LD$reload_flag -o $output$reload_objs'
2831
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2832
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2833
if test "${lt_cv_path_NM+set}" = set; then
2834
echo $ECHO_N "(cached) $ECHO_C" >&6
2836
if test -n "$NM"; then
2837
# Let the user override the test.
2840
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2841
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2843
test -z "$ac_dir" && ac_dir=.
2844
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2845
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2846
# Check to see if the nm accepts a BSD-compat flag.
2847
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
2848
# nm: unknown option "B" ignored
2849
# Tru64's nm complains that /dev/null is an invalid object file
2850
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2851
*/dev/null* | *'Invalid file or object type'*)
2852
lt_cv_path_NM="$tmp_nm -B"
2856
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2858
lt_cv_path_NM="$tmp_nm -p"
2862
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2863
continue # so that we can try to find one that supports BSD flags
2870
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2873
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2874
echo "${ECHO_T}$lt_cv_path_NM" >&6
2877
echo "$as_me:$LINENO: checking whether ln -s works" >&5
2878
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2880
if test "$LN_S" = "ln -s"; then
2881
echo "$as_me:$LINENO: result: yes" >&5
2882
echo "${ECHO_T}yes" >&6
2884
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2885
echo "${ECHO_T}no, using $LN_S" >&6
2888
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2889
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
2890
if test "${lt_cv_deplibs_check_method+set}" = set; then
2891
echo $ECHO_N "(cached) $ECHO_C" >&6
2893
lt_cv_file_magic_cmd='$MAGIC_CMD'
2894
lt_cv_file_magic_test_file=
2895
lt_cv_deplibs_check_method='unknown'
2896
# Need to set the preceding variable on all platforms that support
2897
# interlibrary dependencies.
2898
# 'none' -- dependencies not supported.
2899
# `unknown' -- same as none, but documents that we really don't know.
2900
# 'pass_all' -- all dependencies passed with no checks.
2901
# 'test_compile' -- check by making test program.
2902
# 'file_magic [[regex]]' -- check by looking for files in library path
2903
# which responds to the $file_magic_cmd with a given extended regex.
2904
# If you have `file' or equivalent on your system and you're not sure
2905
# whether `pass_all' will *always* work, you probably want this one.
2909
lt_cv_deplibs_check_method=pass_all
2913
lt_cv_deplibs_check_method=pass_all
2917
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2918
lt_cv_file_magic_cmd='/usr/bin/file -L'
2919
lt_cv_file_magic_test_file=/shlib/libc.so
2923
# func_win32_libid is a shell function defined in ltmain.sh
2924
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2925
lt_cv_file_magic_cmd='func_win32_libid'
2929
# Base MSYS/MinGW do not provide the 'file' command needed by
2930
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
2931
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2932
lt_cv_file_magic_cmd='$OBJDUMP -f'
2935
darwin* | rhapsody*)
2936
lt_cv_deplibs_check_method=pass_all
2939
freebsd* | kfreebsd*-gnu | dragonfly*)
2940
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2943
# Not sure whether the presence of OpenBSD here was a mistake.
2944
# Let's accept both of them until this is cleared up.
2945
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
2946
lt_cv_file_magic_cmd=/usr/bin/file
2947
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2951
lt_cv_deplibs_check_method=pass_all
2956
lt_cv_deplibs_check_method=pass_all
2959
hpux10.20* | hpux11*)
2960
lt_cv_file_magic_cmd=/usr/bin/file
2963
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2964
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2967
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]'
2968
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2971
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2972
lt_cv_file_magic_test_file=/usr/lib/libc.sl
2977
irix5* | irix6* | nonstopux*)
2979
*-32|*"-32 ") libmagic=32-bit;;
2980
*-n32|*"-n32 ") libmagic=N32;;
2981
*-64|*"-64 ") libmagic=64-bit;;
2982
*) libmagic=never-match;;
2984
lt_cv_deplibs_check_method=pass_all
2987
# This must be Linux ELF.
2989
lt_cv_deplibs_check_method=pass_all
2993
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2994
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
2996
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3001
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3002
lt_cv_file_magic_cmd=/usr/bin/file
3003
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3007
lt_cv_deplibs_check_method=unknown
3011
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3012
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3014
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3018
osf3* | osf4* | osf5*)
3019
lt_cv_deplibs_check_method=pass_all
3023
lt_cv_deplibs_check_method=pass_all
3027
lt_cv_deplibs_check_method=pass_all
3030
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3031
case $host_vendor in
3033
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]'
3034
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3037
lt_cv_deplibs_check_method=pass_all
3040
lt_cv_file_magic_cmd='/bin/file'
3041
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3044
lt_cv_file_magic_cmd='/bin/file'
3045
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3046
lt_cv_file_magic_test_file=/lib/libc.so
3049
lt_cv_deplibs_check_method=pass_all
3054
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3055
lt_cv_deplibs_check_method=pass_all
3060
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3061
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3062
file_magic_cmd=$lt_cv_file_magic_cmd
3063
deplibs_check_method=$lt_cv_deplibs_check_method
3064
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3069
# If no C compiler was specified, use CC.
3072
# Allow CC to be a program name with arguments.
3076
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3077
if test "${enable_libtool_lock+set}" = set; then
3078
enableval="$enable_libtool_lock"
3081
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3083
# Some flags need to be propagated to the compiler or linker for good
3087
# Find out which ABI we are using.
3088
echo 'int i;' > conftest.$ac_ext
3089
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090
(eval $ac_compile) 2>&5
3092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093
(exit $ac_status); }; then
3094
case `/usr/bin/file conftest.$ac_objext` in
3106
# Find out which ABI we are using.
3107
echo '#line 3107 "configure"' > conftest.$ac_ext
3108
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3109
(eval $ac_compile) 2>&5
3111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112
(exit $ac_status); }; then
3113
if test "$lt_cv_prog_gnu_ld" = yes; then
3114
case `/usr/bin/file conftest.$ac_objext` in
3116
LD="${LD-ld} -melf32bsmip"
3119
LD="${LD-ld} -melf32bmipn32"
3122
LD="${LD-ld} -melf64bmip"
3126
case `/usr/bin/file conftest.$ac_objext` in
3142
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3143
# Find out which ABI we are using.
3144
echo 'int i;' > conftest.$ac_ext
3145
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3146
(eval $ac_compile) 2>&5
3148
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149
(exit $ac_status); }; then
3150
case `/usr/bin/file conftest.o` in
3154
LD="${LD-ld} -m elf_i386"
3156
ppc64-*linux*|powerpc64-*linux*)
3157
LD="${LD-ld} -m elf32ppclinux"
3160
LD="${LD-ld} -m elf_s390"
3163
LD="${LD-ld} -m elf32_sparc"
3170
LD="${LD-ld} -m elf_x86_64"
3172
ppc*-*linux*|powerpc*-*linux*)
3173
LD="${LD-ld} -m elf64ppc"
3176
LD="${LD-ld} -m elf64_s390"
3179
LD="${LD-ld} -m elf64_sparc"
3189
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
3190
SAVE_CFLAGS="$CFLAGS"
3191
CFLAGS="$CFLAGS -belf"
3192
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3193
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3194
if test "${lt_cv_cc_needs_belf+set}" = set; then
3195
echo $ECHO_N "(cached) $ECHO_C" >&6
3198
ac_cpp='$CPP $CPPFLAGS'
3199
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3203
cat >conftest.$ac_ext <<_ACEOF
3206
cat confdefs.h >>conftest.$ac_ext
3207
cat >>conftest.$ac_ext <<_ACEOF
3208
/* end confdefs.h. */
3218
rm -f conftest.$ac_objext conftest$ac_exeext
3219
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3220
(eval $ac_link) 2>conftest.er1
3222
grep -v '^ *+' conftest.er1 >conftest.err
3224
cat conftest.err >&5
3225
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226
(exit $ac_status); } &&
3227
{ ac_try='test -z "$ac_c_werror_flag"
3228
|| test ! -s conftest.err'
3229
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233
(exit $ac_status); }; } &&
3234
{ ac_try='test -s conftest$ac_exeext'
3235
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239
(exit $ac_status); }; }; then
3240
lt_cv_cc_needs_belf=yes
3242
echo "$as_me: failed program was:" >&5
3243
sed 's/^/| /' conftest.$ac_ext >&5
3245
lt_cv_cc_needs_belf=no
3247
rm -f conftest.err conftest.$ac_objext \
3248
conftest$ac_exeext conftest.$ac_ext
3250
ac_cpp='$CPP $CPPFLAGS'
3251
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3252
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3253
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3256
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3257
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3258
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3259
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3260
CFLAGS="$SAVE_CFLAGS"
3263
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
3264
if test -n "$ac_tool_prefix"; then
3265
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3266
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3267
echo "$as_me:$LINENO: checking for $ac_word" >&5
3268
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3269
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3270
echo $ECHO_N "(cached) $ECHO_C" >&6
3272
if test -n "$DLLTOOL"; then
3273
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3275
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279
test -z "$as_dir" && as_dir=.
3280
for ac_exec_ext in '' $ac_executable_extensions; do
3281
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3282
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3283
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3291
DLLTOOL=$ac_cv_prog_DLLTOOL
3292
if test -n "$DLLTOOL"; then
3293
echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3294
echo "${ECHO_T}$DLLTOOL" >&6
3296
echo "$as_me:$LINENO: result: no" >&5
3297
echo "${ECHO_T}no" >&6
3301
if test -z "$ac_cv_prog_DLLTOOL"; then
3302
ac_ct_DLLTOOL=$DLLTOOL
3303
# Extract the first word of "dlltool", so it can be a program name with args.
3304
set dummy dlltool; ac_word=$2
3305
echo "$as_me:$LINENO: checking for $ac_word" >&5
3306
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3307
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3308
echo $ECHO_N "(cached) $ECHO_C" >&6
3310
if test -n "$ac_ct_DLLTOOL"; then
3311
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3313
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317
test -z "$as_dir" && as_dir=.
3318
for ac_exec_ext in '' $ac_executable_extensions; do
3319
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3321
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3327
test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3330
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3331
if test -n "$ac_ct_DLLTOOL"; then
3332
echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3333
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3335
echo "$as_me:$LINENO: result: no" >&5
3336
echo "${ECHO_T}no" >&6
3339
DLLTOOL=$ac_ct_DLLTOOL
3341
DLLTOOL="$ac_cv_prog_DLLTOOL"
3344
if test -n "$ac_tool_prefix"; then
3345
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3346
set dummy ${ac_tool_prefix}as; ac_word=$2
3347
echo "$as_me:$LINENO: checking for $ac_word" >&5
3348
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3349
if test "${ac_cv_prog_AS+set}" = set; then
3350
echo $ECHO_N "(cached) $ECHO_C" >&6
3352
if test -n "$AS"; then
3353
ac_cv_prog_AS="$AS" # Let the user override the test.
3355
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359
test -z "$as_dir" && as_dir=.
3360
for ac_exec_ext in '' $ac_executable_extensions; do
3361
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3362
ac_cv_prog_AS="${ac_tool_prefix}as"
3363
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3372
if test -n "$AS"; then
3373
echo "$as_me:$LINENO: result: $AS" >&5
3374
echo "${ECHO_T}$AS" >&6
3376
echo "$as_me:$LINENO: result: no" >&5
3377
echo "${ECHO_T}no" >&6
3381
if test -z "$ac_cv_prog_AS"; then
3383
# Extract the first word of "as", so it can be a program name with args.
3384
set dummy as; ac_word=$2
3385
echo "$as_me:$LINENO: checking for $ac_word" >&5
3386
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3387
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3388
echo $ECHO_N "(cached) $ECHO_C" >&6
3390
if test -n "$ac_ct_AS"; then
3391
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3393
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397
test -z "$as_dir" && as_dir=.
3398
for ac_exec_ext in '' $ac_executable_extensions; do
3399
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3400
ac_cv_prog_ac_ct_AS="as"
3401
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3407
test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
3410
ac_ct_AS=$ac_cv_prog_ac_ct_AS
3411
if test -n "$ac_ct_AS"; then
3412
echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3413
echo "${ECHO_T}$ac_ct_AS" >&6
3415
echo "$as_me:$LINENO: result: no" >&5
3416
echo "${ECHO_T}no" >&6
3424
if test -n "$ac_tool_prefix"; then
3425
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3426
set dummy ${ac_tool_prefix}objdump; ac_word=$2
3427
echo "$as_me:$LINENO: checking for $ac_word" >&5
3428
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3429
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3430
echo $ECHO_N "(cached) $ECHO_C" >&6
3432
if test -n "$OBJDUMP"; then
3433
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3435
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439
test -z "$as_dir" && as_dir=.
3440
for ac_exec_ext in '' $ac_executable_extensions; do
3441
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3442
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3443
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3451
OBJDUMP=$ac_cv_prog_OBJDUMP
3452
if test -n "$OBJDUMP"; then
3453
echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3454
echo "${ECHO_T}$OBJDUMP" >&6
3456
echo "$as_me:$LINENO: result: no" >&5
3457
echo "${ECHO_T}no" >&6
3461
if test -z "$ac_cv_prog_OBJDUMP"; then
3462
ac_ct_OBJDUMP=$OBJDUMP
3463
# Extract the first word of "objdump", so it can be a program name with args.
3464
set dummy objdump; ac_word=$2
3465
echo "$as_me:$LINENO: checking for $ac_word" >&5
3466
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3467
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3468
echo $ECHO_N "(cached) $ECHO_C" >&6
3470
if test -n "$ac_ct_OBJDUMP"; then
3471
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3473
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477
test -z "$as_dir" && as_dir=.
3478
for ac_exec_ext in '' $ac_executable_extensions; do
3479
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480
ac_cv_prog_ac_ct_OBJDUMP="objdump"
3481
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3487
test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
3490
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3491
if test -n "$ac_ct_OBJDUMP"; then
3492
echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
3493
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
3495
echo "$as_me:$LINENO: result: no" >&5
3496
echo "${ECHO_T}no" >&6
3499
OBJDUMP=$ac_ct_OBJDUMP
3501
OBJDUMP="$ac_cv_prog_OBJDUMP"
3508
need_locks="$enable_libtool_lock"
3512
ac_cpp='$CPP $CPPFLAGS'
3513
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3514
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3515
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3516
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3517
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3518
# On Suns, sometimes $CPP names a directory.
3519
if test -n "$CPP" && test -d "$CPP"; then
3522
if test -z "$CPP"; then
3523
if test "${ac_cv_prog_CPP+set}" = set; then
3524
echo $ECHO_N "(cached) $ECHO_C" >&6
3526
# Double quotes because CPP needs to be expanded
3527
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3530
for ac_c_preproc_warn_flag in '' yes
3532
# Use a header file that comes with gcc, so configuring glibc
3533
# with a fresh cross-compiler works.
3534
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3535
# <limits.h> exists even on freestanding compilers.
3536
# On the NeXT, cc -E runs the code through the compiler's parser,
3537
# not just through cpp. "Syntax error" is here to catch this case.
3538
cat >conftest.$ac_ext <<_ACEOF
3541
cat confdefs.h >>conftest.$ac_ext
3542
cat >>conftest.$ac_ext <<_ACEOF
3543
/* end confdefs.h. */
3545
# include <limits.h>
3547
# include <assert.h>
3551
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3552
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3554
grep -v '^ *+' conftest.er1 >conftest.err
3556
cat conftest.err >&5
3557
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558
(exit $ac_status); } >/dev/null; then
3559
if test -s conftest.err; then
3560
ac_cpp_err=$ac_c_preproc_warn_flag
3561
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3568
if test -z "$ac_cpp_err"; then
3571
echo "$as_me: failed program was:" >&5
3572
sed 's/^/| /' conftest.$ac_ext >&5
3574
# Broken: fails on valid input.
3577
rm -f conftest.err conftest.$ac_ext
3579
# OK, works on sane cases. Now check whether non-existent headers
3580
# can be detected and how.
3581
cat >conftest.$ac_ext <<_ACEOF
3584
cat confdefs.h >>conftest.$ac_ext
3585
cat >>conftest.$ac_ext <<_ACEOF
3586
/* end confdefs.h. */
3587
#include <ac_nonexistent.h>
3589
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3590
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3592
grep -v '^ *+' conftest.er1 >conftest.err
3594
cat conftest.err >&5
3595
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596
(exit $ac_status); } >/dev/null; then
3597
if test -s conftest.err; then
3598
ac_cpp_err=$ac_c_preproc_warn_flag
3599
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3606
if test -z "$ac_cpp_err"; then
3607
# Broken: success on invalid input.
3610
echo "$as_me: failed program was:" >&5
3611
sed 's/^/| /' conftest.$ac_ext >&5
3613
# Passes both tests.
3617
rm -f conftest.err conftest.$ac_ext
3620
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3621
rm -f conftest.err conftest.$ac_ext
3622
if $ac_preproc_ok; then
3634
echo "$as_me:$LINENO: result: $CPP" >&5
3635
echo "${ECHO_T}$CPP" >&6
3637
for ac_c_preproc_warn_flag in '' yes
3639
# Use a header file that comes with gcc, so configuring glibc
3640
# with a fresh cross-compiler works.
3641
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3642
# <limits.h> exists even on freestanding compilers.
3643
# On the NeXT, cc -E runs the code through the compiler's parser,
3644
# not just through cpp. "Syntax error" is here to catch this case.
3645
cat >conftest.$ac_ext <<_ACEOF
3648
cat confdefs.h >>conftest.$ac_ext
3649
cat >>conftest.$ac_ext <<_ACEOF
3650
/* end confdefs.h. */
3652
# include <limits.h>
3654
# include <assert.h>
3658
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3659
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3661
grep -v '^ *+' conftest.er1 >conftest.err
3663
cat conftest.err >&5
3664
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665
(exit $ac_status); } >/dev/null; then
3666
if test -s conftest.err; then
3667
ac_cpp_err=$ac_c_preproc_warn_flag
3668
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3675
if test -z "$ac_cpp_err"; then
3678
echo "$as_me: failed program was:" >&5
3679
sed 's/^/| /' conftest.$ac_ext >&5
3681
# Broken: fails on valid input.
3684
rm -f conftest.err conftest.$ac_ext
3686
# OK, works on sane cases. Now check whether non-existent headers
3687
# can be detected and how.
3688
cat >conftest.$ac_ext <<_ACEOF
3691
cat confdefs.h >>conftest.$ac_ext
3692
cat >>conftest.$ac_ext <<_ACEOF
3693
/* end confdefs.h. */
3694
#include <ac_nonexistent.h>
3696
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3697
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3699
grep -v '^ *+' conftest.er1 >conftest.err
3701
cat conftest.err >&5
3702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703
(exit $ac_status); } >/dev/null; then
3704
if test -s conftest.err; then
3705
ac_cpp_err=$ac_c_preproc_warn_flag
3706
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3713
if test -z "$ac_cpp_err"; then
3714
# Broken: success on invalid input.
3717
echo "$as_me: failed program was:" >&5
3718
sed 's/^/| /' conftest.$ac_ext >&5
3720
# Passes both tests.
3724
rm -f conftest.err conftest.$ac_ext
3727
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3728
rm -f conftest.err conftest.$ac_ext
3729
if $ac_preproc_ok; then
3732
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3733
See \`config.log' for more details." >&5
3734
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3735
See \`config.log' for more details." >&2;}
3736
{ (exit 1); exit 1; }; }
3740
ac_cpp='$CPP $CPPFLAGS'
3741
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3747
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3748
if test "${ac_cv_header_stdc+set}" = set; then
3749
echo $ECHO_N "(cached) $ECHO_C" >&6
3751
cat >conftest.$ac_ext <<_ACEOF
3754
cat confdefs.h >>conftest.$ac_ext
3755
cat >>conftest.$ac_ext <<_ACEOF
3756
/* end confdefs.h. */
3770
rm -f conftest.$ac_objext
3771
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3772
(eval $ac_compile) 2>conftest.er1
3774
grep -v '^ *+' conftest.er1 >conftest.err
3776
cat conftest.err >&5
3777
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778
(exit $ac_status); } &&
3779
{ ac_try='test -z "$ac_c_werror_flag"
3780
|| test ! -s conftest.err'
3781
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785
(exit $ac_status); }; } &&
3786
{ ac_try='test -s conftest.$ac_objext'
3787
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791
(exit $ac_status); }; }; then
3792
ac_cv_header_stdc=yes
3794
echo "$as_me: failed program was:" >&5
3795
sed 's/^/| /' conftest.$ac_ext >&5
3797
ac_cv_header_stdc=no
3799
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3801
if test $ac_cv_header_stdc = yes; then
3802
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3803
cat >conftest.$ac_ext <<_ACEOF
3806
cat confdefs.h >>conftest.$ac_ext
3807
cat >>conftest.$ac_ext <<_ACEOF
3808
/* end confdefs.h. */
3812
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3813
$EGREP "memchr" >/dev/null 2>&1; then
3816
ac_cv_header_stdc=no
3822
if test $ac_cv_header_stdc = yes; then
3823
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3824
cat >conftest.$ac_ext <<_ACEOF
3827
cat confdefs.h >>conftest.$ac_ext
3828
cat >>conftest.$ac_ext <<_ACEOF
3829
/* end confdefs.h. */
3833
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3834
$EGREP "free" >/dev/null 2>&1; then
3837
ac_cv_header_stdc=no
3843
if test $ac_cv_header_stdc = yes; then
3844
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3845
if test "$cross_compiling" = yes; then
3848
cat >conftest.$ac_ext <<_ACEOF
3851
cat confdefs.h >>conftest.$ac_ext
3852
cat >>conftest.$ac_ext <<_ACEOF
3853
/* end confdefs.h. */
3855
#if ((' ' & 0x0FF) == 0x020)
3856
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3857
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3859
# define ISLOWER(c) \
3860
(('a' <= (c) && (c) <= 'i') \
3861
|| ('j' <= (c) && (c) <= 'r') \
3862
|| ('s' <= (c) && (c) <= 'z'))
3863
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3866
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3871
for (i = 0; i < 256; i++)
3872
if (XOR (islower (i), ISLOWER (i))
3873
|| toupper (i) != TOUPPER (i))
3878
rm -f conftest$ac_exeext
3879
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3880
(eval $ac_link) 2>&5
3882
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3884
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3887
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888
(exit $ac_status); }; }; then
3891
echo "$as_me: program exited with status $ac_status" >&5
3892
echo "$as_me: failed program was:" >&5
3893
sed 's/^/| /' conftest.$ac_ext >&5
3896
ac_cv_header_stdc=no
3898
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3902
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3903
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3904
if test $ac_cv_header_stdc = yes; then
3906
cat >>confdefs.h <<\_ACEOF
3907
#define STDC_HEADERS 1
3912
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3922
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3923
inttypes.h stdint.h unistd.h
3925
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3926
echo "$as_me:$LINENO: checking for $ac_header" >&5
3927
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3928
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3929
echo $ECHO_N "(cached) $ECHO_C" >&6
3931
cat >conftest.$ac_ext <<_ACEOF
3934
cat confdefs.h >>conftest.$ac_ext
3935
cat >>conftest.$ac_ext <<_ACEOF
3936
/* end confdefs.h. */
3937
$ac_includes_default
3939
#include <$ac_header>
3941
rm -f conftest.$ac_objext
3942
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3943
(eval $ac_compile) 2>conftest.er1
3945
grep -v '^ *+' conftest.er1 >conftest.err
3947
cat conftest.err >&5
3948
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949
(exit $ac_status); } &&
3950
{ ac_try='test -z "$ac_c_werror_flag"
3951
|| test ! -s conftest.err'
3952
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3955
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956
(exit $ac_status); }; } &&
3957
{ ac_try='test -s conftest.$ac_objext'
3958
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962
(exit $ac_status); }; }; then
3963
eval "$as_ac_Header=yes"
3965
echo "$as_me: failed program was:" >&5
3966
sed 's/^/| /' conftest.$ac_ext >&5
3968
eval "$as_ac_Header=no"
3970
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3972
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3973
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3974
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3975
cat >>confdefs.h <<_ACEOF
3976
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3985
for ac_header in dlfcn.h
3987
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3988
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3989
echo "$as_me:$LINENO: checking for $ac_header" >&5
3990
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3991
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3992
echo $ECHO_N "(cached) $ECHO_C" >&6
3994
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3995
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3997
# Is the header compilable?
3998
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3999
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4000
cat >conftest.$ac_ext <<_ACEOF
4003
cat confdefs.h >>conftest.$ac_ext
4004
cat >>conftest.$ac_ext <<_ACEOF
4005
/* end confdefs.h. */
4006
$ac_includes_default
4007
#include <$ac_header>
4009
rm -f conftest.$ac_objext
4010
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4011
(eval $ac_compile) 2>conftest.er1
4013
grep -v '^ *+' conftest.er1 >conftest.err
4015
cat conftest.err >&5
4016
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017
(exit $ac_status); } &&
4018
{ ac_try='test -z "$ac_c_werror_flag"
4019
|| test ! -s conftest.err'
4020
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024
(exit $ac_status); }; } &&
4025
{ ac_try='test -s conftest.$ac_objext'
4026
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030
(exit $ac_status); }; }; then
4031
ac_header_compiler=yes
4033
echo "$as_me: failed program was:" >&5
4034
sed 's/^/| /' conftest.$ac_ext >&5
4036
ac_header_compiler=no
4038
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4039
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4040
echo "${ECHO_T}$ac_header_compiler" >&6
4042
# Is the header present?
4043
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4044
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4045
cat >conftest.$ac_ext <<_ACEOF
4048
cat confdefs.h >>conftest.$ac_ext
4049
cat >>conftest.$ac_ext <<_ACEOF
4050
/* end confdefs.h. */
4051
#include <$ac_header>
4053
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4054
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4056
grep -v '^ *+' conftest.er1 >conftest.err
4058
cat conftest.err >&5
4059
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060
(exit $ac_status); } >/dev/null; then
4061
if test -s conftest.err; then
4062
ac_cpp_err=$ac_c_preproc_warn_flag
4063
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4070
if test -z "$ac_cpp_err"; then
4071
ac_header_preproc=yes
4073
echo "$as_me: failed program was:" >&5
4074
sed 's/^/| /' conftest.$ac_ext >&5
4076
ac_header_preproc=no
4078
rm -f conftest.err conftest.$ac_ext
4079
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4080
echo "${ECHO_T}$ac_header_preproc" >&6
4082
# So? What about this header?
4083
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4085
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4086
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4087
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4088
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4089
ac_header_preproc=yes
4092
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4093
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4094
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4095
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4096
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4097
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4098
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4099
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4100
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4101
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4102
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4103
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4106
## ------------------------------------------ ##
4107
## Report this to the AC_PACKAGE_NAME lists. ##
4108
## ------------------------------------------ ##
4111
sed "s/^/$as_me: WARNING: /" >&2
4114
echo "$as_me:$LINENO: checking for $ac_header" >&5
4115
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4116
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4117
echo $ECHO_N "(cached) $ECHO_C" >&6
4119
eval "$as_ac_Header=\$ac_header_preproc"
4121
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4122
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4125
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4126
cat >>confdefs.h <<_ACEOF
4127
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4135
ac_cpp='$CXXCPP $CPPFLAGS'
4136
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4139
if test -n "$ac_tool_prefix"; then
4140
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4142
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4143
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4144
echo "$as_me:$LINENO: checking for $ac_word" >&5
4145
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4146
if test "${ac_cv_prog_CXX+set}" = set; then
4147
echo $ECHO_N "(cached) $ECHO_C" >&6
4149
if test -n "$CXX"; then
4150
ac_cv_prog_CXX="$CXX" # Let the user override the test.
4152
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156
test -z "$as_dir" && as_dir=.
4157
for ac_exec_ext in '' $ac_executable_extensions; do
4158
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4159
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4160
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4169
if test -n "$CXX"; then
4170
echo "$as_me:$LINENO: result: $CXX" >&5
4171
echo "${ECHO_T}$CXX" >&6
4173
echo "$as_me:$LINENO: result: no" >&5
4174
echo "${ECHO_T}no" >&6
4177
test -n "$CXX" && break
4180
if test -z "$CXX"; then
4182
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4184
# Extract the first word of "$ac_prog", so it can be a program name with args.
4185
set dummy $ac_prog; ac_word=$2
4186
echo "$as_me:$LINENO: checking for $ac_word" >&5
4187
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4188
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4189
echo $ECHO_N "(cached) $ECHO_C" >&6
4191
if test -n "$ac_ct_CXX"; then
4192
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4194
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198
test -z "$as_dir" && as_dir=.
4199
for ac_exec_ext in '' $ac_executable_extensions; do
4200
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4201
ac_cv_prog_ac_ct_CXX="$ac_prog"
4202
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4210
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4211
if test -n "$ac_ct_CXX"; then
4212
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4213
echo "${ECHO_T}$ac_ct_CXX" >&6
4215
echo "$as_me:$LINENO: result: no" >&5
4216
echo "${ECHO_T}no" >&6
4219
test -n "$ac_ct_CXX" && break
4221
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4227
# Provide some information about the compiler.
4228
echo "$as_me:$LINENO:" \
4229
"checking for C++ compiler version" >&5
4230
ac_compiler=`set X $ac_compile; echo $2`
4231
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4232
(eval $ac_compiler --version </dev/null >&5) 2>&5
4234
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235
(exit $ac_status); }
4236
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4237
(eval $ac_compiler -v </dev/null >&5) 2>&5
4239
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240
(exit $ac_status); }
4241
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4242
(eval $ac_compiler -V </dev/null >&5) 2>&5
4244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245
(exit $ac_status); }
4247
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4248
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4249
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4250
echo $ECHO_N "(cached) $ECHO_C" >&6
4252
cat >conftest.$ac_ext <<_ACEOF
4255
cat confdefs.h >>conftest.$ac_ext
4256
cat >>conftest.$ac_ext <<_ACEOF
4257
/* end confdefs.h. */
4270
rm -f conftest.$ac_objext
4271
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4272
(eval $ac_compile) 2>conftest.er1
4274
grep -v '^ *+' conftest.er1 >conftest.err
4276
cat conftest.err >&5
4277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278
(exit $ac_status); } &&
4279
{ ac_try='test -z "$ac_cxx_werror_flag"
4280
|| test ! -s conftest.err'
4281
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285
(exit $ac_status); }; } &&
4286
{ ac_try='test -s conftest.$ac_objext'
4287
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291
(exit $ac_status); }; }; then
4294
echo "$as_me: failed program was:" >&5
4295
sed 's/^/| /' conftest.$ac_ext >&5
4299
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4300
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4303
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4304
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4305
GXX=`test $ac_compiler_gnu = yes && echo yes`
4306
ac_test_CXXFLAGS=${CXXFLAGS+set}
4307
ac_save_CXXFLAGS=$CXXFLAGS
4309
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4310
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4311
if test "${ac_cv_prog_cxx_g+set}" = set; then
4312
echo $ECHO_N "(cached) $ECHO_C" >&6
4314
cat >conftest.$ac_ext <<_ACEOF
4317
cat confdefs.h >>conftest.$ac_ext
4318
cat >>conftest.$ac_ext <<_ACEOF
4319
/* end confdefs.h. */
4329
rm -f conftest.$ac_objext
4330
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4331
(eval $ac_compile) 2>conftest.er1
4333
grep -v '^ *+' conftest.er1 >conftest.err
4335
cat conftest.err >&5
4336
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337
(exit $ac_status); } &&
4338
{ ac_try='test -z "$ac_cxx_werror_flag"
4339
|| test ! -s conftest.err'
4340
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344
(exit $ac_status); }; } &&
4345
{ ac_try='test -s conftest.$ac_objext'
4346
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350
(exit $ac_status); }; }; then
4351
ac_cv_prog_cxx_g=yes
4353
echo "$as_me: failed program was:" >&5
4354
sed 's/^/| /' conftest.$ac_ext >&5
4358
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4360
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4361
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4362
if test "$ac_test_CXXFLAGS" = set; then
4363
CXXFLAGS=$ac_save_CXXFLAGS
4364
elif test $ac_cv_prog_cxx_g = yes; then
4365
if test "$GXX" = yes; then
4371
if test "$GXX" = yes; then
4377
for ac_declaration in \
4379
'extern "C" void std::exit (int) throw (); using std::exit;' \
4380
'extern "C" void std::exit (int); using std::exit;' \
4381
'extern "C" void exit (int) throw ();' \
4382
'extern "C" void exit (int);' \
4385
cat >conftest.$ac_ext <<_ACEOF
4388
cat confdefs.h >>conftest.$ac_ext
4389
cat >>conftest.$ac_ext <<_ACEOF
4390
/* end confdefs.h. */
4401
rm -f conftest.$ac_objext
4402
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4403
(eval $ac_compile) 2>conftest.er1
4405
grep -v '^ *+' conftest.er1 >conftest.err
4407
cat conftest.err >&5
4408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409
(exit $ac_status); } &&
4410
{ ac_try='test -z "$ac_cxx_werror_flag"
4411
|| test ! -s conftest.err'
4412
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416
(exit $ac_status); }; } &&
4417
{ ac_try='test -s conftest.$ac_objext'
4418
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422
(exit $ac_status); }; }; then
4425
echo "$as_me: failed program was:" >&5
4426
sed 's/^/| /' conftest.$ac_ext >&5
4430
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4431
cat >conftest.$ac_ext <<_ACEOF
4434
cat confdefs.h >>conftest.$ac_ext
4435
cat >>conftest.$ac_ext <<_ACEOF
4436
/* end confdefs.h. */
4446
rm -f conftest.$ac_objext
4447
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4448
(eval $ac_compile) 2>conftest.er1
4450
grep -v '^ *+' conftest.er1 >conftest.err
4452
cat conftest.err >&5
4453
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454
(exit $ac_status); } &&
4455
{ ac_try='test -z "$ac_cxx_werror_flag"
4456
|| test ! -s conftest.err'
4457
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461
(exit $ac_status); }; } &&
4462
{ ac_try='test -s conftest.$ac_objext'
4463
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467
(exit $ac_status); }; }; then
4470
echo "$as_me: failed program was:" >&5
4471
sed 's/^/| /' conftest.$ac_ext >&5
4474
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4477
if test -n "$ac_declaration"; then
4478
echo '#ifdef __cplusplus' >>confdefs.h
4479
echo $ac_declaration >>confdefs.h
4480
echo '#endif' >>confdefs.h
4484
ac_cpp='$CXXCPP $CPPFLAGS'
4485
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4486
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4487
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4491
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4492
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4493
(test "X$CXX" != "Xg++"))) ; then
4495
ac_cpp='$CXXCPP $CPPFLAGS'
4496
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4499
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4500
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4501
if test -z "$CXXCPP"; then
4502
if test "${ac_cv_prog_CXXCPP+set}" = set; then
4503
echo $ECHO_N "(cached) $ECHO_C" >&6
4505
# Double quotes because CXXCPP needs to be expanded
4506
for CXXCPP in "$CXX -E" "/lib/cpp"
4509
for ac_cxx_preproc_warn_flag in '' yes
4511
# Use a header file that comes with gcc, so configuring glibc
4512
# with a fresh cross-compiler works.
4513
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4514
# <limits.h> exists even on freestanding compilers.
4515
# On the NeXT, cc -E runs the code through the compiler's parser,
4516
# not just through cpp. "Syntax error" is here to catch this case.
4517
cat >conftest.$ac_ext <<_ACEOF
4520
cat confdefs.h >>conftest.$ac_ext
4521
cat >>conftest.$ac_ext <<_ACEOF
4522
/* end confdefs.h. */
4524
# include <limits.h>
4526
# include <assert.h>
4530
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4531
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4533
grep -v '^ *+' conftest.er1 >conftest.err
4535
cat conftest.err >&5
4536
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537
(exit $ac_status); } >/dev/null; then
4538
if test -s conftest.err; then
4539
ac_cpp_err=$ac_cxx_preproc_warn_flag
4540
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4547
if test -z "$ac_cpp_err"; then
4550
echo "$as_me: failed program was:" >&5
4551
sed 's/^/| /' conftest.$ac_ext >&5
4553
# Broken: fails on valid input.
4556
rm -f conftest.err conftest.$ac_ext
4558
# OK, works on sane cases. Now check whether non-existent headers
4559
# can be detected and how.
4560
cat >conftest.$ac_ext <<_ACEOF
4563
cat confdefs.h >>conftest.$ac_ext
4564
cat >>conftest.$ac_ext <<_ACEOF
4565
/* end confdefs.h. */
4566
#include <ac_nonexistent.h>
4568
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4569
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4571
grep -v '^ *+' conftest.er1 >conftest.err
4573
cat conftest.err >&5
4574
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575
(exit $ac_status); } >/dev/null; then
4576
if test -s conftest.err; then
4577
ac_cpp_err=$ac_cxx_preproc_warn_flag
4578
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4585
if test -z "$ac_cpp_err"; then
4586
# Broken: success on invalid input.
4589
echo "$as_me: failed program was:" >&5
4590
sed 's/^/| /' conftest.$ac_ext >&5
4592
# Passes both tests.
4596
rm -f conftest.err conftest.$ac_ext
4599
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4600
rm -f conftest.err conftest.$ac_ext
4601
if $ac_preproc_ok; then
4606
ac_cv_prog_CXXCPP=$CXXCPP
4609
CXXCPP=$ac_cv_prog_CXXCPP
4611
ac_cv_prog_CXXCPP=$CXXCPP
4613
echo "$as_me:$LINENO: result: $CXXCPP" >&5
4614
echo "${ECHO_T}$CXXCPP" >&6
4616
for ac_cxx_preproc_warn_flag in '' yes
4618
# Use a header file that comes with gcc, so configuring glibc
4619
# with a fresh cross-compiler works.
4620
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4621
# <limits.h> exists even on freestanding compilers.
4622
# On the NeXT, cc -E runs the code through the compiler's parser,
4623
# not just through cpp. "Syntax error" is here to catch this case.
4624
cat >conftest.$ac_ext <<_ACEOF
4627
cat confdefs.h >>conftest.$ac_ext
4628
cat >>conftest.$ac_ext <<_ACEOF
4629
/* end confdefs.h. */
4631
# include <limits.h>
4633
# include <assert.h>
4637
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4638
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4640
grep -v '^ *+' conftest.er1 >conftest.err
4642
cat conftest.err >&5
4643
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644
(exit $ac_status); } >/dev/null; then
4645
if test -s conftest.err; then
4646
ac_cpp_err=$ac_cxx_preproc_warn_flag
4647
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4654
if test -z "$ac_cpp_err"; then
4657
echo "$as_me: failed program was:" >&5
4658
sed 's/^/| /' conftest.$ac_ext >&5
4660
# Broken: fails on valid input.
4663
rm -f conftest.err conftest.$ac_ext
4665
# OK, works on sane cases. Now check whether non-existent headers
4666
# can be detected and how.
4667
cat >conftest.$ac_ext <<_ACEOF
4670
cat confdefs.h >>conftest.$ac_ext
4671
cat >>conftest.$ac_ext <<_ACEOF
4672
/* end confdefs.h. */
4673
#include <ac_nonexistent.h>
4675
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4676
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4678
grep -v '^ *+' conftest.er1 >conftest.err
4680
cat conftest.err >&5
4681
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682
(exit $ac_status); } >/dev/null; then
4683
if test -s conftest.err; then
4684
ac_cpp_err=$ac_cxx_preproc_warn_flag
4685
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4692
if test -z "$ac_cpp_err"; then
4693
# Broken: success on invalid input.
4696
echo "$as_me: failed program was:" >&5
4697
sed 's/^/| /' conftest.$ac_ext >&5
4699
# Passes both tests.
4703
rm -f conftest.err conftest.$ac_ext
4706
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4707
rm -f conftest.err conftest.$ac_ext
4708
if $ac_preproc_ok; then
4711
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4712
See \`config.log' for more details." >&5
4713
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4714
See \`config.log' for more details." >&2;}
4715
{ (exit 1); exit 1; }; }
4719
ac_cpp='$CXXCPP $CPPFLAGS'
4720
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4721
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4722
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4728
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4729
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4730
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4731
if test -n "$ac_tool_prefix"; then
4732
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4734
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4735
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4736
echo "$as_me:$LINENO: checking for $ac_word" >&5
4737
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4738
if test "${ac_cv_prog_F77+set}" = set; then
4739
echo $ECHO_N "(cached) $ECHO_C" >&6
4741
if test -n "$F77"; then
4742
ac_cv_prog_F77="$F77" # Let the user override the test.
4744
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748
test -z "$as_dir" && as_dir=.
4749
for ac_exec_ext in '' $ac_executable_extensions; do
4750
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4751
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4752
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761
if test -n "$F77"; then
4762
echo "$as_me:$LINENO: result: $F77" >&5
4763
echo "${ECHO_T}$F77" >&6
4765
echo "$as_me:$LINENO: result: no" >&5
4766
echo "${ECHO_T}no" >&6
4769
test -n "$F77" && break
4772
if test -z "$F77"; then
4774
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4776
# Extract the first word of "$ac_prog", so it can be a program name with args.
4777
set dummy $ac_prog; ac_word=$2
4778
echo "$as_me:$LINENO: checking for $ac_word" >&5
4779
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4780
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4781
echo $ECHO_N "(cached) $ECHO_C" >&6
4783
if test -n "$ac_ct_F77"; then
4784
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4786
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790
test -z "$as_dir" && as_dir=.
4791
for ac_exec_ext in '' $ac_executable_extensions; do
4792
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4793
ac_cv_prog_ac_ct_F77="$ac_prog"
4794
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802
ac_ct_F77=$ac_cv_prog_ac_ct_F77
4803
if test -n "$ac_ct_F77"; then
4804
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4805
echo "${ECHO_T}$ac_ct_F77" >&6
4807
echo "$as_me:$LINENO: result: no" >&5
4808
echo "${ECHO_T}no" >&6
4811
test -n "$ac_ct_F77" && break
4818
# Provide some information about the compiler.
4819
echo "$as_me:4819:" \
4820
"checking for Fortran 77 compiler version" >&5
4821
ac_compiler=`set X $ac_compile; echo $2`
4822
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4823
(eval $ac_compiler --version </dev/null >&5) 2>&5
4825
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826
(exit $ac_status); }
4827
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4828
(eval $ac_compiler -v </dev/null >&5) 2>&5
4830
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831
(exit $ac_status); }
4832
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4833
(eval $ac_compiler -V </dev/null >&5) 2>&5
4835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836
(exit $ac_status); }
4839
# If we don't use `.F' as extension, the preprocessor is not run on the
4840
# input file. (Note that this only needs to work for GNU compilers.)
4843
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4844
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4845
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4846
echo $ECHO_N "(cached) $ECHO_C" >&6
4848
cat >conftest.$ac_ext <<_ACEOF
4856
rm -f conftest.$ac_objext
4857
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858
(eval $ac_compile) 2>conftest.er1
4860
grep -v '^ *+' conftest.er1 >conftest.err
4862
cat conftest.err >&5
4863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864
(exit $ac_status); } &&
4865
{ ac_try='test -z "$ac_f77_werror_flag"
4866
|| test ! -s conftest.err'
4867
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871
(exit $ac_status); }; } &&
4872
{ ac_try='test -s conftest.$ac_objext'
4873
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877
(exit $ac_status); }; }; then
4880
echo "$as_me: failed program was:" >&5
4881
sed 's/^/| /' conftest.$ac_ext >&5
4885
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4886
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4889
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4890
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4892
ac_test_FFLAGS=${FFLAGS+set}
4893
ac_save_FFLAGS=$FFLAGS
4895
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4896
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4897
if test "${ac_cv_prog_f77_g+set}" = set; then
4898
echo $ECHO_N "(cached) $ECHO_C" >&6
4901
cat >conftest.$ac_ext <<_ACEOF
4906
rm -f conftest.$ac_objext
4907
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4908
(eval $ac_compile) 2>conftest.er1
4910
grep -v '^ *+' conftest.er1 >conftest.err
4912
cat conftest.err >&5
4913
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914
(exit $ac_status); } &&
4915
{ ac_try='test -z "$ac_f77_werror_flag"
4916
|| test ! -s conftest.err'
4917
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921
(exit $ac_status); }; } &&
4922
{ ac_try='test -s conftest.$ac_objext'
4923
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927
(exit $ac_status); }; }; then
4928
ac_cv_prog_f77_g=yes
4930
echo "$as_me: failed program was:" >&5
4931
sed 's/^/| /' conftest.$ac_ext >&5
4935
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4938
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4939
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4940
if test "$ac_test_FFLAGS" = set; then
4941
FFLAGS=$ac_save_FFLAGS
4942
elif test $ac_cv_prog_f77_g = yes; then
4943
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4949
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4956
G77=`test $ac_compiler_gnu = yes && echo yes`
4958
ac_cpp='$CPP $CPPFLAGS'
4959
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4960
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4961
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4965
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4967
# find the maximum length of command line arguments
4968
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4969
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4970
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4971
echo $ECHO_N "(cached) $ECHO_C" >&6
4978
# On DJGPP, this test can blow up pretty badly due to problems in libc
4979
# (any single argument exceeding 2000 bytes causes a buffer overrun
4980
# during glob expansion). Even if it were fixed, the result of this
4981
# check would be larger than it should be.
4982
lt_cv_sys_max_cmd_len=12288; # 12K is about right
4986
# Under GNU Hurd, this test is not required because there is
4987
# no limit to the length of command line arguments.
4988
# Libtool will interpret -1 as no limit whatsoever
4989
lt_cv_sys_max_cmd_len=-1;
4993
# On Win9x/ME, this test blows up -- it succeeds, but takes
4994
# about 5 minutes as the teststring grows exponentially.
4995
# Worse, since 9x/ME are not pre-emptively multitasking,
4996
# you end up with a "frozen" computer, even though with patience
4997
# the test eventually succeeds (with a max line length of 256k).
4998
# Instead, let's just punt: use the minimum linelength reported by
4999
# all of the supported platforms: 8192 (on NT/2K/XP).
5000
lt_cv_sys_max_cmd_len=8192;
5004
# On AmigaOS with pdksh, this test takes hours, literally.
5005
# So we just punt and use a minimum line length of 8192.
5006
lt_cv_sys_max_cmd_len=8192;
5009
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5010
# This has been around since 386BSD, at least. Likely further.
5011
if test -x /sbin/sysctl; then
5012
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5013
elif test -x /usr/sbin/sysctl; then
5014
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5016
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5018
# And add a safety zone
5019
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5020
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5023
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5024
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5025
# nice to cause kernel panics so lets avoid the loop below.
5026
# First set a reasonable default.
5027
lt_cv_sys_max_cmd_len=16384
5029
if test -x /sbin/sysconfig; then
5030
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5031
*1*) lt_cv_sys_max_cmd_len=-1 ;;
5036
# If test is not a shell built-in, we'll probably end up computing a
5037
# maximum length that is only half of the actual maximum length, but
5039
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5040
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5041
= "XX$teststring") >/dev/null 2>&1 &&
5042
new_result=`expr "X$teststring" : ".*" 2>&1` &&
5043
lt_cv_sys_max_cmd_len=$new_result &&
5044
test $i != 17 # 1/2 MB should be enough
5047
teststring=$teststring$teststring
5050
# Add a significant safety factor because C++ compilers can tack on massive
5051
# amounts of additional arguments before passing them to the linker.
5052
# It appears as though 1/2 is a usable value.
5053
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5059
if test -n $lt_cv_sys_max_cmd_len ; then
5060
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5061
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5063
echo "$as_me:$LINENO: result: none" >&5
5064
echo "${ECHO_T}none" >&6
5070
# Check for command to grab the raw symbol name followed by C symbol from nm.
5071
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5072
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5073
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5074
echo $ECHO_N "(cached) $ECHO_C" >&6
5077
# These are sane defaults that work on at least a few old systems.
5078
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5080
# Character class describing NM global symbol codes.
5081
symcode='[BCDEGRST]'
5083
# Regexp to match symbols that can be accessed directly from C.
5084
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5086
# Transform an extracted symbol line into a proper C declaration
5087
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5089
# Transform an extracted symbol line into symbol name and symbol address
5090
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'"
5092
# Define system-specific variables.
5097
cygwin* | mingw* | pw32*)
5098
symcode='[ABCDGISTW]'
5100
hpux*) # Its linker distinguishes data from code symbols
5101
if test "$host_cpu" = ia64; then
5102
symcode='[ABCDEGRST]'
5104
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5105
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'"
5108
if test "$host_cpu" = ia64; then
5109
symcode='[ABCDGIRSTW]'
5110
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5111
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'"
5115
symcode='[BCDEGRST]'
5118
symcode='[BCDEGQRST]'
5128
# Handle CRLF in mingw tool chain
5132
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5136
# If we're using GNU nm, then use its standard symbol codes.
5137
case `$NM -V 2>&1` in
5138
*GNU* | *'with BFD'*)
5139
symcode='[ABCDGIRSTW]' ;;
5142
# Try without a prefix undercore, then with it.
5143
for ac_symprfx in "" "_"; do
5145
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5146
symxfrm="\\1 $ac_symprfx\\2 \\2"
5148
# Write the raw and C identifiers.
5149
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5151
# Check to see that the pipe works correctly.
5155
cat > conftest.$ac_ext <<EOF
5160
void nm_test_func(){}
5164
int main(){nm_test_var='a';nm_test_func();return(0);}
5167
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5168
(eval $ac_compile) 2>&5
5170
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171
(exit $ac_status); }; then
5172
# Now try to grab the symbols.
5174
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5175
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5177
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178
(exit $ac_status); } && test -s "$nlist"; then
5179
# Try sorting and uniquifying the output.
5180
if sort "$nlist" | uniq > "$nlist"T; then
5181
mv -f "$nlist"T "$nlist"
5186
# Make sure that we snagged all the symbols we need.
5187
if grep ' nm_test_var$' "$nlist" >/dev/null; then
5188
if grep ' nm_test_func$' "$nlist" >/dev/null; then
5189
cat <<EOF > conftest.$ac_ext
5195
# Now generate the symbol file.
5196
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5198
cat <<EOF >> conftest.$ac_ext
5199
#if defined (__STDC__) && __STDC__
5200
# define lt_ptr_t void *
5202
# define lt_ptr_t char *
5206
/* The mapping between symbol names and symbols. */
5211
lt_preloaded_symbols[] =
5214
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5215
cat <<\EOF >> conftest.$ac_ext
5223
# Now try linking the two files.
5224
mv conftest.$ac_objext conftstm.$ac_objext
5225
lt_save_LIBS="$LIBS"
5226
lt_save_CFLAGS="$CFLAGS"
5227
LIBS="conftstm.$ac_objext"
5228
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5229
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5230
(eval $ac_link) 2>&5
5232
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233
(exit $ac_status); } && test -s conftest${ac_exeext}; then
5236
LIBS="$lt_save_LIBS"
5237
CFLAGS="$lt_save_CFLAGS"
5239
echo "cannot find nm_test_func in $nlist" >&5
5242
echo "cannot find nm_test_var in $nlist" >&5
5245
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5248
echo "$progname: failed program was:" >&5
5249
cat conftest.$ac_ext >&5
5251
rm -f conftest* conftst*
5253
# Do not use the global_symbol_pipe unless it works.
5254
if test "$pipe_works" = yes; then
5257
lt_cv_sys_global_symbol_pipe=
5263
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5264
lt_cv_sys_global_symbol_to_cdecl=
5266
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5267
echo "$as_me:$LINENO: result: failed" >&5
5268
echo "${ECHO_T}failed" >&6
5270
echo "$as_me:$LINENO: result: ok" >&5
5271
echo "${ECHO_T}ok" >&6
5274
echo "$as_me:$LINENO: checking for objdir" >&5
5275
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5276
if test "${lt_cv_objdir+set}" = set; then
5277
echo $ECHO_N "(cached) $ECHO_C" >&6
5279
rm -f .libs 2>/dev/null
5280
mkdir .libs 2>/dev/null
5281
if test -d .libs; then
5284
# MS-DOS does not allow filenames that begin with a dot.
5287
rmdir .libs 2>/dev/null
5289
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5290
echo "${ECHO_T}$lt_cv_objdir" >&6
5291
objdir=$lt_cv_objdir
5299
# AIX sometimes has problems with the GCC collect2 program. For some
5300
# reason, if we set the COLLECT_NAMES environment variable, the problems
5301
# vanish in a puff of smoke.
5302
if test "X${COLLECT_NAMES+set}" != Xset; then
5304
export COLLECT_NAMES
5309
# Sed substitution that helps us do robust quoting. It backslashifies
5310
# metacharacters that are still active within double-quoted strings.
5311
Xsed='sed -e 1s/^X//'
5312
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5314
# Same as above, but do not quote variable references.
5315
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5317
# Sed substitution to delay expansion of an escaped shell variable in a
5318
# double_quote_subst'ed string.
5319
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5321
# Sed substitution to avoid accidental globbing in evaled expressions
5322
no_glob_subst='s/\*/\\\*/g'
5328
default_ofile=libtool
5329
can_build_shared=yes
5331
# All known linkers require a `.a' archive for static linking (except MSVC,
5332
# which needs '.lib').
5334
ltmain="$ac_aux_dir/ltmain.sh"
5335
ofile="$default_ofile"
5336
with_gnu_ld="$lt_cv_prog_gnu_ld"
5338
if test -n "$ac_tool_prefix"; then
5339
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5340
set dummy ${ac_tool_prefix}ar; ac_word=$2
5341
echo "$as_me:$LINENO: checking for $ac_word" >&5
5342
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5343
if test "${ac_cv_prog_AR+set}" = set; then
5344
echo $ECHO_N "(cached) $ECHO_C" >&6
5346
if test -n "$AR"; then
5347
ac_cv_prog_AR="$AR" # Let the user override the test.
5349
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353
test -z "$as_dir" && as_dir=.
5354
for ac_exec_ext in '' $ac_executable_extensions; do
5355
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5356
ac_cv_prog_AR="${ac_tool_prefix}ar"
5357
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5366
if test -n "$AR"; then
5367
echo "$as_me:$LINENO: result: $AR" >&5
5368
echo "${ECHO_T}$AR" >&6
5370
echo "$as_me:$LINENO: result: no" >&5
5371
echo "${ECHO_T}no" >&6
5375
if test -z "$ac_cv_prog_AR"; then
5377
# Extract the first word of "ar", so it can be a program name with args.
5378
set dummy ar; ac_word=$2
5379
echo "$as_me:$LINENO: checking for $ac_word" >&5
5380
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5381
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5382
echo $ECHO_N "(cached) $ECHO_C" >&6
5384
if test -n "$ac_ct_AR"; then
5385
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5387
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391
test -z "$as_dir" && as_dir=.
5392
for ac_exec_ext in '' $ac_executable_extensions; do
5393
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5394
ac_cv_prog_ac_ct_AR="ar"
5395
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5401
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5404
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5405
if test -n "$ac_ct_AR"; then
5406
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5407
echo "${ECHO_T}$ac_ct_AR" >&6
5409
echo "$as_me:$LINENO: result: no" >&5
5410
echo "${ECHO_T}no" >&6
5418
if test -n "$ac_tool_prefix"; then
5419
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5420
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5421
echo "$as_me:$LINENO: checking for $ac_word" >&5
5422
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5423
if test "${ac_cv_prog_RANLIB+set}" = set; then
5424
echo $ECHO_N "(cached) $ECHO_C" >&6
5426
if test -n "$RANLIB"; then
5427
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5429
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433
test -z "$as_dir" && as_dir=.
5434
for ac_exec_ext in '' $ac_executable_extensions; do
5435
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5436
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5437
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5445
RANLIB=$ac_cv_prog_RANLIB
5446
if test -n "$RANLIB"; then
5447
echo "$as_me:$LINENO: result: $RANLIB" >&5
5448
echo "${ECHO_T}$RANLIB" >&6
5450
echo "$as_me:$LINENO: result: no" >&5
5451
echo "${ECHO_T}no" >&6
5455
if test -z "$ac_cv_prog_RANLIB"; then
5456
ac_ct_RANLIB=$RANLIB
5457
# Extract the first word of "ranlib", so it can be a program name with args.
5458
set dummy ranlib; ac_word=$2
5459
echo "$as_me:$LINENO: checking for $ac_word" >&5
5460
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5461
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5462
echo $ECHO_N "(cached) $ECHO_C" >&6
5464
if test -n "$ac_ct_RANLIB"; then
5465
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5467
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471
test -z "$as_dir" && as_dir=.
5472
for ac_exec_ext in '' $ac_executable_extensions; do
5473
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5474
ac_cv_prog_ac_ct_RANLIB="ranlib"
5475
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5481
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5484
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5485
if test -n "$ac_ct_RANLIB"; then
5486
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5487
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5489
echo "$as_me:$LINENO: result: no" >&5
5490
echo "${ECHO_T}no" >&6
5493
RANLIB=$ac_ct_RANLIB
5495
RANLIB="$ac_cv_prog_RANLIB"
5498
if test -n "$ac_tool_prefix"; then
5499
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5500
set dummy ${ac_tool_prefix}strip; ac_word=$2
5501
echo "$as_me:$LINENO: checking for $ac_word" >&5
5502
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5503
if test "${ac_cv_prog_STRIP+set}" = set; then
5504
echo $ECHO_N "(cached) $ECHO_C" >&6
5506
if test -n "$STRIP"; then
5507
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5509
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513
test -z "$as_dir" && as_dir=.
5514
for ac_exec_ext in '' $ac_executable_extensions; do
5515
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5516
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5517
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5525
STRIP=$ac_cv_prog_STRIP
5526
if test -n "$STRIP"; then
5527
echo "$as_me:$LINENO: result: $STRIP" >&5
5528
echo "${ECHO_T}$STRIP" >&6
5530
echo "$as_me:$LINENO: result: no" >&5
5531
echo "${ECHO_T}no" >&6
5535
if test -z "$ac_cv_prog_STRIP"; then
5537
# Extract the first word of "strip", so it can be a program name with args.
5538
set dummy strip; ac_word=$2
5539
echo "$as_me:$LINENO: checking for $ac_word" >&5
5540
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5541
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5542
echo $ECHO_N "(cached) $ECHO_C" >&6
5544
if test -n "$ac_ct_STRIP"; then
5545
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5547
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551
test -z "$as_dir" && as_dir=.
5552
for ac_exec_ext in '' $ac_executable_extensions; do
5553
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5554
ac_cv_prog_ac_ct_STRIP="strip"
5555
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5561
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5564
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5565
if test -n "$ac_ct_STRIP"; then
5566
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5567
echo "${ECHO_T}$ac_ct_STRIP" >&6
5569
echo "$as_me:$LINENO: result: no" >&5
5570
echo "${ECHO_T}no" >&6
5575
STRIP="$ac_cv_prog_STRIP"
5580
old_CFLAGS="$CFLAGS"
5582
# Set sane defaults for various variables
5583
test -z "$AR" && AR=ar
5584
test -z "$AR_FLAGS" && AR_FLAGS=cru
5585
test -z "$AS" && AS=as
5586
test -z "$CC" && CC=cc
5587
test -z "$LTCC" && LTCC=$CC
5588
test -z "$DLLTOOL" && DLLTOOL=dlltool
5589
test -z "$LD" && LD=ld
5590
test -z "$LN_S" && LN_S="ln -s"
5591
test -z "$MAGIC_CMD" && MAGIC_CMD=file
5592
test -z "$NM" && NM=nm
5593
test -z "$SED" && SED=sed
5594
test -z "$OBJDUMP" && OBJDUMP=objdump
5595
test -z "$RANLIB" && RANLIB=:
5596
test -z "$STRIP" && STRIP=:
5597
test -z "$ac_objext" && ac_objext=o
5599
# Determine commands to create old-style static archives.
5600
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5601
old_postinstall_cmds='chmod 644 $oldlib'
5602
old_postuninstall_cmds=
5604
if test -n "$RANLIB"; then
5607
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5610
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5613
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5616
for cc_temp in $compiler""; do
5618
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5619
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5624
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5627
# Only perform the check for file, if the check method requires it
5628
case $deplibs_check_method in
5630
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5631
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5632
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5633
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5634
echo $ECHO_N "(cached) $ECHO_C" >&6
5638
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5641
lt_save_MAGIC_CMD="$MAGIC_CMD"
5642
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5643
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5644
for ac_dir in $ac_dummy; do
5646
test -z "$ac_dir" && ac_dir=.
5647
if test -f $ac_dir/${ac_tool_prefix}file; then
5648
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5649
if test -n "$file_magic_test_file"; then
5650
case $deplibs_check_method in
5652
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5653
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5654
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5655
$EGREP "$file_magic_regex" > /dev/null; then
5660
*** Warning: the command libtool uses to detect shared libraries,
5661
*** $file_magic_cmd, produces output that libtool cannot recognize.
5662
*** The result is that libtool may fail to recognize shared libraries
5663
*** as such. This will affect the creation of libtool libraries that
5664
*** depend on shared libraries, but programs linked with such libtool
5665
*** libraries will work regardless of this problem. Nevertheless, you
5666
*** may want to report the problem to your system manager and/or to
5667
*** bug-libtool@gnu.org
5677
MAGIC_CMD="$lt_save_MAGIC_CMD"
5682
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5683
if test -n "$MAGIC_CMD"; then
5684
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5685
echo "${ECHO_T}$MAGIC_CMD" >&6
5687
echo "$as_me:$LINENO: result: no" >&5
5688
echo "${ECHO_T}no" >&6
5691
if test -z "$lt_cv_path_MAGIC_CMD"; then
5692
if test -n "$ac_tool_prefix"; then
5693
echo "$as_me:$LINENO: checking for file" >&5
5694
echo $ECHO_N "checking for file... $ECHO_C" >&6
5695
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5696
echo $ECHO_N "(cached) $ECHO_C" >&6
5700
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5703
lt_save_MAGIC_CMD="$MAGIC_CMD"
5704
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5705
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5706
for ac_dir in $ac_dummy; do
5708
test -z "$ac_dir" && ac_dir=.
5709
if test -f $ac_dir/file; then
5710
lt_cv_path_MAGIC_CMD="$ac_dir/file"
5711
if test -n "$file_magic_test_file"; then
5712
case $deplibs_check_method in
5714
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5715
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5716
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5717
$EGREP "$file_magic_regex" > /dev/null; then
5722
*** Warning: the command libtool uses to detect shared libraries,
5723
*** $file_magic_cmd, produces output that libtool cannot recognize.
5724
*** The result is that libtool may fail to recognize shared libraries
5725
*** as such. This will affect the creation of libtool libraries that
5726
*** depend on shared libraries, but programs linked with such libtool
5727
*** libraries will work regardless of this problem. Nevertheless, you
5728
*** may want to report the problem to your system manager and/or to
5729
*** bug-libtool@gnu.org
5739
MAGIC_CMD="$lt_save_MAGIC_CMD"
5744
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5745
if test -n "$MAGIC_CMD"; then
5746
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5747
echo "${ECHO_T}$MAGIC_CMD" >&6
5749
echo "$as_me:$LINENO: result: no" >&5
5750
echo "${ECHO_T}no" >&6
5763
enable_win32_dll=yes
5765
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5766
if test "${enable_libtool_lock+set}" = set; then
5767
enableval="$enable_libtool_lock"
5770
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5773
# Check whether --with-pic or --without-pic was given.
5774
if test "${with_pic+set}" = set; then
5780
test -z "$pic_mode" && pic_mode=default
5782
# Use C for the default configuration in the libtool script
5786
ac_cpp='$CPP $CPPFLAGS'
5787
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5788
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5789
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5792
# Source file extension for C test sources.
5795
# Object file extension for compiled C test sources.
5799
# Code to be used in simple compile tests
5800
lt_simple_compile_test_code="int some_variable = 0;\n"
5802
# Code to be used in simple link tests
5803
lt_simple_link_test_code='int main(){return(0);}\n'
5806
# If no C compiler was specified, use CC.
5809
# Allow CC to be a program name with arguments.
5813
# save warnings/boilerplate of simple test code
5814
ac_outfile=conftest.$ac_objext
5815
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
5816
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
5817
_lt_compiler_boilerplate=`cat conftest.err`
5820
ac_outfile=conftest.$ac_objext
5821
printf "$lt_simple_link_test_code" >conftest.$ac_ext
5822
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
5823
_lt_linker_boilerplate=`cat conftest.err`
5828
# Check for any special shared library compilation flags.
5831
if test "$GCC" = no; then
5834
lt_prog_cc_shlib='-belf'
5838
if test -n "$lt_prog_cc_shlib"; then
5839
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5840
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5841
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5843
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5844
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5845
lt_cv_prog_cc_can_build_shared=no
5851
# Check to make sure the static flag actually works.
5853
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5854
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5855
if test "${lt_prog_compiler_static_works+set}" = set; then
5856
echo $ECHO_N "(cached) $ECHO_C" >&6
5858
lt_prog_compiler_static_works=no
5859
save_LDFLAGS="$LDFLAGS"
5860
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5861
printf "$lt_simple_link_test_code" > conftest.$ac_ext
5862
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5863
# The linker can only warn and ignore the option if not recognized
5864
# So say no if there are warnings
5865
if test -s conftest.err; then
5866
# Append any errors to the config.log.
5867
cat conftest.err 1>&5
5868
$echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
5869
$SED '/^$/d' conftest.err >conftest.er2
5870
if diff conftest.exp conftest.er2 >/dev/null; then
5871
lt_prog_compiler_static_works=yes
5874
lt_prog_compiler_static_works=yes
5878
LDFLAGS="$save_LDFLAGS"
5881
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5882
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5884
if test x"$lt_prog_compiler_static_works" = xyes; then
5887
lt_prog_compiler_static=
5893
## There is no encapsulation within the following macros, do not change
5894
## the running order or otherwise move them around unless you know exactly
5895
## what you are doing...
5897
lt_prog_compiler_no_builtin_flag=
5899
if test "$GCC" = yes; then
5900
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5903
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5904
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5905
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5906
echo $ECHO_N "(cached) $ECHO_C" >&6
5908
lt_cv_prog_compiler_rtti_exceptions=no
5909
ac_outfile=conftest.$ac_objext
5910
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5911
lt_compiler_flag="-fno-rtti -fno-exceptions"
5912
# Insert the option either (1) after the last *FLAGS variable, or
5913
# (2) before a word containing "conftest.", or (3) at the end.
5914
# Note that $ac_compile itself does not contain backslashes and begins
5915
# with a dollar sign (not a hyphen), so the echo should work correctly.
5916
# The option is referenced via a variable to avoid confusing sed.
5917
lt_compile=`echo "$ac_compile" | $SED \
5918
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5919
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5920
-e 's:$: $lt_compiler_flag:'`
5921
(eval echo "\"\$as_me:5921: $lt_compile\"" >&5)
5922
(eval "$lt_compile" 2>conftest.err)
5924
cat conftest.err >&5
5925
echo "$as_me:5925: \$? = $ac_status" >&5
5926
if (exit $ac_status) && test -s "$ac_outfile"; then
5927
# The compiler can only warn and ignore the option if not recognized
5928
# So say no if there are warnings other than the usual output.
5929
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
5930
$SED '/^$/d' conftest.err >conftest.er2
5931
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
5932
lt_cv_prog_compiler_rtti_exceptions=yes
5938
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5939
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5941
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5942
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5949
lt_prog_compiler_wl=
5950
lt_prog_compiler_pic=
5951
lt_prog_compiler_static=
5953
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5954
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5956
if test "$GCC" = yes; then
5957
lt_prog_compiler_wl='-Wl,'
5958
lt_prog_compiler_static='-static'
5962
# All AIX code is PIC.
5963
if test "$host_cpu" = ia64; then
5964
# AIX 5 now supports IA64 processor
5965
lt_prog_compiler_static='-Bstatic'
5970
# FIXME: we need at least 68020 code to build shared libraries, but
5971
# adding the `-m68020' flag to GCC prevents building anything better,
5973
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5976
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5977
# PIC is the default for these OSes.
5980
mingw* | pw32* | os2*)
5981
# This hack is so that the source file can tell whether it is being
5982
# built for inclusion in a dll (and should export symbols for example).
5983
lt_prog_compiler_pic='-DDLL_EXPORT'
5986
darwin* | rhapsody*)
5987
# PIC is the default on this platform
5988
# Common symbols not allowed in MH_DYLIB files
5989
lt_prog_compiler_pic='-fno-common'
5993
# Just because we use GCC doesn't mean we suddenly get shared libraries
5994
# on systems that don't support them.
5995
lt_prog_compiler_can_build_shared=no
6000
if test -d /usr/nec; then
6001
lt_prog_compiler_pic=-Kconform_pic
6006
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6013
lt_prog_compiler_pic='-fPIC'
6019
lt_prog_compiler_pic='-fPIC'
6023
# PORTME Check for flag to pass linker flags through the system compiler.
6026
lt_prog_compiler_wl='-Wl,'
6027
if test "$host_cpu" = ia64; then
6028
# AIX 5 now supports IA64 processor
6029
lt_prog_compiler_static='-Bstatic'
6031
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6035
# PIC is the default on this platform
6036
# Common symbols not allowed in MH_DYLIB files
6037
case $cc_basename in
6039
lt_prog_compiler_pic='-qnocommon'
6040
lt_prog_compiler_wl='-Wl,'
6045
mingw* | pw32* | os2*)
6046
# This hack is so that the source file can tell whether it is being
6047
# built for inclusion in a dll (and should export symbols for example).
6048
lt_prog_compiler_pic='-DDLL_EXPORT'
6051
hpux9* | hpux10* | hpux11*)
6052
lt_prog_compiler_wl='-Wl,'
6053
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6060
lt_prog_compiler_pic='+Z'
6063
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6064
lt_prog_compiler_static='${wl}-a ${wl}archive'
6067
irix5* | irix6* | nonstopux*)
6068
lt_prog_compiler_wl='-Wl,'
6069
# PIC (with -KPIC) is the default.
6070
lt_prog_compiler_static='-non_shared'
6074
lt_prog_compiler_pic='-KPIC'
6075
lt_prog_compiler_static='-Bstatic'
6079
case $cc_basename in
6081
lt_prog_compiler_wl='-Wl,'
6082
lt_prog_compiler_pic='-KPIC'
6083
lt_prog_compiler_static='-static'
6085
pgcc* | pgf77* | pgf90* | pgf95*)
6086
# Portland Group compilers (*not* the Pentium gcc compiler,
6087
# which looks to be a dead project)
6088
lt_prog_compiler_wl='-Wl,'
6089
lt_prog_compiler_pic='-fpic'
6090
lt_prog_compiler_static='-Bstatic'
6093
lt_prog_compiler_wl='-Wl,'
6094
# All Alpha code is PIC.
6095
lt_prog_compiler_static='-non_shared'
6100
osf3* | osf4* | osf5*)
6101
lt_prog_compiler_wl='-Wl,'
6102
# All OSF/1 code is PIC.
6103
lt_prog_compiler_static='-non_shared'
6107
lt_prog_compiler_pic='-Kpic'
6108
lt_prog_compiler_static='-dn'
6112
lt_prog_compiler_pic='-KPIC'
6113
lt_prog_compiler_static='-Bstatic'
6114
case $cc_basename in
6116
lt_prog_compiler_wl='-Qoption ld ';;
6118
lt_prog_compiler_wl='-Wl,';;
6123
lt_prog_compiler_wl='-Qoption ld '
6124
lt_prog_compiler_pic='-PIC'
6125
lt_prog_compiler_static='-Bstatic'
6128
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6129
lt_prog_compiler_wl='-Wl,'
6130
lt_prog_compiler_pic='-KPIC'
6131
lt_prog_compiler_static='-Bstatic'
6135
if test -d /usr/nec ;then
6136
lt_prog_compiler_pic='-Kconform_pic'
6137
lt_prog_compiler_static='-Bstatic'
6142
lt_prog_compiler_wl='-Wl,'
6143
lt_prog_compiler_can_build_shared=no
6147
lt_prog_compiler_pic='-pic'
6148
lt_prog_compiler_static='-Bstatic'
6152
lt_prog_compiler_can_build_shared=no
6157
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6158
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6161
# Check to make sure the PIC flag actually works.
6163
if test -n "$lt_prog_compiler_pic"; then
6165
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6166
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6167
if test "${lt_prog_compiler_pic_works+set}" = set; then
6168
echo $ECHO_N "(cached) $ECHO_C" >&6
6170
lt_prog_compiler_pic_works=no
6171
ac_outfile=conftest.$ac_objext
6172
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6173
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6174
# Insert the option either (1) after the last *FLAGS variable, or
6175
# (2) before a word containing "conftest.", or (3) at the end.
6176
# Note that $ac_compile itself does not contain backslashes and begins
6177
# with a dollar sign (not a hyphen), so the echo should work correctly.
6178
# The option is referenced via a variable to avoid confusing sed.
6179
lt_compile=`echo "$ac_compile" | $SED \
6180
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6181
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6182
-e 's:$: $lt_compiler_flag:'`
6183
(eval echo "\"\$as_me:6183: $lt_compile\"" >&5)
6184
(eval "$lt_compile" 2>conftest.err)
6186
cat conftest.err >&5
6187
echo "$as_me:6187: \$? = $ac_status" >&5
6188
if (exit $ac_status) && test -s "$ac_outfile"; then
6189
# The compiler can only warn and ignore the option if not recognized
6190
# So say no if there are warnings other than the usual output.
6191
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6192
$SED '/^$/d' conftest.err >conftest.er2
6193
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6194
lt_prog_compiler_pic_works=yes
6200
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6201
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6203
if test x"$lt_prog_compiler_pic_works" = xyes; then
6204
case $lt_prog_compiler_pic in
6206
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6209
lt_prog_compiler_pic=
6210
lt_prog_compiler_can_build_shared=no
6215
# For platforms which do not support PIC, -DPIC is meaningless:
6217
lt_prog_compiler_pic=
6220
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6224
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6225
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6226
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6227
echo $ECHO_N "(cached) $ECHO_C" >&6
6229
lt_cv_prog_compiler_c_o=no
6230
$rm -r conftest 2>/dev/null
6234
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6236
lt_compiler_flag="-o out/conftest2.$ac_objext"
6237
# Insert the option either (1) after the last *FLAGS variable, or
6238
# (2) before a word containing "conftest.", or (3) at the end.
6239
# Note that $ac_compile itself does not contain backslashes and begins
6240
# with a dollar sign (not a hyphen), so the echo should work correctly.
6241
lt_compile=`echo "$ac_compile" | $SED \
6242
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6243
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6244
-e 's:$: $lt_compiler_flag:'`
6245
(eval echo "\"\$as_me:6245: $lt_compile\"" >&5)
6246
(eval "$lt_compile" 2>out/conftest.err)
6248
cat out/conftest.err >&5
6249
echo "$as_me:6249: \$? = $ac_status" >&5
6250
if (exit $ac_status) && test -s out/conftest2.$ac_objext
6252
# The compiler can only warn and ignore the option if not recognized
6253
# So say no if there are warnings
6254
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6255
$SED '/^$/d' out/conftest.err >out/conftest.er2
6256
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6257
lt_cv_prog_compiler_c_o=yes
6262
# SGI C++ compiler will create directory out/ii_files/ for
6263
# template instantiation
6264
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6265
$rm out/* && rmdir out
6271
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6272
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6275
hard_links="nottested"
6276
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6277
# do not overwrite the value of need_locks provided by the user
6278
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6279
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6282
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6284
ln conftest.a conftest.b 2>&5 || hard_links=no
6285
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6286
echo "$as_me:$LINENO: result: $hard_links" >&5
6287
echo "${ECHO_T}$hard_links" >&6
6288
if test "$hard_links" = no; then
6289
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6290
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6297
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6298
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6301
allow_undefined_flag=
6302
enable_shared_with_static_runtimes=no
6304
archive_expsym_cmds=
6305
old_archive_From_new_cmds=
6306
old_archive_from_expsyms_cmds=
6307
export_dynamic_flag_spec=
6308
whole_archive_flag_spec=
6309
thread_safe_flag_spec=
6310
hardcode_libdir_flag_spec=
6311
hardcode_libdir_flag_spec_ld=
6312
hardcode_libdir_separator=
6315
hardcode_shlibpath_var=unsupported
6316
link_all_deplibs=unknown
6317
hardcode_automatic=no
6320
always_export_symbols=no
6321
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6322
# include_expsyms should be a list of space-separated symbols to be *always*
6323
# included in the symbol list
6325
# exclude_expsyms can be an extended regexp of symbols to exclude
6326
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6327
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6328
# as well as any symbol that contains `d'.
6329
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6330
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6331
# platforms (ab)use it in PIC code, but their linkers get confused if
6332
# the symbol is explicitly referenced. Since portable code cannot
6333
# rely on this symbol name, it's probably fine to never include it in
6334
# preloaded symbol tables.
6335
extract_expsyms_cmds=
6336
# Just being paranoid about ensuring that cc_basename is set.
6337
for cc_temp in $compiler""; do
6339
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6340
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6345
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6348
cygwin* | mingw* | pw32*)
6349
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6350
# When not using gcc, we currently assume that we are using
6351
# Microsoft Visual C++.
6352
if test "$GCC" != yes; then
6362
if test "$with_gnu_ld" = yes; then
6363
# If archive_cmds runs LD, not CC, wlarc should be empty
6366
# Set some defaults for GNU ld with shared library support. These
6367
# are reset later if shared libraries are not supported. Putting them
6368
# here allows them to be overridden if necessary.
6369
runpath_var=LD_RUN_PATH
6370
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6371
export_dynamic_flag_spec='${wl}--export-dynamic'
6372
# ancient GNU ld didn't support --whole-archive et. al.
6373
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6374
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6376
whole_archive_flag_spec=
6378
supports_anon_versioning=no
6379
case `$LD -v 2>/dev/null` in
6380
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6381
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6382
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6383
*\ 2.11.*) ;; # other 2.11 versions
6384
*) supports_anon_versioning=yes ;;
6387
# See if GNU ld supports shared libraries.
6389
aix3* | aix4* | aix5*)
6390
# On AIX/PPC, the GNU linker is very broken
6391
if test "$host_cpu" != ia64; then
6395
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6396
*** to be unable to reliably create shared libraries on AIX.
6397
*** Therefore, libtool is disabling shared libraries support. If you
6398
*** really care for shared libraries, you may want to modify your PATH
6399
*** so that a non-GNU linker is found, and then restart.
6406
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)'
6407
hardcode_libdir_flag_spec='-L$libdir'
6408
hardcode_minus_L=yes
6410
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6411
# that the semantics of dynamic libraries on AmigaOS, at least up
6412
# to version 4, is to share data among multiple programs linked
6413
# with the same dynamic library. Since this doesn't match the
6414
# behavior of shared libraries on other platforms, we can't use
6420
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6421
allow_undefined_flag=unsupported
6422
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6423
# support --undefined. This deserves some investigation. FIXME
6424
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6430
cygwin* | mingw* | pw32*)
6431
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6432
# as there is no search path for DLLs.
6433
hardcode_libdir_flag_spec='-L$libdir'
6434
allow_undefined_flag=unsupported
6435
always_export_symbols=no
6436
enable_shared_with_static_runtimes=yes
6437
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6439
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6440
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6441
# If the export-symbols file already is a .def file (1st line
6442
# is EXPORTS), use it as is; otherwise, prepend...
6443
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6444
cp $export_symbols $output_objdir/$soname.def;
6446
echo EXPORTS > $output_objdir/$soname.def;
6447
cat $export_symbols >> $output_objdir/$soname.def;
6449
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6456
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6458
case $cc_basename,$host_cpu in
6459
pgcc*) # Portland Group C compiler
6460
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6461
tmp_addflag=' $pic_flag'
6463
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6464
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6465
tmp_addflag=' $pic_flag -Mnomain' ;;
6466
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6467
tmp_addflag=' -i_dynamic' ;;
6468
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6469
tmp_addflag=' -i_dynamic -nofor_main' ;;
6470
ifc* | ifort*) # Intel Fortran compiler
6471
tmp_addflag=' -nofor_main' ;;
6473
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6475
if test $supports_anon_versioning = yes; then
6476
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6477
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6478
$echo "local: *; };" >> $output_objdir/$libname.ver~
6479
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6487
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6488
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6491
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6492
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6497
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6501
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6502
*** create shared libraries on Solaris systems. Therefore, libtool
6503
*** is disabling shared libraries support. We urge you to upgrade GNU
6504
*** binutils to release 2.9.1 or newer. Another option is to modify
6505
*** your PATH or compiler configuration so that the native linker is
6506
*** used, and then restart.
6509
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6510
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6511
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6518
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6521
hardcode_shlibpath_var=no
6525
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6526
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6527
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6534
if test "$ld_shlibs" = no; then
6536
hardcode_libdir_flag_spec=
6537
export_dynamic_flag_spec=
6538
whole_archive_flag_spec=
6541
# PORTME fill in a description of your system's linker (not GNU ld)
6544
allow_undefined_flag=unsupported
6545
always_export_symbols=yes
6546
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'
6547
# Note: this linker hardcodes the directories in LIBPATH if there
6548
# are no directories specified by -L.
6549
hardcode_minus_L=yes
6550
if test "$GCC" = yes && test -z "$link_static_flag"; then
6551
# Neither direct hardcoding nor static linking is supported with a
6553
hardcode_direct=unsupported
6558
if test "$host_cpu" = ia64; then
6559
# On IA64, the linker does run time linking by default, so we don't
6560
# have to do anything special.
6561
aix_use_runtimelinking=no
6562
exp_sym_flag='-Bexport'
6565
# If we're using GNU nm, then we don't want the "-C" option.
6566
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6567
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6568
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'
6570
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'
6572
aix_use_runtimelinking=no
6574
# Test if we are trying to use run time linking or normal
6575
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6576
# need to do runtime linking.
6577
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6578
for ld_flag in $LDFLAGS; do
6579
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6580
aix_use_runtimelinking=yes
6586
exp_sym_flag='-bexport'
6587
no_entry_flag='-bnoentry'
6590
# When large executables or shared objects are built, AIX ld can
6591
# have problems creating the table of contents. If linking a library
6592
# or program results in "error TOC overflow" add -mminimal-toc to
6593
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6594
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6598
hardcode_libdir_separator=':'
6599
link_all_deplibs=yes
6601
if test "$GCC" = yes; then
6602
case $host_os in aix4.[012]|aix4.[012].*)
6603
# We only want to do this on AIX 4.2 and lower, the check
6604
# below for broken collect2 doesn't work under 4.3+
6605
collect2name=`${CC} -print-prog-name=collect2`
6606
if test -f "$collect2name" && \
6607
strings "$collect2name" | grep resolve_lib_name >/dev/null
6609
# We have reworked collect2
6612
# We have old collect2
6613
hardcode_direct=unsupported
6614
# It fails to find uninstalled libraries when the uninstalled
6615
# path is not listed in the libpath. Setting hardcode_minus_L
6616
# to unsupported forces relinking
6617
hardcode_minus_L=yes
6618
hardcode_libdir_flag_spec='-L$libdir'
6619
hardcode_libdir_separator=
6622
shared_flag='-shared'
6623
if test "$aix_use_runtimelinking" = yes; then
6624
shared_flag="$shared_flag "'${wl}-G'
6628
if test "$host_cpu" = ia64; then
6629
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6630
# chokes on -Wl,-G. The following line is correct:
6633
if test "$aix_use_runtimelinking" = yes; then
6634
shared_flag='${wl}-G'
6636
shared_flag='${wl}-bM:SRE'
6641
# It seems that -bexpall does not export symbols beginning with
6642
# underscore (_), so it is better to generate a list of symbols to export.
6643
always_export_symbols=yes
6644
if test "$aix_use_runtimelinking" = yes; then
6645
# Warning - without using the other runtime loading flags (-brtl),
6646
# -berok will link without error, but may produce a broken library.
6647
allow_undefined_flag='-berok'
6648
# Determine the default libpath from the value encoded in an empty executable.
6649
cat >conftest.$ac_ext <<_ACEOF
6652
cat confdefs.h >>conftest.$ac_ext
6653
cat >>conftest.$ac_ext <<_ACEOF
6654
/* end confdefs.h. */
6664
rm -f conftest.$ac_objext conftest$ac_exeext
6665
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6666
(eval $ac_link) 2>conftest.er1
6668
grep -v '^ *+' conftest.er1 >conftest.err
6670
cat conftest.err >&5
6671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672
(exit $ac_status); } &&
6673
{ ac_try='test -z "$ac_c_werror_flag"
6674
|| test ! -s conftest.err'
6675
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679
(exit $ac_status); }; } &&
6680
{ ac_try='test -s conftest$ac_exeext'
6681
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685
(exit $ac_status); }; }; then
6687
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6689
# Check for a 64-bit object if we didn't find anything.
6690
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; }
6693
echo "$as_me: failed program was:" >&5
6694
sed 's/^/| /' conftest.$ac_ext >&5
6697
rm -f conftest.err conftest.$ac_objext \
6698
conftest$ac_exeext conftest.$ac_ext
6699
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6701
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6702
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"
6704
if test "$host_cpu" = ia64; then
6705
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6706
allow_undefined_flag="-z nodefs"
6707
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"
6709
# Determine the default libpath from the value encoded in an empty executable.
6710
cat >conftest.$ac_ext <<_ACEOF
6713
cat confdefs.h >>conftest.$ac_ext
6714
cat >>conftest.$ac_ext <<_ACEOF
6715
/* end confdefs.h. */
6725
rm -f conftest.$ac_objext conftest$ac_exeext
6726
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6727
(eval $ac_link) 2>conftest.er1
6729
grep -v '^ *+' conftest.er1 >conftest.err
6731
cat conftest.err >&5
6732
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733
(exit $ac_status); } &&
6734
{ ac_try='test -z "$ac_c_werror_flag"
6735
|| test ! -s conftest.err'
6736
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6739
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740
(exit $ac_status); }; } &&
6741
{ ac_try='test -s conftest$ac_exeext'
6742
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746
(exit $ac_status); }; }; then
6748
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6750
# Check for a 64-bit object if we didn't find anything.
6751
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; }
6754
echo "$as_me: failed program was:" >&5
6755
sed 's/^/| /' conftest.$ac_ext >&5
6758
rm -f conftest.err conftest.$ac_objext \
6759
conftest$ac_exeext conftest.$ac_ext
6760
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6762
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6763
# Warning - without using the other run time loading flags,
6764
# -berok will link without error, but may produce a broken library.
6765
no_undefined_flag=' ${wl}-bernotok'
6766
allow_undefined_flag=' ${wl}-berok'
6767
# -bexpall does not export symbols beginning with underscore (_)
6768
always_export_symbols=yes
6769
# Exported symbols can be pulled into shared objects from archives
6770
whole_archive_flag_spec=' '
6771
archive_cmds_need_lc=yes
6772
# This is similar to how AIX traditionally builds its shared libraries.
6773
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'
6779
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)'
6780
hardcode_libdir_flag_spec='-L$libdir'
6781
hardcode_minus_L=yes
6782
# see comment about different semantics on the GNU ld section
6787
export_dynamic_flag_spec=-rdynamic
6790
cygwin* | mingw* | pw32*)
6791
# When not using gcc, we currently assume that we are using
6792
# Microsoft Visual C++.
6793
# hardcode_libdir_flag_spec is actually meaningless, as there is
6794
# no search path for DLLs.
6795
hardcode_libdir_flag_spec=' '
6796
allow_undefined_flag=unsupported
6797
# Tell ltmain to make .lib files, not .a files.
6799
# Tell ltmain to make .dll files, not .so files.
6801
# FIXME: Setting linknames here is a bad hack.
6802
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6803
# The linker will automatically build a .lib file if we build a DLL.
6804
old_archive_From_new_cmds='true'
6805
# FIXME: Should let the user specify the lib program.
6806
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6807
fix_srcfile_path='`cygpath -w "$srcfile"`'
6808
enable_shared_with_static_runtimes=yes
6811
darwin* | rhapsody*)
6813
rhapsody* | darwin1.[012])
6814
allow_undefined_flag='${wl}-undefined ${wl}suppress'
6817
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6818
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6820
case ${MACOSX_DEPLOYMENT_TARGET} in
6822
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6825
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6831
archive_cmds_need_lc=no
6833
hardcode_automatic=yes
6834
hardcode_shlibpath_var=unsupported
6835
whole_archive_flag_spec=''
6836
link_all_deplibs=yes
6837
if test "$GCC" = yes ; then
6838
output_verbose_link_cmd='echo'
6839
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6840
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6841
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6842
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}'
6843
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}'
6845
case $cc_basename in
6847
output_verbose_link_cmd='echo'
6848
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6849
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6850
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6851
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6852
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}'
6862
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6863
hardcode_libdir_flag_spec='-L$libdir'
6864
hardcode_shlibpath_var=no
6871
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6872
# support. Future versions do this automatically, but an explicit c++rt0.o
6873
# does not break anything, and helps significantly (at the cost of a little
6876
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6877
hardcode_libdir_flag_spec='-R$libdir'
6879
hardcode_shlibpath_var=no
6882
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
6884
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6886
hardcode_minus_L=yes
6887
hardcode_shlibpath_var=no
6890
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6891
freebsd* | kfreebsd*-gnu | dragonfly*)
6892
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6893
hardcode_libdir_flag_spec='-R$libdir'
6895
hardcode_shlibpath_var=no
6899
if test "$GCC" = yes; then
6900
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'
6902
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'
6904
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6905
hardcode_libdir_separator=:
6908
# hardcode_minus_L: Not really in the search PATH,
6909
# but as the default location of the library.
6910
hardcode_minus_L=yes
6911
export_dynamic_flag_spec='${wl}-E'
6915
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6918
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6921
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6927
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6930
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6934
if test "$with_gnu_ld" = no; then
6937
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6938
hardcode_libdir_flag_spec_ld='+b $libdir'
6939
hardcode_libdir_separator=:
6941
hardcode_shlibpath_var=no
6944
hardcode_libdir_flag_spec='-L$libdir'
6946
hardcode_shlibpath_var=no
6948
# hardcode_minus_L: Not really in the search PATH,
6949
# but as the default location of the library.
6950
hardcode_minus_L=yes
6953
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6954
hardcode_libdir_separator=:
6956
export_dynamic_flag_spec='${wl}-E'
6958
# hardcode_minus_L: Not really in the search PATH,
6959
# but as the default location of the library.
6960
hardcode_minus_L=yes
6966
irix5* | irix6* | nonstopux*)
6967
if test "$GCC" = yes; then
6968
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'
6970
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'
6971
hardcode_libdir_flag_spec_ld='-rpath $libdir'
6973
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6974
hardcode_libdir_separator=:
6975
link_all_deplibs=yes
6979
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6980
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6982
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6984
hardcode_libdir_flag_spec='-R$libdir'
6986
hardcode_shlibpath_var=no
6990
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6992
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6993
hardcode_libdir_separator=:
6994
hardcode_shlibpath_var=no
6999
hardcode_shlibpath_var=no
7000
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7001
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7002
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7003
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7004
export_dynamic_flag_spec='${wl}-E'
7007
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7008
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7009
hardcode_libdir_flag_spec='-R$libdir'
7012
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7013
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7020
hardcode_libdir_flag_spec='-L$libdir'
7021
hardcode_minus_L=yes
7022
allow_undefined_flag=unsupported
7023
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'
7024
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7028
if test "$GCC" = yes; then
7029
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7030
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'
7032
allow_undefined_flag=' -expect_unresolved \*'
7033
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'
7035
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7036
hardcode_libdir_separator=:
7039
osf4* | osf5*) # as osf3* with the addition of -msym flag
7040
if test "$GCC" = yes; then
7041
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7042
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'
7043
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7045
allow_undefined_flag=' -expect_unresolved \*'
7046
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'
7047
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7048
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7050
# Both c and cxx compiler support -rpath directly
7051
hardcode_libdir_flag_spec='-rpath $libdir'
7053
hardcode_libdir_separator=:
7057
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7058
hardcode_shlibpath_var=no
7059
export_dynamic_flag_spec='${wl}-Bexport'
7060
runpath_var=LD_RUN_PATH
7061
hardcode_runpath_var=yes
7065
no_undefined_flag=' -z text'
7066
if test "$GCC" = yes; then
7068
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7069
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7070
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7073
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7074
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7075
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7077
hardcode_libdir_flag_spec='-R$libdir'
7078
hardcode_shlibpath_var=no
7080
solaris2.[0-5] | solaris2.[0-5].*) ;;
7082
# The compiler driver will combine linker options so we
7083
# cannot just pass the convience library names through
7084
# without $wl, iff we do not link with $LD.
7085
# Luckily, gcc supports the same syntax we need for Sun Studio.
7086
# Supported since Solaris 2.6 (maybe 2.5.1?)
7089
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7091
whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7094
link_all_deplibs=yes
7098
if test "x$host_vendor" = xsequent; then
7099
# Use $CC to link under sequent, because it throws in some extra .o
7100
# files that make .init and .fini sections work.
7101
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7103
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7105
hardcode_libdir_flag_spec='-L$libdir'
7107
hardcode_minus_L=yes
7108
hardcode_shlibpath_var=no
7112
case $host_vendor in
7114
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7115
hardcode_direct=yes # is this really true???
7118
## LD is ld it makes a PLAMLIB
7119
## CC just makes a GrossModule.
7120
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7121
reload_cmds='$CC -r -o $output$reload_objs'
7125
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7126
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7129
runpath_var='LD_RUN_PATH'
7130
hardcode_shlibpath_var=no
7134
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7135
hardcode_shlibpath_var=no
7136
export_dynamic_flag_spec='-Bexport'
7140
if test -d /usr/nec; then
7141
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7142
hardcode_shlibpath_var=no
7143
runpath_var=LD_RUN_PATH
7144
hardcode_runpath_var=yes
7150
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7153
hardcode_shlibpath_var=no
7154
hardcode_runpath_var=yes
7155
runpath_var=LD_RUN_PATH
7158
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7159
no_undefined_flag='${wl}-z ${wl}text'
7160
if test "$GCC" = yes; then
7161
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7163
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7165
runpath_var='LD_RUN_PATH'
7166
hardcode_shlibpath_var=no
7170
no_undefined_flag=' -z text'
7171
# $CC -shared without GNU ld will not create a library from C++
7172
# object files and a static libstdc++, better avoid it by now
7173
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7174
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7175
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7176
hardcode_libdir_flag_spec=
7177
hardcode_shlibpath_var=no
7178
runpath_var='LD_RUN_PATH'
7182
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7183
hardcode_libdir_flag_spec='-L$libdir'
7184
hardcode_shlibpath_var=no
7193
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7194
echo "${ECHO_T}$ld_shlibs" >&6
7195
test "$ld_shlibs" = no && can_build_shared=no
7197
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7198
if test "$GCC" = yes; then
7199
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7203
# Do we need to explicitly link libc?
7205
case "x$archive_cmds_need_lc" in
7207
# Assume -lc should be added
7208
archive_cmds_need_lc=yes
7210
if test "$enable_shared" = yes && test "$GCC" = yes; then
7211
case $archive_cmds in
7213
# FIXME: we may have to deal with multi-command sequences.
7216
# Test whether the compiler implicitly links with -lc since on some
7217
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7218
# to ld, don't add -lc before -lgcc.
7219
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7220
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7222
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7224
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7225
(eval $ac_compile) 2>&5
7227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228
(exit $ac_status); } 2>conftest.err; then
7231
libobjs=conftest.$ac_objext
7233
wl=$lt_prog_compiler_wl
7239
lt_save_allow_undefined_flag=$allow_undefined_flag
7240
allow_undefined_flag=
7241
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7242
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245
(exit $ac_status); }
7247
archive_cmds_need_lc=no
7249
archive_cmds_need_lc=yes
7251
allow_undefined_flag=$lt_save_allow_undefined_flag
7253
cat conftest.err 1>&5
7256
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7257
echo "${ECHO_T}$archive_cmds_need_lc" >&6
7264
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7265
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7267
libname_spec='lib$name'
7275
shlibpath_overrides_runpath=unknown
7277
dynamic_linker="$host_os ld.so"
7278
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7279
if test "$GCC" = yes; then
7280
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7281
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7282
# if the path contains ";" then we assume it to be the separator
7283
# otherwise default to the standard path separator (i.e. ":") - it is
7284
# assumed that no part of a normal pathname contains ";" but that should
7285
# okay in the real world where ";" in dirpaths is itself problematic.
7286
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7288
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7291
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7293
need_lib_prefix=unknown
7294
hardcode_into_libs=no
7296
# when you set need_version to no, make sure it does not cause -set_version
7297
# flags to be left without arguments
7298
need_version=unknown
7303
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7304
shlibpath_var=LIBPATH
7306
# AIX 3 has no versioning support, so we append a major version to the name.
7307
soname_spec='${libname}${release}${shared_ext}$major'
7314
hardcode_into_libs=yes
7315
if test "$host_cpu" = ia64; then
7316
# AIX 5 supports IA64
7317
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7318
shlibpath_var=LD_LIBRARY_PATH
7320
# With GCC up to 2.95.x, collect2 would create an import file
7321
# for dependence libraries. The import file would start with
7322
# the line `#! .'. This would cause the generated library to
7323
# depend on `.', always an invalid library. This was fixed in
7324
# development snapshots of GCC prior to 3.0.
7326
aix4 | aix4.[01] | aix4.[01].*)
7327
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7329
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7336
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7337
# soname into executable. Probably we can add versioning support to
7338
# collect2, so additional links can be useful in future.
7339
if test "$aix_use_runtimelinking" = yes; then
7340
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
7341
# instead of lib<name>.a to let people know that these are not
7342
# typical AIX shared libraries.
7343
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7345
# We preserve .a as extension for shared libraries through AIX4.2
7346
# and later when we are not doing run time linking.
7347
library_names_spec='${libname}${release}.a $libname.a'
7348
soname_spec='${libname}${release}${shared_ext}$major'
7350
shlibpath_var=LIBPATH
7355
library_names_spec='$libname.ixlibrary $libname.a'
7356
# Create ${libname}_ixlibrary.a entries in /sys/libs.
7357
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'
7361
library_names_spec='${libname}${shared_ext}'
7362
dynamic_linker="$host_os ld.so"
7363
shlibpath_var=LIBRARY_PATH
7369
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7370
soname_spec='${libname}${release}${shared_ext}$major'
7371
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7372
shlibpath_var=LD_LIBRARY_PATH
7373
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7374
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7375
# the default ld.so.conf also contains /usr/contrib/lib and
7376
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7377
# libtool to hard-code these into programs
7380
cygwin* | mingw* | pw32*)
7381
version_type=windows
7386
case $GCC,$host_os in
7387
yes,cygwin* | yes,mingw* | yes,pw32*)
7388
library_names_spec='$libname.dll.a'
7389
# DLL is installed to $(libdir)/../bin by postinstall_cmds
7390
postinstall_cmds='base_file=`basename \${file}`~
7391
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7392
dldir=$destdir/`dirname \$dlpath`~
7393
test -d \$dldir || mkdir -p \$dldir~
7394
$install_prog $dir/$dlname \$dldir/$dlname~
7395
chmod a+x \$dldir/$dlname'
7396
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7397
dlpath=$dir/\$dldll~
7399
shlibpath_overrides_runpath=yes
7403
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
7404
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7405
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7408
# MinGW DLLs use traditional 'lib' prefix
7409
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7410
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7411
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7412
# It is most probably a Windows format PATH printed by
7413
# mingw gcc, but we are running on Cygwin. Gcc prints its search
7414
# path with ; separators, and with drive letters. We can handle the
7415
# drive letters (cygwin fileutils understands them), so leave them,
7416
# especially as we might pass files found there to a mingw objdump,
7417
# which wouldn't understand a cygwinified path. Ahh.
7418
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7420
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7424
# pw32 DLLs use 'pw' prefix rather than 'lib'
7425
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7431
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7434
dynamic_linker='Win32 ld.exe'
7435
# FIXME: first we should search . and the directory the executable is in
7439
darwin* | rhapsody*)
7440
dynamic_linker="$host_os dyld"
7444
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7445
soname_spec='${libname}${release}${major}$shared_ext'
7446
shlibpath_overrides_runpath=yes
7447
shlibpath_var=DYLD_LIBRARY_PATH
7448
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7449
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7450
if test "$GCC" = yes; then
7451
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"`
7453
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7455
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7462
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7463
soname_spec='${libname}${release}${shared_ext}$major'
7464
shlibpath_var=LD_LIBRARY_PATH
7475
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7476
soname_spec='${libname}${release}${shared_ext}$major'
7477
shlibpath_var=LD_LIBRARY_PATH
7478
shlibpath_overrides_runpath=no
7479
hardcode_into_libs=yes
7480
dynamic_linker='GNU ld.so'
7483
freebsd* | dragonfly*)
7484
# DragonFly does not have aout. When/if they implement a new
7485
# versioning mechanism, adjust this.
7486
if test -x /usr/bin/objformat; then
7487
objformat=`/usr/bin/objformat`
7490
freebsd[123]*) objformat=aout ;;
7494
version_type=freebsd-$objformat
7495
case $version_type in
7497
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7502
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7506
shlibpath_var=LD_LIBRARY_PATH
7509
shlibpath_overrides_runpath=yes
7511
freebsd3.[01]* | freebsdelf3.[01]*)
7512
shlibpath_overrides_runpath=yes
7513
hardcode_into_libs=yes
7516
shlibpath_overrides_runpath=no
7517
hardcode_into_libs=yes
7526
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7527
soname_spec='${libname}${release}${shared_ext}$major'
7528
shlibpath_var=LD_LIBRARY_PATH
7529
hardcode_into_libs=yes
7532
hpux9* | hpux10* | hpux11*)
7533
# Give a soname corresponding to the major version so that dld.sl refuses to
7534
# link against other versions.
7541
hardcode_into_libs=yes
7542
dynamic_linker="$host_os dld.so"
7543
shlibpath_var=LD_LIBRARY_PATH
7544
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7545
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7546
soname_spec='${libname}${release}${shared_ext}$major'
7547
if test "X$HPUX_IA64_MODE" = X32; then
7548
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7550
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7552
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7556
hardcode_into_libs=yes
7557
dynamic_linker="$host_os dld.sl"
7558
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7559
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7560
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7561
soname_spec='${libname}${release}${shared_ext}$major'
7562
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7563
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7567
dynamic_linker="$host_os dld.sl"
7568
shlibpath_var=SHLIB_PATH
7569
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7570
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7571
soname_spec='${libname}${release}${shared_ext}$major'
7574
# HP-UX runs *really* slowly unless shared libraries are mode 555.
7575
postinstall_cmds='chmod 555 $lib'
7578
irix5* | irix6* | nonstopux*)
7580
nonstopux*) version_type=nonstopux ;;
7582
if test "$lt_cv_prog_gnu_ld" = yes; then
7590
soname_spec='${libname}${release}${shared_ext}$major'
7591
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7593
irix5* | nonstopux*)
7597
case $LD in # libtool.m4 will add one of these switches to LD
7598
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7599
libsuff= shlibsuff= libmagic=32-bit;;
7600
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7601
libsuff=32 shlibsuff=N32 libmagic=N32;;
7602
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7603
libsuff=64 shlibsuff=64 libmagic=64-bit;;
7604
*) libsuff= shlibsuff= libmagic=never-match;;
7608
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7609
shlibpath_overrides_runpath=no
7610
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7611
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7612
hardcode_into_libs=yes
7615
# No shared lib support for Linux oldld, aout, or coff.
7616
linux*oldld* | linux*aout* | linux*coff*)
7620
# This must be Linux ELF.
7625
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7626
soname_spec='${libname}${release}${shared_ext}$major'
7627
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7628
shlibpath_var=LD_LIBRARY_PATH
7629
shlibpath_overrides_runpath=no
7630
# This implies no fast_install, which is unacceptable.
7631
# Some rework will be needed to allow for fast_install
7632
# before this can be enabled.
7633
hardcode_into_libs=yes
7635
# Append ld.so.conf contents to the search path
7636
if test -f /etc/ld.so.conf; then
7637
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
7638
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7641
# We used to test for /lib/ld.so.1 and disable shared libraries on
7642
# powerpc, because MkLinux only supported shared libraries with the
7643
# GNU dynamic linker. Since this was broken with cross compilers,
7644
# most powerpc-linux boxes support dynamic linking these days and
7645
# people can always --disable-shared, the test was removed, and we
7646
# assume the GNU/Linux dynamic linker is in use.
7647
dynamic_linker='GNU/Linux ld.so'
7654
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7655
soname_spec='${libname}${release}${shared_ext}$major'
7656
shlibpath_var=LD_LIBRARY_PATH
7657
shlibpath_overrides_runpath=no
7658
hardcode_into_libs=yes
7659
dynamic_linker='GNU ld.so'
7666
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7667
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7668
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7669
dynamic_linker='NetBSD (a.out) ld.so'
7671
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7672
soname_spec='${libname}${release}${shared_ext}$major'
7673
dynamic_linker='NetBSD ld.elf_so'
7675
shlibpath_var=LD_LIBRARY_PATH
7676
shlibpath_overrides_runpath=yes
7677
hardcode_into_libs=yes
7682
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7683
shlibpath_var=LD_LIBRARY_PATH
7684
shlibpath_overrides_runpath=yes
7691
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7692
soname_spec='${libname}${release}${shared_ext}$major'
7693
shlibpath_var=LD_LIBRARY_PATH
7694
shlibpath_overrides_runpath=yes
7700
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
7702
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
7703
*) need_version=no ;;
7705
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7706
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7707
shlibpath_var=LD_LIBRARY_PATH
7708
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7710
openbsd2.[89] | openbsd2.[89].*)
7711
shlibpath_overrides_runpath=no
7714
shlibpath_overrides_runpath=yes
7718
shlibpath_overrides_runpath=yes
7723
libname_spec='$name'
7726
library_names_spec='$libname${shared_ext} $libname.a'
7727
dynamic_linker='OS/2 ld.exe'
7728
shlibpath_var=LIBPATH
7731
osf3* | osf4* | osf5*)
7735
soname_spec='${libname}${release}${shared_ext}$major'
7736
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7737
shlibpath_var=LD_LIBRARY_PATH
7738
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7739
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7744
soname_spec='${libname}${release}${shared_ext}$major'
7745
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7746
shlibpath_var=LD_LIBRARY_PATH
7753
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7754
soname_spec='${libname}${release}${shared_ext}$major'
7755
shlibpath_var=LD_LIBRARY_PATH
7756
shlibpath_overrides_runpath=yes
7757
hardcode_into_libs=yes
7758
# ldd complains unless libraries are executable
7759
postinstall_cmds='chmod +x $lib'
7764
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7765
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7766
shlibpath_var=LD_LIBRARY_PATH
7767
shlibpath_overrides_runpath=yes
7768
if test "$with_gnu_ld" = yes; then
7774
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7776
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7777
soname_spec='${libname}${release}${shared_ext}$major'
7778
shlibpath_var=LD_LIBRARY_PATH
7779
case $host_vendor in
7781
shlibpath_overrides_runpath=no
7783
export_dynamic_flag_spec='${wl}-Blargedynsym'
7784
runpath_var=LD_RUN_PATH
7792
shlibpath_overrides_runpath=no
7793
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7799
if test -d /usr/nec ;then
7801
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7802
soname_spec='$libname${shared_ext}.$major'
7803
shlibpath_var=LD_LIBRARY_PATH
7809
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7810
soname_spec='${libname}${release}${shared_ext}$major'
7811
shlibpath_var=LD_LIBRARY_PATH
7818
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7819
echo "${ECHO_T}$dynamic_linker" >&6
7820
test "$dynamic_linker" = no && can_build_shared=no
7822
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7823
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7825
if test -n "$hardcode_libdir_flag_spec" || \
7826
test -n "$runpath_var" || \
7827
test "X$hardcode_automatic" = "Xyes" ; then
7829
# We can hardcode non-existant directories.
7830
if test "$hardcode_direct" != no &&
7831
# If the only mechanism to avoid hardcoding is shlibpath_var, we
7832
# have to relink, otherwise we might link with an installed library
7833
# when we should be linking with a yet-to-be-installed one
7834
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7835
test "$hardcode_minus_L" != no; then
7836
# Linking always hardcodes the temporary library directory.
7837
hardcode_action=relink
7839
# We can link without hardcoding, and we can hardcode nonexisting dirs.
7840
hardcode_action=immediate
7843
# We cannot hardcode anything, or else we can only hardcode existing
7845
hardcode_action=unsupported
7847
echo "$as_me:$LINENO: result: $hardcode_action" >&5
7848
echo "${ECHO_T}$hardcode_action" >&6
7850
if test "$hardcode_action" = relink; then
7851
# Fast installation is not supported
7852
enable_fast_install=no
7853
elif test "$shlibpath_overrides_runpath" = yes ||
7854
test "$enable_shared" = no; then
7855
# Fast installation is not necessary
7856
enable_fast_install=needless
7861
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7862
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7863
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7864
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7865
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7866
echo "$as_me:$LINENO: result: yes" >&5
7867
echo "${ECHO_T}yes" >&6
7869
# FIXME - insert some real tests, host_os isn't really good enough
7872
if test -n "$STRIP" ; then
7873
striplib="$STRIP -x"
7874
echo "$as_me:$LINENO: result: yes" >&5
7875
echo "${ECHO_T}yes" >&6
7877
echo "$as_me:$LINENO: result: no" >&5
7878
echo "${ECHO_T}no" >&6
7882
echo "$as_me:$LINENO: result: no" >&5
7883
echo "${ECHO_T}no" >&6
7888
if test "x$enable_dlopen" != xyes; then
7889
enable_dlopen=unknown
7890
enable_dlopen_self=unknown
7891
enable_dlopen_self_static=unknown
7898
lt_cv_dlopen="load_add_on"
7900
lt_cv_dlopen_self=yes
7904
lt_cv_dlopen="LoadLibrary"
7909
lt_cv_dlopen="dlopen"
7914
# if libdl is installed we need to link against it
7915
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7916
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7917
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7918
echo $ECHO_N "(cached) $ECHO_C" >&6
7920
ac_check_lib_save_LIBS=$LIBS
7922
cat >conftest.$ac_ext <<_ACEOF
7925
cat confdefs.h >>conftest.$ac_ext
7926
cat >>conftest.$ac_ext <<_ACEOF
7927
/* end confdefs.h. */
7929
/* Override any gcc2 internal prototype to avoid an error. */
7933
/* We use char because int might match the return type of a gcc2
7934
builtin and then its argument prototype would still apply. */
7944
rm -f conftest.$ac_objext conftest$ac_exeext
7945
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7946
(eval $ac_link) 2>conftest.er1
7948
grep -v '^ *+' conftest.er1 >conftest.err
7950
cat conftest.err >&5
7951
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952
(exit $ac_status); } &&
7953
{ ac_try='test -z "$ac_c_werror_flag"
7954
|| test ! -s conftest.err'
7955
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959
(exit $ac_status); }; } &&
7960
{ ac_try='test -s conftest$ac_exeext'
7961
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965
(exit $ac_status); }; }; then
7966
ac_cv_lib_dl_dlopen=yes
7968
echo "$as_me: failed program was:" >&5
7969
sed 's/^/| /' conftest.$ac_ext >&5
7971
ac_cv_lib_dl_dlopen=no
7973
rm -f conftest.err conftest.$ac_objext \
7974
conftest$ac_exeext conftest.$ac_ext
7975
LIBS=$ac_check_lib_save_LIBS
7977
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7978
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7979
if test $ac_cv_lib_dl_dlopen = yes; then
7980
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7985
lt_cv_dlopen_self=yes
7992
echo "$as_me:$LINENO: checking for shl_load" >&5
7993
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7994
if test "${ac_cv_func_shl_load+set}" = set; then
7995
echo $ECHO_N "(cached) $ECHO_C" >&6
7997
cat >conftest.$ac_ext <<_ACEOF
8000
cat confdefs.h >>conftest.$ac_ext
8001
cat >>conftest.$ac_ext <<_ACEOF
8002
/* end confdefs.h. */
8003
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8004
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8005
#define shl_load innocuous_shl_load
8007
/* System header to define __stub macros and hopefully few prototypes,
8008
which can conflict with char shl_load (); below.
8009
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8010
<limits.h> exists even on freestanding compilers. */
8013
# include <limits.h>
8015
# include <assert.h>
8020
/* Override any gcc2 internal prototype to avoid an error. */
8025
/* We use char because int might match the return type of a gcc2
8026
builtin and then its argument prototype would still apply. */
8028
/* The GNU C library defines this for functions which it implements
8029
to always fail with ENOSYS. Some functions are actually named
8030
something starting with __ and the normal name is an alias. */
8031
#if defined (__stub_shl_load) || defined (__stub___shl_load)
8034
char (*f) () = shl_load;
8043
return f != shl_load;
8048
rm -f conftest.$ac_objext conftest$ac_exeext
8049
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8050
(eval $ac_link) 2>conftest.er1
8052
grep -v '^ *+' conftest.er1 >conftest.err
8054
cat conftest.err >&5
8055
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056
(exit $ac_status); } &&
8057
{ ac_try='test -z "$ac_c_werror_flag"
8058
|| test ! -s conftest.err'
8059
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063
(exit $ac_status); }; } &&
8064
{ ac_try='test -s conftest$ac_exeext'
8065
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069
(exit $ac_status); }; }; then
8070
ac_cv_func_shl_load=yes
8072
echo "$as_me: failed program was:" >&5
8073
sed 's/^/| /' conftest.$ac_ext >&5
8075
ac_cv_func_shl_load=no
8077
rm -f conftest.err conftest.$ac_objext \
8078
conftest$ac_exeext conftest.$ac_ext
8080
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8081
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8082
if test $ac_cv_func_shl_load = yes; then
8083
lt_cv_dlopen="shl_load"
8085
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8086
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8087
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8088
echo $ECHO_N "(cached) $ECHO_C" >&6
8090
ac_check_lib_save_LIBS=$LIBS
8092
cat >conftest.$ac_ext <<_ACEOF
8095
cat confdefs.h >>conftest.$ac_ext
8096
cat >>conftest.$ac_ext <<_ACEOF
8097
/* end confdefs.h. */
8099
/* Override any gcc2 internal prototype to avoid an error. */
8103
/* We use char because int might match the return type of a gcc2
8104
builtin and then its argument prototype would still apply. */
8114
rm -f conftest.$ac_objext conftest$ac_exeext
8115
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8116
(eval $ac_link) 2>conftest.er1
8118
grep -v '^ *+' conftest.er1 >conftest.err
8120
cat conftest.err >&5
8121
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122
(exit $ac_status); } &&
8123
{ ac_try='test -z "$ac_c_werror_flag"
8124
|| test ! -s conftest.err'
8125
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129
(exit $ac_status); }; } &&
8130
{ ac_try='test -s conftest$ac_exeext'
8131
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135
(exit $ac_status); }; }; then
8136
ac_cv_lib_dld_shl_load=yes
8138
echo "$as_me: failed program was:" >&5
8139
sed 's/^/| /' conftest.$ac_ext >&5
8141
ac_cv_lib_dld_shl_load=no
8143
rm -f conftest.err conftest.$ac_objext \
8144
conftest$ac_exeext conftest.$ac_ext
8145
LIBS=$ac_check_lib_save_LIBS
8147
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8148
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8149
if test $ac_cv_lib_dld_shl_load = yes; then
8150
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8152
echo "$as_me:$LINENO: checking for dlopen" >&5
8153
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8154
if test "${ac_cv_func_dlopen+set}" = set; then
8155
echo $ECHO_N "(cached) $ECHO_C" >&6
8157
cat >conftest.$ac_ext <<_ACEOF
8160
cat confdefs.h >>conftest.$ac_ext
8161
cat >>conftest.$ac_ext <<_ACEOF
8162
/* end confdefs.h. */
8163
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8164
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8165
#define dlopen innocuous_dlopen
8167
/* System header to define __stub macros and hopefully few prototypes,
8168
which can conflict with char dlopen (); below.
8169
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8170
<limits.h> exists even on freestanding compilers. */
8173
# include <limits.h>
8175
# include <assert.h>
8180
/* Override any gcc2 internal prototype to avoid an error. */
8185
/* We use char because int might match the return type of a gcc2
8186
builtin and then its argument prototype would still apply. */
8188
/* The GNU C library defines this for functions which it implements
8189
to always fail with ENOSYS. Some functions are actually named
8190
something starting with __ and the normal name is an alias. */
8191
#if defined (__stub_dlopen) || defined (__stub___dlopen)
8194
char (*f) () = dlopen;
8208
rm -f conftest.$ac_objext conftest$ac_exeext
8209
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8210
(eval $ac_link) 2>conftest.er1
8212
grep -v '^ *+' conftest.er1 >conftest.err
8214
cat conftest.err >&5
8215
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216
(exit $ac_status); } &&
8217
{ ac_try='test -z "$ac_c_werror_flag"
8218
|| test ! -s conftest.err'
8219
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8222
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223
(exit $ac_status); }; } &&
8224
{ ac_try='test -s conftest$ac_exeext'
8225
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8228
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229
(exit $ac_status); }; }; then
8230
ac_cv_func_dlopen=yes
8232
echo "$as_me: failed program was:" >&5
8233
sed 's/^/| /' conftest.$ac_ext >&5
8235
ac_cv_func_dlopen=no
8237
rm -f conftest.err conftest.$ac_objext \
8238
conftest$ac_exeext conftest.$ac_ext
8240
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8241
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8242
if test $ac_cv_func_dlopen = yes; then
8243
lt_cv_dlopen="dlopen"
8245
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8246
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8247
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8248
echo $ECHO_N "(cached) $ECHO_C" >&6
8250
ac_check_lib_save_LIBS=$LIBS
8252
cat >conftest.$ac_ext <<_ACEOF
8255
cat confdefs.h >>conftest.$ac_ext
8256
cat >>conftest.$ac_ext <<_ACEOF
8257
/* end confdefs.h. */
8259
/* Override any gcc2 internal prototype to avoid an error. */
8263
/* We use char because int might match the return type of a gcc2
8264
builtin and then its argument prototype would still apply. */
8274
rm -f conftest.$ac_objext conftest$ac_exeext
8275
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8276
(eval $ac_link) 2>conftest.er1
8278
grep -v '^ *+' conftest.er1 >conftest.err
8280
cat conftest.err >&5
8281
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282
(exit $ac_status); } &&
8283
{ ac_try='test -z "$ac_c_werror_flag"
8284
|| test ! -s conftest.err'
8285
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289
(exit $ac_status); }; } &&
8290
{ ac_try='test -s conftest$ac_exeext'
8291
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295
(exit $ac_status); }; }; then
8296
ac_cv_lib_dl_dlopen=yes
8298
echo "$as_me: failed program was:" >&5
8299
sed 's/^/| /' conftest.$ac_ext >&5
8301
ac_cv_lib_dl_dlopen=no
8303
rm -f conftest.err conftest.$ac_objext \
8304
conftest$ac_exeext conftest.$ac_ext
8305
LIBS=$ac_check_lib_save_LIBS
8307
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8308
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8309
if test $ac_cv_lib_dl_dlopen = yes; then
8310
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8312
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8313
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8314
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8315
echo $ECHO_N "(cached) $ECHO_C" >&6
8317
ac_check_lib_save_LIBS=$LIBS
8319
cat >conftest.$ac_ext <<_ACEOF
8322
cat confdefs.h >>conftest.$ac_ext
8323
cat >>conftest.$ac_ext <<_ACEOF
8324
/* end confdefs.h. */
8326
/* Override any gcc2 internal prototype to avoid an error. */
8330
/* We use char because int might match the return type of a gcc2
8331
builtin and then its argument prototype would still apply. */
8341
rm -f conftest.$ac_objext conftest$ac_exeext
8342
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8343
(eval $ac_link) 2>conftest.er1
8345
grep -v '^ *+' conftest.er1 >conftest.err
8347
cat conftest.err >&5
8348
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349
(exit $ac_status); } &&
8350
{ ac_try='test -z "$ac_c_werror_flag"
8351
|| test ! -s conftest.err'
8352
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356
(exit $ac_status); }; } &&
8357
{ ac_try='test -s conftest$ac_exeext'
8358
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362
(exit $ac_status); }; }; then
8363
ac_cv_lib_svld_dlopen=yes
8365
echo "$as_me: failed program was:" >&5
8366
sed 's/^/| /' conftest.$ac_ext >&5
8368
ac_cv_lib_svld_dlopen=no
8370
rm -f conftest.err conftest.$ac_objext \
8371
conftest$ac_exeext conftest.$ac_ext
8372
LIBS=$ac_check_lib_save_LIBS
8374
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8375
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8376
if test $ac_cv_lib_svld_dlopen = yes; then
8377
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8379
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8380
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8381
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8382
echo $ECHO_N "(cached) $ECHO_C" >&6
8384
ac_check_lib_save_LIBS=$LIBS
8386
cat >conftest.$ac_ext <<_ACEOF
8389
cat confdefs.h >>conftest.$ac_ext
8390
cat >>conftest.$ac_ext <<_ACEOF
8391
/* end confdefs.h. */
8393
/* Override any gcc2 internal prototype to avoid an error. */
8397
/* We use char because int might match the return type of a gcc2
8398
builtin and then its argument prototype would still apply. */
8408
rm -f conftest.$ac_objext conftest$ac_exeext
8409
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8410
(eval $ac_link) 2>conftest.er1
8412
grep -v '^ *+' conftest.er1 >conftest.err
8414
cat conftest.err >&5
8415
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416
(exit $ac_status); } &&
8417
{ ac_try='test -z "$ac_c_werror_flag"
8418
|| test ! -s conftest.err'
8419
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423
(exit $ac_status); }; } &&
8424
{ ac_try='test -s conftest$ac_exeext'
8425
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429
(exit $ac_status); }; }; then
8430
ac_cv_lib_dld_dld_link=yes
8432
echo "$as_me: failed program was:" >&5
8433
sed 's/^/| /' conftest.$ac_ext >&5
8435
ac_cv_lib_dld_dld_link=no
8437
rm -f conftest.err conftest.$ac_objext \
8438
conftest$ac_exeext conftest.$ac_ext
8439
LIBS=$ac_check_lib_save_LIBS
8441
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8442
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8443
if test $ac_cv_lib_dld_dld_link = yes; then
8444
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8465
if test "x$lt_cv_dlopen" != xno; then
8471
case $lt_cv_dlopen in
8473
save_CPPFLAGS="$CPPFLAGS"
8474
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8476
save_LDFLAGS="$LDFLAGS"
8477
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8480
LIBS="$lt_cv_dlopen_libs $LIBS"
8482
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8483
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8484
if test "${lt_cv_dlopen_self+set}" = set; then
8485
echo $ECHO_N "(cached) $ECHO_C" >&6
8487
if test "$cross_compiling" = yes; then :
8488
lt_cv_dlopen_self=cross
8490
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8491
lt_status=$lt_dlunknown
8492
cat > conftest.$ac_ext <<EOF
8493
#line 8493 "configure"
8494
#include "confdefs.h"
8503
# define LT_DLGLOBAL RTLD_GLOBAL
8506
# define LT_DLGLOBAL DL_GLOBAL
8508
# define LT_DLGLOBAL 0
8512
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8513
find out it does not work in some platform. */
8514
#ifndef LT_DLLAZY_OR_NOW
8516
# define LT_DLLAZY_OR_NOW RTLD_LAZY
8519
# define LT_DLLAZY_OR_NOW DL_LAZY
8522
# define LT_DLLAZY_OR_NOW RTLD_NOW
8525
# define LT_DLLAZY_OR_NOW DL_NOW
8527
# define LT_DLLAZY_OR_NOW 0
8535
extern "C" void exit (int);
8538
void fnord() { int i=42;}
8541
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8542
int status = $lt_dlunknown;
8546
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8547
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8548
/* dlclose (self); */
8554
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8555
(eval $ac_link) 2>&5
8557
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8559
(./conftest; exit; ) >&5 2>/dev/null
8562
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8563
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8564
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8567
# compilation failed
8568
lt_cv_dlopen_self=no
8575
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8576
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8578
if test "x$lt_cv_dlopen_self" = xyes; then
8579
LDFLAGS="$LDFLAGS $link_static_flag"
8580
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8581
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8582
if test "${lt_cv_dlopen_self_static+set}" = set; then
8583
echo $ECHO_N "(cached) $ECHO_C" >&6
8585
if test "$cross_compiling" = yes; then :
8586
lt_cv_dlopen_self_static=cross
8588
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8589
lt_status=$lt_dlunknown
8590
cat > conftest.$ac_ext <<EOF
8591
#line 8591 "configure"
8592
#include "confdefs.h"
8601
# define LT_DLGLOBAL RTLD_GLOBAL
8604
# define LT_DLGLOBAL DL_GLOBAL
8606
# define LT_DLGLOBAL 0
8610
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8611
find out it does not work in some platform. */
8612
#ifndef LT_DLLAZY_OR_NOW
8614
# define LT_DLLAZY_OR_NOW RTLD_LAZY
8617
# define LT_DLLAZY_OR_NOW DL_LAZY
8620
# define LT_DLLAZY_OR_NOW RTLD_NOW
8623
# define LT_DLLAZY_OR_NOW DL_NOW
8625
# define LT_DLLAZY_OR_NOW 0
8633
extern "C" void exit (int);
8636
void fnord() { int i=42;}
8639
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8640
int status = $lt_dlunknown;
8644
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8645
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8646
/* dlclose (self); */
8652
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8653
(eval $ac_link) 2>&5
8655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8657
(./conftest; exit; ) >&5 2>/dev/null
8660
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8661
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8662
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8665
# compilation failed
8666
lt_cv_dlopen_self_static=no
8673
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8674
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8677
CPPFLAGS="$save_CPPFLAGS"
8678
LDFLAGS="$save_LDFLAGS"
8683
case $lt_cv_dlopen_self in
8684
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8685
*) enable_dlopen_self=unknown ;;
8688
case $lt_cv_dlopen_self_static in
8689
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8690
*) enable_dlopen_self_static=unknown ;;
8695
# Report which librarie types wil actually be built
8696
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8697
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8698
echo "$as_me:$LINENO: result: $can_build_shared" >&5
8699
echo "${ECHO_T}$can_build_shared" >&6
8701
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8702
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8703
test "$can_build_shared" = "no" && enable_shared=no
8705
# On AIX, shared libraries and static libraries use the same namespace, and
8706
# are all built from PIC.
8709
test "$enable_shared" = yes && enable_static=no
8710
if test -n "$RANLIB"; then
8711
archive_cmds="$archive_cmds~\$RANLIB \$lib"
8712
postinstall_cmds='$RANLIB $lib'
8717
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8718
test "$enable_shared" = yes && enable_static=no
8722
echo "$as_me:$LINENO: result: $enable_shared" >&5
8723
echo "${ECHO_T}$enable_shared" >&6
8725
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8726
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8727
# Make sure either enable_shared or enable_static is yes.
8728
test "$enable_shared" = yes || enable_static=yes
8729
echo "$as_me:$LINENO: result: $enable_static" >&5
8730
echo "${ECHO_T}$enable_static" >&6
8732
# The else clause should only fire when bootstrapping the
8733
# libtool distribution, otherwise you forgot to ship ltmain.sh
8734
# with your package, and you will get complaints that there are
8735
# no rules to generate ltmain.sh.
8736
if test -f "$ltmain"; then
8737
# See if we are running on zsh, and set the options which allow our commands through
8738
# without removal of \ escapes.
8739
if test -n "${ZSH_VERSION+set}" ; then
8740
setopt NO_GLOB_SUBST
8742
# Now quote all the things that may contain metacharacters while being
8743
# careful not to overquote the AC_SUBSTed values. We take copies of the
8744
# variables and quote the copies for generation of the libtool script.
8745
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8747
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8748
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8749
deplibs_check_method reload_flag reload_cmds need_locks \
8750
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8751
lt_cv_sys_global_symbol_to_c_name_address \
8752
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8753
old_postinstall_cmds old_postuninstall_cmds \
8757
lt_prog_compiler_wl \
8758
lt_prog_compiler_pic \
8759
lt_prog_compiler_static \
8760
lt_prog_compiler_no_builtin_flag \
8761
export_dynamic_flag_spec \
8762
thread_safe_flag_spec \
8763
whole_archive_flag_spec \
8764
enable_shared_with_static_runtimes \
8766
old_archive_from_new_cmds \
8771
compiler_lib_search_path \
8773
archive_expsym_cmds \
8775
postuninstall_cmds \
8776
old_archive_from_expsyms_cmds \
8777
allow_undefined_flag \
8779
export_symbols_cmds \
8780
hardcode_libdir_flag_spec \
8781
hardcode_libdir_flag_spec_ld \
8782
hardcode_libdir_separator \
8783
hardcode_automatic \
8785
module_expsym_cmds \
8786
lt_cv_prog_compiler_c_o \
8791
old_archive_cmds | \
8792
old_archive_from_new_cmds | \
8794
archive_expsym_cmds | \
8796
module_expsym_cmds | \
8797
old_archive_from_expsyms_cmds | \
8798
export_symbols_cmds | \
8799
extract_expsyms_cmds | reload_cmds | finish_cmds | \
8800
postinstall_cmds | postuninstall_cmds | \
8801
old_postinstall_cmds | old_postuninstall_cmds | \
8802
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8803
# Double-quote double-evaled strings.
8804
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8807
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8813
*'\$0 --fallback-echo"')
8814
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8819
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8821
{ echo "$as_me:$LINENO: creating $ofile" >&5
8822
echo "$as_me: creating $ofile" >&6;}
8824
cat <<__EOF__ >> "$cfgfile"
8827
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8828
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8829
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8831
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8832
# Free Software Foundation, Inc.
8834
# This file is part of GNU Libtool:
8835
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8837
# This program is free software; you can redistribute it and/or modify
8838
# it under the terms of the GNU General Public License as published by
8839
# the Free Software Foundation; either version 2 of the License, or
8840
# (at your option) any later version.
8842
# This program is distributed in the hope that it will be useful, but
8843
# WITHOUT ANY WARRANTY; without even the implied warranty of
8844
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8845
# General Public License for more details.
8847
# You should have received a copy of the GNU General Public License
8848
# along with this program; if not, write to the Free Software
8849
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
8851
# As a special exception to the GNU General Public License, if you
8852
# distribute this file as part of a program that contains a
8853
# configuration script generated by Autoconf, you may include it under
8854
# the same distribution terms that you use for the rest of that program.
8856
# A sed program that does not truncate output.
8859
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
8860
Xsed="$SED -e 1s/^X//"
8862
# The HP-UX ksh and POSIX shell print the target directory to stdout
8864
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8866
# The names of the tagged configurations supported by this script.
8869
# ### BEGIN LIBTOOL CONFIG
8871
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8873
# Shell to use when invoking shell scripts.
8876
# Whether or not to build shared libraries.
8877
build_libtool_libs=$enable_shared
8879
# Whether or not to build static libraries.
8880
build_old_libs=$enable_static
8882
# Whether or not to add -lc for building shared libraries.
8883
build_libtool_need_lc=$archive_cmds_need_lc
8885
# Whether or not to disallow shared libs when runtime libs are static
8886
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8888
# Whether or not to optimize for fast installation.
8889
fast_install=$enable_fast_install
8892
host_alias=$host_alias
8897
build_alias=$build_alias
8901
# An echo program that does not interpret backslashes.
8906
AR_FLAGS=$lt_AR_FLAGS
8911
# A language-specific compiler.
8914
# Is the compiler the GNU C compiler?
8920
# The linker used to build libraries.
8923
# Whether we need hard or soft links.
8926
# A BSD-compatible nm program.
8929
# A symbol stripping program
8932
# Used to examine libraries when file_magic_cmd begins "file"
8933
MAGIC_CMD=$MAGIC_CMD
8935
# Used on cygwin: DLL creation program.
8938
# Used on cygwin: object dumper.
8941
# Used on cygwin: assembler.
8944
# The name of the directory that contains temporary libtool files.
8947
# How to create reloadable object files.
8948
reload_flag=$lt_reload_flag
8949
reload_cmds=$lt_reload_cmds
8951
# How to pass a linker flag through the compiler.
8952
wl=$lt_lt_prog_compiler_wl
8954
# Object file suffix (normally "o").
8957
# Old archive suffix (normally "a").
8960
# Shared library suffix (normally ".so").
8961
shrext_cmds='$shrext_cmds'
8963
# Executable file suffix (normally "").
8966
# Additional compiler flags for building library objects.
8967
pic_flag=$lt_lt_prog_compiler_pic
8970
# What is the maximum length of a command?
8971
max_cmd_len=$lt_cv_sys_max_cmd_len
8973
# Does compiler simultaneously support -c and -o options?
8974
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8976
# Must we lock files when doing compilation?
8977
need_locks=$lt_need_locks
8979
# Do we need the lib prefix for modules?
8980
need_lib_prefix=$need_lib_prefix
8982
# Do we need a version for libraries?
8983
need_version=$need_version
8985
# Whether dlopen is supported.
8986
dlopen_support=$enable_dlopen
8988
# Whether dlopen of programs is supported.
8989
dlopen_self=$enable_dlopen_self
8991
# Whether dlopen of statically linked programs is supported.
8992
dlopen_self_static=$enable_dlopen_self_static
8994
# Compiler flag to prevent dynamic linking.
8995
link_static_flag=$lt_lt_prog_compiler_static
8997
# Compiler flag to turn off builtin functions.
8998
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9000
# Compiler flag to allow reflexive dlopens.
9001
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9003
# Compiler flag to generate shared objects directly from archives.
9004
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9006
# Compiler flag to generate thread-safe objects.
9007
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9009
# Library versioning type.
9010
version_type=$version_type
9012
# Format of library name prefix.
9013
libname_spec=$lt_libname_spec
9015
# List of archive names. First name is the real one, the rest are links.
9016
# The last name is the one that the linker finds with -lNAME.
9017
library_names_spec=$lt_library_names_spec
9019
# The coded name of the library, if different from the real name.
9020
soname_spec=$lt_soname_spec
9022
# Commands used to build and install an old-style archive.
9024
old_archive_cmds=$lt_old_archive_cmds
9025
old_postinstall_cmds=$lt_old_postinstall_cmds
9026
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9028
# Create an old-style archive from a shared archive.
9029
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9031
# Create a temporary old-style archive to link instead of a shared archive.
9032
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9034
# Commands used to build and install a shared archive.
9035
archive_cmds=$lt_archive_cmds
9036
archive_expsym_cmds=$lt_archive_expsym_cmds
9037
postinstall_cmds=$lt_postinstall_cmds
9038
postuninstall_cmds=$lt_postuninstall_cmds
9040
# Commands used to build a loadable module (assumed same as above if empty)
9041
module_cmds=$lt_module_cmds
9042
module_expsym_cmds=$lt_module_expsym_cmds
9044
# Commands to strip libraries.
9045
old_striplib=$lt_old_striplib
9046
striplib=$lt_striplib
9048
# Dependencies to place before the objects being linked to create a
9050
predep_objects=$lt_predep_objects
9052
# Dependencies to place after the objects being linked to create a
9054
postdep_objects=$lt_postdep_objects
9056
# Dependencies to place before the objects being linked to create a
9060
# Dependencies to place after the objects being linked to create a
9062
postdeps=$lt_postdeps
9064
# The library search path used internally by the compiler when linking
9066
compiler_lib_search_path=$lt_compiler_lib_search_path
9068
# Method to check whether dependent libraries are shared objects.
9069
deplibs_check_method=$lt_deplibs_check_method
9071
# Command to use when deplibs_check_method == file_magic.
9072
file_magic_cmd=$lt_file_magic_cmd
9074
# Flag that allows shared libraries with undefined symbols to be built.
9075
allow_undefined_flag=$lt_allow_undefined_flag
9077
# Flag that forces no undefined symbols.
9078
no_undefined_flag=$lt_no_undefined_flag
9080
# Commands used to finish a libtool library installation in a directory.
9081
finish_cmds=$lt_finish_cmds
9083
# Same as above, but a single script fragment to be evaled but not shown.
9084
finish_eval=$lt_finish_eval
9086
# Take the output of nm and produce a listing of raw symbols and C names.
9087
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9089
# Transform the output of nm in a proper C declaration
9090
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9092
# Transform the output of nm in a C name address pair
9093
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9095
# This is the shared library runtime path variable.
9096
runpath_var=$runpath_var
9098
# This is the shared library path variable.
9099
shlibpath_var=$shlibpath_var
9101
# Is shlibpath searched before the hard-coded library search path?
9102
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9104
# How to hardcode a shared library path into an executable.
9105
hardcode_action=$hardcode_action
9107
# Whether we should hardcode library paths into libraries.
9108
hardcode_into_libs=$hardcode_into_libs
9110
# Flag to hardcode \$libdir into a binary during linking.
9111
# This must work even if \$libdir does not exist.
9112
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9114
# If ld is used when linking, flag to hardcode \$libdir into
9115
# a binary during linking. This must work even if \$libdir does
9117
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9119
# Whether we need a single -rpath flag with a separated argument.
9120
hardcode_libdir_separator=$lt_hardcode_libdir_separator
9122
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9124
hardcode_direct=$hardcode_direct
9126
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9128
hardcode_minus_L=$hardcode_minus_L
9130
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9131
# the resulting binary.
9132
hardcode_shlibpath_var=$hardcode_shlibpath_var
9134
# Set to yes if building a shared library automatically hardcodes DIR into the library
9135
# and all subsequent libraries and executables linked against it.
9136
hardcode_automatic=$hardcode_automatic
9138
# Variables whose values should be saved in libtool wrapper scripts and
9139
# restored at relink time.
9140
variables_saved_for_relink="$variables_saved_for_relink"
9142
# Whether libtool must link a program against all its dependency libraries.
9143
link_all_deplibs=$link_all_deplibs
9145
# Compile-time system search path for libraries
9146
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9148
# Run-time system search path for libraries
9149
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9151
# Fix the shell variable \$srcfile for the compiler.
9152
fix_srcfile_path="$fix_srcfile_path"
9154
# Set to yes if exported symbols are required.
9155
always_export_symbols=$always_export_symbols
9157
# The commands to list exported symbols.
9158
export_symbols_cmds=$lt_export_symbols_cmds
9160
# The commands to extract the exported symbol list from a shared archive.
9161
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9163
# Symbols that should not be listed in the preloaded symbols.
9164
exclude_expsyms=$lt_exclude_expsyms
9166
# Symbols that must always be exported.
9167
include_expsyms=$lt_include_expsyms
9169
# ### END LIBTOOL CONFIG
9176
cat <<\EOF >> "$cfgfile"
9178
# AIX sometimes has problems with the GCC collect2 program. For some
9179
# reason, if we set the COLLECT_NAMES environment variable, the problems
9180
# vanish in a puff of smoke.
9181
if test "X${COLLECT_NAMES+set}" != Xset; then
9183
export COLLECT_NAMES
9189
# We use sed instead of cat because bash on DJGPP gets confused if
9190
# if finds mixed CR/LF and LF-only lines. Since sed operates in
9191
# text mode, it properly converts lines to CR/LF. This bash problem
9192
# is reportedly fixed, but why not run on old versions too?
9193
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9195
mv -f "$cfgfile" "$ofile" || \
9196
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9200
# If there is no Makefile yet, we rely on a make rule to execute
9201
# `config.status --recheck' to rerun these tests and create the
9202
# libtool script then.
9203
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9204
if test -f "$ltmain_in"; then
9205
test -f Makefile && make "$ltmain"
9211
ac_cpp='$CPP $CPPFLAGS'
9212
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9213
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9214
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9219
# Check whether --with-tags or --without-tags was given.
9220
if test "${with_tags+set}" = set; then
9221
withval="$with_tags"
9225
if test -f "$ltmain" && test -n "$tagnames"; then
9226
if test ! -f "${ofile}"; then
9227
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9228
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9231
if test -z "$LTCC"; then
9232
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9233
if test -z "$LTCC"; then
9234
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9235
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9237
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9238
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9242
# Extract list of available tagged configurations in $ofile.
9243
# Note that this assumes the entire list is on one line.
9244
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9246
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9247
for tagname in $tagnames; do
9249
# Check whether tagname contains only valid characters
9250
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9252
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9253
echo "$as_me: error: invalid tag name: $tagname" >&2;}
9254
{ (exit 1); exit 1; }; }
9258
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9260
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9261
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9262
{ (exit 1); exit 1; }; }
9265
# Update the list of available tags.
9266
if test -n "$tagname"; then
9267
echo appending configuration tag \"$tagname\" to $ofile
9271
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9272
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9273
(test "X$CXX" != "Xg++"))) ; then
9275
ac_cpp='$CXXCPP $CPPFLAGS'
9276
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9277
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9278
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9283
archive_cmds_need_lc_CXX=no
9284
allow_undefined_flag_CXX=
9285
always_export_symbols_CXX=no
9286
archive_expsym_cmds_CXX=
9287
export_dynamic_flag_spec_CXX=
9288
hardcode_direct_CXX=no
9289
hardcode_libdir_flag_spec_CXX=
9290
hardcode_libdir_flag_spec_ld_CXX=
9291
hardcode_libdir_separator_CXX=
9292
hardcode_minus_L_CXX=no
9293
hardcode_automatic_CXX=no
9295
module_expsym_cmds_CXX=
9296
link_all_deplibs_CXX=unknown
9297
old_archive_cmds_CXX=$old_archive_cmds
9298
no_undefined_flag_CXX=
9299
whole_archive_flag_spec_CXX=
9300
enable_shared_with_static_runtimes_CXX=no
9302
# Dependencies to place before and after the object being linked:
9304
postdep_objects_CXX=
9307
compiler_lib_search_path_CXX=
9309
# Source file extension for C++ test sources.
9312
# Object file extension for compiled C++ test sources.
9316
# Code to be used in simple compile tests
9317
lt_simple_compile_test_code="int some_variable = 0;\n"
9319
# Code to be used in simple link tests
9320
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9322
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9324
# If no C compiler was specified, use CC.
9327
# Allow CC to be a program name with arguments.
9331
# save warnings/boilerplate of simple test code
9332
ac_outfile=conftest.$ac_objext
9333
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9334
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9335
_lt_compiler_boilerplate=`cat conftest.err`
9338
ac_outfile=conftest.$ac_objext
9339
printf "$lt_simple_link_test_code" >conftest.$ac_ext
9340
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9341
_lt_linker_boilerplate=`cat conftest.err`
9345
# Allow CC to be a program name with arguments.
9350
lt_save_with_gnu_ld=$with_gnu_ld
9351
lt_save_path_LD=$lt_cv_path_LD
9352
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9353
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9355
unset lt_cv_prog_gnu_ld
9357
if test -n "${lt_cv_path_LDCXX+set}"; then
9358
lt_cv_path_LD=$lt_cv_path_LDCXX
9362
test -z "${LDCXX+set}" || LD=$LDCXX
9366
for cc_temp in $compiler""; do
9368
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9369
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9374
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9377
# We don't want -fno-exception wen compiling C++ code, so set the
9378
# no_builtin_flag separately
9379
if test "$GXX" = yes; then
9380
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9382
lt_prog_compiler_no_builtin_flag_CXX=
9385
if test "$GXX" = yes; then
9386
# Set up default GNU C++ configuration
9389
# Check whether --with-gnu-ld or --without-gnu-ld was given.
9390
if test "${with_gnu_ld+set}" = set; then
9391
withval="$with_gnu_ld"
9392
test "$withval" = no || with_gnu_ld=yes
9397
if test "$GCC" = yes; then
9398
# Check if gcc -print-prog-name=ld gives a path.
9399
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9400
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9403
# gcc leaves a trailing carriage return which upsets mingw
9404
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9406
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9409
# Accept absolute paths.
9411
re_direlt='/[^/][^/]*/\.\./'
9412
# Canonicalize the pathname of ld
9413
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9414
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9415
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9417
test -z "$LD" && LD="$ac_prog"
9420
# If it fails, then pretend we aren't using GCC.
9424
# If it is relative, then search for the first ld in PATH.
9428
elif test "$with_gnu_ld" = yes; then
9429
echo "$as_me:$LINENO: checking for GNU ld" >&5
9430
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9432
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9433
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9435
if test "${lt_cv_path_LD+set}" = set; then
9436
echo $ECHO_N "(cached) $ECHO_C" >&6
9438
if test -z "$LD"; then
9439
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9440
for ac_dir in $PATH; do
9442
test -z "$ac_dir" && ac_dir=.
9443
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9444
lt_cv_path_LD="$ac_dir/$ac_prog"
9445
# Check to see if the program is GNU ld. I'd rather use --version,
9446
# but apparently some variants of GNU ld only accept -v.
9447
# Break only if it was the GNU/non-GNU ld that we prefer.
9448
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9449
*GNU* | *'with BFD'*)
9450
test "$with_gnu_ld" != no && break
9453
test "$with_gnu_ld" != yes && break
9460
lt_cv_path_LD="$LD" # Let the user override the test with a path.
9465
if test -n "$LD"; then
9466
echo "$as_me:$LINENO: result: $LD" >&5
9467
echo "${ECHO_T}$LD" >&6
9469
echo "$as_me:$LINENO: result: no" >&5
9470
echo "${ECHO_T}no" >&6
9472
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9473
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9474
{ (exit 1); exit 1; }; }
9475
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9476
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9477
if test "${lt_cv_prog_gnu_ld+set}" = set; then
9478
echo $ECHO_N "(cached) $ECHO_C" >&6
9480
# I'd rather use --version here, but apparently some GNU lds only accept -v.
9481
case `$LD -v 2>&1 </dev/null` in
9482
*GNU* | *'with BFD'*)
9483
lt_cv_prog_gnu_ld=yes
9486
lt_cv_prog_gnu_ld=no
9490
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9491
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9492
with_gnu_ld=$lt_cv_prog_gnu_ld
9496
# Check if GNU C++ uses GNU ld as the underlying linker, since the
9497
# archiving commands below assume that GNU ld is being used.
9498
if test "$with_gnu_ld" = yes; then
9499
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9500
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'
9502
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9503
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9505
# If archive_cmds runs LD, not CC, wlarc should be empty
9506
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9507
# investigate it a little bit more. (MM)
9510
# ancient GNU ld didn't support --whole-archive et. al.
9511
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9512
grep 'no-whole-archive' > /dev/null; then
9513
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9515
whole_archive_flag_spec_CXX=
9521
# A generic and very simple default shared library creation
9522
# command for GNU C++ for the case where it uses the native
9523
# linker, instead of GNU ld. If possible, this setting should
9524
# overridden to take advantage of the native linker features on
9525
# the platform it is being used on.
9526
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9529
# Commands to make compiler produce verbose output that lists
9530
# what "hidden" libraries, object files and flags are used when
9531
# linking a shared library.
9532
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9540
# PORTME: fill in a description of your system's C++ link characteristics
9541
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9542
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9546
# FIXME: insert proper C++ library support
9550
if test "$host_cpu" = ia64; then
9551
# On IA64, the linker does run time linking by default, so we don't
9552
# have to do anything special.
9553
aix_use_runtimelinking=no
9554
exp_sym_flag='-Bexport'
9557
aix_use_runtimelinking=no
9559
# Test if we are trying to use run time linking or normal
9560
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9561
# need to do runtime linking.
9562
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9563
for ld_flag in $LDFLAGS; do
9566
aix_use_runtimelinking=yes
9573
exp_sym_flag='-bexport'
9574
no_entry_flag='-bnoentry'
9577
# When large executables or shared objects are built, AIX ld can
9578
# have problems creating the table of contents. If linking a library
9579
# or program results in "error TOC overflow" add -mminimal-toc to
9580
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9581
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9584
hardcode_direct_CXX=yes
9585
hardcode_libdir_separator_CXX=':'
9586
link_all_deplibs_CXX=yes
9588
if test "$GXX" = yes; then
9589
case $host_os in aix4.[012]|aix4.[012].*)
9590
# We only want to do this on AIX 4.2 and lower, the check
9591
# below for broken collect2 doesn't work under 4.3+
9592
collect2name=`${CC} -print-prog-name=collect2`
9593
if test -f "$collect2name" && \
9594
strings "$collect2name" | grep resolve_lib_name >/dev/null
9596
# We have reworked collect2
9597
hardcode_direct_CXX=yes
9599
# We have old collect2
9600
hardcode_direct_CXX=unsupported
9601
# It fails to find uninstalled libraries when the uninstalled
9602
# path is not listed in the libpath. Setting hardcode_minus_L
9603
# to unsupported forces relinking
9604
hardcode_minus_L_CXX=yes
9605
hardcode_libdir_flag_spec_CXX='-L$libdir'
9606
hardcode_libdir_separator_CXX=
9609
shared_flag='-shared'
9610
if test "$aix_use_runtimelinking" = yes; then
9611
shared_flag="$shared_flag "'${wl}-G'
9615
if test "$host_cpu" = ia64; then
9616
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9617
# chokes on -Wl,-G. The following line is correct:
9620
if test "$aix_use_runtimelinking" = yes; then
9621
shared_flag='${wl}-G'
9623
shared_flag='${wl}-bM:SRE'
9628
# It seems that -bexpall does not export symbols beginning with
9629
# underscore (_), so it is better to generate a list of symbols to export.
9630
always_export_symbols_CXX=yes
9631
if test "$aix_use_runtimelinking" = yes; then
9632
# Warning - without using the other runtime loading flags (-brtl),
9633
# -berok will link without error, but may produce a broken library.
9634
allow_undefined_flag_CXX='-berok'
9635
# Determine the default libpath from the value encoded in an empty executable.
9636
cat >conftest.$ac_ext <<_ACEOF
9639
cat confdefs.h >>conftest.$ac_ext
9640
cat >>conftest.$ac_ext <<_ACEOF
9641
/* end confdefs.h. */
9651
rm -f conftest.$ac_objext conftest$ac_exeext
9652
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9653
(eval $ac_link) 2>conftest.er1
9655
grep -v '^ *+' conftest.er1 >conftest.err
9657
cat conftest.err >&5
9658
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659
(exit $ac_status); } &&
9660
{ ac_try='test -z "$ac_cxx_werror_flag"
9661
|| test ! -s conftest.err'
9662
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9665
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666
(exit $ac_status); }; } &&
9667
{ ac_try='test -s conftest$ac_exeext'
9668
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672
(exit $ac_status); }; }; then
9674
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9676
# Check for a 64-bit object if we didn't find anything.
9677
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; }
9680
echo "$as_me: failed program was:" >&5
9681
sed 's/^/| /' conftest.$ac_ext >&5
9684
rm -f conftest.err conftest.$ac_objext \
9685
conftest$ac_exeext conftest.$ac_ext
9686
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9688
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9690
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"
9692
if test "$host_cpu" = ia64; then
9693
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9694
allow_undefined_flag_CXX="-z nodefs"
9695
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"
9697
# Determine the default libpath from the value encoded in an empty executable.
9698
cat >conftest.$ac_ext <<_ACEOF
9701
cat confdefs.h >>conftest.$ac_ext
9702
cat >>conftest.$ac_ext <<_ACEOF
9703
/* end confdefs.h. */
9713
rm -f conftest.$ac_objext conftest$ac_exeext
9714
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9715
(eval $ac_link) 2>conftest.er1
9717
grep -v '^ *+' conftest.er1 >conftest.err
9719
cat conftest.err >&5
9720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721
(exit $ac_status); } &&
9722
{ ac_try='test -z "$ac_cxx_werror_flag"
9723
|| test ! -s conftest.err'
9724
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728
(exit $ac_status); }; } &&
9729
{ ac_try='test -s conftest$ac_exeext'
9730
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734
(exit $ac_status); }; }; then
9736
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9738
# Check for a 64-bit object if we didn't find anything.
9739
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; }
9742
echo "$as_me: failed program was:" >&5
9743
sed 's/^/| /' conftest.$ac_ext >&5
9746
rm -f conftest.err conftest.$ac_objext \
9747
conftest$ac_exeext conftest.$ac_ext
9748
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9750
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9751
# Warning - without using the other run time loading flags,
9752
# -berok will link without error, but may produce a broken library.
9753
no_undefined_flag_CXX=' ${wl}-bernotok'
9754
allow_undefined_flag_CXX=' ${wl}-berok'
9755
# -bexpall does not export symbols beginning with underscore (_)
9756
always_export_symbols_CXX=yes
9757
# Exported symbols can be pulled into shared objects from archives
9758
whole_archive_flag_spec_CXX=' '
9759
archive_cmds_need_lc_CXX=yes
9760
# This is similar to how AIX traditionally builds its shared libraries.
9761
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'
9766
case $cc_basename in
9768
# FIXME: insert proper C++ library support
9775
cygwin* | mingw* | pw32*)
9776
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9777
# as there is no search path for DLLs.
9778
hardcode_libdir_flag_spec_CXX='-L$libdir'
9779
allow_undefined_flag_CXX=unsupported
9780
always_export_symbols_CXX=no
9781
enable_shared_with_static_runtimes_CXX=yes
9783
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9784
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'
9785
# If the export-symbols file already is a .def file (1st line
9786
# is EXPORTS), use it as is; otherwise, prepend...
9787
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9788
cp $export_symbols $output_objdir/$soname.def;
9790
echo EXPORTS > $output_objdir/$soname.def;
9791
cat $export_symbols >> $output_objdir/$soname.def;
9793
$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'
9798
darwin* | rhapsody*)
9800
rhapsody* | darwin1.[012])
9801
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9804
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9805
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9807
case ${MACOSX_DEPLOYMENT_TARGET} in
9809
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9812
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9818
archive_cmds_need_lc_CXX=no
9819
hardcode_direct_CXX=no
9820
hardcode_automatic_CXX=yes
9821
hardcode_shlibpath_var_CXX=unsupported
9822
whole_archive_flag_spec_CXX=''
9823
link_all_deplibs_CXX=yes
9825
if test "$GXX" = yes ; then
9826
lt_int_apple_cc_single_mod=no
9827
output_verbose_link_cmd='echo'
9828
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9829
lt_int_apple_cc_single_mod=yes
9831
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9832
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9834
archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9836
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9837
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9838
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9839
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}'
9841
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9843
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}'
9845
case $cc_basename in
9847
output_verbose_link_cmd='echo'
9848
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9849
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9850
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9851
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9852
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}'
9862
case $cc_basename in
9864
# FIXME: insert proper C++ library support
9868
# Green Hills C++ Compiler
9869
# FIXME: insert proper C++ library support
9873
# FIXME: insert proper C++ library support
9879
# C++ shared libraries reported to be fairly broken before switch to ELF
9883
archive_cmds_need_lc_CXX=no
9885
freebsd* | kfreebsd*-gnu | dragonfly*)
9886
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9893
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9894
hardcode_libdir_separator_CXX=:
9895
export_dynamic_flag_spec_CXX='${wl}-E'
9896
hardcode_direct_CXX=yes
9897
hardcode_minus_L_CXX=yes # Not in the search PATH,
9898
# but as the default
9899
# location of the library.
9901
case $cc_basename in
9903
# FIXME: insert proper C++ library support
9907
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'
9908
# Commands to make compiler produce verbose output that lists
9909
# what "hidden" libraries, object files and flags are used when
9910
# linking a shared library.
9912
# There doesn't appear to be a way to prevent this compiler from
9913
# explicitly linking system object files so we need to strip them
9914
# from the output so that they don't get included in the library
9916
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'
9919
if test "$GXX" = yes; then
9920
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'
9922
# FIXME: insert proper C++ library support
9929
if test $with_gnu_ld = no; then
9932
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9933
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9934
hardcode_libdir_separator_CXX=:
9937
hardcode_libdir_flag_spec_CXX='-L$libdir'
9940
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9941
hardcode_libdir_separator_CXX=:
9942
export_dynamic_flag_spec_CXX='${wl}-E'
9948
hardcode_direct_CXX=no
9949
hardcode_shlibpath_var_CXX=no
9952
hardcode_direct_CXX=no
9953
hardcode_shlibpath_var_CXX=no
9954
hardcode_minus_L_CXX=yes # Not in the search PATH,
9955
# but as the default
9956
# location of the library.
9959
hardcode_direct_CXX=yes
9960
hardcode_minus_L_CXX=yes # Not in the search PATH,
9961
# but as the default
9962
# location of the library.
9966
case $cc_basename in
9968
# FIXME: insert proper C++ library support
9974
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9977
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9980
# Commands to make compiler produce verbose output that lists
9981
# what "hidden" libraries, object files and flags are used when
9982
# linking a shared library.
9984
# There doesn't appear to be a way to prevent this compiler from
9985
# explicitly linking system object files so we need to strip them
9986
# from the output so that they don't get included in the library
9988
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'
9991
if test "$GXX" = yes; then
9992
if test $with_gnu_ld = no; then
9995
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9998
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'
10003
# FIXME: insert proper C++ library support
10010
case $cc_basename in
10013
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 ${output_objdir}/so_locations -o $lib'
10015
# Archives containing C++ object files must be created using
10016
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
10017
# necessary to make sure instantiated templates are included
10019
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10022
if test "$GXX" = yes; then
10023
if test "$with_gnu_ld" = no; then
10024
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}${output_objdir}/so_locations -o $lib'
10026
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'
10029
link_all_deplibs_CXX=yes
10032
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10033
hardcode_libdir_separator_CXX=:
10036
case $cc_basename in
10038
# Kuck and Associates, Inc. (KAI) C++ Compiler
10040
# KCC will only create a shared library if the output file
10041
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10042
# to its proper name (with version) after linking.
10043
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'
10044
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'
10045
# Commands to make compiler produce verbose output that lists
10046
# what "hidden" libraries, object files and flags are used when
10047
# linking a shared library.
10049
# There doesn't appear to be a way to prevent this compiler from
10050
# explicitly linking system object files so we need to strip them
10051
# from the output so that they don't get included in the library
10053
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'
10055
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10056
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10058
# Archives containing C++ object files must be created using
10059
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10060
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10065
# version 8.0 and above of icpc choke on multiply defined symbols
10066
# if we add $predep_objects and $postdep_objects, however 7.1 and
10067
# earlier do not add the objects themselves.
10068
case `$CC -V 2>&1` in
10070
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10071
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'
10073
*) # Version 8.0 or newer
10076
ia64*) tmp_idyn=' -i_dynamic';;
10078
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10079
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10082
archive_cmds_need_lc_CXX=no
10083
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10084
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10085
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10088
# Portland Group C++ compiler
10089
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10090
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10092
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10093
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10094
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10098
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10099
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'
10101
runpath_var=LD_RUN_PATH
10102
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10103
hardcode_libdir_separator_CXX=:
10105
# Commands to make compiler produce verbose output that lists
10106
# what "hidden" libraries, object files and flags are used when
10107
# linking a shared library.
10109
# There doesn't appear to be a way to prevent this compiler from
10110
# explicitly linking system object files so we need to strip them
10111
# from the output so that they don't get included in the library
10113
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'
10118
# FIXME: insert proper C++ library support
10122
# FIXME: insert proper C++ library support
10126
case $cc_basename in
10128
# FIXME: insert proper C++ library support
10132
# FIXME: insert proper C++ library support
10138
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10139
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10141
hardcode_libdir_flag_spec_CXX='-R$libdir'
10142
hardcode_direct_CXX=yes
10143
hardcode_shlibpath_var_CXX=no
10145
# Workaround some broken pre-1.5 toolchains
10146
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10149
# C++ shared libraries are fairly broken
10153
hardcode_direct_CXX=yes
10154
hardcode_shlibpath_var_CXX=no
10155
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10156
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10157
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10158
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10159
export_dynamic_flag_spec_CXX='${wl}-E'
10160
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10162
output_verbose_link_cmd='echo'
10165
case $cc_basename in
10167
# Kuck and Associates, Inc. (KAI) C++ Compiler
10169
# KCC will only create a shared library if the output file
10170
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10171
# to its proper name (with version) after linking.
10172
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'
10174
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10175
hardcode_libdir_separator_CXX=:
10177
# Archives containing C++ object files must be created using
10178
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10179
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10183
# Rational C++ 2.4.1
10184
# FIXME: insert proper C++ library support
10188
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10189
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 ${output_objdir}/so_locations -o $lib'
10191
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10192
hardcode_libdir_separator_CXX=:
10194
# Commands to make compiler produce verbose output that lists
10195
# what "hidden" libraries, object files and flags are used when
10196
# linking a shared library.
10198
# There doesn't appear to be a way to prevent this compiler from
10199
# explicitly linking system object files so we need to strip them
10200
# from the output so that they don't get included in the library
10202
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'
10205
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10206
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10207
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}${output_objdir}/so_locations -o $lib'
10209
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10210
hardcode_libdir_separator_CXX=:
10212
# Commands to make compiler produce verbose output that lists
10213
# what "hidden" libraries, object files and flags are used when
10214
# linking a shared library.
10215
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10218
# FIXME: insert proper C++ library support
10225
case $cc_basename in
10227
# Kuck and Associates, Inc. (KAI) C++ Compiler
10229
# KCC will only create a shared library if the output file
10230
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10231
# to its proper name (with version) after linking.
10232
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'
10234
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10235
hardcode_libdir_separator_CXX=:
10237
# Archives containing C++ object files must be created using
10238
# the KAI C++ compiler.
10239
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10242
# Rational C++ 2.4.1
10243
# FIXME: insert proper C++ library support
10247
allow_undefined_flag_CXX=' -expect_unresolved \*'
10248
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 ${output_objdir}/so_locations -o $lib'
10249
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10250
echo "-hidden">> $lib.exp~
10251
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10254
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10255
hardcode_libdir_separator_CXX=:
10257
# Commands to make compiler produce verbose output that lists
10258
# what "hidden" libraries, object files and flags are used when
10259
# linking a shared library.
10261
# There doesn't appear to be a way to prevent this compiler from
10262
# explicitly linking system object files so we need to strip them
10263
# from the output so that they don't get included in the library
10265
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'
10268
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10269
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10270
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}${output_objdir}/so_locations -o $lib'
10272
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10273
hardcode_libdir_separator_CXX=:
10275
# Commands to make compiler produce verbose output that lists
10276
# what "hidden" libraries, object files and flags are used when
10277
# linking a shared library.
10278
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10281
# FIXME: insert proper C++ library support
10288
# FIXME: insert proper C++ library support
10292
archive_cmds_need_lc_CXX=no
10293
case $cc_basename in
10295
# FIXME: insert proper C++ library support
10299
# FIXME: insert proper C++ library support
10305
case $cc_basename in
10308
# FIXME: insert proper C++ library support
10313
# FIXME: insert proper C++ library support
10317
# FIXME: insert proper C++ library support
10323
case $cc_basename in
10325
# Sun C++ 4.2, 5.x and Centerline C++
10326
archive_cmds_need_lc_CXX=yes
10327
no_undefined_flag_CXX=' -zdefs'
10328
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10329
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10330
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10332
hardcode_libdir_flag_spec_CXX='-R$libdir'
10333
hardcode_shlibpath_var_CXX=no
10335
solaris2.[0-5] | solaris2.[0-5].*) ;;
10337
# The C++ compiler is used as linker so we must use $wl
10338
# flag to pass the commands to the underlying system
10339
# linker. We must also pass each convience library through
10340
# to the system linker between allextract/defaultextract.
10341
# The C++ compiler will combine linker options so we
10342
# cannot just pass the convience library names through
10344
# Supported since Solaris 2.6 (maybe 2.5.1?)
10345
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10348
link_all_deplibs_CXX=yes
10350
output_verbose_link_cmd='echo'
10352
# Archives containing C++ object files must be created using
10353
# "CC -xar", where "CC" is the Sun C++ compiler. This is
10354
# necessary to make sure instantiated templates are included
10356
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10359
# Green Hills C++ Compiler
10360
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10362
# The C++ compiler must be used to create the archive.
10363
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10366
# GNU C++ compiler with Solaris linker
10367
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10368
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10369
if $CC --version | grep -v '^2\.7' > /dev/null; then
10370
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10371
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10372
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10374
# Commands to make compiler produce verbose output that lists
10375
# what "hidden" libraries, object files and flags are used when
10376
# linking a shared library.
10377
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10379
# g++ 2.7 appears to require `-G' NOT `-shared' on this
10381
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10382
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10383
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10385
# Commands to make compiler produce verbose output that lists
10386
# what "hidden" libraries, object files and flags are used when
10387
# linking a shared library.
10388
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10391
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10396
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10397
archive_cmds_need_lc_CXX=no
10400
case $cc_basename in
10402
# NonStop-UX NCC 3.20
10403
# FIXME: insert proper C++ library support
10407
# FIXME: insert proper C++ library support
10413
# FIXME: insert proper C++ library support
10417
# FIXME: insert proper C++ library support
10421
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10422
echo "${ECHO_T}$ld_shlibs_CXX" >&6
10423
test "$ld_shlibs_CXX" = no && can_build_shared=no
10429
## There is no encapsulation within the following macros, do not change
10430
## the running order or otherwise move them around unless you know exactly
10431
## what you are doing...
10433
cat > conftest.$ac_ext <<EOF
10437
Foo (void) { a = 0; }
10443
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10444
(eval $ac_compile) 2>&5
10446
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447
(exit $ac_status); }; then
10448
# Parse the compiler output and extract the necessary
10449
# objects, libraries and library flags.
10451
# Sentinel used to keep track of whether or not we are before
10452
# the conftest object file.
10453
pre_test_object_deps_done=no
10455
# The `*' in the case matches for architectures that use `case' in
10456
# $output_verbose_cmd can trigger glob expansion during the loop
10457
# eval without this substitution.
10458
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10460
for p in `eval $output_verbose_link_cmd`; do
10464
# Some compilers place space between "-{L,R}" and the path.
10465
# Remove the space.
10466
if test $p = "-L" \
10467
|| test $p = "-R"; then
10474
if test "$pre_test_object_deps_done" = no; then
10477
# Internal compiler library paths should come after those
10478
# provided the user. The postdeps already come after the
10479
# user supplied libs so there is no need to process them.
10480
if test -z "$compiler_lib_search_path_CXX"; then
10481
compiler_lib_search_path_CXX="${prev}${p}"
10483
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10486
# The "-l" case would never come before the object being
10487
# linked, so don't bother handling this case.
10490
if test -z "$postdeps_CXX"; then
10491
postdeps_CXX="${prev}${p}"
10493
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10499
# This assumes that the test object file only shows up
10500
# once in the compiler output.
10501
if test "$p" = "conftest.$objext"; then
10502
pre_test_object_deps_done=yes
10506
if test "$pre_test_object_deps_done" = no; then
10507
if test -z "$predep_objects_CXX"; then
10508
predep_objects_CXX="$p"
10510
predep_objects_CXX="$predep_objects_CXX $p"
10513
if test -z "$postdep_objects_CXX"; then
10514
postdep_objects_CXX="$p"
10516
postdep_objects_CXX="$postdep_objects_CXX $p"
10521
*) ;; # Ignore the rest.
10529
echo "libtool.m4: error: problem compiling CXX test program"
10532
$rm -f confest.$objext
10534
# PORTME: override above test on systems where it is broken
10537
case $cc_basename in
10539
# Adding this requires a known-good setup of shared libraries for
10540
# Sun compiler versions before 5.6, else PIC objects from an old
10541
# archive will be linked into the output, leading to subtle bugs.
10542
postdeps_CXX='-lCstd -lCrun'
10548
case " $postdeps_CXX " in
10549
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10552
lt_prog_compiler_wl_CXX=
10553
lt_prog_compiler_pic_CXX=
10554
lt_prog_compiler_static_CXX=
10556
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10557
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10559
# C++ specific cases for pic, static, wl, etc.
10560
if test "$GXX" = yes; then
10561
lt_prog_compiler_wl_CXX='-Wl,'
10562
lt_prog_compiler_static_CXX='-static'
10566
# All AIX code is PIC.
10567
if test "$host_cpu" = ia64; then
10568
# AIX 5 now supports IA64 processor
10569
lt_prog_compiler_static_CXX='-Bstatic'
10573
# FIXME: we need at least 68020 code to build shared libraries, but
10574
# adding the `-m68020' flag to GCC prevents building anything better,
10576
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10578
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10579
# PIC is the default for these OSes.
10581
mingw* | os2* | pw32*)
10582
# This hack is so that the source file can tell whether it is being
10583
# built for inclusion in a dll (and should export symbols for example).
10584
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10586
darwin* | rhapsody*)
10587
# PIC is the default on this platform
10588
# Common symbols not allowed in MH_DYLIB files
10589
lt_prog_compiler_pic_CXX='-fno-common'
10592
# DJGPP does not support shared libraries at all
10593
lt_prog_compiler_pic_CXX=
10596
if test -d /usr/nec; then
10597
lt_prog_compiler_pic_CXX=-Kconform_pic
10601
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10602
# not for PA HP-UX.
10607
lt_prog_compiler_pic_CXX='-fPIC'
10612
lt_prog_compiler_pic_CXX='-fPIC'
10618
# All AIX code is PIC.
10619
if test "$host_cpu" = ia64; then
10620
# AIX 5 now supports IA64 processor
10621
lt_prog_compiler_static_CXX='-Bstatic'
10623
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10627
case $cc_basename in
10629
# Green Hills C++ Compiler
10630
# _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"
10635
# PIC is the default on this platform
10636
# Common symbols not allowed in MH_DYLIB files
10637
case $cc_basename in
10639
lt_prog_compiler_pic_CXX='-qnocommon'
10640
lt_prog_compiler_wl_CXX='-Wl,'
10645
case $cc_basename in
10647
lt_prog_compiler_pic_CXX='-KPIC'
10650
# Green Hills C++ Compiler
10651
lt_prog_compiler_pic_CXX='-pic'
10657
freebsd* | kfreebsd*-gnu | dragonfly*)
10658
# FreeBSD uses GNU C++
10660
hpux9* | hpux10* | hpux11*)
10661
case $cc_basename in
10663
lt_prog_compiler_wl_CXX='-Wl,'
10664
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10665
if test "$host_cpu" != ia64; then
10666
lt_prog_compiler_pic_CXX='+Z'
10670
lt_prog_compiler_wl_CXX='-Wl,'
10671
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10677
lt_prog_compiler_pic_CXX='+Z'
10685
irix5* | irix6* | nonstopux*)
10686
case $cc_basename in
10688
lt_prog_compiler_wl_CXX='-Wl,'
10689
lt_prog_compiler_static_CXX='-non_shared'
10690
# CC pic flag -KPIC is the default.
10697
case $cc_basename in
10700
lt_prog_compiler_wl_CXX='--backend -Wl,'
10701
lt_prog_compiler_pic_CXX='-fPIC'
10705
lt_prog_compiler_wl_CXX='-Wl,'
10706
lt_prog_compiler_pic_CXX='-KPIC'
10707
lt_prog_compiler_static_CXX='-static'
10710
# Portland Group C++ compiler.
10711
lt_prog_compiler_wl_CXX='-Wl,'
10712
lt_prog_compiler_pic_CXX='-fpic'
10713
lt_prog_compiler_static_CXX='-Bstatic'
10717
# Make sure the PIC flag is empty. It appears that all Alpha
10718
# Linux and Compaq Tru64 Unix objects are PIC.
10719
lt_prog_compiler_pic_CXX=
10720
lt_prog_compiler_static_CXX='-non_shared'
10731
case $cc_basename in
10733
lt_prog_compiler_pic_CXX='-W c,exportall'
10741
osf3* | osf4* | osf5*)
10742
case $cc_basename in
10744
lt_prog_compiler_wl_CXX='--backend -Wl,'
10747
# Rational C++ 2.4.1
10748
lt_prog_compiler_pic_CXX='-pic'
10751
# Digital/Compaq C++
10752
lt_prog_compiler_wl_CXX='-Wl,'
10753
# Make sure the PIC flag is empty. It appears that all Alpha
10754
# Linux and Compaq Tru64 Unix objects are PIC.
10755
lt_prog_compiler_pic_CXX=
10756
lt_prog_compiler_static_CXX='-non_shared'
10765
case $cc_basename in
10767
lt_prog_compiler_pic_CXX='-fPIC'
10774
case $cc_basename in
10776
# Sun C++ 4.2, 5.x and Centerline C++
10777
lt_prog_compiler_pic_CXX='-KPIC'
10778
lt_prog_compiler_static_CXX='-Bstatic'
10779
lt_prog_compiler_wl_CXX='-Qoption ld '
10782
# Green Hills C++ Compiler
10783
lt_prog_compiler_pic_CXX='-PIC'
10790
case $cc_basename in
10793
lt_prog_compiler_pic_CXX='-pic'
10794
lt_prog_compiler_static_CXX='-Bstatic'
10798
lt_prog_compiler_pic_CXX='-pic'
10805
case $cc_basename in
10807
# NonStop-UX NCC 3.20
10808
lt_prog_compiler_pic_CXX='-KPIC'
10819
lt_prog_compiler_can_build_shared_CXX=no
10824
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10825
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10828
# Check to make sure the PIC flag actually works.
10830
if test -n "$lt_prog_compiler_pic_CXX"; then
10832
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10833
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10834
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10835
echo $ECHO_N "(cached) $ECHO_C" >&6
10837
lt_prog_compiler_pic_works_CXX=no
10838
ac_outfile=conftest.$ac_objext
10839
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10840
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10841
# Insert the option either (1) after the last *FLAGS variable, or
10842
# (2) before a word containing "conftest.", or (3) at the end.
10843
# Note that $ac_compile itself does not contain backslashes and begins
10844
# with a dollar sign (not a hyphen), so the echo should work correctly.
10845
# The option is referenced via a variable to avoid confusing sed.
10846
lt_compile=`echo "$ac_compile" | $SED \
10847
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10848
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10849
-e 's:$: $lt_compiler_flag:'`
10850
(eval echo "\"\$as_me:10850: $lt_compile\"" >&5)
10851
(eval "$lt_compile" 2>conftest.err)
10853
cat conftest.err >&5
10854
echo "$as_me:10854: \$? = $ac_status" >&5
10855
if (exit $ac_status) && test -s "$ac_outfile"; then
10856
# The compiler can only warn and ignore the option if not recognized
10857
# So say no if there are warnings other than the usual output.
10858
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
10859
$SED '/^$/d' conftest.err >conftest.er2
10860
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
10861
lt_prog_compiler_pic_works_CXX=yes
10867
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10868
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10870
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10871
case $lt_prog_compiler_pic_CXX in
10873
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10876
lt_prog_compiler_pic_CXX=
10877
lt_prog_compiler_can_build_shared_CXX=no
10882
# For platforms which do not support PIC, -DPIC is meaningless:
10884
lt_prog_compiler_pic_CXX=
10887
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10891
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10892
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10893
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10894
echo $ECHO_N "(cached) $ECHO_C" >&6
10896
lt_cv_prog_compiler_c_o_CXX=no
10897
$rm -r conftest 2>/dev/null
10901
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10903
lt_compiler_flag="-o out/conftest2.$ac_objext"
10904
# Insert the option either (1) after the last *FLAGS variable, or
10905
# (2) before a word containing "conftest.", or (3) at the end.
10906
# Note that $ac_compile itself does not contain backslashes and begins
10907
# with a dollar sign (not a hyphen), so the echo should work correctly.
10908
lt_compile=`echo "$ac_compile" | $SED \
10909
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10910
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10911
-e 's:$: $lt_compiler_flag:'`
10912
(eval echo "\"\$as_me:10912: $lt_compile\"" >&5)
10913
(eval "$lt_compile" 2>out/conftest.err)
10915
cat out/conftest.err >&5
10916
echo "$as_me:10916: \$? = $ac_status" >&5
10917
if (exit $ac_status) && test -s out/conftest2.$ac_objext
10919
# The compiler can only warn and ignore the option if not recognized
10920
# So say no if there are warnings
10921
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
10922
$SED '/^$/d' out/conftest.err >out/conftest.er2
10923
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10924
lt_cv_prog_compiler_c_o_CXX=yes
10929
# SGI C++ compiler will create directory out/ii_files/ for
10930
# template instantiation
10931
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10932
$rm out/* && rmdir out
10938
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10939
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10942
hard_links="nottested"
10943
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10944
# do not overwrite the value of need_locks provided by the user
10945
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10946
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10949
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10951
ln conftest.a conftest.b 2>&5 || hard_links=no
10952
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10953
echo "$as_me:$LINENO: result: $hard_links" >&5
10954
echo "${ECHO_T}$hard_links" >&6
10955
if test "$hard_links" = no; then
10956
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10957
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10964
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10965
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10967
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10970
# If we're using GNU nm, then we don't want the "-C" option.
10971
# -C means demangle to AIX nm, but means don't demangle with GNU nm
10972
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10973
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'
10975
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'
10979
export_symbols_cmds_CXX="$ltdll_cmds"
10982
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10985
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10989
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10990
echo "${ECHO_T}$ld_shlibs_CXX" >&6
10991
test "$ld_shlibs_CXX" = no && can_build_shared=no
10993
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10994
if test "$GCC" = yes; then
10995
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10999
# Do we need to explicitly link libc?
11001
case "x$archive_cmds_need_lc_CXX" in
11003
# Assume -lc should be added
11004
archive_cmds_need_lc_CXX=yes
11006
if test "$enable_shared" = yes && test "$GCC" = yes; then
11007
case $archive_cmds_CXX in
11009
# FIXME: we may have to deal with multi-command sequences.
11012
# Test whether the compiler implicitly links with -lc since on some
11013
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11014
# to ld, don't add -lc before -lgcc.
11015
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11016
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11018
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11020
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11021
(eval $ac_compile) 2>&5
11023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024
(exit $ac_status); } 2>conftest.err; then
11027
libobjs=conftest.$ac_objext
11029
wl=$lt_prog_compiler_wl_CXX
11035
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11036
allow_undefined_flag_CXX=
11037
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11038
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11040
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041
(exit $ac_status); }
11043
archive_cmds_need_lc_CXX=no
11045
archive_cmds_need_lc_CXX=yes
11047
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11049
cat conftest.err 1>&5
11052
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11053
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11060
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11061
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11062
library_names_spec=
11063
libname_spec='lib$name'
11067
postuninstall_cmds=
11071
shlibpath_overrides_runpath=unknown
11073
dynamic_linker="$host_os ld.so"
11074
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11075
if test "$GCC" = yes; then
11076
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11077
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11078
# if the path contains ";" then we assume it to be the separator
11079
# otherwise default to the standard path separator (i.e. ":") - it is
11080
# assumed that no part of a normal pathname contains ";" but that should
11081
# okay in the real world where ";" in dirpaths is itself problematic.
11082
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11084
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11087
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11089
need_lib_prefix=unknown
11090
hardcode_into_libs=no
11092
# when you set need_version to no, make sure it does not cause -set_version
11093
# flags to be left without arguments
11094
need_version=unknown
11099
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11100
shlibpath_var=LIBPATH
11102
# AIX 3 has no versioning support, so we append a major version to the name.
11103
soname_spec='${libname}${release}${shared_ext}$major'
11110
hardcode_into_libs=yes
11111
if test "$host_cpu" = ia64; then
11112
# AIX 5 supports IA64
11113
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11114
shlibpath_var=LD_LIBRARY_PATH
11116
# With GCC up to 2.95.x, collect2 would create an import file
11117
# for dependence libraries. The import file would start with
11118
# the line `#! .'. This would cause the generated library to
11119
# depend on `.', always an invalid library. This was fixed in
11120
# development snapshots of GCC prior to 3.0.
11122
aix4 | aix4.[01] | aix4.[01].*)
11123
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11125
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11128
can_build_shared=no
11132
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11133
# soname into executable. Probably we can add versioning support to
11134
# collect2, so additional links can be useful in future.
11135
if test "$aix_use_runtimelinking" = yes; then
11136
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11137
# instead of lib<name>.a to let people know that these are not
11138
# typical AIX shared libraries.
11139
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11141
# We preserve .a as extension for shared libraries through AIX4.2
11142
# and later when we are not doing run time linking.
11143
library_names_spec='${libname}${release}.a $libname.a'
11144
soname_spec='${libname}${release}${shared_ext}$major'
11146
shlibpath_var=LIBPATH
11151
library_names_spec='$libname.ixlibrary $libname.a'
11152
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11153
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'
11157
library_names_spec='${libname}${shared_ext}'
11158
dynamic_linker="$host_os ld.so"
11159
shlibpath_var=LIBRARY_PATH
11165
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11166
soname_spec='${libname}${release}${shared_ext}$major'
11167
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11168
shlibpath_var=LD_LIBRARY_PATH
11169
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11170
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11171
# the default ld.so.conf also contains /usr/contrib/lib and
11172
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11173
# libtool to hard-code these into programs
11176
cygwin* | mingw* | pw32*)
11177
version_type=windows
11182
case $GCC,$host_os in
11183
yes,cygwin* | yes,mingw* | yes,pw32*)
11184
library_names_spec='$libname.dll.a'
11185
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11186
postinstall_cmds='base_file=`basename \${file}`~
11187
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11188
dldir=$destdir/`dirname \$dlpath`~
11189
test -d \$dldir || mkdir -p \$dldir~
11190
$install_prog $dir/$dlname \$dldir/$dlname~
11191
chmod a+x \$dldir/$dlname'
11192
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11193
dlpath=$dir/\$dldll~
11195
shlibpath_overrides_runpath=yes
11199
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11200
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11201
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11204
# MinGW DLLs use traditional 'lib' prefix
11205
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11206
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11207
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11208
# It is most probably a Windows format PATH printed by
11209
# mingw gcc, but we are running on Cygwin. Gcc prints its search
11210
# path with ; separators, and with drive letters. We can handle the
11211
# drive letters (cygwin fileutils understands them), so leave them,
11212
# especially as we might pass files found there to a mingw objdump,
11213
# which wouldn't understand a cygwinified path. Ahh.
11214
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11216
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11220
# pw32 DLLs use 'pw' prefix rather than 'lib'
11221
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11227
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11230
dynamic_linker='Win32 ld.exe'
11231
# FIXME: first we should search . and the directory the executable is in
11235
darwin* | rhapsody*)
11236
dynamic_linker="$host_os dyld"
11237
version_type=darwin
11240
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11241
soname_spec='${libname}${release}${major}$shared_ext'
11242
shlibpath_overrides_runpath=yes
11243
shlibpath_var=DYLD_LIBRARY_PATH
11244
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11245
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11246
if test "$GCC" = yes; then
11247
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"`
11249
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11251
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11258
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11259
soname_spec='${libname}${release}${shared_ext}$major'
11260
shlibpath_var=LD_LIBRARY_PATH
11271
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11272
soname_spec='${libname}${release}${shared_ext}$major'
11273
shlibpath_var=LD_LIBRARY_PATH
11274
shlibpath_overrides_runpath=no
11275
hardcode_into_libs=yes
11276
dynamic_linker='GNU ld.so'
11279
freebsd* | dragonfly*)
11280
# DragonFly does not have aout. When/if they implement a new
11281
# versioning mechanism, adjust this.
11282
if test -x /usr/bin/objformat; then
11283
objformat=`/usr/bin/objformat`
11286
freebsd[123]*) objformat=aout ;;
11287
*) objformat=elf ;;
11290
version_type=freebsd-$objformat
11291
case $version_type in
11293
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11298
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11302
shlibpath_var=LD_LIBRARY_PATH
11305
shlibpath_overrides_runpath=yes
11307
freebsd3.[01]* | freebsdelf3.[01]*)
11308
shlibpath_overrides_runpath=yes
11309
hardcode_into_libs=yes
11312
shlibpath_overrides_runpath=no
11313
hardcode_into_libs=yes
11322
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11323
soname_spec='${libname}${release}${shared_ext}$major'
11324
shlibpath_var=LD_LIBRARY_PATH
11325
hardcode_into_libs=yes
11328
hpux9* | hpux10* | hpux11*)
11329
# Give a soname corresponding to the major version so that dld.sl refuses to
11330
# link against other versions.
11337
hardcode_into_libs=yes
11338
dynamic_linker="$host_os dld.so"
11339
shlibpath_var=LD_LIBRARY_PATH
11340
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11341
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11342
soname_spec='${libname}${release}${shared_ext}$major'
11343
if test "X$HPUX_IA64_MODE" = X32; then
11344
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11346
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11348
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11352
hardcode_into_libs=yes
11353
dynamic_linker="$host_os dld.sl"
11354
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11355
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11356
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11357
soname_spec='${libname}${release}${shared_ext}$major'
11358
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11359
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11363
dynamic_linker="$host_os dld.sl"
11364
shlibpath_var=SHLIB_PATH
11365
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11366
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11367
soname_spec='${libname}${release}${shared_ext}$major'
11370
# HP-UX runs *really* slowly unless shared libraries are mode 555.
11371
postinstall_cmds='chmod 555 $lib'
11374
irix5* | irix6* | nonstopux*)
11376
nonstopux*) version_type=nonstopux ;;
11378
if test "$lt_cv_prog_gnu_ld" = yes; then
11386
soname_spec='${libname}${release}${shared_ext}$major'
11387
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11389
irix5* | nonstopux*)
11390
libsuff= shlibsuff=
11393
case $LD in # libtool.m4 will add one of these switches to LD
11394
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11395
libsuff= shlibsuff= libmagic=32-bit;;
11396
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11397
libsuff=32 shlibsuff=N32 libmagic=N32;;
11398
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11399
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11400
*) libsuff= shlibsuff= libmagic=never-match;;
11404
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11405
shlibpath_overrides_runpath=no
11406
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11407
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11408
hardcode_into_libs=yes
11411
# No shared lib support for Linux oldld, aout, or coff.
11412
linux*oldld* | linux*aout* | linux*coff*)
11416
# This must be Linux ELF.
11421
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11422
soname_spec='${libname}${release}${shared_ext}$major'
11423
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11424
shlibpath_var=LD_LIBRARY_PATH
11425
shlibpath_overrides_runpath=no
11426
# This implies no fast_install, which is unacceptable.
11427
# Some rework will be needed to allow for fast_install
11428
# before this can be enabled.
11429
hardcode_into_libs=yes
11431
# Append ld.so.conf contents to the search path
11432
if test -f /etc/ld.so.conf; then
11433
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11434
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11437
# We used to test for /lib/ld.so.1 and disable shared libraries on
11438
# powerpc, because MkLinux only supported shared libraries with the
11439
# GNU dynamic linker. Since this was broken with cross compilers,
11440
# most powerpc-linux boxes support dynamic linking these days and
11441
# people can always --disable-shared, the test was removed, and we
11442
# assume the GNU/Linux dynamic linker is in use.
11443
dynamic_linker='GNU/Linux ld.so'
11450
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11451
soname_spec='${libname}${release}${shared_ext}$major'
11452
shlibpath_var=LD_LIBRARY_PATH
11453
shlibpath_overrides_runpath=no
11454
hardcode_into_libs=yes
11455
dynamic_linker='GNU ld.so'
11462
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11463
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11464
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11465
dynamic_linker='NetBSD (a.out) ld.so'
11467
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11468
soname_spec='${libname}${release}${shared_ext}$major'
11469
dynamic_linker='NetBSD ld.elf_so'
11471
shlibpath_var=LD_LIBRARY_PATH
11472
shlibpath_overrides_runpath=yes
11473
hardcode_into_libs=yes
11478
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11479
shlibpath_var=LD_LIBRARY_PATH
11480
shlibpath_overrides_runpath=yes
11487
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11488
soname_spec='${libname}${release}${shared_ext}$major'
11489
shlibpath_var=LD_LIBRARY_PATH
11490
shlibpath_overrides_runpath=yes
11496
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11498
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11499
*) need_version=no ;;
11501
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11502
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11503
shlibpath_var=LD_LIBRARY_PATH
11504
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11506
openbsd2.[89] | openbsd2.[89].*)
11507
shlibpath_overrides_runpath=no
11510
shlibpath_overrides_runpath=yes
11514
shlibpath_overrides_runpath=yes
11519
libname_spec='$name'
11522
library_names_spec='$libname${shared_ext} $libname.a'
11523
dynamic_linker='OS/2 ld.exe'
11524
shlibpath_var=LIBPATH
11527
osf3* | osf4* | osf5*)
11531
soname_spec='${libname}${release}${shared_ext}$major'
11532
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11533
shlibpath_var=LD_LIBRARY_PATH
11534
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11535
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11540
soname_spec='${libname}${release}${shared_ext}$major'
11541
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11542
shlibpath_var=LD_LIBRARY_PATH
11549
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11550
soname_spec='${libname}${release}${shared_ext}$major'
11551
shlibpath_var=LD_LIBRARY_PATH
11552
shlibpath_overrides_runpath=yes
11553
hardcode_into_libs=yes
11554
# ldd complains unless libraries are executable
11555
postinstall_cmds='chmod +x $lib'
11560
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11561
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11562
shlibpath_var=LD_LIBRARY_PATH
11563
shlibpath_overrides_runpath=yes
11564
if test "$with_gnu_ld" = yes; then
11570
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11572
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11573
soname_spec='${libname}${release}${shared_ext}$major'
11574
shlibpath_var=LD_LIBRARY_PATH
11575
case $host_vendor in
11577
shlibpath_overrides_runpath=no
11579
export_dynamic_flag_spec='${wl}-Blargedynsym'
11580
runpath_var=LD_RUN_PATH
11588
shlibpath_overrides_runpath=no
11589
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11595
if test -d /usr/nec ;then
11597
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11598
soname_spec='$libname${shared_ext}.$major'
11599
shlibpath_var=LD_LIBRARY_PATH
11605
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11606
soname_spec='${libname}${release}${shared_ext}$major'
11607
shlibpath_var=LD_LIBRARY_PATH
11614
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11615
echo "${ECHO_T}$dynamic_linker" >&6
11616
test "$dynamic_linker" = no && can_build_shared=no
11618
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11619
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11620
hardcode_action_CXX=
11621
if test -n "$hardcode_libdir_flag_spec_CXX" || \
11622
test -n "$runpath_var_CXX" || \
11623
test "X$hardcode_automatic_CXX" = "Xyes" ; then
11625
# We can hardcode non-existant directories.
11626
if test "$hardcode_direct_CXX" != no &&
11627
# If the only mechanism to avoid hardcoding is shlibpath_var, we
11628
# have to relink, otherwise we might link with an installed library
11629
# when we should be linking with a yet-to-be-installed one
11630
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11631
test "$hardcode_minus_L_CXX" != no; then
11632
# Linking always hardcodes the temporary library directory.
11633
hardcode_action_CXX=relink
11635
# We can link without hardcoding, and we can hardcode nonexisting dirs.
11636
hardcode_action_CXX=immediate
11639
# We cannot hardcode anything, or else we can only hardcode existing
11641
hardcode_action_CXX=unsupported
11643
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11644
echo "${ECHO_T}$hardcode_action_CXX" >&6
11646
if test "$hardcode_action_CXX" = relink; then
11647
# Fast installation is not supported
11648
enable_fast_install=no
11649
elif test "$shlibpath_overrides_runpath" = yes ||
11650
test "$enable_shared" = no; then
11651
# Fast installation is not necessary
11652
enable_fast_install=needless
11657
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11658
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11659
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11660
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11661
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11662
echo "$as_me:$LINENO: result: yes" >&5
11663
echo "${ECHO_T}yes" >&6
11665
# FIXME - insert some real tests, host_os isn't really good enough
11668
if test -n "$STRIP" ; then
11669
striplib="$STRIP -x"
11670
echo "$as_me:$LINENO: result: yes" >&5
11671
echo "${ECHO_T}yes" >&6
11673
echo "$as_me:$LINENO: result: no" >&5
11674
echo "${ECHO_T}no" >&6
11678
echo "$as_me:$LINENO: result: no" >&5
11679
echo "${ECHO_T}no" >&6
11684
if test "x$enable_dlopen" != xyes; then
11685
enable_dlopen=unknown
11686
enable_dlopen_self=unknown
11687
enable_dlopen_self_static=unknown
11694
lt_cv_dlopen="load_add_on"
11696
lt_cv_dlopen_self=yes
11700
lt_cv_dlopen="LoadLibrary"
11705
lt_cv_dlopen="dlopen"
11710
# if libdl is installed we need to link against it
11711
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11712
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11713
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11714
echo $ECHO_N "(cached) $ECHO_C" >&6
11716
ac_check_lib_save_LIBS=$LIBS
11718
cat >conftest.$ac_ext <<_ACEOF
11721
cat confdefs.h >>conftest.$ac_ext
11722
cat >>conftest.$ac_ext <<_ACEOF
11723
/* end confdefs.h. */
11725
/* Override any gcc2 internal prototype to avoid an error. */
11729
/* We use char because int might match the return type of a gcc2
11730
builtin and then its argument prototype would still apply. */
11740
rm -f conftest.$ac_objext conftest$ac_exeext
11741
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11742
(eval $ac_link) 2>conftest.er1
11744
grep -v '^ *+' conftest.er1 >conftest.err
11746
cat conftest.err >&5
11747
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748
(exit $ac_status); } &&
11749
{ ac_try='test -z "$ac_cxx_werror_flag"
11750
|| test ! -s conftest.err'
11751
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11752
(eval $ac_try) 2>&5
11754
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755
(exit $ac_status); }; } &&
11756
{ ac_try='test -s conftest$ac_exeext'
11757
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758
(eval $ac_try) 2>&5
11760
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761
(exit $ac_status); }; }; then
11762
ac_cv_lib_dl_dlopen=yes
11764
echo "$as_me: failed program was:" >&5
11765
sed 's/^/| /' conftest.$ac_ext >&5
11767
ac_cv_lib_dl_dlopen=no
11769
rm -f conftest.err conftest.$ac_objext \
11770
conftest$ac_exeext conftest.$ac_ext
11771
LIBS=$ac_check_lib_save_LIBS
11773
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11774
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11775
if test $ac_cv_lib_dl_dlopen = yes; then
11776
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11779
lt_cv_dlopen="dyld"
11781
lt_cv_dlopen_self=yes
11788
echo "$as_me:$LINENO: checking for shl_load" >&5
11789
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11790
if test "${ac_cv_func_shl_load+set}" = set; then
11791
echo $ECHO_N "(cached) $ECHO_C" >&6
11793
cat >conftest.$ac_ext <<_ACEOF
11796
cat confdefs.h >>conftest.$ac_ext
11797
cat >>conftest.$ac_ext <<_ACEOF
11798
/* end confdefs.h. */
11799
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11800
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11801
#define shl_load innocuous_shl_load
11803
/* System header to define __stub macros and hopefully few prototypes,
11804
which can conflict with char shl_load (); below.
11805
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11806
<limits.h> exists even on freestanding compilers. */
11809
# include <limits.h>
11811
# include <assert.h>
11816
/* Override any gcc2 internal prototype to avoid an error. */
11821
/* We use char because int might match the return type of a gcc2
11822
builtin and then its argument prototype would still apply. */
11824
/* The GNU C library defines this for functions which it implements
11825
to always fail with ENOSYS. Some functions are actually named
11826
something starting with __ and the normal name is an alias. */
11827
#if defined (__stub_shl_load) || defined (__stub___shl_load)
11830
char (*f) () = shl_load;
11839
return f != shl_load;
11844
rm -f conftest.$ac_objext conftest$ac_exeext
11845
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11846
(eval $ac_link) 2>conftest.er1
11848
grep -v '^ *+' conftest.er1 >conftest.err
11850
cat conftest.err >&5
11851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852
(exit $ac_status); } &&
11853
{ ac_try='test -z "$ac_cxx_werror_flag"
11854
|| test ! -s conftest.err'
11855
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11856
(eval $ac_try) 2>&5
11858
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859
(exit $ac_status); }; } &&
11860
{ ac_try='test -s conftest$ac_exeext'
11861
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11862
(eval $ac_try) 2>&5
11864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865
(exit $ac_status); }; }; then
11866
ac_cv_func_shl_load=yes
11868
echo "$as_me: failed program was:" >&5
11869
sed 's/^/| /' conftest.$ac_ext >&5
11871
ac_cv_func_shl_load=no
11873
rm -f conftest.err conftest.$ac_objext \
11874
conftest$ac_exeext conftest.$ac_ext
11876
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11877
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11878
if test $ac_cv_func_shl_load = yes; then
11879
lt_cv_dlopen="shl_load"
11881
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11882
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11883
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11884
echo $ECHO_N "(cached) $ECHO_C" >&6
11886
ac_check_lib_save_LIBS=$LIBS
11888
cat >conftest.$ac_ext <<_ACEOF
11891
cat confdefs.h >>conftest.$ac_ext
11892
cat >>conftest.$ac_ext <<_ACEOF
11893
/* end confdefs.h. */
11895
/* Override any gcc2 internal prototype to avoid an error. */
11899
/* We use char because int might match the return type of a gcc2
11900
builtin and then its argument prototype would still apply. */
11910
rm -f conftest.$ac_objext conftest$ac_exeext
11911
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11912
(eval $ac_link) 2>conftest.er1
11914
grep -v '^ *+' conftest.er1 >conftest.err
11916
cat conftest.err >&5
11917
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918
(exit $ac_status); } &&
11919
{ ac_try='test -z "$ac_cxx_werror_flag"
11920
|| test ! -s conftest.err'
11921
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922
(eval $ac_try) 2>&5
11924
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925
(exit $ac_status); }; } &&
11926
{ ac_try='test -s conftest$ac_exeext'
11927
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11928
(eval $ac_try) 2>&5
11930
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931
(exit $ac_status); }; }; then
11932
ac_cv_lib_dld_shl_load=yes
11934
echo "$as_me: failed program was:" >&5
11935
sed 's/^/| /' conftest.$ac_ext >&5
11937
ac_cv_lib_dld_shl_load=no
11939
rm -f conftest.err conftest.$ac_objext \
11940
conftest$ac_exeext conftest.$ac_ext
11941
LIBS=$ac_check_lib_save_LIBS
11943
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11944
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11945
if test $ac_cv_lib_dld_shl_load = yes; then
11946
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11948
echo "$as_me:$LINENO: checking for dlopen" >&5
11949
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11950
if test "${ac_cv_func_dlopen+set}" = set; then
11951
echo $ECHO_N "(cached) $ECHO_C" >&6
11953
cat >conftest.$ac_ext <<_ACEOF
11956
cat confdefs.h >>conftest.$ac_ext
11957
cat >>conftest.$ac_ext <<_ACEOF
11958
/* end confdefs.h. */
11959
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11960
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11961
#define dlopen innocuous_dlopen
11963
/* System header to define __stub macros and hopefully few prototypes,
11964
which can conflict with char dlopen (); below.
11965
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11966
<limits.h> exists even on freestanding compilers. */
11969
# include <limits.h>
11971
# include <assert.h>
11976
/* Override any gcc2 internal prototype to avoid an error. */
11981
/* We use char because int might match the return type of a gcc2
11982
builtin and then its argument prototype would still apply. */
11984
/* The GNU C library defines this for functions which it implements
11985
to always fail with ENOSYS. Some functions are actually named
11986
something starting with __ and the normal name is an alias. */
11987
#if defined (__stub_dlopen) || defined (__stub___dlopen)
11990
char (*f) () = dlopen;
11999
return f != dlopen;
12004
rm -f conftest.$ac_objext conftest$ac_exeext
12005
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12006
(eval $ac_link) 2>conftest.er1
12008
grep -v '^ *+' conftest.er1 >conftest.err
12010
cat conftest.err >&5
12011
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012
(exit $ac_status); } &&
12013
{ ac_try='test -z "$ac_cxx_werror_flag"
12014
|| test ! -s conftest.err'
12015
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016
(eval $ac_try) 2>&5
12018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019
(exit $ac_status); }; } &&
12020
{ ac_try='test -s conftest$ac_exeext'
12021
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12022
(eval $ac_try) 2>&5
12024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025
(exit $ac_status); }; }; then
12026
ac_cv_func_dlopen=yes
12028
echo "$as_me: failed program was:" >&5
12029
sed 's/^/| /' conftest.$ac_ext >&5
12031
ac_cv_func_dlopen=no
12033
rm -f conftest.err conftest.$ac_objext \
12034
conftest$ac_exeext conftest.$ac_ext
12036
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12037
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12038
if test $ac_cv_func_dlopen = yes; then
12039
lt_cv_dlopen="dlopen"
12041
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12042
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12043
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12044
echo $ECHO_N "(cached) $ECHO_C" >&6
12046
ac_check_lib_save_LIBS=$LIBS
12048
cat >conftest.$ac_ext <<_ACEOF
12051
cat confdefs.h >>conftest.$ac_ext
12052
cat >>conftest.$ac_ext <<_ACEOF
12053
/* end confdefs.h. */
12055
/* Override any gcc2 internal prototype to avoid an error. */
12059
/* We use char because int might match the return type of a gcc2
12060
builtin and then its argument prototype would still apply. */
12070
rm -f conftest.$ac_objext conftest$ac_exeext
12071
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12072
(eval $ac_link) 2>conftest.er1
12074
grep -v '^ *+' conftest.er1 >conftest.err
12076
cat conftest.err >&5
12077
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078
(exit $ac_status); } &&
12079
{ ac_try='test -z "$ac_cxx_werror_flag"
12080
|| test ! -s conftest.err'
12081
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082
(eval $ac_try) 2>&5
12084
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085
(exit $ac_status); }; } &&
12086
{ ac_try='test -s conftest$ac_exeext'
12087
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12088
(eval $ac_try) 2>&5
12090
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091
(exit $ac_status); }; }; then
12092
ac_cv_lib_dl_dlopen=yes
12094
echo "$as_me: failed program was:" >&5
12095
sed 's/^/| /' conftest.$ac_ext >&5
12097
ac_cv_lib_dl_dlopen=no
12099
rm -f conftest.err conftest.$ac_objext \
12100
conftest$ac_exeext conftest.$ac_ext
12101
LIBS=$ac_check_lib_save_LIBS
12103
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12104
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12105
if test $ac_cv_lib_dl_dlopen = yes; then
12106
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12108
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12109
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12110
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12111
echo $ECHO_N "(cached) $ECHO_C" >&6
12113
ac_check_lib_save_LIBS=$LIBS
12114
LIBS="-lsvld $LIBS"
12115
cat >conftest.$ac_ext <<_ACEOF
12118
cat confdefs.h >>conftest.$ac_ext
12119
cat >>conftest.$ac_ext <<_ACEOF
12120
/* end confdefs.h. */
12122
/* Override any gcc2 internal prototype to avoid an error. */
12126
/* We use char because int might match the return type of a gcc2
12127
builtin and then its argument prototype would still apply. */
12137
rm -f conftest.$ac_objext conftest$ac_exeext
12138
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12139
(eval $ac_link) 2>conftest.er1
12141
grep -v '^ *+' conftest.er1 >conftest.err
12143
cat conftest.err >&5
12144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145
(exit $ac_status); } &&
12146
{ ac_try='test -z "$ac_cxx_werror_flag"
12147
|| test ! -s conftest.err'
12148
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12149
(eval $ac_try) 2>&5
12151
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152
(exit $ac_status); }; } &&
12153
{ ac_try='test -s conftest$ac_exeext'
12154
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155
(eval $ac_try) 2>&5
12157
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158
(exit $ac_status); }; }; then
12159
ac_cv_lib_svld_dlopen=yes
12161
echo "$as_me: failed program was:" >&5
12162
sed 's/^/| /' conftest.$ac_ext >&5
12164
ac_cv_lib_svld_dlopen=no
12166
rm -f conftest.err conftest.$ac_objext \
12167
conftest$ac_exeext conftest.$ac_ext
12168
LIBS=$ac_check_lib_save_LIBS
12170
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12171
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12172
if test $ac_cv_lib_svld_dlopen = yes; then
12173
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12175
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12176
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12177
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12178
echo $ECHO_N "(cached) $ECHO_C" >&6
12180
ac_check_lib_save_LIBS=$LIBS
12182
cat >conftest.$ac_ext <<_ACEOF
12185
cat confdefs.h >>conftest.$ac_ext
12186
cat >>conftest.$ac_ext <<_ACEOF
12187
/* end confdefs.h. */
12189
/* Override any gcc2 internal prototype to avoid an error. */
12193
/* We use char because int might match the return type of a gcc2
12194
builtin and then its argument prototype would still apply. */
12204
rm -f conftest.$ac_objext conftest$ac_exeext
12205
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12206
(eval $ac_link) 2>conftest.er1
12208
grep -v '^ *+' conftest.er1 >conftest.err
12210
cat conftest.err >&5
12211
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212
(exit $ac_status); } &&
12213
{ ac_try='test -z "$ac_cxx_werror_flag"
12214
|| test ! -s conftest.err'
12215
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216
(eval $ac_try) 2>&5
12218
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219
(exit $ac_status); }; } &&
12220
{ ac_try='test -s conftest$ac_exeext'
12221
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222
(eval $ac_try) 2>&5
12224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225
(exit $ac_status); }; }; then
12226
ac_cv_lib_dld_dld_link=yes
12228
echo "$as_me: failed program was:" >&5
12229
sed 's/^/| /' conftest.$ac_ext >&5
12231
ac_cv_lib_dld_dld_link=no
12233
rm -f conftest.err conftest.$ac_objext \
12234
conftest$ac_exeext conftest.$ac_ext
12235
LIBS=$ac_check_lib_save_LIBS
12237
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12238
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12239
if test $ac_cv_lib_dld_dld_link = yes; then
12240
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12261
if test "x$lt_cv_dlopen" != xno; then
12267
case $lt_cv_dlopen in
12269
save_CPPFLAGS="$CPPFLAGS"
12270
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12272
save_LDFLAGS="$LDFLAGS"
12273
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12276
LIBS="$lt_cv_dlopen_libs $LIBS"
12278
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12279
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12280
if test "${lt_cv_dlopen_self+set}" = set; then
12281
echo $ECHO_N "(cached) $ECHO_C" >&6
12283
if test "$cross_compiling" = yes; then :
12284
lt_cv_dlopen_self=cross
12286
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12287
lt_status=$lt_dlunknown
12288
cat > conftest.$ac_ext <<EOF
12289
#line 12289 "configure"
12290
#include "confdefs.h"
12299
# define LT_DLGLOBAL RTLD_GLOBAL
12302
# define LT_DLGLOBAL DL_GLOBAL
12304
# define LT_DLGLOBAL 0
12308
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12309
find out it does not work in some platform. */
12310
#ifndef LT_DLLAZY_OR_NOW
12312
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12315
# define LT_DLLAZY_OR_NOW DL_LAZY
12318
# define LT_DLLAZY_OR_NOW RTLD_NOW
12321
# define LT_DLLAZY_OR_NOW DL_NOW
12323
# define LT_DLLAZY_OR_NOW 0
12331
extern "C" void exit (int);
12334
void fnord() { int i=42;}
12337
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12338
int status = $lt_dlunknown;
12342
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12343
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12344
/* dlclose (self); */
12350
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12351
(eval $ac_link) 2>&5
12353
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12355
(./conftest; exit; ) >&5 2>/dev/null
12357
case x$lt_status in
12358
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12359
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12360
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12363
# compilation failed
12364
lt_cv_dlopen_self=no
12371
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12372
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12374
if test "x$lt_cv_dlopen_self" = xyes; then
12375
LDFLAGS="$LDFLAGS $link_static_flag"
12376
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12377
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12378
if test "${lt_cv_dlopen_self_static+set}" = set; then
12379
echo $ECHO_N "(cached) $ECHO_C" >&6
12381
if test "$cross_compiling" = yes; then :
12382
lt_cv_dlopen_self_static=cross
12384
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12385
lt_status=$lt_dlunknown
12386
cat > conftest.$ac_ext <<EOF
12387
#line 12387 "configure"
12388
#include "confdefs.h"
12397
# define LT_DLGLOBAL RTLD_GLOBAL
12400
# define LT_DLGLOBAL DL_GLOBAL
12402
# define LT_DLGLOBAL 0
12406
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12407
find out it does not work in some platform. */
12408
#ifndef LT_DLLAZY_OR_NOW
12410
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12413
# define LT_DLLAZY_OR_NOW DL_LAZY
12416
# define LT_DLLAZY_OR_NOW RTLD_NOW
12419
# define LT_DLLAZY_OR_NOW DL_NOW
12421
# define LT_DLLAZY_OR_NOW 0
12429
extern "C" void exit (int);
12432
void fnord() { int i=42;}
12435
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12436
int status = $lt_dlunknown;
12440
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12441
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12442
/* dlclose (self); */
12448
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12449
(eval $ac_link) 2>&5
12451
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12453
(./conftest; exit; ) >&5 2>/dev/null
12455
case x$lt_status in
12456
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12457
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12458
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12461
# compilation failed
12462
lt_cv_dlopen_self_static=no
12469
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12470
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12473
CPPFLAGS="$save_CPPFLAGS"
12474
LDFLAGS="$save_LDFLAGS"
12479
case $lt_cv_dlopen_self in
12480
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12481
*) enable_dlopen_self=unknown ;;
12484
case $lt_cv_dlopen_self_static in
12485
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12486
*) enable_dlopen_self_static=unknown ;;
12491
# The else clause should only fire when bootstrapping the
12492
# libtool distribution, otherwise you forgot to ship ltmain.sh
12493
# with your package, and you will get complaints that there are
12494
# no rules to generate ltmain.sh.
12495
if test -f "$ltmain"; then
12496
# See if we are running on zsh, and set the options which allow our commands through
12497
# without removal of \ escapes.
12498
if test -n "${ZSH_VERSION+set}" ; then
12499
setopt NO_GLOB_SUBST
12501
# Now quote all the things that may contain metacharacters while being
12502
# careful not to overquote the AC_SUBSTed values. We take copies of the
12503
# variables and quote the copies for generation of the libtool script.
12504
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12506
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12507
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12508
deplibs_check_method reload_flag reload_cmds need_locks \
12509
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12510
lt_cv_sys_global_symbol_to_c_name_address \
12511
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12512
old_postinstall_cmds old_postuninstall_cmds \
12516
lt_prog_compiler_wl_CXX \
12517
lt_prog_compiler_pic_CXX \
12518
lt_prog_compiler_static_CXX \
12519
lt_prog_compiler_no_builtin_flag_CXX \
12520
export_dynamic_flag_spec_CXX \
12521
thread_safe_flag_spec_CXX \
12522
whole_archive_flag_spec_CXX \
12523
enable_shared_with_static_runtimes_CXX \
12524
old_archive_cmds_CXX \
12525
old_archive_from_new_cmds_CXX \
12526
predep_objects_CXX \
12527
postdep_objects_CXX \
12530
compiler_lib_search_path_CXX \
12532
archive_expsym_cmds_CXX \
12533
postinstall_cmds_CXX \
12534
postuninstall_cmds_CXX \
12535
old_archive_from_expsyms_cmds_CXX \
12536
allow_undefined_flag_CXX \
12537
no_undefined_flag_CXX \
12538
export_symbols_cmds_CXX \
12539
hardcode_libdir_flag_spec_CXX \
12540
hardcode_libdir_flag_spec_ld_CXX \
12541
hardcode_libdir_separator_CXX \
12542
hardcode_automatic_CXX \
12544
module_expsym_cmds_CXX \
12545
lt_cv_prog_compiler_c_o_CXX \
12546
exclude_expsyms_CXX \
12547
include_expsyms_CXX; do
12550
old_archive_cmds_CXX | \
12551
old_archive_from_new_cmds_CXX | \
12552
archive_cmds_CXX | \
12553
archive_expsym_cmds_CXX | \
12554
module_cmds_CXX | \
12555
module_expsym_cmds_CXX | \
12556
old_archive_from_expsyms_cmds_CXX | \
12557
export_symbols_cmds_CXX | \
12558
extract_expsyms_cmds | reload_cmds | finish_cmds | \
12559
postinstall_cmds | postuninstall_cmds | \
12560
old_postinstall_cmds | old_postuninstall_cmds | \
12561
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12562
# Double-quote double-evaled strings.
12563
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12566
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12572
*'\$0 --fallback-echo"')
12573
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12579
cat <<__EOF__ >> "$cfgfile"
12580
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12582
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12584
# Shell to use when invoking shell scripts.
12587
# Whether or not to build shared libraries.
12588
build_libtool_libs=$enable_shared
12590
# Whether or not to build static libraries.
12591
build_old_libs=$enable_static
12593
# Whether or not to add -lc for building shared libraries.
12594
build_libtool_need_lc=$archive_cmds_need_lc_CXX
12596
# Whether or not to disallow shared libs when runtime libs are static
12597
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12599
# Whether or not to optimize for fast installation.
12600
fast_install=$enable_fast_install
12603
host_alias=$host_alias
12607
# The build system.
12608
build_alias=$build_alias
12612
# An echo program that does not interpret backslashes.
12617
AR_FLAGS=$lt_AR_FLAGS
12622
# A language-specific compiler.
12623
CC=$lt_compiler_CXX
12625
# Is the compiler the GNU C compiler?
12631
# The linker used to build libraries.
12634
# Whether we need hard or soft links.
12637
# A BSD-compatible nm program.
12640
# A symbol stripping program
12643
# Used to examine libraries when file_magic_cmd begins "file"
12644
MAGIC_CMD=$MAGIC_CMD
12646
# Used on cygwin: DLL creation program.
12649
# Used on cygwin: object dumper.
12652
# Used on cygwin: assembler.
12655
# The name of the directory that contains temporary libtool files.
12658
# How to create reloadable object files.
12659
reload_flag=$lt_reload_flag
12660
reload_cmds=$lt_reload_cmds
12662
# How to pass a linker flag through the compiler.
12663
wl=$lt_lt_prog_compiler_wl_CXX
12665
# Object file suffix (normally "o").
12666
objext="$ac_objext"
12668
# Old archive suffix (normally "a").
12671
# Shared library suffix (normally ".so").
12672
shrext_cmds='$shrext_cmds'
12674
# Executable file suffix (normally "").
12677
# Additional compiler flags for building library objects.
12678
pic_flag=$lt_lt_prog_compiler_pic_CXX
12681
# What is the maximum length of a command?
12682
max_cmd_len=$lt_cv_sys_max_cmd_len
12684
# Does compiler simultaneously support -c and -o options?
12685
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12687
# Must we lock files when doing compilation?
12688
need_locks=$lt_need_locks
12690
# Do we need the lib prefix for modules?
12691
need_lib_prefix=$need_lib_prefix
12693
# Do we need a version for libraries?
12694
need_version=$need_version
12696
# Whether dlopen is supported.
12697
dlopen_support=$enable_dlopen
12699
# Whether dlopen of programs is supported.
12700
dlopen_self=$enable_dlopen_self
12702
# Whether dlopen of statically linked programs is supported.
12703
dlopen_self_static=$enable_dlopen_self_static
12705
# Compiler flag to prevent dynamic linking.
12706
link_static_flag=$lt_lt_prog_compiler_static_CXX
12708
# Compiler flag to turn off builtin functions.
12709
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12711
# Compiler flag to allow reflexive dlopens.
12712
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12714
# Compiler flag to generate shared objects directly from archives.
12715
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12717
# Compiler flag to generate thread-safe objects.
12718
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12720
# Library versioning type.
12721
version_type=$version_type
12723
# Format of library name prefix.
12724
libname_spec=$lt_libname_spec
12726
# List of archive names. First name is the real one, the rest are links.
12727
# The last name is the one that the linker finds with -lNAME.
12728
library_names_spec=$lt_library_names_spec
12730
# The coded name of the library, if different from the real name.
12731
soname_spec=$lt_soname_spec
12733
# Commands used to build and install an old-style archive.
12735
old_archive_cmds=$lt_old_archive_cmds_CXX
12736
old_postinstall_cmds=$lt_old_postinstall_cmds
12737
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12739
# Create an old-style archive from a shared archive.
12740
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12742
# Create a temporary old-style archive to link instead of a shared archive.
12743
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12745
# Commands used to build and install a shared archive.
12746
archive_cmds=$lt_archive_cmds_CXX
12747
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12748
postinstall_cmds=$lt_postinstall_cmds
12749
postuninstall_cmds=$lt_postuninstall_cmds
12751
# Commands used to build a loadable module (assumed same as above if empty)
12752
module_cmds=$lt_module_cmds_CXX
12753
module_expsym_cmds=$lt_module_expsym_cmds_CXX
12755
# Commands to strip libraries.
12756
old_striplib=$lt_old_striplib
12757
striplib=$lt_striplib
12759
# Dependencies to place before the objects being linked to create a
12761
predep_objects=$lt_predep_objects_CXX
12763
# Dependencies to place after the objects being linked to create a
12765
postdep_objects=$lt_postdep_objects_CXX
12767
# Dependencies to place before the objects being linked to create a
12769
predeps=$lt_predeps_CXX
12771
# Dependencies to place after the objects being linked to create a
12773
postdeps=$lt_postdeps_CXX
12775
# The library search path used internally by the compiler when linking
12776
# a shared library.
12777
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12779
# Method to check whether dependent libraries are shared objects.
12780
deplibs_check_method=$lt_deplibs_check_method
12782
# Command to use when deplibs_check_method == file_magic.
12783
file_magic_cmd=$lt_file_magic_cmd
12785
# Flag that allows shared libraries with undefined symbols to be built.
12786
allow_undefined_flag=$lt_allow_undefined_flag_CXX
12788
# Flag that forces no undefined symbols.
12789
no_undefined_flag=$lt_no_undefined_flag_CXX
12791
# Commands used to finish a libtool library installation in a directory.
12792
finish_cmds=$lt_finish_cmds
12794
# Same as above, but a single script fragment to be evaled but not shown.
12795
finish_eval=$lt_finish_eval
12797
# Take the output of nm and produce a listing of raw symbols and C names.
12798
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12800
# Transform the output of nm in a proper C declaration
12801
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12803
# Transform the output of nm in a C name address pair
12804
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12806
# This is the shared library runtime path variable.
12807
runpath_var=$runpath_var
12809
# This is the shared library path variable.
12810
shlibpath_var=$shlibpath_var
12812
# Is shlibpath searched before the hard-coded library search path?
12813
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12815
# How to hardcode a shared library path into an executable.
12816
hardcode_action=$hardcode_action_CXX
12818
# Whether we should hardcode library paths into libraries.
12819
hardcode_into_libs=$hardcode_into_libs
12821
# Flag to hardcode \$libdir into a binary during linking.
12822
# This must work even if \$libdir does not exist.
12823
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12825
# If ld is used when linking, flag to hardcode \$libdir into
12826
# a binary during linking. This must work even if \$libdir does
12828
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12830
# Whether we need a single -rpath flag with a separated argument.
12831
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12833
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12834
# resulting binary.
12835
hardcode_direct=$hardcode_direct_CXX
12837
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12838
# resulting binary.
12839
hardcode_minus_L=$hardcode_minus_L_CXX
12841
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12842
# the resulting binary.
12843
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12845
# Set to yes if building a shared library automatically hardcodes DIR into the library
12846
# and all subsequent libraries and executables linked against it.
12847
hardcode_automatic=$hardcode_automatic_CXX
12849
# Variables whose values should be saved in libtool wrapper scripts and
12850
# restored at relink time.
12851
variables_saved_for_relink="$variables_saved_for_relink"
12853
# Whether libtool must link a program against all its dependency libraries.
12854
link_all_deplibs=$link_all_deplibs_CXX
12856
# Compile-time system search path for libraries
12857
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12859
# Run-time system search path for libraries
12860
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12862
# Fix the shell variable \$srcfile for the compiler.
12863
fix_srcfile_path="$fix_srcfile_path_CXX"
12865
# Set to yes if exported symbols are required.
12866
always_export_symbols=$always_export_symbols_CXX
12868
# The commands to list exported symbols.
12869
export_symbols_cmds=$lt_export_symbols_cmds_CXX
12871
# The commands to extract the exported symbol list from a shared archive.
12872
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12874
# Symbols that should not be listed in the preloaded symbols.
12875
exclude_expsyms=$lt_exclude_expsyms_CXX
12877
# Symbols that must always be exported.
12878
include_expsyms=$lt_include_expsyms_CXX
12880
# ### END LIBTOOL TAG CONFIG: $tagname
12886
# If there is no Makefile yet, we rely on a make rule to execute
12887
# `config.status --recheck' to rerun these tests and create the
12888
# libtool script then.
12889
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12890
if test -f "$ltmain_in"; then
12891
test -f Makefile && make "$ltmain"
12897
ac_cpp='$CPP $CPPFLAGS'
12898
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12899
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12900
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12906
with_gnu_ldcxx=$with_gnu_ld
12907
with_gnu_ld=$lt_save_with_gnu_ld
12908
lt_cv_path_LDCXX=$lt_cv_path_LD
12909
lt_cv_path_LD=$lt_save_path_LD
12910
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12911
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12919
if test -n "$F77" && test "X$F77" != "Xno"; then
12922
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12923
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12924
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12927
archive_cmds_need_lc_F77=no
12928
allow_undefined_flag_F77=
12929
always_export_symbols_F77=no
12930
archive_expsym_cmds_F77=
12931
export_dynamic_flag_spec_F77=
12932
hardcode_direct_F77=no
12933
hardcode_libdir_flag_spec_F77=
12934
hardcode_libdir_flag_spec_ld_F77=
12935
hardcode_libdir_separator_F77=
12936
hardcode_minus_L_F77=no
12937
hardcode_automatic_F77=no
12939
module_expsym_cmds_F77=
12940
link_all_deplibs_F77=unknown
12941
old_archive_cmds_F77=$old_archive_cmds
12942
no_undefined_flag_F77=
12943
whole_archive_flag_spec_F77=
12944
enable_shared_with_static_runtimes_F77=no
12946
# Source file extension for f77 test sources.
12949
# Object file extension for compiled f77 test sources.
12953
# Code to be used in simple compile tests
12954
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12956
# Code to be used in simple link tests
12957
lt_simple_link_test_code=" program t\n end\n"
12959
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12961
# If no C compiler was specified, use CC.
12964
# Allow CC to be a program name with arguments.
12968
# save warnings/boilerplate of simple test code
12969
ac_outfile=conftest.$ac_objext
12970
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12971
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12972
_lt_compiler_boilerplate=`cat conftest.err`
12975
ac_outfile=conftest.$ac_objext
12976
printf "$lt_simple_link_test_code" >conftest.$ac_ext
12977
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12978
_lt_linker_boilerplate=`cat conftest.err`
12982
# Allow CC to be a program name with arguments.
12987
for cc_temp in $compiler""; do
12989
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12990
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12995
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12998
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12999
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13000
echo "$as_me:$LINENO: result: $can_build_shared" >&5
13001
echo "${ECHO_T}$can_build_shared" >&6
13003
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13004
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13005
test "$can_build_shared" = "no" && enable_shared=no
13007
# On AIX, shared libraries and static libraries use the same namespace, and
13008
# are all built from PIC.
13011
test "$enable_shared" = yes && enable_static=no
13012
if test -n "$RANLIB"; then
13013
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13014
postinstall_cmds='$RANLIB $lib'
13018
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13019
test "$enable_shared" = yes && enable_static=no
13023
echo "$as_me:$LINENO: result: $enable_shared" >&5
13024
echo "${ECHO_T}$enable_shared" >&6
13026
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13027
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13028
# Make sure either enable_shared or enable_static is yes.
13029
test "$enable_shared" = yes || enable_static=yes
13030
echo "$as_me:$LINENO: result: $enable_static" >&5
13031
echo "${ECHO_T}$enable_static" >&6
13033
test "$ld_shlibs_F77" = no && can_build_shared=no
13038
lt_prog_compiler_wl_F77=
13039
lt_prog_compiler_pic_F77=
13040
lt_prog_compiler_static_F77=
13042
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13043
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13045
if test "$GCC" = yes; then
13046
lt_prog_compiler_wl_F77='-Wl,'
13047
lt_prog_compiler_static_F77='-static'
13051
# All AIX code is PIC.
13052
if test "$host_cpu" = ia64; then
13053
# AIX 5 now supports IA64 processor
13054
lt_prog_compiler_static_F77='-Bstatic'
13059
# FIXME: we need at least 68020 code to build shared libraries, but
13060
# adding the `-m68020' flag to GCC prevents building anything better,
13062
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13065
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13066
# PIC is the default for these OSes.
13069
mingw* | pw32* | os2*)
13070
# This hack is so that the source file can tell whether it is being
13071
# built for inclusion in a dll (and should export symbols for example).
13072
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13075
darwin* | rhapsody*)
13076
# PIC is the default on this platform
13077
# Common symbols not allowed in MH_DYLIB files
13078
lt_prog_compiler_pic_F77='-fno-common'
13082
# Just because we use GCC doesn't mean we suddenly get shared libraries
13083
# on systems that don't support them.
13084
lt_prog_compiler_can_build_shared_F77=no
13089
if test -d /usr/nec; then
13090
lt_prog_compiler_pic_F77=-Kconform_pic
13095
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13096
# not for PA HP-UX.
13102
lt_prog_compiler_pic_F77='-fPIC'
13108
lt_prog_compiler_pic_F77='-fPIC'
13112
# PORTME Check for flag to pass linker flags through the system compiler.
13115
lt_prog_compiler_wl_F77='-Wl,'
13116
if test "$host_cpu" = ia64; then
13117
# AIX 5 now supports IA64 processor
13118
lt_prog_compiler_static_F77='-Bstatic'
13120
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13124
# PIC is the default on this platform
13125
# Common symbols not allowed in MH_DYLIB files
13126
case $cc_basename in
13128
lt_prog_compiler_pic_F77='-qnocommon'
13129
lt_prog_compiler_wl_F77='-Wl,'
13134
mingw* | pw32* | os2*)
13135
# This hack is so that the source file can tell whether it is being
13136
# built for inclusion in a dll (and should export symbols for example).
13137
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13140
hpux9* | hpux10* | hpux11*)
13141
lt_prog_compiler_wl_F77='-Wl,'
13142
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13143
# not for PA HP-UX.
13149
lt_prog_compiler_pic_F77='+Z'
13152
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13153
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13156
irix5* | irix6* | nonstopux*)
13157
lt_prog_compiler_wl_F77='-Wl,'
13158
# PIC (with -KPIC) is the default.
13159
lt_prog_compiler_static_F77='-non_shared'
13163
lt_prog_compiler_pic_F77='-KPIC'
13164
lt_prog_compiler_static_F77='-Bstatic'
13168
case $cc_basename in
13170
lt_prog_compiler_wl_F77='-Wl,'
13171
lt_prog_compiler_pic_F77='-KPIC'
13172
lt_prog_compiler_static_F77='-static'
13174
pgcc* | pgf77* | pgf90* | pgf95*)
13175
# Portland Group compilers (*not* the Pentium gcc compiler,
13176
# which looks to be a dead project)
13177
lt_prog_compiler_wl_F77='-Wl,'
13178
lt_prog_compiler_pic_F77='-fpic'
13179
lt_prog_compiler_static_F77='-Bstatic'
13182
lt_prog_compiler_wl_F77='-Wl,'
13183
# All Alpha code is PIC.
13184
lt_prog_compiler_static_F77='-non_shared'
13189
osf3* | osf4* | osf5*)
13190
lt_prog_compiler_wl_F77='-Wl,'
13191
# All OSF/1 code is PIC.
13192
lt_prog_compiler_static_F77='-non_shared'
13196
lt_prog_compiler_pic_F77='-Kpic'
13197
lt_prog_compiler_static_F77='-dn'
13201
lt_prog_compiler_pic_F77='-KPIC'
13202
lt_prog_compiler_static_F77='-Bstatic'
13203
case $cc_basename in
13204
f77* | f90* | f95*)
13205
lt_prog_compiler_wl_F77='-Qoption ld ';;
13207
lt_prog_compiler_wl_F77='-Wl,';;
13212
lt_prog_compiler_wl_F77='-Qoption ld '
13213
lt_prog_compiler_pic_F77='-PIC'
13214
lt_prog_compiler_static_F77='-Bstatic'
13217
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13218
lt_prog_compiler_wl_F77='-Wl,'
13219
lt_prog_compiler_pic_F77='-KPIC'
13220
lt_prog_compiler_static_F77='-Bstatic'
13224
if test -d /usr/nec ;then
13225
lt_prog_compiler_pic_F77='-Kconform_pic'
13226
lt_prog_compiler_static_F77='-Bstatic'
13231
lt_prog_compiler_wl_F77='-Wl,'
13232
lt_prog_compiler_can_build_shared_F77=no
13236
lt_prog_compiler_pic_F77='-pic'
13237
lt_prog_compiler_static_F77='-Bstatic'
13241
lt_prog_compiler_can_build_shared_F77=no
13246
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13247
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13250
# Check to make sure the PIC flag actually works.
13252
if test -n "$lt_prog_compiler_pic_F77"; then
13254
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13255
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13256
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13257
echo $ECHO_N "(cached) $ECHO_C" >&6
13259
lt_prog_compiler_pic_works_F77=no
13260
ac_outfile=conftest.$ac_objext
13261
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13262
lt_compiler_flag="$lt_prog_compiler_pic_F77"
13263
# Insert the option either (1) after the last *FLAGS variable, or
13264
# (2) before a word containing "conftest.", or (3) at the end.
13265
# Note that $ac_compile itself does not contain backslashes and begins
13266
# with a dollar sign (not a hyphen), so the echo should work correctly.
13267
# The option is referenced via a variable to avoid confusing sed.
13268
lt_compile=`echo "$ac_compile" | $SED \
13269
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13270
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13271
-e 's:$: $lt_compiler_flag:'`
13272
(eval echo "\"\$as_me:13272: $lt_compile\"" >&5)
13273
(eval "$lt_compile" 2>conftest.err)
13275
cat conftest.err >&5
13276
echo "$as_me:13276: \$? = $ac_status" >&5
13277
if (exit $ac_status) && test -s "$ac_outfile"; then
13278
# The compiler can only warn and ignore the option if not recognized
13279
# So say no if there are warnings other than the usual output.
13280
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13281
$SED '/^$/d' conftest.err >conftest.er2
13282
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13283
lt_prog_compiler_pic_works_F77=yes
13289
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13290
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13292
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13293
case $lt_prog_compiler_pic_F77 in
13295
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13298
lt_prog_compiler_pic_F77=
13299
lt_prog_compiler_can_build_shared_F77=no
13304
# For platforms which do not support PIC, -DPIC is meaningless:
13306
lt_prog_compiler_pic_F77=
13309
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13313
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13314
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13315
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13316
echo $ECHO_N "(cached) $ECHO_C" >&6
13318
lt_cv_prog_compiler_c_o_F77=no
13319
$rm -r conftest 2>/dev/null
13323
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13325
lt_compiler_flag="-o out/conftest2.$ac_objext"
13326
# Insert the option either (1) after the last *FLAGS variable, or
13327
# (2) before a word containing "conftest.", or (3) at the end.
13328
# Note that $ac_compile itself does not contain backslashes and begins
13329
# with a dollar sign (not a hyphen), so the echo should work correctly.
13330
lt_compile=`echo "$ac_compile" | $SED \
13331
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13332
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13333
-e 's:$: $lt_compiler_flag:'`
13334
(eval echo "\"\$as_me:13334: $lt_compile\"" >&5)
13335
(eval "$lt_compile" 2>out/conftest.err)
13337
cat out/conftest.err >&5
13338
echo "$as_me:13338: \$? = $ac_status" >&5
13339
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13341
# The compiler can only warn and ignore the option if not recognized
13342
# So say no if there are warnings
13343
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13344
$SED '/^$/d' out/conftest.err >out/conftest.er2
13345
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13346
lt_cv_prog_compiler_c_o_F77=yes
13351
# SGI C++ compiler will create directory out/ii_files/ for
13352
# template instantiation
13353
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13354
$rm out/* && rmdir out
13360
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13361
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13364
hard_links="nottested"
13365
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13366
# do not overwrite the value of need_locks provided by the user
13367
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13368
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13371
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13373
ln conftest.a conftest.b 2>&5 || hard_links=no
13374
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13375
echo "$as_me:$LINENO: result: $hard_links" >&5
13376
echo "${ECHO_T}$hard_links" >&6
13377
if test "$hard_links" = no; then
13378
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13379
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13386
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13387
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13390
allow_undefined_flag_F77=
13391
enable_shared_with_static_runtimes_F77=no
13393
archive_expsym_cmds_F77=
13394
old_archive_From_new_cmds_F77=
13395
old_archive_from_expsyms_cmds_F77=
13396
export_dynamic_flag_spec_F77=
13397
whole_archive_flag_spec_F77=
13398
thread_safe_flag_spec_F77=
13399
hardcode_libdir_flag_spec_F77=
13400
hardcode_libdir_flag_spec_ld_F77=
13401
hardcode_libdir_separator_F77=
13402
hardcode_direct_F77=no
13403
hardcode_minus_L_F77=no
13404
hardcode_shlibpath_var_F77=unsupported
13405
link_all_deplibs_F77=unknown
13406
hardcode_automatic_F77=no
13408
module_expsym_cmds_F77=
13409
always_export_symbols_F77=no
13410
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13411
# include_expsyms should be a list of space-separated symbols to be *always*
13412
# included in the symbol list
13413
include_expsyms_F77=
13414
# exclude_expsyms can be an extended regexp of symbols to exclude
13415
# it will be wrapped by ` (' and `)$', so one must not match beginning or
13416
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13417
# as well as any symbol that contains `d'.
13418
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13419
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13420
# platforms (ab)use it in PIC code, but their linkers get confused if
13421
# the symbol is explicitly referenced. Since portable code cannot
13422
# rely on this symbol name, it's probably fine to never include it in
13423
# preloaded symbol tables.
13424
extract_expsyms_cmds=
13425
# Just being paranoid about ensuring that cc_basename is set.
13426
for cc_temp in $compiler""; do
13428
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13429
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13434
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13437
cygwin* | mingw* | pw32*)
13438
# FIXME: the MSVC++ port hasn't been tested in a loooong time
13439
# When not using gcc, we currently assume that we are using
13440
# Microsoft Visual C++.
13441
if test "$GCC" != yes; then
13451
if test "$with_gnu_ld" = yes; then
13452
# If archive_cmds runs LD, not CC, wlarc should be empty
13455
# Set some defaults for GNU ld with shared library support. These
13456
# are reset later if shared libraries are not supported. Putting them
13457
# here allows them to be overridden if necessary.
13458
runpath_var=LD_RUN_PATH
13459
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13460
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13461
# ancient GNU ld didn't support --whole-archive et. al.
13462
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13463
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13465
whole_archive_flag_spec_F77=
13467
supports_anon_versioning=no
13468
case `$LD -v 2>/dev/null` in
13469
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13470
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13471
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13472
*\ 2.11.*) ;; # other 2.11 versions
13473
*) supports_anon_versioning=yes ;;
13476
# See if GNU ld supports shared libraries.
13478
aix3* | aix4* | aix5*)
13479
# On AIX/PPC, the GNU linker is very broken
13480
if test "$host_cpu" != ia64; then
13484
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13485
*** to be unable to reliably create shared libraries on AIX.
13486
*** Therefore, libtool is disabling shared libraries support. If you
13487
*** really care for shared libraries, you may want to modify your PATH
13488
*** so that a non-GNU linker is found, and then restart.
13495
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)'
13496
hardcode_libdir_flag_spec_F77='-L$libdir'
13497
hardcode_minus_L_F77=yes
13499
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13500
# that the semantics of dynamic libraries on AmigaOS, at least up
13501
# to version 4, is to share data among multiple programs linked
13502
# with the same dynamic library. Since this doesn't match the
13503
# behavior of shared libraries on other platforms, we can't use
13509
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13510
allow_undefined_flag_F77=unsupported
13511
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13512
# support --undefined. This deserves some investigation. FIXME
13513
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13519
cygwin* | mingw* | pw32*)
13520
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13521
# as there is no search path for DLLs.
13522
hardcode_libdir_flag_spec_F77='-L$libdir'
13523
allow_undefined_flag_F77=unsupported
13524
always_export_symbols_F77=no
13525
enable_shared_with_static_runtimes_F77=yes
13526
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13528
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13529
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13530
# If the export-symbols file already is a .def file (1st line
13531
# is EXPORTS), use it as is; otherwise, prepend...
13532
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13533
cp $export_symbols $output_objdir/$soname.def;
13535
echo EXPORTS > $output_objdir/$soname.def;
13536
cat $export_symbols >> $output_objdir/$soname.def;
13538
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13545
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13547
case $cc_basename,$host_cpu in
13548
pgcc*) # Portland Group C compiler
13549
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13550
tmp_addflag=' $pic_flag'
13552
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13553
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13554
tmp_addflag=' $pic_flag -Mnomain' ;;
13555
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13556
tmp_addflag=' -i_dynamic' ;;
13557
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13558
tmp_addflag=' -i_dynamic -nofor_main' ;;
13559
ifc* | ifort*) # Intel Fortran compiler
13560
tmp_addflag=' -nofor_main' ;;
13562
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13564
if test $supports_anon_versioning = yes; then
13565
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13566
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13567
$echo "local: *; };" >> $output_objdir/$libname.ver~
13568
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13576
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13577
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13580
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13581
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13586
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13590
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13591
*** create shared libraries on Solaris systems. Therefore, libtool
13592
*** is disabling shared libraries support. We urge you to upgrade GNU
13593
*** binutils to release 2.9.1 or newer. Another option is to modify
13594
*** your PATH or compiler configuration so that the native linker is
13595
*** used, and then restart.
13598
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13599
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13600
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13607
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13609
hardcode_direct_F77=yes
13610
hardcode_shlibpath_var_F77=no
13614
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13615
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13616
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13623
if test "$ld_shlibs_F77" = no; then
13625
hardcode_libdir_flag_spec_F77=
13626
export_dynamic_flag_spec_F77=
13627
whole_archive_flag_spec_F77=
13630
# PORTME fill in a description of your system's linker (not GNU ld)
13633
allow_undefined_flag_F77=unsupported
13634
always_export_symbols_F77=yes
13635
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'
13636
# Note: this linker hardcodes the directories in LIBPATH if there
13637
# are no directories specified by -L.
13638
hardcode_minus_L_F77=yes
13639
if test "$GCC" = yes && test -z "$link_static_flag"; then
13640
# Neither direct hardcoding nor static linking is supported with a
13642
hardcode_direct_F77=unsupported
13647
if test "$host_cpu" = ia64; then
13648
# On IA64, the linker does run time linking by default, so we don't
13649
# have to do anything special.
13650
aix_use_runtimelinking=no
13651
exp_sym_flag='-Bexport'
13654
# If we're using GNU nm, then we don't want the "-C" option.
13655
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13656
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13657
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'
13659
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'
13661
aix_use_runtimelinking=no
13663
# Test if we are trying to use run time linking or normal
13664
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13665
# need to do runtime linking.
13666
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13667
for ld_flag in $LDFLAGS; do
13668
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13669
aix_use_runtimelinking=yes
13675
exp_sym_flag='-bexport'
13676
no_entry_flag='-bnoentry'
13679
# When large executables or shared objects are built, AIX ld can
13680
# have problems creating the table of contents. If linking a library
13681
# or program results in "error TOC overflow" add -mminimal-toc to
13682
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13683
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13685
archive_cmds_F77=''
13686
hardcode_direct_F77=yes
13687
hardcode_libdir_separator_F77=':'
13688
link_all_deplibs_F77=yes
13690
if test "$GCC" = yes; then
13691
case $host_os in aix4.[012]|aix4.[012].*)
13692
# We only want to do this on AIX 4.2 and lower, the check
13693
# below for broken collect2 doesn't work under 4.3+
13694
collect2name=`${CC} -print-prog-name=collect2`
13695
if test -f "$collect2name" && \
13696
strings "$collect2name" | grep resolve_lib_name >/dev/null
13698
# We have reworked collect2
13699
hardcode_direct_F77=yes
13701
# We have old collect2
13702
hardcode_direct_F77=unsupported
13703
# It fails to find uninstalled libraries when the uninstalled
13704
# path is not listed in the libpath. Setting hardcode_minus_L
13705
# to unsupported forces relinking
13706
hardcode_minus_L_F77=yes
13707
hardcode_libdir_flag_spec_F77='-L$libdir'
13708
hardcode_libdir_separator_F77=
13711
shared_flag='-shared'
13712
if test "$aix_use_runtimelinking" = yes; then
13713
shared_flag="$shared_flag "'${wl}-G'
13717
if test "$host_cpu" = ia64; then
13718
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13719
# chokes on -Wl,-G. The following line is correct:
13722
if test "$aix_use_runtimelinking" = yes; then
13723
shared_flag='${wl}-G'
13725
shared_flag='${wl}-bM:SRE'
13730
# It seems that -bexpall does not export symbols beginning with
13731
# underscore (_), so it is better to generate a list of symbols to export.
13732
always_export_symbols_F77=yes
13733
if test "$aix_use_runtimelinking" = yes; then
13734
# Warning - without using the other runtime loading flags (-brtl),
13735
# -berok will link without error, but may produce a broken library.
13736
allow_undefined_flag_F77='-berok'
13737
# Determine the default libpath from the value encoded in an empty executable.
13738
cat >conftest.$ac_ext <<_ACEOF
13743
rm -f conftest.$ac_objext conftest$ac_exeext
13744
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13745
(eval $ac_link) 2>conftest.er1
13747
grep -v '^ *+' conftest.er1 >conftest.err
13749
cat conftest.err >&5
13750
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751
(exit $ac_status); } &&
13752
{ ac_try='test -z "$ac_f77_werror_flag"
13753
|| test ! -s conftest.err'
13754
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13755
(eval $ac_try) 2>&5
13757
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758
(exit $ac_status); }; } &&
13759
{ ac_try='test -s conftest$ac_exeext'
13760
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13761
(eval $ac_try) 2>&5
13763
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764
(exit $ac_status); }; }; then
13766
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13768
# Check for a 64-bit object if we didn't find anything.
13769
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; }
13772
echo "$as_me: failed program was:" >&5
13773
sed 's/^/| /' conftest.$ac_ext >&5
13776
rm -f conftest.err conftest.$ac_objext \
13777
conftest$ac_exeext conftest.$ac_ext
13778
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13780
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13781
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"
13783
if test "$host_cpu" = ia64; then
13784
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13785
allow_undefined_flag_F77="-z nodefs"
13786
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"
13788
# Determine the default libpath from the value encoded in an empty executable.
13789
cat >conftest.$ac_ext <<_ACEOF
13794
rm -f conftest.$ac_objext conftest$ac_exeext
13795
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13796
(eval $ac_link) 2>conftest.er1
13798
grep -v '^ *+' conftest.er1 >conftest.err
13800
cat conftest.err >&5
13801
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802
(exit $ac_status); } &&
13803
{ ac_try='test -z "$ac_f77_werror_flag"
13804
|| test ! -s conftest.err'
13805
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806
(eval $ac_try) 2>&5
13808
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809
(exit $ac_status); }; } &&
13810
{ ac_try='test -s conftest$ac_exeext'
13811
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13812
(eval $ac_try) 2>&5
13814
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815
(exit $ac_status); }; }; then
13817
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13819
# Check for a 64-bit object if we didn't find anything.
13820
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; }
13823
echo "$as_me: failed program was:" >&5
13824
sed 's/^/| /' conftest.$ac_ext >&5
13827
rm -f conftest.err conftest.$ac_objext \
13828
conftest$ac_exeext conftest.$ac_ext
13829
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13831
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13832
# Warning - without using the other run time loading flags,
13833
# -berok will link without error, but may produce a broken library.
13834
no_undefined_flag_F77=' ${wl}-bernotok'
13835
allow_undefined_flag_F77=' ${wl}-berok'
13836
# -bexpall does not export symbols beginning with underscore (_)
13837
always_export_symbols_F77=yes
13838
# Exported symbols can be pulled into shared objects from archives
13839
whole_archive_flag_spec_F77=' '
13840
archive_cmds_need_lc_F77=yes
13841
# This is similar to how AIX traditionally builds its shared libraries.
13842
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'
13848
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)'
13849
hardcode_libdir_flag_spec_F77='-L$libdir'
13850
hardcode_minus_L_F77=yes
13851
# see comment about different semantics on the GNU ld section
13856
export_dynamic_flag_spec_F77=-rdynamic
13859
cygwin* | mingw* | pw32*)
13860
# When not using gcc, we currently assume that we are using
13861
# Microsoft Visual C++.
13862
# hardcode_libdir_flag_spec is actually meaningless, as there is
13863
# no search path for DLLs.
13864
hardcode_libdir_flag_spec_F77=' '
13865
allow_undefined_flag_F77=unsupported
13866
# Tell ltmain to make .lib files, not .a files.
13868
# Tell ltmain to make .dll files, not .so files.
13870
# FIXME: Setting linknames here is a bad hack.
13871
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13872
# The linker will automatically build a .lib file if we build a DLL.
13873
old_archive_From_new_cmds_F77='true'
13874
# FIXME: Should let the user specify the lib program.
13875
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13876
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13877
enable_shared_with_static_runtimes_F77=yes
13880
darwin* | rhapsody*)
13882
rhapsody* | darwin1.[012])
13883
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13886
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13887
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13889
case ${MACOSX_DEPLOYMENT_TARGET} in
13891
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13894
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13900
archive_cmds_need_lc_F77=no
13901
hardcode_direct_F77=no
13902
hardcode_automatic_F77=yes
13903
hardcode_shlibpath_var_F77=unsupported
13904
whole_archive_flag_spec_F77=''
13905
link_all_deplibs_F77=yes
13906
if test "$GCC" = yes ; then
13907
output_verbose_link_cmd='echo'
13908
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13909
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13910
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13911
archive_expsym_cmds_F77='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}'
13912
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}'
13914
case $cc_basename in
13916
output_verbose_link_cmd='echo'
13917
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13918
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13919
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13920
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13921
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}'
13931
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13932
hardcode_libdir_flag_spec_F77='-L$libdir'
13933
hardcode_shlibpath_var_F77=no
13940
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13941
# support. Future versions do this automatically, but an explicit c++rt0.o
13942
# does not break anything, and helps significantly (at the cost of a little
13945
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13946
hardcode_libdir_flag_spec_F77='-R$libdir'
13947
hardcode_direct_F77=yes
13948
hardcode_shlibpath_var_F77=no
13951
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
13953
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13954
hardcode_direct_F77=yes
13955
hardcode_minus_L_F77=yes
13956
hardcode_shlibpath_var_F77=no
13959
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13960
freebsd* | kfreebsd*-gnu | dragonfly*)
13961
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13962
hardcode_libdir_flag_spec_F77='-R$libdir'
13963
hardcode_direct_F77=yes
13964
hardcode_shlibpath_var_F77=no
13968
if test "$GCC" = yes; then
13969
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'
13971
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'
13973
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13974
hardcode_libdir_separator_F77=:
13975
hardcode_direct_F77=yes
13977
# hardcode_minus_L: Not really in the search PATH,
13978
# but as the default location of the library.
13979
hardcode_minus_L_F77=yes
13980
export_dynamic_flag_spec_F77='${wl}-E'
13984
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13987
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13990
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13996
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13999
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14003
if test "$with_gnu_ld" = no; then
14006
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14007
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14008
hardcode_libdir_separator_F77=:
14009
hardcode_direct_F77=no
14010
hardcode_shlibpath_var_F77=no
14013
hardcode_libdir_flag_spec_F77='-L$libdir'
14014
hardcode_direct_F77=no
14015
hardcode_shlibpath_var_F77=no
14017
# hardcode_minus_L: Not really in the search PATH,
14018
# but as the default location of the library.
14019
hardcode_minus_L_F77=yes
14022
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14023
hardcode_libdir_separator_F77=:
14024
hardcode_direct_F77=yes
14025
export_dynamic_flag_spec_F77='${wl}-E'
14027
# hardcode_minus_L: Not really in the search PATH,
14028
# but as the default location of the library.
14029
hardcode_minus_L_F77=yes
14035
irix5* | irix6* | nonstopux*)
14036
if test "$GCC" = yes; then
14037
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'
14039
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'
14040
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14042
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14043
hardcode_libdir_separator_F77=:
14044
link_all_deplibs_F77=yes
14048
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14049
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14051
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14053
hardcode_libdir_flag_spec_F77='-R$libdir'
14054
hardcode_direct_F77=yes
14055
hardcode_shlibpath_var_F77=no
14059
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14060
hardcode_direct_F77=yes
14061
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14062
hardcode_libdir_separator_F77=:
14063
hardcode_shlibpath_var_F77=no
14067
hardcode_direct_F77=yes
14068
hardcode_shlibpath_var_F77=no
14069
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14070
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14071
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14072
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14073
export_dynamic_flag_spec_F77='${wl}-E'
14076
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14077
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14078
hardcode_libdir_flag_spec_F77='-R$libdir'
14081
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14082
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14089
hardcode_libdir_flag_spec_F77='-L$libdir'
14090
hardcode_minus_L_F77=yes
14091
allow_undefined_flag_F77=unsupported
14092
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'
14093
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14097
if test "$GCC" = yes; then
14098
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14099
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'
14101
allow_undefined_flag_F77=' -expect_unresolved \*'
14102
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'
14104
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14105
hardcode_libdir_separator_F77=:
14108
osf4* | osf5*) # as osf3* with the addition of -msym flag
14109
if test "$GCC" = yes; then
14110
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14111
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'
14112
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14114
allow_undefined_flag_F77=' -expect_unresolved \*'
14115
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'
14116
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~
14117
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14119
# Both c and cxx compiler support -rpath directly
14120
hardcode_libdir_flag_spec_F77='-rpath $libdir'
14122
hardcode_libdir_separator_F77=:
14126
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14127
hardcode_shlibpath_var_F77=no
14128
export_dynamic_flag_spec_F77='${wl}-Bexport'
14129
runpath_var=LD_RUN_PATH
14130
hardcode_runpath_var=yes
14134
no_undefined_flag_F77=' -z text'
14135
if test "$GCC" = yes; then
14137
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14138
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14139
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14142
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14143
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14144
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14146
hardcode_libdir_flag_spec_F77='-R$libdir'
14147
hardcode_shlibpath_var_F77=no
14149
solaris2.[0-5] | solaris2.[0-5].*) ;;
14151
# The compiler driver will combine linker options so we
14152
# cannot just pass the convience library names through
14153
# without $wl, iff we do not link with $LD.
14154
# Luckily, gcc supports the same syntax we need for Sun Studio.
14155
# Supported since Solaris 2.6 (maybe 2.5.1?)
14158
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14160
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14163
link_all_deplibs_F77=yes
14167
if test "x$host_vendor" = xsequent; then
14168
# Use $CC to link under sequent, because it throws in some extra .o
14169
# files that make .init and .fini sections work.
14170
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14172
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14174
hardcode_libdir_flag_spec_F77='-L$libdir'
14175
hardcode_direct_F77=yes
14176
hardcode_minus_L_F77=yes
14177
hardcode_shlibpath_var_F77=no
14181
case $host_vendor in
14183
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14184
hardcode_direct_F77=yes # is this really true???
14187
## LD is ld it makes a PLAMLIB
14188
## CC just makes a GrossModule.
14189
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14190
reload_cmds_F77='$CC -r -o $output$reload_objs'
14191
hardcode_direct_F77=no
14194
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14195
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14198
runpath_var='LD_RUN_PATH'
14199
hardcode_shlibpath_var_F77=no
14203
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14204
hardcode_shlibpath_var_F77=no
14205
export_dynamic_flag_spec_F77='-Bexport'
14209
if test -d /usr/nec; then
14210
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14211
hardcode_shlibpath_var_F77=no
14212
runpath_var=LD_RUN_PATH
14213
hardcode_runpath_var=yes
14219
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14220
hardcode_direct_F77=yes
14221
hardcode_minus_L_F77=no
14222
hardcode_shlibpath_var_F77=no
14223
hardcode_runpath_var=yes
14224
runpath_var=LD_RUN_PATH
14227
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14228
no_undefined_flag_F77='${wl}-z ${wl}text'
14229
if test "$GCC" = yes; then
14230
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14232
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14234
runpath_var='LD_RUN_PATH'
14235
hardcode_shlibpath_var_F77=no
14239
no_undefined_flag_F77=' -z text'
14240
# $CC -shared without GNU ld will not create a library from C++
14241
# object files and a static libstdc++, better avoid it by now
14242
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14243
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14244
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14245
hardcode_libdir_flag_spec_F77=
14246
hardcode_shlibpath_var_F77=no
14247
runpath_var='LD_RUN_PATH'
14251
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14252
hardcode_libdir_flag_spec_F77='-L$libdir'
14253
hardcode_shlibpath_var_F77=no
14262
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14263
echo "${ECHO_T}$ld_shlibs_F77" >&6
14264
test "$ld_shlibs_F77" = no && can_build_shared=no
14266
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14267
if test "$GCC" = yes; then
14268
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14272
# Do we need to explicitly link libc?
14274
case "x$archive_cmds_need_lc_F77" in
14276
# Assume -lc should be added
14277
archive_cmds_need_lc_F77=yes
14279
if test "$enable_shared" = yes && test "$GCC" = yes; then
14280
case $archive_cmds_F77 in
14282
# FIXME: we may have to deal with multi-command sequences.
14285
# Test whether the compiler implicitly links with -lc since on some
14286
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14287
# to ld, don't add -lc before -lgcc.
14288
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14289
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14291
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14293
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14294
(eval $ac_compile) 2>&5
14296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297
(exit $ac_status); } 2>conftest.err; then
14300
libobjs=conftest.$ac_objext
14302
wl=$lt_prog_compiler_wl_F77
14308
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14309
allow_undefined_flag_F77=
14310
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14311
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14313
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314
(exit $ac_status); }
14316
archive_cmds_need_lc_F77=no
14318
archive_cmds_need_lc_F77=yes
14320
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14322
cat conftest.err 1>&5
14325
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14326
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14333
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14334
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14335
library_names_spec=
14336
libname_spec='lib$name'
14340
postuninstall_cmds=
14344
shlibpath_overrides_runpath=unknown
14346
dynamic_linker="$host_os ld.so"
14347
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14348
if test "$GCC" = yes; then
14349
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14350
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14351
# if the path contains ";" then we assume it to be the separator
14352
# otherwise default to the standard path separator (i.e. ":") - it is
14353
# assumed that no part of a normal pathname contains ";" but that should
14354
# okay in the real world where ";" in dirpaths is itself problematic.
14355
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14357
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14360
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14362
need_lib_prefix=unknown
14363
hardcode_into_libs=no
14365
# when you set need_version to no, make sure it does not cause -set_version
14366
# flags to be left without arguments
14367
need_version=unknown
14372
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14373
shlibpath_var=LIBPATH
14375
# AIX 3 has no versioning support, so we append a major version to the name.
14376
soname_spec='${libname}${release}${shared_ext}$major'
14383
hardcode_into_libs=yes
14384
if test "$host_cpu" = ia64; then
14385
# AIX 5 supports IA64
14386
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14387
shlibpath_var=LD_LIBRARY_PATH
14389
# With GCC up to 2.95.x, collect2 would create an import file
14390
# for dependence libraries. The import file would start with
14391
# the line `#! .'. This would cause the generated library to
14392
# depend on `.', always an invalid library. This was fixed in
14393
# development snapshots of GCC prior to 3.0.
14395
aix4 | aix4.[01] | aix4.[01].*)
14396
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14398
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14401
can_build_shared=no
14405
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14406
# soname into executable. Probably we can add versioning support to
14407
# collect2, so additional links can be useful in future.
14408
if test "$aix_use_runtimelinking" = yes; then
14409
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14410
# instead of lib<name>.a to let people know that these are not
14411
# typical AIX shared libraries.
14412
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14414
# We preserve .a as extension for shared libraries through AIX4.2
14415
# and later when we are not doing run time linking.
14416
library_names_spec='${libname}${release}.a $libname.a'
14417
soname_spec='${libname}${release}${shared_ext}$major'
14419
shlibpath_var=LIBPATH
14424
library_names_spec='$libname.ixlibrary $libname.a'
14425
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14426
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'
14430
library_names_spec='${libname}${shared_ext}'
14431
dynamic_linker="$host_os ld.so"
14432
shlibpath_var=LIBRARY_PATH
14438
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14439
soname_spec='${libname}${release}${shared_ext}$major'
14440
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14441
shlibpath_var=LD_LIBRARY_PATH
14442
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14443
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14444
# the default ld.so.conf also contains /usr/contrib/lib and
14445
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14446
# libtool to hard-code these into programs
14449
cygwin* | mingw* | pw32*)
14450
version_type=windows
14455
case $GCC,$host_os in
14456
yes,cygwin* | yes,mingw* | yes,pw32*)
14457
library_names_spec='$libname.dll.a'
14458
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14459
postinstall_cmds='base_file=`basename \${file}`~
14460
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14461
dldir=$destdir/`dirname \$dlpath`~
14462
test -d \$dldir || mkdir -p \$dldir~
14463
$install_prog $dir/$dlname \$dldir/$dlname~
14464
chmod a+x \$dldir/$dlname'
14465
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14466
dlpath=$dir/\$dldll~
14468
shlibpath_overrides_runpath=yes
14472
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14473
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14474
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14477
# MinGW DLLs use traditional 'lib' prefix
14478
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14479
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14480
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14481
# It is most probably a Windows format PATH printed by
14482
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14483
# path with ; separators, and with drive letters. We can handle the
14484
# drive letters (cygwin fileutils understands them), so leave them,
14485
# especially as we might pass files found there to a mingw objdump,
14486
# which wouldn't understand a cygwinified path. Ahh.
14487
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14489
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14493
# pw32 DLLs use 'pw' prefix rather than 'lib'
14494
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14500
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14503
dynamic_linker='Win32 ld.exe'
14504
# FIXME: first we should search . and the directory the executable is in
14508
darwin* | rhapsody*)
14509
dynamic_linker="$host_os dyld"
14510
version_type=darwin
14513
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14514
soname_spec='${libname}${release}${major}$shared_ext'
14515
shlibpath_overrides_runpath=yes
14516
shlibpath_var=DYLD_LIBRARY_PATH
14517
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14518
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14519
if test "$GCC" = yes; then
14520
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"`
14522
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14524
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14531
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14532
soname_spec='${libname}${release}${shared_ext}$major'
14533
shlibpath_var=LD_LIBRARY_PATH
14544
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14545
soname_spec='${libname}${release}${shared_ext}$major'
14546
shlibpath_var=LD_LIBRARY_PATH
14547
shlibpath_overrides_runpath=no
14548
hardcode_into_libs=yes
14549
dynamic_linker='GNU ld.so'
14552
freebsd* | dragonfly*)
14553
# DragonFly does not have aout. When/if they implement a new
14554
# versioning mechanism, adjust this.
14555
if test -x /usr/bin/objformat; then
14556
objformat=`/usr/bin/objformat`
14559
freebsd[123]*) objformat=aout ;;
14560
*) objformat=elf ;;
14563
version_type=freebsd-$objformat
14564
case $version_type in
14566
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14571
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14575
shlibpath_var=LD_LIBRARY_PATH
14578
shlibpath_overrides_runpath=yes
14580
freebsd3.[01]* | freebsdelf3.[01]*)
14581
shlibpath_overrides_runpath=yes
14582
hardcode_into_libs=yes
14585
shlibpath_overrides_runpath=no
14586
hardcode_into_libs=yes
14595
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14596
soname_spec='${libname}${release}${shared_ext}$major'
14597
shlibpath_var=LD_LIBRARY_PATH
14598
hardcode_into_libs=yes
14601
hpux9* | hpux10* | hpux11*)
14602
# Give a soname corresponding to the major version so that dld.sl refuses to
14603
# link against other versions.
14610
hardcode_into_libs=yes
14611
dynamic_linker="$host_os dld.so"
14612
shlibpath_var=LD_LIBRARY_PATH
14613
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14614
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14615
soname_spec='${libname}${release}${shared_ext}$major'
14616
if test "X$HPUX_IA64_MODE" = X32; then
14617
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14619
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14621
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14625
hardcode_into_libs=yes
14626
dynamic_linker="$host_os dld.sl"
14627
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14628
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14629
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14630
soname_spec='${libname}${release}${shared_ext}$major'
14631
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14632
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14636
dynamic_linker="$host_os dld.sl"
14637
shlibpath_var=SHLIB_PATH
14638
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14639
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14640
soname_spec='${libname}${release}${shared_ext}$major'
14643
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14644
postinstall_cmds='chmod 555 $lib'
14647
irix5* | irix6* | nonstopux*)
14649
nonstopux*) version_type=nonstopux ;;
14651
if test "$lt_cv_prog_gnu_ld" = yes; then
14659
soname_spec='${libname}${release}${shared_ext}$major'
14660
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14662
irix5* | nonstopux*)
14663
libsuff= shlibsuff=
14666
case $LD in # libtool.m4 will add one of these switches to LD
14667
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14668
libsuff= shlibsuff= libmagic=32-bit;;
14669
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14670
libsuff=32 shlibsuff=N32 libmagic=N32;;
14671
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14672
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14673
*) libsuff= shlibsuff= libmagic=never-match;;
14677
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14678
shlibpath_overrides_runpath=no
14679
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14680
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14681
hardcode_into_libs=yes
14684
# No shared lib support for Linux oldld, aout, or coff.
14685
linux*oldld* | linux*aout* | linux*coff*)
14689
# This must be Linux ELF.
14694
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14695
soname_spec='${libname}${release}${shared_ext}$major'
14696
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14697
shlibpath_var=LD_LIBRARY_PATH
14698
shlibpath_overrides_runpath=no
14699
# This implies no fast_install, which is unacceptable.
14700
# Some rework will be needed to allow for fast_install
14701
# before this can be enabled.
14702
hardcode_into_libs=yes
14704
# Append ld.so.conf contents to the search path
14705
if test -f /etc/ld.so.conf; then
14706
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14707
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14710
# We used to test for /lib/ld.so.1 and disable shared libraries on
14711
# powerpc, because MkLinux only supported shared libraries with the
14712
# GNU dynamic linker. Since this was broken with cross compilers,
14713
# most powerpc-linux boxes support dynamic linking these days and
14714
# people can always --disable-shared, the test was removed, and we
14715
# assume the GNU/Linux dynamic linker is in use.
14716
dynamic_linker='GNU/Linux ld.so'
14723
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14724
soname_spec='${libname}${release}${shared_ext}$major'
14725
shlibpath_var=LD_LIBRARY_PATH
14726
shlibpath_overrides_runpath=no
14727
hardcode_into_libs=yes
14728
dynamic_linker='GNU ld.so'
14735
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14736
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14737
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14738
dynamic_linker='NetBSD (a.out) ld.so'
14740
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14741
soname_spec='${libname}${release}${shared_ext}$major'
14742
dynamic_linker='NetBSD ld.elf_so'
14744
shlibpath_var=LD_LIBRARY_PATH
14745
shlibpath_overrides_runpath=yes
14746
hardcode_into_libs=yes
14751
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14752
shlibpath_var=LD_LIBRARY_PATH
14753
shlibpath_overrides_runpath=yes
14760
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14761
soname_spec='${libname}${release}${shared_ext}$major'
14762
shlibpath_var=LD_LIBRARY_PATH
14763
shlibpath_overrides_runpath=yes
14769
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14771
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14772
*) need_version=no ;;
14774
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14775
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14776
shlibpath_var=LD_LIBRARY_PATH
14777
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14779
openbsd2.[89] | openbsd2.[89].*)
14780
shlibpath_overrides_runpath=no
14783
shlibpath_overrides_runpath=yes
14787
shlibpath_overrides_runpath=yes
14792
libname_spec='$name'
14795
library_names_spec='$libname${shared_ext} $libname.a'
14796
dynamic_linker='OS/2 ld.exe'
14797
shlibpath_var=LIBPATH
14800
osf3* | osf4* | osf5*)
14804
soname_spec='${libname}${release}${shared_ext}$major'
14805
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14806
shlibpath_var=LD_LIBRARY_PATH
14807
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14808
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14813
soname_spec='${libname}${release}${shared_ext}$major'
14814
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14815
shlibpath_var=LD_LIBRARY_PATH
14822
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14823
soname_spec='${libname}${release}${shared_ext}$major'
14824
shlibpath_var=LD_LIBRARY_PATH
14825
shlibpath_overrides_runpath=yes
14826
hardcode_into_libs=yes
14827
# ldd complains unless libraries are executable
14828
postinstall_cmds='chmod +x $lib'
14833
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14834
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14835
shlibpath_var=LD_LIBRARY_PATH
14836
shlibpath_overrides_runpath=yes
14837
if test "$with_gnu_ld" = yes; then
14843
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14845
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14846
soname_spec='${libname}${release}${shared_ext}$major'
14847
shlibpath_var=LD_LIBRARY_PATH
14848
case $host_vendor in
14850
shlibpath_overrides_runpath=no
14852
export_dynamic_flag_spec='${wl}-Blargedynsym'
14853
runpath_var=LD_RUN_PATH
14861
shlibpath_overrides_runpath=no
14862
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14868
if test -d /usr/nec ;then
14870
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14871
soname_spec='$libname${shared_ext}.$major'
14872
shlibpath_var=LD_LIBRARY_PATH
14878
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14879
soname_spec='${libname}${release}${shared_ext}$major'
14880
shlibpath_var=LD_LIBRARY_PATH
14887
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14888
echo "${ECHO_T}$dynamic_linker" >&6
14889
test "$dynamic_linker" = no && can_build_shared=no
14891
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14892
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14893
hardcode_action_F77=
14894
if test -n "$hardcode_libdir_flag_spec_F77" || \
14895
test -n "$runpath_var_F77" || \
14896
test "X$hardcode_automatic_F77" = "Xyes" ; then
14898
# We can hardcode non-existant directories.
14899
if test "$hardcode_direct_F77" != no &&
14900
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14901
# have to relink, otherwise we might link with an installed library
14902
# when we should be linking with a yet-to-be-installed one
14903
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14904
test "$hardcode_minus_L_F77" != no; then
14905
# Linking always hardcodes the temporary library directory.
14906
hardcode_action_F77=relink
14908
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14909
hardcode_action_F77=immediate
14912
# We cannot hardcode anything, or else we can only hardcode existing
14914
hardcode_action_F77=unsupported
14916
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14917
echo "${ECHO_T}$hardcode_action_F77" >&6
14919
if test "$hardcode_action_F77" = relink; then
14920
# Fast installation is not supported
14921
enable_fast_install=no
14922
elif test "$shlibpath_overrides_runpath" = yes ||
14923
test "$enable_shared" = no; then
14924
# Fast installation is not necessary
14925
enable_fast_install=needless
14930
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14931
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14932
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14933
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14934
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14935
echo "$as_me:$LINENO: result: yes" >&5
14936
echo "${ECHO_T}yes" >&6
14938
# FIXME - insert some real tests, host_os isn't really good enough
14941
if test -n "$STRIP" ; then
14942
striplib="$STRIP -x"
14943
echo "$as_me:$LINENO: result: yes" >&5
14944
echo "${ECHO_T}yes" >&6
14946
echo "$as_me:$LINENO: result: no" >&5
14947
echo "${ECHO_T}no" >&6
14951
echo "$as_me:$LINENO: result: no" >&5
14952
echo "${ECHO_T}no" >&6
14959
# The else clause should only fire when bootstrapping the
14960
# libtool distribution, otherwise you forgot to ship ltmain.sh
14961
# with your package, and you will get complaints that there are
14962
# no rules to generate ltmain.sh.
14963
if test -f "$ltmain"; then
14964
# See if we are running on zsh, and set the options which allow our commands through
14965
# without removal of \ escapes.
14966
if test -n "${ZSH_VERSION+set}" ; then
14967
setopt NO_GLOB_SUBST
14969
# Now quote all the things that may contain metacharacters while being
14970
# careful not to overquote the AC_SUBSTed values. We take copies of the
14971
# variables and quote the copies for generation of the libtool script.
14972
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14974
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14975
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14976
deplibs_check_method reload_flag reload_cmds need_locks \
14977
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14978
lt_cv_sys_global_symbol_to_c_name_address \
14979
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14980
old_postinstall_cmds old_postuninstall_cmds \
14984
lt_prog_compiler_wl_F77 \
14985
lt_prog_compiler_pic_F77 \
14986
lt_prog_compiler_static_F77 \
14987
lt_prog_compiler_no_builtin_flag_F77 \
14988
export_dynamic_flag_spec_F77 \
14989
thread_safe_flag_spec_F77 \
14990
whole_archive_flag_spec_F77 \
14991
enable_shared_with_static_runtimes_F77 \
14992
old_archive_cmds_F77 \
14993
old_archive_from_new_cmds_F77 \
14994
predep_objects_F77 \
14995
postdep_objects_F77 \
14998
compiler_lib_search_path_F77 \
15000
archive_expsym_cmds_F77 \
15001
postinstall_cmds_F77 \
15002
postuninstall_cmds_F77 \
15003
old_archive_from_expsyms_cmds_F77 \
15004
allow_undefined_flag_F77 \
15005
no_undefined_flag_F77 \
15006
export_symbols_cmds_F77 \
15007
hardcode_libdir_flag_spec_F77 \
15008
hardcode_libdir_flag_spec_ld_F77 \
15009
hardcode_libdir_separator_F77 \
15010
hardcode_automatic_F77 \
15012
module_expsym_cmds_F77 \
15013
lt_cv_prog_compiler_c_o_F77 \
15014
exclude_expsyms_F77 \
15015
include_expsyms_F77; do
15018
old_archive_cmds_F77 | \
15019
old_archive_from_new_cmds_F77 | \
15020
archive_cmds_F77 | \
15021
archive_expsym_cmds_F77 | \
15022
module_cmds_F77 | \
15023
module_expsym_cmds_F77 | \
15024
old_archive_from_expsyms_cmds_F77 | \
15025
export_symbols_cmds_F77 | \
15026
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15027
postinstall_cmds | postuninstall_cmds | \
15028
old_postinstall_cmds | old_postuninstall_cmds | \
15029
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15030
# Double-quote double-evaled strings.
15031
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15034
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15040
*'\$0 --fallback-echo"')
15041
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15047
cat <<__EOF__ >> "$cfgfile"
15048
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15050
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15052
# Shell to use when invoking shell scripts.
15055
# Whether or not to build shared libraries.
15056
build_libtool_libs=$enable_shared
15058
# Whether or not to build static libraries.
15059
build_old_libs=$enable_static
15061
# Whether or not to add -lc for building shared libraries.
15062
build_libtool_need_lc=$archive_cmds_need_lc_F77
15064
# Whether or not to disallow shared libs when runtime libs are static
15065
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15067
# Whether or not to optimize for fast installation.
15068
fast_install=$enable_fast_install
15071
host_alias=$host_alias
15075
# The build system.
15076
build_alias=$build_alias
15080
# An echo program that does not interpret backslashes.
15085
AR_FLAGS=$lt_AR_FLAGS
15090
# A language-specific compiler.
15091
CC=$lt_compiler_F77
15093
# Is the compiler the GNU C compiler?
15099
# The linker used to build libraries.
15102
# Whether we need hard or soft links.
15105
# A BSD-compatible nm program.
15108
# A symbol stripping program
15111
# Used to examine libraries when file_magic_cmd begins "file"
15112
MAGIC_CMD=$MAGIC_CMD
15114
# Used on cygwin: DLL creation program.
15117
# Used on cygwin: object dumper.
15120
# Used on cygwin: assembler.
15123
# The name of the directory that contains temporary libtool files.
15126
# How to create reloadable object files.
15127
reload_flag=$lt_reload_flag
15128
reload_cmds=$lt_reload_cmds
15130
# How to pass a linker flag through the compiler.
15131
wl=$lt_lt_prog_compiler_wl_F77
15133
# Object file suffix (normally "o").
15134
objext="$ac_objext"
15136
# Old archive suffix (normally "a").
15139
# Shared library suffix (normally ".so").
15140
shrext_cmds='$shrext_cmds'
15142
# Executable file suffix (normally "").
15145
# Additional compiler flags for building library objects.
15146
pic_flag=$lt_lt_prog_compiler_pic_F77
15149
# What is the maximum length of a command?
15150
max_cmd_len=$lt_cv_sys_max_cmd_len
15152
# Does compiler simultaneously support -c and -o options?
15153
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15155
# Must we lock files when doing compilation?
15156
need_locks=$lt_need_locks
15158
# Do we need the lib prefix for modules?
15159
need_lib_prefix=$need_lib_prefix
15161
# Do we need a version for libraries?
15162
need_version=$need_version
15164
# Whether dlopen is supported.
15165
dlopen_support=$enable_dlopen
15167
# Whether dlopen of programs is supported.
15168
dlopen_self=$enable_dlopen_self
15170
# Whether dlopen of statically linked programs is supported.
15171
dlopen_self_static=$enable_dlopen_self_static
15173
# Compiler flag to prevent dynamic linking.
15174
link_static_flag=$lt_lt_prog_compiler_static_F77
15176
# Compiler flag to turn off builtin functions.
15177
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15179
# Compiler flag to allow reflexive dlopens.
15180
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15182
# Compiler flag to generate shared objects directly from archives.
15183
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15185
# Compiler flag to generate thread-safe objects.
15186
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15188
# Library versioning type.
15189
version_type=$version_type
15191
# Format of library name prefix.
15192
libname_spec=$lt_libname_spec
15194
# List of archive names. First name is the real one, the rest are links.
15195
# The last name is the one that the linker finds with -lNAME.
15196
library_names_spec=$lt_library_names_spec
15198
# The coded name of the library, if different from the real name.
15199
soname_spec=$lt_soname_spec
15201
# Commands used to build and install an old-style archive.
15203
old_archive_cmds=$lt_old_archive_cmds_F77
15204
old_postinstall_cmds=$lt_old_postinstall_cmds
15205
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15207
# Create an old-style archive from a shared archive.
15208
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15210
# Create a temporary old-style archive to link instead of a shared archive.
15211
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15213
# Commands used to build and install a shared archive.
15214
archive_cmds=$lt_archive_cmds_F77
15215
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15216
postinstall_cmds=$lt_postinstall_cmds
15217
postuninstall_cmds=$lt_postuninstall_cmds
15219
# Commands used to build a loadable module (assumed same as above if empty)
15220
module_cmds=$lt_module_cmds_F77
15221
module_expsym_cmds=$lt_module_expsym_cmds_F77
15223
# Commands to strip libraries.
15224
old_striplib=$lt_old_striplib
15225
striplib=$lt_striplib
15227
# Dependencies to place before the objects being linked to create a
15229
predep_objects=$lt_predep_objects_F77
15231
# Dependencies to place after the objects being linked to create a
15233
postdep_objects=$lt_postdep_objects_F77
15235
# Dependencies to place before the objects being linked to create a
15237
predeps=$lt_predeps_F77
15239
# Dependencies to place after the objects being linked to create a
15241
postdeps=$lt_postdeps_F77
15243
# The library search path used internally by the compiler when linking
15244
# a shared library.
15245
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15247
# Method to check whether dependent libraries are shared objects.
15248
deplibs_check_method=$lt_deplibs_check_method
15250
# Command to use when deplibs_check_method == file_magic.
15251
file_magic_cmd=$lt_file_magic_cmd
15253
# Flag that allows shared libraries with undefined symbols to be built.
15254
allow_undefined_flag=$lt_allow_undefined_flag_F77
15256
# Flag that forces no undefined symbols.
15257
no_undefined_flag=$lt_no_undefined_flag_F77
15259
# Commands used to finish a libtool library installation in a directory.
15260
finish_cmds=$lt_finish_cmds
15262
# Same as above, but a single script fragment to be evaled but not shown.
15263
finish_eval=$lt_finish_eval
15265
# Take the output of nm and produce a listing of raw symbols and C names.
15266
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15268
# Transform the output of nm in a proper C declaration
15269
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15271
# Transform the output of nm in a C name address pair
15272
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15274
# This is the shared library runtime path variable.
15275
runpath_var=$runpath_var
15277
# This is the shared library path variable.
15278
shlibpath_var=$shlibpath_var
15280
# Is shlibpath searched before the hard-coded library search path?
15281
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15283
# How to hardcode a shared library path into an executable.
15284
hardcode_action=$hardcode_action_F77
15286
# Whether we should hardcode library paths into libraries.
15287
hardcode_into_libs=$hardcode_into_libs
15289
# Flag to hardcode \$libdir into a binary during linking.
15290
# This must work even if \$libdir does not exist.
15291
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15293
# If ld is used when linking, flag to hardcode \$libdir into
15294
# a binary during linking. This must work even if \$libdir does
15296
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15298
# Whether we need a single -rpath flag with a separated argument.
15299
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15301
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15302
# resulting binary.
15303
hardcode_direct=$hardcode_direct_F77
15305
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15306
# resulting binary.
15307
hardcode_minus_L=$hardcode_minus_L_F77
15309
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15310
# the resulting binary.
15311
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15313
# Set to yes if building a shared library automatically hardcodes DIR into the library
15314
# and all subsequent libraries and executables linked against it.
15315
hardcode_automatic=$hardcode_automatic_F77
15317
# Variables whose values should be saved in libtool wrapper scripts and
15318
# restored at relink time.
15319
variables_saved_for_relink="$variables_saved_for_relink"
15321
# Whether libtool must link a program against all its dependency libraries.
15322
link_all_deplibs=$link_all_deplibs_F77
15324
# Compile-time system search path for libraries
15325
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15327
# Run-time system search path for libraries
15328
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15330
# Fix the shell variable \$srcfile for the compiler.
15331
fix_srcfile_path="$fix_srcfile_path_F77"
15333
# Set to yes if exported symbols are required.
15334
always_export_symbols=$always_export_symbols_F77
15336
# The commands to list exported symbols.
15337
export_symbols_cmds=$lt_export_symbols_cmds_F77
15339
# The commands to extract the exported symbol list from a shared archive.
15340
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15342
# Symbols that should not be listed in the preloaded symbols.
15343
exclude_expsyms=$lt_exclude_expsyms_F77
15345
# Symbols that must always be exported.
15346
include_expsyms=$lt_include_expsyms_F77
15348
# ### END LIBTOOL TAG CONFIG: $tagname
15354
# If there is no Makefile yet, we rely on a make rule to execute
15355
# `config.status --recheck' to rerun these tests and create the
15356
# libtool script then.
15357
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15358
if test -f "$ltmain_in"; then
15359
test -f Makefile && make "$ltmain"
15365
ac_cpp='$CPP $CPPFLAGS'
15366
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15367
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15368
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15378
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15382
# Source file extension for Java test sources.
15385
# Object file extension for compiled Java test sources.
15389
# Code to be used in simple compile tests
15390
lt_simple_compile_test_code="class foo {}\n"
15392
# Code to be used in simple link tests
15393
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15395
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15397
# If no C compiler was specified, use CC.
15400
# Allow CC to be a program name with arguments.
15404
# save warnings/boilerplate of simple test code
15405
ac_outfile=conftest.$ac_objext
15406
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15407
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15408
_lt_compiler_boilerplate=`cat conftest.err`
15411
ac_outfile=conftest.$ac_objext
15412
printf "$lt_simple_link_test_code" >conftest.$ac_ext
15413
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15414
_lt_linker_boilerplate=`cat conftest.err`
15418
# Allow CC to be a program name with arguments.
15423
for cc_temp in $compiler""; do
15425
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15426
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15431
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15434
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15435
archive_cmds_need_lc_GCJ=no
15437
old_archive_cmds_GCJ=$old_archive_cmds
15440
## There is no encapsulation within the following macros, do not change
15441
## the running order or otherwise move them around unless you know exactly
15442
## what you are doing...
15444
lt_prog_compiler_no_builtin_flag_GCJ=
15446
if test "$GCC" = yes; then
15447
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15450
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15451
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15452
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15453
echo $ECHO_N "(cached) $ECHO_C" >&6
15455
lt_cv_prog_compiler_rtti_exceptions=no
15456
ac_outfile=conftest.$ac_objext
15457
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15458
lt_compiler_flag="-fno-rtti -fno-exceptions"
15459
# Insert the option either (1) after the last *FLAGS variable, or
15460
# (2) before a word containing "conftest.", or (3) at the end.
15461
# Note that $ac_compile itself does not contain backslashes and begins
15462
# with a dollar sign (not a hyphen), so the echo should work correctly.
15463
# The option is referenced via a variable to avoid confusing sed.
15464
lt_compile=`echo "$ac_compile" | $SED \
15465
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15466
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15467
-e 's:$: $lt_compiler_flag:'`
15468
(eval echo "\"\$as_me:15468: $lt_compile\"" >&5)
15469
(eval "$lt_compile" 2>conftest.err)
15471
cat conftest.err >&5
15472
echo "$as_me:15472: \$? = $ac_status" >&5
15473
if (exit $ac_status) && test -s "$ac_outfile"; then
15474
# The compiler can only warn and ignore the option if not recognized
15475
# So say no if there are warnings other than the usual output.
15476
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15477
$SED '/^$/d' conftest.err >conftest.er2
15478
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15479
lt_cv_prog_compiler_rtti_exceptions=yes
15485
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15486
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15488
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15489
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15496
lt_prog_compiler_wl_GCJ=
15497
lt_prog_compiler_pic_GCJ=
15498
lt_prog_compiler_static_GCJ=
15500
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15501
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15503
if test "$GCC" = yes; then
15504
lt_prog_compiler_wl_GCJ='-Wl,'
15505
lt_prog_compiler_static_GCJ='-static'
15509
# All AIX code is PIC.
15510
if test "$host_cpu" = ia64; then
15511
# AIX 5 now supports IA64 processor
15512
lt_prog_compiler_static_GCJ='-Bstatic'
15517
# FIXME: we need at least 68020 code to build shared libraries, but
15518
# adding the `-m68020' flag to GCC prevents building anything better,
15520
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15523
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15524
# PIC is the default for these OSes.
15527
mingw* | pw32* | os2*)
15528
# This hack is so that the source file can tell whether it is being
15529
# built for inclusion in a dll (and should export symbols for example).
15530
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15533
darwin* | rhapsody*)
15534
# PIC is the default on this platform
15535
# Common symbols not allowed in MH_DYLIB files
15536
lt_prog_compiler_pic_GCJ='-fno-common'
15540
# Just because we use GCC doesn't mean we suddenly get shared libraries
15541
# on systems that don't support them.
15542
lt_prog_compiler_can_build_shared_GCJ=no
15547
if test -d /usr/nec; then
15548
lt_prog_compiler_pic_GCJ=-Kconform_pic
15553
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15554
# not for PA HP-UX.
15560
lt_prog_compiler_pic_GCJ='-fPIC'
15566
lt_prog_compiler_pic_GCJ='-fPIC'
15570
# PORTME Check for flag to pass linker flags through the system compiler.
15573
lt_prog_compiler_wl_GCJ='-Wl,'
15574
if test "$host_cpu" = ia64; then
15575
# AIX 5 now supports IA64 processor
15576
lt_prog_compiler_static_GCJ='-Bstatic'
15578
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15582
# PIC is the default on this platform
15583
# Common symbols not allowed in MH_DYLIB files
15584
case $cc_basename in
15586
lt_prog_compiler_pic_GCJ='-qnocommon'
15587
lt_prog_compiler_wl_GCJ='-Wl,'
15592
mingw* | pw32* | os2*)
15593
# This hack is so that the source file can tell whether it is being
15594
# built for inclusion in a dll (and should export symbols for example).
15595
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15598
hpux9* | hpux10* | hpux11*)
15599
lt_prog_compiler_wl_GCJ='-Wl,'
15600
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15601
# not for PA HP-UX.
15607
lt_prog_compiler_pic_GCJ='+Z'
15610
# Is there a better lt_prog_compiler_static that works with the bundled CC?
15611
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15614
irix5* | irix6* | nonstopux*)
15615
lt_prog_compiler_wl_GCJ='-Wl,'
15616
# PIC (with -KPIC) is the default.
15617
lt_prog_compiler_static_GCJ='-non_shared'
15621
lt_prog_compiler_pic_GCJ='-KPIC'
15622
lt_prog_compiler_static_GCJ='-Bstatic'
15626
case $cc_basename in
15628
lt_prog_compiler_wl_GCJ='-Wl,'
15629
lt_prog_compiler_pic_GCJ='-KPIC'
15630
lt_prog_compiler_static_GCJ='-static'
15632
pgcc* | pgf77* | pgf90* | pgf95*)
15633
# Portland Group compilers (*not* the Pentium gcc compiler,
15634
# which looks to be a dead project)
15635
lt_prog_compiler_wl_GCJ='-Wl,'
15636
lt_prog_compiler_pic_GCJ='-fpic'
15637
lt_prog_compiler_static_GCJ='-Bstatic'
15640
lt_prog_compiler_wl_GCJ='-Wl,'
15641
# All Alpha code is PIC.
15642
lt_prog_compiler_static_GCJ='-non_shared'
15647
osf3* | osf4* | osf5*)
15648
lt_prog_compiler_wl_GCJ='-Wl,'
15649
# All OSF/1 code is PIC.
15650
lt_prog_compiler_static_GCJ='-non_shared'
15654
lt_prog_compiler_pic_GCJ='-Kpic'
15655
lt_prog_compiler_static_GCJ='-dn'
15659
lt_prog_compiler_pic_GCJ='-KPIC'
15660
lt_prog_compiler_static_GCJ='-Bstatic'
15661
case $cc_basename in
15662
f77* | f90* | f95*)
15663
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15665
lt_prog_compiler_wl_GCJ='-Wl,';;
15670
lt_prog_compiler_wl_GCJ='-Qoption ld '
15671
lt_prog_compiler_pic_GCJ='-PIC'
15672
lt_prog_compiler_static_GCJ='-Bstatic'
15675
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15676
lt_prog_compiler_wl_GCJ='-Wl,'
15677
lt_prog_compiler_pic_GCJ='-KPIC'
15678
lt_prog_compiler_static_GCJ='-Bstatic'
15682
if test -d /usr/nec ;then
15683
lt_prog_compiler_pic_GCJ='-Kconform_pic'
15684
lt_prog_compiler_static_GCJ='-Bstatic'
15689
lt_prog_compiler_wl_GCJ='-Wl,'
15690
lt_prog_compiler_can_build_shared_GCJ=no
15694
lt_prog_compiler_pic_GCJ='-pic'
15695
lt_prog_compiler_static_GCJ='-Bstatic'
15699
lt_prog_compiler_can_build_shared_GCJ=no
15704
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15705
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15708
# Check to make sure the PIC flag actually works.
15710
if test -n "$lt_prog_compiler_pic_GCJ"; then
15712
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15713
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15714
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15715
echo $ECHO_N "(cached) $ECHO_C" >&6
15717
lt_prog_compiler_pic_works_GCJ=no
15718
ac_outfile=conftest.$ac_objext
15719
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15720
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15721
# Insert the option either (1) after the last *FLAGS variable, or
15722
# (2) before a word containing "conftest.", or (3) at the end.
15723
# Note that $ac_compile itself does not contain backslashes and begins
15724
# with a dollar sign (not a hyphen), so the echo should work correctly.
15725
# The option is referenced via a variable to avoid confusing sed.
15726
lt_compile=`echo "$ac_compile" | $SED \
15727
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15728
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15729
-e 's:$: $lt_compiler_flag:'`
15730
(eval echo "\"\$as_me:15730: $lt_compile\"" >&5)
15731
(eval "$lt_compile" 2>conftest.err)
15733
cat conftest.err >&5
15734
echo "$as_me:15734: \$? = $ac_status" >&5
15735
if (exit $ac_status) && test -s "$ac_outfile"; then
15736
# The compiler can only warn and ignore the option if not recognized
15737
# So say no if there are warnings other than the usual output.
15738
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15739
$SED '/^$/d' conftest.err >conftest.er2
15740
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15741
lt_prog_compiler_pic_works_GCJ=yes
15747
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15748
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15750
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15751
case $lt_prog_compiler_pic_GCJ in
15753
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15756
lt_prog_compiler_pic_GCJ=
15757
lt_prog_compiler_can_build_shared_GCJ=no
15762
# For platforms which do not support PIC, -DPIC is meaningless:
15764
lt_prog_compiler_pic_GCJ=
15767
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15771
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15772
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15773
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15774
echo $ECHO_N "(cached) $ECHO_C" >&6
15776
lt_cv_prog_compiler_c_o_GCJ=no
15777
$rm -r conftest 2>/dev/null
15781
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15783
lt_compiler_flag="-o out/conftest2.$ac_objext"
15784
# Insert the option either (1) after the last *FLAGS variable, or
15785
# (2) before a word containing "conftest.", or (3) at the end.
15786
# Note that $ac_compile itself does not contain backslashes and begins
15787
# with a dollar sign (not a hyphen), so the echo should work correctly.
15788
lt_compile=`echo "$ac_compile" | $SED \
15789
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15790
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15791
-e 's:$: $lt_compiler_flag:'`
15792
(eval echo "\"\$as_me:15792: $lt_compile\"" >&5)
15793
(eval "$lt_compile" 2>out/conftest.err)
15795
cat out/conftest.err >&5
15796
echo "$as_me:15796: \$? = $ac_status" >&5
15797
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15799
# The compiler can only warn and ignore the option if not recognized
15800
# So say no if there are warnings
15801
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15802
$SED '/^$/d' out/conftest.err >out/conftest.er2
15803
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15804
lt_cv_prog_compiler_c_o_GCJ=yes
15809
# SGI C++ compiler will create directory out/ii_files/ for
15810
# template instantiation
15811
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15812
$rm out/* && rmdir out
15818
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15819
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15822
hard_links="nottested"
15823
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15824
# do not overwrite the value of need_locks provided by the user
15825
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15826
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15829
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15831
ln conftest.a conftest.b 2>&5 || hard_links=no
15832
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15833
echo "$as_me:$LINENO: result: $hard_links" >&5
15834
echo "${ECHO_T}$hard_links" >&6
15835
if test "$hard_links" = no; then
15836
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15837
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15844
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15845
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15848
allow_undefined_flag_GCJ=
15849
enable_shared_with_static_runtimes_GCJ=no
15851
archive_expsym_cmds_GCJ=
15852
old_archive_From_new_cmds_GCJ=
15853
old_archive_from_expsyms_cmds_GCJ=
15854
export_dynamic_flag_spec_GCJ=
15855
whole_archive_flag_spec_GCJ=
15856
thread_safe_flag_spec_GCJ=
15857
hardcode_libdir_flag_spec_GCJ=
15858
hardcode_libdir_flag_spec_ld_GCJ=
15859
hardcode_libdir_separator_GCJ=
15860
hardcode_direct_GCJ=no
15861
hardcode_minus_L_GCJ=no
15862
hardcode_shlibpath_var_GCJ=unsupported
15863
link_all_deplibs_GCJ=unknown
15864
hardcode_automatic_GCJ=no
15866
module_expsym_cmds_GCJ=
15867
always_export_symbols_GCJ=no
15868
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15869
# include_expsyms should be a list of space-separated symbols to be *always*
15870
# included in the symbol list
15871
include_expsyms_GCJ=
15872
# exclude_expsyms can be an extended regexp of symbols to exclude
15873
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15874
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15875
# as well as any symbol that contains `d'.
15876
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15877
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15878
# platforms (ab)use it in PIC code, but their linkers get confused if
15879
# the symbol is explicitly referenced. Since portable code cannot
15880
# rely on this symbol name, it's probably fine to never include it in
15881
# preloaded symbol tables.
15882
extract_expsyms_cmds=
15883
# Just being paranoid about ensuring that cc_basename is set.
15884
for cc_temp in $compiler""; do
15886
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15887
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15892
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15895
cygwin* | mingw* | pw32*)
15896
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15897
# When not using gcc, we currently assume that we are using
15898
# Microsoft Visual C++.
15899
if test "$GCC" != yes; then
15909
if test "$with_gnu_ld" = yes; then
15910
# If archive_cmds runs LD, not CC, wlarc should be empty
15913
# Set some defaults for GNU ld with shared library support. These
15914
# are reset later if shared libraries are not supported. Putting them
15915
# here allows them to be overridden if necessary.
15916
runpath_var=LD_RUN_PATH
15917
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15918
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15919
# ancient GNU ld didn't support --whole-archive et. al.
15920
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15921
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15923
whole_archive_flag_spec_GCJ=
15925
supports_anon_versioning=no
15926
case `$LD -v 2>/dev/null` in
15927
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15928
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15929
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15930
*\ 2.11.*) ;; # other 2.11 versions
15931
*) supports_anon_versioning=yes ;;
15934
# See if GNU ld supports shared libraries.
15936
aix3* | aix4* | aix5*)
15937
# On AIX/PPC, the GNU linker is very broken
15938
if test "$host_cpu" != ia64; then
15942
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15943
*** to be unable to reliably create shared libraries on AIX.
15944
*** Therefore, libtool is disabling shared libraries support. If you
15945
*** really care for shared libraries, you may want to modify your PATH
15946
*** so that a non-GNU linker is found, and then restart.
15953
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)'
15954
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15955
hardcode_minus_L_GCJ=yes
15957
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15958
# that the semantics of dynamic libraries on AmigaOS, at least up
15959
# to version 4, is to share data among multiple programs linked
15960
# with the same dynamic library. Since this doesn't match the
15961
# behavior of shared libraries on other platforms, we can't use
15967
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15968
allow_undefined_flag_GCJ=unsupported
15969
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15970
# support --undefined. This deserves some investigation. FIXME
15971
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15977
cygwin* | mingw* | pw32*)
15978
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15979
# as there is no search path for DLLs.
15980
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15981
allow_undefined_flag_GCJ=unsupported
15982
always_export_symbols_GCJ=no
15983
enable_shared_with_static_runtimes_GCJ=yes
15984
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15986
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15987
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15988
# If the export-symbols file already is a .def file (1st line
15989
# is EXPORTS), use it as is; otherwise, prepend...
15990
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15991
cp $export_symbols $output_objdir/$soname.def;
15993
echo EXPORTS > $output_objdir/$soname.def;
15994
cat $export_symbols >> $output_objdir/$soname.def;
15996
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16003
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16005
case $cc_basename,$host_cpu in
16006
pgcc*) # Portland Group C compiler
16007
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16008
tmp_addflag=' $pic_flag'
16010
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16011
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16012
tmp_addflag=' $pic_flag -Mnomain' ;;
16013
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16014
tmp_addflag=' -i_dynamic' ;;
16015
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16016
tmp_addflag=' -i_dynamic -nofor_main' ;;
16017
ifc* | ifort*) # Intel Fortran compiler
16018
tmp_addflag=' -nofor_main' ;;
16020
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
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'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16034
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16035
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
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'
16044
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16048
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16049
*** create shared libraries on Solaris systems. Therefore, libtool
16050
*** is disabling shared libraries support. We urge you to upgrade GNU
16051
*** binutils to release 2.9.1 or newer. Another option is to modify
16052
*** your PATH or compiler configuration so that the native linker is
16053
*** used, and then restart.
16056
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16057
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16058
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16065
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16067
hardcode_direct_GCJ=yes
16068
hardcode_shlibpath_var_GCJ=no
16072
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16073
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16074
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16081
if test "$ld_shlibs_GCJ" = no; then
16083
hardcode_libdir_flag_spec_GCJ=
16084
export_dynamic_flag_spec_GCJ=
16085
whole_archive_flag_spec_GCJ=
16088
# PORTME fill in a description of your system's linker (not GNU ld)
16091
allow_undefined_flag_GCJ=unsupported
16092
always_export_symbols_GCJ=yes
16093
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'
16094
# Note: this linker hardcodes the directories in LIBPATH if there
16095
# are no directories specified by -L.
16096
hardcode_minus_L_GCJ=yes
16097
if test "$GCC" = yes && test -z "$link_static_flag"; then
16098
# Neither direct hardcoding nor static linking is supported with a
16100
hardcode_direct_GCJ=unsupported
16105
if test "$host_cpu" = ia64; then
16106
# On IA64, the linker does run time linking by default, so we don't
16107
# have to do anything special.
16108
aix_use_runtimelinking=no
16109
exp_sym_flag='-Bexport'
16112
# If we're using GNU nm, then we don't want the "-C" option.
16113
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16114
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16115
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'
16117
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'
16119
aix_use_runtimelinking=no
16121
# Test if we are trying to use run time linking or normal
16122
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16123
# need to do runtime linking.
16124
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16125
for ld_flag in $LDFLAGS; do
16126
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16127
aix_use_runtimelinking=yes
16133
exp_sym_flag='-bexport'
16134
no_entry_flag='-bnoentry'
16137
# When large executables or shared objects are built, AIX ld can
16138
# have problems creating the table of contents. If linking a library
16139
# or program results in "error TOC overflow" add -mminimal-toc to
16140
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16141
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16143
archive_cmds_GCJ=''
16144
hardcode_direct_GCJ=yes
16145
hardcode_libdir_separator_GCJ=':'
16146
link_all_deplibs_GCJ=yes
16148
if test "$GCC" = yes; then
16149
case $host_os in aix4.[012]|aix4.[012].*)
16150
# We only want to do this on AIX 4.2 and lower, the check
16151
# below for broken collect2 doesn't work under 4.3+
16152
collect2name=`${CC} -print-prog-name=collect2`
16153
if test -f "$collect2name" && \
16154
strings "$collect2name" | grep resolve_lib_name >/dev/null
16156
# We have reworked collect2
16157
hardcode_direct_GCJ=yes
16159
# We have old collect2
16160
hardcode_direct_GCJ=unsupported
16161
# It fails to find uninstalled libraries when the uninstalled
16162
# path is not listed in the libpath. Setting hardcode_minus_L
16163
# to unsupported forces relinking
16164
hardcode_minus_L_GCJ=yes
16165
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16166
hardcode_libdir_separator_GCJ=
16169
shared_flag='-shared'
16170
if test "$aix_use_runtimelinking" = yes; then
16171
shared_flag="$shared_flag "'${wl}-G'
16175
if test "$host_cpu" = ia64; then
16176
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16177
# chokes on -Wl,-G. The following line is correct:
16180
if test "$aix_use_runtimelinking" = yes; then
16181
shared_flag='${wl}-G'
16183
shared_flag='${wl}-bM:SRE'
16188
# It seems that -bexpall does not export symbols beginning with
16189
# underscore (_), so it is better to generate a list of symbols to export.
16190
always_export_symbols_GCJ=yes
16191
if test "$aix_use_runtimelinking" = yes; then
16192
# Warning - without using the other runtime loading flags (-brtl),
16193
# -berok will link without error, but may produce a broken library.
16194
allow_undefined_flag_GCJ='-berok'
16195
# Determine the default libpath from the value encoded in an empty executable.
16196
cat >conftest.$ac_ext <<_ACEOF
16199
cat confdefs.h >>conftest.$ac_ext
16200
cat >>conftest.$ac_ext <<_ACEOF
16201
/* end confdefs.h. */
16211
rm -f conftest.$ac_objext conftest$ac_exeext
16212
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16213
(eval $ac_link) 2>conftest.er1
16215
grep -v '^ *+' conftest.er1 >conftest.err
16217
cat conftest.err >&5
16218
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219
(exit $ac_status); } &&
16220
{ ac_try='test -z "$ac_c_werror_flag"
16221
|| test ! -s conftest.err'
16222
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16223
(eval $ac_try) 2>&5
16225
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226
(exit $ac_status); }; } &&
16227
{ ac_try='test -s conftest$ac_exeext'
16228
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16229
(eval $ac_try) 2>&5
16231
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232
(exit $ac_status); }; }; then
16234
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16236
# Check for a 64-bit object if we didn't find anything.
16237
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; }
16240
echo "$as_me: failed program was:" >&5
16241
sed 's/^/| /' conftest.$ac_ext >&5
16244
rm -f conftest.err conftest.$ac_objext \
16245
conftest$ac_exeext conftest.$ac_ext
16246
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16248
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16249
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"
16251
if test "$host_cpu" = ia64; then
16252
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16253
allow_undefined_flag_GCJ="-z nodefs"
16254
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"
16256
# Determine the default libpath from the value encoded in an empty executable.
16257
cat >conftest.$ac_ext <<_ACEOF
16260
cat confdefs.h >>conftest.$ac_ext
16261
cat >>conftest.$ac_ext <<_ACEOF
16262
/* end confdefs.h. */
16272
rm -f conftest.$ac_objext conftest$ac_exeext
16273
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16274
(eval $ac_link) 2>conftest.er1
16276
grep -v '^ *+' conftest.er1 >conftest.err
16278
cat conftest.err >&5
16279
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280
(exit $ac_status); } &&
16281
{ ac_try='test -z "$ac_c_werror_flag"
16282
|| test ! -s conftest.err'
16283
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284
(eval $ac_try) 2>&5
16286
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287
(exit $ac_status); }; } &&
16288
{ ac_try='test -s conftest$ac_exeext'
16289
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290
(eval $ac_try) 2>&5
16292
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293
(exit $ac_status); }; }; then
16295
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16297
# Check for a 64-bit object if we didn't find anything.
16298
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; }
16301
echo "$as_me: failed program was:" >&5
16302
sed 's/^/| /' conftest.$ac_ext >&5
16305
rm -f conftest.err conftest.$ac_objext \
16306
conftest$ac_exeext conftest.$ac_ext
16307
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16309
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16310
# Warning - without using the other run time loading flags,
16311
# -berok will link without error, but may produce a broken library.
16312
no_undefined_flag_GCJ=' ${wl}-bernotok'
16313
allow_undefined_flag_GCJ=' ${wl}-berok'
16314
# -bexpall does not export symbols beginning with underscore (_)
16315
always_export_symbols_GCJ=yes
16316
# Exported symbols can be pulled into shared objects from archives
16317
whole_archive_flag_spec_GCJ=' '
16318
archive_cmds_need_lc_GCJ=yes
16319
# This is similar to how AIX traditionally builds its shared libraries.
16320
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'
16326
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)'
16327
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16328
hardcode_minus_L_GCJ=yes
16329
# see comment about different semantics on the GNU ld section
16334
export_dynamic_flag_spec_GCJ=-rdynamic
16337
cygwin* | mingw* | pw32*)
16338
# When not using gcc, we currently assume that we are using
16339
# Microsoft Visual C++.
16340
# hardcode_libdir_flag_spec is actually meaningless, as there is
16341
# no search path for DLLs.
16342
hardcode_libdir_flag_spec_GCJ=' '
16343
allow_undefined_flag_GCJ=unsupported
16344
# Tell ltmain to make .lib files, not .a files.
16346
# Tell ltmain to make .dll files, not .so files.
16348
# FIXME: Setting linknames here is a bad hack.
16349
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16350
# The linker will automatically build a .lib file if we build a DLL.
16351
old_archive_From_new_cmds_GCJ='true'
16352
# FIXME: Should let the user specify the lib program.
16353
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16354
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16355
enable_shared_with_static_runtimes_GCJ=yes
16358
darwin* | rhapsody*)
16360
rhapsody* | darwin1.[012])
16361
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16364
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16365
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16367
case ${MACOSX_DEPLOYMENT_TARGET} in
16369
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16372
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16378
archive_cmds_need_lc_GCJ=no
16379
hardcode_direct_GCJ=no
16380
hardcode_automatic_GCJ=yes
16381
hardcode_shlibpath_var_GCJ=unsupported
16382
whole_archive_flag_spec_GCJ=''
16383
link_all_deplibs_GCJ=yes
16384
if test "$GCC" = yes ; then
16385
output_verbose_link_cmd='echo'
16386
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16387
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16388
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16389
archive_expsym_cmds_GCJ='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}'
16390
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}'
16392
case $cc_basename in
16394
output_verbose_link_cmd='echo'
16395
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16396
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16397
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16398
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16399
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}'
16409
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16410
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16411
hardcode_shlibpath_var_GCJ=no
16418
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16419
# support. Future versions do this automatically, but an explicit c++rt0.o
16420
# does not break anything, and helps significantly (at the cost of a little
16423
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16424
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16425
hardcode_direct_GCJ=yes
16426
hardcode_shlibpath_var_GCJ=no
16429
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16431
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16432
hardcode_direct_GCJ=yes
16433
hardcode_minus_L_GCJ=yes
16434
hardcode_shlibpath_var_GCJ=no
16437
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16438
freebsd* | kfreebsd*-gnu | dragonfly*)
16439
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16440
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16441
hardcode_direct_GCJ=yes
16442
hardcode_shlibpath_var_GCJ=no
16446
if test "$GCC" = yes; then
16447
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'
16449
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'
16451
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16452
hardcode_libdir_separator_GCJ=:
16453
hardcode_direct_GCJ=yes
16455
# hardcode_minus_L: Not really in the search PATH,
16456
# but as the default location of the library.
16457
hardcode_minus_L_GCJ=yes
16458
export_dynamic_flag_spec_GCJ='${wl}-E'
16462
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16465
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16468
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16474
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16477
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16481
if test "$with_gnu_ld" = no; then
16484
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16485
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16486
hardcode_libdir_separator_GCJ=:
16487
hardcode_direct_GCJ=no
16488
hardcode_shlibpath_var_GCJ=no
16491
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16492
hardcode_direct_GCJ=no
16493
hardcode_shlibpath_var_GCJ=no
16495
# hardcode_minus_L: Not really in the search PATH,
16496
# but as the default location of the library.
16497
hardcode_minus_L_GCJ=yes
16500
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16501
hardcode_libdir_separator_GCJ=:
16502
hardcode_direct_GCJ=yes
16503
export_dynamic_flag_spec_GCJ='${wl}-E'
16505
# hardcode_minus_L: Not really in the search PATH,
16506
# but as the default location of the library.
16507
hardcode_minus_L_GCJ=yes
16513
irix5* | irix6* | nonstopux*)
16514
if test "$GCC" = yes; then
16515
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'
16517
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'
16518
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16520
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16521
hardcode_libdir_separator_GCJ=:
16522
link_all_deplibs_GCJ=yes
16526
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16527
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16529
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16531
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16532
hardcode_direct_GCJ=yes
16533
hardcode_shlibpath_var_GCJ=no
16537
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16538
hardcode_direct_GCJ=yes
16539
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16540
hardcode_libdir_separator_GCJ=:
16541
hardcode_shlibpath_var_GCJ=no
16545
hardcode_direct_GCJ=yes
16546
hardcode_shlibpath_var_GCJ=no
16547
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16548
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16549
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16550
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16551
export_dynamic_flag_spec_GCJ='${wl}-E'
16554
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16555
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16556
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16559
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16560
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16567
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16568
hardcode_minus_L_GCJ=yes
16569
allow_undefined_flag_GCJ=unsupported
16570
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'
16571
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16575
if test "$GCC" = yes; then
16576
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16577
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'
16579
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16580
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'
16582
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16583
hardcode_libdir_separator_GCJ=:
16586
osf4* | osf5*) # as osf3* with the addition of -msym flag
16587
if test "$GCC" = yes; then
16588
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16589
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'
16590
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16592
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16593
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'
16594
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~
16595
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16597
# Both c and cxx compiler support -rpath directly
16598
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16600
hardcode_libdir_separator_GCJ=:
16604
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16605
hardcode_shlibpath_var_GCJ=no
16606
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16607
runpath_var=LD_RUN_PATH
16608
hardcode_runpath_var=yes
16612
no_undefined_flag_GCJ=' -z text'
16613
if test "$GCC" = yes; then
16615
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16616
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16617
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16620
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16621
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16622
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16624
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16625
hardcode_shlibpath_var_GCJ=no
16627
solaris2.[0-5] | solaris2.[0-5].*) ;;
16629
# The compiler driver will combine linker options so we
16630
# cannot just pass the convience library names through
16631
# without $wl, iff we do not link with $LD.
16632
# Luckily, gcc supports the same syntax we need for Sun Studio.
16633
# Supported since Solaris 2.6 (maybe 2.5.1?)
16636
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16638
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16641
link_all_deplibs_GCJ=yes
16645
if test "x$host_vendor" = xsequent; then
16646
# Use $CC to link under sequent, because it throws in some extra .o
16647
# files that make .init and .fini sections work.
16648
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16650
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16652
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16653
hardcode_direct_GCJ=yes
16654
hardcode_minus_L_GCJ=yes
16655
hardcode_shlibpath_var_GCJ=no
16659
case $host_vendor in
16661
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16662
hardcode_direct_GCJ=yes # is this really true???
16665
## LD is ld it makes a PLAMLIB
16666
## CC just makes a GrossModule.
16667
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16668
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16669
hardcode_direct_GCJ=no
16672
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16673
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16676
runpath_var='LD_RUN_PATH'
16677
hardcode_shlibpath_var_GCJ=no
16681
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16682
hardcode_shlibpath_var_GCJ=no
16683
export_dynamic_flag_spec_GCJ='-Bexport'
16687
if test -d /usr/nec; then
16688
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16689
hardcode_shlibpath_var_GCJ=no
16690
runpath_var=LD_RUN_PATH
16691
hardcode_runpath_var=yes
16697
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16698
hardcode_direct_GCJ=yes
16699
hardcode_minus_L_GCJ=no
16700
hardcode_shlibpath_var_GCJ=no
16701
hardcode_runpath_var=yes
16702
runpath_var=LD_RUN_PATH
16705
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16706
no_undefined_flag_GCJ='${wl}-z ${wl}text'
16707
if test "$GCC" = yes; then
16708
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16710
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16712
runpath_var='LD_RUN_PATH'
16713
hardcode_shlibpath_var_GCJ=no
16717
no_undefined_flag_GCJ=' -z text'
16718
# $CC -shared without GNU ld will not create a library from C++
16719
# object files and a static libstdc++, better avoid it by now
16720
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16721
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16722
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16723
hardcode_libdir_flag_spec_GCJ=
16724
hardcode_shlibpath_var_GCJ=no
16725
runpath_var='LD_RUN_PATH'
16729
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16730
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16731
hardcode_shlibpath_var_GCJ=no
16740
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16741
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16742
test "$ld_shlibs_GCJ" = no && can_build_shared=no
16744
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16745
if test "$GCC" = yes; then
16746
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16750
# Do we need to explicitly link libc?
16752
case "x$archive_cmds_need_lc_GCJ" in
16754
# Assume -lc should be added
16755
archive_cmds_need_lc_GCJ=yes
16757
if test "$enable_shared" = yes && test "$GCC" = yes; then
16758
case $archive_cmds_GCJ in
16760
# FIXME: we may have to deal with multi-command sequences.
16763
# Test whether the compiler implicitly links with -lc since on some
16764
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16765
# to ld, don't add -lc before -lgcc.
16766
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16767
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16769
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16771
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16772
(eval $ac_compile) 2>&5
16774
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775
(exit $ac_status); } 2>conftest.err; then
16778
libobjs=conftest.$ac_objext
16780
wl=$lt_prog_compiler_wl_GCJ
16786
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16787
allow_undefined_flag_GCJ=
16788
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16789
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16791
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792
(exit $ac_status); }
16794
archive_cmds_need_lc_GCJ=no
16796
archive_cmds_need_lc_GCJ=yes
16798
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16800
cat conftest.err 1>&5
16803
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16804
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16811
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16812
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16813
library_names_spec=
16814
libname_spec='lib$name'
16818
postuninstall_cmds=
16822
shlibpath_overrides_runpath=unknown
16824
dynamic_linker="$host_os ld.so"
16825
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16826
if test "$GCC" = yes; then
16827
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16828
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16829
# if the path contains ";" then we assume it to be the separator
16830
# otherwise default to the standard path separator (i.e. ":") - it is
16831
# assumed that no part of a normal pathname contains ";" but that should
16832
# okay in the real world where ";" in dirpaths is itself problematic.
16833
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16835
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16838
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16840
need_lib_prefix=unknown
16841
hardcode_into_libs=no
16843
# when you set need_version to no, make sure it does not cause -set_version
16844
# flags to be left without arguments
16845
need_version=unknown
16850
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16851
shlibpath_var=LIBPATH
16853
# AIX 3 has no versioning support, so we append a major version to the name.
16854
soname_spec='${libname}${release}${shared_ext}$major'
16861
hardcode_into_libs=yes
16862
if test "$host_cpu" = ia64; then
16863
# AIX 5 supports IA64
16864
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16865
shlibpath_var=LD_LIBRARY_PATH
16867
# With GCC up to 2.95.x, collect2 would create an import file
16868
# for dependence libraries. The import file would start with
16869
# the line `#! .'. This would cause the generated library to
16870
# depend on `.', always an invalid library. This was fixed in
16871
# development snapshots of GCC prior to 3.0.
16873
aix4 | aix4.[01] | aix4.[01].*)
16874
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16876
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16879
can_build_shared=no
16883
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16884
# soname into executable. Probably we can add versioning support to
16885
# collect2, so additional links can be useful in future.
16886
if test "$aix_use_runtimelinking" = yes; then
16887
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16888
# instead of lib<name>.a to let people know that these are not
16889
# typical AIX shared libraries.
16890
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16892
# We preserve .a as extension for shared libraries through AIX4.2
16893
# and later when we are not doing run time linking.
16894
library_names_spec='${libname}${release}.a $libname.a'
16895
soname_spec='${libname}${release}${shared_ext}$major'
16897
shlibpath_var=LIBPATH
16902
library_names_spec='$libname.ixlibrary $libname.a'
16903
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16904
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'
16908
library_names_spec='${libname}${shared_ext}'
16909
dynamic_linker="$host_os ld.so"
16910
shlibpath_var=LIBRARY_PATH
16916
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16917
soname_spec='${libname}${release}${shared_ext}$major'
16918
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16919
shlibpath_var=LD_LIBRARY_PATH
16920
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16921
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16922
# the default ld.so.conf also contains /usr/contrib/lib and
16923
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16924
# libtool to hard-code these into programs
16927
cygwin* | mingw* | pw32*)
16928
version_type=windows
16933
case $GCC,$host_os in
16934
yes,cygwin* | yes,mingw* | yes,pw32*)
16935
library_names_spec='$libname.dll.a'
16936
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16937
postinstall_cmds='base_file=`basename \${file}`~
16938
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16939
dldir=$destdir/`dirname \$dlpath`~
16940
test -d \$dldir || mkdir -p \$dldir~
16941
$install_prog $dir/$dlname \$dldir/$dlname~
16942
chmod a+x \$dldir/$dlname'
16943
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16944
dlpath=$dir/\$dldll~
16946
shlibpath_overrides_runpath=yes
16950
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16951
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16952
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16955
# MinGW DLLs use traditional 'lib' prefix
16956
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16957
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16958
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16959
# It is most probably a Windows format PATH printed by
16960
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16961
# path with ; separators, and with drive letters. We can handle the
16962
# drive letters (cygwin fileutils understands them), so leave them,
16963
# especially as we might pass files found there to a mingw objdump,
16964
# which wouldn't understand a cygwinified path. Ahh.
16965
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16967
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16971
# pw32 DLLs use 'pw' prefix rather than 'lib'
16972
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16978
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16981
dynamic_linker='Win32 ld.exe'
16982
# FIXME: first we should search . and the directory the executable is in
16986
darwin* | rhapsody*)
16987
dynamic_linker="$host_os dyld"
16988
version_type=darwin
16991
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16992
soname_spec='${libname}${release}${major}$shared_ext'
16993
shlibpath_overrides_runpath=yes
16994
shlibpath_var=DYLD_LIBRARY_PATH
16995
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16996
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16997
if test "$GCC" = yes; then
16998
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"`
17000
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17002
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17009
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17010
soname_spec='${libname}${release}${shared_ext}$major'
17011
shlibpath_var=LD_LIBRARY_PATH
17022
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17023
soname_spec='${libname}${release}${shared_ext}$major'
17024
shlibpath_var=LD_LIBRARY_PATH
17025
shlibpath_overrides_runpath=no
17026
hardcode_into_libs=yes
17027
dynamic_linker='GNU ld.so'
17030
freebsd* | dragonfly*)
17031
# DragonFly does not have aout. When/if they implement a new
17032
# versioning mechanism, adjust this.
17033
if test -x /usr/bin/objformat; then
17034
objformat=`/usr/bin/objformat`
17037
freebsd[123]*) objformat=aout ;;
17038
*) objformat=elf ;;
17041
version_type=freebsd-$objformat
17042
case $version_type in
17044
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17049
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17053
shlibpath_var=LD_LIBRARY_PATH
17056
shlibpath_overrides_runpath=yes
17058
freebsd3.[01]* | freebsdelf3.[01]*)
17059
shlibpath_overrides_runpath=yes
17060
hardcode_into_libs=yes
17063
shlibpath_overrides_runpath=no
17064
hardcode_into_libs=yes
17073
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17074
soname_spec='${libname}${release}${shared_ext}$major'
17075
shlibpath_var=LD_LIBRARY_PATH
17076
hardcode_into_libs=yes
17079
hpux9* | hpux10* | hpux11*)
17080
# Give a soname corresponding to the major version so that dld.sl refuses to
17081
# link against other versions.
17088
hardcode_into_libs=yes
17089
dynamic_linker="$host_os dld.so"
17090
shlibpath_var=LD_LIBRARY_PATH
17091
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17092
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17093
soname_spec='${libname}${release}${shared_ext}$major'
17094
if test "X$HPUX_IA64_MODE" = X32; then
17095
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17097
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17099
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17103
hardcode_into_libs=yes
17104
dynamic_linker="$host_os dld.sl"
17105
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17106
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17107
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17108
soname_spec='${libname}${release}${shared_ext}$major'
17109
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17110
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17114
dynamic_linker="$host_os dld.sl"
17115
shlibpath_var=SHLIB_PATH
17116
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17117
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17118
soname_spec='${libname}${release}${shared_ext}$major'
17121
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17122
postinstall_cmds='chmod 555 $lib'
17125
irix5* | irix6* | nonstopux*)
17127
nonstopux*) version_type=nonstopux ;;
17129
if test "$lt_cv_prog_gnu_ld" = yes; then
17137
soname_spec='${libname}${release}${shared_ext}$major'
17138
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17140
irix5* | nonstopux*)
17141
libsuff= shlibsuff=
17144
case $LD in # libtool.m4 will add one of these switches to LD
17145
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17146
libsuff= shlibsuff= libmagic=32-bit;;
17147
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17148
libsuff=32 shlibsuff=N32 libmagic=N32;;
17149
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17150
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17151
*) libsuff= shlibsuff= libmagic=never-match;;
17155
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17156
shlibpath_overrides_runpath=no
17157
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17158
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17159
hardcode_into_libs=yes
17162
# No shared lib support for Linux oldld, aout, or coff.
17163
linux*oldld* | linux*aout* | linux*coff*)
17167
# This must be Linux ELF.
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
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17175
shlibpath_var=LD_LIBRARY_PATH
17176
shlibpath_overrides_runpath=no
17177
# This implies no fast_install, which is unacceptable.
17178
# Some rework will be needed to allow for fast_install
17179
# before this can be enabled.
17180
hardcode_into_libs=yes
17182
# Append ld.so.conf contents to the search path
17183
if test -f /etc/ld.so.conf; then
17184
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17185
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17188
# We used to test for /lib/ld.so.1 and disable shared libraries on
17189
# powerpc, because MkLinux only supported shared libraries with the
17190
# GNU dynamic linker. Since this was broken with cross compilers,
17191
# most powerpc-linux boxes support dynamic linking these days and
17192
# people can always --disable-shared, the test was removed, and we
17193
# assume the GNU/Linux dynamic linker is in use.
17194
dynamic_linker='GNU/Linux ld.so'
17201
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17202
soname_spec='${libname}${release}${shared_ext}$major'
17203
shlibpath_var=LD_LIBRARY_PATH
17204
shlibpath_overrides_runpath=no
17205
hardcode_into_libs=yes
17206
dynamic_linker='GNU ld.so'
17213
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17214
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17215
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17216
dynamic_linker='NetBSD (a.out) ld.so'
17218
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17219
soname_spec='${libname}${release}${shared_ext}$major'
17220
dynamic_linker='NetBSD ld.elf_so'
17222
shlibpath_var=LD_LIBRARY_PATH
17223
shlibpath_overrides_runpath=yes
17224
hardcode_into_libs=yes
17229
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17230
shlibpath_var=LD_LIBRARY_PATH
17231
shlibpath_overrides_runpath=yes
17238
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17239
soname_spec='${libname}${release}${shared_ext}$major'
17240
shlibpath_var=LD_LIBRARY_PATH
17241
shlibpath_overrides_runpath=yes
17247
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17249
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17250
*) need_version=no ;;
17252
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17253
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17254
shlibpath_var=LD_LIBRARY_PATH
17255
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17257
openbsd2.[89] | openbsd2.[89].*)
17258
shlibpath_overrides_runpath=no
17261
shlibpath_overrides_runpath=yes
17265
shlibpath_overrides_runpath=yes
17270
libname_spec='$name'
17273
library_names_spec='$libname${shared_ext} $libname.a'
17274
dynamic_linker='OS/2 ld.exe'
17275
shlibpath_var=LIBPATH
17278
osf3* | osf4* | osf5*)
17282
soname_spec='${libname}${release}${shared_ext}$major'
17283
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17284
shlibpath_var=LD_LIBRARY_PATH
17285
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17286
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17291
soname_spec='${libname}${release}${shared_ext}$major'
17292
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17293
shlibpath_var=LD_LIBRARY_PATH
17300
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17301
soname_spec='${libname}${release}${shared_ext}$major'
17302
shlibpath_var=LD_LIBRARY_PATH
17303
shlibpath_overrides_runpath=yes
17304
hardcode_into_libs=yes
17305
# ldd complains unless libraries are executable
17306
postinstall_cmds='chmod +x $lib'
17311
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17312
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17313
shlibpath_var=LD_LIBRARY_PATH
17314
shlibpath_overrides_runpath=yes
17315
if test "$with_gnu_ld" = yes; then
17321
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17323
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17324
soname_spec='${libname}${release}${shared_ext}$major'
17325
shlibpath_var=LD_LIBRARY_PATH
17326
case $host_vendor in
17328
shlibpath_overrides_runpath=no
17330
export_dynamic_flag_spec='${wl}-Blargedynsym'
17331
runpath_var=LD_RUN_PATH
17339
shlibpath_overrides_runpath=no
17340
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17346
if test -d /usr/nec ;then
17348
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17349
soname_spec='$libname${shared_ext}.$major'
17350
shlibpath_var=LD_LIBRARY_PATH
17356
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17357
soname_spec='${libname}${release}${shared_ext}$major'
17358
shlibpath_var=LD_LIBRARY_PATH
17365
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17366
echo "${ECHO_T}$dynamic_linker" >&6
17367
test "$dynamic_linker" = no && can_build_shared=no
17369
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17370
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17371
hardcode_action_GCJ=
17372
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17373
test -n "$runpath_var_GCJ" || \
17374
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17376
# We can hardcode non-existant directories.
17377
if test "$hardcode_direct_GCJ" != no &&
17378
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17379
# have to relink, otherwise we might link with an installed library
17380
# when we should be linking with a yet-to-be-installed one
17381
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17382
test "$hardcode_minus_L_GCJ" != no; then
17383
# Linking always hardcodes the temporary library directory.
17384
hardcode_action_GCJ=relink
17386
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17387
hardcode_action_GCJ=immediate
17390
# We cannot hardcode anything, or else we can only hardcode existing
17392
hardcode_action_GCJ=unsupported
17394
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17395
echo "${ECHO_T}$hardcode_action_GCJ" >&6
17397
if test "$hardcode_action_GCJ" = relink; then
17398
# Fast installation is not supported
17399
enable_fast_install=no
17400
elif test "$shlibpath_overrides_runpath" = yes ||
17401
test "$enable_shared" = no; then
17402
# Fast installation is not necessary
17403
enable_fast_install=needless
17408
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17409
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17410
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17411
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17412
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17413
echo "$as_me:$LINENO: result: yes" >&5
17414
echo "${ECHO_T}yes" >&6
17416
# FIXME - insert some real tests, host_os isn't really good enough
17419
if test -n "$STRIP" ; then
17420
striplib="$STRIP -x"
17421
echo "$as_me:$LINENO: result: yes" >&5
17422
echo "${ECHO_T}yes" >&6
17424
echo "$as_me:$LINENO: result: no" >&5
17425
echo "${ECHO_T}no" >&6
17429
echo "$as_me:$LINENO: result: no" >&5
17430
echo "${ECHO_T}no" >&6
17435
if test "x$enable_dlopen" != xyes; then
17436
enable_dlopen=unknown
17437
enable_dlopen_self=unknown
17438
enable_dlopen_self_static=unknown
17445
lt_cv_dlopen="load_add_on"
17447
lt_cv_dlopen_self=yes
17451
lt_cv_dlopen="LoadLibrary"
17456
lt_cv_dlopen="dlopen"
17461
# if libdl is installed we need to link against it
17462
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17463
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17464
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17465
echo $ECHO_N "(cached) $ECHO_C" >&6
17467
ac_check_lib_save_LIBS=$LIBS
17469
cat >conftest.$ac_ext <<_ACEOF
17472
cat confdefs.h >>conftest.$ac_ext
17473
cat >>conftest.$ac_ext <<_ACEOF
17474
/* end confdefs.h. */
17476
/* Override any gcc2 internal prototype to avoid an error. */
17480
/* We use char because int might match the return type of a gcc2
17481
builtin and then its argument prototype would still apply. */
17491
rm -f conftest.$ac_objext conftest$ac_exeext
17492
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17493
(eval $ac_link) 2>conftest.er1
17495
grep -v '^ *+' conftest.er1 >conftest.err
17497
cat conftest.err >&5
17498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499
(exit $ac_status); } &&
17500
{ ac_try='test -z "$ac_c_werror_flag"
17501
|| test ! -s conftest.err'
17502
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503
(eval $ac_try) 2>&5
17505
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506
(exit $ac_status); }; } &&
17507
{ ac_try='test -s conftest$ac_exeext'
17508
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509
(eval $ac_try) 2>&5
17511
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512
(exit $ac_status); }; }; then
17513
ac_cv_lib_dl_dlopen=yes
17515
echo "$as_me: failed program was:" >&5
17516
sed 's/^/| /' conftest.$ac_ext >&5
17518
ac_cv_lib_dl_dlopen=no
17520
rm -f conftest.err conftest.$ac_objext \
17521
conftest$ac_exeext conftest.$ac_ext
17522
LIBS=$ac_check_lib_save_LIBS
17524
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17525
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17526
if test $ac_cv_lib_dl_dlopen = yes; then
17527
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17530
lt_cv_dlopen="dyld"
17532
lt_cv_dlopen_self=yes
17539
echo "$as_me:$LINENO: checking for shl_load" >&5
17540
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17541
if test "${ac_cv_func_shl_load+set}" = set; then
17542
echo $ECHO_N "(cached) $ECHO_C" >&6
17544
cat >conftest.$ac_ext <<_ACEOF
17547
cat confdefs.h >>conftest.$ac_ext
17548
cat >>conftest.$ac_ext <<_ACEOF
17549
/* end confdefs.h. */
17550
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17551
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17552
#define shl_load innocuous_shl_load
17554
/* System header to define __stub macros and hopefully few prototypes,
17555
which can conflict with char shl_load (); below.
17556
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17557
<limits.h> exists even on freestanding compilers. */
17560
# include <limits.h>
17562
# include <assert.h>
17567
/* Override any gcc2 internal prototype to avoid an error. */
17572
/* We use char because int might match the return type of a gcc2
17573
builtin and then its argument prototype would still apply. */
17575
/* The GNU C library defines this for functions which it implements
17576
to always fail with ENOSYS. Some functions are actually named
17577
something starting with __ and the normal name is an alias. */
17578
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17581
char (*f) () = shl_load;
17590
return f != shl_load;
17595
rm -f conftest.$ac_objext conftest$ac_exeext
17596
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17597
(eval $ac_link) 2>conftest.er1
17599
grep -v '^ *+' conftest.er1 >conftest.err
17601
cat conftest.err >&5
17602
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603
(exit $ac_status); } &&
17604
{ ac_try='test -z "$ac_c_werror_flag"
17605
|| test ! -s conftest.err'
17606
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17607
(eval $ac_try) 2>&5
17609
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610
(exit $ac_status); }; } &&
17611
{ ac_try='test -s conftest$ac_exeext'
17612
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17613
(eval $ac_try) 2>&5
17615
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616
(exit $ac_status); }; }; then
17617
ac_cv_func_shl_load=yes
17619
echo "$as_me: failed program was:" >&5
17620
sed 's/^/| /' conftest.$ac_ext >&5
17622
ac_cv_func_shl_load=no
17624
rm -f conftest.err conftest.$ac_objext \
17625
conftest$ac_exeext conftest.$ac_ext
17627
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17628
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17629
if test $ac_cv_func_shl_load = yes; then
17630
lt_cv_dlopen="shl_load"
17632
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17633
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17634
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17635
echo $ECHO_N "(cached) $ECHO_C" >&6
17637
ac_check_lib_save_LIBS=$LIBS
17639
cat >conftest.$ac_ext <<_ACEOF
17642
cat confdefs.h >>conftest.$ac_ext
17643
cat >>conftest.$ac_ext <<_ACEOF
17644
/* end confdefs.h. */
17646
/* Override any gcc2 internal prototype to avoid an error. */
17650
/* We use char because int might match the return type of a gcc2
17651
builtin and then its argument prototype would still apply. */
17661
rm -f conftest.$ac_objext conftest$ac_exeext
17662
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17663
(eval $ac_link) 2>conftest.er1
17665
grep -v '^ *+' conftest.er1 >conftest.err
17667
cat conftest.err >&5
17668
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669
(exit $ac_status); } &&
17670
{ ac_try='test -z "$ac_c_werror_flag"
17671
|| test ! -s conftest.err'
17672
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17673
(eval $ac_try) 2>&5
17675
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676
(exit $ac_status); }; } &&
17677
{ ac_try='test -s conftest$ac_exeext'
17678
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17679
(eval $ac_try) 2>&5
17681
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682
(exit $ac_status); }; }; then
17683
ac_cv_lib_dld_shl_load=yes
17685
echo "$as_me: failed program was:" >&5
17686
sed 's/^/| /' conftest.$ac_ext >&5
17688
ac_cv_lib_dld_shl_load=no
17690
rm -f conftest.err conftest.$ac_objext \
17691
conftest$ac_exeext conftest.$ac_ext
17692
LIBS=$ac_check_lib_save_LIBS
17694
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17695
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17696
if test $ac_cv_lib_dld_shl_load = yes; then
17697
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17699
echo "$as_me:$LINENO: checking for dlopen" >&5
17700
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17701
if test "${ac_cv_func_dlopen+set}" = set; then
17702
echo $ECHO_N "(cached) $ECHO_C" >&6
17704
cat >conftest.$ac_ext <<_ACEOF
17707
cat confdefs.h >>conftest.$ac_ext
17708
cat >>conftest.$ac_ext <<_ACEOF
17709
/* end confdefs.h. */
17710
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17711
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17712
#define dlopen innocuous_dlopen
17714
/* System header to define __stub macros and hopefully few prototypes,
17715
which can conflict with char dlopen (); below.
17716
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17717
<limits.h> exists even on freestanding compilers. */
17720
# include <limits.h>
17722
# include <assert.h>
17727
/* Override any gcc2 internal prototype to avoid an error. */
17732
/* We use char because int might match the return type of a gcc2
17733
builtin and then its argument prototype would still apply. */
17735
/* The GNU C library defines this for functions which it implements
17736
to always fail with ENOSYS. Some functions are actually named
17737
something starting with __ and the normal name is an alias. */
17738
#if defined (__stub_dlopen) || defined (__stub___dlopen)
17741
char (*f) () = dlopen;
17750
return f != dlopen;
17755
rm -f conftest.$ac_objext conftest$ac_exeext
17756
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17757
(eval $ac_link) 2>conftest.er1
17759
grep -v '^ *+' conftest.er1 >conftest.err
17761
cat conftest.err >&5
17762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763
(exit $ac_status); } &&
17764
{ ac_try='test -z "$ac_c_werror_flag"
17765
|| test ! -s conftest.err'
17766
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17767
(eval $ac_try) 2>&5
17769
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770
(exit $ac_status); }; } &&
17771
{ ac_try='test -s conftest$ac_exeext'
17772
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773
(eval $ac_try) 2>&5
17775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776
(exit $ac_status); }; }; then
17777
ac_cv_func_dlopen=yes
17779
echo "$as_me: failed program was:" >&5
17780
sed 's/^/| /' conftest.$ac_ext >&5
17782
ac_cv_func_dlopen=no
17784
rm -f conftest.err conftest.$ac_objext \
17785
conftest$ac_exeext conftest.$ac_ext
17787
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17788
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17789
if test $ac_cv_func_dlopen = yes; then
17790
lt_cv_dlopen="dlopen"
17792
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17793
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17794
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17795
echo $ECHO_N "(cached) $ECHO_C" >&6
17797
ac_check_lib_save_LIBS=$LIBS
17799
cat >conftest.$ac_ext <<_ACEOF
17802
cat confdefs.h >>conftest.$ac_ext
17803
cat >>conftest.$ac_ext <<_ACEOF
17804
/* end confdefs.h. */
17806
/* Override any gcc2 internal prototype to avoid an error. */
17810
/* We use char because int might match the return type of a gcc2
17811
builtin and then its argument prototype would still apply. */
17821
rm -f conftest.$ac_objext conftest$ac_exeext
17822
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17823
(eval $ac_link) 2>conftest.er1
17825
grep -v '^ *+' conftest.er1 >conftest.err
17827
cat conftest.err >&5
17828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829
(exit $ac_status); } &&
17830
{ ac_try='test -z "$ac_c_werror_flag"
17831
|| test ! -s conftest.err'
17832
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17833
(eval $ac_try) 2>&5
17835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836
(exit $ac_status); }; } &&
17837
{ ac_try='test -s conftest$ac_exeext'
17838
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17839
(eval $ac_try) 2>&5
17841
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842
(exit $ac_status); }; }; then
17843
ac_cv_lib_dl_dlopen=yes
17845
echo "$as_me: failed program was:" >&5
17846
sed 's/^/| /' conftest.$ac_ext >&5
17848
ac_cv_lib_dl_dlopen=no
17850
rm -f conftest.err conftest.$ac_objext \
17851
conftest$ac_exeext conftest.$ac_ext
17852
LIBS=$ac_check_lib_save_LIBS
17854
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17855
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17856
if test $ac_cv_lib_dl_dlopen = yes; then
17857
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17859
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17860
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17861
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17862
echo $ECHO_N "(cached) $ECHO_C" >&6
17864
ac_check_lib_save_LIBS=$LIBS
17865
LIBS="-lsvld $LIBS"
17866
cat >conftest.$ac_ext <<_ACEOF
17869
cat confdefs.h >>conftest.$ac_ext
17870
cat >>conftest.$ac_ext <<_ACEOF
17871
/* end confdefs.h. */
17873
/* Override any gcc2 internal prototype to avoid an error. */
17877
/* We use char because int might match the return type of a gcc2
17878
builtin and then its argument prototype would still apply. */
17888
rm -f conftest.$ac_objext conftest$ac_exeext
17889
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17890
(eval $ac_link) 2>conftest.er1
17892
grep -v '^ *+' conftest.er1 >conftest.err
17894
cat conftest.err >&5
17895
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896
(exit $ac_status); } &&
17897
{ ac_try='test -z "$ac_c_werror_flag"
17898
|| test ! -s conftest.err'
17899
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17900
(eval $ac_try) 2>&5
17902
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903
(exit $ac_status); }; } &&
17904
{ ac_try='test -s conftest$ac_exeext'
17905
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17906
(eval $ac_try) 2>&5
17908
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909
(exit $ac_status); }; }; then
17910
ac_cv_lib_svld_dlopen=yes
17912
echo "$as_me: failed program was:" >&5
17913
sed 's/^/| /' conftest.$ac_ext >&5
17915
ac_cv_lib_svld_dlopen=no
17917
rm -f conftest.err conftest.$ac_objext \
17918
conftest$ac_exeext conftest.$ac_ext
17919
LIBS=$ac_check_lib_save_LIBS
17921
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17922
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17923
if test $ac_cv_lib_svld_dlopen = yes; then
17924
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17926
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17927
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17928
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17929
echo $ECHO_N "(cached) $ECHO_C" >&6
17931
ac_check_lib_save_LIBS=$LIBS
17933
cat >conftest.$ac_ext <<_ACEOF
17936
cat confdefs.h >>conftest.$ac_ext
17937
cat >>conftest.$ac_ext <<_ACEOF
17938
/* end confdefs.h. */
17940
/* Override any gcc2 internal prototype to avoid an error. */
17944
/* We use char because int might match the return type of a gcc2
17945
builtin and then its argument prototype would still apply. */
17955
rm -f conftest.$ac_objext conftest$ac_exeext
17956
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17957
(eval $ac_link) 2>conftest.er1
17959
grep -v '^ *+' conftest.er1 >conftest.err
17961
cat conftest.err >&5
17962
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963
(exit $ac_status); } &&
17964
{ ac_try='test -z "$ac_c_werror_flag"
17965
|| test ! -s conftest.err'
17966
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17967
(eval $ac_try) 2>&5
17969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970
(exit $ac_status); }; } &&
17971
{ ac_try='test -s conftest$ac_exeext'
17972
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17973
(eval $ac_try) 2>&5
17975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976
(exit $ac_status); }; }; then
17977
ac_cv_lib_dld_dld_link=yes
17979
echo "$as_me: failed program was:" >&5
17980
sed 's/^/| /' conftest.$ac_ext >&5
17982
ac_cv_lib_dld_dld_link=no
17984
rm -f conftest.err conftest.$ac_objext \
17985
conftest$ac_exeext conftest.$ac_ext
17986
LIBS=$ac_check_lib_save_LIBS
17988
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17989
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17990
if test $ac_cv_lib_dld_dld_link = yes; then
17991
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18012
if test "x$lt_cv_dlopen" != xno; then
18018
case $lt_cv_dlopen in
18020
save_CPPFLAGS="$CPPFLAGS"
18021
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18023
save_LDFLAGS="$LDFLAGS"
18024
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18027
LIBS="$lt_cv_dlopen_libs $LIBS"
18029
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18030
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18031
if test "${lt_cv_dlopen_self+set}" = set; then
18032
echo $ECHO_N "(cached) $ECHO_C" >&6
18034
if test "$cross_compiling" = yes; then :
18035
lt_cv_dlopen_self=cross
18037
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18038
lt_status=$lt_dlunknown
18039
cat > conftest.$ac_ext <<EOF
18040
#line 18040 "configure"
18041
#include "confdefs.h"
18050
# define LT_DLGLOBAL RTLD_GLOBAL
18053
# define LT_DLGLOBAL DL_GLOBAL
18055
# define LT_DLGLOBAL 0
18059
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18060
find out it does not work in some platform. */
18061
#ifndef LT_DLLAZY_OR_NOW
18063
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18066
# define LT_DLLAZY_OR_NOW DL_LAZY
18069
# define LT_DLLAZY_OR_NOW RTLD_NOW
18072
# define LT_DLLAZY_OR_NOW DL_NOW
18074
# define LT_DLLAZY_OR_NOW 0
18082
extern "C" void exit (int);
18085
void fnord() { int i=42;}
18088
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18089
int status = $lt_dlunknown;
18093
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18094
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18095
/* dlclose (self); */
18101
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18102
(eval $ac_link) 2>&5
18104
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18106
(./conftest; exit; ) >&5 2>/dev/null
18108
case x$lt_status in
18109
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18110
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18111
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18114
# compilation failed
18115
lt_cv_dlopen_self=no
18122
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18123
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18125
if test "x$lt_cv_dlopen_self" = xyes; then
18126
LDFLAGS="$LDFLAGS $link_static_flag"
18127
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18128
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18129
if test "${lt_cv_dlopen_self_static+set}" = set; then
18130
echo $ECHO_N "(cached) $ECHO_C" >&6
18132
if test "$cross_compiling" = yes; then :
18133
lt_cv_dlopen_self_static=cross
18135
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18136
lt_status=$lt_dlunknown
18137
cat > conftest.$ac_ext <<EOF
18138
#line 18138 "configure"
18139
#include "confdefs.h"
18148
# define LT_DLGLOBAL RTLD_GLOBAL
18151
# define LT_DLGLOBAL DL_GLOBAL
18153
# define LT_DLGLOBAL 0
18157
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18158
find out it does not work in some platform. */
18159
#ifndef LT_DLLAZY_OR_NOW
18161
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18164
# define LT_DLLAZY_OR_NOW DL_LAZY
18167
# define LT_DLLAZY_OR_NOW RTLD_NOW
18170
# define LT_DLLAZY_OR_NOW DL_NOW
18172
# define LT_DLLAZY_OR_NOW 0
18180
extern "C" void exit (int);
18183
void fnord() { int i=42;}
18186
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18187
int status = $lt_dlunknown;
18191
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18192
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18193
/* dlclose (self); */
18199
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18200
(eval $ac_link) 2>&5
18202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18204
(./conftest; exit; ) >&5 2>/dev/null
18206
case x$lt_status in
18207
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18208
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18209
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18212
# compilation failed
18213
lt_cv_dlopen_self_static=no
18220
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18221
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18224
CPPFLAGS="$save_CPPFLAGS"
18225
LDFLAGS="$save_LDFLAGS"
18230
case $lt_cv_dlopen_self in
18231
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18232
*) enable_dlopen_self=unknown ;;
18235
case $lt_cv_dlopen_self_static in
18236
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18237
*) enable_dlopen_self_static=unknown ;;
18242
# The else clause should only fire when bootstrapping the
18243
# libtool distribution, otherwise you forgot to ship ltmain.sh
18244
# with your package, and you will get complaints that there are
18245
# no rules to generate ltmain.sh.
18246
if test -f "$ltmain"; then
18247
# See if we are running on zsh, and set the options which allow our commands through
18248
# without removal of \ escapes.
18249
if test -n "${ZSH_VERSION+set}" ; then
18250
setopt NO_GLOB_SUBST
18252
# Now quote all the things that may contain metacharacters while being
18253
# careful not to overquote the AC_SUBSTed values. We take copies of the
18254
# variables and quote the copies for generation of the libtool script.
18255
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18257
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18258
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18259
deplibs_check_method reload_flag reload_cmds need_locks \
18260
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18261
lt_cv_sys_global_symbol_to_c_name_address \
18262
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18263
old_postinstall_cmds old_postuninstall_cmds \
18267
lt_prog_compiler_wl_GCJ \
18268
lt_prog_compiler_pic_GCJ \
18269
lt_prog_compiler_static_GCJ \
18270
lt_prog_compiler_no_builtin_flag_GCJ \
18271
export_dynamic_flag_spec_GCJ \
18272
thread_safe_flag_spec_GCJ \
18273
whole_archive_flag_spec_GCJ \
18274
enable_shared_with_static_runtimes_GCJ \
18275
old_archive_cmds_GCJ \
18276
old_archive_from_new_cmds_GCJ \
18277
predep_objects_GCJ \
18278
postdep_objects_GCJ \
18281
compiler_lib_search_path_GCJ \
18283
archive_expsym_cmds_GCJ \
18284
postinstall_cmds_GCJ \
18285
postuninstall_cmds_GCJ \
18286
old_archive_from_expsyms_cmds_GCJ \
18287
allow_undefined_flag_GCJ \
18288
no_undefined_flag_GCJ \
18289
export_symbols_cmds_GCJ \
18290
hardcode_libdir_flag_spec_GCJ \
18291
hardcode_libdir_flag_spec_ld_GCJ \
18292
hardcode_libdir_separator_GCJ \
18293
hardcode_automatic_GCJ \
18295
module_expsym_cmds_GCJ \
18296
lt_cv_prog_compiler_c_o_GCJ \
18297
exclude_expsyms_GCJ \
18298
include_expsyms_GCJ; do
18301
old_archive_cmds_GCJ | \
18302
old_archive_from_new_cmds_GCJ | \
18303
archive_cmds_GCJ | \
18304
archive_expsym_cmds_GCJ | \
18305
module_cmds_GCJ | \
18306
module_expsym_cmds_GCJ | \
18307
old_archive_from_expsyms_cmds_GCJ | \
18308
export_symbols_cmds_GCJ | \
18309
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18310
postinstall_cmds | postuninstall_cmds | \
18311
old_postinstall_cmds | old_postuninstall_cmds | \
18312
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18313
# Double-quote double-evaled strings.
18314
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18317
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18323
*'\$0 --fallback-echo"')
18324
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18330
cat <<__EOF__ >> "$cfgfile"
18331
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18333
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18335
# Shell to use when invoking shell scripts.
18338
# Whether or not to build shared libraries.
18339
build_libtool_libs=$enable_shared
18341
# Whether or not to build static libraries.
18342
build_old_libs=$enable_static
18344
# Whether or not to add -lc for building shared libraries.
18345
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18347
# Whether or not to disallow shared libs when runtime libs are static
18348
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18350
# Whether or not to optimize for fast installation.
18351
fast_install=$enable_fast_install
18354
host_alias=$host_alias
18358
# The build system.
18359
build_alias=$build_alias
18363
# An echo program that does not interpret backslashes.
18368
AR_FLAGS=$lt_AR_FLAGS
18373
# A language-specific compiler.
18374
CC=$lt_compiler_GCJ
18376
# Is the compiler the GNU C compiler?
18382
# The linker used to build libraries.
18385
# Whether we need hard or soft links.
18388
# A BSD-compatible nm program.
18391
# A symbol stripping program
18394
# Used to examine libraries when file_magic_cmd begins "file"
18395
MAGIC_CMD=$MAGIC_CMD
18397
# Used on cygwin: DLL creation program.
18400
# Used on cygwin: object dumper.
18403
# Used on cygwin: assembler.
18406
# The name of the directory that contains temporary libtool files.
18409
# How to create reloadable object files.
18410
reload_flag=$lt_reload_flag
18411
reload_cmds=$lt_reload_cmds
18413
# How to pass a linker flag through the compiler.
18414
wl=$lt_lt_prog_compiler_wl_GCJ
18416
# Object file suffix (normally "o").
18417
objext="$ac_objext"
18419
# Old archive suffix (normally "a").
18422
# Shared library suffix (normally ".so").
18423
shrext_cmds='$shrext_cmds'
18425
# Executable file suffix (normally "").
18428
# Additional compiler flags for building library objects.
18429
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18432
# What is the maximum length of a command?
18433
max_cmd_len=$lt_cv_sys_max_cmd_len
18435
# Does compiler simultaneously support -c and -o options?
18436
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18438
# Must we lock files when doing compilation?
18439
need_locks=$lt_need_locks
18441
# Do we need the lib prefix for modules?
18442
need_lib_prefix=$need_lib_prefix
18444
# Do we need a version for libraries?
18445
need_version=$need_version
18447
# Whether dlopen is supported.
18448
dlopen_support=$enable_dlopen
18450
# Whether dlopen of programs is supported.
18451
dlopen_self=$enable_dlopen_self
18453
# Whether dlopen of statically linked programs is supported.
18454
dlopen_self_static=$enable_dlopen_self_static
18456
# Compiler flag to prevent dynamic linking.
18457
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18459
# Compiler flag to turn off builtin functions.
18460
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18462
# Compiler flag to allow reflexive dlopens.
18463
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18465
# Compiler flag to generate shared objects directly from archives.
18466
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18468
# Compiler flag to generate thread-safe objects.
18469
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18471
# Library versioning type.
18472
version_type=$version_type
18474
# Format of library name prefix.
18475
libname_spec=$lt_libname_spec
18477
# List of archive names. First name is the real one, the rest are links.
18478
# The last name is the one that the linker finds with -lNAME.
18479
library_names_spec=$lt_library_names_spec
18481
# The coded name of the library, if different from the real name.
18482
soname_spec=$lt_soname_spec
18484
# Commands used to build and install an old-style archive.
18486
old_archive_cmds=$lt_old_archive_cmds_GCJ
18487
old_postinstall_cmds=$lt_old_postinstall_cmds
18488
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18490
# Create an old-style archive from a shared archive.
18491
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18493
# Create a temporary old-style archive to link instead of a shared archive.
18494
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18496
# Commands used to build and install a shared archive.
18497
archive_cmds=$lt_archive_cmds_GCJ
18498
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18499
postinstall_cmds=$lt_postinstall_cmds
18500
postuninstall_cmds=$lt_postuninstall_cmds
18502
# Commands used to build a loadable module (assumed same as above if empty)
18503
module_cmds=$lt_module_cmds_GCJ
18504
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18506
# Commands to strip libraries.
18507
old_striplib=$lt_old_striplib
18508
striplib=$lt_striplib
18510
# Dependencies to place before the objects being linked to create a
18512
predep_objects=$lt_predep_objects_GCJ
18514
# Dependencies to place after the objects being linked to create a
18516
postdep_objects=$lt_postdep_objects_GCJ
18518
# Dependencies to place before the objects being linked to create a
18520
predeps=$lt_predeps_GCJ
18522
# Dependencies to place after the objects being linked to create a
18524
postdeps=$lt_postdeps_GCJ
18526
# The library search path used internally by the compiler when linking
18527
# a shared library.
18528
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18530
# Method to check whether dependent libraries are shared objects.
18531
deplibs_check_method=$lt_deplibs_check_method
18533
# Command to use when deplibs_check_method == file_magic.
18534
file_magic_cmd=$lt_file_magic_cmd
18536
# Flag that allows shared libraries with undefined symbols to be built.
18537
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18539
# Flag that forces no undefined symbols.
18540
no_undefined_flag=$lt_no_undefined_flag_GCJ
18542
# Commands used to finish a libtool library installation in a directory.
18543
finish_cmds=$lt_finish_cmds
18545
# Same as above, but a single script fragment to be evaled but not shown.
18546
finish_eval=$lt_finish_eval
18548
# Take the output of nm and produce a listing of raw symbols and C names.
18549
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18551
# Transform the output of nm in a proper C declaration
18552
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18554
# Transform the output of nm in a C name address pair
18555
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18557
# This is the shared library runtime path variable.
18558
runpath_var=$runpath_var
18560
# This is the shared library path variable.
18561
shlibpath_var=$shlibpath_var
18563
# Is shlibpath searched before the hard-coded library search path?
18564
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18566
# How to hardcode a shared library path into an executable.
18567
hardcode_action=$hardcode_action_GCJ
18569
# Whether we should hardcode library paths into libraries.
18570
hardcode_into_libs=$hardcode_into_libs
18572
# Flag to hardcode \$libdir into a binary during linking.
18573
# This must work even if \$libdir does not exist.
18574
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18576
# If ld is used when linking, flag to hardcode \$libdir into
18577
# a binary during linking. This must work even if \$libdir does
18579
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18581
# Whether we need a single -rpath flag with a separated argument.
18582
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18584
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18585
# resulting binary.
18586
hardcode_direct=$hardcode_direct_GCJ
18588
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18589
# resulting binary.
18590
hardcode_minus_L=$hardcode_minus_L_GCJ
18592
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18593
# the resulting binary.
18594
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18596
# Set to yes if building a shared library automatically hardcodes DIR into the library
18597
# and all subsequent libraries and executables linked against it.
18598
hardcode_automatic=$hardcode_automatic_GCJ
18600
# Variables whose values should be saved in libtool wrapper scripts and
18601
# restored at relink time.
18602
variables_saved_for_relink="$variables_saved_for_relink"
18604
# Whether libtool must link a program against all its dependency libraries.
18605
link_all_deplibs=$link_all_deplibs_GCJ
18607
# Compile-time system search path for libraries
18608
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18610
# Run-time system search path for libraries
18611
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18613
# Fix the shell variable \$srcfile for the compiler.
18614
fix_srcfile_path="$fix_srcfile_path_GCJ"
18616
# Set to yes if exported symbols are required.
18617
always_export_symbols=$always_export_symbols_GCJ
18619
# The commands to list exported symbols.
18620
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18622
# The commands to extract the exported symbol list from a shared archive.
18623
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18625
# Symbols that should not be listed in the preloaded symbols.
18626
exclude_expsyms=$lt_exclude_expsyms_GCJ
18628
# Symbols that must always be exported.
18629
include_expsyms=$lt_include_expsyms_GCJ
18631
# ### END LIBTOOL TAG CONFIG: $tagname
18637
# If there is no Makefile yet, we rely on a make rule to execute
18638
# `config.status --recheck' to rerun these tests and create the
18639
# libtool script then.
18640
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18641
if test -f "$ltmain_in"; then
18642
test -f Makefile && make "$ltmain"
18648
ac_cpp='$CPP $CPPFLAGS'
18649
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18650
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18651
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18664
# Source file extension for RC test sources.
18667
# Object file extension for compiled RC test sources.
18671
# Code to be used in simple compile tests
18672
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18674
# Code to be used in simple link tests
18675
lt_simple_link_test_code="$lt_simple_compile_test_code"
18677
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18679
# If no C compiler was specified, use CC.
18682
# Allow CC to be a program name with arguments.
18686
# save warnings/boilerplate of simple test code
18687
ac_outfile=conftest.$ac_objext
18688
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18689
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18690
_lt_compiler_boilerplate=`cat conftest.err`
18693
ac_outfile=conftest.$ac_objext
18694
printf "$lt_simple_link_test_code" >conftest.$ac_ext
18695
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18696
_lt_linker_boilerplate=`cat conftest.err`
18700
# Allow CC to be a program name with arguments.
18705
for cc_temp in $compiler""; do
18707
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18708
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18713
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18715
lt_cv_prog_compiler_c_o_RC=yes
18717
# The else clause should only fire when bootstrapping the
18718
# libtool distribution, otherwise you forgot to ship ltmain.sh
18719
# with your package, and you will get complaints that there are
18720
# no rules to generate ltmain.sh.
18721
if test -f "$ltmain"; then
18722
# See if we are running on zsh, and set the options which allow our commands through
18723
# without removal of \ escapes.
18724
if test -n "${ZSH_VERSION+set}" ; then
18725
setopt NO_GLOB_SUBST
18727
# Now quote all the things that may contain metacharacters while being
18728
# careful not to overquote the AC_SUBSTed values. We take copies of the
18729
# variables and quote the copies for generation of the libtool script.
18730
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18732
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18733
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18734
deplibs_check_method reload_flag reload_cmds need_locks \
18735
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18736
lt_cv_sys_global_symbol_to_c_name_address \
18737
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18738
old_postinstall_cmds old_postuninstall_cmds \
18742
lt_prog_compiler_wl_RC \
18743
lt_prog_compiler_pic_RC \
18744
lt_prog_compiler_static_RC \
18745
lt_prog_compiler_no_builtin_flag_RC \
18746
export_dynamic_flag_spec_RC \
18747
thread_safe_flag_spec_RC \
18748
whole_archive_flag_spec_RC \
18749
enable_shared_with_static_runtimes_RC \
18750
old_archive_cmds_RC \
18751
old_archive_from_new_cmds_RC \
18752
predep_objects_RC \
18753
postdep_objects_RC \
18756
compiler_lib_search_path_RC \
18758
archive_expsym_cmds_RC \
18759
postinstall_cmds_RC \
18760
postuninstall_cmds_RC \
18761
old_archive_from_expsyms_cmds_RC \
18762
allow_undefined_flag_RC \
18763
no_undefined_flag_RC \
18764
export_symbols_cmds_RC \
18765
hardcode_libdir_flag_spec_RC \
18766
hardcode_libdir_flag_spec_ld_RC \
18767
hardcode_libdir_separator_RC \
18768
hardcode_automatic_RC \
18770
module_expsym_cmds_RC \
18771
lt_cv_prog_compiler_c_o_RC \
18772
exclude_expsyms_RC \
18773
include_expsyms_RC; do
18776
old_archive_cmds_RC | \
18777
old_archive_from_new_cmds_RC | \
18778
archive_cmds_RC | \
18779
archive_expsym_cmds_RC | \
18781
module_expsym_cmds_RC | \
18782
old_archive_from_expsyms_cmds_RC | \
18783
export_symbols_cmds_RC | \
18784
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18785
postinstall_cmds | postuninstall_cmds | \
18786
old_postinstall_cmds | old_postuninstall_cmds | \
18787
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18788
# Double-quote double-evaled strings.
18789
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18792
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18798
*'\$0 --fallback-echo"')
18799
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18805
cat <<__EOF__ >> "$cfgfile"
18806
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18808
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18810
# Shell to use when invoking shell scripts.
18813
# Whether or not to build shared libraries.
18814
build_libtool_libs=$enable_shared
18816
# Whether or not to build static libraries.
18817
build_old_libs=$enable_static
18819
# Whether or not to add -lc for building shared libraries.
18820
build_libtool_need_lc=$archive_cmds_need_lc_RC
18822
# Whether or not to disallow shared libs when runtime libs are static
18823
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18825
# Whether or not to optimize for fast installation.
18826
fast_install=$enable_fast_install
18829
host_alias=$host_alias
18833
# The build system.
18834
build_alias=$build_alias
18838
# An echo program that does not interpret backslashes.
18843
AR_FLAGS=$lt_AR_FLAGS
18848
# A language-specific compiler.
18851
# Is the compiler the GNU C compiler?
18857
# The linker used to build libraries.
18860
# Whether we need hard or soft links.
18863
# A BSD-compatible nm program.
18866
# A symbol stripping program
18869
# Used to examine libraries when file_magic_cmd begins "file"
18870
MAGIC_CMD=$MAGIC_CMD
18872
# Used on cygwin: DLL creation program.
18875
# Used on cygwin: object dumper.
18878
# Used on cygwin: assembler.
18881
# The name of the directory that contains temporary libtool files.
18884
# How to create reloadable object files.
18885
reload_flag=$lt_reload_flag
18886
reload_cmds=$lt_reload_cmds
18888
# How to pass a linker flag through the compiler.
18889
wl=$lt_lt_prog_compiler_wl_RC
18891
# Object file suffix (normally "o").
18892
objext="$ac_objext"
18894
# Old archive suffix (normally "a").
18897
# Shared library suffix (normally ".so").
18898
shrext_cmds='$shrext_cmds'
18900
# Executable file suffix (normally "").
18903
# Additional compiler flags for building library objects.
18904
pic_flag=$lt_lt_prog_compiler_pic_RC
18907
# What is the maximum length of a command?
18908
max_cmd_len=$lt_cv_sys_max_cmd_len
18910
# Does compiler simultaneously support -c and -o options?
18911
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18913
# Must we lock files when doing compilation?
18914
need_locks=$lt_need_locks
18916
# Do we need the lib prefix for modules?
18917
need_lib_prefix=$need_lib_prefix
18919
# Do we need a version for libraries?
18920
need_version=$need_version
18922
# Whether dlopen is supported.
18923
dlopen_support=$enable_dlopen
18925
# Whether dlopen of programs is supported.
18926
dlopen_self=$enable_dlopen_self
18928
# Whether dlopen of statically linked programs is supported.
18929
dlopen_self_static=$enable_dlopen_self_static
18931
# Compiler flag to prevent dynamic linking.
18932
link_static_flag=$lt_lt_prog_compiler_static_RC
18934
# Compiler flag to turn off builtin functions.
18935
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18937
# Compiler flag to allow reflexive dlopens.
18938
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18940
# Compiler flag to generate shared objects directly from archives.
18941
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18943
# Compiler flag to generate thread-safe objects.
18944
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18946
# Library versioning type.
18947
version_type=$version_type
18949
# Format of library name prefix.
18950
libname_spec=$lt_libname_spec
18952
# List of archive names. First name is the real one, the rest are links.
18953
# The last name is the one that the linker finds with -lNAME.
18954
library_names_spec=$lt_library_names_spec
18956
# The coded name of the library, if different from the real name.
18957
soname_spec=$lt_soname_spec
18959
# Commands used to build and install an old-style archive.
18961
old_archive_cmds=$lt_old_archive_cmds_RC
18962
old_postinstall_cmds=$lt_old_postinstall_cmds
18963
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18965
# Create an old-style archive from a shared archive.
18966
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18968
# Create a temporary old-style archive to link instead of a shared archive.
18969
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18971
# Commands used to build and install a shared archive.
18972
archive_cmds=$lt_archive_cmds_RC
18973
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18974
postinstall_cmds=$lt_postinstall_cmds
18975
postuninstall_cmds=$lt_postuninstall_cmds
18977
# Commands used to build a loadable module (assumed same as above if empty)
18978
module_cmds=$lt_module_cmds_RC
18979
module_expsym_cmds=$lt_module_expsym_cmds_RC
18981
# Commands to strip libraries.
18982
old_striplib=$lt_old_striplib
18983
striplib=$lt_striplib
18985
# Dependencies to place before the objects being linked to create a
18987
predep_objects=$lt_predep_objects_RC
18989
# Dependencies to place after the objects being linked to create a
18991
postdep_objects=$lt_postdep_objects_RC
18993
# Dependencies to place before the objects being linked to create a
18995
predeps=$lt_predeps_RC
18997
# Dependencies to place after the objects being linked to create a
18999
postdeps=$lt_postdeps_RC
19001
# The library search path used internally by the compiler when linking
19002
# a shared library.
19003
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19005
# Method to check whether dependent libraries are shared objects.
19006
deplibs_check_method=$lt_deplibs_check_method
19008
# Command to use when deplibs_check_method == file_magic.
19009
file_magic_cmd=$lt_file_magic_cmd
19011
# Flag that allows shared libraries with undefined symbols to be built.
19012
allow_undefined_flag=$lt_allow_undefined_flag_RC
19014
# Flag that forces no undefined symbols.
19015
no_undefined_flag=$lt_no_undefined_flag_RC
19017
# Commands used to finish a libtool library installation in a directory.
19018
finish_cmds=$lt_finish_cmds
19020
# Same as above, but a single script fragment to be evaled but not shown.
19021
finish_eval=$lt_finish_eval
19023
# Take the output of nm and produce a listing of raw symbols and C names.
19024
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19026
# Transform the output of nm in a proper C declaration
19027
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19029
# Transform the output of nm in a C name address pair
19030
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19032
# This is the shared library runtime path variable.
19033
runpath_var=$runpath_var
19035
# This is the shared library path variable.
19036
shlibpath_var=$shlibpath_var
19038
# Is shlibpath searched before the hard-coded library search path?
19039
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19041
# How to hardcode a shared library path into an executable.
19042
hardcode_action=$hardcode_action_RC
19044
# Whether we should hardcode library paths into libraries.
19045
hardcode_into_libs=$hardcode_into_libs
19047
# Flag to hardcode \$libdir into a binary during linking.
19048
# This must work even if \$libdir does not exist.
19049
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19051
# If ld is used when linking, flag to hardcode \$libdir into
19052
# a binary during linking. This must work even if \$libdir does
19054
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19056
# Whether we need a single -rpath flag with a separated argument.
19057
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19059
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19060
# resulting binary.
19061
hardcode_direct=$hardcode_direct_RC
19063
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19064
# resulting binary.
19065
hardcode_minus_L=$hardcode_minus_L_RC
19067
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19068
# the resulting binary.
19069
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19071
# Set to yes if building a shared library automatically hardcodes DIR into the library
19072
# and all subsequent libraries and executables linked against it.
19073
hardcode_automatic=$hardcode_automatic_RC
19075
# Variables whose values should be saved in libtool wrapper scripts and
19076
# restored at relink time.
19077
variables_saved_for_relink="$variables_saved_for_relink"
19079
# Whether libtool must link a program against all its dependency libraries.
19080
link_all_deplibs=$link_all_deplibs_RC
19082
# Compile-time system search path for libraries
19083
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19085
# Run-time system search path for libraries
19086
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19088
# Fix the shell variable \$srcfile for the compiler.
19089
fix_srcfile_path="$fix_srcfile_path_RC"
19091
# Set to yes if exported symbols are required.
19092
always_export_symbols=$always_export_symbols_RC
19094
# The commands to list exported symbols.
19095
export_symbols_cmds=$lt_export_symbols_cmds_RC
19097
# The commands to extract the exported symbol list from a shared archive.
19098
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19100
# Symbols that should not be listed in the preloaded symbols.
19101
exclude_expsyms=$lt_exclude_expsyms_RC
19103
# Symbols that must always be exported.
19104
include_expsyms=$lt_include_expsyms_RC
19106
# ### END LIBTOOL TAG CONFIG: $tagname
19112
# If there is no Makefile yet, we rely on a make rule to execute
19113
# `config.status --recheck' to rerun these tests and create the
19114
# libtool script then.
19115
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19116
if test -f "$ltmain_in"; then
19117
test -f Makefile && make "$ltmain"
19123
ac_cpp='$CPP $CPPFLAGS'
19124
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19125
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19126
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19133
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19134
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19135
{ (exit 1); exit 1; }; }
19139
# Append the new tag name to the list of available tags.
19140
if test -n "$tagname" ; then
19141
available_tags="$available_tags $tagname"
19147
# Now substitute the updated list of available tags.
19148
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19149
mv "${ofile}T" "$ofile"
19153
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19154
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19155
{ (exit 1); exit 1; }; }
19161
# This can be used to rebuild libtool when needed
19162
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19164
# Always use our own libtool.
19165
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19167
# Prevent multiple expansion
19205
ac_cpp='$CPP $CPPFLAGS'
19206
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19207
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19208
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19209
if test -n "$ac_tool_prefix"; then
19210
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19211
set dummy ${ac_tool_prefix}gcc; ac_word=$2
19212
echo "$as_me:$LINENO: checking for $ac_word" >&5
19213
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19214
if test "${ac_cv_prog_CC+set}" = set; then
19215
echo $ECHO_N "(cached) $ECHO_C" >&6
19217
if test -n "$CC"; then
19218
ac_cv_prog_CC="$CC" # Let the user override the test.
19220
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19221
for as_dir in $PATH
19224
test -z "$as_dir" && as_dir=.
19225
for ac_exec_ext in '' $ac_executable_extensions; do
19226
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19227
ac_cv_prog_CC="${ac_tool_prefix}gcc"
19228
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19237
if test -n "$CC"; then
19238
echo "$as_me:$LINENO: result: $CC" >&5
19239
echo "${ECHO_T}$CC" >&6
19241
echo "$as_me:$LINENO: result: no" >&5
19242
echo "${ECHO_T}no" >&6
19246
if test -z "$ac_cv_prog_CC"; then
19248
# Extract the first word of "gcc", so it can be a program name with args.
19249
set dummy gcc; ac_word=$2
19250
echo "$as_me:$LINENO: checking for $ac_word" >&5
19251
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19252
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19253
echo $ECHO_N "(cached) $ECHO_C" >&6
19255
if test -n "$ac_ct_CC"; then
19256
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19258
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19259
for as_dir in $PATH
19262
test -z "$as_dir" && as_dir=.
19263
for ac_exec_ext in '' $ac_executable_extensions; do
19264
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19265
ac_cv_prog_ac_ct_CC="gcc"
19266
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19274
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19275
if test -n "$ac_ct_CC"; then
19276
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19277
echo "${ECHO_T}$ac_ct_CC" >&6
19279
echo "$as_me:$LINENO: result: no" >&5
19280
echo "${ECHO_T}no" >&6
19285
CC="$ac_cv_prog_CC"
19288
if test -z "$CC"; then
19289
if test -n "$ac_tool_prefix"; then
19290
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19291
set dummy ${ac_tool_prefix}cc; ac_word=$2
19292
echo "$as_me:$LINENO: checking for $ac_word" >&5
19293
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19294
if test "${ac_cv_prog_CC+set}" = set; then
19295
echo $ECHO_N "(cached) $ECHO_C" >&6
19297
if test -n "$CC"; then
19298
ac_cv_prog_CC="$CC" # Let the user override the test.
19300
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19301
for as_dir in $PATH
19304
test -z "$as_dir" && as_dir=.
19305
for ac_exec_ext in '' $ac_executable_extensions; do
19306
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19307
ac_cv_prog_CC="${ac_tool_prefix}cc"
19308
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19317
if test -n "$CC"; then
19318
echo "$as_me:$LINENO: result: $CC" >&5
19319
echo "${ECHO_T}$CC" >&6
19321
echo "$as_me:$LINENO: result: no" >&5
19322
echo "${ECHO_T}no" >&6
19326
if test -z "$ac_cv_prog_CC"; then
19328
# Extract the first word of "cc", so it can be a program name with args.
19329
set dummy cc; ac_word=$2
19330
echo "$as_me:$LINENO: checking for $ac_word" >&5
19331
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19332
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19333
echo $ECHO_N "(cached) $ECHO_C" >&6
19335
if test -n "$ac_ct_CC"; then
19336
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19338
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19339
for as_dir in $PATH
19342
test -z "$as_dir" && as_dir=.
19343
for ac_exec_ext in '' $ac_executable_extensions; do
19344
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19345
ac_cv_prog_ac_ct_CC="cc"
19346
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19354
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19355
if test -n "$ac_ct_CC"; then
19356
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19357
echo "${ECHO_T}$ac_ct_CC" >&6
19359
echo "$as_me:$LINENO: result: no" >&5
19360
echo "${ECHO_T}no" >&6
19365
CC="$ac_cv_prog_CC"
19369
if test -z "$CC"; then
19370
# Extract the first word of "cc", so it can be a program name with args.
19371
set dummy cc; ac_word=$2
19372
echo "$as_me:$LINENO: checking for $ac_word" >&5
19373
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19374
if test "${ac_cv_prog_CC+set}" = set; then
19375
echo $ECHO_N "(cached) $ECHO_C" >&6
19377
if test -n "$CC"; then
19378
ac_cv_prog_CC="$CC" # Let the user override the test.
19380
ac_prog_rejected=no
19381
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19382
for as_dir in $PATH
19385
test -z "$as_dir" && as_dir=.
19386
for ac_exec_ext in '' $ac_executable_extensions; do
19387
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19388
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19389
ac_prog_rejected=yes
19393
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19399
if test $ac_prog_rejected = yes; then
19400
# We found a bogon in the path, so make sure we never use it.
19401
set dummy $ac_cv_prog_CC
19403
if test $# != 0; then
19404
# We chose a different compiler from the bogus one.
19405
# However, it has the same basename, so the bogon will be chosen
19406
# first if we set CC to just the basename; use the full file name.
19408
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19414
if test -n "$CC"; then
19415
echo "$as_me:$LINENO: result: $CC" >&5
19416
echo "${ECHO_T}$CC" >&6
19418
echo "$as_me:$LINENO: result: no" >&5
19419
echo "${ECHO_T}no" >&6
19423
if test -z "$CC"; then
19424
if test -n "$ac_tool_prefix"; then
19427
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19428
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19429
echo "$as_me:$LINENO: checking for $ac_word" >&5
19430
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19431
if test "${ac_cv_prog_CC+set}" = set; then
19432
echo $ECHO_N "(cached) $ECHO_C" >&6
19434
if test -n "$CC"; then
19435
ac_cv_prog_CC="$CC" # Let the user override the test.
19437
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19438
for as_dir in $PATH
19441
test -z "$as_dir" && as_dir=.
19442
for ac_exec_ext in '' $ac_executable_extensions; do
19443
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19444
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19445
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19454
if test -n "$CC"; then
19455
echo "$as_me:$LINENO: result: $CC" >&5
19456
echo "${ECHO_T}$CC" >&6
19458
echo "$as_me:$LINENO: result: no" >&5
19459
echo "${ECHO_T}no" >&6
19462
test -n "$CC" && break
19465
if test -z "$CC"; then
19469
# Extract the first word of "$ac_prog", so it can be a program name with args.
19470
set dummy $ac_prog; ac_word=$2
19471
echo "$as_me:$LINENO: checking for $ac_word" >&5
19472
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19473
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19474
echo $ECHO_N "(cached) $ECHO_C" >&6
19476
if test -n "$ac_ct_CC"; then
19477
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19479
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19480
for as_dir in $PATH
19483
test -z "$as_dir" && as_dir=.
19484
for ac_exec_ext in '' $ac_executable_extensions; do
19485
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19486
ac_cv_prog_ac_ct_CC="$ac_prog"
19487
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19495
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19496
if test -n "$ac_ct_CC"; then
19497
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19498
echo "${ECHO_T}$ac_ct_CC" >&6
19500
echo "$as_me:$LINENO: result: no" >&5
19501
echo "${ECHO_T}no" >&6
19504
test -n "$ac_ct_CC" && break
19513
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19514
See \`config.log' for more details." >&5
19515
echo "$as_me: error: no acceptable C compiler found in \$PATH
19516
See \`config.log' for more details." >&2;}
19517
{ (exit 1); exit 1; }; }
19519
# Provide some information about the compiler.
19520
echo "$as_me:$LINENO:" \
19521
"checking for C compiler version" >&5
19522
ac_compiler=`set X $ac_compile; echo $2`
19523
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19524
(eval $ac_compiler --version </dev/null >&5) 2>&5
19526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527
(exit $ac_status); }
19528
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19529
(eval $ac_compiler -v </dev/null >&5) 2>&5
19531
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532
(exit $ac_status); }
19533
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19534
(eval $ac_compiler -V </dev/null >&5) 2>&5
19536
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537
(exit $ac_status); }
19539
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19540
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19541
if test "${ac_cv_c_compiler_gnu+set}" = set; then
19542
echo $ECHO_N "(cached) $ECHO_C" >&6
19544
cat >conftest.$ac_ext <<_ACEOF
19547
cat confdefs.h >>conftest.$ac_ext
19548
cat >>conftest.$ac_ext <<_ACEOF
19549
/* end confdefs.h. */
19562
rm -f conftest.$ac_objext
19563
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19564
(eval $ac_compile) 2>conftest.er1
19566
grep -v '^ *+' conftest.er1 >conftest.err
19568
cat conftest.err >&5
19569
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570
(exit $ac_status); } &&
19571
{ ac_try='test -z "$ac_c_werror_flag"
19572
|| test ! -s conftest.err'
19573
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574
(eval $ac_try) 2>&5
19576
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577
(exit $ac_status); }; } &&
19578
{ ac_try='test -s conftest.$ac_objext'
19579
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19580
(eval $ac_try) 2>&5
19582
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583
(exit $ac_status); }; }; then
19584
ac_compiler_gnu=yes
19586
echo "$as_me: failed program was:" >&5
19587
sed 's/^/| /' conftest.$ac_ext >&5
19591
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19592
ac_cv_c_compiler_gnu=$ac_compiler_gnu
19595
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19596
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19597
GCC=`test $ac_compiler_gnu = yes && echo yes`
19598
ac_test_CFLAGS=${CFLAGS+set}
19599
ac_save_CFLAGS=$CFLAGS
19601
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19602
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19603
if test "${ac_cv_prog_cc_g+set}" = set; then
19604
echo $ECHO_N "(cached) $ECHO_C" >&6
19606
cat >conftest.$ac_ext <<_ACEOF
19609
cat confdefs.h >>conftest.$ac_ext
19610
cat >>conftest.$ac_ext <<_ACEOF
19611
/* end confdefs.h. */
19621
rm -f conftest.$ac_objext
19622
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19623
(eval $ac_compile) 2>conftest.er1
19625
grep -v '^ *+' conftest.er1 >conftest.err
19627
cat conftest.err >&5
19628
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629
(exit $ac_status); } &&
19630
{ ac_try='test -z "$ac_c_werror_flag"
19631
|| test ! -s conftest.err'
19632
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19633
(eval $ac_try) 2>&5
19635
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636
(exit $ac_status); }; } &&
19637
{ ac_try='test -s conftest.$ac_objext'
19638
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19639
(eval $ac_try) 2>&5
19641
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642
(exit $ac_status); }; }; then
19643
ac_cv_prog_cc_g=yes
19645
echo "$as_me: failed program was:" >&5
19646
sed 's/^/| /' conftest.$ac_ext >&5
19650
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19652
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19653
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19654
if test "$ac_test_CFLAGS" = set; then
19655
CFLAGS=$ac_save_CFLAGS
19656
elif test $ac_cv_prog_cc_g = yes; then
19657
if test "$GCC" = yes; then
19663
if test "$GCC" = yes; then
19669
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19670
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19671
if test "${ac_cv_prog_cc_stdc+set}" = set; then
19672
echo $ECHO_N "(cached) $ECHO_C" >&6
19674
ac_cv_prog_cc_stdc=no
19676
cat >conftest.$ac_ext <<_ACEOF
19679
cat confdefs.h >>conftest.$ac_ext
19680
cat >>conftest.$ac_ext <<_ACEOF
19681
/* end confdefs.h. */
19682
#include <stdarg.h>
19684
#include <sys/types.h>
19685
#include <sys/stat.h>
19686
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19687
struct buf { int x; };
19688
FILE * (*rcsopen) (struct buf *, struct stat *, int);
19689
static char *e (p, i)
19695
static char *f (char * (*g) (char **, int), char **p, ...)
19700
s = g (p, va_arg (v,int));
19705
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19706
function prototypes and stuff, but not '\xHH' hex character constants.
19707
These don't provoke an error unfortunately, instead are silently treated
19708
as 'x'. The following induces an error, until -std1 is added to get
19709
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19710
array size at least. It's necessary to write '\x00'==0 to get something
19711
that's true only with -std1. */
19712
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19714
int test (int i, double x);
19715
struct s1 {int (*f) (int a);};
19716
struct s2 {int (*f) (double a);};
19717
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19723
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19728
# Don't try gcc -ansi; that turns off useful extensions and
19729
# breaks some systems' header files.
19730
# AIX -qlanglvl=ansi
19731
# Ultrix and OSF/1 -std1
19732
# HP-UX 10.20 and later -Ae
19733
# HP-UX older versions -Aa -D_HPUX_SOURCE
19734
# SVR4 -Xc -D__EXTENSIONS__
19735
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19737
CC="$ac_save_CC $ac_arg"
19738
rm -f conftest.$ac_objext
19739
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19740
(eval $ac_compile) 2>conftest.er1
19742
grep -v '^ *+' conftest.er1 >conftest.err
19744
cat conftest.err >&5
19745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746
(exit $ac_status); } &&
19747
{ ac_try='test -z "$ac_c_werror_flag"
19748
|| test ! -s conftest.err'
19749
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750
(eval $ac_try) 2>&5
19752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753
(exit $ac_status); }; } &&
19754
{ ac_try='test -s conftest.$ac_objext'
19755
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19756
(eval $ac_try) 2>&5
19758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759
(exit $ac_status); }; }; then
19760
ac_cv_prog_cc_stdc=$ac_arg
19763
echo "$as_me: failed program was:" >&5
19764
sed 's/^/| /' conftest.$ac_ext >&5
19767
rm -f conftest.err conftest.$ac_objext
19769
rm -f conftest.$ac_ext conftest.$ac_objext
19774
case "x$ac_cv_prog_cc_stdc" in
19776
echo "$as_me:$LINENO: result: none needed" >&5
19777
echo "${ECHO_T}none needed" >&6 ;;
19779
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19780
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19781
CC="$CC $ac_cv_prog_cc_stdc" ;;
19784
# Some people use a C++ compiler to compile C. Since we use `exit',
19785
# in C++ we need to declare it. In case someone uses the same compiler
19786
# for both compiling C and C++ we need to have the C++ compiler decide
19787
# the declaration of exit, since it's the most demanding environment.
19788
cat >conftest.$ac_ext <<_ACEOF
19789
#ifndef __cplusplus
19793
rm -f conftest.$ac_objext
19794
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19795
(eval $ac_compile) 2>conftest.er1
19797
grep -v '^ *+' conftest.er1 >conftest.err
19799
cat conftest.err >&5
19800
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801
(exit $ac_status); } &&
19802
{ ac_try='test -z "$ac_c_werror_flag"
19803
|| test ! -s conftest.err'
19804
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805
(eval $ac_try) 2>&5
19807
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808
(exit $ac_status); }; } &&
19809
{ ac_try='test -s conftest.$ac_objext'
19810
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811
(eval $ac_try) 2>&5
19813
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814
(exit $ac_status); }; }; then
19815
for ac_declaration in \
19817
'extern "C" void std::exit (int) throw (); using std::exit;' \
19818
'extern "C" void std::exit (int); using std::exit;' \
19819
'extern "C" void exit (int) throw ();' \
19820
'extern "C" void exit (int);' \
19823
cat >conftest.$ac_ext <<_ACEOF
19826
cat confdefs.h >>conftest.$ac_ext
19827
cat >>conftest.$ac_ext <<_ACEOF
19828
/* end confdefs.h. */
19830
#include <stdlib.h>
19839
rm -f conftest.$ac_objext
19840
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19841
(eval $ac_compile) 2>conftest.er1
19843
grep -v '^ *+' conftest.er1 >conftest.err
19845
cat conftest.err >&5
19846
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847
(exit $ac_status); } &&
19848
{ ac_try='test -z "$ac_c_werror_flag"
19849
|| test ! -s conftest.err'
19850
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19851
(eval $ac_try) 2>&5
19853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854
(exit $ac_status); }; } &&
19855
{ ac_try='test -s conftest.$ac_objext'
19856
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19857
(eval $ac_try) 2>&5
19859
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860
(exit $ac_status); }; }; then
19863
echo "$as_me: failed program was:" >&5
19864
sed 's/^/| /' conftest.$ac_ext >&5
19868
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19869
cat >conftest.$ac_ext <<_ACEOF
19872
cat confdefs.h >>conftest.$ac_ext
19873
cat >>conftest.$ac_ext <<_ACEOF
19874
/* end confdefs.h. */
19884
rm -f conftest.$ac_objext
19885
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19886
(eval $ac_compile) 2>conftest.er1
19888
grep -v '^ *+' conftest.er1 >conftest.err
19890
cat conftest.err >&5
19891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892
(exit $ac_status); } &&
19893
{ ac_try='test -z "$ac_c_werror_flag"
19894
|| test ! -s conftest.err'
19895
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19896
(eval $ac_try) 2>&5
19898
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899
(exit $ac_status); }; } &&
19900
{ ac_try='test -s conftest.$ac_objext'
19901
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19902
(eval $ac_try) 2>&5
19904
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905
(exit $ac_status); }; }; then
19908
echo "$as_me: failed program was:" >&5
19909
sed 's/^/| /' conftest.$ac_ext >&5
19912
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19915
if test -n "$ac_declaration"; then
19916
echo '#ifdef __cplusplus' >>confdefs.h
19917
echo $ac_declaration >>confdefs.h
19918
echo '#endif' >>confdefs.h
19922
echo "$as_me: failed program was:" >&5
19923
sed 's/^/| /' conftest.$ac_ext >&5
19926
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19928
ac_cpp='$CPP $CPPFLAGS'
19929
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19930
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19931
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19933
# Find a good install program. We prefer a C program (faster),
19934
# so one script is as good as another. But avoid the broken or
19935
# incompatible versions:
19936
# SysV /etc/install, /usr/sbin/install
19937
# SunOS /usr/etc/install
19938
# IRIX /sbin/install
19940
# AmigaOS /C/install, which installs bootblocks on floppy discs
19941
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19942
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
19943
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19944
# OS/2's system install, which has a completely different semantic
19945
# ./install, which can be erroneously created by make from ./install.sh.
19946
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19947
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
19948
if test -z "$INSTALL"; then
19949
if test "${ac_cv_path_install+set}" = set; then
19950
echo $ECHO_N "(cached) $ECHO_C" >&6
19952
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19953
for as_dir in $PATH
19956
test -z "$as_dir" && as_dir=.
19957
# Account for people who put trailing slashes in PATH elements.
19959
./ | .// | /cC/* | \
19960
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19961
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19964
# OSF1 and SCO ODT 3.0 have their own names for install.
19965
# Don't use installbsd from OSF since it installs stuff as root
19967
for ac_prog in ginstall scoinst install; do
19968
for ac_exec_ext in '' $ac_executable_extensions; do
19969
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
19970
if test $ac_prog = install &&
19971
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19972
# AIX install. It has an incompatible calling convention.
19974
elif test $ac_prog = install &&
19975
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19976
# program-specific install script used by HP pwplus--don't use.
19979
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19991
if test "${ac_cv_path_install+set}" = set; then
19992
INSTALL=$ac_cv_path_install
19994
# As a last resort, use the slow shell script. We don't cache a
19995
# path for INSTALL within a source directory, because that will
19996
# break other packages using the cache if that directory is
19997
# removed, or if the path is relative.
19998
INSTALL=$ac_install_sh
20001
echo "$as_me:$LINENO: result: $INSTALL" >&5
20002
echo "${ECHO_T}$INSTALL" >&6
20004
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20005
# It thinks the first close brace ends the variable substitution.
20006
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20008
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20010
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20014
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20015
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20016
if test "${ac_cv_header_stdc+set}" = set; then
20017
echo $ECHO_N "(cached) $ECHO_C" >&6
20019
cat >conftest.$ac_ext <<_ACEOF
20022
cat confdefs.h >>conftest.$ac_ext
20023
cat >>conftest.$ac_ext <<_ACEOF
20024
/* end confdefs.h. */
20025
#include <stdlib.h>
20026
#include <stdarg.h>
20027
#include <string.h>
20038
rm -f conftest.$ac_objext
20039
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20040
(eval $ac_compile) 2>conftest.er1
20042
grep -v '^ *+' conftest.er1 >conftest.err
20044
cat conftest.err >&5
20045
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046
(exit $ac_status); } &&
20047
{ ac_try='test -z "$ac_c_werror_flag"
20048
|| test ! -s conftest.err'
20049
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20050
(eval $ac_try) 2>&5
20052
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053
(exit $ac_status); }; } &&
20054
{ ac_try='test -s conftest.$ac_objext'
20055
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20056
(eval $ac_try) 2>&5
20058
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059
(exit $ac_status); }; }; then
20060
ac_cv_header_stdc=yes
20062
echo "$as_me: failed program was:" >&5
20063
sed 's/^/| /' conftest.$ac_ext >&5
20065
ac_cv_header_stdc=no
20067
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20069
if test $ac_cv_header_stdc = yes; then
20070
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20071
cat >conftest.$ac_ext <<_ACEOF
20074
cat confdefs.h >>conftest.$ac_ext
20075
cat >>conftest.$ac_ext <<_ACEOF
20076
/* end confdefs.h. */
20077
#include <string.h>
20080
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20081
$EGREP "memchr" >/dev/null 2>&1; then
20084
ac_cv_header_stdc=no
20090
if test $ac_cv_header_stdc = yes; then
20091
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20092
cat >conftest.$ac_ext <<_ACEOF
20095
cat confdefs.h >>conftest.$ac_ext
20096
cat >>conftest.$ac_ext <<_ACEOF
20097
/* end confdefs.h. */
20098
#include <stdlib.h>
20101
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20102
$EGREP "free" >/dev/null 2>&1; then
20105
ac_cv_header_stdc=no
20111
if test $ac_cv_header_stdc = yes; then
20112
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20113
if test "$cross_compiling" = yes; then
20116
cat >conftest.$ac_ext <<_ACEOF
20119
cat confdefs.h >>conftest.$ac_ext
20120
cat >>conftest.$ac_ext <<_ACEOF
20121
/* end confdefs.h. */
20123
#if ((' ' & 0x0FF) == 0x020)
20124
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20125
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20127
# define ISLOWER(c) \
20128
(('a' <= (c) && (c) <= 'i') \
20129
|| ('j' <= (c) && (c) <= 'r') \
20130
|| ('s' <= (c) && (c) <= 'z'))
20131
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20134
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20139
for (i = 0; i < 256; i++)
20140
if (XOR (islower (i), ISLOWER (i))
20141
|| toupper (i) != TOUPPER (i))
20146
rm -f conftest$ac_exeext
20147
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20148
(eval $ac_link) 2>&5
20150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20152
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20153
(eval $ac_try) 2>&5
20155
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156
(exit $ac_status); }; }; then
20159
echo "$as_me: program exited with status $ac_status" >&5
20160
echo "$as_me: failed program was:" >&5
20161
sed 's/^/| /' conftest.$ac_ext >&5
20163
( exit $ac_status )
20164
ac_cv_header_stdc=no
20166
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20170
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20171
echo "${ECHO_T}$ac_cv_header_stdc" >&6
20172
if test $ac_cv_header_stdc = yes; then
20174
cat >>confdefs.h <<\_ACEOF
20175
#define STDC_HEADERS 1
20183
for ac_header in fcntl.h unistd.h string.h
20185
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20186
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20187
echo "$as_me:$LINENO: checking for $ac_header" >&5
20188
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20189
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20190
echo $ECHO_N "(cached) $ECHO_C" >&6
20192
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20193
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20195
# Is the header compilable?
20196
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20197
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20198
cat >conftest.$ac_ext <<_ACEOF
20201
cat confdefs.h >>conftest.$ac_ext
20202
cat >>conftest.$ac_ext <<_ACEOF
20203
/* end confdefs.h. */
20204
$ac_includes_default
20205
#include <$ac_header>
20207
rm -f conftest.$ac_objext
20208
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20209
(eval $ac_compile) 2>conftest.er1
20211
grep -v '^ *+' conftest.er1 >conftest.err
20213
cat conftest.err >&5
20214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215
(exit $ac_status); } &&
20216
{ ac_try='test -z "$ac_c_werror_flag"
20217
|| test ! -s conftest.err'
20218
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20219
(eval $ac_try) 2>&5
20221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222
(exit $ac_status); }; } &&
20223
{ ac_try='test -s conftest.$ac_objext'
20224
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20225
(eval $ac_try) 2>&5
20227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228
(exit $ac_status); }; }; then
20229
ac_header_compiler=yes
20231
echo "$as_me: failed program was:" >&5
20232
sed 's/^/| /' conftest.$ac_ext >&5
20234
ac_header_compiler=no
20236
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20237
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20238
echo "${ECHO_T}$ac_header_compiler" >&6
20240
# Is the header present?
20241
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20242
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20243
cat >conftest.$ac_ext <<_ACEOF
20246
cat confdefs.h >>conftest.$ac_ext
20247
cat >>conftest.$ac_ext <<_ACEOF
20248
/* end confdefs.h. */
20249
#include <$ac_header>
20251
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20252
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20254
grep -v '^ *+' conftest.er1 >conftest.err
20256
cat conftest.err >&5
20257
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258
(exit $ac_status); } >/dev/null; then
20259
if test -s conftest.err; then
20260
ac_cpp_err=$ac_c_preproc_warn_flag
20261
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20268
if test -z "$ac_cpp_err"; then
20269
ac_header_preproc=yes
20271
echo "$as_me: failed program was:" >&5
20272
sed 's/^/| /' conftest.$ac_ext >&5
20274
ac_header_preproc=no
20276
rm -f conftest.err conftest.$ac_ext
20277
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20278
echo "${ECHO_T}$ac_header_preproc" >&6
20280
# So? What about this header?
20281
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20283
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20284
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20285
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20286
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20287
ac_header_preproc=yes
20290
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20291
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20292
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20293
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20294
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20295
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20296
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20297
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20298
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20299
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20300
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20301
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20304
## ------------------------------------------ ##
20305
## Report this to the AC_PACKAGE_NAME lists. ##
20306
## ------------------------------------------ ##
20309
sed "s/^/$as_me: WARNING: /" >&2
20312
echo "$as_me:$LINENO: checking for $ac_header" >&5
20313
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20314
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20315
echo $ECHO_N "(cached) $ECHO_C" >&6
20317
eval "$as_ac_Header=\$ac_header_preproc"
20319
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20320
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20323
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20324
cat >>confdefs.h <<_ACEOF
20325
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20333
if test "$cross_compiling" = "no"; then
20334
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20335
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20336
if test "${ac_cv_c_bigendian+set}" = set; then
20337
echo $ECHO_N "(cached) $ECHO_C" >&6
20339
# See if sys/param.h defines the BYTE_ORDER macro.
20340
cat >conftest.$ac_ext <<_ACEOF
20343
cat confdefs.h >>conftest.$ac_ext
20344
cat >>conftest.$ac_ext <<_ACEOF
20345
/* end confdefs.h. */
20346
#include <sys/types.h>
20347
#include <sys/param.h>
20352
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20353
bogus endian macros
20360
rm -f conftest.$ac_objext
20361
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20362
(eval $ac_compile) 2>conftest.er1
20364
grep -v '^ *+' conftest.er1 >conftest.err
20366
cat conftest.err >&5
20367
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368
(exit $ac_status); } &&
20369
{ ac_try='test -z "$ac_c_werror_flag"
20370
|| test ! -s conftest.err'
20371
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20372
(eval $ac_try) 2>&5
20374
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375
(exit $ac_status); }; } &&
20376
{ ac_try='test -s conftest.$ac_objext'
20377
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378
(eval $ac_try) 2>&5
20380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381
(exit $ac_status); }; }; then
20382
# It does; now see whether it defined to BIG_ENDIAN or not.
20383
cat >conftest.$ac_ext <<_ACEOF
20386
cat confdefs.h >>conftest.$ac_ext
20387
cat >>conftest.$ac_ext <<_ACEOF
20388
/* end confdefs.h. */
20389
#include <sys/types.h>
20390
#include <sys/param.h>
20395
#if BYTE_ORDER != BIG_ENDIAN
20403
rm -f conftest.$ac_objext
20404
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20405
(eval $ac_compile) 2>conftest.er1
20407
grep -v '^ *+' conftest.er1 >conftest.err
20409
cat conftest.err >&5
20410
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411
(exit $ac_status); } &&
20412
{ ac_try='test -z "$ac_c_werror_flag"
20413
|| test ! -s conftest.err'
20414
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20415
(eval $ac_try) 2>&5
20417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418
(exit $ac_status); }; } &&
20419
{ ac_try='test -s conftest.$ac_objext'
20420
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20421
(eval $ac_try) 2>&5
20423
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424
(exit $ac_status); }; }; then
20425
ac_cv_c_bigendian=yes
20427
echo "$as_me: failed program was:" >&5
20428
sed 's/^/| /' conftest.$ac_ext >&5
20430
ac_cv_c_bigendian=no
20432
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20434
echo "$as_me: failed program was:" >&5
20435
sed 's/^/| /' conftest.$ac_ext >&5
20437
# It does not; compile a test program.
20438
if test "$cross_compiling" = yes; then
20439
# try to guess the endianness by grepping values into an object file
20440
ac_cv_c_bigendian=unknown
20441
cat >conftest.$ac_ext <<_ACEOF
20444
cat confdefs.h >>conftest.$ac_ext
20445
cat >>conftest.$ac_ext <<_ACEOF
20446
/* end confdefs.h. */
20447
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20448
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20449
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20450
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20451
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20452
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20456
_ascii (); _ebcdic ();
20461
rm -f conftest.$ac_objext
20462
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20463
(eval $ac_compile) 2>conftest.er1
20465
grep -v '^ *+' conftest.er1 >conftest.err
20467
cat conftest.err >&5
20468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469
(exit $ac_status); } &&
20470
{ ac_try='test -z "$ac_c_werror_flag"
20471
|| test ! -s conftest.err'
20472
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473
(eval $ac_try) 2>&5
20475
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476
(exit $ac_status); }; } &&
20477
{ ac_try='test -s conftest.$ac_objext'
20478
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20479
(eval $ac_try) 2>&5
20481
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482
(exit $ac_status); }; }; then
20483
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20484
ac_cv_c_bigendian=yes
20486
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20487
if test "$ac_cv_c_bigendian" = unknown; then
20488
ac_cv_c_bigendian=no
20490
# finding both strings is unlikely to happen, but who knows?
20491
ac_cv_c_bigendian=unknown
20495
echo "$as_me: failed program was:" >&5
20496
sed 's/^/| /' conftest.$ac_ext >&5
20499
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20501
cat >conftest.$ac_ext <<_ACEOF
20504
cat confdefs.h >>conftest.$ac_ext
20505
cat >>conftest.$ac_ext <<_ACEOF
20506
/* end confdefs.h. */
20510
/* Are we little or big endian? From Harbison&Steele. */
20514
char c[sizeof (long)];
20517
exit (u.c[sizeof (long) - 1] == 1);
20520
rm -f conftest$ac_exeext
20521
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20522
(eval $ac_link) 2>&5
20524
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20526
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20527
(eval $ac_try) 2>&5
20529
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530
(exit $ac_status); }; }; then
20531
ac_cv_c_bigendian=no
20533
echo "$as_me: program exited with status $ac_status" >&5
20534
echo "$as_me: failed program was:" >&5
20535
sed 's/^/| /' conftest.$ac_ext >&5
20537
( exit $ac_status )
20538
ac_cv_c_bigendian=yes
20540
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20543
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20545
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20546
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20547
case $ac_cv_c_bigendian in
20550
cat >>confdefs.h <<\_ACEOF
20551
#define WORDS_BIGENDIAN 1
20557
{ { echo "$as_me:$LINENO: error: unknown endianness
20558
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20559
echo "$as_me: error: unknown endianness
20560
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20561
{ (exit 1); exit 1; }; } ;;
20566
cat >>confdefs.h <<\_ACEOF
20567
#define AP_UNKNOWN_BYTE_ORDER 1
20571
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20572
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20573
if test "${ac_cv_c_const+set}" = set; then
20574
echo $ECHO_N "(cached) $ECHO_C" >&6
20576
cat >conftest.$ac_ext <<_ACEOF
20579
cat confdefs.h >>conftest.$ac_ext
20580
cat >>conftest.$ac_ext <<_ACEOF
20581
/* end confdefs.h. */
20586
/* FIXME: Include the comments suggested by Paul. */
20587
#ifndef __cplusplus
20588
/* Ultrix mips cc rejects this. */
20589
typedef int charset[2];
20591
/* SunOS 4.1.1 cc rejects this. */
20592
char const *const *ccp;
20594
/* NEC SVR4.0.2 mips cc rejects this. */
20595
struct point {int x, y;};
20596
static struct point const zero = {0,0};
20597
/* AIX XL C 1.02.0.0 rejects this.
20598
It does not let you subtract one const X* pointer from another in
20599
an arm of an if-expression whose if-part is not a constant
20601
const char *g = "string";
20602
ccp = &g + (g ? g-g : 0);
20603
/* HPUX 7.0 cc rejects these. */
20606
ccp = (char const *const *) p;
20607
{ /* SCO 3.2v4 cc rejects this. */
20609
char const *s = 0 ? (char *) 0 : (char const *) 0;
20613
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20614
int x[] = {25, 17};
20615
const int *foo = &x[0];
20618
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20619
typedef const int *iptr;
20623
{ /* AIX XL C 1.02.0.0 rejects this saying
20624
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20625
struct s { int j; const int *ap[3]; };
20626
struct s *b; b->j = 5;
20628
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20629
const int foo = 10;
20637
rm -f conftest.$ac_objext
20638
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20639
(eval $ac_compile) 2>conftest.er1
20641
grep -v '^ *+' conftest.er1 >conftest.err
20643
cat conftest.err >&5
20644
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645
(exit $ac_status); } &&
20646
{ ac_try='test -z "$ac_c_werror_flag"
20647
|| test ! -s conftest.err'
20648
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20649
(eval $ac_try) 2>&5
20651
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652
(exit $ac_status); }; } &&
20653
{ ac_try='test -s conftest.$ac_objext'
20654
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20655
(eval $ac_try) 2>&5
20657
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658
(exit $ac_status); }; }; then
20661
echo "$as_me: failed program was:" >&5
20662
sed 's/^/| /' conftest.$ac_ext >&5
20666
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20668
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20669
echo "${ECHO_T}$ac_cv_c_const" >&6
20670
if test $ac_cv_c_const = no; then
20672
cat >>confdefs.h <<\_ACEOF
20678
echo "$as_me:$LINENO: checking for off_t" >&5
20679
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20680
if test "${ac_cv_type_off_t+set}" = set; then
20681
echo $ECHO_N "(cached) $ECHO_C" >&6
20683
cat >conftest.$ac_ext <<_ACEOF
20686
cat confdefs.h >>conftest.$ac_ext
20687
cat >>conftest.$ac_ext <<_ACEOF
20688
/* end confdefs.h. */
20689
$ac_includes_default
20695
if (sizeof (off_t))
20701
rm -f conftest.$ac_objext
20702
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20703
(eval $ac_compile) 2>conftest.er1
20705
grep -v '^ *+' conftest.er1 >conftest.err
20707
cat conftest.err >&5
20708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709
(exit $ac_status); } &&
20710
{ ac_try='test -z "$ac_c_werror_flag"
20711
|| test ! -s conftest.err'
20712
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20713
(eval $ac_try) 2>&5
20715
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716
(exit $ac_status); }; } &&
20717
{ ac_try='test -s conftest.$ac_objext'
20718
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20719
(eval $ac_try) 2>&5
20721
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722
(exit $ac_status); }; }; then
20723
ac_cv_type_off_t=yes
20725
echo "$as_me: failed program was:" >&5
20726
sed 's/^/| /' conftest.$ac_ext >&5
20728
ac_cv_type_off_t=no
20730
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20732
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20733
echo "${ECHO_T}$ac_cv_type_off_t" >&6
20734
if test $ac_cv_type_off_t = yes; then
20738
cat >>confdefs.h <<_ACEOF
20744
echo "$as_me:$LINENO: checking for size_t" >&5
20745
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20746
if test "${ac_cv_type_size_t+set}" = set; then
20747
echo $ECHO_N "(cached) $ECHO_C" >&6
20749
cat >conftest.$ac_ext <<_ACEOF
20752
cat confdefs.h >>conftest.$ac_ext
20753
cat >>conftest.$ac_ext <<_ACEOF
20754
/* end confdefs.h. */
20755
$ac_includes_default
20761
if (sizeof (size_t))
20767
rm -f conftest.$ac_objext
20768
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20769
(eval $ac_compile) 2>conftest.er1
20771
grep -v '^ *+' conftest.er1 >conftest.err
20773
cat conftest.err >&5
20774
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775
(exit $ac_status); } &&
20776
{ ac_try='test -z "$ac_c_werror_flag"
20777
|| test ! -s conftest.err'
20778
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20779
(eval $ac_try) 2>&5
20781
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782
(exit $ac_status); }; } &&
20783
{ ac_try='test -s conftest.$ac_objext'
20784
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20785
(eval $ac_try) 2>&5
20787
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788
(exit $ac_status); }; }; then
20789
ac_cv_type_size_t=yes
20791
echo "$as_me: failed program was:" >&5
20792
sed 's/^/| /' conftest.$ac_ext >&5
20794
ac_cv_type_size_t=no
20796
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20798
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20799
echo "${ECHO_T}$ac_cv_type_size_t" >&6
20800
if test $ac_cv_type_size_t = yes; then
20804
cat >>confdefs.h <<_ACEOF
20805
#define size_t unsigned
20812
echo "$as_me:$LINENO: checking for working memcmp" >&5
20813
echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
20814
if test "${ac_cv_func_memcmp_working+set}" = set; then
20815
echo $ECHO_N "(cached) $ECHO_C" >&6
20817
if test "$cross_compiling" = yes; then
20818
ac_cv_func_memcmp_working=no
20820
cat >conftest.$ac_ext <<_ACEOF
20823
cat confdefs.h >>conftest.$ac_ext
20824
cat >>conftest.$ac_ext <<_ACEOF
20825
/* end confdefs.h. */
20826
$ac_includes_default
20831
/* Some versions of memcmp are not 8-bit clean. */
20832
char c0 = 0x40, c1 = 0x80, c2 = 0x81;
20833
if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20836
/* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20837
or more and with at least one buffer not starting on a 4-byte boundary.
20838
William Lewis provided this test program. */
20843
for (i = 0; i < 4; i++)
20847
strcpy (a, "--------01111111");
20848
strcpy (b, "--------10000000");
20849
if (memcmp (a, b, 16) >= 0)
20859
rm -f conftest$ac_exeext
20860
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20861
(eval $ac_link) 2>&5
20863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20865
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866
(eval $ac_try) 2>&5
20868
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869
(exit $ac_status); }; }; then
20870
ac_cv_func_memcmp_working=yes
20872
echo "$as_me: program exited with status $ac_status" >&5
20873
echo "$as_me: failed program was:" >&5
20874
sed 's/^/| /' conftest.$ac_ext >&5
20876
( exit $ac_status )
20877
ac_cv_func_memcmp_working=no
20879
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20882
echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
20883
echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
20884
test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
20885
"memcmp.$ac_objext" | \
20886
*" memcmp.$ac_objext" | \
20887
"memcmp.$ac_objext "* | \
20888
*" memcmp.$ac_objext "* ) ;;
20889
*) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
20895
for ac_header in stdlib.h unistd.h
20897
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20898
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20899
echo "$as_me:$LINENO: checking for $ac_header" >&5
20900
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20901
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20902
echo $ECHO_N "(cached) $ECHO_C" >&6
20904
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20905
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20907
# Is the header compilable?
20908
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20909
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20910
cat >conftest.$ac_ext <<_ACEOF
20913
cat confdefs.h >>conftest.$ac_ext
20914
cat >>conftest.$ac_ext <<_ACEOF
20915
/* end confdefs.h. */
20916
$ac_includes_default
20917
#include <$ac_header>
20919
rm -f conftest.$ac_objext
20920
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20921
(eval $ac_compile) 2>conftest.er1
20923
grep -v '^ *+' conftest.er1 >conftest.err
20925
cat conftest.err >&5
20926
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927
(exit $ac_status); } &&
20928
{ ac_try='test -z "$ac_c_werror_flag"
20929
|| test ! -s conftest.err'
20930
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20931
(eval $ac_try) 2>&5
20933
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934
(exit $ac_status); }; } &&
20935
{ ac_try='test -s conftest.$ac_objext'
20936
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20937
(eval $ac_try) 2>&5
20939
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940
(exit $ac_status); }; }; then
20941
ac_header_compiler=yes
20943
echo "$as_me: failed program was:" >&5
20944
sed 's/^/| /' conftest.$ac_ext >&5
20946
ac_header_compiler=no
20948
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20949
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20950
echo "${ECHO_T}$ac_header_compiler" >&6
20952
# Is the header present?
20953
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20954
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20955
cat >conftest.$ac_ext <<_ACEOF
20958
cat confdefs.h >>conftest.$ac_ext
20959
cat >>conftest.$ac_ext <<_ACEOF
20960
/* end confdefs.h. */
20961
#include <$ac_header>
20963
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20964
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20966
grep -v '^ *+' conftest.er1 >conftest.err
20968
cat conftest.err >&5
20969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970
(exit $ac_status); } >/dev/null; then
20971
if test -s conftest.err; then
20972
ac_cpp_err=$ac_c_preproc_warn_flag
20973
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20980
if test -z "$ac_cpp_err"; then
20981
ac_header_preproc=yes
20983
echo "$as_me: failed program was:" >&5
20984
sed 's/^/| /' conftest.$ac_ext >&5
20986
ac_header_preproc=no
20988
rm -f conftest.err conftest.$ac_ext
20989
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20990
echo "${ECHO_T}$ac_header_preproc" >&6
20992
# So? What about this header?
20993
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20995
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20996
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20997
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20998
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20999
ac_header_preproc=yes
21002
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21003
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21004
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21005
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21006
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21007
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21008
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21009
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21010
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21011
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21012
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21013
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21016
## ------------------------------------------ ##
21017
## Report this to the AC_PACKAGE_NAME lists. ##
21018
## ------------------------------------------ ##
21021
sed "s/^/$as_me: WARNING: /" >&2
21024
echo "$as_me:$LINENO: checking for $ac_header" >&5
21025
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21026
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21027
echo $ECHO_N "(cached) $ECHO_C" >&6
21029
eval "$as_ac_Header=\$ac_header_preproc"
21031
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21032
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21035
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21036
cat >>confdefs.h <<_ACEOF
21037
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21045
for ac_func in getpagesize
21047
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21048
echo "$as_me:$LINENO: checking for $ac_func" >&5
21049
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21050
if eval "test \"\${$as_ac_var+set}\" = set"; then
21051
echo $ECHO_N "(cached) $ECHO_C" >&6
21053
cat >conftest.$ac_ext <<_ACEOF
21056
cat confdefs.h >>conftest.$ac_ext
21057
cat >>conftest.$ac_ext <<_ACEOF
21058
/* end confdefs.h. */
21059
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21060
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21061
#define $ac_func innocuous_$ac_func
21063
/* System header to define __stub macros and hopefully few prototypes,
21064
which can conflict with char $ac_func (); below.
21065
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21066
<limits.h> exists even on freestanding compilers. */
21069
# include <limits.h>
21071
# include <assert.h>
21076
/* Override any gcc2 internal prototype to avoid an error. */
21081
/* We use char because int might match the return type of a gcc2
21082
builtin and then its argument prototype would still apply. */
21084
/* The GNU C library defines this for functions which it implements
21085
to always fail with ENOSYS. Some functions are actually named
21086
something starting with __ and the normal name is an alias. */
21087
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21090
char (*f) () = $ac_func;
21099
return f != $ac_func;
21104
rm -f conftest.$ac_objext conftest$ac_exeext
21105
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21106
(eval $ac_link) 2>conftest.er1
21108
grep -v '^ *+' conftest.er1 >conftest.err
21110
cat conftest.err >&5
21111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112
(exit $ac_status); } &&
21113
{ ac_try='test -z "$ac_c_werror_flag"
21114
|| test ! -s conftest.err'
21115
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21116
(eval $ac_try) 2>&5
21118
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119
(exit $ac_status); }; } &&
21120
{ ac_try='test -s conftest$ac_exeext'
21121
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21122
(eval $ac_try) 2>&5
21124
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125
(exit $ac_status); }; }; then
21126
eval "$as_ac_var=yes"
21128
echo "$as_me: failed program was:" >&5
21129
sed 's/^/| /' conftest.$ac_ext >&5
21131
eval "$as_ac_var=no"
21133
rm -f conftest.err conftest.$ac_objext \
21134
conftest$ac_exeext conftest.$ac_ext
21136
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21137
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21138
if test `eval echo '${'$as_ac_var'}'` = yes; then
21139
cat >>confdefs.h <<_ACEOF
21140
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21146
echo "$as_me:$LINENO: checking for working mmap" >&5
21147
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21148
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21149
echo $ECHO_N "(cached) $ECHO_C" >&6
21151
if test "$cross_compiling" = yes; then
21152
ac_cv_func_mmap_fixed_mapped=no
21154
cat >conftest.$ac_ext <<_ACEOF
21157
cat confdefs.h >>conftest.$ac_ext
21158
cat >>conftest.$ac_ext <<_ACEOF
21159
/* end confdefs.h. */
21160
$ac_includes_default
21161
/* malloc might have been renamed as rpl_malloc. */
21164
/* Thanks to Mike Haertel and Jim Avera for this test.
21165
Here is a matrix of mmap possibilities:
21166
mmap private not fixed
21167
mmap private fixed at somewhere currently unmapped
21168
mmap private fixed at somewhere already mapped
21169
mmap shared not fixed
21170
mmap shared fixed at somewhere currently unmapped
21171
mmap shared fixed at somewhere already mapped
21172
For private mappings, we should verify that changes cannot be read()
21173
back from the file, nor mmap's back from the file at a different
21174
address. (There have been systems where private was not correctly
21175
implemented like the infamous i386 svr4.0, and systems where the
21176
VM page cache was not coherent with the file system buffer cache
21177
like early versions of FreeBSD and possibly contemporary NetBSD.)
21178
For shared mappings, we should conversely verify that changes get
21179
propagated back to all the places they're supposed to be.
21181
Grep wants private fixed already mapped.
21182
The main things grep needs to know about mmap are:
21183
* does it exist and is it safe to write into the mmap'd area
21184
* how to use it (BSD variants) */
21187
#include <sys/mman.h>
21189
#if !STDC_HEADERS && !HAVE_STDLIB_H
21193
/* This mess was copied from the GNU getpagesize.h. */
21194
#if !HAVE_GETPAGESIZE
21195
/* Assume that all systems that can run configure have sys/param.h. */
21196
# if !HAVE_SYS_PARAM_H
21197
# define HAVE_SYS_PARAM_H 1
21200
# ifdef _SC_PAGESIZE
21201
# define getpagesize() sysconf(_SC_PAGESIZE)
21202
# else /* no _SC_PAGESIZE */
21203
# if HAVE_SYS_PARAM_H
21204
# include <sys/param.h>
21205
# ifdef EXEC_PAGESIZE
21206
# define getpagesize() EXEC_PAGESIZE
21207
# else /* no EXEC_PAGESIZE */
21209
# define getpagesize() NBPG * CLSIZE
21212
# endif /* no CLSIZE */
21213
# else /* no NBPG */
21215
# define getpagesize() NBPC
21216
# else /* no NBPC */
21218
# define getpagesize() PAGESIZE
21219
# endif /* PAGESIZE */
21220
# endif /* no NBPC */
21221
# endif /* no NBPG */
21222
# endif /* no EXEC_PAGESIZE */
21223
# else /* no HAVE_SYS_PARAM_H */
21224
# define getpagesize() 8192 /* punt totally */
21225
# endif /* no HAVE_SYS_PARAM_H */
21226
# endif /* no _SC_PAGESIZE */
21228
#endif /* no HAVE_GETPAGESIZE */
21233
char *data, *data2, *data3;
21237
pagesize = getpagesize ();
21239
/* First, make a file with some known garbage in it. */
21240
data = (char *) malloc (pagesize);
21243
for (i = 0; i < pagesize; ++i)
21244
*(data + i) = rand ();
21246
fd = creat ("conftest.mmap", 0600);
21249
if (write (fd, data, pagesize) != pagesize)
21253
/* Next, try to mmap the file at a fixed address which already has
21254
something else allocated at it. If we can, also make sure that
21255
we see the same garbage. */
21256
fd = open ("conftest.mmap", O_RDWR);
21259
data2 = (char *) malloc (2 * pagesize);
21262
data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
21263
if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21264
MAP_PRIVATE | MAP_FIXED, fd, 0L))
21266
for (i = 0; i < pagesize; ++i)
21267
if (*(data + i) != *(data2 + i))
21270
/* Finally, make sure that changes to the mapped area do not
21271
percolate back to the file as seen by read(). (This is a bug on
21272
some variants of i386 svr4.0.) */
21273
for (i = 0; i < pagesize; ++i)
21274
*(data2 + i) = *(data2 + i) + 1;
21275
data3 = (char *) malloc (pagesize);
21278
if (read (fd, data3, pagesize) != pagesize)
21280
for (i = 0; i < pagesize; ++i)
21281
if (*(data + i) != *(data3 + i))
21287
rm -f conftest$ac_exeext
21288
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21289
(eval $ac_link) 2>&5
21291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21293
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21294
(eval $ac_try) 2>&5
21296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297
(exit $ac_status); }; }; then
21298
ac_cv_func_mmap_fixed_mapped=yes
21300
echo "$as_me: program exited with status $ac_status" >&5
21301
echo "$as_me: failed program was:" >&5
21302
sed 's/^/| /' conftest.$ac_ext >&5
21304
( exit $ac_status )
21305
ac_cv_func_mmap_fixed_mapped=no
21307
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21310
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21311
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21312
if test $ac_cv_func_mmap_fixed_mapped = yes; then
21314
cat >>confdefs.h <<\_ACEOF
21315
#define HAVE_MMAP 1
21319
rm -f conftest.mmap
21322
if test -z "$HAVE_MMAP"; then
21323
FILEMAP_OBJ=unixfilemap.o
21325
FILEMAP_OBJ=readfilemap.o
21330
for ac_func in memmove bcopy
21332
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21333
echo "$as_me:$LINENO: checking for $ac_func" >&5
21334
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21335
if eval "test \"\${$as_ac_var+set}\" = set"; then
21336
echo $ECHO_N "(cached) $ECHO_C" >&6
21338
cat >conftest.$ac_ext <<_ACEOF
21341
cat confdefs.h >>conftest.$ac_ext
21342
cat >>conftest.$ac_ext <<_ACEOF
21343
/* end confdefs.h. */
21344
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21345
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21346
#define $ac_func innocuous_$ac_func
21348
/* System header to define __stub macros and hopefully few prototypes,
21349
which can conflict with char $ac_func (); below.
21350
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21351
<limits.h> exists even on freestanding compilers. */
21354
# include <limits.h>
21356
# include <assert.h>
21361
/* Override any gcc2 internal prototype to avoid an error. */
21366
/* We use char because int might match the return type of a gcc2
21367
builtin and then its argument prototype would still apply. */
21369
/* The GNU C library defines this for functions which it implements
21370
to always fail with ENOSYS. Some functions are actually named
21371
something starting with __ and the normal name is an alias. */
21372
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21375
char (*f) () = $ac_func;
21384
return f != $ac_func;
21389
rm -f conftest.$ac_objext conftest$ac_exeext
21390
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21391
(eval $ac_link) 2>conftest.er1
21393
grep -v '^ *+' conftest.er1 >conftest.err
21395
cat conftest.err >&5
21396
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397
(exit $ac_status); } &&
21398
{ ac_try='test -z "$ac_c_werror_flag"
21399
|| test ! -s conftest.err'
21400
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21401
(eval $ac_try) 2>&5
21403
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404
(exit $ac_status); }; } &&
21405
{ ac_try='test -s conftest$ac_exeext'
21406
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21407
(eval $ac_try) 2>&5
21409
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410
(exit $ac_status); }; }; then
21411
eval "$as_ac_var=yes"
21413
echo "$as_me: failed program was:" >&5
21414
sed 's/^/| /' conftest.$ac_ext >&5
21416
eval "$as_ac_var=no"
21418
rm -f conftest.err conftest.$ac_objext \
21419
conftest$ac_exeext conftest.$ac_ext
21421
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21422
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21423
if test `eval echo '${'$as_ac_var'}'` = yes; then
21424
cat >>confdefs.h <<_ACEOF
21425
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21432
ac_config_files="$ac_config_files Makefile lib/Makefile lib/expat.h"
21433
cat >confcache <<\_ACEOF
21434
# This file is a shell script that caches the results of configure
21435
# tests run on this system so they can be shared between configure
21436
# scripts and configure runs, see configure's option --config-cache.
21437
# It is not useful on other systems. If it contains results you don't
21438
# want to keep, you may remove or edit it.
21440
# config.status only pays attention to the cache file if you give it
21441
# the --recheck option to rerun configure.
21443
# `ac_cv_env_foo' variables (set or unset) will be overridden when
21444
# loading this file, other *unset* `ac_cv_foo' will be assigned the
21445
# following values.
21449
# The following way of writing the cache mishandles newlines in values,
21450
# but we know of no workaround that is simple, portable, and efficient.
21451
# So, don't put newlines in cache variables' values.
21452
# Ultrix sh set writes to stderr and can't be redirected directly,
21453
# and sets the high bit in the cache file unless we assign to the vars.
21456
case `(ac_space=' '; set | grep ac_space) 2>&1` in
21458
# `set' does not quote correctly, so add quotes (double-quote
21459
# substitution turns \\\\ into \\, and sed turns \\ into \).
21462
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21465
# `set' quotes correctly as required by POSIX, so do not add quotes.
21467
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21474
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21476
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21478
if diff $cache_file confcache >/dev/null 2>&1; then :; else
21479
if test -w $cache_file; then
21480
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21481
cat confcache >$cache_file
21483
echo "not updating unwritable cache $cache_file"
21488
test "x$prefix" = xNONE && prefix=$ac_default_prefix
21489
# Let make expand exec_prefix.
21490
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21492
# VPATH may cause trouble with some makes, so we remove $(srcdir),
21493
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21494
# trailing colons and then remove the whole line if VPATH becomes empty
21495
# (actually we leave an empty line to preserve line numbers).
21496
if test "x$srcdir" = x.; then
21497
ac_vpsub='/^[ ]*VPATH[ ]*=/{
21498
s/:*\$(srcdir):*/:/;
21499
s/:*\${srcdir}:*/:/;
21501
s/^\([^=]*=[ ]*\):*/\1/;
21507
DEFS=-DHAVE_CONFIG_H
21511
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21512
# 1. Remove the extension, and $U if already installed.
21513
ac_i=`echo "$ac_i" |
21514
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21516
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21517
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21519
LIBOBJS=$ac_libobjs
21521
LTLIBOBJS=$ac_ltlibobjs
21525
: ${CONFIG_STATUS=./config.status}
21526
ac_clean_files_save=$ac_clean_files
21527
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21528
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21529
echo "$as_me: creating $CONFIG_STATUS" >&6;}
21530
cat >$CONFIG_STATUS <<_ACEOF
21532
# Generated by $as_me.
21533
# Run this file to recreate the current configuration.
21534
# Compiler output produced by configure, useful for debugging
21535
# configure, is in config.log if it exists.
21538
ac_cs_recheck=false
21540
SHELL=\${CONFIG_SHELL-$SHELL}
21543
cat >>$CONFIG_STATUS <<\_ACEOF
21544
## --------------------- ##
21545
## M4sh Initialization. ##
21546
## --------------------- ##
21548
# Be Bourne compatible
21549
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21552
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21553
# is contrary to our usage. Disable this feature.
21554
alias -g '${1+"$@"}'='"$@"'
21555
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21558
DUALCASE=1; export DUALCASE # for MKS sh
21560
# Support unset when possible.
21561
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21568
# Work around bugs in pre-3.0 UWIN ksh.
21569
$as_unset ENV MAIL MAILPATH
21576
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21577
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21578
LC_TELEPHONE LC_TIME
21580
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21581
eval $as_var=C; export $as_var
21587
# Required to use basename.
21588
if expr a : '\(a\)' >/dev/null 2>&1; then
21594
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21595
as_basename=basename
21601
# Name of the executable.
21602
as_me=`$as_basename "$0" ||
21603
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21604
X"$0" : 'X\(//\)$' \| \
21605
X"$0" : 'X\(/\)$' \| \
21606
. : '\(.\)' 2>/dev/null ||
21608
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21609
/^X\/\(\/\/\)$/{ s//\1/; q; }
21610
/^X\/\(\/\).*/{ s//\1/; q; }
21614
# PATH needs CR, and LINENO needs CR and PATH.
21615
# Avoid depending upon Character Ranges.
21616
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21617
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21618
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21619
as_cr_digits='0123456789'
21620
as_cr_alnum=$as_cr_Letters$as_cr_digits
21622
# The user is always right.
21623
if test "${PATH_SEPARATOR+set}" != set; then
21624
echo "#! /bin/sh" >conf$$.sh
21625
echo "exit 0" >>conf$$.sh
21627
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21636
as_lineno_1=$LINENO
21637
as_lineno_2=$LINENO
21638
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21639
test "x$as_lineno_1" != "x$as_lineno_2" &&
21640
test "x$as_lineno_3" = "x$as_lineno_2" || {
21641
# Find who we are. Look in the path if we contain no path at all
21644
*[\\/]* ) as_myself=$0 ;;
21645
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21646
for as_dir in $PATH
21649
test -z "$as_dir" && as_dir=.
21650
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21655
# We did not find ourselves, most probably we were run as `sh COMMAND'
21656
# in which case we are not to be found in the path.
21657
if test "x$as_myself" = x; then
21660
if test ! -f "$as_myself"; then
21661
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21662
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21663
{ (exit 1); exit 1; }; }
21665
case $CONFIG_SHELL in
21667
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21668
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21671
test -z "$as_dir" && as_dir=.
21672
for as_base in sh bash ksh sh5; do
21675
if ("$as_dir/$as_base" -c '
21676
as_lineno_1=$LINENO
21677
as_lineno_2=$LINENO
21678
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21679
test "x$as_lineno_1" != "x$as_lineno_2" &&
21680
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21681
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21682
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21683
CONFIG_SHELL=$as_dir/$as_base
21684
export CONFIG_SHELL
21685
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21693
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21694
# uniformly replaced by the line number. The first 'sed' inserts a
21695
# line-number line before each line; the second 'sed' does the real
21696
# work. The second script uses 'N' to pair each line-number line
21697
# with the numbered line, and appends trailing '-' during
21698
# substitution so that $LINENO is not a special case at line end.
21699
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21700
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21701
sed '=' <$as_myself |
21706
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21709
s,^['$as_cr_digits']*\n,,
21710
' >$as_me.lineno &&
21711
chmod +x $as_me.lineno ||
21712
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21713
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21714
{ (exit 1); exit 1; }; }
21716
# Don't try to exec as it changes $[0], causing all sort of problems
21717
# (the dirname of $[0] is not the place where we might find the
21718
# original and so on. Autoconf is especially sensible to this).
21720
# Exit status is that of the last command.
21725
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21726
*c*,-n*) ECHO_N= ECHO_C='
21728
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21729
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21732
if expr a : '\(a\)' >/dev/null 2>&1; then
21738
rm -f conf$$ conf$$.exe conf$$.file
21740
if ln -s conf$$.file conf$$ 2>/dev/null; then
21741
# We could just check for DJGPP; but this test a) works b) is more generic
21742
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21743
if test -f conf$$.exe; then
21744
# Don't use ln at all; we don't have any links
21749
elif ln conf$$.file conf$$ 2>/dev/null; then
21754
rm -f conf$$ conf$$.exe conf$$.file
21756
if mkdir -p . 2>/dev/null; then
21759
test -d ./-p && rmdir ./-p
21763
as_executable_p="test -f"
21765
# Sed expression to map a string onto a valid CPP name.
21766
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21768
# Sed expression to map a string onto a valid variable name.
21769
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21773
# We need space, tab and new line, in precisely that order.
21783
# Open the log real soon, to keep \$[0] and so on meaningful, and to
21784
# report actual input values of CONFIG_FILES etc. instead of their
21785
# values after options handling. Logging --version etc. is OK.
21789
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21790
## Running $as_me. ##
21795
This file was extended by $as_me, which was
21796
generated by GNU Autoconf 2.59. Invocation command line was
21798
CONFIG_FILES = $CONFIG_FILES
21799
CONFIG_HEADERS = $CONFIG_HEADERS
21800
CONFIG_LINKS = $CONFIG_LINKS
21801
CONFIG_COMMANDS = $CONFIG_COMMANDS
21805
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21809
# Files that config.status was made for.
21810
if test -n "$ac_config_files"; then
21811
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21814
if test -n "$ac_config_headers"; then
21815
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21818
if test -n "$ac_config_links"; then
21819
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21822
if test -n "$ac_config_commands"; then
21823
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21826
cat >>$CONFIG_STATUS <<\_ACEOF
21829
\`$as_me' instantiates files from templates according to the
21830
current configuration.
21832
Usage: $0 [OPTIONS] [FILE]...
21834
-h, --help print this help, then exit
21835
-V, --version print version number, then exit
21836
-q, --quiet do not print progress messages
21837
-d, --debug don't remove temporary files
21838
--recheck update $as_me by reconfiguring in the same conditions
21839
--file=FILE[:TEMPLATE]
21840
instantiate the configuration file FILE
21841
--header=FILE[:TEMPLATE]
21842
instantiate the configuration header FILE
21844
Configuration files:
21847
Configuration headers:
21850
Report bugs to <bug-autoconf@gnu.org>."
21853
cat >>$CONFIG_STATUS <<_ACEOF
21856
configured by $0, generated by GNU Autoconf 2.59,
21857
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21859
Copyright (C) 2003 Free Software Foundation, Inc.
21860
This config.status script is free software; the Free Software Foundation
21861
gives unlimited permission to copy, distribute and modify it."
21866
cat >>$CONFIG_STATUS <<\_ACEOF
21867
# If no file are specified by the user, then we need to provide default
21868
# value. By we need to know if files were specified by the user.
21874
ac_option=`expr "x$1" : 'x\([^=]*\)='`
21875
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21883
*) # This is not an option, so the user has probably given explicit
21886
ac_need_defaults=false;;
21890
# Handling of the options.
21892
cat >>$CONFIG_STATUS <<\_ACEOF
21893
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21895
--version | --vers* | -V )
21896
echo "$ac_cs_version"; exit 0 ;;
21898
# Conflict between --help and --header
21899
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
21900
Try \`$0 --help' for more information." >&5
21901
echo "$as_me: error: ambiguous option: $1
21902
Try \`$0 --help' for more information." >&2;}
21903
{ (exit 1); exit 1; }; };;
21904
--help | --hel | -h )
21905
echo "$ac_cs_usage"; exit 0 ;;
21906
--debug | --d* | -d )
21908
--file | --fil | --fi | --f )
21910
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21911
ac_need_defaults=false;;
21912
--header | --heade | --head | --hea )
21914
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21915
ac_need_defaults=false;;
21916
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
21917
| -silent | --silent | --silen | --sile | --sil | --si | --s)
21920
# This is an error.
21921
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21922
Try \`$0 --help' for more information." >&5
21923
echo "$as_me: error: unrecognized option: $1
21924
Try \`$0 --help' for more information." >&2;}
21925
{ (exit 1); exit 1; }; } ;;
21927
*) ac_config_targets="$ac_config_targets $1" ;;
21933
ac_configure_extra_args=
21935
if $ac_cs_silent; then
21937
ac_configure_extra_args="$ac_configure_extra_args --silent"
21941
cat >>$CONFIG_STATUS <<_ACEOF
21942
if \$ac_cs_recheck; then
21943
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21944
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21953
cat >>$CONFIG_STATUS <<\_ACEOF
21954
for ac_config_target in $ac_config_targets
21956
case "$ac_config_target" in
21957
# Handling of arguments.
21958
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21959
"lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21960
"lib/expat.h" ) CONFIG_FILES="$CONFIG_FILES lib/expat.h" ;;
21961
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21962
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21963
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21964
{ (exit 1); exit 1; }; };;
21968
# If the user did not use the arguments to specify the items to instantiate,
21969
# then the envvar interface is used. Set only those that are not.
21970
# We use the long form for the default assignment because of an extremely
21971
# bizarre bug on SunOS 4.1.3.
21972
if $ac_need_defaults; then
21973
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21974
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21977
# Have a temporary directory for convenience. Make it in the build tree
21978
# simply because there is no reason to put it here, and in addition,
21979
# creating and moving files from /tmp can sometimes cause problems.
21980
# Create a temporary directory, and hook for its removal unless debugging.
21983
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21984
trap '{ (exit 1); exit 1; }' 1 2 13 15
21987
# Create a (secure) tmp directory for tmp files.
21990
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21991
test -n "$tmp" && test -d "$tmp"
21994
tmp=./confstat$$-$RANDOM
21995
(umask 077 && mkdir $tmp)
21998
echo "$me: cannot create a temporary directory in ." >&2
21999
{ (exit 1); exit 1; }
22004
cat >>$CONFIG_STATUS <<_ACEOF
22007
# CONFIG_FILES section.
22010
# No need to generate the scripts if there are no CONFIG_FILES.
22011
# This happens for instance when ./config.status config.h
22012
if test -n "\$CONFIG_FILES"; then
22013
# Protect against being on the right side of a sed subst in config.status.
22014
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22015
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22016
s,@SHELL@,$SHELL,;t t
22017
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22018
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22019
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22020
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22021
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22022
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22023
s,@exec_prefix@,$exec_prefix,;t t
22024
s,@prefix@,$prefix,;t t
22025
s,@program_transform_name@,$program_transform_name,;t t
22026
s,@bindir@,$bindir,;t t
22027
s,@sbindir@,$sbindir,;t t
22028
s,@libexecdir@,$libexecdir,;t t
22029
s,@datadir@,$datadir,;t t
22030
s,@sysconfdir@,$sysconfdir,;t t
22031
s,@sharedstatedir@,$sharedstatedir,;t t
22032
s,@localstatedir@,$localstatedir,;t t
22033
s,@libdir@,$libdir,;t t
22034
s,@includedir@,$includedir,;t t
22035
s,@oldincludedir@,$oldincludedir,;t t
22036
s,@infodir@,$infodir,;t t
22037
s,@mandir@,$mandir,;t t
22038
s,@build_alias@,$build_alias,;t t
22039
s,@host_alias@,$host_alias,;t t
22040
s,@target_alias@,$target_alias,;t t
22041
s,@DEFS@,$DEFS,;t t
22042
s,@ECHO_C@,$ECHO_C,;t t
22043
s,@ECHO_N@,$ECHO_N,;t t
22044
s,@ECHO_T@,$ECHO_T,;t t
22045
s,@LIBS@,$LIBS,;t t
22046
s,@build@,$build,;t t
22047
s,@build_cpu@,$build_cpu,;t t
22048
s,@build_vendor@,$build_vendor,;t t
22049
s,@build_os@,$build_os,;t t
22050
s,@host@,$host,;t t
22051
s,@host_cpu@,$host_cpu,;t t
22052
s,@host_vendor@,$host_vendor,;t t
22053
s,@host_os@,$host_os,;t t
22054
s,@target@,$target,;t t
22055
s,@target_cpu@,$target_cpu,;t t
22056
s,@target_vendor@,$target_vendor,;t t
22057
s,@target_os@,$target_os,;t t
22059
s,@CFLAGS@,$CFLAGS,;t t
22060
s,@LDFLAGS@,$LDFLAGS,;t t
22061
s,@CPPFLAGS@,$CPPFLAGS,;t t
22062
s,@ac_ct_CC@,$ac_ct_CC,;t t
22063
s,@EXEEXT@,$EXEEXT,;t t
22064
s,@OBJEXT@,$OBJEXT,;t t
22065
s,@EGREP@,$EGREP,;t t
22066
s,@LN_S@,$LN_S,;t t
22067
s,@ECHO@,$ECHO,;t t
22069
s,@ac_ct_AR@,$ac_ct_AR,;t t
22070
s,@RANLIB@,$RANLIB,;t t
22071
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22072
s,@STRIP@,$STRIP,;t t
22073
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22074
s,@DLLTOOL@,$DLLTOOL,;t t
22075
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22077
s,@ac_ct_AS@,$ac_ct_AS,;t t
22078
s,@OBJDUMP@,$OBJDUMP,;t t
22079
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
22082
s,@CXXFLAGS@,$CXXFLAGS,;t t
22083
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22084
s,@CXXCPP@,$CXXCPP,;t t
22086
s,@FFLAGS@,$FFLAGS,;t t
22087
s,@ac_ct_F77@,$ac_ct_F77,;t t
22088
s,@LIBTOOL@,$LIBTOOL,;t t
22089
s,@blddir@,$blddir,;t t
22090
s,@PACKAGE@,$PACKAGE,;t t
22091
s,@VERSION@,$VERSION,;t t
22092
s,@EXPAT_MAJOR_VERSION@,$EXPAT_MAJOR_VERSION,;t t
22093
s,@EXPAT_MINOR_VERSION@,$EXPAT_MINOR_VERSION,;t t
22094
s,@EXPAT_EDIT@,$EXPAT_EDIT,;t t
22095
s,@LIBCURRENT@,$LIBCURRENT,;t t
22096
s,@LIBREVISION@,$LIBREVISION,;t t
22097
s,@LIBAGE@,$LIBAGE,;t t
22098
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22099
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22100
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22101
s,@LIBOBJS@,$LIBOBJS,;t t
22102
s,@FILEMAP_OBJ@,$FILEMAP_OBJ,;t t
22103
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22108
cat >>$CONFIG_STATUS <<\_ACEOF
22109
# Split the substitutions into bite-sized pieces for seds with
22110
# small command number limits, like on Digital OSF/1 and HP-UX.
22111
ac_max_sed_lines=48
22112
ac_sed_frag=1 # Number of current file.
22113
ac_beg=1 # First line for current file.
22114
ac_end=$ac_max_sed_lines # Line after last line for current file.
22117
while $ac_more_lines; do
22118
if test $ac_beg -gt 1; then
22119
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22121
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22123
if test ! -s $tmp/subs.frag; then
22124
ac_more_lines=false
22126
# The purpose of the label and of the branching condition is to
22127
# speed up the sed processing (if there are no `@' at all, there
22128
# is no need to browse any of the substitutions).
22129
# These are the two extra sed commands mentioned above.
22131
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22132
if test -z "$ac_sed_cmds"; then
22133
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22135
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22137
ac_sed_frag=`expr $ac_sed_frag + 1`
22139
ac_end=`expr $ac_end + $ac_max_sed_lines`
22142
if test -z "$ac_sed_cmds"; then
22145
fi # test -n "$CONFIG_FILES"
22148
cat >>$CONFIG_STATUS <<\_ACEOF
22149
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22150
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22152
- | *:- | *:-:* ) # input from stdin
22154
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22155
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22156
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22157
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22158
* ) ac_file_in=$ac_file.in ;;
22161
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22162
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22163
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22164
X"$ac_file" : 'X\(//\)[^/]' \| \
22165
X"$ac_file" : 'X\(//\)$' \| \
22166
X"$ac_file" : 'X\(/\)' \| \
22167
. : '\(.\)' 2>/dev/null ||
22169
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22170
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22171
/^X\(\/\/\)$/{ s//\1/; q; }
22172
/^X\(\/\).*/{ s//\1/; q; }
22174
{ if $as_mkdir_p; then
22179
while test ! -d "$as_dir"; do
22180
as_dirs="$as_dir $as_dirs"
22181
as_dir=`(dirname "$as_dir") 2>/dev/null ||
22182
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22183
X"$as_dir" : 'X\(//\)[^/]' \| \
22184
X"$as_dir" : 'X\(//\)$' \| \
22185
X"$as_dir" : 'X\(/\)' \| \
22186
. : '\(.\)' 2>/dev/null ||
22188
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22189
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22190
/^X\(\/\/\)$/{ s//\1/; q; }
22191
/^X\(\/\).*/{ s//\1/; q; }
22194
test ! -n "$as_dirs" || mkdir $as_dirs
22195
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22196
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22197
{ (exit 1); exit 1; }; }; }
22201
if test "$ac_dir" != .; then
22202
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22203
# A "../" for each directory in $ac_dir_suffix.
22204
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22206
ac_dir_suffix= ac_top_builddir=
22210
.) # No --srcdir option. We are building in place.
22212
if test -z "$ac_top_builddir"; then
22215
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22217
[\\/]* | ?:[\\/]* ) # Absolute path.
22218
ac_srcdir=$srcdir$ac_dir_suffix;
22219
ac_top_srcdir=$srcdir ;;
22220
*) # Relative path.
22221
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22222
ac_top_srcdir=$ac_top_builddir$srcdir ;;
22225
# Do not use `cd foo && pwd` to compute absolute paths, because
22226
# the directories may not exist.
22228
.) ac_abs_builddir="$ac_dir";;
22231
.) ac_abs_builddir=`pwd`;;
22232
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22233
*) ac_abs_builddir=`pwd`/"$ac_dir";;
22236
case $ac_abs_builddir in
22237
.) ac_abs_top_builddir=${ac_top_builddir}.;;
22239
case ${ac_top_builddir}. in
22240
.) ac_abs_top_builddir=$ac_abs_builddir;;
22241
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22242
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22245
case $ac_abs_builddir in
22246
.) ac_abs_srcdir=$ac_srcdir;;
22249
.) ac_abs_srcdir=$ac_abs_builddir;;
22250
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22251
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22254
case $ac_abs_builddir in
22255
.) ac_abs_top_srcdir=$ac_top_srcdir;;
22257
case $ac_top_srcdir in
22258
.) ac_abs_top_srcdir=$ac_abs_builddir;;
22259
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22260
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22266
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22267
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22270
if test x"$ac_file" != x-; then
22271
{ echo "$as_me:$LINENO: creating $ac_file" >&5
22272
echo "$as_me: creating $ac_file" >&6;}
22275
# Let's still pretend it is `configure' which instantiates (i.e., don't
22276
# use $as_me), people would be surprised to read:
22277
# /* config.h. Generated by config.status. */
22278
if test x"$ac_file" = x-; then
22281
configure_input="$ac_file. "
22283
configure_input=$configure_input"Generated from `echo $ac_file_in |
22284
sed 's,.*/,,'` by configure."
22286
# First look for the input files in the build tree, otherwise in the
22288
ac_file_inputs=`IFS=:
22289
for f in $ac_file_in; do
22291
-) echo $tmp/stdin ;;
22293
# Absolute (can't be DOS-style, as IFS=:)
22294
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22295
echo "$as_me: error: cannot find input file: $f" >&2;}
22296
{ (exit 1); exit 1; }; }
22299
if test -f "$f"; then
22302
elif test -f "$srcdir/$f"; then
22307
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22308
echo "$as_me: error: cannot find input file: $f" >&2;}
22309
{ (exit 1); exit 1; }; }
22312
done` || { (exit 1); exit 1; }
22314
cat >>$CONFIG_STATUS <<_ACEOF
22318
cat >>$CONFIG_STATUS <<\_ACEOF
22320
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22321
s,@configure_input@,$configure_input,;t t
22322
s,@srcdir@,$ac_srcdir,;t t
22323
s,@abs_srcdir@,$ac_abs_srcdir,;t t
22324
s,@top_srcdir@,$ac_top_srcdir,;t t
22325
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22326
s,@builddir@,$ac_builddir,;t t
22327
s,@abs_builddir@,$ac_abs_builddir,;t t
22328
s,@top_builddir@,$ac_top_builddir,;t t
22329
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22330
s,@INSTALL@,$ac_INSTALL,;t t
22331
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22333
if test x"$ac_file" != x-; then
22334
mv $tmp/out $ac_file
22342
cat >>$CONFIG_STATUS <<\_ACEOF
22345
# CONFIG_HEADER section.
22348
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22349
# NAME is the cpp macro being defined and VALUE is the value it is being given.
22351
# ac_d sets the value in "#define NAME VALUE" lines.
22352
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22353
ac_dB='[ ].*$,\1#\2'
22356
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22357
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22358
ac_uB='$,\1#\2define\3'
22362
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22363
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22365
- | *:- | *:-:* ) # input from stdin
22367
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22368
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22369
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22370
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22371
* ) ac_file_in=$ac_file.in ;;
22374
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22375
echo "$as_me: creating $ac_file" >&6;}
22377
# First look for the input files in the build tree, otherwise in the
22379
ac_file_inputs=`IFS=:
22380
for f in $ac_file_in; do
22382
-) echo $tmp/stdin ;;
22384
# Absolute (can't be DOS-style, as IFS=:)
22385
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22386
echo "$as_me: error: cannot find input file: $f" >&2;}
22387
{ (exit 1); exit 1; }; }
22388
# Do quote $f, to prevent DOS paths from being IFS'd.
22391
if test -f "$f"; then
22394
elif test -f "$srcdir/$f"; then
22399
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22400
echo "$as_me: error: cannot find input file: $f" >&2;}
22401
{ (exit 1); exit 1; }; }
22404
done` || { (exit 1); exit 1; }
22405
# Remove the trailing spaces.
22406
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22410
# Transform confdefs.h into two sed scripts, `conftest.defines' and
22411
# `conftest.undefs', that substitutes the proper values into
22412
# config.h.in to produce config.h. The first handles `#define'
22413
# templates, and the second `#undef' templates.
22414
# And first: Protect against being on the right side of a sed subst in
22415
# config.status. Protect against being in an unquoted here document
22416
# in config.status.
22417
rm -f conftest.defines conftest.undefs
22418
# Using a here document instead of a string reduces the quoting nightmare.
22419
# Putting comments in sed scripts is not portable.
22421
# `end' is used to avoid that the second main sed command (meant for
22422
# 0-ary CPP macros) applies to n-ary macro definitions.
22423
# See the Autoconf documentation for `clear'.
22424
cat >confdef2sed.sed <<\_ACEOF
22429
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22431
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22434
# If some macros were called several times there might be several times
22435
# the same #defines, which is useless. Nevertheless, we may not want to
22436
# sort them, since we want the *last* AC-DEFINE to be honored.
22437
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22438
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22439
rm -f confdef2sed.sed
22441
# This sed command replaces #undef with comments. This is necessary, for
22442
# example, in the case of _POSIX_SOURCE, which is predefined and required
22443
# on some systems where configure will not decide to define it.
22444
cat >>conftest.undefs <<\_ACEOF
22445
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22448
# Break up conftest.defines because some shells have a limit on the size
22449
# of here documents, and old seds have small limits too (100 cmds).
22450
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22451
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22452
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22453
echo ' :' >>$CONFIG_STATUS
22454
rm -f conftest.tail
22455
while grep . conftest.defines >/dev/null
22457
# Write a limited-size here document to $tmp/defines.sed.
22458
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22459
# Speed up: don't consider the non `#define' lines.
22460
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22461
# Work around the forget-to-reset-the-flag bug.
22462
echo 't clr' >>$CONFIG_STATUS
22463
echo ': clr' >>$CONFIG_STATUS
22464
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22466
sed -f $tmp/defines.sed $tmp/in >$tmp/out
22468
mv $tmp/out $tmp/in
22470
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22471
rm -f conftest.defines
22472
mv conftest.tail conftest.defines
22474
rm -f conftest.defines
22475
echo ' fi # grep' >>$CONFIG_STATUS
22476
echo >>$CONFIG_STATUS
22478
# Break up conftest.undefs because some shells have a limit on the size
22479
# of here documents, and old seds have small limits too (100 cmds).
22480
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22481
rm -f conftest.tail
22482
while grep . conftest.undefs >/dev/null
22484
# Write a limited-size here document to $tmp/undefs.sed.
22485
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22486
# Speed up: don't consider the non `#undef'
22487
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22488
# Work around the forget-to-reset-the-flag bug.
22489
echo 't clr' >>$CONFIG_STATUS
22490
echo ': clr' >>$CONFIG_STATUS
22491
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22493
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22495
mv $tmp/out $tmp/in
22497
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22498
rm -f conftest.undefs
22499
mv conftest.tail conftest.undefs
22501
rm -f conftest.undefs
22503
cat >>$CONFIG_STATUS <<\_ACEOF
22504
# Let's still pretend it is `configure' which instantiates (i.e., don't
22505
# use $as_me), people would be surprised to read:
22506
# /* config.h. Generated by config.status. */
22507
if test x"$ac_file" = x-; then
22508
echo "/* Generated by configure. */" >$tmp/config.h
22510
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22512
cat $tmp/in >>$tmp/config.h
22514
if test x"$ac_file" != x-; then
22515
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22516
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22517
echo "$as_me: $ac_file is unchanged" >&6;}
22519
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22520
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22521
X"$ac_file" : 'X\(//\)[^/]' \| \
22522
X"$ac_file" : 'X\(//\)$' \| \
22523
X"$ac_file" : 'X\(/\)' \| \
22524
. : '\(.\)' 2>/dev/null ||
22526
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22527
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22528
/^X\(\/\/\)$/{ s//\1/; q; }
22529
/^X\(\/\).*/{ s//\1/; q; }
22531
{ if $as_mkdir_p; then
22536
while test ! -d "$as_dir"; do
22537
as_dirs="$as_dir $as_dirs"
22538
as_dir=`(dirname "$as_dir") 2>/dev/null ||
22539
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22540
X"$as_dir" : 'X\(//\)[^/]' \| \
22541
X"$as_dir" : 'X\(//\)$' \| \
22542
X"$as_dir" : 'X\(/\)' \| \
22543
. : '\(.\)' 2>/dev/null ||
22545
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22546
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22547
/^X\(\/\/\)$/{ s//\1/; q; }
22548
/^X\(\/\).*/{ s//\1/; q; }
22551
test ! -n "$as_dirs" || mkdir $as_dirs
22552
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22553
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22554
{ (exit 1); exit 1; }; }; }
22557
mv $tmp/config.h $ac_file
22561
rm -f $tmp/config.h
22566
cat >>$CONFIG_STATUS <<\_ACEOF
22568
{ (exit 0); exit 0; }
22570
chmod +x $CONFIG_STATUS
22571
ac_clean_files=$ac_clean_files_save
22574
# configure is writing to config.log, and then calls config.status.
22575
# config.status does its own redirection, appending to config.log.
22576
# Unfortunately, on DOS this fails, as config.log is still kept open
22577
# by configure, so config.status won't be able to write to it; its
22578
# output is simply discarded. So we exec the FD to /dev/null,
22579
# effectively closing config.log, so it can be properly (re)opened and
22580
# appended to by config.status. When coming back to configure, we
22581
# need to make the FD available again.
22582
if test "$no_create" != yes; then
22584
ac_config_status_args=
22585
test "$silent" = yes &&
22586
ac_config_status_args="$ac_config_status_args --quiet"
22588
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22590
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
22591
# would make configure fail if this is the last instruction.
22592
$ac_cs_success || { (exit 1); exit 1; }