2
@%:@ Guess values for system-dependent variables and create Makefiles.
3
@%:@ Generated by GNU Autoconf 2.59 for trousers 0.2.9.1.
5
@%:@ Report bugs to <trousers-tech@lists.sf.net>.
7
@%:@ Copyright (C) 2003 Free Software Foundation, Inc.
8
@%:@ This configure script is free software; the Free Software Foundation
9
@%:@ gives unlimited permission to copy, distribute and modify it.
10
## --------------------- ##
11
## M4sh Initialization. ##
12
## --------------------- ##
14
# Be Bourne compatible
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
# is contrary to our usage. Disable this feature.
20
alias -g '${1+"$@"}'='"$@"'
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24
DUALCASE=1; export DUALCASE # for MKS sh
26
# Support unset when possible.
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34
# Work around bugs in pre-3.0 UWIN ksh.
35
$as_unset ENV MAIL MAILPATH
42
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47
eval $as_var=C; export $as_var
53
# Required to use basename.
54
if expr a : '\(a\)' >/dev/null 2>&1; then
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67
# Name of the executable.
68
as_me=`$as_basename "$0" ||
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
X"$0" : 'X\(//\)$' \| \
71
X"$0" : 'X\(/\)$' \| \
72
. : '\(.\)' 2>/dev/null ||
74
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
/^X\/\(\/\/\)$/{ s//\1/; q; }
76
/^X\/\(\/\).*/{ s//\1/; q; }
80
# PATH needs CR, and LINENO needs CR and PATH.
81
# Avoid depending upon Character Ranges.
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85
as_cr_digits='0123456789'
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
88
# The user is always right.
89
if test "${PATH_SEPARATOR+set}" != set; then
90
echo "#! /bin/sh" >conf$$.sh
91
echo "exit 0" >>conf$$.sh
93
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105
test "x$as_lineno_1" != "x$as_lineno_2" &&
106
test "x$as_lineno_3" = "x$as_lineno_2" || {
107
# Find who we are. Look in the path if we contain no path at all
110
*[\\/]* ) as_myself=$0 ;;
111
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115
test -z "$as_dir" && as_dir=.
116
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121
# We did not find ourselves, most probably we were run as `sh COMMAND'
122
# in which case we are not to be found in the path.
123
if test "x$as_myself" = x; then
126
if test ! -f "$as_myself"; then
127
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128
{ (exit 1); exit 1; }; }
130
case $CONFIG_SHELL in
132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136
test -z "$as_dir" && as_dir=.
137
for as_base in sh bash ksh sh5; do
140
if ("$as_dir/$as_base" -c '
143
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144
test "x$as_lineno_1" != "x$as_lineno_2" &&
145
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148
CONFIG_SHELL=$as_dir/$as_base
150
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159
# uniformly replaced by the line number. The first 'sed' inserts a
160
# line-number line before each line; the second 'sed' does the real
161
# work. The second script uses 'N' to pair each line-number line
162
# with the numbered line, and appends trailing '-' during
163
# substitution so that $LINENO is not a special case at line end.
164
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166
sed '=' <$as_myself |
171
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174
s,^['$as_cr_digits']*\n,,
176
chmod +x $as_me.lineno ||
177
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178
{ (exit 1); exit 1; }; }
180
# Don't try to exec as it changes $[0], causing all sort of problems
181
# (the dirname of $[0] is not the place where we might find the
182
# original and so on. Autoconf is especially sensible to this).
184
# Exit status is that of the last command.
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190
*c*,-n*) ECHO_N= ECHO_C='
192
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196
if expr a : '\(a\)' >/dev/null 2>&1; then
202
rm -f conf$$ conf$$.exe conf$$.file
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
205
# We could just check for DJGPP; but this test a) works b) is more generic
206
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207
if test -f conf$$.exe; then
208
# Don't use ln at all; we don't have any links
213
elif ln conf$$.file conf$$ 2>/dev/null; then
218
rm -f conf$$ conf$$.exe conf$$.file
220
if mkdir -p . 2>/dev/null; then
223
test -d ./-p && rmdir ./-p
227
as_executable_p="test -f"
229
# Sed expression to map a string onto a valid CPP name.
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
# Sed expression to map a string onto a valid variable name.
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237
# We need space, tab and new line, in precisely that order.
247
# Check that we are running under the correct shell.
248
SHELL=${CONFIG_SHELL-/bin/sh}
252
# Remove one level of quotation (which was required for Make).
253
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258
if test "X$1" = X--no-reexec; then
259
# Discard the --no-reexec flag, and continue.
261
elif test "X$1" = X--fallback-echo; then
262
# Avoid inline document here, it may be left over
264
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265
# Yippee, $echo works!
268
# Restart under the correct shell.
269
exec $SHELL "$0" --no-reexec ${1+"$@"}
272
if test "X$1" = X--fallback-echo; then
273
# used as fallback echo
281
# The HP-UX ksh and POSIX shell print the target directory to stdout
283
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285
if test -z "$ECHO"; then
286
if test "X${echo_test_string+set}" != Xset; then
287
# find a string as large as possible, as long as the shell can cope with it
288
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291
echo_test_string="`eval $cmd`" &&
292
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301
test "X$echo_testing_string" = "X$echo_test_string"; then
304
# The Solaris, AIX, and Digital Unix default echo programs unquote
305
# backslashes. This makes it impossible to quote backslashes using
306
# echo "$something" | sed 's/\\/\\\\/g'
308
# So, first we look for a working echo in the user's PATH.
310
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311
for dir in $PATH /usr/ucb; do
313
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316
test "X$echo_testing_string" = "X$echo_test_string"; then
323
if test "X$echo" = Xecho; then
324
# We didn't find a better echo, so look for alternatives.
325
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327
test "X$echo_testing_string" = "X$echo_test_string"; then
328
# This shell has a builtin print -r that does the trick.
330
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331
test "X$CONFIG_SHELL" != X/bin/ksh; then
332
# If we have ksh, try running configure again with it.
333
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334
export ORIGINAL_CONFIG_SHELL
335
CONFIG_SHELL=/bin/ksh
337
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343
test "X$echo_testing_string" = "X$echo_test_string"; then
346
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347
test "X$echo_testing_string" = 'X\t' &&
348
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349
test "X$echo_testing_string" = "X$echo_test_string"; then
350
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352
SHELL="$CONFIG_SHELL"
354
echo="$CONFIG_SHELL $0 --fallback-echo"
355
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356
test "X$echo_testing_string" = 'X\t' &&
357
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358
test "X$echo_testing_string" = "X$echo_test_string"; then
359
echo="$CONFIG_SHELL $0 --fallback-echo"
361
# maybe with a smaller string...
364
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372
if test "$prev" != 'sed 50q "$0"'; then
373
echo_test_string=`eval $prev`
374
export echo_test_string
375
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377
# Oops. We lost completely, so just stick with echo.
386
# Copy echo and quote the copy suitably for passing to libtool from
387
# the Makefile, instead of quoting the original, which is used later.
389
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396
tagnames=${tagnames+${tagnames},}CXX
398
tagnames=${tagnames+${tagnames},}F77
401
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402
# so uname gets run too.
403
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
ac_default_prefix=/usr/local
411
ac_config_libobj_dir=.
416
SHELL=${CONFIG_SHELL-/bin/sh}
418
# Maximum number of lines to put in a shell here document.
419
# This variable seems obsolete. It should probably be removed, and
420
# only ac_max_sed_lines should be used.
421
: ${ac_max_here_lines=38}
423
# Identity of this package.
424
PACKAGE_NAME='trousers'
425
PACKAGE_TARNAME='trousers'
426
PACKAGE_VERSION='0.2.9.1'
427
PACKAGE_STRING='trousers 0.2.9.1'
428
PACKAGE_BUGREPORT='trousers-tech@lists.sf.net'
430
# Factoring default headers for most tests.
431
ac_includes_default="\
434
# include <sys/types.h>
437
# include <sys/stat.h>
448
# if !STDC_HEADERS && HAVE_MEMORY_H
454
# include <strings.h>
457
# include <inttypes.h>
467
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENSSL_LIB_DIR CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CRYPTO_PACKAGE HAVE_GTK_TRUE HAVE_GTK_FALSE PKG_CONFIG GTK_CFLAGS GTK_LIBS EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL TCSD_DEFAULT_PORT LIB@&t@OBJS LTLIBOBJS'
470
# Initialize some variables set by options.
472
ac_init_version=false
473
# The variables have the same names as the options, with
474
# dashes changed to underlines.
482
program_transform_name=s,x,x,
490
# Installation directory options.
491
# These are left unexpanded so users can "make install exec_prefix=/foo"
492
# and all the variables that are supposed to be based on exec_prefix
493
# by default will actually change.
494
# Use braces instead of parens because sh, perl, etc. also accept them.
495
bindir='${exec_prefix}/bin'
496
sbindir='${exec_prefix}/sbin'
497
libexecdir='${exec_prefix}/libexec'
498
datadir='${prefix}/share'
499
sysconfdir='${prefix}/etc'
500
sharedstatedir='${prefix}/com'
501
localstatedir='${prefix}/var'
502
libdir='${exec_prefix}/lib'
503
includedir='${prefix}/include'
504
oldincludedir='/usr/include'
505
infodir='${prefix}/info'
506
mandir='${prefix}/man'
511
# If the previous option needs an argument, assign it.
512
if test -n "$ac_prev"; then
513
eval "$ac_prev=\$ac_option"
518
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
# Accept the important Cygnus configure options, so we can diagnose typos.
524
-bindir | --bindir | --bindi | --bind | --bin | --bi)
526
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529
-build | --build | --buil | --bui | --bu)
530
ac_prev=build_alias ;;
531
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
532
build_alias=$ac_optarg ;;
534
-cache-file | --cache-file | --cache-fil | --cache-fi \
535
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536
ac_prev=cache_file ;;
537
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539
cache_file=$ac_optarg ;;
542
cache_file=config.cache ;;
544
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548
datadir=$ac_optarg ;;
550
-disable-* | --disable-*)
551
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552
# Reject names that are not valid shell variable names.
553
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
555
{ (exit 1); exit 1; }; }
556
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557
eval "enable_$ac_feature=no" ;;
559
-enable-* | --enable-*)
560
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561
# Reject names that are not valid shell variable names.
562
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
564
{ (exit 1); exit 1; }; }
565
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570
eval "enable_$ac_feature='$ac_optarg'" ;;
572
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574
| --exec | --exe | --ex)
575
ac_prev=exec_prefix ;;
576
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578
| --exec=* | --exe=* | --ex=*)
579
exec_prefix=$ac_optarg ;;
581
-gas | --gas | --ga | --g)
582
# Obsolete; use --with-gas.
585
-help | --help | --hel | --he | -h)
587
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588
ac_init_help=recursive ;;
589
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590
ac_init_help=short ;;
592
-host | --host | --hos | --ho)
593
ac_prev=host_alias ;;
594
-host=* | --host=* | --hos=* | --ho=*)
595
host_alias=$ac_optarg ;;
597
-includedir | --includedir | --includedi | --included | --include \
598
| --includ | --inclu | --incl | --inc)
599
ac_prev=includedir ;;
600
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601
| --includ=* | --inclu=* | --incl=* | --inc=*)
602
includedir=$ac_optarg ;;
604
-infodir | --infodir | --infodi | --infod | --info | --inf)
606
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607
infodir=$ac_optarg ;;
609
-libdir | --libdir | --libdi | --libd)
611
-libdir=* | --libdir=* | --libdi=* | --libd=*)
614
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615
| --libexe | --libex | --libe)
616
ac_prev=libexecdir ;;
617
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618
| --libexe=* | --libex=* | --libe=*)
619
libexecdir=$ac_optarg ;;
621
-localstatedir | --localstatedir | --localstatedi | --localstated \
622
| --localstate | --localstat | --localsta | --localst \
623
| --locals | --local | --loca | --loc | --lo)
624
ac_prev=localstatedir ;;
625
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
627
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628
localstatedir=$ac_optarg ;;
630
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636
# Obsolete; use --without-fp.
639
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
640
| --no-cr | --no-c | -n)
643
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
644
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649
| --oldin | --oldi | --old | --ol | --o)
650
ac_prev=oldincludedir ;;
651
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654
oldincludedir=$ac_optarg ;;
656
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661
-program-prefix | --program-prefix | --program-prefi | --program-pref \
662
| --program-pre | --program-pr | --program-p)
663
ac_prev=program_prefix ;;
664
-program-prefix=* | --program-prefix=* | --program-prefi=* \
665
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666
program_prefix=$ac_optarg ;;
668
-program-suffix | --program-suffix | --program-suffi | --program-suff \
669
| --program-suf | --program-su | --program-s)
670
ac_prev=program_suffix ;;
671
-program-suffix=* | --program-suffix=* | --program-suffi=* \
672
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673
program_suffix=$ac_optarg ;;
675
-program-transform-name | --program-transform-name \
676
| --program-transform-nam | --program-transform-na \
677
| --program-transform-n | --program-transform- \
678
| --program-transform | --program-transfor \
679
| --program-transfo | --program-transf \
680
| --program-trans | --program-tran \
681
| --progr-tra | --program-tr | --program-t)
682
ac_prev=program_transform_name ;;
683
-program-transform-name=* | --program-transform-name=* \
684
| --program-transform-nam=* | --program-transform-na=* \
685
| --program-transform-n=* | --program-transform-=* \
686
| --program-transform=* | --program-transfor=* \
687
| --program-transfo=* | --program-transf=* \
688
| --program-trans=* | --program-tran=* \
689
| --progr-tra=* | --program-tr=* | --program-t=*)
690
program_transform_name=$ac_optarg ;;
692
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
693
| -silent | --silent | --silen | --sile | --sil)
696
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700
sbindir=$ac_optarg ;;
702
-sharedstatedir | --sharedstatedir | --sharedstatedi \
703
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704
| --sharedst | --shareds | --shared | --share | --shar \
706
ac_prev=sharedstatedir ;;
707
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711
sharedstatedir=$ac_optarg ;;
713
-site | --site | --sit)
715
-site=* | --site=* | --sit=*)
718
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724
| --syscon | --sysco | --sysc | --sys | --sy)
725
ac_prev=sysconfdir ;;
726
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728
sysconfdir=$ac_optarg ;;
730
-target | --target | --targe | --targ | --tar | --ta | --t)
731
ac_prev=target_alias ;;
732
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733
target_alias=$ac_optarg ;;
735
-v | -verbose | --verbose | --verbos | --verbo | --verb)
738
-version | --version | --versio | --versi | --vers | -V)
742
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743
# Reject names that are not valid shell variable names.
744
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745
{ echo "$as_me: error: invalid package name: $ac_package" >&2
746
{ (exit 1); exit 1; }; }
747
ac_package=`echo $ac_package| sed 's/-/_/g'`
749
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752
eval "with_$ac_package='$ac_optarg'" ;;
754
-without-* | --without-*)
755
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756
# Reject names that are not valid shell variable names.
757
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758
{ echo "$as_me: error: invalid package name: $ac_package" >&2
759
{ (exit 1); exit 1; }; }
760
ac_package=`echo $ac_package | sed 's/-/_/g'`
761
eval "with_$ac_package=no" ;;
764
# Obsolete; use --with-x.
767
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768
| --x-incl | --x-inc | --x-in | --x-i)
769
ac_prev=x_includes ;;
770
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772
x_includes=$ac_optarg ;;
774
-x-libraries | --x-libraries | --x-librarie | --x-librari \
775
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776
ac_prev=x_libraries ;;
777
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779
x_libraries=$ac_optarg ;;
781
-*) { echo "$as_me: error: unrecognized option: $ac_option
782
Try \`$0 --help' for more information." >&2
783
{ (exit 1); exit 1; }; }
787
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788
# Reject names that are not valid shell variable names.
789
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791
{ (exit 1); exit 1; }; }
792
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793
eval "$ac_envvar='$ac_optarg'"
797
# FIXME: should be removed in autoconf 3.0.
798
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807
if test -n "$ac_prev"; then
808
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809
{ echo "$as_me: error: missing argument to $ac_option" >&2
810
{ (exit 1); exit 1; }; }
813
# Be sure to have absolute paths.
814
for ac_var in exec_prefix prefix
816
eval ac_val=$`echo $ac_var`
818
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820
{ (exit 1); exit 1; }; };;
824
# Be sure to have absolute paths.
825
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826
localstatedir libdir includedir oldincludedir infodir mandir
828
eval ac_val=$`echo $ac_var`
830
[\\/$]* | ?:[\\/]* ) ;;
831
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832
{ (exit 1); exit 1; }; };;
836
# There might be people who depend on the old broken behavior: `$host'
837
# used to hold the argument of --host etc.
838
# FIXME: To remove some day.
843
# FIXME: To remove some day.
844
if test "x$host_alias" != x; then
845
if test "x$build_alias" = x; then
846
cross_compiling=maybe
847
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848
If a cross compiler is detected then cross compile mode will be used." >&2
849
elif test "x$build_alias" != "x$host_alias"; then
855
test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
test "$silent" = yes && exec 6>/dev/null
860
# Find the source files, if location was not specified.
861
if test -z "$srcdir"; then
862
ac_srcdir_defaulted=yes
863
# Try the directory containing this script, then its parent.
864
ac_confdir=`(dirname "$0") 2>/dev/null ||
865
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866
X"$0" : 'X\(//\)[^/]' \| \
867
X"$0" : 'X\(//\)$' \| \
868
X"$0" : 'X\(/\)' \| \
869
. : '\(.\)' 2>/dev/null ||
871
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
873
/^X\(\/\/\)$/{ s//\1/; q; }
874
/^X\(\/\).*/{ s//\1/; q; }
877
if test ! -r $srcdir/$ac_unique_file; then
881
ac_srcdir_defaulted=no
883
if test ! -r $srcdir/$ac_unique_file; then
884
if test "$ac_srcdir_defaulted" = yes; then
885
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886
{ (exit 1); exit 1; }; }
888
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889
{ (exit 1); exit 1; }; }
892
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894
{ (exit 1); exit 1; }; }
895
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896
ac_env_build_alias_set=${build_alias+set}
897
ac_env_build_alias_value=$build_alias
898
ac_cv_env_build_alias_set=${build_alias+set}
899
ac_cv_env_build_alias_value=$build_alias
900
ac_env_host_alias_set=${host_alias+set}
901
ac_env_host_alias_value=$host_alias
902
ac_cv_env_host_alias_set=${host_alias+set}
903
ac_cv_env_host_alias_value=$host_alias
904
ac_env_target_alias_set=${target_alias+set}
905
ac_env_target_alias_value=$target_alias
906
ac_cv_env_target_alias_set=${target_alias+set}
907
ac_cv_env_target_alias_value=$target_alias
908
ac_env_CC_set=${CC+set}
910
ac_cv_env_CC_set=${CC+set}
911
ac_cv_env_CC_value=$CC
912
ac_env_CFLAGS_set=${CFLAGS+set}
913
ac_env_CFLAGS_value=$CFLAGS
914
ac_cv_env_CFLAGS_set=${CFLAGS+set}
915
ac_cv_env_CFLAGS_value=$CFLAGS
916
ac_env_LDFLAGS_set=${LDFLAGS+set}
917
ac_env_LDFLAGS_value=$LDFLAGS
918
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919
ac_cv_env_LDFLAGS_value=$LDFLAGS
920
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921
ac_env_CPPFLAGS_value=$CPPFLAGS
922
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924
ac_env_CPP_set=${CPP+set}
925
ac_env_CPP_value=$CPP
926
ac_cv_env_CPP_set=${CPP+set}
927
ac_cv_env_CPP_value=$CPP
928
ac_env_CXX_set=${CXX+set}
929
ac_env_CXX_value=$CXX
930
ac_cv_env_CXX_set=${CXX+set}
931
ac_cv_env_CXX_value=$CXX
932
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933
ac_env_CXXFLAGS_value=$CXXFLAGS
934
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936
ac_env_CXXCPP_set=${CXXCPP+set}
937
ac_env_CXXCPP_value=$CXXCPP
938
ac_cv_env_CXXCPP_set=${CXXCPP+set}
939
ac_cv_env_CXXCPP_value=$CXXCPP
940
ac_env_F77_set=${F77+set}
941
ac_env_F77_value=$F77
942
ac_cv_env_F77_set=${F77+set}
943
ac_cv_env_F77_value=$F77
944
ac_env_FFLAGS_set=${FFLAGS+set}
945
ac_env_FFLAGS_value=$FFLAGS
946
ac_cv_env_FFLAGS_set=${FFLAGS+set}
947
ac_cv_env_FFLAGS_value=$FFLAGS
950
# Report the --help message.
952
if test "$ac_init_help" = "long"; then
953
# Omit some internal or obsolete options to make the list less imposing.
954
# This message is too long to be a string in the A/UX 3.1 sh.
956
\`configure' configures trousers 0.2.9.1 to adapt to many kinds of systems.
958
Usage: $0 [OPTION]... [VAR=VALUE]...
960
To assign environment variables (e.g., CC, CFLAGS...), specify them as
961
VAR=VALUE. See below for descriptions of some of the useful variables.
963
Defaults for the options are specified in brackets.
966
-h, --help display this help and exit
967
--help=short display options specific to this package
968
--help=recursive display the short help of all the included packages
969
-V, --version display version information and exit
970
-q, --quiet, --silent do not print \`checking...' messages
971
--cache-file=FILE cache test results in FILE [disabled]
972
-C, --config-cache alias for \`--cache-file=config.cache'
973
-n, --no-create do not create output files
974
--srcdir=DIR find the sources in DIR [configure dir or \`..']
979
Installation directories:
980
--prefix=PREFIX install architecture-independent files in PREFIX
982
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985
By default, \`make install' will install all the files in
986
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988
for instance \`--prefix=\$HOME'.
990
For better control, use the options below.
992
Fine tuning of the installation directories:
993
--bindir=DIR user executables [EPREFIX/bin]
994
--sbindir=DIR system admin executables [EPREFIX/sbin]
995
--libexecdir=DIR program executables [EPREFIX/libexec]
996
--datadir=DIR read-only architecture-independent data [PREFIX/share]
997
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000
--libdir=DIR object code libraries [EPREFIX/lib]
1001
--includedir=DIR C header files [PREFIX/include]
1002
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1003
--infodir=DIR info documentation [PREFIX/info]
1004
--mandir=DIR man documentation [PREFIX/man]
1010
--program-prefix=PREFIX prepend PREFIX to installed program names
1011
--program-suffix=SUFFIX append SUFFIX to installed program names
1012
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1015
--build=BUILD configure for building on BUILD [guessed]
1016
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1017
--target=TARGET configure for building compilers for TARGET [HOST]
1021
if test -n "$ac_init_help"; then
1022
case $ac_init_help in
1023
short | recursive ) echo "Configuration of trousers 0.2.9.1:";;
1028
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030
--enable-debug turn on all trousers debugging flags
1032
--disable-dependency-tracking speeds up one-time build
1033
--enable-dependency-tracking do not reject slow dependency extractors
1034
--enable-gcov turn on gcov code coverage flags [default=off]
1035
--enable-gprof enable profiling with gprof [default=off]
1036
--enable-policy-copying enable copying the default policy when a new working
1037
object is created (not spec compliant) [default=off]
1038
--enable-strict-spec-compliance
1039
build TrouSerS as strictly spec compliant
1041
--enable-static@<:@=PKGS@:>@
1042
build static libraries @<:@default=no@:>@
1043
--enable-shared@<:@=PKGS@:>@
1044
build shared libraries @<:@default=yes@:>@
1045
--enable-fast-install@<:@=PKGS@:>@
1046
optimize for fast installation @<:@default=yes@:>@
1047
--disable-libtool-lock avoid locking (might break parallel builds)
1050
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1051
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1052
--with-openssl=PATH Location of openssl libs/includes
1053
--with-gui type of gui popup (gtk/none) [default=gtk]
1054
--with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1055
--with-pic try to use only PIC/non-PIC objects @<:@default=use
1057
--with-tags@<:@=TAGS@:>@
1058
include additional configurations @<:@automatic@:>@
1060
Some influential environment variables:
1061
CC C compiler command
1062
CFLAGS C compiler flags
1063
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1064
nonstandard directory <lib dir>
1065
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1066
headers in a nonstandard directory <include dir>
1068
CXX C++ compiler command
1069
CXXFLAGS C++ compiler flags
1070
CXXCPP C++ preprocessor
1071
F77 Fortran 77 compiler command
1072
FFLAGS Fortran 77 compiler flags
1074
Use these variables to override the choices made by `configure' or to help
1075
it to find libraries and programs with nonstandard names/locations.
1077
Report bugs to <trousers-tech@lists.sf.net>.
1081
if test "$ac_init_help" = "recursive"; then
1082
# If there are subdirs, report their specific --help.
1084
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1085
test -d $ac_dir || continue
1088
if test "$ac_dir" != .; then
1089
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1090
# A "../" for each directory in $ac_dir_suffix.
1091
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1093
ac_dir_suffix= ac_top_builddir=
1097
.) # No --srcdir option. We are building in place.
1099
if test -z "$ac_top_builddir"; then
1102
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1104
[\\/]* | ?:[\\/]* ) # Absolute path.
1105
ac_srcdir=$srcdir$ac_dir_suffix;
1106
ac_top_srcdir=$srcdir ;;
1108
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1109
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1112
# Do not use `cd foo && pwd` to compute absolute paths, because
1113
# the directories may not exist.
1115
.) ac_abs_builddir="$ac_dir";;
1118
.) ac_abs_builddir=`pwd`;;
1119
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1120
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1123
case $ac_abs_builddir in
1124
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1126
case ${ac_top_builddir}. in
1127
.) ac_abs_top_builddir=$ac_abs_builddir;;
1128
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1129
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1132
case $ac_abs_builddir in
1133
.) ac_abs_srcdir=$ac_srcdir;;
1136
.) ac_abs_srcdir=$ac_abs_builddir;;
1137
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1138
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1141
case $ac_abs_builddir in
1142
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1144
case $ac_top_srcdir in
1145
.) ac_abs_top_srcdir=$ac_abs_builddir;;
1146
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1147
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1152
# Check for guested configure; otherwise get Cygnus style configure.
1153
if test -f $ac_srcdir/configure.gnu; then
1155
$SHELL $ac_srcdir/configure.gnu --help=recursive
1156
elif test -f $ac_srcdir/configure; then
1158
$SHELL $ac_srcdir/configure --help=recursive
1159
elif test -f $ac_srcdir/configure.ac ||
1160
test -f $ac_srcdir/configure.in; then
1162
$ac_configure --help
1164
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1170
test -n "$ac_init_help" && exit 0
1171
if $ac_init_version; then
1173
trousers configure 0.2.9.1
1174
generated by GNU Autoconf 2.59
1176
Copyright (C) 2003 Free Software Foundation, Inc.
1177
This configure script is free software; the Free Software Foundation
1178
gives unlimited permission to copy, distribute and modify it.
1184
This file contains any messages produced by compilers while
1185
running configure, to aid debugging if configure makes a mistake.
1187
It was created by trousers $as_me 0.2.9.1, which was
1188
generated by GNU Autoconf 2.59. Invocation command line was
1195
@%:@@%:@ --------- @%:@@%:@
1196
@%:@@%:@ Platform. @%:@@%:@
1197
@%:@@%:@ --------- @%:@@%:@
1199
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1200
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1201
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1202
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1203
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1205
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1206
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1208
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1209
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1210
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1211
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1212
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1213
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1214
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1222
test -z "$as_dir" && as_dir=.
1223
echo "PATH: $as_dir"
1231
@%:@@%:@ ----------- @%:@@%:@
1232
@%:@@%:@ Core tests. @%:@@%:@
1233
@%:@@%:@ ----------- @%:@@%:@
1238
# Keep a trace of the command line.
1239
# Strip out --no-create and --no-recursion so they do not pile up.
1240
# Strip out --silent because we don't want to record it for future runs.
1241
# Also quote any args containing shell meta-characters.
1242
# Make two passes to allow for proper duplicate-argument suppression.
1247
ac_must_keep_next=false
1253
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1254
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1255
| -silent | --silent | --silen | --sile | --sil)
1257
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1258
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1261
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1263
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1264
if test $ac_must_keep_next = true; then
1265
ac_must_keep_next=false # Got value, back to normal.
1268
*=* | --config-cache | -C | -disable-* | --disable-* \
1269
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1270
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1271
| -with-* | --with-* | -without-* | --without-* | --x)
1272
case "$ac_configure_args0 " in
1273
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1276
-* ) ac_must_keep_next=true ;;
1279
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1280
# Get rid of the leading space.
1286
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1287
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1289
# When interrupted or exit'd, cleanup temporary files, and complete
1290
# config.log. We remove comments because anyway the quotes in there
1291
# would cause problems or look ugly.
1292
# WARNING: Be sure not to use single quotes in there, as some shells,
1293
# such as our DU 5.0 friend, will then `close' the trap.
1294
trap 'exit_status=$?
1295
# Save into config.log some information that might help in debugging.
1300
@%:@@%:@ ---------------- @%:@@%:@
1301
@%:@@%:@ Cache variables. @%:@@%:@
1302
@%:@@%:@ ---------------- @%:@@%:@
1305
# The following way of writing the cache mishandles newlines in values,
1308
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1311
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1312
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1316
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1323
@%:@@%:@ ----------------- @%:@@%:@
1324
@%:@@%:@ Output variables. @%:@@%:@
1325
@%:@@%:@ ----------------- @%:@@%:@
1328
for ac_var in $ac_subst_vars
1330
eval ac_val=$`echo $ac_var`
1331
echo "$ac_var='"'"'$ac_val'"'"'"
1335
if test -n "$ac_subst_files"; then
1337
@%:@@%:@ ------------- @%:@@%:@
1338
@%:@@%:@ Output files. @%:@@%:@
1339
@%:@@%:@ ------------- @%:@@%:@
1342
for ac_var in $ac_subst_files
1344
eval ac_val=$`echo $ac_var`
1345
echo "$ac_var='"'"'$ac_val'"'"'"
1350
if test -s confdefs.h; then
1352
@%:@@%:@ ----------- @%:@@%:@
1353
@%:@@%:@ confdefs.h. @%:@@%:@
1354
@%:@@%:@ ----------- @%:@@%:@
1357
sed "/^$/d" confdefs.h | sort
1360
test "$ac_signal" != 0 &&
1361
echo "$as_me: caught signal $ac_signal"
1362
echo "$as_me: exit $exit_status"
1364
rm -f core *.core &&
1365
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1368
for ac_signal in 1 2 13 15; do
1369
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1373
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1374
rm -rf conftest* confdefs.h
1375
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1378
# Predefined preprocessor variables.
1380
cat >>confdefs.h <<_ACEOF
1381
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1385
cat >>confdefs.h <<_ACEOF
1386
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1390
cat >>confdefs.h <<_ACEOF
1391
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1395
cat >>confdefs.h <<_ACEOF
1396
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1400
cat >>confdefs.h <<_ACEOF
1401
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1405
# Let the site file select an alternate cache file if it wants to.
1406
# Prefer explicitly selected file to automatically selected ones.
1407
if test -z "$CONFIG_SITE"; then
1408
if test "x$prefix" != xNONE; then
1409
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1411
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1414
for ac_site_file in $CONFIG_SITE; do
1415
if test -r "$ac_site_file"; then
1416
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1417
echo "$as_me: loading site script $ac_site_file" >&6;}
1418
sed 's/^/| /' "$ac_site_file" >&5
1423
if test -r "$cache_file"; then
1424
# Some versions of bash will fail to source /dev/null (special
1425
# files actually), so we avoid doing that.
1426
if test -f "$cache_file"; then
1427
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1428
echo "$as_me: loading cache $cache_file" >&6;}
1430
[\\/]* | ?:[\\/]* ) . $cache_file;;
1431
*) . ./$cache_file;;
1435
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1436
echo "$as_me: creating cache $cache_file" >&6;}
1440
# Check that the precious variables saved in the cache have kept the same
1442
ac_cache_corrupted=false
1443
for ac_var in `(set) 2>&1 |
1444
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1445
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1446
eval ac_new_set=\$ac_env_${ac_var}_set
1447
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1448
eval ac_new_val="\$ac_env_${ac_var}_value"
1449
case $ac_old_set,$ac_new_set in
1451
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1452
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1453
ac_cache_corrupted=: ;;
1455
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1456
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1457
ac_cache_corrupted=: ;;
1460
if test "x$ac_old_val" != "x$ac_new_val"; then
1461
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1462
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1463
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1464
echo "$as_me: former value: $ac_old_val" >&2;}
1465
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1466
echo "$as_me: current value: $ac_new_val" >&2;}
1467
ac_cache_corrupted=:
1470
# Pass precious variables to config.status.
1471
if test "$ac_new_set" = set; then
1473
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1474
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1475
*) ac_arg=$ac_var=$ac_new_val ;;
1477
case " $ac_configure_args " in
1478
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1479
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1483
if $ac_cache_corrupted; then
1484
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1485
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1486
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1487
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1488
{ (exit 1); exit 1; }; }
1492
ac_cpp='$CPP $CPPFLAGS'
1493
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1494
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1495
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1529
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1530
if test -f $ac_dir/install-sh; then
1532
ac_install_sh="$ac_aux_dir/install-sh -c"
1534
elif test -f $ac_dir/install.sh; then
1536
ac_install_sh="$ac_aux_dir/install.sh -c"
1538
elif test -f $ac_dir/shtool; then
1540
ac_install_sh="$ac_aux_dir/shtool install -c"
1544
if test -z "$ac_aux_dir"; then
1545
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1546
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1547
{ (exit 1); exit 1; }; }
1549
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1550
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1551
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1553
# Make sure we can run config.sub.
1554
$ac_config_sub sun4 >/dev/null 2>&1 ||
1555
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1556
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1557
{ (exit 1); exit 1; }; }
1559
echo "$as_me:$LINENO: checking build system type" >&5
1560
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1561
if test "${ac_cv_build+set}" = set; then
1562
echo $ECHO_N "(cached) $ECHO_C" >&6
1564
ac_cv_build_alias=$build_alias
1565
test -z "$ac_cv_build_alias" &&
1566
ac_cv_build_alias=`$ac_config_guess`
1567
test -z "$ac_cv_build_alias" &&
1568
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1569
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1570
{ (exit 1); exit 1; }; }
1571
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1572
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1573
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1574
{ (exit 1); exit 1; }; }
1577
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1578
echo "${ECHO_T}$ac_cv_build" >&6
1580
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1585
echo "$as_me:$LINENO: checking host system type" >&5
1586
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1587
if test "${ac_cv_host+set}" = set; then
1588
echo $ECHO_N "(cached) $ECHO_C" >&6
1590
ac_cv_host_alias=$host_alias
1591
test -z "$ac_cv_host_alias" &&
1592
ac_cv_host_alias=$ac_cv_build_alias
1593
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1594
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1595
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1596
{ (exit 1); exit 1; }; }
1599
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1600
echo "${ECHO_T}$ac_cv_host" >&6
1602
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1603
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1604
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1607
echo "$as_me:$LINENO: checking target system type" >&5
1608
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1609
if test "${ac_cv_target+set}" = set; then
1610
echo $ECHO_N "(cached) $ECHO_C" >&6
1612
ac_cv_target_alias=$target_alias
1613
test "x$ac_cv_target_alias" = "x" &&
1614
ac_cv_target_alias=$ac_cv_host_alias
1615
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1616
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1617
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1618
{ (exit 1); exit 1; }; }
1621
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1622
echo "${ECHO_T}$ac_cv_target" >&6
1623
target=$ac_cv_target
1624
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1625
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1626
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1629
# The aliases save the names the user supplied, while $host etc.
1630
# will get canonicalized.
1631
test -n "$target_alias" &&
1632
test "$program_prefix$program_suffix$program_transform_name" = \
1634
program_prefix=${target_alias}-
1635
am__api_version="1.9"
1636
# Find a good install program. We prefer a C program (faster),
1637
# so one script is as good as another. But avoid the broken or
1638
# incompatible versions:
1639
# SysV /etc/install, /usr/sbin/install
1640
# SunOS /usr/etc/install
1641
# IRIX /sbin/install
1643
# AmigaOS /C/install, which installs bootblocks on floppy discs
1644
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1645
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1646
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1647
# OS/2's system install, which has a completely different semantic
1648
# ./install, which can be erroneously created by make from ./install.sh.
1649
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1650
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1651
if test -z "$INSTALL"; then
1652
if test "${ac_cv_path_install+set}" = set; then
1653
echo $ECHO_N "(cached) $ECHO_C" >&6
1655
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659
test -z "$as_dir" && as_dir=.
1660
# Account for people who put trailing slashes in PATH elements.
1662
./ | .// | /cC/* | \
1663
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1664
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1667
# OSF1 and SCO ODT 3.0 have their own names for install.
1668
# Don't use installbsd from OSF since it installs stuff as root
1670
for ac_prog in ginstall scoinst install; do
1671
for ac_exec_ext in '' $ac_executable_extensions; do
1672
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1673
if test $ac_prog = install &&
1674
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1675
# AIX install. It has an incompatible calling convention.
1677
elif test $ac_prog = install &&
1678
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1679
# program-specific install script used by HP pwplus--don't use.
1682
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1694
if test "${ac_cv_path_install+set}" = set; then
1695
INSTALL=$ac_cv_path_install
1697
# As a last resort, use the slow shell script. We don't cache a
1698
# path for INSTALL within a source directory, because that will
1699
# break other packages using the cache if that directory is
1700
# removed, or if the path is relative.
1701
INSTALL=$ac_install_sh
1704
echo "$as_me:$LINENO: result: $INSTALL" >&5
1705
echo "${ECHO_T}$INSTALL" >&6
1707
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1708
# It thinks the first close brace ends the variable substitution.
1709
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1711
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1713
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1715
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1716
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1719
echo timestamp > conftest.file
1720
# Do `set' in a subshell so we don't clobber the current shell's
1721
# arguments. Must try -L first in case configure is actually a
1722
# symlink; some systems play weird games with the mod time of symlinks
1723
# (eg FreeBSD returns the mod time of the symlink's containing
1726
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1727
if test "$*" = "X"; then
1729
set X `ls -t $srcdir/configure conftest.file`
1732
if test "$*" != "X $srcdir/configure conftest.file" \
1733
&& test "$*" != "X conftest.file $srcdir/configure"; then
1735
# If neither matched, then we have a broken ls. This can happen
1736
# if, for instance, CONFIG_SHELL is bash and it inherits a
1737
# broken ls alias from the environment. This has actually
1738
# happened. Such a system could not be considered "sane".
1739
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1740
alias in your environment" >&5
1741
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1742
alias in your environment" >&2;}
1743
{ (exit 1); exit 1; }; }
1746
test "$2" = conftest.file
1752
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1753
Check your system clock" >&5
1754
echo "$as_me: error: newly created file is older than distributed files!
1755
Check your system clock" >&2;}
1756
{ (exit 1); exit 1; }; }
1758
echo "$as_me:$LINENO: result: yes" >&5
1759
echo "${ECHO_T}yes" >&6
1760
test "$program_prefix" != NONE &&
1761
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1762
# Use a double $ so make ignores it.
1763
test "$program_suffix" != NONE &&
1764
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1765
# Double any \ or $. echo might interpret backslashes.
1766
# By default was `s,x,x', remove it if useless.
1767
cat <<\_ACEOF >conftest.sed
1768
s/[\\$]/&&/g;s/;s,x,x,$//
1770
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1773
# expand $ac_aux_dir to an absolute path
1774
am_aux_dir=`cd $ac_aux_dir && pwd`
1776
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1777
# Use eval to expand $SHELL
1778
if eval "$MISSING --run true"; then
1779
am_missing_run="$MISSING --run "
1782
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1783
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1786
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1787
# We used to keeping the `.' as first argument, in order to
1788
# allow $(mkdir_p) to be used without argument. As in
1789
# $(mkdir_p) $(somedir)
1790
# where $(somedir) is conditionally defined. However this is wrong
1792
# 1. if the package is installed by a user who cannot write `.'
1793
# make install will fail,
1794
# 2. the above comment should most certainly read
1795
# $(mkdir_p) $(DESTDIR)$(somedir)
1796
# so it does not work when $(somedir) is undefined and
1797
# $(DESTDIR) is not.
1798
# To support the latter case, we have to write
1799
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1800
# so the `.' trick is pointless.
1801
mkdir_p='mkdir -p --'
1803
# On NextStep and OpenStep, the `mkdir' command does not
1804
# recognize any option. It will interpret all options as
1805
# directories to create, and then abort because `.' already
1807
for d in ./-p ./--version;
1809
test -d $d && rmdir $d
1811
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1812
if test -f "$ac_aux_dir/mkinstalldirs"; then
1813
mkdir_p='$(mkinstalldirs)'
1815
mkdir_p='$(install_sh) -d'
1819
for ac_prog in gawk mawk nawk awk
1821
# Extract the first word of "$ac_prog", so it can be a program name with args.
1822
set dummy $ac_prog; 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_AWK+set}" = set; then
1826
echo $ECHO_N "(cached) $ECHO_C" >&6
1828
if test -n "$AWK"; then
1829
ac_cv_prog_AWK="$AWK" # 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_AWK="$ac_prog"
1839
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1848
if test -n "$AWK"; then
1849
echo "$as_me:$LINENO: result: $AWK" >&5
1850
echo "${ECHO_T}$AWK" >&6
1852
echo "$as_me:$LINENO: result: no" >&5
1853
echo "${ECHO_T}no" >&6
1856
test -n "$AWK" && break
1859
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1860
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1861
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1862
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1863
echo $ECHO_N "(cached) $ECHO_C" >&6
1865
cat >conftest.make <<\_ACEOF
1867
@echo 'ac_maketemp="$(MAKE)"'
1869
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1870
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1871
if test -n "$ac_maketemp"; then
1872
eval ac_cv_prog_make_${ac_make}_set=yes
1874
eval ac_cv_prog_make_${ac_make}_set=no
1878
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1879
echo "$as_me:$LINENO: result: yes" >&5
1880
echo "${ECHO_T}yes" >&6
1883
echo "$as_me:$LINENO: result: no" >&5
1884
echo "${ECHO_T}no" >&6
1885
SET_MAKE="MAKE=${MAKE-make}"
1888
rm -rf .tst 2>/dev/null
1889
mkdir .tst 2>/dev/null
1890
if test -d .tst; then
1895
rmdir .tst 2>/dev/null
1897
# test to see if srcdir already configured
1898
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1899
test -f $srcdir/config.status; then
1900
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1901
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1902
{ (exit 1); exit 1; }; }
1905
# test whether we have cygpath
1906
if test -z "$CYGPATH_W"; then
1907
if (cygpath --version) >/dev/null 2>/dev/null; then
1908
CYGPATH_W='cygpath -w'
1915
# Define the identity of the package.
1920
cat >>confdefs.h <<_ACEOF
1921
@%:@define PACKAGE "$PACKAGE"
1925
cat >>confdefs.h <<_ACEOF
1926
@%:@define VERSION "$VERSION"
1929
# Some tools Automake needs.
1931
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1934
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1937
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1940
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1943
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1945
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1947
# Installed binaries are usually stripped using `strip' when the user
1948
# run `make install-strip'. However `strip' might not be the right
1949
# tool to use in cross-compilation environments, therefore Automake
1950
# will honor the `STRIP' environment variable to overrule this program.
1951
if test "$cross_compiling" != no; then
1952
if test -n "$ac_tool_prefix"; then
1953
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1954
set dummy ${ac_tool_prefix}strip; ac_word=$2
1955
echo "$as_me:$LINENO: checking for $ac_word" >&5
1956
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957
if test "${ac_cv_prog_STRIP+set}" = set; then
1958
echo $ECHO_N "(cached) $ECHO_C" >&6
1960
if test -n "$STRIP"; then
1961
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1963
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967
test -z "$as_dir" && as_dir=.
1968
for ac_exec_ext in '' $ac_executable_extensions; do
1969
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1971
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979
STRIP=$ac_cv_prog_STRIP
1980
if test -n "$STRIP"; then
1981
echo "$as_me:$LINENO: result: $STRIP" >&5
1982
echo "${ECHO_T}$STRIP" >&6
1984
echo "$as_me:$LINENO: result: no" >&5
1985
echo "${ECHO_T}no" >&6
1989
if test -z "$ac_cv_prog_STRIP"; then
1991
# Extract the first word of "strip", so it can be a program name with args.
1992
set dummy strip; ac_word=$2
1993
echo "$as_me:$LINENO: checking for $ac_word" >&5
1994
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1995
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1996
echo $ECHO_N "(cached) $ECHO_C" >&6
1998
if test -n "$ac_ct_STRIP"; then
1999
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2001
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005
test -z "$as_dir" && as_dir=.
2006
for ac_exec_ext in '' $ac_executable_extensions; do
2007
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2008
ac_cv_prog_ac_ct_STRIP="strip"
2009
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2018
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2019
if test -n "$ac_ct_STRIP"; then
2020
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2021
echo "${ECHO_T}$ac_ct_STRIP" >&6
2023
echo "$as_me:$LINENO: result: no" >&5
2024
echo "${ECHO_T}no" >&6
2029
STRIP="$ac_cv_prog_STRIP"
2033
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2035
# We need awk for the "check" target. The system "awk" is bad on
2037
# Always define AMTAR for backward compatibility.
2039
AMTAR=${AMTAR-"${am_missing_run}tar"}
2041
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2049
# Check whether --enable-debug or --disable-debug was given.
2050
if test "${enable_debug+set}" = set; then
2051
enableval="$enable_debug"
2053
echo "$as_me:$LINENO: result: *** Enabling debugging at user request ***" >&5
2054
echo "${ECHO_T}*** Enabling debugging at user request ***" >&6
2057
# If the user has not set CFLAGS, do something appropriate
2058
test_CFLAGS=${CFLAGS+set}
2059
if test "$test_CFLAGS" != set; then
2060
if test "x$enable_debug" == "xyes"; then
2061
CFLAGS="-O0 -g -DTSS_DEBUG -Wreturn-type"
2062
# CFLAGS="-O0 -g -DTSS_DEBUG -Wreturn-type -DTCSD_SINGLE_THREAD_DEBUG"
2068
# Arch specific stuff
2070
*ppc64* | *powerpc64* | *x86_64*)
2071
CFLAGS="$CFLAGS -m64"
2077
# Non-standard OpenSSL (for 64bit platforms)
2078
echo "$as_me:$LINENO: checking Non-standard OpenSSL" >&5
2079
echo $ECHO_N "checking Non-standard OpenSSL... $ECHO_C" >&6
2081
# Check whether --with-openssl or --without-openssl was given.
2082
if test "${with_openssl+set}" = set; then
2083
withval="$with_openssl"
2084
OPENSSL_INCLUDE_DIR="$withval/include"
2085
OPENSSL_LIB_DIR="$withval/lib"
2086
if [ ! -d $OPENSSL_INCLUDE_DIR -o ! -d $OPENSSL_LIB_DIR ]; then
2087
{ { echo "$as_me:$LINENO: error: $OPENSSL_INCLUDE_DIR or $OPENSSL_LIB_DIR doen't exist!" >&5
2088
echo "$as_me: error: $OPENSSL_INCLUDE_DIR or $OPENSSL_LIB_DIR doen't exist!" >&2;}
2089
{ (exit 1); exit 1; }; }
2091
echo "$as_me:$LINENO: result: yes" >&5
2092
echo "${ECHO_T}yes" >&6
2093
CFLAGS="$CFLAGS -L$OPENSSL_LIB_DIR -I$OPENSSL_INCLUDE_DIR"
2097
echo "$as_me:$LINENO: result: no" >&5
2098
echo "${ECHO_T}no" >&6
2102
# The tspi Makefile will look for trspi/crypto/@CRYPTO_PACKAGE@/crypto.c
2103
# Future crypto packages can go in their own subdir of trspi/crypto
2104
# and a check for them should be made here
2105
DEPDIR="${am__leading_dot}deps"
2107
ac_config_commands="$ac_config_commands depfiles"
2110
am_make=${MAKE-make}
2111
cat > confinc << 'END'
2116
# If we don't find an include directive, just comment out the code.
2117
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2118
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2122
# First try GNU make style include.
2123
echo "include confinc" > confmf
2124
# We grep out `Entering directory' and `Leaving directory'
2125
# messages which can occur if `w' ends up in MAKEFLAGS.
2126
# In particular we don't look at `^make:' because GNU make might
2127
# be invoked under some other name (usually "gmake"), in which
2128
# case it prints its new name instead of `make'.
2129
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2134
# Now try BSD make style include.
2135
if test "$am__include" = "#"; then
2136
echo '.include "confinc"' > confmf
2137
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2138
am__include=.include
2145
echo "$as_me:$LINENO: result: $_am_result" >&5
2146
echo "${ECHO_T}$_am_result" >&6
2147
rm -f confinc confmf
2149
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2150
if test "${enable_dependency_tracking+set}" = set; then
2151
enableval="$enable_dependency_tracking"
2154
if test "x$enable_dependency_tracking" != xno; then
2155
am_depcomp="$ac_aux_dir/depcomp"
2160
if test "x$enable_dependency_tracking" != xno; then
2171
ac_cpp='$CPP $CPPFLAGS'
2172
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2173
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2174
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2175
if test -n "$ac_tool_prefix"; then
2176
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2177
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2178
echo "$as_me:$LINENO: checking for $ac_word" >&5
2179
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2180
if test "${ac_cv_prog_CC+set}" = set; then
2181
echo $ECHO_N "(cached) $ECHO_C" >&6
2183
if test -n "$CC"; then
2184
ac_cv_prog_CC="$CC" # Let the user override the test.
2186
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190
test -z "$as_dir" && as_dir=.
2191
for ac_exec_ext in '' $ac_executable_extensions; do
2192
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2193
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2194
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203
if test -n "$CC"; then
2204
echo "$as_me:$LINENO: result: $CC" >&5
2205
echo "${ECHO_T}$CC" >&6
2207
echo "$as_me:$LINENO: result: no" >&5
2208
echo "${ECHO_T}no" >&6
2212
if test -z "$ac_cv_prog_CC"; then
2214
# Extract the first word of "gcc", so it can be a program name with args.
2215
set dummy gcc; ac_word=$2
2216
echo "$as_me:$LINENO: checking for $ac_word" >&5
2217
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2218
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2219
echo $ECHO_N "(cached) $ECHO_C" >&6
2221
if test -n "$ac_ct_CC"; then
2222
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2224
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228
test -z "$as_dir" && as_dir=.
2229
for ac_exec_ext in '' $ac_executable_extensions; do
2230
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2231
ac_cv_prog_ac_ct_CC="gcc"
2232
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2241
if test -n "$ac_ct_CC"; then
2242
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2243
echo "${ECHO_T}$ac_ct_CC" >&6
2245
echo "$as_me:$LINENO: result: no" >&5
2246
echo "${ECHO_T}no" >&6
2254
if test -z "$CC"; then
2255
if test -n "$ac_tool_prefix"; then
2256
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2257
set dummy ${ac_tool_prefix}cc; ac_word=$2
2258
echo "$as_me:$LINENO: checking for $ac_word" >&5
2259
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2260
if test "${ac_cv_prog_CC+set}" = set; then
2261
echo $ECHO_N "(cached) $ECHO_C" >&6
2263
if test -n "$CC"; then
2264
ac_cv_prog_CC="$CC" # Let the user override the test.
2266
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270
test -z "$as_dir" && as_dir=.
2271
for ac_exec_ext in '' $ac_executable_extensions; do
2272
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2273
ac_cv_prog_CC="${ac_tool_prefix}cc"
2274
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2283
if test -n "$CC"; then
2284
echo "$as_me:$LINENO: result: $CC" >&5
2285
echo "${ECHO_T}$CC" >&6
2287
echo "$as_me:$LINENO: result: no" >&5
2288
echo "${ECHO_T}no" >&6
2292
if test -z "$ac_cv_prog_CC"; then
2294
# Extract the first word of "cc", so it can be a program name with args.
2295
set dummy cc; ac_word=$2
2296
echo "$as_me:$LINENO: checking for $ac_word" >&5
2297
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2298
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2299
echo $ECHO_N "(cached) $ECHO_C" >&6
2301
if test -n "$ac_ct_CC"; then
2302
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2304
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308
test -z "$as_dir" && as_dir=.
2309
for ac_exec_ext in '' $ac_executable_extensions; do
2310
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2311
ac_cv_prog_ac_ct_CC="cc"
2312
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2320
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2321
if test -n "$ac_ct_CC"; then
2322
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2323
echo "${ECHO_T}$ac_ct_CC" >&6
2325
echo "$as_me:$LINENO: result: no" >&5
2326
echo "${ECHO_T}no" >&6
2335
if test -z "$CC"; then
2336
# Extract the first word of "cc", so it can be a program name with args.
2337
set dummy cc; ac_word=$2
2338
echo "$as_me:$LINENO: checking for $ac_word" >&5
2339
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2340
if test "${ac_cv_prog_CC+set}" = set; then
2341
echo $ECHO_N "(cached) $ECHO_C" >&6
2343
if test -n "$CC"; then
2344
ac_cv_prog_CC="$CC" # Let the user override the test.
2347
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351
test -z "$as_dir" && as_dir=.
2352
for ac_exec_ext in '' $ac_executable_extensions; do
2353
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2354
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2355
ac_prog_rejected=yes
2359
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365
if test $ac_prog_rejected = yes; then
2366
# We found a bogon in the path, so make sure we never use it.
2367
set dummy $ac_cv_prog_CC
2369
if test $@%:@ != 0; then
2370
# We chose a different compiler from the bogus one.
2371
# However, it has the same basename, so the bogon will be chosen
2372
# first if we set CC to just the basename; use the full file name.
2374
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2380
if test -n "$CC"; then
2381
echo "$as_me:$LINENO: result: $CC" >&5
2382
echo "${ECHO_T}$CC" >&6
2384
echo "$as_me:$LINENO: result: no" >&5
2385
echo "${ECHO_T}no" >&6
2389
if test -z "$CC"; then
2390
if test -n "$ac_tool_prefix"; then
2393
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2394
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2395
echo "$as_me:$LINENO: checking for $ac_word" >&5
2396
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2397
if test "${ac_cv_prog_CC+set}" = set; then
2398
echo $ECHO_N "(cached) $ECHO_C" >&6
2400
if test -n "$CC"; then
2401
ac_cv_prog_CC="$CC" # Let the user override the test.
2403
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407
test -z "$as_dir" && as_dir=.
2408
for ac_exec_ext in '' $ac_executable_extensions; do
2409
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2410
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2411
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420
if test -n "$CC"; then
2421
echo "$as_me:$LINENO: result: $CC" >&5
2422
echo "${ECHO_T}$CC" >&6
2424
echo "$as_me:$LINENO: result: no" >&5
2425
echo "${ECHO_T}no" >&6
2428
test -n "$CC" && break
2431
if test -z "$CC"; then
2435
# Extract the first word of "$ac_prog", so it can be a program name with args.
2436
set dummy $ac_prog; ac_word=$2
2437
echo "$as_me:$LINENO: checking for $ac_word" >&5
2438
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2439
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2440
echo $ECHO_N "(cached) $ECHO_C" >&6
2442
if test -n "$ac_ct_CC"; then
2443
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2445
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449
test -z "$as_dir" && as_dir=.
2450
for ac_exec_ext in '' $ac_executable_extensions; do
2451
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2452
ac_cv_prog_ac_ct_CC="$ac_prog"
2453
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2462
if test -n "$ac_ct_CC"; then
2463
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2464
echo "${ECHO_T}$ac_ct_CC" >&6
2466
echo "$as_me:$LINENO: result: no" >&5
2467
echo "${ECHO_T}no" >&6
2470
test -n "$ac_ct_CC" && break
2479
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2480
See \`config.log' for more details." >&5
2481
echo "$as_me: error: no acceptable C compiler found in \$PATH
2482
See \`config.log' for more details." >&2;}
2483
{ (exit 1); exit 1; }; }
2485
# Provide some information about the compiler.
2486
echo "$as_me:$LINENO:" \
2487
"checking for C compiler version" >&5
2488
ac_compiler=`set X $ac_compile; echo $2`
2489
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2490
(eval $ac_compiler --version </dev/null >&5) 2>&5
2492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493
(exit $ac_status); }
2494
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2495
(eval $ac_compiler -v </dev/null >&5) 2>&5
2497
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498
(exit $ac_status); }
2499
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2500
(eval $ac_compiler -V </dev/null >&5) 2>&5
2502
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503
(exit $ac_status); }
2505
cat >conftest.$ac_ext <<_ACEOF
2508
cat confdefs.h >>conftest.$ac_ext
2509
cat >>conftest.$ac_ext <<_ACEOF
2510
/* end confdefs.h. */
2520
ac_clean_files_save=$ac_clean_files
2521
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2522
# Try to create an executable without -o first, disregard a.out.
2523
# It will help us diagnose broken compilers, and finding out an intuition
2525
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2526
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2527
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2528
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2529
(eval $ac_link_default) 2>&5
2531
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532
(exit $ac_status); }; then
2533
# Find the output, starting from the most likely. This scheme is
2534
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2537
# Be careful to initialize this variable, since it used to be cached.
2538
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2540
# b.out is created by i960 compilers.
2541
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2543
test -f "$ac_file" || continue
2545
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2548
# This is the source file.
2551
# We found the default executable, but exeext='' is most
2555
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2556
# FIXME: I believe we export ac_cv_exeext for Libtool,
2557
# but it would be cool to find out if it's true. Does anybody
2558
# maintain Libtool? --akim.
2566
echo "$as_me: failed program was:" >&5
2567
sed 's/^/| /' conftest.$ac_ext >&5
2569
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2570
See \`config.log' for more details." >&5
2571
echo "$as_me: error: C compiler cannot create executables
2572
See \`config.log' for more details." >&2;}
2573
{ (exit 77); exit 77; }; }
2576
ac_exeext=$ac_cv_exeext
2577
echo "$as_me:$LINENO: result: $ac_file" >&5
2578
echo "${ECHO_T}$ac_file" >&6
2580
# Check the compiler produces executables we can run. If not, either
2581
# the compiler is broken, or we cross compile.
2582
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2583
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2584
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2585
# If not cross compiling, check that we can run a simple program.
2586
if test "$cross_compiling" != yes; then
2587
if { ac_try='./$ac_file'
2588
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592
(exit $ac_status); }; }; then
2595
if test "$cross_compiling" = maybe; then
2598
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2599
If you meant to cross compile, use \`--host'.
2600
See \`config.log' for more details." >&5
2601
echo "$as_me: error: cannot run C compiled programs.
2602
If you meant to cross compile, use \`--host'.
2603
See \`config.log' for more details." >&2;}
2604
{ (exit 1); exit 1; }; }
2608
echo "$as_me:$LINENO: result: yes" >&5
2609
echo "${ECHO_T}yes" >&6
2611
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2612
ac_clean_files=$ac_clean_files_save
2613
# Check the compiler produces executables we can run. If not, either
2614
# the compiler is broken, or we cross compile.
2615
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2616
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2617
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2618
echo "${ECHO_T}$cross_compiling" >&6
2620
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2621
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2622
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2623
(eval $ac_link) 2>&5
2625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626
(exit $ac_status); }; then
2627
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2628
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2629
# work properly (i.e., refer to `conftest.exe'), while it won't with
2631
for ac_file in conftest.exe conftest conftest.*; do
2632
test -f "$ac_file" || continue
2634
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2635
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2642
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2643
See \`config.log' for more details." >&5
2644
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2645
See \`config.log' for more details." >&2;}
2646
{ (exit 1); exit 1; }; }
2649
rm -f conftest$ac_cv_exeext
2650
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2651
echo "${ECHO_T}$ac_cv_exeext" >&6
2653
rm -f conftest.$ac_ext
2654
EXEEXT=$ac_cv_exeext
2656
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2657
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2658
if test "${ac_cv_objext+set}" = set; then
2659
echo $ECHO_N "(cached) $ECHO_C" >&6
2661
cat >conftest.$ac_ext <<_ACEOF
2664
cat confdefs.h >>conftest.$ac_ext
2665
cat >>conftest.$ac_ext <<_ACEOF
2666
/* end confdefs.h. */
2676
rm -f conftest.o conftest.obj
2677
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2678
(eval $ac_compile) 2>&5
2680
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681
(exit $ac_status); }; then
2682
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2684
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2685
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2690
echo "$as_me: failed program was:" >&5
2691
sed 's/^/| /' conftest.$ac_ext >&5
2693
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2694
See \`config.log' for more details." >&5
2695
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2696
See \`config.log' for more details." >&2;}
2697
{ (exit 1); exit 1; }; }
2700
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2702
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2703
echo "${ECHO_T}$ac_cv_objext" >&6
2704
OBJEXT=$ac_cv_objext
2706
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2707
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2708
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2709
echo $ECHO_N "(cached) $ECHO_C" >&6
2711
cat >conftest.$ac_ext <<_ACEOF
2714
cat confdefs.h >>conftest.$ac_ext
2715
cat >>conftest.$ac_ext <<_ACEOF
2716
/* end confdefs.h. */
2729
rm -f conftest.$ac_objext
2730
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731
(eval $ac_compile) 2>conftest.er1
2733
grep -v '^ *+' conftest.er1 >conftest.err
2735
cat conftest.err >&5
2736
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737
(exit $ac_status); } &&
2738
{ ac_try='test -z "$ac_c_werror_flag"
2739
|| test ! -s conftest.err'
2740
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744
(exit $ac_status); }; } &&
2745
{ ac_try='test -s conftest.$ac_objext'
2746
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750
(exit $ac_status); }; }; then
2753
echo "$as_me: failed program was:" >&5
2754
sed 's/^/| /' conftest.$ac_ext >&5
2758
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2759
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2762
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2763
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2764
GCC=`test $ac_compiler_gnu = yes && echo yes`
2765
ac_test_CFLAGS=${CFLAGS+set}
2766
ac_save_CFLAGS=$CFLAGS
2768
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2769
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2770
if test "${ac_cv_prog_cc_g+set}" = set; then
2771
echo $ECHO_N "(cached) $ECHO_C" >&6
2773
cat >conftest.$ac_ext <<_ACEOF
2776
cat confdefs.h >>conftest.$ac_ext
2777
cat >>conftest.$ac_ext <<_ACEOF
2778
/* end confdefs.h. */
2788
rm -f conftest.$ac_objext
2789
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2790
(eval $ac_compile) 2>conftest.er1
2792
grep -v '^ *+' conftest.er1 >conftest.err
2794
cat conftest.err >&5
2795
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796
(exit $ac_status); } &&
2797
{ ac_try='test -z "$ac_c_werror_flag"
2798
|| test ! -s conftest.err'
2799
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803
(exit $ac_status); }; } &&
2804
{ ac_try='test -s conftest.$ac_objext'
2805
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809
(exit $ac_status); }; }; then
2812
echo "$as_me: failed program was:" >&5
2813
sed 's/^/| /' conftest.$ac_ext >&5
2817
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2819
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2820
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2821
if test "$ac_test_CFLAGS" = set; then
2822
CFLAGS=$ac_save_CFLAGS
2823
elif test $ac_cv_prog_cc_g = yes; then
2824
if test "$GCC" = yes; then
2830
if test "$GCC" = yes; then
2836
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2837
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2838
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2839
echo $ECHO_N "(cached) $ECHO_C" >&6
2841
ac_cv_prog_cc_stdc=no
2843
cat >conftest.$ac_ext <<_ACEOF
2846
cat confdefs.h >>conftest.$ac_ext
2847
cat >>conftest.$ac_ext <<_ACEOF
2848
/* end confdefs.h. */
2851
#include <sys/types.h>
2852
#include <sys/stat.h>
2853
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2854
struct buf { int x; };
2855
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2856
static char *e (p, i)
2862
static char *f (char * (*g) (char **, int), char **p, ...)
2867
s = g (p, va_arg (v,int));
2872
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2873
function prototypes and stuff, but not '\xHH' hex character constants.
2874
These don't provoke an error unfortunately, instead are silently treated
2875
as 'x'. The following induces an error, until -std1 is added to get
2876
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2877
array size at least. It's necessary to write '\x00'==0 to get something
2878
that's true only with -std1. */
2879
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2881
int test (int i, double x);
2882
struct s1 {int (*f) (int a);};
2883
struct s2 {int (*f) (double a);};
2884
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2890
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2895
# Don't try gcc -ansi; that turns off useful extensions and
2896
# breaks some systems' header files.
2897
# AIX -qlanglvl=ansi
2898
# Ultrix and OSF/1 -std1
2899
# HP-UX 10.20 and later -Ae
2900
# HP-UX older versions -Aa -D_HPUX_SOURCE
2901
# SVR4 -Xc -D__EXTENSIONS__
2902
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2904
CC="$ac_save_CC $ac_arg"
2905
rm -f conftest.$ac_objext
2906
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2907
(eval $ac_compile) 2>conftest.er1
2909
grep -v '^ *+' conftest.er1 >conftest.err
2911
cat conftest.err >&5
2912
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913
(exit $ac_status); } &&
2914
{ ac_try='test -z "$ac_c_werror_flag"
2915
|| test ! -s conftest.err'
2916
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920
(exit $ac_status); }; } &&
2921
{ ac_try='test -s conftest.$ac_objext'
2922
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2925
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926
(exit $ac_status); }; }; then
2927
ac_cv_prog_cc_stdc=$ac_arg
2930
echo "$as_me: failed program was:" >&5
2931
sed 's/^/| /' conftest.$ac_ext >&5
2934
rm -f conftest.err conftest.$ac_objext
2936
rm -f conftest.$ac_ext conftest.$ac_objext
2941
case "x$ac_cv_prog_cc_stdc" in
2943
echo "$as_me:$LINENO: result: none needed" >&5
2944
echo "${ECHO_T}none needed" >&6 ;;
2946
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2947
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2948
CC="$CC $ac_cv_prog_cc_stdc" ;;
2951
# Some people use a C++ compiler to compile C. Since we use `exit',
2952
# in C++ we need to declare it. In case someone uses the same compiler
2953
# for both compiling C and C++ we need to have the C++ compiler decide
2954
# the declaration of exit, since it's the most demanding environment.
2955
cat >conftest.$ac_ext <<_ACEOF
2956
@%:@ifndef __cplusplus
2960
rm -f conftest.$ac_objext
2961
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2962
(eval $ac_compile) 2>conftest.er1
2964
grep -v '^ *+' conftest.er1 >conftest.err
2966
cat conftest.err >&5
2967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968
(exit $ac_status); } &&
2969
{ ac_try='test -z "$ac_c_werror_flag"
2970
|| test ! -s conftest.err'
2971
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975
(exit $ac_status); }; } &&
2976
{ ac_try='test -s conftest.$ac_objext'
2977
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2980
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981
(exit $ac_status); }; }; then
2982
for ac_declaration in \
2984
'extern "C" void std::exit (int) throw (); using std::exit;' \
2985
'extern "C" void std::exit (int); using std::exit;' \
2986
'extern "C" void exit (int) throw ();' \
2987
'extern "C" void exit (int);' \
2990
cat >conftest.$ac_ext <<_ACEOF
2993
cat confdefs.h >>conftest.$ac_ext
2994
cat >>conftest.$ac_ext <<_ACEOF
2995
/* end confdefs.h. */
2997
@%:@include <stdlib.h>
3006
rm -f conftest.$ac_objext
3007
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3008
(eval $ac_compile) 2>conftest.er1
3010
grep -v '^ *+' conftest.er1 >conftest.err
3012
cat conftest.err >&5
3013
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014
(exit $ac_status); } &&
3015
{ ac_try='test -z "$ac_c_werror_flag"
3016
|| test ! -s conftest.err'
3017
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3020
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021
(exit $ac_status); }; } &&
3022
{ ac_try='test -s conftest.$ac_objext'
3023
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027
(exit $ac_status); }; }; then
3030
echo "$as_me: failed program was:" >&5
3031
sed 's/^/| /' conftest.$ac_ext >&5
3035
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3036
cat >conftest.$ac_ext <<_ACEOF
3039
cat confdefs.h >>conftest.$ac_ext
3040
cat >>conftest.$ac_ext <<_ACEOF
3041
/* end confdefs.h. */
3051
rm -f conftest.$ac_objext
3052
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3053
(eval $ac_compile) 2>conftest.er1
3055
grep -v '^ *+' conftest.er1 >conftest.err
3057
cat conftest.err >&5
3058
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059
(exit $ac_status); } &&
3060
{ ac_try='test -z "$ac_c_werror_flag"
3061
|| test ! -s conftest.err'
3062
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3065
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066
(exit $ac_status); }; } &&
3067
{ ac_try='test -s conftest.$ac_objext'
3068
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3071
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072
(exit $ac_status); }; }; then
3075
echo "$as_me: failed program was:" >&5
3076
sed 's/^/| /' conftest.$ac_ext >&5
3079
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3082
if test -n "$ac_declaration"; then
3083
echo '#ifdef __cplusplus' >>confdefs.h
3084
echo $ac_declaration >>confdefs.h
3085
echo '#endif' >>confdefs.h
3089
echo "$as_me: failed program was:" >&5
3090
sed 's/^/| /' conftest.$ac_ext >&5
3093
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3095
ac_cpp='$CPP $CPPFLAGS'
3096
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100
depcc="$CC" am_compiler_list=
3102
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3103
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3104
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3105
echo $ECHO_N "(cached) $ECHO_C" >&6
3107
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3108
# We make a subdir and do the tests there. Otherwise we can end up
3109
# making bogus files that we don't know about and never remove. For
3110
# instance it was reported that on HP-UX the gcc test will end up
3111
# making a dummy file named `D' -- because `-MD' means `put the output
3114
# Copy depcomp to subdir because otherwise we won't find it if we're
3115
# using a relative directory.
3116
cp "$am_depcomp" conftest.dir
3118
# We will build objects and dependencies in a subdirectory because
3119
# it helps to detect inapplicable dependency modes. For instance
3120
# both Tru64's cc and ICC support -MD to output dependencies as a
3121
# side effect of compilation, but ICC will put the dependencies in
3122
# the current directory while Tru64 will put them in the object
3126
am_cv_CC_dependencies_compiler_type=none
3127
if test "$am_compiler_list" = ""; then
3128
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3130
for depmode in $am_compiler_list; do
3131
# Setup a source with many dependencies, because some compilers
3132
# like to wrap large dependency lists on column 80 (with \), and
3133
# we should not choose a depcomp mode which is confused by this.
3135
# We need to recreate these files for each test, as the compiler may
3136
# overwrite some of them when testing with obscure command lines.
3137
# This happens at least with the AIX C compiler.
3139
for i in 1 2 3 4 5 6; do
3140
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3141
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3142
# Solaris 8's {/usr,}/bin/sh.
3143
touch sub/conftst$i.h
3145
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3149
# after this tag, mechanisms are not by side-effect, so they'll
3150
# only be used when explicitly requested
3151
if test "x$enable_dependency_tracking" = xyes; then
3159
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3160
# mode. It turns out that the SunPro C++ compiler does not properly
3161
# handle `-M -o', and we need to detect this.
3162
if depmode=$depmode \
3163
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3164
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3165
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3166
>/dev/null 2>conftest.err &&
3167
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3168
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3169
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3170
# icc doesn't choke on unknown options, it will just issue warnings
3171
# or remarks (even with -Werror). So we grep stderr for any message
3172
# that says an option was ignored or not supported.
3173
# When given -MP, icc 7.0 and 7.1 complain thusly:
3174
# icc: Command line warning: ignoring option '-M'; no argument required
3175
# The diagnosis changed in icc 8.0:
3176
# icc: Command line remark: option '-MP' not supported
3177
if (grep 'ignoring option' conftest.err ||
3178
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3179
am_cv_CC_dependencies_compiler_type=$depmode
3188
am_cv_CC_dependencies_compiler_type=none
3192
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3193
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3194
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3199
test "x$enable_dependency_tracking" != xno \
3200
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3202
am__fastdepCC_FALSE='#'
3204
am__fastdepCC_TRUE='#'
3205
am__fastdepCC_FALSE=
3210
echo "$as_me:$LINENO: checking for EVP_DigestUpdate in -lcrypto" >&5
3211
echo $ECHO_N "checking for EVP_DigestUpdate in -lcrypto... $ECHO_C" >&6
3212
if test "${ac_cv_lib_crypto_EVP_DigestUpdate+set}" = set; then
3213
echo $ECHO_N "(cached) $ECHO_C" >&6
3215
ac_check_lib_save_LIBS=$LIBS
3216
LIBS="-lcrypto $LIBS"
3217
cat >conftest.$ac_ext <<_ACEOF
3220
cat confdefs.h >>conftest.$ac_ext
3221
cat >>conftest.$ac_ext <<_ACEOF
3222
/* end confdefs.h. */
3224
/* Override any gcc2 internal prototype to avoid an error. */
3228
/* We use char because int might match the return type of a gcc2
3229
builtin and then its argument prototype would still apply. */
3230
char EVP_DigestUpdate ();
3234
EVP_DigestUpdate ();
3239
rm -f conftest.$ac_objext conftest$ac_exeext
3240
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3241
(eval $ac_link) 2>conftest.er1
3243
grep -v '^ *+' conftest.er1 >conftest.err
3245
cat conftest.err >&5
3246
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247
(exit $ac_status); } &&
3248
{ ac_try='test -z "$ac_c_werror_flag"
3249
|| test ! -s conftest.err'
3250
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254
(exit $ac_status); }; } &&
3255
{ ac_try='test -s conftest$ac_exeext'
3256
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260
(exit $ac_status); }; }; then
3261
ac_cv_lib_crypto_EVP_DigestUpdate=yes
3263
echo "$as_me: failed program was:" >&5
3264
sed 's/^/| /' conftest.$ac_ext >&5
3266
ac_cv_lib_crypto_EVP_DigestUpdate=no
3268
rm -f conftest.err conftest.$ac_objext \
3269
conftest$ac_exeext conftest.$ac_ext
3270
LIBS=$ac_check_lib_save_LIBS
3272
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_EVP_DigestUpdate" >&5
3273
echo "${ECHO_T}$ac_cv_lib_crypto_EVP_DigestUpdate" >&6
3274
if test $ac_cv_lib_crypto_EVP_DigestUpdate = yes; then
3275
CRYPTO_PACKAGE='openssl'
3277
{ { echo "$as_me:$LINENO: error: openssl is currently the only supported crypto library for trousers. Please install openssl from http://www.openssl.org or the -devel package from your distro" >&5
3278
echo "$as_me: error: openssl is currently the only supported crypto library for trousers. Please install openssl from http://www.openssl.org or the -devel package from your distro" >&2;}
3279
{ (exit 1); exit 1; }; }
3284
# Check whether --enable-gcov or --disable-gcov was given.
3285
if test "${enable_gcov+set}" = set; then
3286
enableval="$enable_gcov"
3287
CFLAGS="$CFLAGS -ftest-coverage -fprofile-arcs"
3288
echo "$as_me:$LINENO: result: *** Enabling gcov at user request ***" >&5
3289
echo "${ECHO_T}*** Enabling gcov at user request ***" >&6
3293
# Check whether --enable-gprof or --disable-gprof was given.
3294
if test "${enable_gprof+set}" = set; then
3295
enableval="$enable_gprof"
3296
CFLAGS="$CFLAGS -pg"
3297
echo "$as_me:$LINENO: result: *** Enabling profiling at user request ***" >&5
3298
echo "${ECHO_T}*** Enabling profiling at user request ***" >&6
3302
# strict spec compliance
3303
# Check whether --enable-policy-copying or --disable-policy-copying was given.
3304
if test "${enable_policy_copying+set}" = set; then
3305
enableval="$enable_policy_copying"
3306
CFLAGS="$CFLAGS -DTSS_COPY_POLICY_OBJECTS"
3308
echo "$as_me:$LINENO: result: *** Enabling spec compliance at user request ***" >&5
3309
echo "${ECHO_T}*** Enabling spec compliance at user request ***" >&6
3313
# strict spec compliance
3314
# Check whether --enable-strict-spec-compliance or --disable-strict-spec-compliance was given.
3315
if test "${enable_strict_spec_compliance+set}" = set; then
3316
enableval="$enable_strict_spec_compliance"
3317
if test $COPY_POLICIES -eq 1; then { { echo "$as_me:$LINENO: error: Policy copying cannot be enabled in strict spec compliance mode" >&5
3318
echo "$as_me: error: Policy copying cannot be enabled in strict spec compliance mode" >&2;}
3319
{ (exit 1); exit 1; }; } fi
3320
CFLAGS="$CFLAGS -DTSS_SPEC_COMPLIANCE"
3322
echo "$as_me:$LINENO: result: *** Enabling spec compliance at user request ***" >&5
3323
echo "${ECHO_T}*** Enabling spec compliance at user request ***" >&6
3328
# Check whether --with-gui or --without-gui was given.
3329
if test "${with_gui+set}" = set; then
3334
if test "x$GUI" == "xgtk"; then
3335
# section imported from Glade compile
3336
pkg_modules="gtk+-2.0 >= 2.0.0"
3340
if test -z "$PKG_CONFIG"; then
3341
# Extract the first word of "pkg-config", so it can be a program name with args.
3342
set dummy pkg-config; ac_word=$2
3343
echo "$as_me:$LINENO: checking for $ac_word" >&5
3344
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3345
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3346
echo $ECHO_N "(cached) $ECHO_C" >&6
3350
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3353
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357
test -z "$as_dir" && as_dir=.
3358
for ac_exec_ext in '' $ac_executable_extensions; do
3359
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3360
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3361
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3367
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
3371
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3373
if test -n "$PKG_CONFIG"; then
3374
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3375
echo "${ECHO_T}$PKG_CONFIG" >&6
3377
echo "$as_me:$LINENO: result: no" >&5
3378
echo "${ECHO_T}no" >&6
3383
if test "$PKG_CONFIG" = "no" ; then
3384
echo "*** The pkg-config script could not be found. Make sure it is"
3385
echo "*** in your path, or set the PKG_CONFIG environment variable"
3386
echo "*** to the full path to pkg-config."
3387
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
3389
PKG_CONFIG_MIN_VERSION=0.9.0
3390
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
3391
echo "$as_me:$LINENO: checking for $pkg_modules" >&5
3392
echo $ECHO_N "checking for $pkg_modules... $ECHO_C" >&6
3394
if $PKG_CONFIG --exists "$pkg_modules" ; then
3395
echo "$as_me:$LINENO: result: yes" >&5
3396
echo "${ECHO_T}yes" >&6
3399
echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
3400
echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
3401
GTK_CFLAGS=`$PKG_CONFIG --cflags "$pkg_modules"`
3402
echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
3403
echo "${ECHO_T}$GTK_CFLAGS" >&6
3405
echo "$as_me:$LINENO: checking GTK_LIBS" >&5
3406
echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
3407
GTK_LIBS=`$PKG_CONFIG --libs "$pkg_modules"`
3408
echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
3409
echo "${ECHO_T}$GTK_LIBS" >&6
3413
## If we have a custom action on failure, don't print errors, but
3414
## do set a variable so people can do so.
3415
GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_modules"`
3422
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
3423
echo "*** See http://www.freedesktop.org/software/pkgconfig"
3427
if test $succeeded = yes; then
3449
{ { echo "$as_me:$LINENO: error: GTK libs are currently the only supported GUI library for trousers. Please install the gtk2-devel package for your distro." >&5
3450
echo "$as_me: error: GTK libs are currently the only supported GUI library for trousers. Please install the gtk2-devel package for your distro." >&2;}
3451
{ (exit 1); exit 1; }; }
3456
elif test "x$GUI" == "xnone"; then
3457
if test $SPEC_COMP -eq 1; then
3458
{ { echo "$as_me:$LINENO: error: Popups must be enabled in strict spec compliance mode" >&5
3459
echo "$as_me: error: Popups must be enabled in strict spec compliance mode" >&2;}
3460
{ (exit 1); exit 1; }; }
3462
echo "$as_me:$LINENO: result: *** Disabling GUI popups at user request ***" >&5
3463
echo "${ECHO_T}*** Disabling GUI popups at user request ***" >&6
3464
echo "$as_me:$LINENO: result: *** WARNING: This may break apps! ***" >&5
3465
echo "${ECHO_T}*** WARNING: This may break apps! ***" >&6
3466
CFLAGS="$CFLAGS -DTSS_NO_GUI"
3478
{ { echo "$as_me:$LINENO: error: \"gtk\" and \"none\" are the only supported gui options for trousers" >&5
3479
echo "$as_me: error: \"gtk\" and \"none\" are the only supported gui options for trousers" >&2;}
3480
{ (exit 1); exit 1; }; }
3483
#GETTEXT_PACKAGE=trousers
3484
#AC_SUBST(GETTEXT_PACKAGE)
3485
#AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")
3488
#AM_GLIB_GNU_GETTEXT
3493
# Check whether --enable-static or --disable-static was given.
3494
if test "${enable_static+set}" = set; then
3495
enableval="$enable_static"
3496
p=${PACKAGE-default}
3498
yes) enable_static=yes ;;
3499
no) enable_static=no ;;
3502
# Look at the argument we got. We use all the common list separators.
3503
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3504
for pkg in $enableval; do
3506
if test "X$pkg" = "X$p"; then
3519
ac_cpp='$CPP $CPPFLAGS'
3520
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3523
if test -n "$ac_tool_prefix"; then
3524
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3525
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3526
echo "$as_me:$LINENO: checking for $ac_word" >&5
3527
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3528
if test "${ac_cv_prog_CC+set}" = set; then
3529
echo $ECHO_N "(cached) $ECHO_C" >&6
3531
if test -n "$CC"; then
3532
ac_cv_prog_CC="$CC" # Let the user override the test.
3534
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538
test -z "$as_dir" && as_dir=.
3539
for ac_exec_ext in '' $ac_executable_extensions; do
3540
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3541
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3542
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3551
if test -n "$CC"; then
3552
echo "$as_me:$LINENO: result: $CC" >&5
3553
echo "${ECHO_T}$CC" >&6
3555
echo "$as_me:$LINENO: result: no" >&5
3556
echo "${ECHO_T}no" >&6
3560
if test -z "$ac_cv_prog_CC"; then
3562
# Extract the first word of "gcc", so it can be a program name with args.
3563
set dummy gcc; ac_word=$2
3564
echo "$as_me:$LINENO: checking for $ac_word" >&5
3565
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3566
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3567
echo $ECHO_N "(cached) $ECHO_C" >&6
3569
if test -n "$ac_ct_CC"; then
3570
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3572
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576
test -z "$as_dir" && as_dir=.
3577
for ac_exec_ext in '' $ac_executable_extensions; do
3578
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3579
ac_cv_prog_ac_ct_CC="gcc"
3580
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3588
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3589
if test -n "$ac_ct_CC"; then
3590
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3591
echo "${ECHO_T}$ac_ct_CC" >&6
3593
echo "$as_me:$LINENO: result: no" >&5
3594
echo "${ECHO_T}no" >&6
3602
if test -z "$CC"; then
3603
if test -n "$ac_tool_prefix"; then
3604
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3605
set dummy ${ac_tool_prefix}cc; ac_word=$2
3606
echo "$as_me:$LINENO: checking for $ac_word" >&5
3607
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3608
if test "${ac_cv_prog_CC+set}" = set; then
3609
echo $ECHO_N "(cached) $ECHO_C" >&6
3611
if test -n "$CC"; then
3612
ac_cv_prog_CC="$CC" # Let the user override the test.
3614
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618
test -z "$as_dir" && as_dir=.
3619
for ac_exec_ext in '' $ac_executable_extensions; do
3620
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3621
ac_cv_prog_CC="${ac_tool_prefix}cc"
3622
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3631
if test -n "$CC"; then
3632
echo "$as_me:$LINENO: result: $CC" >&5
3633
echo "${ECHO_T}$CC" >&6
3635
echo "$as_me:$LINENO: result: no" >&5
3636
echo "${ECHO_T}no" >&6
3640
if test -z "$ac_cv_prog_CC"; then
3642
# Extract the first word of "cc", so it can be a program name with args.
3643
set dummy cc; ac_word=$2
3644
echo "$as_me:$LINENO: checking for $ac_word" >&5
3645
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3646
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3647
echo $ECHO_N "(cached) $ECHO_C" >&6
3649
if test -n "$ac_ct_CC"; then
3650
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3652
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656
test -z "$as_dir" && as_dir=.
3657
for ac_exec_ext in '' $ac_executable_extensions; do
3658
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3659
ac_cv_prog_ac_ct_CC="cc"
3660
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3668
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3669
if test -n "$ac_ct_CC"; then
3670
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3671
echo "${ECHO_T}$ac_ct_CC" >&6
3673
echo "$as_me:$LINENO: result: no" >&5
3674
echo "${ECHO_T}no" >&6
3683
if test -z "$CC"; then
3684
# Extract the first word of "cc", so it can be a program name with args.
3685
set dummy cc; ac_word=$2
3686
echo "$as_me:$LINENO: checking for $ac_word" >&5
3687
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3688
if test "${ac_cv_prog_CC+set}" = set; then
3689
echo $ECHO_N "(cached) $ECHO_C" >&6
3691
if test -n "$CC"; then
3692
ac_cv_prog_CC="$CC" # Let the user override the test.
3695
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699
test -z "$as_dir" && as_dir=.
3700
for ac_exec_ext in '' $ac_executable_extensions; do
3701
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3702
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3703
ac_prog_rejected=yes
3707
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3713
if test $ac_prog_rejected = yes; then
3714
# We found a bogon in the path, so make sure we never use it.
3715
set dummy $ac_cv_prog_CC
3717
if test $@%:@ != 0; then
3718
# We chose a different compiler from the bogus one.
3719
# However, it has the same basename, so the bogon will be chosen
3720
# first if we set CC to just the basename; use the full file name.
3722
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3728
if test -n "$CC"; then
3729
echo "$as_me:$LINENO: result: $CC" >&5
3730
echo "${ECHO_T}$CC" >&6
3732
echo "$as_me:$LINENO: result: no" >&5
3733
echo "${ECHO_T}no" >&6
3737
if test -z "$CC"; then
3738
if test -n "$ac_tool_prefix"; then
3741
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3742
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3743
echo "$as_me:$LINENO: checking for $ac_word" >&5
3744
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3745
if test "${ac_cv_prog_CC+set}" = set; then
3746
echo $ECHO_N "(cached) $ECHO_C" >&6
3748
if test -n "$CC"; then
3749
ac_cv_prog_CC="$CC" # Let the user override the test.
3751
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755
test -z "$as_dir" && as_dir=.
3756
for ac_exec_ext in '' $ac_executable_extensions; do
3757
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3758
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3759
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3768
if test -n "$CC"; then
3769
echo "$as_me:$LINENO: result: $CC" >&5
3770
echo "${ECHO_T}$CC" >&6
3772
echo "$as_me:$LINENO: result: no" >&5
3773
echo "${ECHO_T}no" >&6
3776
test -n "$CC" && break
3779
if test -z "$CC"; then
3783
# Extract the first word of "$ac_prog", so it can be a program name with args.
3784
set dummy $ac_prog; ac_word=$2
3785
echo "$as_me:$LINENO: checking for $ac_word" >&5
3786
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3787
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3788
echo $ECHO_N "(cached) $ECHO_C" >&6
3790
if test -n "$ac_ct_CC"; then
3791
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3793
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797
test -z "$as_dir" && as_dir=.
3798
for ac_exec_ext in '' $ac_executable_extensions; do
3799
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3800
ac_cv_prog_ac_ct_CC="$ac_prog"
3801
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3809
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3810
if test -n "$ac_ct_CC"; then
3811
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3812
echo "${ECHO_T}$ac_ct_CC" >&6
3814
echo "$as_me:$LINENO: result: no" >&5
3815
echo "${ECHO_T}no" >&6
3818
test -n "$ac_ct_CC" && break
3827
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3828
See \`config.log' for more details." >&5
3829
echo "$as_me: error: no acceptable C compiler found in \$PATH
3830
See \`config.log' for more details." >&2;}
3831
{ (exit 1); exit 1; }; }
3833
# Provide some information about the compiler.
3834
echo "$as_me:$LINENO:" \
3835
"checking for C compiler version" >&5
3836
ac_compiler=`set X $ac_compile; echo $2`
3837
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3838
(eval $ac_compiler --version </dev/null >&5) 2>&5
3840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841
(exit $ac_status); }
3842
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3843
(eval $ac_compiler -v </dev/null >&5) 2>&5
3845
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846
(exit $ac_status); }
3847
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3848
(eval $ac_compiler -V </dev/null >&5) 2>&5
3850
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851
(exit $ac_status); }
3853
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3854
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3855
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3856
echo $ECHO_N "(cached) $ECHO_C" >&6
3858
cat >conftest.$ac_ext <<_ACEOF
3861
cat confdefs.h >>conftest.$ac_ext
3862
cat >>conftest.$ac_ext <<_ACEOF
3863
/* end confdefs.h. */
3876
rm -f conftest.$ac_objext
3877
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3878
(eval $ac_compile) 2>conftest.er1
3880
grep -v '^ *+' conftest.er1 >conftest.err
3882
cat conftest.err >&5
3883
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884
(exit $ac_status); } &&
3885
{ ac_try='test -z "$ac_c_werror_flag"
3886
|| test ! -s conftest.err'
3887
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891
(exit $ac_status); }; } &&
3892
{ ac_try='test -s conftest.$ac_objext'
3893
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897
(exit $ac_status); }; }; then
3900
echo "$as_me: failed program was:" >&5
3901
sed 's/^/| /' conftest.$ac_ext >&5
3905
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3906
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3909
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3910
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3911
GCC=`test $ac_compiler_gnu = yes && echo yes`
3912
ac_test_CFLAGS=${CFLAGS+set}
3913
ac_save_CFLAGS=$CFLAGS
3915
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3916
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3917
if test "${ac_cv_prog_cc_g+set}" = set; then
3918
echo $ECHO_N "(cached) $ECHO_C" >&6
3920
cat >conftest.$ac_ext <<_ACEOF
3923
cat confdefs.h >>conftest.$ac_ext
3924
cat >>conftest.$ac_ext <<_ACEOF
3925
/* end confdefs.h. */
3935
rm -f conftest.$ac_objext
3936
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3937
(eval $ac_compile) 2>conftest.er1
3939
grep -v '^ *+' conftest.er1 >conftest.err
3941
cat conftest.err >&5
3942
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943
(exit $ac_status); } &&
3944
{ ac_try='test -z "$ac_c_werror_flag"
3945
|| test ! -s conftest.err'
3946
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950
(exit $ac_status); }; } &&
3951
{ ac_try='test -s conftest.$ac_objext'
3952
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3955
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956
(exit $ac_status); }; }; then
3959
echo "$as_me: failed program was:" >&5
3960
sed 's/^/| /' conftest.$ac_ext >&5
3964
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3966
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3967
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3968
if test "$ac_test_CFLAGS" = set; then
3969
CFLAGS=$ac_save_CFLAGS
3970
elif test $ac_cv_prog_cc_g = yes; then
3971
if test "$GCC" = yes; then
3977
if test "$GCC" = yes; then
3983
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3984
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3985
if test "${ac_cv_prog_cc_stdc+set}" = set; then
3986
echo $ECHO_N "(cached) $ECHO_C" >&6
3988
ac_cv_prog_cc_stdc=no
3990
cat >conftest.$ac_ext <<_ACEOF
3993
cat confdefs.h >>conftest.$ac_ext
3994
cat >>conftest.$ac_ext <<_ACEOF
3995
/* end confdefs.h. */
3998
#include <sys/types.h>
3999
#include <sys/stat.h>
4000
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4001
struct buf { int x; };
4002
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4003
static char *e (p, i)
4009
static char *f (char * (*g) (char **, int), char **p, ...)
4014
s = g (p, va_arg (v,int));
4019
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4020
function prototypes and stuff, but not '\xHH' hex character constants.
4021
These don't provoke an error unfortunately, instead are silently treated
4022
as 'x'. The following induces an error, until -std1 is added to get
4023
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4024
array size at least. It's necessary to write '\x00'==0 to get something
4025
that's true only with -std1. */
4026
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4028
int test (int i, double x);
4029
struct s1 {int (*f) (int a);};
4030
struct s2 {int (*f) (double a);};
4031
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4037
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4042
# Don't try gcc -ansi; that turns off useful extensions and
4043
# breaks some systems' header files.
4044
# AIX -qlanglvl=ansi
4045
# Ultrix and OSF/1 -std1
4046
# HP-UX 10.20 and later -Ae
4047
# HP-UX older versions -Aa -D_HPUX_SOURCE
4048
# SVR4 -Xc -D__EXTENSIONS__
4049
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4051
CC="$ac_save_CC $ac_arg"
4052
rm -f conftest.$ac_objext
4053
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4054
(eval $ac_compile) 2>conftest.er1
4056
grep -v '^ *+' conftest.er1 >conftest.err
4058
cat conftest.err >&5
4059
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060
(exit $ac_status); } &&
4061
{ ac_try='test -z "$ac_c_werror_flag"
4062
|| test ! -s conftest.err'
4063
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067
(exit $ac_status); }; } &&
4068
{ ac_try='test -s conftest.$ac_objext'
4069
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073
(exit $ac_status); }; }; then
4074
ac_cv_prog_cc_stdc=$ac_arg
4077
echo "$as_me: failed program was:" >&5
4078
sed 's/^/| /' conftest.$ac_ext >&5
4081
rm -f conftest.err conftest.$ac_objext
4083
rm -f conftest.$ac_ext conftest.$ac_objext
4088
case "x$ac_cv_prog_cc_stdc" in
4090
echo "$as_me:$LINENO: result: none needed" >&5
4091
echo "${ECHO_T}none needed" >&6 ;;
4093
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4094
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4095
CC="$CC $ac_cv_prog_cc_stdc" ;;
4098
# Some people use a C++ compiler to compile C. Since we use `exit',
4099
# in C++ we need to declare it. In case someone uses the same compiler
4100
# for both compiling C and C++ we need to have the C++ compiler decide
4101
# the declaration of exit, since it's the most demanding environment.
4102
cat >conftest.$ac_ext <<_ACEOF
4103
@%:@ifndef __cplusplus
4107
rm -f conftest.$ac_objext
4108
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4109
(eval $ac_compile) 2>conftest.er1
4111
grep -v '^ *+' conftest.er1 >conftest.err
4113
cat conftest.err >&5
4114
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115
(exit $ac_status); } &&
4116
{ ac_try='test -z "$ac_c_werror_flag"
4117
|| test ! -s conftest.err'
4118
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122
(exit $ac_status); }; } &&
4123
{ ac_try='test -s conftest.$ac_objext'
4124
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128
(exit $ac_status); }; }; then
4129
for ac_declaration in \
4131
'extern "C" void std::exit (int) throw (); using std::exit;' \
4132
'extern "C" void std::exit (int); using std::exit;' \
4133
'extern "C" void exit (int) throw ();' \
4134
'extern "C" void exit (int);' \
4137
cat >conftest.$ac_ext <<_ACEOF
4140
cat confdefs.h >>conftest.$ac_ext
4141
cat >>conftest.$ac_ext <<_ACEOF
4142
/* end confdefs.h. */
4144
@%:@include <stdlib.h>
4153
rm -f conftest.$ac_objext
4154
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4155
(eval $ac_compile) 2>conftest.er1
4157
grep -v '^ *+' conftest.er1 >conftest.err
4159
cat conftest.err >&5
4160
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161
(exit $ac_status); } &&
4162
{ ac_try='test -z "$ac_c_werror_flag"
4163
|| test ! -s conftest.err'
4164
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168
(exit $ac_status); }; } &&
4169
{ ac_try='test -s conftest.$ac_objext'
4170
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174
(exit $ac_status); }; }; then
4177
echo "$as_me: failed program was:" >&5
4178
sed 's/^/| /' conftest.$ac_ext >&5
4182
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4183
cat >conftest.$ac_ext <<_ACEOF
4186
cat confdefs.h >>conftest.$ac_ext
4187
cat >>conftest.$ac_ext <<_ACEOF
4188
/* end confdefs.h. */
4198
rm -f conftest.$ac_objext
4199
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4200
(eval $ac_compile) 2>conftest.er1
4202
grep -v '^ *+' conftest.er1 >conftest.err
4204
cat conftest.err >&5
4205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206
(exit $ac_status); } &&
4207
{ ac_try='test -z "$ac_c_werror_flag"
4208
|| test ! -s conftest.err'
4209
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213
(exit $ac_status); }; } &&
4214
{ ac_try='test -s conftest.$ac_objext'
4215
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219
(exit $ac_status); }; }; then
4222
echo "$as_me: failed program was:" >&5
4223
sed 's/^/| /' conftest.$ac_ext >&5
4226
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4229
if test -n "$ac_declaration"; then
4230
echo '#ifdef __cplusplus' >>confdefs.h
4231
echo $ac_declaration >>confdefs.h
4232
echo '#endif' >>confdefs.h
4236
echo "$as_me: failed program was:" >&5
4237
sed 's/^/| /' conftest.$ac_ext >&5
4240
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4242
ac_cpp='$CPP $CPPFLAGS'
4243
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4244
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4245
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4247
depcc="$CC" am_compiler_list=
4249
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4250
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4251
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4252
echo $ECHO_N "(cached) $ECHO_C" >&6
4254
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4255
# We make a subdir and do the tests there. Otherwise we can end up
4256
# making bogus files that we don't know about and never remove. For
4257
# instance it was reported that on HP-UX the gcc test will end up
4258
# making a dummy file named `D' -- because `-MD' means `put the output
4261
# Copy depcomp to subdir because otherwise we won't find it if we're
4262
# using a relative directory.
4263
cp "$am_depcomp" conftest.dir
4265
# We will build objects and dependencies in a subdirectory because
4266
# it helps to detect inapplicable dependency modes. For instance
4267
# both Tru64's cc and ICC support -MD to output dependencies as a
4268
# side effect of compilation, but ICC will put the dependencies in
4269
# the current directory while Tru64 will put them in the object
4273
am_cv_CC_dependencies_compiler_type=none
4274
if test "$am_compiler_list" = ""; then
4275
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4277
for depmode in $am_compiler_list; do
4278
# Setup a source with many dependencies, because some compilers
4279
# like to wrap large dependency lists on column 80 (with \), and
4280
# we should not choose a depcomp mode which is confused by this.
4282
# We need to recreate these files for each test, as the compiler may
4283
# overwrite some of them when testing with obscure command lines.
4284
# This happens at least with the AIX C compiler.
4286
for i in 1 2 3 4 5 6; do
4287
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4288
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4289
# Solaris 8's {/usr,}/bin/sh.
4290
touch sub/conftst$i.h
4292
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4296
# after this tag, mechanisms are not by side-effect, so they'll
4297
# only be used when explicitly requested
4298
if test "x$enable_dependency_tracking" = xyes; then
4306
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4307
# mode. It turns out that the SunPro C++ compiler does not properly
4308
# handle `-M -o', and we need to detect this.
4309
if depmode=$depmode \
4310
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4311
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4312
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4313
>/dev/null 2>conftest.err &&
4314
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4315
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4316
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4317
# icc doesn't choke on unknown options, it will just issue warnings
4318
# or remarks (even with -Werror). So we grep stderr for any message
4319
# that says an option was ignored or not supported.
4320
# When given -MP, icc 7.0 and 7.1 complain thusly:
4321
# icc: Command line warning: ignoring option '-M'; no argument required
4322
# The diagnosis changed in icc 8.0:
4323
# icc: Command line remark: option '-MP' not supported
4324
if (grep 'ignoring option' conftest.err ||
4325
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4326
am_cv_CC_dependencies_compiler_type=$depmode
4335
am_cv_CC_dependencies_compiler_type=none
4339
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4340
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4341
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4346
test "x$enable_dependency_tracking" != xno \
4347
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4349
am__fastdepCC_FALSE='#'
4351
am__fastdepCC_TRUE='#'
4352
am__fastdepCC_FALSE=
4356
# Check whether --enable-shared or --disable-shared was given.
4357
if test "${enable_shared+set}" = set; then
4358
enableval="$enable_shared"
4359
p=${PACKAGE-default}
4361
yes) enable_shared=yes ;;
4362
no) enable_shared=no ;;
4365
# Look at the argument we got. We use all the common list separators.
4366
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4367
for pkg in $enableval; do
4369
if test "X$pkg" = "X$p"; then
4380
# Check whether --enable-fast-install or --disable-fast-install was given.
4381
if test "${enable_fast_install+set}" = set; then
4382
enableval="$enable_fast_install"
4383
p=${PACKAGE-default}
4385
yes) enable_fast_install=yes ;;
4386
no) enable_fast_install=no ;;
4388
enable_fast_install=no
4389
# Look at the argument we got. We use all the common list separators.
4390
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4391
for pkg in $enableval; do
4393
if test "X$pkg" = "X$p"; then
4394
enable_fast_install=yes
4401
enable_fast_install=yes
4404
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4405
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4406
if test "${lt_cv_path_SED+set}" = set; then
4407
echo $ECHO_N "(cached) $ECHO_C" >&6
4409
# Loop through the user's path and test for sed and gsed.
4410
# Then use that list of sed's as ones to test for truncation.
4411
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415
test -z "$as_dir" && as_dir=.
4416
for lt_ac_prog in sed gsed; do
4417
for ac_exec_ext in '' $ac_executable_extensions; do
4418
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4419
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4426
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4427
# along with /bin/sed that truncates output.
4428
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4429
test ! -f $lt_ac_sed && continue
4430
cat /dev/null > conftest.in
4432
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4433
# Check for GNU sed and select it if it is found.
4434
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4435
lt_cv_path_SED=$lt_ac_sed
4439
cat conftest.in conftest.in >conftest.tmp
4440
mv conftest.tmp conftest.in
4441
cp conftest.in conftest.nl
4443
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4444
cmp -s conftest.out conftest.nl || break
4445
# 10000 chars as input seems more than enough
4446
test $lt_ac_count -gt 10 && break
4447
lt_ac_count=`expr $lt_ac_count + 1`
4448
if test $lt_ac_count -gt $lt_ac_max; then
4449
lt_ac_max=$lt_ac_count
4450
lt_cv_path_SED=$lt_ac_sed
4458
echo "$as_me:$LINENO: result: $SED" >&5
4459
echo "${ECHO_T}$SED" >&6
4461
echo "$as_me:$LINENO: checking for egrep" >&5
4462
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4463
if test "${ac_cv_prog_egrep+set}" = set; then
4464
echo $ECHO_N "(cached) $ECHO_C" >&6
4466
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4467
then ac_cv_prog_egrep='grep -E'
4468
else ac_cv_prog_egrep='egrep'
4471
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4472
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4473
EGREP=$ac_cv_prog_egrep
4477
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4478
if test "${with_gnu_ld+set}" = set; then
4479
withval="$with_gnu_ld"
4480
test "$withval" = no || with_gnu_ld=yes
4485
if test "$GCC" = yes; then
4486
# Check if gcc -print-prog-name=ld gives a path.
4487
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4488
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4491
# gcc leaves a trailing carriage return which upsets mingw
4492
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4494
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4497
# Accept absolute paths.
4499
re_direlt='/[^/][^/]*/\.\./'
4500
# Canonicalize the pathname of ld
4501
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4502
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4503
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4505
test -z "$LD" && LD="$ac_prog"
4508
# If it fails, then pretend we aren't using GCC.
4512
# If it is relative, then search for the first ld in PATH.
4516
elif test "$with_gnu_ld" = yes; then
4517
echo "$as_me:$LINENO: checking for GNU ld" >&5
4518
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4520
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4521
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4523
if test "${lt_cv_path_LD+set}" = set; then
4524
echo $ECHO_N "(cached) $ECHO_C" >&6
4526
if test -z "$LD"; then
4527
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4528
for ac_dir in $PATH; do
4530
test -z "$ac_dir" && ac_dir=.
4531
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4532
lt_cv_path_LD="$ac_dir/$ac_prog"
4533
# Check to see if the program is GNU ld. I'd rather use --version,
4534
# but apparently some GNU ld's only accept -v.
4535
# Break only if it was the GNU/non-GNU ld that we prefer.
4536
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4537
*GNU* | *'with BFD'*)
4538
test "$with_gnu_ld" != no && break
4541
test "$with_gnu_ld" != yes && break
4548
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4553
if test -n "$LD"; then
4554
echo "$as_me:$LINENO: result: $LD" >&5
4555
echo "${ECHO_T}$LD" >&6
4557
echo "$as_me:$LINENO: result: no" >&5
4558
echo "${ECHO_T}no" >&6
4560
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4561
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4562
{ (exit 1); exit 1; }; }
4563
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4564
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4565
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4566
echo $ECHO_N "(cached) $ECHO_C" >&6
4568
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
4569
case `$LD -v 2>&1 </dev/null` in
4570
*GNU* | *'with BFD'*)
4571
lt_cv_prog_gnu_ld=yes
4574
lt_cv_prog_gnu_ld=no
4578
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4579
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4580
with_gnu_ld=$lt_cv_prog_gnu_ld
4583
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4584
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4585
if test "${lt_cv_ld_reload_flag+set}" = set; then
4586
echo $ECHO_N "(cached) $ECHO_C" >&6
4588
lt_cv_ld_reload_flag='-r'
4590
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4591
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4592
reload_flag=$lt_cv_ld_reload_flag
4593
case $reload_flag in
4595
*) reload_flag=" $reload_flag" ;;
4597
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4600
if test "$GCC" = yes; then
4601
reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4603
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4608
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4609
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4610
if test "${lt_cv_path_NM+set}" = set; then
4611
echo $ECHO_N "(cached) $ECHO_C" >&6
4613
if test -n "$NM"; then
4614
# Let the user override the test.
4617
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4618
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4620
test -z "$ac_dir" && ac_dir=.
4621
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4622
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4623
# Check to see if the nm accepts a BSD-compat flag.
4624
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4625
# nm: unknown option "B" ignored
4626
# Tru64's nm complains that /dev/null is an invalid object file
4627
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4628
*/dev/null* | *'Invalid file or object type'*)
4629
lt_cv_path_NM="$tmp_nm -B"
4633
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4635
lt_cv_path_NM="$tmp_nm -p"
4639
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4640
continue # so that we can try to find one that supports BSD flags
4647
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4650
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4651
echo "${ECHO_T}$lt_cv_path_NM" >&6
4654
echo "$as_me:$LINENO: checking whether ln -s works" >&5
4655
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4657
if test "$LN_S" = "ln -s"; then
4658
echo "$as_me:$LINENO: result: yes" >&5
4659
echo "${ECHO_T}yes" >&6
4661
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4662
echo "${ECHO_T}no, using $LN_S" >&6
4665
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4666
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4667
if test "${lt_cv_deplibs_check_method+set}" = set; then
4668
echo $ECHO_N "(cached) $ECHO_C" >&6
4670
lt_cv_file_magic_cmd='$MAGIC_CMD'
4671
lt_cv_file_magic_test_file=
4672
lt_cv_deplibs_check_method='unknown'
4673
# Need to set the preceding variable on all platforms that support
4674
# interlibrary dependencies.
4675
# 'none' -- dependencies not supported.
4676
# `unknown' -- same as none, but documents that we really don't know.
4677
# 'pass_all' -- all dependencies passed with no checks.
4678
# 'test_compile' -- check by making test program.
4679
# 'file_magic [[regex]]' -- check by looking for files in library path
4680
# which responds to the $file_magic_cmd with a given extended regex.
4681
# If you have `file' or equivalent on your system and you're not sure
4682
# whether `pass_all' will *always* work, you probably want this one.
4686
lt_cv_deplibs_check_method=pass_all
4690
lt_cv_deplibs_check_method=pass_all
4694
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4695
lt_cv_file_magic_cmd='/usr/bin/file -L'
4696
lt_cv_file_magic_test_file=/shlib/libc.so
4700
# func_win32_libid is a shell function defined in ltmain.sh
4701
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4702
lt_cv_file_magic_cmd='func_win32_libid'
4706
# Base MSYS/MinGW do not provide the 'file' command needed by
4707
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
4708
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4709
lt_cv_file_magic_cmd='$OBJDUMP -f'
4712
darwin* | rhapsody*)
4713
lt_cv_deplibs_check_method=pass_all
4716
freebsd* | kfreebsd*-gnu | dragonfly*)
4717
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4720
# Not sure whether the presence of OpenBSD here was a mistake.
4721
# Let's accept both of them until this is cleared up.
4722
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4723
lt_cv_file_magic_cmd=/usr/bin/file
4724
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4728
lt_cv_deplibs_check_method=pass_all
4733
lt_cv_deplibs_check_method=pass_all
4736
hpux10.20* | hpux11*)
4737
lt_cv_file_magic_cmd=/usr/bin/file
4740
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4741
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4744
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]'
4745
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4748
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4749
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4754
irix5* | irix6* | nonstopux*)
4756
*-32|*"-32 ") libmagic=32-bit;;
4757
*-n32|*"-n32 ") libmagic=N32;;
4758
*-64|*"-64 ") libmagic=64-bit;;
4759
*) libmagic=never-match;;
4761
lt_cv_deplibs_check_method=pass_all
4764
# This must be Linux ELF.
4766
lt_cv_deplibs_check_method=pass_all
4770
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4771
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4773
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4778
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4779
lt_cv_file_magic_cmd=/usr/bin/file
4780
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4784
lt_cv_deplibs_check_method=unknown
4788
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4789
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4791
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4795
osf3* | osf4* | osf5*)
4796
lt_cv_deplibs_check_method=pass_all
4800
lt_cv_deplibs_check_method=pass_all
4804
lt_cv_deplibs_check_method=pass_all
4807
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4808
case $host_vendor in
4810
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]'
4811
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4814
lt_cv_deplibs_check_method=pass_all
4817
lt_cv_file_magic_cmd='/bin/file'
4818
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4821
lt_cv_file_magic_cmd='/bin/file'
4822
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4823
lt_cv_file_magic_test_file=/lib/libc.so
4826
lt_cv_deplibs_check_method=pass_all
4831
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4832
lt_cv_deplibs_check_method=pass_all
4837
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4838
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4839
file_magic_cmd=$lt_cv_file_magic_cmd
4840
deplibs_check_method=$lt_cv_deplibs_check_method
4841
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4846
# If no C compiler was specified, use CC.
4849
# Allow CC to be a program name with arguments.
4852
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4853
if test "${enable_libtool_lock+set}" = set; then
4854
enableval="$enable_libtool_lock"
4857
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4859
# Some flags need to be propagated to the compiler or linker for good
4863
# Find out which ABI we are using.
4864
echo 'int i;' > conftest.$ac_ext
4865
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4866
(eval $ac_compile) 2>&5
4868
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869
(exit $ac_status); }; then
4870
case `/usr/bin/file conftest.$ac_objext` in
4882
# Find out which ABI we are using.
4883
echo '#line __oline__ "configure"' > conftest.$ac_ext
4884
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4885
(eval $ac_compile) 2>&5
4887
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888
(exit $ac_status); }; then
4889
if test "$lt_cv_prog_gnu_ld" = yes; then
4890
case `/usr/bin/file conftest.$ac_objext` in
4892
LD="${LD-ld} -melf32bsmip"
4895
LD="${LD-ld} -melf32bmipn32"
4898
LD="${LD-ld} -melf64bmip"
4902
case `/usr/bin/file conftest.$ac_objext` in
4918
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4919
# Find out which ABI we are using.
4920
echo 'int i;' > conftest.$ac_ext
4921
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4922
(eval $ac_compile) 2>&5
4924
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925
(exit $ac_status); }; then
4926
case "`/usr/bin/file conftest.o`" in
4930
LD="${LD-ld} -m elf_i386"
4932
ppc64-*linux*|powerpc64-*linux*)
4933
LD="${LD-ld} -m elf32ppclinux"
4936
LD="${LD-ld} -m elf_s390"
4939
LD="${LD-ld} -m elf32_sparc"
4946
LD="${LD-ld} -m elf_x86_64"
4948
ppc*-*linux*|powerpc*-*linux*)
4949
LD="${LD-ld} -m elf64ppc"
4952
LD="${LD-ld} -m elf64_s390"
4955
LD="${LD-ld} -m elf64_sparc"
4965
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4966
SAVE_CFLAGS="$CFLAGS"
4967
CFLAGS="$CFLAGS -belf"
4968
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4969
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4970
if test "${lt_cv_cc_needs_belf+set}" = set; then
4971
echo $ECHO_N "(cached) $ECHO_C" >&6
4974
ac_cpp='$CPP $CPPFLAGS'
4975
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4976
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4977
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4979
cat >conftest.$ac_ext <<_ACEOF
4982
cat confdefs.h >>conftest.$ac_ext
4983
cat >>conftest.$ac_ext <<_ACEOF
4984
/* end confdefs.h. */
4994
rm -f conftest.$ac_objext conftest$ac_exeext
4995
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4996
(eval $ac_link) 2>conftest.er1
4998
grep -v '^ *+' conftest.er1 >conftest.err
5000
cat conftest.err >&5
5001
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002
(exit $ac_status); } &&
5003
{ ac_try='test -z "$ac_c_werror_flag"
5004
|| test ! -s conftest.err'
5005
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5008
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009
(exit $ac_status); }; } &&
5010
{ ac_try='test -s conftest$ac_exeext'
5011
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015
(exit $ac_status); }; }; then
5016
lt_cv_cc_needs_belf=yes
5018
echo "$as_me: failed program was:" >&5
5019
sed 's/^/| /' conftest.$ac_ext >&5
5021
lt_cv_cc_needs_belf=no
5023
rm -f conftest.err conftest.$ac_objext \
5024
conftest$ac_exeext conftest.$ac_ext
5026
ac_cpp='$CPP $CPPFLAGS'
5027
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5028
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5029
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5032
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5033
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5034
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5035
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5036
CFLAGS="$SAVE_CFLAGS"
5042
need_locks="$enable_libtool_lock"
5046
ac_cpp='$CPP $CPPFLAGS'
5047
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5048
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5049
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5050
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5051
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5052
# On Suns, sometimes $CPP names a directory.
5053
if test -n "$CPP" && test -d "$CPP"; then
5056
if test -z "$CPP"; then
5057
if test "${ac_cv_prog_CPP+set}" = set; then
5058
echo $ECHO_N "(cached) $ECHO_C" >&6
5060
# Double quotes because CPP needs to be expanded
5061
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5064
for ac_c_preproc_warn_flag in '' yes
5066
# Use a header file that comes with gcc, so configuring glibc
5067
# with a fresh cross-compiler works.
5068
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5069
# <limits.h> exists even on freestanding compilers.
5070
# On the NeXT, cc -E runs the code through the compiler's parser,
5071
# not just through cpp. "Syntax error" is here to catch this case.
5072
cat >conftest.$ac_ext <<_ACEOF
5075
cat confdefs.h >>conftest.$ac_ext
5076
cat >>conftest.$ac_ext <<_ACEOF
5077
/* end confdefs.h. */
5079
@%:@ include <limits.h>
5081
@%:@ include <assert.h>
5085
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5086
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5088
grep -v '^ *+' conftest.er1 >conftest.err
5090
cat conftest.err >&5
5091
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092
(exit $ac_status); } >/dev/null; then
5093
if test -s conftest.err; then
5094
ac_cpp_err=$ac_c_preproc_warn_flag
5095
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5102
if test -z "$ac_cpp_err"; then
5105
echo "$as_me: failed program was:" >&5
5106
sed 's/^/| /' conftest.$ac_ext >&5
5108
# Broken: fails on valid input.
5111
rm -f conftest.err conftest.$ac_ext
5113
# OK, works on sane cases. Now check whether non-existent headers
5114
# can be detected and how.
5115
cat >conftest.$ac_ext <<_ACEOF
5118
cat confdefs.h >>conftest.$ac_ext
5119
cat >>conftest.$ac_ext <<_ACEOF
5120
/* end confdefs.h. */
5121
@%:@include <ac_nonexistent.h>
5123
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5124
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5126
grep -v '^ *+' conftest.er1 >conftest.err
5128
cat conftest.err >&5
5129
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130
(exit $ac_status); } >/dev/null; then
5131
if test -s conftest.err; then
5132
ac_cpp_err=$ac_c_preproc_warn_flag
5133
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5140
if test -z "$ac_cpp_err"; then
5141
# Broken: success on invalid input.
5144
echo "$as_me: failed program was:" >&5
5145
sed 's/^/| /' conftest.$ac_ext >&5
5147
# Passes both tests.
5151
rm -f conftest.err conftest.$ac_ext
5154
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5155
rm -f conftest.err conftest.$ac_ext
5156
if $ac_preproc_ok; then
5168
echo "$as_me:$LINENO: result: $CPP" >&5
5169
echo "${ECHO_T}$CPP" >&6
5171
for ac_c_preproc_warn_flag in '' yes
5173
# Use a header file that comes with gcc, so configuring glibc
5174
# with a fresh cross-compiler works.
5175
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5176
# <limits.h> exists even on freestanding compilers.
5177
# On the NeXT, cc -E runs the code through the compiler's parser,
5178
# not just through cpp. "Syntax error" is here to catch this case.
5179
cat >conftest.$ac_ext <<_ACEOF
5182
cat confdefs.h >>conftest.$ac_ext
5183
cat >>conftest.$ac_ext <<_ACEOF
5184
/* end confdefs.h. */
5186
@%:@ include <limits.h>
5188
@%:@ include <assert.h>
5192
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5193
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5195
grep -v '^ *+' conftest.er1 >conftest.err
5197
cat conftest.err >&5
5198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199
(exit $ac_status); } >/dev/null; then
5200
if test -s conftest.err; then
5201
ac_cpp_err=$ac_c_preproc_warn_flag
5202
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5209
if test -z "$ac_cpp_err"; then
5212
echo "$as_me: failed program was:" >&5
5213
sed 's/^/| /' conftest.$ac_ext >&5
5215
# Broken: fails on valid input.
5218
rm -f conftest.err conftest.$ac_ext
5220
# OK, works on sane cases. Now check whether non-existent headers
5221
# can be detected and how.
5222
cat >conftest.$ac_ext <<_ACEOF
5225
cat confdefs.h >>conftest.$ac_ext
5226
cat >>conftest.$ac_ext <<_ACEOF
5227
/* end confdefs.h. */
5228
@%:@include <ac_nonexistent.h>
5230
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5231
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5233
grep -v '^ *+' conftest.er1 >conftest.err
5235
cat conftest.err >&5
5236
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237
(exit $ac_status); } >/dev/null; then
5238
if test -s conftest.err; then
5239
ac_cpp_err=$ac_c_preproc_warn_flag
5240
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5247
if test -z "$ac_cpp_err"; then
5248
# Broken: success on invalid input.
5251
echo "$as_me: failed program was:" >&5
5252
sed 's/^/| /' conftest.$ac_ext >&5
5254
# Passes both tests.
5258
rm -f conftest.err conftest.$ac_ext
5261
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5262
rm -f conftest.err conftest.$ac_ext
5263
if $ac_preproc_ok; then
5266
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5267
See \`config.log' for more details." >&5
5268
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5269
See \`config.log' for more details." >&2;}
5270
{ (exit 1); exit 1; }; }
5274
ac_cpp='$CPP $CPPFLAGS'
5275
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5276
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5277
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5280
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5281
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5282
if test "${ac_cv_header_stdc+set}" = set; then
5283
echo $ECHO_N "(cached) $ECHO_C" >&6
5285
cat >conftest.$ac_ext <<_ACEOF
5288
cat confdefs.h >>conftest.$ac_ext
5289
cat >>conftest.$ac_ext <<_ACEOF
5290
/* end confdefs.h. */
5304
rm -f conftest.$ac_objext
5305
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5306
(eval $ac_compile) 2>conftest.er1
5308
grep -v '^ *+' conftest.er1 >conftest.err
5310
cat conftest.err >&5
5311
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312
(exit $ac_status); } &&
5313
{ ac_try='test -z "$ac_c_werror_flag"
5314
|| test ! -s conftest.err'
5315
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319
(exit $ac_status); }; } &&
5320
{ ac_try='test -s conftest.$ac_objext'
5321
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325
(exit $ac_status); }; }; then
5326
ac_cv_header_stdc=yes
5328
echo "$as_me: failed program was:" >&5
5329
sed 's/^/| /' conftest.$ac_ext >&5
5331
ac_cv_header_stdc=no
5333
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5335
if test $ac_cv_header_stdc = yes; then
5336
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5337
cat >conftest.$ac_ext <<_ACEOF
5340
cat confdefs.h >>conftest.$ac_ext
5341
cat >>conftest.$ac_ext <<_ACEOF
5342
/* end confdefs.h. */
5346
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5347
$EGREP "memchr" >/dev/null 2>&1; then
5350
ac_cv_header_stdc=no
5356
if test $ac_cv_header_stdc = yes; then
5357
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5358
cat >conftest.$ac_ext <<_ACEOF
5361
cat confdefs.h >>conftest.$ac_ext
5362
cat >>conftest.$ac_ext <<_ACEOF
5363
/* end confdefs.h. */
5367
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5368
$EGREP "free" >/dev/null 2>&1; then
5371
ac_cv_header_stdc=no
5377
if test $ac_cv_header_stdc = yes; then
5378
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5379
if test "$cross_compiling" = yes; then
5382
cat >conftest.$ac_ext <<_ACEOF
5385
cat confdefs.h >>conftest.$ac_ext
5386
cat >>conftest.$ac_ext <<_ACEOF
5387
/* end confdefs.h. */
5389
#if ((' ' & 0x0FF) == 0x020)
5390
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5391
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5393
# define ISLOWER(c) \
5394
(('a' <= (c) && (c) <= 'i') \
5395
|| ('j' <= (c) && (c) <= 'r') \
5396
|| ('s' <= (c) && (c) <= 'z'))
5397
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5400
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5405
for (i = 0; i < 256; i++)
5406
if (XOR (islower (i), ISLOWER (i))
5407
|| toupper (i) != TOUPPER (i))
5412
rm -f conftest$ac_exeext
5413
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5414
(eval $ac_link) 2>&5
5416
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5418
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422
(exit $ac_status); }; }; then
5425
echo "$as_me: program exited with status $ac_status" >&5
5426
echo "$as_me: failed program was:" >&5
5427
sed 's/^/| /' conftest.$ac_ext >&5
5430
ac_cv_header_stdc=no
5432
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5436
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5437
echo "${ECHO_T}$ac_cv_header_stdc" >&6
5438
if test $ac_cv_header_stdc = yes; then
5440
cat >>confdefs.h <<\_ACEOF
5441
@%:@define STDC_HEADERS 1
5446
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5456
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5457
inttypes.h stdint.h unistd.h
5459
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5460
echo "$as_me:$LINENO: checking for $ac_header" >&5
5461
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5462
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5463
echo $ECHO_N "(cached) $ECHO_C" >&6
5465
cat >conftest.$ac_ext <<_ACEOF
5468
cat confdefs.h >>conftest.$ac_ext
5469
cat >>conftest.$ac_ext <<_ACEOF
5470
/* end confdefs.h. */
5471
$ac_includes_default
5473
@%:@include <$ac_header>
5475
rm -f conftest.$ac_objext
5476
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5477
(eval $ac_compile) 2>conftest.er1
5479
grep -v '^ *+' conftest.er1 >conftest.err
5481
cat conftest.err >&5
5482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483
(exit $ac_status); } &&
5484
{ ac_try='test -z "$ac_c_werror_flag"
5485
|| test ! -s conftest.err'
5486
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490
(exit $ac_status); }; } &&
5491
{ ac_try='test -s conftest.$ac_objext'
5492
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496
(exit $ac_status); }; }; then
5497
eval "$as_ac_Header=yes"
5499
echo "$as_me: failed program was:" >&5
5500
sed 's/^/| /' conftest.$ac_ext >&5
5502
eval "$as_ac_Header=no"
5504
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5506
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5507
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5508
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5509
cat >>confdefs.h <<_ACEOF
5510
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5519
for ac_header in dlfcn.h
5521
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5522
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5523
echo "$as_me:$LINENO: checking for $ac_header" >&5
5524
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5525
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5526
echo $ECHO_N "(cached) $ECHO_C" >&6
5528
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5529
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5531
# Is the header compilable?
5532
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5533
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5534
cat >conftest.$ac_ext <<_ACEOF
5537
cat confdefs.h >>conftest.$ac_ext
5538
cat >>conftest.$ac_ext <<_ACEOF
5539
/* end confdefs.h. */
5540
$ac_includes_default
5541
@%:@include <$ac_header>
5543
rm -f conftest.$ac_objext
5544
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5545
(eval $ac_compile) 2>conftest.er1
5547
grep -v '^ *+' conftest.er1 >conftest.err
5549
cat conftest.err >&5
5550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551
(exit $ac_status); } &&
5552
{ ac_try='test -z "$ac_c_werror_flag"
5553
|| test ! -s conftest.err'
5554
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5557
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558
(exit $ac_status); }; } &&
5559
{ ac_try='test -s conftest.$ac_objext'
5560
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5563
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564
(exit $ac_status); }; }; then
5565
ac_header_compiler=yes
5567
echo "$as_me: failed program was:" >&5
5568
sed 's/^/| /' conftest.$ac_ext >&5
5570
ac_header_compiler=no
5572
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5573
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5574
echo "${ECHO_T}$ac_header_compiler" >&6
5576
# Is the header present?
5577
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5578
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5579
cat >conftest.$ac_ext <<_ACEOF
5582
cat confdefs.h >>conftest.$ac_ext
5583
cat >>conftest.$ac_ext <<_ACEOF
5584
/* end confdefs.h. */
5585
@%:@include <$ac_header>
5587
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5588
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5590
grep -v '^ *+' conftest.er1 >conftest.err
5592
cat conftest.err >&5
5593
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594
(exit $ac_status); } >/dev/null; then
5595
if test -s conftest.err; then
5596
ac_cpp_err=$ac_c_preproc_warn_flag
5597
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5604
if test -z "$ac_cpp_err"; then
5605
ac_header_preproc=yes
5607
echo "$as_me: failed program was:" >&5
5608
sed 's/^/| /' conftest.$ac_ext >&5
5610
ac_header_preproc=no
5612
rm -f conftest.err conftest.$ac_ext
5613
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5614
echo "${ECHO_T}$ac_header_preproc" >&6
5616
# So? What about this header?
5617
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5619
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5620
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5621
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5622
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5623
ac_header_preproc=yes
5626
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5627
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5628
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5629
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5630
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5631
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5632
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5633
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5634
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5635
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5636
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5637
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5640
@%:@@%:@ ----------------------------------------- @%:@@%:@
5641
@%:@@%:@ Report this to trousers-tech@lists.sf.net @%:@@%:@
5642
@%:@@%:@ ----------------------------------------- @%:@@%:@
5645
sed "s/^/$as_me: WARNING: /" >&2
5648
echo "$as_me:$LINENO: checking for $ac_header" >&5
5649
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5650
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5651
echo $ECHO_N "(cached) $ECHO_C" >&6
5653
eval "$as_ac_Header=\$ac_header_preproc"
5655
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5656
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5659
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5660
cat >>confdefs.h <<_ACEOF
5661
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5669
ac_cpp='$CXXCPP $CPPFLAGS'
5670
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5671
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5672
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5673
if test -n "$ac_tool_prefix"; then
5674
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5676
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5677
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5678
echo "$as_me:$LINENO: checking for $ac_word" >&5
5679
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5680
if test "${ac_cv_prog_CXX+set}" = set; then
5681
echo $ECHO_N "(cached) $ECHO_C" >&6
5683
if test -n "$CXX"; then
5684
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5686
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690
test -z "$as_dir" && as_dir=.
5691
for ac_exec_ext in '' $ac_executable_extensions; do
5692
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5693
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5694
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5703
if test -n "$CXX"; then
5704
echo "$as_me:$LINENO: result: $CXX" >&5
5705
echo "${ECHO_T}$CXX" >&6
5707
echo "$as_me:$LINENO: result: no" >&5
5708
echo "${ECHO_T}no" >&6
5711
test -n "$CXX" && break
5714
if test -z "$CXX"; then
5716
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5718
# Extract the first word of "$ac_prog", so it can be a program name with args.
5719
set dummy $ac_prog; ac_word=$2
5720
echo "$as_me:$LINENO: checking for $ac_word" >&5
5721
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5722
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5723
echo $ECHO_N "(cached) $ECHO_C" >&6
5725
if test -n "$ac_ct_CXX"; then
5726
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5728
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732
test -z "$as_dir" && as_dir=.
5733
for ac_exec_ext in '' $ac_executable_extensions; do
5734
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5735
ac_cv_prog_ac_ct_CXX="$ac_prog"
5736
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5744
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5745
if test -n "$ac_ct_CXX"; then
5746
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5747
echo "${ECHO_T}$ac_ct_CXX" >&6
5749
echo "$as_me:$LINENO: result: no" >&5
5750
echo "${ECHO_T}no" >&6
5753
test -n "$ac_ct_CXX" && break
5755
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5761
# Provide some information about the compiler.
5762
echo "$as_me:$LINENO:" \
5763
"checking for C++ compiler version" >&5
5764
ac_compiler=`set X $ac_compile; echo $2`
5765
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5766
(eval $ac_compiler --version </dev/null >&5) 2>&5
5768
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769
(exit $ac_status); }
5770
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5771
(eval $ac_compiler -v </dev/null >&5) 2>&5
5773
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774
(exit $ac_status); }
5775
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5776
(eval $ac_compiler -V </dev/null >&5) 2>&5
5778
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779
(exit $ac_status); }
5781
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5782
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5783
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5784
echo $ECHO_N "(cached) $ECHO_C" >&6
5786
cat >conftest.$ac_ext <<_ACEOF
5789
cat confdefs.h >>conftest.$ac_ext
5790
cat >>conftest.$ac_ext <<_ACEOF
5791
/* end confdefs.h. */
5804
rm -f conftest.$ac_objext
5805
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5806
(eval $ac_compile) 2>conftest.er1
5808
grep -v '^ *+' conftest.er1 >conftest.err
5810
cat conftest.err >&5
5811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812
(exit $ac_status); } &&
5813
{ ac_try='test -z "$ac_cxx_werror_flag"
5814
|| test ! -s conftest.err'
5815
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819
(exit $ac_status); }; } &&
5820
{ ac_try='test -s conftest.$ac_objext'
5821
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825
(exit $ac_status); }; }; then
5828
echo "$as_me: failed program was:" >&5
5829
sed 's/^/| /' conftest.$ac_ext >&5
5833
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5834
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5837
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5838
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5839
GXX=`test $ac_compiler_gnu = yes && echo yes`
5840
ac_test_CXXFLAGS=${CXXFLAGS+set}
5841
ac_save_CXXFLAGS=$CXXFLAGS
5843
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5844
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5845
if test "${ac_cv_prog_cxx_g+set}" = set; then
5846
echo $ECHO_N "(cached) $ECHO_C" >&6
5848
cat >conftest.$ac_ext <<_ACEOF
5851
cat confdefs.h >>conftest.$ac_ext
5852
cat >>conftest.$ac_ext <<_ACEOF
5853
/* end confdefs.h. */
5863
rm -f conftest.$ac_objext
5864
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5865
(eval $ac_compile) 2>conftest.er1
5867
grep -v '^ *+' conftest.er1 >conftest.err
5869
cat conftest.err >&5
5870
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871
(exit $ac_status); } &&
5872
{ ac_try='test -z "$ac_cxx_werror_flag"
5873
|| test ! -s conftest.err'
5874
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878
(exit $ac_status); }; } &&
5879
{ ac_try='test -s conftest.$ac_objext'
5880
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884
(exit $ac_status); }; }; then
5885
ac_cv_prog_cxx_g=yes
5887
echo "$as_me: failed program was:" >&5
5888
sed 's/^/| /' conftest.$ac_ext >&5
5892
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5894
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5895
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5896
if test "$ac_test_CXXFLAGS" = set; then
5897
CXXFLAGS=$ac_save_CXXFLAGS
5898
elif test $ac_cv_prog_cxx_g = yes; then
5899
if test "$GXX" = yes; then
5905
if test "$GXX" = yes; then
5911
for ac_declaration in \
5913
'extern "C" void std::exit (int) throw (); using std::exit;' \
5914
'extern "C" void std::exit (int); using std::exit;' \
5915
'extern "C" void exit (int) throw ();' \
5916
'extern "C" void exit (int);' \
5919
cat >conftest.$ac_ext <<_ACEOF
5922
cat confdefs.h >>conftest.$ac_ext
5923
cat >>conftest.$ac_ext <<_ACEOF
5924
/* end confdefs.h. */
5926
@%:@include <stdlib.h>
5935
rm -f conftest.$ac_objext
5936
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5937
(eval $ac_compile) 2>conftest.er1
5939
grep -v '^ *+' conftest.er1 >conftest.err
5941
cat conftest.err >&5
5942
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943
(exit $ac_status); } &&
5944
{ ac_try='test -z "$ac_cxx_werror_flag"
5945
|| test ! -s conftest.err'
5946
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950
(exit $ac_status); }; } &&
5951
{ ac_try='test -s conftest.$ac_objext'
5952
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956
(exit $ac_status); }; }; then
5959
echo "$as_me: failed program was:" >&5
5960
sed 's/^/| /' conftest.$ac_ext >&5
5964
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5965
cat >conftest.$ac_ext <<_ACEOF
5968
cat confdefs.h >>conftest.$ac_ext
5969
cat >>conftest.$ac_ext <<_ACEOF
5970
/* end confdefs.h. */
5980
rm -f conftest.$ac_objext
5981
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5982
(eval $ac_compile) 2>conftest.er1
5984
grep -v '^ *+' conftest.er1 >conftest.err
5986
cat conftest.err >&5
5987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988
(exit $ac_status); } &&
5989
{ ac_try='test -z "$ac_cxx_werror_flag"
5990
|| test ! -s conftest.err'
5991
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995
(exit $ac_status); }; } &&
5996
{ ac_try='test -s conftest.$ac_objext'
5997
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001
(exit $ac_status); }; }; then
6004
echo "$as_me: failed program was:" >&5
6005
sed 's/^/| /' conftest.$ac_ext >&5
6008
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6011
if test -n "$ac_declaration"; then
6012
echo '#ifdef __cplusplus' >>confdefs.h
6013
echo $ac_declaration >>confdefs.h
6014
echo '#endif' >>confdefs.h
6018
ac_cpp='$CXXCPP $CPPFLAGS'
6019
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6020
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6021
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6023
depcc="$CXX" am_compiler_list=
6025
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6026
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6027
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6028
echo $ECHO_N "(cached) $ECHO_C" >&6
6030
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6031
# We make a subdir and do the tests there. Otherwise we can end up
6032
# making bogus files that we don't know about and never remove. For
6033
# instance it was reported that on HP-UX the gcc test will end up
6034
# making a dummy file named `D' -- because `-MD' means `put the output
6037
# Copy depcomp to subdir because otherwise we won't find it if we're
6038
# using a relative directory.
6039
cp "$am_depcomp" conftest.dir
6041
# We will build objects and dependencies in a subdirectory because
6042
# it helps to detect inapplicable dependency modes. For instance
6043
# both Tru64's cc and ICC support -MD to output dependencies as a
6044
# side effect of compilation, but ICC will put the dependencies in
6045
# the current directory while Tru64 will put them in the object
6049
am_cv_CXX_dependencies_compiler_type=none
6050
if test "$am_compiler_list" = ""; then
6051
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6053
for depmode in $am_compiler_list; do
6054
# Setup a source with many dependencies, because some compilers
6055
# like to wrap large dependency lists on column 80 (with \), and
6056
# we should not choose a depcomp mode which is confused by this.
6058
# We need to recreate these files for each test, as the compiler may
6059
# overwrite some of them when testing with obscure command lines.
6060
# This happens at least with the AIX C compiler.
6062
for i in 1 2 3 4 5 6; do
6063
echo '#include "conftst'$i'.h"' >> sub/conftest.c
6064
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6065
# Solaris 8's {/usr,}/bin/sh.
6066
touch sub/conftst$i.h
6068
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6072
# after this tag, mechanisms are not by side-effect, so they'll
6073
# only be used when explicitly requested
6074
if test "x$enable_dependency_tracking" = xyes; then
6082
# We check with `-c' and `-o' for the sake of the "dashmstdout"
6083
# mode. It turns out that the SunPro C++ compiler does not properly
6084
# handle `-M -o', and we need to detect this.
6085
if depmode=$depmode \
6086
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6087
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6088
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6089
>/dev/null 2>conftest.err &&
6090
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6091
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6092
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6093
# icc doesn't choke on unknown options, it will just issue warnings
6094
# or remarks (even with -Werror). So we grep stderr for any message
6095
# that says an option was ignored or not supported.
6096
# When given -MP, icc 7.0 and 7.1 complain thusly:
6097
# icc: Command line warning: ignoring option '-M'; no argument required
6098
# The diagnosis changed in icc 8.0:
6099
# icc: Command line remark: option '-MP' not supported
6100
if (grep 'ignoring option' conftest.err ||
6101
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6102
am_cv_CXX_dependencies_compiler_type=$depmode
6111
am_cv_CXX_dependencies_compiler_type=none
6115
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6116
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6117
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6122
test "x$enable_dependency_tracking" != xno \
6123
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6124
am__fastdepCXX_TRUE=
6125
am__fastdepCXX_FALSE='#'
6127
am__fastdepCXX_TRUE='#'
6128
am__fastdepCXX_FALSE=
6134
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6135
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6136
(test "X$CXX" != "Xg++"))) ; then
6138
ac_cpp='$CXXCPP $CPPFLAGS'
6139
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6140
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6141
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6142
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6143
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6144
if test -z "$CXXCPP"; then
6145
if test "${ac_cv_prog_CXXCPP+set}" = set; then
6146
echo $ECHO_N "(cached) $ECHO_C" >&6
6148
# Double quotes because CXXCPP needs to be expanded
6149
for CXXCPP in "$CXX -E" "/lib/cpp"
6152
for ac_cxx_preproc_warn_flag in '' yes
6154
# Use a header file that comes with gcc, so configuring glibc
6155
# with a fresh cross-compiler works.
6156
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6157
# <limits.h> exists even on freestanding compilers.
6158
# On the NeXT, cc -E runs the code through the compiler's parser,
6159
# not just through cpp. "Syntax error" is here to catch this case.
6160
cat >conftest.$ac_ext <<_ACEOF
6163
cat confdefs.h >>conftest.$ac_ext
6164
cat >>conftest.$ac_ext <<_ACEOF
6165
/* end confdefs.h. */
6167
@%:@ include <limits.h>
6169
@%:@ include <assert.h>
6173
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6174
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6176
grep -v '^ *+' conftest.er1 >conftest.err
6178
cat conftest.err >&5
6179
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180
(exit $ac_status); } >/dev/null; then
6181
if test -s conftest.err; then
6182
ac_cpp_err=$ac_cxx_preproc_warn_flag
6183
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6190
if test -z "$ac_cpp_err"; then
6193
echo "$as_me: failed program was:" >&5
6194
sed 's/^/| /' conftest.$ac_ext >&5
6196
# Broken: fails on valid input.
6199
rm -f conftest.err conftest.$ac_ext
6201
# OK, works on sane cases. Now check whether non-existent headers
6202
# can be detected and how.
6203
cat >conftest.$ac_ext <<_ACEOF
6206
cat confdefs.h >>conftest.$ac_ext
6207
cat >>conftest.$ac_ext <<_ACEOF
6208
/* end confdefs.h. */
6209
@%:@include <ac_nonexistent.h>
6211
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6212
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6214
grep -v '^ *+' conftest.er1 >conftest.err
6216
cat conftest.err >&5
6217
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218
(exit $ac_status); } >/dev/null; then
6219
if test -s conftest.err; then
6220
ac_cpp_err=$ac_cxx_preproc_warn_flag
6221
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6228
if test -z "$ac_cpp_err"; then
6229
# Broken: success on invalid input.
6232
echo "$as_me: failed program was:" >&5
6233
sed 's/^/| /' conftest.$ac_ext >&5
6235
# Passes both tests.
6239
rm -f conftest.err conftest.$ac_ext
6242
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6243
rm -f conftest.err conftest.$ac_ext
6244
if $ac_preproc_ok; then
6249
ac_cv_prog_CXXCPP=$CXXCPP
6252
CXXCPP=$ac_cv_prog_CXXCPP
6254
ac_cv_prog_CXXCPP=$CXXCPP
6256
echo "$as_me:$LINENO: result: $CXXCPP" >&5
6257
echo "${ECHO_T}$CXXCPP" >&6
6259
for ac_cxx_preproc_warn_flag in '' yes
6261
# Use a header file that comes with gcc, so configuring glibc
6262
# with a fresh cross-compiler works.
6263
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6264
# <limits.h> exists even on freestanding compilers.
6265
# On the NeXT, cc -E runs the code through the compiler's parser,
6266
# not just through cpp. "Syntax error" is here to catch this case.
6267
cat >conftest.$ac_ext <<_ACEOF
6270
cat confdefs.h >>conftest.$ac_ext
6271
cat >>conftest.$ac_ext <<_ACEOF
6272
/* end confdefs.h. */
6274
@%:@ include <limits.h>
6276
@%:@ include <assert.h>
6280
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6281
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6283
grep -v '^ *+' conftest.er1 >conftest.err
6285
cat conftest.err >&5
6286
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287
(exit $ac_status); } >/dev/null; then
6288
if test -s conftest.err; then
6289
ac_cpp_err=$ac_cxx_preproc_warn_flag
6290
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6297
if test -z "$ac_cpp_err"; then
6300
echo "$as_me: failed program was:" >&5
6301
sed 's/^/| /' conftest.$ac_ext >&5
6303
# Broken: fails on valid input.
6306
rm -f conftest.err conftest.$ac_ext
6308
# OK, works on sane cases. Now check whether non-existent headers
6309
# can be detected and how.
6310
cat >conftest.$ac_ext <<_ACEOF
6313
cat confdefs.h >>conftest.$ac_ext
6314
cat >>conftest.$ac_ext <<_ACEOF
6315
/* end confdefs.h. */
6316
@%:@include <ac_nonexistent.h>
6318
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6319
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6321
grep -v '^ *+' conftest.er1 >conftest.err
6323
cat conftest.err >&5
6324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325
(exit $ac_status); } >/dev/null; then
6326
if test -s conftest.err; then
6327
ac_cpp_err=$ac_cxx_preproc_warn_flag
6328
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6335
if test -z "$ac_cpp_err"; then
6336
# Broken: success on invalid input.
6339
echo "$as_me: failed program was:" >&5
6340
sed 's/^/| /' conftest.$ac_ext >&5
6342
# Passes both tests.
6346
rm -f conftest.err conftest.$ac_ext
6349
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6350
rm -f conftest.err conftest.$ac_ext
6351
if $ac_preproc_ok; then
6354
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6355
See \`config.log' for more details." >&5
6356
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6357
See \`config.log' for more details." >&2;}
6358
{ (exit 1); exit 1; }; }
6362
ac_cpp='$CXXCPP $CPPFLAGS'
6363
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6364
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6365
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6371
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6372
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6373
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6374
if test -n "$ac_tool_prefix"; then
6375
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6377
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6378
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6379
echo "$as_me:$LINENO: checking for $ac_word" >&5
6380
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6381
if test "${ac_cv_prog_F77+set}" = set; then
6382
echo $ECHO_N "(cached) $ECHO_C" >&6
6384
if test -n "$F77"; then
6385
ac_cv_prog_F77="$F77" # Let the user override the test.
6387
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391
test -z "$as_dir" && as_dir=.
6392
for ac_exec_ext in '' $ac_executable_extensions; do
6393
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6395
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6404
if test -n "$F77"; then
6405
echo "$as_me:$LINENO: result: $F77" >&5
6406
echo "${ECHO_T}$F77" >&6
6408
echo "$as_me:$LINENO: result: no" >&5
6409
echo "${ECHO_T}no" >&6
6412
test -n "$F77" && break
6415
if test -z "$F77"; then
6417
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6419
# Extract the first word of "$ac_prog", so it can be a program name with args.
6420
set dummy $ac_prog; ac_word=$2
6421
echo "$as_me:$LINENO: checking for $ac_word" >&5
6422
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6423
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6424
echo $ECHO_N "(cached) $ECHO_C" >&6
6426
if test -n "$ac_ct_F77"; then
6427
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6429
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433
test -z "$as_dir" && as_dir=.
6434
for ac_exec_ext in '' $ac_executable_extensions; do
6435
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6436
ac_cv_prog_ac_ct_F77="$ac_prog"
6437
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6445
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6446
if test -n "$ac_ct_F77"; then
6447
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6448
echo "${ECHO_T}$ac_ct_F77" >&6
6450
echo "$as_me:$LINENO: result: no" >&5
6451
echo "${ECHO_T}no" >&6
6454
test -n "$ac_ct_F77" && break
6461
# Provide some information about the compiler.
6462
echo "$as_me:__oline__:" \
6463
"checking for Fortran 77 compiler version" >&5
6464
ac_compiler=`set X $ac_compile; echo $2`
6465
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6466
(eval $ac_compiler --version </dev/null >&5) 2>&5
6468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469
(exit $ac_status); }
6470
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6471
(eval $ac_compiler -v </dev/null >&5) 2>&5
6473
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474
(exit $ac_status); }
6475
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6476
(eval $ac_compiler -V </dev/null >&5) 2>&5
6478
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479
(exit $ac_status); }
6482
# If we don't use `.F' as extension, the preprocessor is not run on the
6483
# input file. (Note that this only needs to work for GNU compilers.)
6486
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6487
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6488
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6489
echo $ECHO_N "(cached) $ECHO_C" >&6
6491
cat >conftest.$ac_ext <<_ACEOF
6499
rm -f conftest.$ac_objext
6500
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6501
(eval $ac_compile) 2>conftest.er1
6503
grep -v '^ *+' conftest.er1 >conftest.err
6505
cat conftest.err >&5
6506
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507
(exit $ac_status); } &&
6508
{ ac_try='test -z "$ac_f77_werror_flag"
6509
|| test ! -s conftest.err'
6510
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6513
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514
(exit $ac_status); }; } &&
6515
{ ac_try='test -s conftest.$ac_objext'
6516
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520
(exit $ac_status); }; }; then
6523
echo "$as_me: failed program was:" >&5
6524
sed 's/^/| /' conftest.$ac_ext >&5
6528
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6529
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6532
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6533
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6535
ac_test_FFLAGS=${FFLAGS+set}
6536
ac_save_FFLAGS=$FFLAGS
6538
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6539
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6540
if test "${ac_cv_prog_f77_g+set}" = set; then
6541
echo $ECHO_N "(cached) $ECHO_C" >&6
6544
cat >conftest.$ac_ext <<_ACEOF
6549
rm -f conftest.$ac_objext
6550
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6551
(eval $ac_compile) 2>conftest.er1
6553
grep -v '^ *+' conftest.er1 >conftest.err
6555
cat conftest.err >&5
6556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557
(exit $ac_status); } &&
6558
{ ac_try='test -z "$ac_f77_werror_flag"
6559
|| test ! -s conftest.err'
6560
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564
(exit $ac_status); }; } &&
6565
{ ac_try='test -s conftest.$ac_objext'
6566
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6569
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570
(exit $ac_status); }; }; then
6571
ac_cv_prog_f77_g=yes
6573
echo "$as_me: failed program was:" >&5
6574
sed 's/^/| /' conftest.$ac_ext >&5
6578
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6581
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6582
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6583
if test "$ac_test_FFLAGS" = set; then
6584
FFLAGS=$ac_save_FFLAGS
6585
elif test $ac_cv_prog_f77_g = yes; then
6586
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6592
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6599
G77=`test $ac_compiler_gnu = yes && echo yes`
6601
ac_cpp='$CPP $CPPFLAGS'
6602
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6603
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6604
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6608
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6610
# find the maximum length of command line arguments
6611
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6612
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6613
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6614
echo $ECHO_N "(cached) $ECHO_C" >&6
6621
# On DJGPP, this test can blow up pretty badly due to problems in libc
6622
# (any single argument exceeding 2000 bytes causes a buffer overrun
6623
# during glob expansion). Even if it were fixed, the result of this
6624
# check would be larger than it should be.
6625
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6629
# Under GNU Hurd, this test is not required because there is
6630
# no limit to the length of command line arguments.
6631
# Libtool will interpret -1 as no limit whatsoever
6632
lt_cv_sys_max_cmd_len=-1;
6636
# On Win9x/ME, this test blows up -- it succeeds, but takes
6637
# about 5 minutes as the teststring grows exponentially.
6638
# Worse, since 9x/ME are not pre-emptively multitasking,
6639
# you end up with a "frozen" computer, even though with patience
6640
# the test eventually succeeds (with a max line length of 256k).
6641
# Instead, let's just punt: use the minimum linelength reported by
6642
# all of the supported platforms: 8192 (on NT/2K/XP).
6643
lt_cv_sys_max_cmd_len=8192;
6647
# On AmigaOS with pdksh, this test takes hours, literally.
6648
# So we just punt and use a minimum line length of 8192.
6649
lt_cv_sys_max_cmd_len=8192;
6652
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6653
# This has been around since 386BSD, at least. Likely further.
6654
if test -x /sbin/sysctl; then
6655
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6656
elif test -x /usr/sbin/sysctl; then
6657
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6659
lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6661
# And add a safety zone
6662
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6665
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6666
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6667
# nice to cause kernel panics so lets avoid the loop below.
6668
# First set a reasonable default.
6669
lt_cv_sys_max_cmd_len=16384
6671
if test -x /sbin/sysconfig; then
6672
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6673
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6678
# If test is not a shell built-in, we'll probably end up computing a
6679
# maximum length that is only half of the actual maximum length, but
6681
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6682
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6683
= "XX$teststring") >/dev/null 2>&1 &&
6684
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6685
lt_cv_sys_max_cmd_len=$new_result &&
6686
test $i != 17 # 1/2 MB should be enough
6689
teststring=$teststring$teststring
6692
# Add a significant safety factor because C++ compilers can tack on massive
6693
# amounts of additional arguments before passing them to the linker.
6694
# It appears as though 1/2 is a usable value.
6695
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6701
if test -n $lt_cv_sys_max_cmd_len ; then
6702
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6703
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6705
echo "$as_me:$LINENO: result: none" >&5
6706
echo "${ECHO_T}none" >&6
6712
# Check for command to grab the raw symbol name followed by C symbol from nm.
6713
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6714
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6715
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6716
echo $ECHO_N "(cached) $ECHO_C" >&6
6719
# These are sane defaults that work on at least a few old systems.
6720
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6722
# Character class describing NM global symbol codes.
6723
symcode='[BCDEGRST]'
6725
# Regexp to match symbols that can be accessed directly from C.
6726
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6728
# Transform an extracted symbol line into a proper C declaration
6729
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6731
# Transform an extracted symbol line into symbol name and symbol address
6732
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'"
6734
# Define system-specific variables.
6739
cygwin* | mingw* | pw32*)
6740
symcode='[ABCDGISTW]'
6742
hpux*) # Its linker distinguishes data from code symbols
6743
if test "$host_cpu" = ia64; then
6744
symcode='[ABCDEGRST]'
6746
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6747
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'"
6750
if test "$host_cpu" = ia64; then
6751
symcode='[ABCDGIRSTW]'
6752
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6753
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'"
6757
symcode='[BCDEGRST]'
6760
symcode='[BCDEGQRST]'
6770
# Handle CRLF in mingw tool chain
6774
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6778
# If we're using GNU nm, then use its standard symbol codes.
6779
case `$NM -V 2>&1` in
6780
*GNU* | *'with BFD'*)
6781
symcode='[ABCDGIRSTW]' ;;
6784
# Try without a prefix undercore, then with it.
6785
for ac_symprfx in "" "_"; do
6787
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6788
symxfrm="\\1 $ac_symprfx\\2 \\2"
6790
# Write the raw and C identifiers.
6791
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6793
# Check to see that the pipe works correctly.
6797
cat > conftest.$ac_ext <<EOF
6802
void nm_test_func(){}
6806
int main(){nm_test_var='a';nm_test_func();return(0);}
6809
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6810
(eval $ac_compile) 2>&5
6812
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813
(exit $ac_status); }; then
6814
# Now try to grab the symbols.
6816
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6817
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6819
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820
(exit $ac_status); } && test -s "$nlist"; then
6821
# Try sorting and uniquifying the output.
6822
if sort "$nlist" | uniq > "$nlist"T; then
6823
mv -f "$nlist"T "$nlist"
6828
# Make sure that we snagged all the symbols we need.
6829
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6830
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6831
cat <<EOF > conftest.$ac_ext
6837
# Now generate the symbol file.
6838
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6840
cat <<EOF >> conftest.$ac_ext
6841
#if defined (__STDC__) && __STDC__
6842
# define lt_ptr_t void *
6844
# define lt_ptr_t char *
6848
/* The mapping between symbol names and symbols. */
6853
lt_preloaded_symbols[] =
6856
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6857
cat <<\EOF >> conftest.$ac_ext
6865
# Now try linking the two files.
6866
mv conftest.$ac_objext conftstm.$ac_objext
6867
lt_save_LIBS="$LIBS"
6868
lt_save_CFLAGS="$CFLAGS"
6869
LIBS="conftstm.$ac_objext"
6870
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6871
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6872
(eval $ac_link) 2>&5
6874
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875
(exit $ac_status); } && test -s conftest${ac_exeext}; then
6878
LIBS="$lt_save_LIBS"
6879
CFLAGS="$lt_save_CFLAGS"
6881
echo "cannot find nm_test_func in $nlist" >&5
6884
echo "cannot find nm_test_var in $nlist" >&5
6887
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6890
echo "$progname: failed program was:" >&5
6891
cat conftest.$ac_ext >&5
6893
rm -f conftest* conftst*
6895
# Do not use the global_symbol_pipe unless it works.
6896
if test "$pipe_works" = yes; then
6899
lt_cv_sys_global_symbol_pipe=
6905
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6906
lt_cv_sys_global_symbol_to_cdecl=
6908
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6909
echo "$as_me:$LINENO: result: failed" >&5
6910
echo "${ECHO_T}failed" >&6
6912
echo "$as_me:$LINENO: result: ok" >&5
6913
echo "${ECHO_T}ok" >&6
6916
echo "$as_me:$LINENO: checking for objdir" >&5
6917
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6918
if test "${lt_cv_objdir+set}" = set; then
6919
echo $ECHO_N "(cached) $ECHO_C" >&6
6921
rm -f .libs 2>/dev/null
6922
mkdir .libs 2>/dev/null
6923
if test -d .libs; then
6926
# MS-DOS does not allow filenames that begin with a dot.
6929
rmdir .libs 2>/dev/null
6931
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6932
echo "${ECHO_T}$lt_cv_objdir" >&6
6933
objdir=$lt_cv_objdir
6941
# AIX sometimes has problems with the GCC collect2 program. For some
6942
# reason, if we set the COLLECT_NAMES environment variable, the problems
6943
# vanish in a puff of smoke.
6944
if test "X${COLLECT_NAMES+set}" != Xset; then
6946
export COLLECT_NAMES
6951
# Sed substitution that helps us do robust quoting. It backslashifies
6952
# metacharacters that are still active within double-quoted strings.
6953
Xsed='sed -e s/^X//'
6954
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6956
# Same as above, but do not quote variable references.
6957
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6959
# Sed substitution to delay expansion of an escaped shell variable in a
6960
# double_quote_subst'ed string.
6961
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6963
# Sed substitution to avoid accidental globbing in evaled expressions
6964
no_glob_subst='s/\*/\\\*/g'
6970
default_ofile=libtool
6971
can_build_shared=yes
6973
# All known linkers require a `.a' archive for static linking (except M$VC,
6974
# which needs '.lib').
6976
ltmain="$ac_aux_dir/ltmain.sh"
6977
ofile="$default_ofile"
6978
with_gnu_ld="$lt_cv_prog_gnu_ld"
6980
if test -n "$ac_tool_prefix"; then
6981
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6982
set dummy ${ac_tool_prefix}ar; ac_word=$2
6983
echo "$as_me:$LINENO: checking for $ac_word" >&5
6984
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6985
if test "${ac_cv_prog_AR+set}" = set; then
6986
echo $ECHO_N "(cached) $ECHO_C" >&6
6988
if test -n "$AR"; then
6989
ac_cv_prog_AR="$AR" # Let the user override the test.
6991
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995
test -z "$as_dir" && as_dir=.
6996
for ac_exec_ext in '' $ac_executable_extensions; do
6997
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6998
ac_cv_prog_AR="${ac_tool_prefix}ar"
6999
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7008
if test -n "$AR"; then
7009
echo "$as_me:$LINENO: result: $AR" >&5
7010
echo "${ECHO_T}$AR" >&6
7012
echo "$as_me:$LINENO: result: no" >&5
7013
echo "${ECHO_T}no" >&6
7017
if test -z "$ac_cv_prog_AR"; then
7019
# Extract the first word of "ar", so it can be a program name with args.
7020
set dummy ar; ac_word=$2
7021
echo "$as_me:$LINENO: checking for $ac_word" >&5
7022
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7023
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7024
echo $ECHO_N "(cached) $ECHO_C" >&6
7026
if test -n "$ac_ct_AR"; then
7027
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7029
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033
test -z "$as_dir" && as_dir=.
7034
for ac_exec_ext in '' $ac_executable_extensions; do
7035
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7036
ac_cv_prog_ac_ct_AR="ar"
7037
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7043
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7046
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7047
if test -n "$ac_ct_AR"; then
7048
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7049
echo "${ECHO_T}$ac_ct_AR" >&6
7051
echo "$as_me:$LINENO: result: no" >&5
7052
echo "${ECHO_T}no" >&6
7060
if test -n "$ac_tool_prefix"; then
7061
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7062
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7063
echo "$as_me:$LINENO: checking for $ac_word" >&5
7064
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7065
if test "${ac_cv_prog_RANLIB+set}" = set; then
7066
echo $ECHO_N "(cached) $ECHO_C" >&6
7068
if test -n "$RANLIB"; then
7069
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7071
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075
test -z "$as_dir" && as_dir=.
7076
for ac_exec_ext in '' $ac_executable_extensions; do
7077
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7078
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7079
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7087
RANLIB=$ac_cv_prog_RANLIB
7088
if test -n "$RANLIB"; then
7089
echo "$as_me:$LINENO: result: $RANLIB" >&5
7090
echo "${ECHO_T}$RANLIB" >&6
7092
echo "$as_me:$LINENO: result: no" >&5
7093
echo "${ECHO_T}no" >&6
7097
if test -z "$ac_cv_prog_RANLIB"; then
7098
ac_ct_RANLIB=$RANLIB
7099
# Extract the first word of "ranlib", so it can be a program name with args.
7100
set dummy ranlib; ac_word=$2
7101
echo "$as_me:$LINENO: checking for $ac_word" >&5
7102
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7103
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7104
echo $ECHO_N "(cached) $ECHO_C" >&6
7106
if test -n "$ac_ct_RANLIB"; then
7107
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7109
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113
test -z "$as_dir" && as_dir=.
7114
for ac_exec_ext in '' $ac_executable_extensions; do
7115
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7116
ac_cv_prog_ac_ct_RANLIB="ranlib"
7117
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7123
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7126
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7127
if test -n "$ac_ct_RANLIB"; then
7128
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7129
echo "${ECHO_T}$ac_ct_RANLIB" >&6
7131
echo "$as_me:$LINENO: result: no" >&5
7132
echo "${ECHO_T}no" >&6
7135
RANLIB=$ac_ct_RANLIB
7137
RANLIB="$ac_cv_prog_RANLIB"
7140
if test -n "$ac_tool_prefix"; then
7141
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7142
set dummy ${ac_tool_prefix}strip; ac_word=$2
7143
echo "$as_me:$LINENO: checking for $ac_word" >&5
7144
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7145
if test "${ac_cv_prog_STRIP+set}" = set; then
7146
echo $ECHO_N "(cached) $ECHO_C" >&6
7148
if test -n "$STRIP"; then
7149
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7151
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155
test -z "$as_dir" && as_dir=.
7156
for ac_exec_ext in '' $ac_executable_extensions; do
7157
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7158
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7159
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7167
STRIP=$ac_cv_prog_STRIP
7168
if test -n "$STRIP"; then
7169
echo "$as_me:$LINENO: result: $STRIP" >&5
7170
echo "${ECHO_T}$STRIP" >&6
7172
echo "$as_me:$LINENO: result: no" >&5
7173
echo "${ECHO_T}no" >&6
7177
if test -z "$ac_cv_prog_STRIP"; then
7179
# Extract the first word of "strip", so it can be a program name with args.
7180
set dummy strip; ac_word=$2
7181
echo "$as_me:$LINENO: checking for $ac_word" >&5
7182
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7183
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7184
echo $ECHO_N "(cached) $ECHO_C" >&6
7186
if test -n "$ac_ct_STRIP"; then
7187
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7189
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193
test -z "$as_dir" && as_dir=.
7194
for ac_exec_ext in '' $ac_executable_extensions; do
7195
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7196
ac_cv_prog_ac_ct_STRIP="strip"
7197
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7203
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7206
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7207
if test -n "$ac_ct_STRIP"; then
7208
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7209
echo "${ECHO_T}$ac_ct_STRIP" >&6
7211
echo "$as_me:$LINENO: result: no" >&5
7212
echo "${ECHO_T}no" >&6
7217
STRIP="$ac_cv_prog_STRIP"
7222
old_CFLAGS="$CFLAGS"
7224
# Set sane defaults for various variables
7225
test -z "$AR" && AR=ar
7226
test -z "$AR_FLAGS" && AR_FLAGS=cru
7227
test -z "$AS" && AS=as
7228
test -z "$CC" && CC=cc
7229
test -z "$LTCC" && LTCC=$CC
7230
test -z "$DLLTOOL" && DLLTOOL=dlltool
7231
test -z "$LD" && LD=ld
7232
test -z "$LN_S" && LN_S="ln -s"
7233
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7234
test -z "$NM" && NM=nm
7235
test -z "$SED" && SED=sed
7236
test -z "$OBJDUMP" && OBJDUMP=objdump
7237
test -z "$RANLIB" && RANLIB=:
7238
test -z "$STRIP" && STRIP=:
7239
test -z "$ac_objext" && ac_objext=o
7241
# Determine commands to create old-style static archives.
7242
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7243
old_postinstall_cmds='chmod 644 $oldlib'
7244
old_postuninstall_cmds=
7246
if test -n "$RANLIB"; then
7249
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7252
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7255
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7258
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
7260
# Only perform the check for file, if the check method requires it
7261
case $deplibs_check_method in
7263
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7264
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7265
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7266
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7267
echo $ECHO_N "(cached) $ECHO_C" >&6
7271
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7274
lt_save_MAGIC_CMD="$MAGIC_CMD"
7275
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7276
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7277
for ac_dir in $ac_dummy; do
7279
test -z "$ac_dir" && ac_dir=.
7280
if test -f $ac_dir/${ac_tool_prefix}file; then
7281
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7282
if test -n "$file_magic_test_file"; then
7283
case $deplibs_check_method in
7285
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7286
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7287
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7288
$EGREP "$file_magic_regex" > /dev/null; then
7293
*** Warning: the command libtool uses to detect shared libraries,
7294
*** $file_magic_cmd, produces output that libtool cannot recognize.
7295
*** The result is that libtool may fail to recognize shared libraries
7296
*** as such. This will affect the creation of libtool libraries that
7297
*** depend on shared libraries, but programs linked with such libtool
7298
*** libraries will work regardless of this problem. Nevertheless, you
7299
*** may want to report the problem to your system manager and/or to
7300
*** bug-libtool@gnu.org
7310
MAGIC_CMD="$lt_save_MAGIC_CMD"
7315
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7316
if test -n "$MAGIC_CMD"; then
7317
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7318
echo "${ECHO_T}$MAGIC_CMD" >&6
7320
echo "$as_me:$LINENO: result: no" >&5
7321
echo "${ECHO_T}no" >&6
7324
if test -z "$lt_cv_path_MAGIC_CMD"; then
7325
if test -n "$ac_tool_prefix"; then
7326
echo "$as_me:$LINENO: checking for file" >&5
7327
echo $ECHO_N "checking for file... $ECHO_C" >&6
7328
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7329
echo $ECHO_N "(cached) $ECHO_C" >&6
7333
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7336
lt_save_MAGIC_CMD="$MAGIC_CMD"
7337
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7338
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7339
for ac_dir in $ac_dummy; do
7341
test -z "$ac_dir" && ac_dir=.
7342
if test -f $ac_dir/file; then
7343
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7344
if test -n "$file_magic_test_file"; then
7345
case $deplibs_check_method in
7347
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7348
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7349
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7350
$EGREP "$file_magic_regex" > /dev/null; then
7355
*** Warning: the command libtool uses to detect shared libraries,
7356
*** $file_magic_cmd, produces output that libtool cannot recognize.
7357
*** The result is that libtool may fail to recognize shared libraries
7358
*** as such. This will affect the creation of libtool libraries that
7359
*** depend on shared libraries, but programs linked with such libtool
7360
*** libraries will work regardless of this problem. Nevertheless, you
7361
*** may want to report the problem to your system manager and/or to
7362
*** bug-libtool@gnu.org
7372
MAGIC_CMD="$lt_save_MAGIC_CMD"
7377
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7378
if test -n "$MAGIC_CMD"; then
7379
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7380
echo "${ECHO_T}$MAGIC_CMD" >&6
7382
echo "$as_me:$LINENO: result: no" >&5
7383
echo "${ECHO_T}no" >&6
7398
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7399
if test "${enable_libtool_lock+set}" = set; then
7400
enableval="$enable_libtool_lock"
7403
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7406
# Check whether --with-pic or --without-pic was given.
7407
if test "${with_pic+set}" = set; then
7413
test -z "$pic_mode" && pic_mode=default
7415
# Use C for the default configuration in the libtool script
7419
ac_cpp='$CPP $CPPFLAGS'
7420
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7421
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7422
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7425
# Source file extension for C test sources.
7428
# Object file extension for compiled C test sources.
7432
# Code to be used in simple compile tests
7433
lt_simple_compile_test_code="int some_variable = 0;\n"
7435
# Code to be used in simple link tests
7436
lt_simple_link_test_code='int main(){return(0);}\n'
7439
# If no C compiler was specified, use CC.
7442
# Allow CC to be a program name with arguments.
7447
# Check for any special shared library compilation flags.
7450
if test "$GCC" = no; then
7453
lt_prog_cc_shlib='-belf'
7457
if test -n "$lt_prog_cc_shlib"; then
7458
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7459
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7460
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7462
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7463
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7464
lt_cv_prog_cc_can_build_shared=no
7470
# Check to make sure the static flag actually works.
7472
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7473
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7474
if test "${lt_prog_compiler_static_works+set}" = set; then
7475
echo $ECHO_N "(cached) $ECHO_C" >&6
7477
lt_prog_compiler_static_works=no
7478
save_LDFLAGS="$LDFLAGS"
7479
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7480
printf "$lt_simple_link_test_code" > conftest.$ac_ext
7481
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7482
# The compiler can only warn and ignore the option if not recognized
7483
# So say no if there are warnings
7484
if test -s conftest.err; then
7485
# Append any errors to the config.log.
7486
cat conftest.err 1>&5
7488
lt_prog_compiler_static_works=yes
7492
LDFLAGS="$save_LDFLAGS"
7495
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7496
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7498
if test x"$lt_prog_compiler_static_works" = xyes; then
7501
lt_prog_compiler_static=
7507
lt_prog_compiler_no_builtin_flag=
7509
if test "$GCC" = yes; then
7510
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7513
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7514
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7515
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7516
echo $ECHO_N "(cached) $ECHO_C" >&6
7518
lt_cv_prog_compiler_rtti_exceptions=no
7519
ac_outfile=conftest.$ac_objext
7520
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7521
lt_compiler_flag="-fno-rtti -fno-exceptions"
7522
# Insert the option either (1) after the last *FLAGS variable, or
7523
# (2) before a word containing "conftest.", or (3) at the end.
7524
# Note that $ac_compile itself does not contain backslashes and begins
7525
# with a dollar sign (not a hyphen), so the echo should work correctly.
7526
# The option is referenced via a variable to avoid confusing sed.
7527
lt_compile=`echo "$ac_compile" | $SED \
7528
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7529
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7530
-e 's:$: $lt_compiler_flag:'`
7531
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7532
(eval "$lt_compile" 2>conftest.err)
7534
cat conftest.err >&5
7535
echo "$as_me:__oline__: \$? = $ac_status" >&5
7536
if (exit $ac_status) && test -s "$ac_outfile"; then
7537
# The compiler can only warn and ignore the option if not recognized
7538
# So say no if there are warnings
7539
if test ! -s conftest.err; then
7540
lt_cv_prog_compiler_rtti_exceptions=yes
7546
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7547
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7549
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7550
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7557
lt_prog_compiler_wl=
7558
lt_prog_compiler_pic=
7559
lt_prog_compiler_static=
7561
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7562
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7564
if test "$GCC" = yes; then
7565
lt_prog_compiler_wl='-Wl,'
7566
lt_prog_compiler_static='-static'
7570
# All AIX code is PIC.
7571
if test "$host_cpu" = ia64; then
7572
# AIX 5 now supports IA64 processor
7573
lt_prog_compiler_static='-Bstatic'
7578
# FIXME: we need at least 68020 code to build shared libraries, but
7579
# adding the `-m68020' flag to GCC prevents building anything better,
7581
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7584
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7585
# PIC is the default for these OSes.
7588
mingw* | pw32* | os2*)
7589
# This hack is so that the source file can tell whether it is being
7590
# built for inclusion in a dll (and should export symbols for example).
7591
lt_prog_compiler_pic='-DDLL_EXPORT'
7594
darwin* | rhapsody*)
7595
# PIC is the default on this platform
7596
# Common symbols not allowed in MH_DYLIB files
7597
lt_prog_compiler_pic='-fno-common'
7601
# Just because we use GCC doesn't mean we suddenly get shared libraries
7602
# on systems that don't support them.
7603
lt_prog_compiler_can_build_shared=no
7608
if test -d /usr/nec; then
7609
lt_prog_compiler_pic=-Kconform_pic
7614
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7621
lt_prog_compiler_pic='-fPIC'
7627
lt_prog_compiler_pic='-fPIC'
7631
# PORTME Check for flag to pass linker flags through the system compiler.
7634
lt_prog_compiler_wl='-Wl,'
7635
if test "$host_cpu" = ia64; then
7636
# AIX 5 now supports IA64 processor
7637
lt_prog_compiler_static='-Bstatic'
7639
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7643
# PIC is the default on this platform
7644
# Common symbols not allowed in MH_DYLIB files
7645
case "$cc_basename" in
7647
lt_prog_compiler_pic='-qnocommon'
7648
lt_prog_compiler_wl='-Wl,'
7653
mingw* | pw32* | os2*)
7654
# This hack is so that the source file can tell whether it is being
7655
# built for inclusion in a dll (and should export symbols for example).
7656
lt_prog_compiler_pic='-DDLL_EXPORT'
7659
hpux9* | hpux10* | hpux11*)
7660
lt_prog_compiler_wl='-Wl,'
7661
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7668
lt_prog_compiler_pic='+Z'
7671
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7672
lt_prog_compiler_static='${wl}-a ${wl}archive'
7675
irix5* | irix6* | nonstopux*)
7676
lt_prog_compiler_wl='-Wl,'
7677
# PIC (with -KPIC) is the default.
7678
lt_prog_compiler_static='-non_shared'
7682
lt_prog_compiler_pic='-KPIC'
7683
lt_prog_compiler_static='-Bstatic'
7687
case $cc_basename in
7689
lt_prog_compiler_wl='-Wl,'
7690
lt_prog_compiler_pic='-KPIC'
7691
lt_prog_compiler_static='-static'
7693
pgcc | pgf77 | pgf90)
7694
# Portland Group compilers (*not* the Pentium gcc compiler,
7695
# which looks to be a dead project)
7696
lt_prog_compiler_wl='-Wl,'
7697
lt_prog_compiler_pic='-fpic'
7698
lt_prog_compiler_static='-static'
7701
lt_prog_compiler_wl='-Wl,'
7702
# All Alpha code is PIC.
7703
lt_prog_compiler_static='-non_shared'
7708
osf3* | osf4* | osf5*)
7709
lt_prog_compiler_wl='-Wl,'
7710
# All OSF/1 code is PIC.
7711
lt_prog_compiler_static='-non_shared'
7715
lt_prog_compiler_pic='-Kpic'
7716
lt_prog_compiler_static='-dn'
7720
lt_prog_compiler_wl='-Wl,'
7721
lt_prog_compiler_pic='-KPIC'
7722
lt_prog_compiler_static='-Bstatic'
7726
lt_prog_compiler_wl='-Qoption ld '
7727
lt_prog_compiler_pic='-PIC'
7728
lt_prog_compiler_static='-Bstatic'
7731
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7732
lt_prog_compiler_wl='-Wl,'
7733
lt_prog_compiler_pic='-KPIC'
7734
lt_prog_compiler_static='-Bstatic'
7738
if test -d /usr/nec ;then
7739
lt_prog_compiler_pic='-Kconform_pic'
7740
lt_prog_compiler_static='-Bstatic'
7745
lt_prog_compiler_wl='-Wl,'
7746
lt_prog_compiler_can_build_shared=no
7750
lt_prog_compiler_pic='-pic'
7751
lt_prog_compiler_static='-Bstatic'
7755
lt_prog_compiler_can_build_shared=no
7760
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7761
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7764
# Check to make sure the PIC flag actually works.
7766
if test -n "$lt_prog_compiler_pic"; then
7768
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7769
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7770
if test "${lt_prog_compiler_pic_works+set}" = set; then
7771
echo $ECHO_N "(cached) $ECHO_C" >&6
7773
lt_prog_compiler_pic_works=no
7774
ac_outfile=conftest.$ac_objext
7775
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7776
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7777
# Insert the option either (1) after the last *FLAGS variable, or
7778
# (2) before a word containing "conftest.", or (3) at the end.
7779
# Note that $ac_compile itself does not contain backslashes and begins
7780
# with a dollar sign (not a hyphen), so the echo should work correctly.
7781
# The option is referenced via a variable to avoid confusing sed.
7782
lt_compile=`echo "$ac_compile" | $SED \
7783
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7784
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7785
-e 's:$: $lt_compiler_flag:'`
7786
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7787
(eval "$lt_compile" 2>conftest.err)
7789
cat conftest.err >&5
7790
echo "$as_me:__oline__: \$? = $ac_status" >&5
7791
if (exit $ac_status) && test -s "$ac_outfile"; then
7792
# The compiler can only warn and ignore the option if not recognized
7793
# So say no if there are warnings
7794
if test ! -s conftest.err; then
7795
lt_prog_compiler_pic_works=yes
7801
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7802
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7804
if test x"$lt_prog_compiler_pic_works" = xyes; then
7805
case $lt_prog_compiler_pic in
7807
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7810
lt_prog_compiler_pic=
7811
lt_prog_compiler_can_build_shared=no
7816
# For platforms which do not support PIC, -DPIC is meaningless:
7818
lt_prog_compiler_pic=
7821
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7825
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7826
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7827
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7828
echo $ECHO_N "(cached) $ECHO_C" >&6
7830
lt_cv_prog_compiler_c_o=no
7831
$rm -r conftest 2>/dev/null
7835
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7837
lt_compiler_flag="-o out/conftest2.$ac_objext"
7838
# Insert the option either (1) after the last *FLAGS variable, or
7839
# (2) before a word containing "conftest.", or (3) at the end.
7840
# Note that $ac_compile itself does not contain backslashes and begins
7841
# with a dollar sign (not a hyphen), so the echo should work correctly.
7842
lt_compile=`echo "$ac_compile" | $SED \
7843
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7844
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7845
-e 's:$: $lt_compiler_flag:'`
7846
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7847
(eval "$lt_compile" 2>out/conftest.err)
7849
cat out/conftest.err >&5
7850
echo "$as_me:__oline__: \$? = $ac_status" >&5
7851
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7853
# The compiler can only warn and ignore the option if not recognized
7854
# So say no if there are warnings
7855
if test ! -s out/conftest.err; then
7856
lt_cv_prog_compiler_c_o=yes
7861
# SGI C++ compiler will create directory out/ii_files/ for
7862
# template instantiation
7863
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7864
$rm out/* && rmdir out
7870
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7871
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7874
hard_links="nottested"
7875
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7876
# do not overwrite the value of need_locks provided by the user
7877
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7878
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7881
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7883
ln conftest.a conftest.b 2>&5 || hard_links=no
7884
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7885
echo "$as_me:$LINENO: result: $hard_links" >&5
7886
echo "${ECHO_T}$hard_links" >&6
7887
if test "$hard_links" = no; then
7888
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7889
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7896
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7897
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7900
allow_undefined_flag=
7901
enable_shared_with_static_runtimes=no
7903
archive_expsym_cmds=
7904
old_archive_From_new_cmds=
7905
old_archive_from_expsyms_cmds=
7906
export_dynamic_flag_spec=
7907
whole_archive_flag_spec=
7908
thread_safe_flag_spec=
7909
hardcode_libdir_flag_spec=
7910
hardcode_libdir_flag_spec_ld=
7911
hardcode_libdir_separator=
7914
hardcode_shlibpath_var=unsupported
7915
link_all_deplibs=unknown
7916
hardcode_automatic=no
7919
always_export_symbols=no
7920
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7921
# include_expsyms should be a list of space-separated symbols to be *always*
7922
# included in the symbol list
7924
# exclude_expsyms can be an extended regexp of symbols to exclude
7925
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7926
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7927
# as well as any symbol that contains `d'.
7928
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7929
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7930
# platforms (ab)use it in PIC code, but their linkers get confused if
7931
# the symbol is explicitly referenced. Since portable code cannot
7932
# rely on this symbol name, it's probably fine to never include it in
7933
# preloaded symbol tables.
7934
extract_expsyms_cmds=
7937
cygwin* | mingw* | pw32*)
7938
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7939
# When not using gcc, we currently assume that we are using
7940
# Microsoft Visual C++.
7941
if test "$GCC" != yes; then
7951
if test "$with_gnu_ld" = yes; then
7952
# If archive_cmds runs LD, not CC, wlarc should be empty
7955
# See if GNU ld supports shared libraries.
7957
aix3* | aix4* | aix5*)
7958
# On AIX/PPC, the GNU linker is very broken
7959
if test "$host_cpu" != ia64; then
7963
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7964
*** to be unable to reliably create shared libraries on AIX.
7965
*** Therefore, libtool is disabling shared libraries support. If you
7966
*** really care for shared libraries, you may want to modify your PATH
7967
*** so that a non-GNU linker is found, and then restart.
7974
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)'
7975
hardcode_libdir_flag_spec='-L$libdir'
7976
hardcode_minus_L=yes
7978
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7979
# that the semantics of dynamic libraries on AmigaOS, at least up
7980
# to version 4, is to share data among multiple programs linked
7981
# with the same dynamic library. Since this doesn't match the
7982
# behavior of shared libraries on other platforms, we can't use
7988
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7989
allow_undefined_flag=unsupported
7990
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7991
# support --undefined. This deserves some investigation. FIXME
7992
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7998
cygwin* | mingw* | pw32*)
7999
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8000
# as there is no search path for DLLs.
8001
hardcode_libdir_flag_spec='-L$libdir'
8002
allow_undefined_flag=unsupported
8003
always_export_symbols=no
8004
enable_shared_with_static_runtimes=yes
8005
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8007
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8008
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8009
# If the export-symbols file already is a .def file (1st line
8010
# is EXPORTS), use it as is; otherwise, prepend...
8011
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8012
cp $export_symbols $output_objdir/$soname.def;
8014
echo EXPORTS > $output_objdir/$soname.def;
8015
cat $export_symbols >> $output_objdir/$soname.def;
8017
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8024
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8025
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8028
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8029
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8034
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8038
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8039
*** create shared libraries on Solaris systems. Therefore, libtool
8040
*** is disabling shared libraries support. We urge you to upgrade GNU
8041
*** binutils to release 2.9.1 or newer. Another option is to modify
8042
*** your PATH or compiler configuration so that the native linker is
8043
*** used, and then restart.
8046
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8047
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8048
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8055
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8058
hardcode_shlibpath_var=no
8062
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8064
case $CC,$host_cpu in
8065
pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
8066
tmp_addflag=' -fpic' ;;
8067
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8068
tmp_addflag=' -i_dynamic' ;;
8069
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8070
tmp_addflag=' -i_dynamic -nofor_main' ;;
8071
ifc* | ifort*) # Intel Fortran compiler
8072
tmp_addflag=' -nofor_main' ;;
8074
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8075
supports_anon_versioning=no
8076
case `$LD -v 2>/dev/null` in
8077
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8078
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8079
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8080
*\ 2.11.*) ;; # other 2.11 versions
8081
*) supports_anon_versioning=yes ;;
8083
if test $supports_anon_versioning = yes; then
8084
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8085
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8086
$echo "local: *; };" >> $output_objdir/$libname.ver~
8087
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8089
archive_expsym_cmds=$archive_cmds
8097
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8098
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8099
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8106
if test "$ld_shlibs" = yes; then
8107
runpath_var=LD_RUN_PATH
8108
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8109
export_dynamic_flag_spec='${wl}--export-dynamic'
8110
# ancient GNU ld didn't support --whole-archive et. al.
8111
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8112
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8114
whole_archive_flag_spec=
8118
# PORTME fill in a description of your system's linker (not GNU ld)
8121
allow_undefined_flag=unsupported
8122
always_export_symbols=yes
8123
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'
8124
# Note: this linker hardcodes the directories in LIBPATH if there
8125
# are no directories specified by -L.
8126
hardcode_minus_L=yes
8127
if test "$GCC" = yes && test -z "$link_static_flag"; then
8128
# Neither direct hardcoding nor static linking is supported with a
8130
hardcode_direct=unsupported
8135
if test "$host_cpu" = ia64; then
8136
# On IA64, the linker does run time linking by default, so we don't
8137
# have to do anything special.
8138
aix_use_runtimelinking=no
8139
exp_sym_flag='-Bexport'
8142
# If we're using GNU nm, then we don't want the "-C" option.
8143
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8144
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8145
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'
8147
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'
8149
aix_use_runtimelinking=no
8151
# Test if we are trying to use run time linking or normal
8152
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8153
# need to do runtime linking.
8154
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8155
for ld_flag in $LDFLAGS; do
8156
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8157
aix_use_runtimelinking=yes
8163
exp_sym_flag='-bexport'
8164
no_entry_flag='-bnoentry'
8167
# When large executables or shared objects are built, AIX ld can
8168
# have problems creating the table of contents. If linking a library
8169
# or program results in "error TOC overflow" add -mminimal-toc to
8170
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8171
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8175
hardcode_libdir_separator=':'
8176
link_all_deplibs=yes
8178
if test "$GCC" = yes; then
8179
case $host_os in aix4.[012]|aix4.[012].*)
8180
# We only want to do this on AIX 4.2 and lower, the check
8181
# below for broken collect2 doesn't work under 4.3+
8182
collect2name=`${CC} -print-prog-name=collect2`
8183
if test -f "$collect2name" && \
8184
strings "$collect2name" | grep resolve_lib_name >/dev/null
8186
# We have reworked collect2
8189
# We have old collect2
8190
hardcode_direct=unsupported
8191
# It fails to find uninstalled libraries when the uninstalled
8192
# path is not listed in the libpath. Setting hardcode_minus_L
8193
# to unsupported forces relinking
8194
hardcode_minus_L=yes
8195
hardcode_libdir_flag_spec='-L$libdir'
8196
hardcode_libdir_separator=
8199
shared_flag='-shared'
8200
if test "$aix_use_runtimelinking" = yes; then
8201
shared_flag="$shared_flag "'${wl}-G'
8205
if test "$host_cpu" = ia64; then
8206
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8207
# chokes on -Wl,-G. The following line is correct:
8210
if test "$aix_use_runtimelinking" = yes; then
8211
shared_flag='${wl}-G'
8213
shared_flag='${wl}-bM:SRE'
8218
# It seems that -bexpall does not export symbols beginning with
8219
# underscore (_), so it is better to generate a list of symbols to export.
8220
always_export_symbols=yes
8221
if test "$aix_use_runtimelinking" = yes; then
8222
# Warning - without using the other runtime loading flags (-brtl),
8223
# -berok will link without error, but may produce a broken library.
8224
allow_undefined_flag='-berok'
8225
# Determine the default libpath from the value encoded in an empty executable.
8226
cat >conftest.$ac_ext <<_ACEOF
8229
cat confdefs.h >>conftest.$ac_ext
8230
cat >>conftest.$ac_ext <<_ACEOF
8231
/* end confdefs.h. */
8241
rm -f conftest.$ac_objext conftest$ac_exeext
8242
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8243
(eval $ac_link) 2>conftest.er1
8245
grep -v '^ *+' conftest.er1 >conftest.err
8247
cat conftest.err >&5
8248
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249
(exit $ac_status); } &&
8250
{ ac_try='test -z "$ac_c_werror_flag"
8251
|| test ! -s conftest.err'
8252
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8255
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256
(exit $ac_status); }; } &&
8257
{ ac_try='test -s conftest$ac_exeext'
8258
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262
(exit $ac_status); }; }; then
8264
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8266
# Check for a 64-bit object if we didn't find anything.
8267
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; }
8270
echo "$as_me: failed program was:" >&5
8271
sed 's/^/| /' conftest.$ac_ext >&5
8274
rm -f conftest.err conftest.$ac_objext \
8275
conftest$ac_exeext conftest.$ac_ext
8276
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8278
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8279
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"
8281
if test "$host_cpu" = ia64; then
8282
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8283
allow_undefined_flag="-z nodefs"
8284
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"
8286
# Determine the default libpath from the value encoded in an empty executable.
8287
cat >conftest.$ac_ext <<_ACEOF
8290
cat confdefs.h >>conftest.$ac_ext
8291
cat >>conftest.$ac_ext <<_ACEOF
8292
/* end confdefs.h. */
8302
rm -f conftest.$ac_objext conftest$ac_exeext
8303
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8304
(eval $ac_link) 2>conftest.er1
8306
grep -v '^ *+' conftest.er1 >conftest.err
8308
cat conftest.err >&5
8309
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310
(exit $ac_status); } &&
8311
{ ac_try='test -z "$ac_c_werror_flag"
8312
|| test ! -s conftest.err'
8313
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317
(exit $ac_status); }; } &&
8318
{ ac_try='test -s conftest$ac_exeext'
8319
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323
(exit $ac_status); }; }; then
8325
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8327
# Check for a 64-bit object if we didn't find anything.
8328
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; }
8331
echo "$as_me: failed program was:" >&5
8332
sed 's/^/| /' conftest.$ac_ext >&5
8335
rm -f conftest.err conftest.$ac_objext \
8336
conftest$ac_exeext conftest.$ac_ext
8337
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8339
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8340
# Warning - without using the other run time loading flags,
8341
# -berok will link without error, but may produce a broken library.
8342
no_undefined_flag=' ${wl}-bernotok'
8343
allow_undefined_flag=' ${wl}-berok'
8344
# -bexpall does not export symbols beginning with underscore (_)
8345
always_export_symbols=yes
8346
# Exported symbols can be pulled into shared objects from archives
8347
whole_archive_flag_spec=' '
8348
archive_cmds_need_lc=yes
8349
# This is similar to how AIX traditionally builds it's shared libraries.
8350
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'
8356
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)'
8357
hardcode_libdir_flag_spec='-L$libdir'
8358
hardcode_minus_L=yes
8359
# see comment about different semantics on the GNU ld section
8364
export_dynamic_flag_spec=-rdynamic
8367
cygwin* | mingw* | pw32*)
8368
# When not using gcc, we currently assume that we are using
8369
# Microsoft Visual C++.
8370
# hardcode_libdir_flag_spec is actually meaningless, as there is
8371
# no search path for DLLs.
8372
hardcode_libdir_flag_spec=' '
8373
allow_undefined_flag=unsupported
8374
# Tell ltmain to make .lib files, not .a files.
8376
# Tell ltmain to make .dll files, not .so files.
8378
# FIXME: Setting linknames here is a bad hack.
8379
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8380
# The linker will automatically build a .lib file if we build a DLL.
8381
old_archive_From_new_cmds='true'
8382
# FIXME: Should let the user specify the lib program.
8383
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8384
fix_srcfile_path='`cygpath -w "$srcfile"`'
8385
enable_shared_with_static_runtimes=yes
8388
darwin* | rhapsody*)
8390
rhapsody* | darwin1.[012])
8391
allow_undefined_flag='${wl}-undefined ${wl}suppress'
8394
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8395
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8397
case ${MACOSX_DEPLOYMENT_TARGET} in
8399
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8402
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8408
archive_cmds_need_lc=no
8410
hardcode_automatic=yes
8411
hardcode_shlibpath_var=unsupported
8412
whole_archive_flag_spec=''
8413
link_all_deplibs=yes
8414
if test "$GCC" = yes ; then
8415
output_verbose_link_cmd='echo'
8416
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8417
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8418
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8419
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}'
8420
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}'
8422
case "$cc_basename" in
8424
output_verbose_link_cmd='echo'
8425
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8426
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8427
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8428
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}'
8429
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}'
8439
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8440
hardcode_libdir_flag_spec='-L$libdir'
8441
hardcode_shlibpath_var=no
8448
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8449
# support. Future versions do this automatically, but an explicit c++rt0.o
8450
# does not break anything, and helps significantly (at the cost of a little
8453
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8454
hardcode_libdir_flag_spec='-R$libdir'
8456
hardcode_shlibpath_var=no
8459
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8461
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8463
hardcode_minus_L=yes
8464
hardcode_shlibpath_var=no
8467
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8468
freebsd* | kfreebsd*-gnu | dragonfly*)
8469
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8470
hardcode_libdir_flag_spec='-R$libdir'
8472
hardcode_shlibpath_var=no
8476
if test "$GCC" = yes; then
8477
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'
8479
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'
8481
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8482
hardcode_libdir_separator=:
8485
# hardcode_minus_L: Not really in the search PATH,
8486
# but as the default location of the library.
8487
hardcode_minus_L=yes
8488
export_dynamic_flag_spec='${wl}-E'
8492
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8495
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8498
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8504
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8507
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8511
if test "$with_gnu_ld" = no; then
8514
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8515
hardcode_libdir_flag_spec_ld='+b $libdir'
8516
hardcode_libdir_separator=:
8518
hardcode_shlibpath_var=no
8521
hardcode_libdir_flag_spec='-L$libdir'
8523
hardcode_shlibpath_var=no
8525
# hardcode_minus_L: Not really in the search PATH,
8526
# but as the default location of the library.
8527
hardcode_minus_L=yes
8530
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8531
hardcode_libdir_separator=:
8533
export_dynamic_flag_spec='${wl}-E'
8535
# hardcode_minus_L: Not really in the search PATH,
8536
# but as the default location of the library.
8537
hardcode_minus_L=yes
8543
irix5* | irix6* | nonstopux*)
8544
if test "$GCC" = yes; then
8545
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'
8547
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'
8548
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8550
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8551
hardcode_libdir_separator=:
8552
link_all_deplibs=yes
8556
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8557
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8559
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8561
hardcode_libdir_flag_spec='-R$libdir'
8563
hardcode_shlibpath_var=no
8567
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8569
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8570
hardcode_libdir_separator=:
8571
hardcode_shlibpath_var=no
8576
hardcode_shlibpath_var=no
8577
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8578
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8579
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8580
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8581
export_dynamic_flag_spec='${wl}-E'
8584
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8585
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8586
hardcode_libdir_flag_spec='-R$libdir'
8589
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8590
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8597
hardcode_libdir_flag_spec='-L$libdir'
8598
hardcode_minus_L=yes
8599
allow_undefined_flag=unsupported
8600
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'
8601
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8605
if test "$GCC" = yes; then
8606
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8607
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'
8609
allow_undefined_flag=' -expect_unresolved \*'
8610
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'
8612
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8613
hardcode_libdir_separator=:
8616
osf4* | osf5*) # as osf3* with the addition of -msym flag
8617
if test "$GCC" = yes; then
8618
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8619
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'
8620
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8622
allow_undefined_flag=' -expect_unresolved \*'
8623
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'
8624
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8625
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
8627
# Both c and cxx compiler support -rpath directly
8628
hardcode_libdir_flag_spec='-rpath $libdir'
8630
hardcode_libdir_separator=:
8634
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8635
hardcode_shlibpath_var=no
8636
export_dynamic_flag_spec='${wl}-Bexport'
8637
runpath_var=LD_RUN_PATH
8638
hardcode_runpath_var=yes
8642
no_undefined_flag=' -z text'
8643
if test "$GCC" = yes; then
8644
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8645
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8646
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8648
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8649
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8650
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8652
hardcode_libdir_flag_spec='-R$libdir'
8653
hardcode_shlibpath_var=no
8655
solaris2.[0-5] | solaris2.[0-5].*) ;;
8656
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
8657
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
8659
link_all_deplibs=yes
8663
if test "x$host_vendor" = xsequent; then
8664
# Use $CC to link under sequent, because it throws in some extra .o
8665
# files that make .init and .fini sections work.
8666
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8668
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8670
hardcode_libdir_flag_spec='-L$libdir'
8672
hardcode_minus_L=yes
8673
hardcode_shlibpath_var=no
8677
case $host_vendor in
8679
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8680
hardcode_direct=yes # is this really true???
8683
## LD is ld it makes a PLAMLIB
8684
## CC just makes a GrossModule.
8685
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8686
reload_cmds='$CC -r -o $output$reload_objs'
8690
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8691
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8694
runpath_var='LD_RUN_PATH'
8695
hardcode_shlibpath_var=no
8699
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8700
hardcode_shlibpath_var=no
8701
export_dynamic_flag_spec='-Bexport'
8705
if test -d /usr/nec; then
8706
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8707
hardcode_shlibpath_var=no
8708
runpath_var=LD_RUN_PATH
8709
hardcode_runpath_var=yes
8715
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8718
hardcode_shlibpath_var=no
8719
hardcode_runpath_var=yes
8720
runpath_var=LD_RUN_PATH
8723
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8724
no_undefined_flag='${wl}-z ${wl}text'
8725
if test "$GCC" = yes; then
8726
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8728
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8730
runpath_var='LD_RUN_PATH'
8731
hardcode_shlibpath_var=no
8735
no_undefined_flag=' -z text'
8736
# $CC -shared without GNU ld will not create a library from C++
8737
# object files and a static libstdc++, better avoid it by now
8738
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8739
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8740
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8741
hardcode_libdir_flag_spec=
8742
hardcode_shlibpath_var=no
8743
runpath_var='LD_RUN_PATH'
8747
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8748
hardcode_libdir_flag_spec='-L$libdir'
8749
hardcode_shlibpath_var=no
8758
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8759
echo "${ECHO_T}$ld_shlibs" >&6
8760
test "$ld_shlibs" = no && can_build_shared=no
8762
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8763
if test "$GCC" = yes; then
8764
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8768
# Do we need to explicitly link libc?
8770
case "x$archive_cmds_need_lc" in
8772
# Assume -lc should be added
8773
archive_cmds_need_lc=yes
8775
if test "$enable_shared" = yes && test "$GCC" = yes; then
8776
case $archive_cmds in
8778
# FIXME: we may have to deal with multi-command sequences.
8781
# Test whether the compiler implicitly links with -lc since on some
8782
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8783
# to ld, don't add -lc before -lgcc.
8784
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8785
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8787
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8789
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8790
(eval $ac_compile) 2>&5
8792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793
(exit $ac_status); } 2>conftest.err; then
8796
libobjs=conftest.$ac_objext
8798
wl=$lt_prog_compiler_wl
8804
lt_save_allow_undefined_flag=$allow_undefined_flag
8805
allow_undefined_flag=
8806
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8807
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8809
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810
(exit $ac_status); }
8812
archive_cmds_need_lc=no
8814
archive_cmds_need_lc=yes
8816
allow_undefined_flag=$lt_save_allow_undefined_flag
8818
cat conftest.err 1>&5
8821
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8822
echo "${ECHO_T}$archive_cmds_need_lc" >&6
8829
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8830
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8832
libname_spec='lib$name'
8840
shlibpath_overrides_runpath=unknown
8842
dynamic_linker="$host_os ld.so"
8843
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8844
if test "$GCC" = yes; then
8845
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8846
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8847
# if the path contains ";" then we assume it to be the separator
8848
# otherwise default to the standard path separator (i.e. ":") - it is
8849
# assumed that no part of a normal pathname contains ";" but that should
8850
# okay in the real world where ";" in dirpaths is itself problematic.
8851
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8853
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8856
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8858
need_lib_prefix=unknown
8859
hardcode_into_libs=no
8861
# when you set need_version to no, make sure it does not cause -set_version
8862
# flags to be left without arguments
8863
need_version=unknown
8868
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8869
shlibpath_var=LIBPATH
8871
# AIX 3 has no versioning support, so we append a major version to the name.
8872
soname_spec='${libname}${release}${shared_ext}$major'
8879
hardcode_into_libs=yes
8880
if test "$host_cpu" = ia64; then
8881
# AIX 5 supports IA64
8882
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8883
shlibpath_var=LD_LIBRARY_PATH
8885
# With GCC up to 2.95.x, collect2 would create an import file
8886
# for dependence libraries. The import file would start with
8887
# the line `#! .'. This would cause the generated library to
8888
# depend on `.', always an invalid library. This was fixed in
8889
# development snapshots of GCC prior to 3.0.
8891
aix4 | aix4.[01] | aix4.[01].*)
8892
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8894
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8901
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8902
# soname into executable. Probably we can add versioning support to
8903
# collect2, so additional links can be useful in future.
8904
if test "$aix_use_runtimelinking" = yes; then
8905
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
8906
# instead of lib<name>.a to let people know that these are not
8907
# typical AIX shared libraries.
8908
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8910
# We preserve .a as extension for shared libraries through AIX4.2
8911
# and later when we are not doing run time linking.
8912
library_names_spec='${libname}${release}.a $libname.a'
8913
soname_spec='${libname}${release}${shared_ext}$major'
8915
shlibpath_var=LIBPATH
8920
library_names_spec='$libname.ixlibrary $libname.a'
8921
# Create ${libname}_ixlibrary.a entries in /sys/libs.
8922
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'
8926
library_names_spec='${libname}${shared_ext}'
8927
dynamic_linker="$host_os ld.so"
8928
shlibpath_var=LIBRARY_PATH
8934
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8935
soname_spec='${libname}${release}${shared_ext}$major'
8936
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8937
shlibpath_var=LD_LIBRARY_PATH
8938
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8939
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8940
# the default ld.so.conf also contains /usr/contrib/lib and
8941
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8942
# libtool to hard-code these into programs
8945
cygwin* | mingw* | pw32*)
8946
version_type=windows
8951
case $GCC,$host_os in
8952
yes,cygwin* | yes,mingw* | yes,pw32*)
8953
library_names_spec='$libname.dll.a'
8954
# DLL is installed to $(libdir)/../bin by postinstall_cmds
8955
postinstall_cmds='base_file=`basename \${file}`~
8956
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8957
dldir=$destdir/`dirname \$dlpath`~
8958
test -d \$dldir || mkdir -p \$dldir~
8959
$install_prog $dir/$dlname \$dldir/$dlname'
8960
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8961
dlpath=$dir/\$dldll~
8963
shlibpath_overrides_runpath=yes
8967
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
8968
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8969
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8972
# MinGW DLLs use traditional 'lib' prefix
8973
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8974
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8975
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8976
# It is most probably a Windows format PATH printed by
8977
# mingw gcc, but we are running on Cygwin. Gcc prints its search
8978
# path with ; separators, and with drive letters. We can handle the
8979
# drive letters (cygwin fileutils understands them), so leave them,
8980
# especially as we might pass files found there to a mingw objdump,
8981
# which wouldn't understand a cygwinified path. Ahh.
8982
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8984
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8988
# pw32 DLLs use 'pw' prefix rather than 'lib'
8989
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8995
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8998
dynamic_linker='Win32 ld.exe'
8999
# FIXME: first we should search . and the directory the executable is in
9003
darwin* | rhapsody*)
9004
dynamic_linker="$host_os dyld"
9008
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9009
soname_spec='${libname}${release}${major}$shared_ext'
9010
shlibpath_overrides_runpath=yes
9011
shlibpath_var=DYLD_LIBRARY_PATH
9012
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9013
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9014
if test "$GCC" = yes; then
9015
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"`
9017
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9019
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9026
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9027
soname_spec='${libname}${release}${shared_ext}$major'
9028
shlibpath_var=LD_LIBRARY_PATH
9039
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9040
soname_spec='${libname}${release}${shared_ext}$major'
9041
shlibpath_var=LD_LIBRARY_PATH
9042
shlibpath_overrides_runpath=no
9043
hardcode_into_libs=yes
9044
dynamic_linker='GNU ld.so'
9047
freebsd* | dragonfly*)
9048
# DragonFly does not have aout. When/if they implement a new
9049
# versioning mechanism, adjust this.
9050
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9051
version_type=freebsd-$objformat
9052
case $version_type in
9054
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9059
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9063
shlibpath_var=LD_LIBRARY_PATH
9066
shlibpath_overrides_runpath=yes
9068
freebsd3.[01]* | freebsdelf3.[01]*)
9069
shlibpath_overrides_runpath=yes
9070
hardcode_into_libs=yes
9073
shlibpath_overrides_runpath=no
9074
hardcode_into_libs=yes
9083
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9084
soname_spec='${libname}${release}${shared_ext}$major'
9085
shlibpath_var=LD_LIBRARY_PATH
9086
hardcode_into_libs=yes
9089
hpux9* | hpux10* | hpux11*)
9090
# Give a soname corresponding to the major version so that dld.sl refuses to
9091
# link against other versions.
9098
hardcode_into_libs=yes
9099
dynamic_linker="$host_os dld.so"
9100
shlibpath_var=LD_LIBRARY_PATH
9101
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9102
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9103
soname_spec='${libname}${release}${shared_ext}$major'
9104
if test "X$HPUX_IA64_MODE" = X32; then
9105
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9107
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9109
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9113
hardcode_into_libs=yes
9114
dynamic_linker="$host_os dld.sl"
9115
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9116
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9117
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9118
soname_spec='${libname}${release}${shared_ext}$major'
9119
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9120
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9124
dynamic_linker="$host_os dld.sl"
9125
shlibpath_var=SHLIB_PATH
9126
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9127
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9128
soname_spec='${libname}${release}${shared_ext}$major'
9131
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9132
postinstall_cmds='chmod 555 $lib'
9135
irix5* | irix6* | nonstopux*)
9137
nonstopux*) version_type=nonstopux ;;
9139
if test "$lt_cv_prog_gnu_ld" = yes; then
9147
soname_spec='${libname}${release}${shared_ext}$major'
9148
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9150
irix5* | nonstopux*)
9154
case $LD in # libtool.m4 will add one of these switches to LD
9155
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9156
libsuff= shlibsuff= libmagic=32-bit;;
9157
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9158
libsuff=32 shlibsuff=N32 libmagic=N32;;
9159
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9160
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9161
*) libsuff= shlibsuff= libmagic=never-match;;
9165
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9166
shlibpath_overrides_runpath=no
9167
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9168
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9169
hardcode_into_libs=yes
9172
# No shared lib support for Linux oldld, aout, or coff.
9173
linux*oldld* | linux*aout* | linux*coff*)
9177
# This must be Linux ELF.
9182
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183
soname_spec='${libname}${release}${shared_ext}$major'
9184
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9185
shlibpath_var=LD_LIBRARY_PATH
9186
shlibpath_overrides_runpath=no
9187
# This implies no fast_install, which is unacceptable.
9188
# Some rework will be needed to allow for fast_install
9189
# before this can be enabled.
9190
hardcode_into_libs=yes
9192
# Append ld.so.conf contents to the search path
9193
if test -f /etc/ld.so.conf; then
9194
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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9195
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9198
# We used to test for /lib/ld.so.1 and disable shared libraries on
9199
# powerpc, because MkLinux only supported shared libraries with the
9200
# GNU dynamic linker. Since this was broken with cross compilers,
9201
# most powerpc-linux boxes support dynamic linking these days and
9202
# people can always --disable-shared, the test was removed, and we
9203
# assume the GNU/Linux dynamic linker is in use.
9204
dynamic_linker='GNU/Linux ld.so'
9211
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9212
soname_spec='${libname}${release}${shared_ext}$major'
9213
shlibpath_var=LD_LIBRARY_PATH
9214
shlibpath_overrides_runpath=no
9215
hardcode_into_libs=yes
9216
dynamic_linker='GNU ld.so'
9223
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9224
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9225
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9226
dynamic_linker='NetBSD (a.out) ld.so'
9228
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9229
soname_spec='${libname}${release}${shared_ext}$major'
9230
dynamic_linker='NetBSD ld.elf_so'
9232
shlibpath_var=LD_LIBRARY_PATH
9233
shlibpath_overrides_runpath=yes
9234
hardcode_into_libs=yes
9239
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9240
shlibpath_var=LD_LIBRARY_PATH
9241
shlibpath_overrides_runpath=yes
9248
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9249
soname_spec='${libname}${release}${shared_ext}$major'
9250
shlibpath_var=LD_LIBRARY_PATH
9251
shlibpath_overrides_runpath=yes
9258
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9259
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9260
shlibpath_var=LD_LIBRARY_PATH
9261
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9263
openbsd2.[89] | openbsd2.[89].*)
9264
shlibpath_overrides_runpath=no
9267
shlibpath_overrides_runpath=yes
9271
shlibpath_overrides_runpath=yes
9276
libname_spec='$name'
9279
library_names_spec='$libname${shared_ext} $libname.a'
9280
dynamic_linker='OS/2 ld.exe'
9281
shlibpath_var=LIBPATH
9284
osf3* | osf4* | osf5*)
9288
soname_spec='${libname}${release}${shared_ext}$major'
9289
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9290
shlibpath_var=LD_LIBRARY_PATH
9291
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9292
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9297
soname_spec='${libname}${release}${shared_ext}$major'
9298
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9299
shlibpath_var=LD_LIBRARY_PATH
9306
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9307
soname_spec='${libname}${release}${shared_ext}$major'
9308
shlibpath_var=LD_LIBRARY_PATH
9309
shlibpath_overrides_runpath=yes
9310
hardcode_into_libs=yes
9311
# ldd complains unless libraries are executable
9312
postinstall_cmds='chmod +x $lib'
9317
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9318
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9319
shlibpath_var=LD_LIBRARY_PATH
9320
shlibpath_overrides_runpath=yes
9321
if test "$with_gnu_ld" = yes; then
9327
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9329
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9330
soname_spec='${libname}${release}${shared_ext}$major'
9331
shlibpath_var=LD_LIBRARY_PATH
9332
case $host_vendor in
9334
shlibpath_overrides_runpath=no
9336
export_dynamic_flag_spec='${wl}-Blargedynsym'
9337
runpath_var=LD_RUN_PATH
9345
shlibpath_overrides_runpath=no
9346
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9352
if test -d /usr/nec ;then
9354
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9355
soname_spec='$libname${shared_ext}.$major'
9356
shlibpath_var=LD_LIBRARY_PATH
9362
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9363
soname_spec='${libname}${release}${shared_ext}$major'
9364
shlibpath_var=LD_LIBRARY_PATH
9371
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9372
echo "${ECHO_T}$dynamic_linker" >&6
9373
test "$dynamic_linker" = no && can_build_shared=no
9375
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9376
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9378
if test -n "$hardcode_libdir_flag_spec" || \
9379
test -n "$runpath_var" || \
9380
test "X$hardcode_automatic" = "Xyes" ; then
9382
# We can hardcode non-existant directories.
9383
if test "$hardcode_direct" != no &&
9384
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9385
# have to relink, otherwise we might link with an installed library
9386
# when we should be linking with a yet-to-be-installed one
9387
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9388
test "$hardcode_minus_L" != no; then
9389
# Linking always hardcodes the temporary library directory.
9390
hardcode_action=relink
9392
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9393
hardcode_action=immediate
9396
# We cannot hardcode anything, or else we can only hardcode existing
9398
hardcode_action=unsupported
9400
echo "$as_me:$LINENO: result: $hardcode_action" >&5
9401
echo "${ECHO_T}$hardcode_action" >&6
9403
if test "$hardcode_action" = relink; then
9404
# Fast installation is not supported
9405
enable_fast_install=no
9406
elif test "$shlibpath_overrides_runpath" = yes ||
9407
test "$enable_shared" = no; then
9408
# Fast installation is not necessary
9409
enable_fast_install=needless
9414
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9415
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9416
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9417
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9418
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9419
echo "$as_me:$LINENO: result: yes" >&5
9420
echo "${ECHO_T}yes" >&6
9422
# FIXME - insert some real tests, host_os isn't really good enough
9425
if test -n "$STRIP" ; then
9426
striplib="$STRIP -x"
9427
echo "$as_me:$LINENO: result: yes" >&5
9428
echo "${ECHO_T}yes" >&6
9430
echo "$as_me:$LINENO: result: no" >&5
9431
echo "${ECHO_T}no" >&6
9435
echo "$as_me:$LINENO: result: no" >&5
9436
echo "${ECHO_T}no" >&6
9441
if test "x$enable_dlopen" != xyes; then
9442
enable_dlopen=unknown
9443
enable_dlopen_self=unknown
9444
enable_dlopen_self_static=unknown
9451
lt_cv_dlopen="load_add_on"
9453
lt_cv_dlopen_self=yes
9457
lt_cv_dlopen="LoadLibrary"
9462
lt_cv_dlopen="dlopen"
9467
# if libdl is installed we need to link against it
9468
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9469
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9470
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9471
echo $ECHO_N "(cached) $ECHO_C" >&6
9473
ac_check_lib_save_LIBS=$LIBS
9475
cat >conftest.$ac_ext <<_ACEOF
9478
cat confdefs.h >>conftest.$ac_ext
9479
cat >>conftest.$ac_ext <<_ACEOF
9480
/* end confdefs.h. */
9482
/* Override any gcc2 internal prototype to avoid an error. */
9486
/* We use char because int might match the return type of a gcc2
9487
builtin and then its argument prototype would still apply. */
9497
rm -f conftest.$ac_objext conftest$ac_exeext
9498
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9499
(eval $ac_link) 2>conftest.er1
9501
grep -v '^ *+' conftest.er1 >conftest.err
9503
cat conftest.err >&5
9504
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505
(exit $ac_status); } &&
9506
{ ac_try='test -z "$ac_c_werror_flag"
9507
|| test ! -s conftest.err'
9508
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512
(exit $ac_status); }; } &&
9513
{ ac_try='test -s conftest$ac_exeext'
9514
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9517
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518
(exit $ac_status); }; }; then
9519
ac_cv_lib_dl_dlopen=yes
9521
echo "$as_me: failed program was:" >&5
9522
sed 's/^/| /' conftest.$ac_ext >&5
9524
ac_cv_lib_dl_dlopen=no
9526
rm -f conftest.err conftest.$ac_objext \
9527
conftest$ac_exeext conftest.$ac_ext
9528
LIBS=$ac_check_lib_save_LIBS
9530
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9531
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9532
if test $ac_cv_lib_dl_dlopen = yes; then
9533
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9538
lt_cv_dlopen_self=yes
9545
echo "$as_me:$LINENO: checking for shl_load" >&5
9546
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9547
if test "${ac_cv_func_shl_load+set}" = set; then
9548
echo $ECHO_N "(cached) $ECHO_C" >&6
9550
cat >conftest.$ac_ext <<_ACEOF
9553
cat confdefs.h >>conftest.$ac_ext
9554
cat >>conftest.$ac_ext <<_ACEOF
9555
/* end confdefs.h. */
9556
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9557
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9558
#define shl_load innocuous_shl_load
9560
/* System header to define __stub macros and hopefully few prototypes,
9561
which can conflict with char shl_load (); below.
9562
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9563
<limits.h> exists even on freestanding compilers. */
9566
# include <limits.h>
9568
# include <assert.h>
9573
/* Override any gcc2 internal prototype to avoid an error. */
9578
/* We use char because int might match the return type of a gcc2
9579
builtin and then its argument prototype would still apply. */
9581
/* The GNU C library defines this for functions which it implements
9582
to always fail with ENOSYS. Some functions are actually named
9583
something starting with __ and the normal name is an alias. */
9584
#if defined (__stub_shl_load) || defined (__stub___shl_load)
9587
char (*f) () = shl_load;
9596
return f != shl_load;
9601
rm -f conftest.$ac_objext conftest$ac_exeext
9602
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9603
(eval $ac_link) 2>conftest.er1
9605
grep -v '^ *+' conftest.er1 >conftest.err
9607
cat conftest.err >&5
9608
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609
(exit $ac_status); } &&
9610
{ ac_try='test -z "$ac_c_werror_flag"
9611
|| test ! -s conftest.err'
9612
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9615
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616
(exit $ac_status); }; } &&
9617
{ ac_try='test -s conftest$ac_exeext'
9618
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9621
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622
(exit $ac_status); }; }; then
9623
ac_cv_func_shl_load=yes
9625
echo "$as_me: failed program was:" >&5
9626
sed 's/^/| /' conftest.$ac_ext >&5
9628
ac_cv_func_shl_load=no
9630
rm -f conftest.err conftest.$ac_objext \
9631
conftest$ac_exeext conftest.$ac_ext
9633
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9634
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9635
if test $ac_cv_func_shl_load = yes; then
9636
lt_cv_dlopen="shl_load"
9638
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9639
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9640
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9641
echo $ECHO_N "(cached) $ECHO_C" >&6
9643
ac_check_lib_save_LIBS=$LIBS
9645
cat >conftest.$ac_ext <<_ACEOF
9648
cat confdefs.h >>conftest.$ac_ext
9649
cat >>conftest.$ac_ext <<_ACEOF
9650
/* end confdefs.h. */
9652
/* Override any gcc2 internal prototype to avoid an error. */
9656
/* We use char because int might match the return type of a gcc2
9657
builtin and then its argument prototype would still apply. */
9667
rm -f conftest.$ac_objext conftest$ac_exeext
9668
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9669
(eval $ac_link) 2>conftest.er1
9671
grep -v '^ *+' conftest.er1 >conftest.err
9673
cat conftest.err >&5
9674
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675
(exit $ac_status); } &&
9676
{ ac_try='test -z "$ac_c_werror_flag"
9677
|| test ! -s conftest.err'
9678
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682
(exit $ac_status); }; } &&
9683
{ ac_try='test -s conftest$ac_exeext'
9684
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688
(exit $ac_status); }; }; then
9689
ac_cv_lib_dld_shl_load=yes
9691
echo "$as_me: failed program was:" >&5
9692
sed 's/^/| /' conftest.$ac_ext >&5
9694
ac_cv_lib_dld_shl_load=no
9696
rm -f conftest.err conftest.$ac_objext \
9697
conftest$ac_exeext conftest.$ac_ext
9698
LIBS=$ac_check_lib_save_LIBS
9700
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9701
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9702
if test $ac_cv_lib_dld_shl_load = yes; then
9703
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9705
echo "$as_me:$LINENO: checking for dlopen" >&5
9706
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9707
if test "${ac_cv_func_dlopen+set}" = set; then
9708
echo $ECHO_N "(cached) $ECHO_C" >&6
9710
cat >conftest.$ac_ext <<_ACEOF
9713
cat confdefs.h >>conftest.$ac_ext
9714
cat >>conftest.$ac_ext <<_ACEOF
9715
/* end confdefs.h. */
9716
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9717
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9718
#define dlopen innocuous_dlopen
9720
/* System header to define __stub macros and hopefully few prototypes,
9721
which can conflict with char dlopen (); below.
9722
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9723
<limits.h> exists even on freestanding compilers. */
9726
# include <limits.h>
9728
# include <assert.h>
9733
/* Override any gcc2 internal prototype to avoid an error. */
9738
/* We use char because int might match the return type of a gcc2
9739
builtin and then its argument prototype would still apply. */
9741
/* The GNU C library defines this for functions which it implements
9742
to always fail with ENOSYS. Some functions are actually named
9743
something starting with __ and the normal name is an alias. */
9744
#if defined (__stub_dlopen) || defined (__stub___dlopen)
9747
char (*f) () = dlopen;
9761
rm -f conftest.$ac_objext conftest$ac_exeext
9762
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9763
(eval $ac_link) 2>conftest.er1
9765
grep -v '^ *+' conftest.er1 >conftest.err
9767
cat conftest.err >&5
9768
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769
(exit $ac_status); } &&
9770
{ ac_try='test -z "$ac_c_werror_flag"
9771
|| test ! -s conftest.err'
9772
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776
(exit $ac_status); }; } &&
9777
{ ac_try='test -s conftest$ac_exeext'
9778
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9781
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782
(exit $ac_status); }; }; then
9783
ac_cv_func_dlopen=yes
9785
echo "$as_me: failed program was:" >&5
9786
sed 's/^/| /' conftest.$ac_ext >&5
9788
ac_cv_func_dlopen=no
9790
rm -f conftest.err conftest.$ac_objext \
9791
conftest$ac_exeext conftest.$ac_ext
9793
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9794
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9795
if test $ac_cv_func_dlopen = yes; then
9796
lt_cv_dlopen="dlopen"
9798
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9799
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9800
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9801
echo $ECHO_N "(cached) $ECHO_C" >&6
9803
ac_check_lib_save_LIBS=$LIBS
9805
cat >conftest.$ac_ext <<_ACEOF
9808
cat confdefs.h >>conftest.$ac_ext
9809
cat >>conftest.$ac_ext <<_ACEOF
9810
/* end confdefs.h. */
9812
/* Override any gcc2 internal prototype to avoid an error. */
9816
/* We use char because int might match the return type of a gcc2
9817
builtin and then its argument prototype would still apply. */
9827
rm -f conftest.$ac_objext conftest$ac_exeext
9828
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9829
(eval $ac_link) 2>conftest.er1
9831
grep -v '^ *+' conftest.er1 >conftest.err
9833
cat conftest.err >&5
9834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835
(exit $ac_status); } &&
9836
{ ac_try='test -z "$ac_c_werror_flag"
9837
|| test ! -s conftest.err'
9838
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842
(exit $ac_status); }; } &&
9843
{ ac_try='test -s conftest$ac_exeext'
9844
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848
(exit $ac_status); }; }; then
9849
ac_cv_lib_dl_dlopen=yes
9851
echo "$as_me: failed program was:" >&5
9852
sed 's/^/| /' conftest.$ac_ext >&5
9854
ac_cv_lib_dl_dlopen=no
9856
rm -f conftest.err conftest.$ac_objext \
9857
conftest$ac_exeext conftest.$ac_ext
9858
LIBS=$ac_check_lib_save_LIBS
9860
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9861
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9862
if test $ac_cv_lib_dl_dlopen = yes; then
9863
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9865
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9866
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9867
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9868
echo $ECHO_N "(cached) $ECHO_C" >&6
9870
ac_check_lib_save_LIBS=$LIBS
9872
cat >conftest.$ac_ext <<_ACEOF
9875
cat confdefs.h >>conftest.$ac_ext
9876
cat >>conftest.$ac_ext <<_ACEOF
9877
/* end confdefs.h. */
9879
/* Override any gcc2 internal prototype to avoid an error. */
9883
/* We use char because int might match the return type of a gcc2
9884
builtin and then its argument prototype would still apply. */
9894
rm -f conftest.$ac_objext conftest$ac_exeext
9895
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9896
(eval $ac_link) 2>conftest.er1
9898
grep -v '^ *+' conftest.er1 >conftest.err
9900
cat conftest.err >&5
9901
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902
(exit $ac_status); } &&
9903
{ ac_try='test -z "$ac_c_werror_flag"
9904
|| test ! -s conftest.err'
9905
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909
(exit $ac_status); }; } &&
9910
{ ac_try='test -s conftest$ac_exeext'
9911
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9914
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915
(exit $ac_status); }; }; then
9916
ac_cv_lib_svld_dlopen=yes
9918
echo "$as_me: failed program was:" >&5
9919
sed 's/^/| /' conftest.$ac_ext >&5
9921
ac_cv_lib_svld_dlopen=no
9923
rm -f conftest.err conftest.$ac_objext \
9924
conftest$ac_exeext conftest.$ac_ext
9925
LIBS=$ac_check_lib_save_LIBS
9927
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9928
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9929
if test $ac_cv_lib_svld_dlopen = yes; then
9930
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9932
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9933
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9934
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9935
echo $ECHO_N "(cached) $ECHO_C" >&6
9937
ac_check_lib_save_LIBS=$LIBS
9939
cat >conftest.$ac_ext <<_ACEOF
9942
cat confdefs.h >>conftest.$ac_ext
9943
cat >>conftest.$ac_ext <<_ACEOF
9944
/* end confdefs.h. */
9946
/* Override any gcc2 internal prototype to avoid an error. */
9950
/* We use char because int might match the return type of a gcc2
9951
builtin and then its argument prototype would still apply. */
9961
rm -f conftest.$ac_objext conftest$ac_exeext
9962
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9963
(eval $ac_link) 2>conftest.er1
9965
grep -v '^ *+' conftest.er1 >conftest.err
9967
cat conftest.err >&5
9968
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969
(exit $ac_status); } &&
9970
{ ac_try='test -z "$ac_c_werror_flag"
9971
|| test ! -s conftest.err'
9972
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976
(exit $ac_status); }; } &&
9977
{ ac_try='test -s conftest$ac_exeext'
9978
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982
(exit $ac_status); }; }; then
9983
ac_cv_lib_dld_dld_link=yes
9985
echo "$as_me: failed program was:" >&5
9986
sed 's/^/| /' conftest.$ac_ext >&5
9988
ac_cv_lib_dld_dld_link=no
9990
rm -f conftest.err conftest.$ac_objext \
9991
conftest$ac_exeext conftest.$ac_ext
9992
LIBS=$ac_check_lib_save_LIBS
9994
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9995
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9996
if test $ac_cv_lib_dld_dld_link = yes; then
9997
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10018
if test "x$lt_cv_dlopen" != xno; then
10024
case $lt_cv_dlopen in
10026
save_CPPFLAGS="$CPPFLAGS"
10027
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10029
save_LDFLAGS="$LDFLAGS"
10030
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10033
LIBS="$lt_cv_dlopen_libs $LIBS"
10035
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10036
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10037
if test "${lt_cv_dlopen_self+set}" = set; then
10038
echo $ECHO_N "(cached) $ECHO_C" >&6
10040
if test "$cross_compiling" = yes; then :
10041
lt_cv_dlopen_self=cross
10043
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10044
lt_status=$lt_dlunknown
10045
cat > conftest.$ac_ext <<EOF
10046
#line __oline__ "configure"
10047
#include "confdefs.h"
10056
# define LT_DLGLOBAL RTLD_GLOBAL
10059
# define LT_DLGLOBAL DL_GLOBAL
10061
# define LT_DLGLOBAL 0
10065
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10066
find out it does not work in some platform. */
10067
#ifndef LT_DLLAZY_OR_NOW
10069
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10072
# define LT_DLLAZY_OR_NOW DL_LAZY
10075
# define LT_DLLAZY_OR_NOW RTLD_NOW
10078
# define LT_DLLAZY_OR_NOW DL_NOW
10080
# define LT_DLLAZY_OR_NOW 0
10088
extern "C" void exit (int);
10091
void fnord() { int i=42;}
10094
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10095
int status = $lt_dlunknown;
10099
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10100
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10101
/* dlclose (self); */
10107
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10108
(eval $ac_link) 2>&5
10110
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10112
(./conftest; exit; ) 2>/dev/null
10114
case x$lt_status in
10115
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10116
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10117
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10120
# compilation failed
10121
lt_cv_dlopen_self=no
10128
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10129
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10131
if test "x$lt_cv_dlopen_self" = xyes; then
10132
LDFLAGS="$LDFLAGS $link_static_flag"
10133
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10134
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10135
if test "${lt_cv_dlopen_self_static+set}" = set; then
10136
echo $ECHO_N "(cached) $ECHO_C" >&6
10138
if test "$cross_compiling" = yes; then :
10139
lt_cv_dlopen_self_static=cross
10141
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10142
lt_status=$lt_dlunknown
10143
cat > conftest.$ac_ext <<EOF
10144
#line __oline__ "configure"
10145
#include "confdefs.h"
10154
# define LT_DLGLOBAL RTLD_GLOBAL
10157
# define LT_DLGLOBAL DL_GLOBAL
10159
# define LT_DLGLOBAL 0
10163
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10164
find out it does not work in some platform. */
10165
#ifndef LT_DLLAZY_OR_NOW
10167
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10170
# define LT_DLLAZY_OR_NOW DL_LAZY
10173
# define LT_DLLAZY_OR_NOW RTLD_NOW
10176
# define LT_DLLAZY_OR_NOW DL_NOW
10178
# define LT_DLLAZY_OR_NOW 0
10186
extern "C" void exit (int);
10189
void fnord() { int i=42;}
10192
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10193
int status = $lt_dlunknown;
10197
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10198
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10199
/* dlclose (self); */
10205
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10206
(eval $ac_link) 2>&5
10208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10210
(./conftest; exit; ) 2>/dev/null
10212
case x$lt_status in
10213
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10214
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10215
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10218
# compilation failed
10219
lt_cv_dlopen_self_static=no
10226
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10227
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10230
CPPFLAGS="$save_CPPFLAGS"
10231
LDFLAGS="$save_LDFLAGS"
10236
case $lt_cv_dlopen_self in
10237
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10238
*) enable_dlopen_self=unknown ;;
10241
case $lt_cv_dlopen_self_static in
10242
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10243
*) enable_dlopen_self_static=unknown ;;
10248
# Report which librarie types wil actually be built
10249
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10250
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10251
echo "$as_me:$LINENO: result: $can_build_shared" >&5
10252
echo "${ECHO_T}$can_build_shared" >&6
10254
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10255
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10256
test "$can_build_shared" = "no" && enable_shared=no
10258
# On AIX, shared libraries and static libraries use the same namespace, and
10259
# are all built from PIC.
10262
test "$enable_shared" = yes && enable_static=no
10263
if test -n "$RANLIB"; then
10264
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10265
postinstall_cmds='$RANLIB $lib'
10270
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10271
test "$enable_shared" = yes && enable_static=no
10275
echo "$as_me:$LINENO: result: $enable_shared" >&5
10276
echo "${ECHO_T}$enable_shared" >&6
10278
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10279
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10280
# Make sure either enable_shared or enable_static is yes.
10281
test "$enable_shared" = yes || enable_static=yes
10282
echo "$as_me:$LINENO: result: $enable_static" >&5
10283
echo "${ECHO_T}$enable_static" >&6
10285
# The else clause should only fire when bootstrapping the
10286
# libtool distribution, otherwise you forgot to ship ltmain.sh
10287
# with your package, and you will get complaints that there are
10288
# no rules to generate ltmain.sh.
10289
if test -f "$ltmain"; then
10290
# See if we are running on zsh, and set the options which allow our commands through
10291
# without removal of \ escapes.
10292
if test -n "${ZSH_VERSION+set}" ; then
10293
setopt NO_GLOB_SUBST
10295
# Now quote all the things that may contain metacharacters while being
10296
# careful not to overquote the AC_SUBSTed values. We take copies of the
10297
# variables and quote the copies for generation of the libtool script.
10298
for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
10300
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10301
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10302
deplibs_check_method reload_flag reload_cmds need_locks \
10303
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10304
lt_cv_sys_global_symbol_to_c_name_address \
10305
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10306
old_postinstall_cmds old_postuninstall_cmds \
10310
lt_prog_compiler_wl \
10311
lt_prog_compiler_pic \
10312
lt_prog_compiler_static \
10313
lt_prog_compiler_no_builtin_flag \
10314
export_dynamic_flag_spec \
10315
thread_safe_flag_spec \
10316
whole_archive_flag_spec \
10317
enable_shared_with_static_runtimes \
10319
old_archive_from_new_cmds \
10324
compiler_lib_search_path \
10326
archive_expsym_cmds \
10328
postuninstall_cmds \
10329
old_archive_from_expsyms_cmds \
10330
allow_undefined_flag \
10331
no_undefined_flag \
10332
export_symbols_cmds \
10333
hardcode_libdir_flag_spec \
10334
hardcode_libdir_flag_spec_ld \
10335
hardcode_libdir_separator \
10336
hardcode_automatic \
10338
module_expsym_cmds \
10339
lt_cv_prog_compiler_c_o \
10341
include_expsyms; do
10344
old_archive_cmds | \
10345
old_archive_from_new_cmds | \
10347
archive_expsym_cmds | \
10349
module_expsym_cmds | \
10350
old_archive_from_expsyms_cmds | \
10351
export_symbols_cmds | \
10352
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10353
postinstall_cmds | postuninstall_cmds | \
10354
old_postinstall_cmds | old_postuninstall_cmds | \
10355
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10356
# Double-quote double-evaled strings.
10357
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10360
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10366
*'\$0 --fallback-echo"')
10367
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10371
cfgfile="${ofile}T"
10372
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10374
{ echo "$as_me:$LINENO: creating $ofile" >&5
10375
echo "$as_me: creating $ofile" >&6;}
10377
cat <<__EOF__ >> "$cfgfile"
10380
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10381
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10382
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10384
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10385
# Free Software Foundation, Inc.
10387
# This file is part of GNU Libtool:
10388
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10390
# This program is free software; you can redistribute it and/or modify
10391
# it under the terms of the GNU General Public License as published by
10392
# the Free Software Foundation; either version 2 of the License, or
10393
# (at your option) any later version.
10395
# This program is distributed in the hope that it will be useful, but
10396
# WITHOUT ANY WARRANTY; without even the implied warranty of
10397
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10398
# General Public License for more details.
10400
# You should have received a copy of the GNU General Public License
10401
# along with this program; if not, write to the Free Software
10402
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10404
# As a special exception to the GNU General Public License, if you
10405
# distribute this file as part of a program that contains a
10406
# configuration script generated by Autoconf, you may include it under
10407
# the same distribution terms that you use for the rest of that program.
10409
# A sed program that does not truncate output.
10412
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10413
Xsed="$SED -e s/^X//"
10415
# The HP-UX ksh and POSIX shell print the target directory to stdout
10416
# if CDPATH is set.
10417
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10419
# The names of the tagged configurations supported by this script.
10422
# ### BEGIN LIBTOOL CONFIG
10424
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10426
# Shell to use when invoking shell scripts.
10429
# Whether or not to build shared libraries.
10430
build_libtool_libs=$enable_shared
10432
# Whether or not to build static libraries.
10433
build_old_libs=$enable_static
10435
# Whether or not to add -lc for building shared libraries.
10436
build_libtool_need_lc=$archive_cmds_need_lc
10438
# Whether or not to disallow shared libs when runtime libs are static
10439
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10441
# Whether or not to optimize for fast installation.
10442
fast_install=$enable_fast_install
10445
host_alias=$host_alias
10449
# The build system.
10450
build_alias=$build_alias
10454
# An echo program that does not interpret backslashes.
10459
AR_FLAGS=$lt_AR_FLAGS
10464
# A language-specific compiler.
10467
# Is the compiler the GNU C compiler?
10473
# The linker used to build libraries.
10476
# Whether we need hard or soft links.
10479
# A BSD-compatible nm program.
10482
# A symbol stripping program
10485
# Used to examine libraries when file_magic_cmd begins "file"
10486
MAGIC_CMD=$MAGIC_CMD
10488
# Used on cygwin: DLL creation program.
10491
# Used on cygwin: object dumper.
10494
# Used on cygwin: assembler.
10497
# The name of the directory that contains temporary libtool files.
10500
# How to create reloadable object files.
10501
reload_flag=$lt_reload_flag
10502
reload_cmds=$lt_reload_cmds
10504
# How to pass a linker flag through the compiler.
10505
wl=$lt_lt_prog_compiler_wl
10507
# Object file suffix (normally "o").
10508
objext="$ac_objext"
10510
# Old archive suffix (normally "a").
10513
# Shared library suffix (normally ".so").
10514
shrext_cmds='$shrext_cmds'
10516
# Executable file suffix (normally "").
10519
# Additional compiler flags for building library objects.
10520
pic_flag=$lt_lt_prog_compiler_pic
10523
# What is the maximum length of a command?
10524
max_cmd_len=$lt_cv_sys_max_cmd_len
10526
# Does compiler simultaneously support -c and -o options?
10527
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10529
# Must we lock files when doing compilation ?
10530
need_locks=$lt_need_locks
10532
# Do we need the lib prefix for modules?
10533
need_lib_prefix=$need_lib_prefix
10535
# Do we need a version for libraries?
10536
need_version=$need_version
10538
# Whether dlopen is supported.
10539
dlopen_support=$enable_dlopen
10541
# Whether dlopen of programs is supported.
10542
dlopen_self=$enable_dlopen_self
10544
# Whether dlopen of statically linked programs is supported.
10545
dlopen_self_static=$enable_dlopen_self_static
10547
# Compiler flag to prevent dynamic linking.
10548
link_static_flag=$lt_lt_prog_compiler_static
10550
# Compiler flag to turn off builtin functions.
10551
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10553
# Compiler flag to allow reflexive dlopens.
10554
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10556
# Compiler flag to generate shared objects directly from archives.
10557
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10559
# Compiler flag to generate thread-safe objects.
10560
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10562
# Library versioning type.
10563
version_type=$version_type
10565
# Format of library name prefix.
10566
libname_spec=$lt_libname_spec
10568
# List of archive names. First name is the real one, the rest are links.
10569
# The last name is the one that the linker finds with -lNAME.
10570
library_names_spec=$lt_library_names_spec
10572
# The coded name of the library, if different from the real name.
10573
soname_spec=$lt_soname_spec
10575
# Commands used to build and install an old-style archive.
10577
old_archive_cmds=$lt_old_archive_cmds
10578
old_postinstall_cmds=$lt_old_postinstall_cmds
10579
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10581
# Create an old-style archive from a shared archive.
10582
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10584
# Create a temporary old-style archive to link instead of a shared archive.
10585
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10587
# Commands used to build and install a shared archive.
10588
archive_cmds=$lt_archive_cmds
10589
archive_expsym_cmds=$lt_archive_expsym_cmds
10590
postinstall_cmds=$lt_postinstall_cmds
10591
postuninstall_cmds=$lt_postuninstall_cmds
10593
# Commands used to build a loadable module (assumed same as above if empty)
10594
module_cmds=$lt_module_cmds
10595
module_expsym_cmds=$lt_module_expsym_cmds
10597
# Commands to strip libraries.
10598
old_striplib=$lt_old_striplib
10599
striplib=$lt_striplib
10601
# Dependencies to place before the objects being linked to create a
10603
predep_objects=$lt_predep_objects
10605
# Dependencies to place after the objects being linked to create a
10607
postdep_objects=$lt_postdep_objects
10609
# Dependencies to place before the objects being linked to create a
10611
predeps=$lt_predeps
10613
# Dependencies to place after the objects being linked to create a
10615
postdeps=$lt_postdeps
10617
# The library search path used internally by the compiler when linking
10618
# a shared library.
10619
compiler_lib_search_path=$lt_compiler_lib_search_path
10621
# Method to check whether dependent libraries are shared objects.
10622
deplibs_check_method=$lt_deplibs_check_method
10624
# Command to use when deplibs_check_method == file_magic.
10625
file_magic_cmd=$lt_file_magic_cmd
10627
# Flag that allows shared libraries with undefined symbols to be built.
10628
allow_undefined_flag=$lt_allow_undefined_flag
10630
# Flag that forces no undefined symbols.
10631
no_undefined_flag=$lt_no_undefined_flag
10633
# Commands used to finish a libtool library installation in a directory.
10634
finish_cmds=$lt_finish_cmds
10636
# Same as above, but a single script fragment to be evaled but not shown.
10637
finish_eval=$lt_finish_eval
10639
# Take the output of nm and produce a listing of raw symbols and C names.
10640
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10642
# Transform the output of nm in a proper C declaration
10643
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10645
# Transform the output of nm in a C name address pair
10646
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10648
# This is the shared library runtime path variable.
10649
runpath_var=$runpath_var
10651
# This is the shared library path variable.
10652
shlibpath_var=$shlibpath_var
10654
# Is shlibpath searched before the hard-coded library search path?
10655
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10657
# How to hardcode a shared library path into an executable.
10658
hardcode_action=$hardcode_action
10660
# Whether we should hardcode library paths into libraries.
10661
hardcode_into_libs=$hardcode_into_libs
10663
# Flag to hardcode \$libdir into a binary during linking.
10664
# This must work even if \$libdir does not exist.
10665
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10667
# If ld is used when linking, flag to hardcode \$libdir into
10668
# a binary during linking. This must work even if \$libdir does
10670
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10672
# Whether we need a single -rpath flag with a separated argument.
10673
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10675
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10676
# resulting binary.
10677
hardcode_direct=$hardcode_direct
10679
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10680
# resulting binary.
10681
hardcode_minus_L=$hardcode_minus_L
10683
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10684
# the resulting binary.
10685
hardcode_shlibpath_var=$hardcode_shlibpath_var
10687
# Set to yes if building a shared library automatically hardcodes DIR into the library
10688
# and all subsequent libraries and executables linked against it.
10689
hardcode_automatic=$hardcode_automatic
10691
# Variables whose values should be saved in libtool wrapper scripts and
10692
# restored at relink time.
10693
variables_saved_for_relink="$variables_saved_for_relink"
10695
# Whether libtool must link a program against all its dependency libraries.
10696
link_all_deplibs=$link_all_deplibs
10698
# Compile-time system search path for libraries
10699
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10701
# Run-time system search path for libraries
10702
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10704
# Fix the shell variable \$srcfile for the compiler.
10705
fix_srcfile_path="$fix_srcfile_path"
10707
# Set to yes if exported symbols are required.
10708
always_export_symbols=$always_export_symbols
10710
# The commands to list exported symbols.
10711
export_symbols_cmds=$lt_export_symbols_cmds
10713
# The commands to extract the exported symbol list from a shared archive.
10714
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10716
# Symbols that should not be listed in the preloaded symbols.
10717
exclude_expsyms=$lt_exclude_expsyms
10719
# Symbols that must always be exported.
10720
include_expsyms=$lt_include_expsyms
10722
# ### END LIBTOOL CONFIG
10729
cat <<\EOF >> "$cfgfile"
10731
# AIX sometimes has problems with the GCC collect2 program. For some
10732
# reason, if we set the COLLECT_NAMES environment variable, the problems
10733
# vanish in a puff of smoke.
10734
if test "X${COLLECT_NAMES+set}" != Xset; then
10736
export COLLECT_NAMES
10742
# We use sed instead of cat because bash on DJGPP gets confused if
10743
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10744
# text mode, it properly converts lines to CR/LF. This bash problem
10745
# is reportedly fixed, but why not run on old versions too?
10746
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10748
mv -f "$cfgfile" "$ofile" || \
10749
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10753
# If there is no Makefile yet, we rely on a make rule to execute
10754
# `config.status --recheck' to rerun these tests and create the
10755
# libtool script then.
10756
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10757
if test -f "$ltmain_in"; then
10758
test -f Makefile && make "$ltmain"
10764
ac_cpp='$CPP $CPPFLAGS'
10765
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10766
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10767
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10772
# Check whether --with-tags or --without-tags was given.
10773
if test "${with_tags+set}" = set; then
10774
withval="$with_tags"
10775
tagnames="$withval"
10778
if test -f "$ltmain" && test -n "$tagnames"; then
10779
if test ! -f "${ofile}"; then
10780
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10781
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10784
if test -z "$LTCC"; then
10785
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10786
if test -z "$LTCC"; then
10787
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10788
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10790
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10791
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10795
# Extract list of available tagged configurations in $ofile.
10796
# Note that this assumes the entire list is on one line.
10797
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10799
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10800
for tagname in $tagnames; do
10802
# Check whether tagname contains only valid characters
10803
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10805
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10806
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10807
{ (exit 1); exit 1; }; }
10811
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10813
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10814
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10815
{ (exit 1); exit 1; }; }
10818
# Update the list of available tags.
10819
if test -n "$tagname"; then
10820
echo appending configuration tag \"$tagname\" to $ofile
10824
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10825
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10826
(test "X$CXX" != "Xg++"))) ; then
10828
ac_cpp='$CXXCPP $CPPFLAGS'
10829
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10830
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10831
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10836
archive_cmds_need_lc_CXX=no
10837
allow_undefined_flag_CXX=
10838
always_export_symbols_CXX=no
10839
archive_expsym_cmds_CXX=
10840
export_dynamic_flag_spec_CXX=
10841
hardcode_direct_CXX=no
10842
hardcode_libdir_flag_spec_CXX=
10843
hardcode_libdir_flag_spec_ld_CXX=
10844
hardcode_libdir_separator_CXX=
10845
hardcode_minus_L_CXX=no
10846
hardcode_automatic_CXX=no
10848
module_expsym_cmds_CXX=
10849
link_all_deplibs_CXX=unknown
10850
old_archive_cmds_CXX=$old_archive_cmds
10851
no_undefined_flag_CXX=
10852
whole_archive_flag_spec_CXX=
10853
enable_shared_with_static_runtimes_CXX=no
10855
# Dependencies to place before and after the object being linked:
10856
predep_objects_CXX=
10857
postdep_objects_CXX=
10860
compiler_lib_search_path_CXX=
10862
# Source file extension for C++ test sources.
10865
# Object file extension for compiled C++ test sources.
10869
# Code to be used in simple compile tests
10870
lt_simple_compile_test_code="int some_variable = 0;\n"
10872
# Code to be used in simple link tests
10873
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10875
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10877
# If no C compiler was specified, use CC.
10880
# Allow CC to be a program name with arguments.
10884
# Allow CC to be a program name with arguments.
10889
lt_save_with_gnu_ld=$with_gnu_ld
10890
lt_save_path_LD=$lt_cv_path_LD
10891
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10892
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10894
unset lt_cv_prog_gnu_ld
10896
if test -n "${lt_cv_path_LDCXX+set}"; then
10897
lt_cv_path_LD=$lt_cv_path_LDCXX
10899
unset lt_cv_path_LD
10901
test -z "${LDCXX+set}" || LD=$LDCXX
10905
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10907
# We don't want -fno-exception wen compiling C++ code, so set the
10908
# no_builtin_flag separately
10909
if test "$GXX" = yes; then
10910
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10912
lt_prog_compiler_no_builtin_flag_CXX=
10915
if test "$GXX" = yes; then
10916
# Set up default GNU C++ configuration
10919
# Check whether --with-gnu-ld or --without-gnu-ld was given.
10920
if test "${with_gnu_ld+set}" = set; then
10921
withval="$with_gnu_ld"
10922
test "$withval" = no || with_gnu_ld=yes
10927
if test "$GCC" = yes; then
10928
# Check if gcc -print-prog-name=ld gives a path.
10929
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10930
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10933
# gcc leaves a trailing carriage return which upsets mingw
10934
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10936
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10939
# Accept absolute paths.
10941
re_direlt='/[^/][^/]*/\.\./'
10942
# Canonicalize the pathname of ld
10943
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10944
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10945
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10947
test -z "$LD" && LD="$ac_prog"
10950
# If it fails, then pretend we aren't using GCC.
10954
# If it is relative, then search for the first ld in PATH.
10955
with_gnu_ld=unknown
10958
elif test "$with_gnu_ld" = yes; then
10959
echo "$as_me:$LINENO: checking for GNU ld" >&5
10960
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10962
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10963
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10965
if test "${lt_cv_path_LD+set}" = set; then
10966
echo $ECHO_N "(cached) $ECHO_C" >&6
10968
if test -z "$LD"; then
10969
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10970
for ac_dir in $PATH; do
10972
test -z "$ac_dir" && ac_dir=.
10973
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10974
lt_cv_path_LD="$ac_dir/$ac_prog"
10975
# Check to see if the program is GNU ld. I'd rather use --version,
10976
# but apparently some GNU ld's only accept -v.
10977
# Break only if it was the GNU/non-GNU ld that we prefer.
10978
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10979
*GNU* | *'with BFD'*)
10980
test "$with_gnu_ld" != no && break
10983
test "$with_gnu_ld" != yes && break
10990
lt_cv_path_LD="$LD" # Let the user override the test with a path.
10994
LD="$lt_cv_path_LD"
10995
if test -n "$LD"; then
10996
echo "$as_me:$LINENO: result: $LD" >&5
10997
echo "${ECHO_T}$LD" >&6
10999
echo "$as_me:$LINENO: result: no" >&5
11000
echo "${ECHO_T}no" >&6
11002
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11003
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11004
{ (exit 1); exit 1; }; }
11005
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11006
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11007
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11008
echo $ECHO_N "(cached) $ECHO_C" >&6
11010
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
11011
case `$LD -v 2>&1 </dev/null` in
11012
*GNU* | *'with BFD'*)
11013
lt_cv_prog_gnu_ld=yes
11016
lt_cv_prog_gnu_ld=no
11020
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11021
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11022
with_gnu_ld=$lt_cv_prog_gnu_ld
11026
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11027
# archiving commands below assume that GNU ld is being used.
11028
if test "$with_gnu_ld" = yes; then
11029
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11030
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'
11032
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11033
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11035
# If archive_cmds runs LD, not CC, wlarc should be empty
11036
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11037
# investigate it a little bit more. (MM)
11040
# ancient GNU ld didn't support --whole-archive et. al.
11041
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11042
grep 'no-whole-archive' > /dev/null; then
11043
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11045
whole_archive_flag_spec_CXX=
11051
# A generic and very simple default shared library creation
11052
# command for GNU C++ for the case where it uses the native
11053
# linker, instead of GNU ld. If possible, this setting should
11054
# overridden to take advantage of the native linker features on
11055
# the platform it is being used on.
11056
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11059
# Commands to make compiler produce verbose output that lists
11060
# what "hidden" libraries, object files and flags are used when
11061
# linking a shared library.
11062
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11070
# PORTME: fill in a description of your system's C++ link characteristics
11071
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11072
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11076
# FIXME: insert proper C++ library support
11080
if test "$host_cpu" = ia64; then
11081
# On IA64, the linker does run time linking by default, so we don't
11082
# have to do anything special.
11083
aix_use_runtimelinking=no
11084
exp_sym_flag='-Bexport'
11087
aix_use_runtimelinking=no
11089
# Test if we are trying to use run time linking or normal
11090
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11091
# need to do runtime linking.
11092
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11093
for ld_flag in $LDFLAGS; do
11096
aix_use_runtimelinking=yes
11103
exp_sym_flag='-bexport'
11104
no_entry_flag='-bnoentry'
11107
# When large executables or shared objects are built, AIX ld can
11108
# have problems creating the table of contents. If linking a library
11109
# or program results in "error TOC overflow" add -mminimal-toc to
11110
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11111
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11113
archive_cmds_CXX=''
11114
hardcode_direct_CXX=yes
11115
hardcode_libdir_separator_CXX=':'
11116
link_all_deplibs_CXX=yes
11118
if test "$GXX" = yes; then
11119
case $host_os in aix4.[012]|aix4.[012].*)
11120
# We only want to do this on AIX 4.2 and lower, the check
11121
# below for broken collect2 doesn't work under 4.3+
11122
collect2name=`${CC} -print-prog-name=collect2`
11123
if test -f "$collect2name" && \
11124
strings "$collect2name" | grep resolve_lib_name >/dev/null
11126
# We have reworked collect2
11127
hardcode_direct_CXX=yes
11129
# We have old collect2
11130
hardcode_direct_CXX=unsupported
11131
# It fails to find uninstalled libraries when the uninstalled
11132
# path is not listed in the libpath. Setting hardcode_minus_L
11133
# to unsupported forces relinking
11134
hardcode_minus_L_CXX=yes
11135
hardcode_libdir_flag_spec_CXX='-L$libdir'
11136
hardcode_libdir_separator_CXX=
11139
shared_flag='-shared'
11140
if test "$aix_use_runtimelinking" = yes; then
11141
shared_flag="$shared_flag "'${wl}-G'
11145
if test "$host_cpu" = ia64; then
11146
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11147
# chokes on -Wl,-G. The following line is correct:
11150
if test "$aix_use_runtimelinking" = yes; then
11151
shared_flag='${wl}-G'
11153
shared_flag='${wl}-bM:SRE'
11158
# It seems that -bexpall does not export symbols beginning with
11159
# underscore (_), so it is better to generate a list of symbols to export.
11160
always_export_symbols_CXX=yes
11161
if test "$aix_use_runtimelinking" = yes; then
11162
# Warning - without using the other runtime loading flags (-brtl),
11163
# -berok will link without error, but may produce a broken library.
11164
allow_undefined_flag_CXX='-berok'
11165
# Determine the default libpath from the value encoded in an empty executable.
11166
cat >conftest.$ac_ext <<_ACEOF
11169
cat confdefs.h >>conftest.$ac_ext
11170
cat >>conftest.$ac_ext <<_ACEOF
11171
/* end confdefs.h. */
11181
rm -f conftest.$ac_objext conftest$ac_exeext
11182
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11183
(eval $ac_link) 2>conftest.er1
11185
grep -v '^ *+' conftest.er1 >conftest.err
11187
cat conftest.err >&5
11188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189
(exit $ac_status); } &&
11190
{ ac_try='test -z "$ac_cxx_werror_flag"
11191
|| test ! -s conftest.err'
11192
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11193
(eval $ac_try) 2>&5
11195
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196
(exit $ac_status); }; } &&
11197
{ ac_try='test -s conftest$ac_exeext'
11198
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11199
(eval $ac_try) 2>&5
11201
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202
(exit $ac_status); }; }; then
11204
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11206
# Check for a 64-bit object if we didn't find anything.
11207
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; }
11210
echo "$as_me: failed program was:" >&5
11211
sed 's/^/| /' conftest.$ac_ext >&5
11214
rm -f conftest.err conftest.$ac_objext \
11215
conftest$ac_exeext conftest.$ac_ext
11216
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11218
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11220
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"
11222
if test "$host_cpu" = ia64; then
11223
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11224
allow_undefined_flag_CXX="-z nodefs"
11225
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"
11227
# Determine the default libpath from the value encoded in an empty executable.
11228
cat >conftest.$ac_ext <<_ACEOF
11231
cat confdefs.h >>conftest.$ac_ext
11232
cat >>conftest.$ac_ext <<_ACEOF
11233
/* end confdefs.h. */
11243
rm -f conftest.$ac_objext conftest$ac_exeext
11244
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11245
(eval $ac_link) 2>conftest.er1
11247
grep -v '^ *+' conftest.er1 >conftest.err
11249
cat conftest.err >&5
11250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251
(exit $ac_status); } &&
11252
{ ac_try='test -z "$ac_cxx_werror_flag"
11253
|| test ! -s conftest.err'
11254
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11255
(eval $ac_try) 2>&5
11257
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258
(exit $ac_status); }; } &&
11259
{ ac_try='test -s conftest$ac_exeext'
11260
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261
(eval $ac_try) 2>&5
11263
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264
(exit $ac_status); }; }; then
11266
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11268
# Check for a 64-bit object if we didn't find anything.
11269
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; }
11272
echo "$as_me: failed program was:" >&5
11273
sed 's/^/| /' conftest.$ac_ext >&5
11276
rm -f conftest.err conftest.$ac_objext \
11277
conftest$ac_exeext conftest.$ac_ext
11278
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11280
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11281
# Warning - without using the other run time loading flags,
11282
# -berok will link without error, but may produce a broken library.
11283
no_undefined_flag_CXX=' ${wl}-bernotok'
11284
allow_undefined_flag_CXX=' ${wl}-berok'
11285
# -bexpall does not export symbols beginning with underscore (_)
11286
always_export_symbols_CXX=yes
11287
# Exported symbols can be pulled into shared objects from archives
11288
whole_archive_flag_spec_CXX=' '
11289
archive_cmds_need_lc_CXX=yes
11290
# This is similar to how AIX traditionally builds it's shared libraries.
11291
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'
11296
case $cc_basename in
11298
# FIXME: insert proper C++ library support
11305
cygwin* | mingw* | pw32*)
11306
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11307
# as there is no search path for DLLs.
11308
hardcode_libdir_flag_spec_CXX='-L$libdir'
11309
allow_undefined_flag_CXX=unsupported
11310
always_export_symbols_CXX=no
11311
enable_shared_with_static_runtimes_CXX=yes
11313
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11314
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'
11315
# If the export-symbols file already is a .def file (1st line
11316
# is EXPORTS), use it as is; otherwise, prepend...
11317
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11318
cp $export_symbols $output_objdir/$soname.def;
11320
echo EXPORTS > $output_objdir/$soname.def;
11321
cat $export_symbols >> $output_objdir/$soname.def;
11323
$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'
11328
darwin* | rhapsody*)
11330
rhapsody* | darwin1.[012])
11331
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11334
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11335
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11337
case ${MACOSX_DEPLOYMENT_TARGET} in
11339
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11342
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11348
archive_cmds_need_lc_CXX=no
11349
hardcode_direct_CXX=no
11350
hardcode_automatic_CXX=yes
11351
hardcode_shlibpath_var_CXX=unsupported
11352
whole_archive_flag_spec_CXX=''
11353
link_all_deplibs_CXX=yes
11355
if test "$GXX" = yes ; then
11356
lt_int_apple_cc_single_mod=no
11357
output_verbose_link_cmd='echo'
11358
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11359
lt_int_apple_cc_single_mod=yes
11361
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11362
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11364
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'
11366
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11367
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11368
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11369
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}'
11371
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}'
11373
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}'
11375
case "$cc_basename" in
11377
output_verbose_link_cmd='echo'
11378
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'
11379
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11380
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11381
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}'
11382
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}'
11392
case $cc_basename in
11394
# FIXME: insert proper C++ library support
11398
# Green Hills C++ Compiler
11399
# FIXME: insert proper C++ library support
11403
# FIXME: insert proper C++ library support
11409
# C++ shared libraries reported to be fairly broken before switch to ELF
11413
archive_cmds_need_lc_CXX=no
11415
freebsd* | kfreebsd*-gnu | dragonfly*)
11416
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11423
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11424
hardcode_libdir_separator_CXX=:
11425
export_dynamic_flag_spec_CXX='${wl}-E'
11426
hardcode_direct_CXX=yes
11427
hardcode_minus_L_CXX=yes # Not in the search PATH,
11428
# but as the default
11429
# location of the library.
11431
case $cc_basename in
11433
# FIXME: insert proper C++ library support
11437
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'
11438
# Commands to make compiler produce verbose output that lists
11439
# what "hidden" libraries, object files and flags are used when
11440
# linking a shared library.
11442
# There doesn't appear to be a way to prevent this compiler from
11443
# explicitly linking system object files so we need to strip them
11444
# from the output so that they don't get included in the library
11446
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'
11449
if test "$GXX" = yes; then
11450
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'
11452
# FIXME: insert proper C++ library support
11459
if test $with_gnu_ld = no; then
11460
case "$host_cpu" in
11462
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11463
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11464
hardcode_libdir_separator_CXX=:
11467
hardcode_libdir_flag_spec_CXX='-L$libdir'
11470
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11471
hardcode_libdir_separator_CXX=:
11472
export_dynamic_flag_spec_CXX='${wl}-E'
11476
case "$host_cpu" in
11478
hardcode_direct_CXX=no
11479
hardcode_shlibpath_var_CXX=no
11482
hardcode_direct_CXX=no
11483
hardcode_shlibpath_var_CXX=no
11484
hardcode_minus_L_CXX=yes # Not in the search PATH,
11485
# but as the default
11486
# location of the library.
11489
hardcode_direct_CXX=yes
11490
hardcode_minus_L_CXX=yes # Not in the search PATH,
11491
# but as the default
11492
# location of the library.
11496
case $cc_basename in
11498
# FIXME: insert proper C++ library support
11502
case "$host_cpu" in
11504
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11507
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11510
# Commands to make compiler produce verbose output that lists
11511
# what "hidden" libraries, object files and flags are used when
11512
# linking a shared library.
11514
# There doesn't appear to be a way to prevent this compiler from
11515
# explicitly linking system object files so we need to strip them
11516
# from the output so that they don't get included in the library
11518
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'
11521
if test "$GXX" = yes; then
11522
if test $with_gnu_ld = no; then
11523
case "$host_cpu" in
11525
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11528
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'
11533
# FIXME: insert proper C++ library support
11540
case $cc_basename in
11543
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11545
# Archives containing C++ object files must be created using
11546
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11547
# necessary to make sure instantiated templates are included
11549
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11552
if test "$GXX" = yes; then
11553
if test "$with_gnu_ld" = no; then
11554
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11556
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'
11559
link_all_deplibs_CXX=yes
11562
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11563
hardcode_libdir_separator_CXX=:
11566
case $cc_basename in
11568
# Kuck and Associates, Inc. (KAI) C++ Compiler
11570
# KCC will only create a shared library if the output file
11571
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11572
# to its proper name (with version) after linking.
11573
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'
11574
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'
11575
# Commands to make compiler produce verbose output that lists
11576
# what "hidden" libraries, object files and flags are used when
11577
# linking a shared library.
11579
# There doesn't appear to be a way to prevent this compiler from
11580
# explicitly linking system object files so we need to strip them
11581
# from the output so that they don't get included in the library
11583
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'
11585
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11586
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11588
# Archives containing C++ object files must be created using
11589
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11590
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11595
# version 8.0 and above of icpc choke on multiply defined symbols
11596
# if we add $predep_objects and $postdep_objects, however 7.1 and
11597
# earlier do not add the objects themselves.
11598
case `$CC -V 2>&1` in
11600
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11601
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'
11603
*) # Version 8.0 or newer
11606
ia64*) tmp_idyn=' -i_dynamic';;
11608
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11609
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'
11612
archive_cmds_need_lc_CXX=no
11613
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11614
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11615
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11618
# Portland Group C++ compiler
11619
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11620
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'
11622
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11623
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11627
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11628
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'
11630
runpath_var=LD_RUN_PATH
11631
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11632
hardcode_libdir_separator_CXX=:
11634
# Commands to make compiler produce verbose output that lists
11635
# what "hidden" libraries, object files and flags are used when
11636
# linking a shared library.
11638
# There doesn't appear to be a way to prevent this compiler from
11639
# explicitly linking system object files so we need to strip them
11640
# from the output so that they don't get included in the library
11642
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'
11647
# FIXME: insert proper C++ library support
11651
# FIXME: insert proper C++ library support
11655
case $cc_basename in
11657
# FIXME: insert proper C++ library support
11661
# FIXME: insert proper C++ library support
11667
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11668
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11670
hardcode_libdir_flag_spec_CXX='-R$libdir'
11671
hardcode_direct_CXX=yes
11672
hardcode_shlibpath_var_CXX=no
11674
# Workaround some broken pre-1.5 toolchains
11675
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11678
# C++ shared libraries are fairly broken
11682
hardcode_direct_CXX=yes
11683
hardcode_shlibpath_var_CXX=no
11684
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11685
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11686
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11687
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11688
export_dynamic_flag_spec_CXX='${wl}-E'
11689
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11691
output_verbose_link_cmd='echo'
11694
case $cc_basename in
11696
# Kuck and Associates, Inc. (KAI) C++ Compiler
11698
# KCC will only create a shared library if the output file
11699
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11700
# to its proper name (with version) after linking.
11701
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'
11703
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11704
hardcode_libdir_separator_CXX=:
11706
# Archives containing C++ object files must be created using
11707
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11708
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11712
# Rational C++ 2.4.1
11713
# FIXME: insert proper C++ library support
11717
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11718
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11720
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11721
hardcode_libdir_separator_CXX=:
11723
# Commands to make compiler produce verbose output that lists
11724
# what "hidden" libraries, object files and flags are used when
11725
# linking a shared library.
11727
# There doesn't appear to be a way to prevent this compiler from
11728
# explicitly linking system object files so we need to strip them
11729
# from the output so that they don't get included in the library
11731
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'
11734
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11735
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11736
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11738
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11739
hardcode_libdir_separator_CXX=:
11741
# Commands to make compiler produce verbose output that lists
11742
# what "hidden" libraries, object files and flags are used when
11743
# linking a shared library.
11744
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11747
# FIXME: insert proper C++ library support
11754
case $cc_basename in
11756
# Kuck and Associates, Inc. (KAI) C++ Compiler
11758
# KCC will only create a shared library if the output file
11759
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11760
# to its proper name (with version) after linking.
11761
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'
11763
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11764
hardcode_libdir_separator_CXX=:
11766
# Archives containing C++ object files must be created using
11767
# the KAI C++ compiler.
11768
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11771
# Rational C++ 2.4.1
11772
# FIXME: insert proper C++ library support
11776
allow_undefined_flag_CXX=' -expect_unresolved \*'
11777
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11778
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11779
echo "-hidden">> $lib.exp~
11780
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
11783
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11784
hardcode_libdir_separator_CXX=:
11786
# Commands to make compiler produce verbose output that lists
11787
# what "hidden" libraries, object files and flags are used when
11788
# linking a shared library.
11790
# There doesn't appear to be a way to prevent this compiler from
11791
# explicitly linking system object files so we need to strip them
11792
# from the output so that they don't get included in the library
11794
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'
11797
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11798
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11799
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11801
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11802
hardcode_libdir_separator_CXX=:
11804
# Commands to make compiler produce verbose output that lists
11805
# what "hidden" libraries, object files and flags are used when
11806
# linking a shared library.
11807
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11810
# FIXME: insert proper C++ library support
11817
# FIXME: insert proper C++ library support
11821
archive_cmds_need_lc_CXX=no
11822
case $cc_basename in
11824
# FIXME: insert proper C++ library support
11828
# FIXME: insert proper C++ library support
11834
case $cc_basename in
11837
# FIXME: insert proper C++ library support
11842
# FIXME: insert proper C++ library support
11846
# FIXME: insert proper C++ library support
11852
case $cc_basename in
11854
# Sun C++ 4.2, 5.x and Centerline C++
11855
no_undefined_flag_CXX=' -zdefs'
11856
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11857
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11858
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11860
hardcode_libdir_flag_spec_CXX='-R$libdir'
11861
hardcode_shlibpath_var_CXX=no
11863
solaris2.[0-5] | solaris2.[0-5].*) ;;
11865
# The C++ compiler is used as linker so we must use $wl
11866
# flag to pass the commands to the underlying system
11868
# Supported since Solaris 2.6 (maybe 2.5.1?)
11869
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11872
link_all_deplibs_CXX=yes
11874
# Commands to make compiler produce verbose output that lists
11875
# what "hidden" libraries, object files and flags are used when
11876
# linking a shared library.
11878
# There doesn't appear to be a way to prevent this compiler from
11879
# explicitly linking system object files so we need to strip them
11880
# from the output so that they don't get included in the library
11882
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11884
# Archives containing C++ object files must be created using
11885
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11886
# necessary to make sure instantiated templates are included
11888
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11891
# Green Hills C++ Compiler
11892
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11894
# The C++ compiler must be used to create the archive.
11895
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11898
# GNU C++ compiler with Solaris linker
11899
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11900
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11901
if $CC --version | grep -v '^2\.7' > /dev/null; then
11902
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11903
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11904
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11906
# Commands to make compiler produce verbose output that lists
11907
# what "hidden" libraries, object files and flags are used when
11908
# linking a shared library.
11909
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11911
# g++ 2.7 appears to require `-G' NOT `-shared' on this
11913
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11914
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11915
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11917
# Commands to make compiler produce verbose output that lists
11918
# what "hidden" libraries, object files and flags are used when
11919
# linking a shared library.
11920
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11923
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11928
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11929
archive_cmds_need_lc_CXX=no
11932
case $cc_basename in
11934
# NonStop-UX NCC 3.20
11935
# FIXME: insert proper C++ library support
11939
# FIXME: insert proper C++ library support
11945
# FIXME: insert proper C++ library support
11949
# FIXME: insert proper C++ library support
11953
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11954
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11955
test "$ld_shlibs_CXX" = no && can_build_shared=no
11961
cat > conftest.$ac_ext <<EOF
11965
Foo (void) { a = 0; }
11971
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11972
(eval $ac_compile) 2>&5
11974
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975
(exit $ac_status); }; then
11976
# Parse the compiler output and extract the necessary
11977
# objects, libraries and library flags.
11979
# Sentinel used to keep track of whether or not we are before
11980
# the conftest object file.
11981
pre_test_object_deps_done=no
11983
# The `*' in the case matches for architectures that use `case' in
11984
# $output_verbose_cmd can trigger glob expansion during the loop
11985
# eval without this substitution.
11986
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11988
for p in `eval $output_verbose_link_cmd`; do
11992
# Some compilers place space between "-{L,R}" and the path.
11993
# Remove the space.
11994
if test $p = "-L" \
11995
|| test $p = "-R"; then
12002
if test "$pre_test_object_deps_done" = no; then
12005
# Internal compiler library paths should come after those
12006
# provided the user. The postdeps already come after the
12007
# user supplied libs so there is no need to process them.
12008
if test -z "$compiler_lib_search_path_CXX"; then
12009
compiler_lib_search_path_CXX="${prev}${p}"
12011
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12014
# The "-l" case would never come before the object being
12015
# linked, so don't bother handling this case.
12018
if test -z "$postdeps_CXX"; then
12019
postdeps_CXX="${prev}${p}"
12021
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12027
# This assumes that the test object file only shows up
12028
# once in the compiler output.
12029
if test "$p" = "conftest.$objext"; then
12030
pre_test_object_deps_done=yes
12034
if test "$pre_test_object_deps_done" = no; then
12035
if test -z "$predep_objects_CXX"; then
12036
predep_objects_CXX="$p"
12038
predep_objects_CXX="$predep_objects_CXX $p"
12041
if test -z "$postdep_objects_CXX"; then
12042
postdep_objects_CXX="$p"
12044
postdep_objects_CXX="$postdep_objects_CXX $p"
12049
*) ;; # Ignore the rest.
12057
echo "libtool.m4: error: problem compiling CXX test program"
12060
$rm -f confest.$objext
12062
case " $postdeps_CXX " in
12063
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12066
lt_prog_compiler_wl_CXX=
12067
lt_prog_compiler_pic_CXX=
12068
lt_prog_compiler_static_CXX=
12070
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12071
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12073
# C++ specific cases for pic, static, wl, etc.
12074
if test "$GXX" = yes; then
12075
lt_prog_compiler_wl_CXX='-Wl,'
12076
lt_prog_compiler_static_CXX='-static'
12080
# All AIX code is PIC.
12081
if test "$host_cpu" = ia64; then
12082
# AIX 5 now supports IA64 processor
12083
lt_prog_compiler_static_CXX='-Bstatic'
12087
# FIXME: we need at least 68020 code to build shared libraries, but
12088
# adding the `-m68020' flag to GCC prevents building anything better,
12090
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12092
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12093
# PIC is the default for these OSes.
12095
mingw* | os2* | pw32*)
12096
# This hack is so that the source file can tell whether it is being
12097
# built for inclusion in a dll (and should export symbols for example).
12098
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12100
darwin* | rhapsody*)
12101
# PIC is the default on this platform
12102
# Common symbols not allowed in MH_DYLIB files
12103
lt_prog_compiler_pic_CXX='-fno-common'
12106
# DJGPP does not support shared libraries at all
12107
lt_prog_compiler_pic_CXX=
12110
if test -d /usr/nec; then
12111
lt_prog_compiler_pic_CXX=-Kconform_pic
12115
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12116
# not for PA HP-UX.
12117
case "$host_cpu" in
12121
lt_prog_compiler_pic_CXX='-fPIC'
12126
lt_prog_compiler_pic_CXX='-fPIC'
12132
# All AIX code is PIC.
12133
if test "$host_cpu" = ia64; then
12134
# AIX 5 now supports IA64 processor
12135
lt_prog_compiler_static_CXX='-Bstatic'
12137
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12141
case $cc_basename in
12143
# Green Hills C++ Compiler
12144
# _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"
12149
# PIC is the default on this platform
12150
# Common symbols not allowed in MH_DYLIB files
12151
case "$cc_basename" in
12153
lt_prog_compiler_pic_CXX='-qnocommon'
12154
lt_prog_compiler_wl_CXX='-Wl,'
12159
case $cc_basename in
12161
lt_prog_compiler_pic_CXX='-KPIC'
12164
# Green Hills C++ Compiler
12165
lt_prog_compiler_pic_CXX='-pic'
12171
freebsd* | kfreebsd*-gnu | dragonfly*)
12172
# FreeBSD uses GNU C++
12174
hpux9* | hpux10* | hpux11*)
12175
case $cc_basename in
12177
lt_prog_compiler_wl_CXX='-Wl,'
12178
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12179
if test "$host_cpu" != ia64; then
12180
lt_prog_compiler_pic_CXX='+Z'
12184
lt_prog_compiler_wl_CXX='-Wl,'
12185
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12186
case "$host_cpu" in
12191
lt_prog_compiler_pic_CXX='+Z'
12199
irix5* | irix6* | nonstopux*)
12200
case $cc_basename in
12202
lt_prog_compiler_wl_CXX='-Wl,'
12203
lt_prog_compiler_static_CXX='-non_shared'
12204
# CC pic flag -KPIC is the default.
12211
case $cc_basename in
12214
lt_prog_compiler_wl_CXX='--backend -Wl,'
12215
lt_prog_compiler_pic_CXX='-fPIC'
12219
lt_prog_compiler_wl_CXX='-Wl,'
12220
lt_prog_compiler_pic_CXX='-KPIC'
12221
lt_prog_compiler_static_CXX='-static'
12224
# Portland Group C++ compiler.
12225
lt_prog_compiler_wl_CXX='-Wl,'
12226
lt_prog_compiler_pic_CXX='-fpic'
12227
lt_prog_compiler_static_CXX='-static'
12231
# Make sure the PIC flag is empty. It appears that all Alpha
12232
# Linux and Compaq Tru64 Unix objects are PIC.
12233
lt_prog_compiler_pic_CXX=
12234
lt_prog_compiler_static_CXX='-non_shared'
12245
case $cc_basename in
12247
lt_prog_compiler_pic_CXX='-W c,exportall'
12255
osf3* | osf4* | osf5*)
12256
case $cc_basename in
12258
lt_prog_compiler_wl_CXX='--backend -Wl,'
12261
# Rational C++ 2.4.1
12262
lt_prog_compiler_pic_CXX='-pic'
12265
# Digital/Compaq C++
12266
lt_prog_compiler_wl_CXX='-Wl,'
12267
# Make sure the PIC flag is empty. It appears that all Alpha
12268
# Linux and Compaq Tru64 Unix objects are PIC.
12269
lt_prog_compiler_pic_CXX=
12270
lt_prog_compiler_static_CXX='-non_shared'
12279
case $cc_basename in
12281
lt_prog_compiler_pic_CXX='-fPIC'
12288
case $cc_basename in
12290
# Sun C++ 4.2, 5.x and Centerline C++
12291
lt_prog_compiler_pic_CXX='-KPIC'
12292
lt_prog_compiler_static_CXX='-Bstatic'
12293
lt_prog_compiler_wl_CXX='-Qoption ld '
12296
# Green Hills C++ Compiler
12297
lt_prog_compiler_pic_CXX='-PIC'
12304
case $cc_basename in
12307
lt_prog_compiler_pic_CXX='-pic'
12308
lt_prog_compiler_static_CXX='-Bstatic'
12312
lt_prog_compiler_pic_CXX='-pic'
12319
case $cc_basename in
12321
# NonStop-UX NCC 3.20
12322
lt_prog_compiler_pic_CXX='-KPIC'
12333
lt_prog_compiler_can_build_shared_CXX=no
12338
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12339
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12342
# Check to make sure the PIC flag actually works.
12344
if test -n "$lt_prog_compiler_pic_CXX"; then
12346
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12347
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12348
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12349
echo $ECHO_N "(cached) $ECHO_C" >&6
12351
lt_prog_compiler_pic_works_CXX=no
12352
ac_outfile=conftest.$ac_objext
12353
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12354
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12355
# Insert the option either (1) after the last *FLAGS variable, or
12356
# (2) before a word containing "conftest.", or (3) at the end.
12357
# Note that $ac_compile itself does not contain backslashes and begins
12358
# with a dollar sign (not a hyphen), so the echo should work correctly.
12359
# The option is referenced via a variable to avoid confusing sed.
12360
lt_compile=`echo "$ac_compile" | $SED \
12361
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12362
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12363
-e 's:$: $lt_compiler_flag:'`
12364
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12365
(eval "$lt_compile" 2>conftest.err)
12367
cat conftest.err >&5
12368
echo "$as_me:__oline__: \$? = $ac_status" >&5
12369
if (exit $ac_status) && test -s "$ac_outfile"; then
12370
# The compiler can only warn and ignore the option if not recognized
12371
# So say no if there are warnings
12372
if test ! -s conftest.err; then
12373
lt_prog_compiler_pic_works_CXX=yes
12379
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12380
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12382
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12383
case $lt_prog_compiler_pic_CXX in
12385
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12388
lt_prog_compiler_pic_CXX=
12389
lt_prog_compiler_can_build_shared_CXX=no
12394
# For platforms which do not support PIC, -DPIC is meaningless:
12396
lt_prog_compiler_pic_CXX=
12399
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12403
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12404
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12405
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12406
echo $ECHO_N "(cached) $ECHO_C" >&6
12408
lt_cv_prog_compiler_c_o_CXX=no
12409
$rm -r conftest 2>/dev/null
12413
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12415
lt_compiler_flag="-o out/conftest2.$ac_objext"
12416
# Insert the option either (1) after the last *FLAGS variable, or
12417
# (2) before a word containing "conftest.", or (3) at the end.
12418
# Note that $ac_compile itself does not contain backslashes and begins
12419
# with a dollar sign (not a hyphen), so the echo should work correctly.
12420
lt_compile=`echo "$ac_compile" | $SED \
12421
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12422
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12423
-e 's:$: $lt_compiler_flag:'`
12424
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12425
(eval "$lt_compile" 2>out/conftest.err)
12427
cat out/conftest.err >&5
12428
echo "$as_me:__oline__: \$? = $ac_status" >&5
12429
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12431
# The compiler can only warn and ignore the option if not recognized
12432
# So say no if there are warnings
12433
if test ! -s out/conftest.err; then
12434
lt_cv_prog_compiler_c_o_CXX=yes
12439
# SGI C++ compiler will create directory out/ii_files/ for
12440
# template instantiation
12441
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12442
$rm out/* && rmdir out
12448
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12449
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12452
hard_links="nottested"
12453
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12454
# do not overwrite the value of need_locks provided by the user
12455
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12456
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12459
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12461
ln conftest.a conftest.b 2>&5 || hard_links=no
12462
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12463
echo "$as_me:$LINENO: result: $hard_links" >&5
12464
echo "${ECHO_T}$hard_links" >&6
12465
if test "$hard_links" = no; then
12466
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12467
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12474
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12475
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12477
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12480
# If we're using GNU nm, then we don't want the "-C" option.
12481
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12482
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12483
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'
12485
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'
12489
export_symbols_cmds_CXX="$ltdll_cmds"
12492
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'
12495
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12499
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12500
echo "${ECHO_T}$ld_shlibs_CXX" >&6
12501
test "$ld_shlibs_CXX" = no && can_build_shared=no
12503
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12504
if test "$GCC" = yes; then
12505
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12509
# Do we need to explicitly link libc?
12511
case "x$archive_cmds_need_lc_CXX" in
12513
# Assume -lc should be added
12514
archive_cmds_need_lc_CXX=yes
12516
if test "$enable_shared" = yes && test "$GCC" = yes; then
12517
case $archive_cmds_CXX in
12519
# FIXME: we may have to deal with multi-command sequences.
12522
# Test whether the compiler implicitly links with -lc since on some
12523
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12524
# to ld, don't add -lc before -lgcc.
12525
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12526
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12528
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12530
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12531
(eval $ac_compile) 2>&5
12533
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534
(exit $ac_status); } 2>conftest.err; then
12537
libobjs=conftest.$ac_objext
12539
wl=$lt_prog_compiler_wl_CXX
12545
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12546
allow_undefined_flag_CXX=
12547
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12548
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551
(exit $ac_status); }
12553
archive_cmds_need_lc_CXX=no
12555
archive_cmds_need_lc_CXX=yes
12557
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12559
cat conftest.err 1>&5
12562
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12563
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12570
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12571
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12572
library_names_spec=
12573
libname_spec='lib$name'
12577
postuninstall_cmds=
12581
shlibpath_overrides_runpath=unknown
12583
dynamic_linker="$host_os ld.so"
12584
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12585
if test "$GCC" = yes; then
12586
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12587
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12588
# if the path contains ";" then we assume it to be the separator
12589
# otherwise default to the standard path separator (i.e. ":") - it is
12590
# assumed that no part of a normal pathname contains ";" but that should
12591
# okay in the real world where ";" in dirpaths is itself problematic.
12592
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12594
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12597
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12599
need_lib_prefix=unknown
12600
hardcode_into_libs=no
12602
# when you set need_version to no, make sure it does not cause -set_version
12603
# flags to be left without arguments
12604
need_version=unknown
12609
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12610
shlibpath_var=LIBPATH
12612
# AIX 3 has no versioning support, so we append a major version to the name.
12613
soname_spec='${libname}${release}${shared_ext}$major'
12620
hardcode_into_libs=yes
12621
if test "$host_cpu" = ia64; then
12622
# AIX 5 supports IA64
12623
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12624
shlibpath_var=LD_LIBRARY_PATH
12626
# With GCC up to 2.95.x, collect2 would create an import file
12627
# for dependence libraries. The import file would start with
12628
# the line `#! .'. This would cause the generated library to
12629
# depend on `.', always an invalid library. This was fixed in
12630
# development snapshots of GCC prior to 3.0.
12632
aix4 | aix4.[01] | aix4.[01].*)
12633
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12635
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12638
can_build_shared=no
12642
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12643
# soname into executable. Probably we can add versioning support to
12644
# collect2, so additional links can be useful in future.
12645
if test "$aix_use_runtimelinking" = yes; then
12646
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12647
# instead of lib<name>.a to let people know that these are not
12648
# typical AIX shared libraries.
12649
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12651
# We preserve .a as extension for shared libraries through AIX4.2
12652
# and later when we are not doing run time linking.
12653
library_names_spec='${libname}${release}.a $libname.a'
12654
soname_spec='${libname}${release}${shared_ext}$major'
12656
shlibpath_var=LIBPATH
12661
library_names_spec='$libname.ixlibrary $libname.a'
12662
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12663
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'
12667
library_names_spec='${libname}${shared_ext}'
12668
dynamic_linker="$host_os ld.so"
12669
shlibpath_var=LIBRARY_PATH
12675
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12676
soname_spec='${libname}${release}${shared_ext}$major'
12677
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12678
shlibpath_var=LD_LIBRARY_PATH
12679
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12680
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12681
# the default ld.so.conf also contains /usr/contrib/lib and
12682
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12683
# libtool to hard-code these into programs
12686
cygwin* | mingw* | pw32*)
12687
version_type=windows
12692
case $GCC,$host_os in
12693
yes,cygwin* | yes,mingw* | yes,pw32*)
12694
library_names_spec='$libname.dll.a'
12695
# DLL is installed to $(libdir)/../bin by postinstall_cmds
12696
postinstall_cmds='base_file=`basename \${file}`~
12697
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12698
dldir=$destdir/`dirname \$dlpath`~
12699
test -d \$dldir || mkdir -p \$dldir~
12700
$install_prog $dir/$dlname \$dldir/$dlname'
12701
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12702
dlpath=$dir/\$dldll~
12704
shlibpath_overrides_runpath=yes
12708
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
12709
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12710
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12713
# MinGW DLLs use traditional 'lib' prefix
12714
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12715
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12716
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12717
# It is most probably a Windows format PATH printed by
12718
# mingw gcc, but we are running on Cygwin. Gcc prints its search
12719
# path with ; separators, and with drive letters. We can handle the
12720
# drive letters (cygwin fileutils understands them), so leave them,
12721
# especially as we might pass files found there to a mingw objdump,
12722
# which wouldn't understand a cygwinified path. Ahh.
12723
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12725
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12729
# pw32 DLLs use 'pw' prefix rather than 'lib'
12730
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12736
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12739
dynamic_linker='Win32 ld.exe'
12740
# FIXME: first we should search . and the directory the executable is in
12744
darwin* | rhapsody*)
12745
dynamic_linker="$host_os dyld"
12746
version_type=darwin
12749
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12750
soname_spec='${libname}${release}${major}$shared_ext'
12751
shlibpath_overrides_runpath=yes
12752
shlibpath_var=DYLD_LIBRARY_PATH
12753
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12754
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12755
if test "$GCC" = yes; then
12756
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"`
12758
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12760
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12767
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12768
soname_spec='${libname}${release}${shared_ext}$major'
12769
shlibpath_var=LD_LIBRARY_PATH
12780
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12781
soname_spec='${libname}${release}${shared_ext}$major'
12782
shlibpath_var=LD_LIBRARY_PATH
12783
shlibpath_overrides_runpath=no
12784
hardcode_into_libs=yes
12785
dynamic_linker='GNU ld.so'
12788
freebsd* | dragonfly*)
12789
# DragonFly does not have aout. When/if they implement a new
12790
# versioning mechanism, adjust this.
12791
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12792
version_type=freebsd-$objformat
12793
case $version_type in
12795
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12800
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12804
shlibpath_var=LD_LIBRARY_PATH
12807
shlibpath_overrides_runpath=yes
12809
freebsd3.[01]* | freebsdelf3.[01]*)
12810
shlibpath_overrides_runpath=yes
12811
hardcode_into_libs=yes
12814
shlibpath_overrides_runpath=no
12815
hardcode_into_libs=yes
12824
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12825
soname_spec='${libname}${release}${shared_ext}$major'
12826
shlibpath_var=LD_LIBRARY_PATH
12827
hardcode_into_libs=yes
12830
hpux9* | hpux10* | hpux11*)
12831
# Give a soname corresponding to the major version so that dld.sl refuses to
12832
# link against other versions.
12836
case "$host_cpu" in
12839
hardcode_into_libs=yes
12840
dynamic_linker="$host_os dld.so"
12841
shlibpath_var=LD_LIBRARY_PATH
12842
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12843
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12844
soname_spec='${libname}${release}${shared_ext}$major'
12845
if test "X$HPUX_IA64_MODE" = X32; then
12846
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12848
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12850
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12854
hardcode_into_libs=yes
12855
dynamic_linker="$host_os dld.sl"
12856
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12857
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12858
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12859
soname_spec='${libname}${release}${shared_ext}$major'
12860
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12861
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12865
dynamic_linker="$host_os dld.sl"
12866
shlibpath_var=SHLIB_PATH
12867
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12868
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12869
soname_spec='${libname}${release}${shared_ext}$major'
12872
# HP-UX runs *really* slowly unless shared libraries are mode 555.
12873
postinstall_cmds='chmod 555 $lib'
12876
irix5* | irix6* | nonstopux*)
12878
nonstopux*) version_type=nonstopux ;;
12880
if test "$lt_cv_prog_gnu_ld" = yes; then
12888
soname_spec='${libname}${release}${shared_ext}$major'
12889
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12891
irix5* | nonstopux*)
12892
libsuff= shlibsuff=
12895
case $LD in # libtool.m4 will add one of these switches to LD
12896
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12897
libsuff= shlibsuff= libmagic=32-bit;;
12898
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12899
libsuff=32 shlibsuff=N32 libmagic=N32;;
12900
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12901
libsuff=64 shlibsuff=64 libmagic=64-bit;;
12902
*) libsuff= shlibsuff= libmagic=never-match;;
12906
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12907
shlibpath_overrides_runpath=no
12908
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12909
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12910
hardcode_into_libs=yes
12913
# No shared lib support for Linux oldld, aout, or coff.
12914
linux*oldld* | linux*aout* | linux*coff*)
12918
# This must be Linux ELF.
12923
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12924
soname_spec='${libname}${release}${shared_ext}$major'
12925
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12926
shlibpath_var=LD_LIBRARY_PATH
12927
shlibpath_overrides_runpath=no
12928
# This implies no fast_install, which is unacceptable.
12929
# Some rework will be needed to allow for fast_install
12930
# before this can be enabled.
12931
hardcode_into_libs=yes
12933
# Append ld.so.conf contents to the search path
12934
if test -f /etc/ld.so.conf; then
12935
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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12936
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12939
# We used to test for /lib/ld.so.1 and disable shared libraries on
12940
# powerpc, because MkLinux only supported shared libraries with the
12941
# GNU dynamic linker. Since this was broken with cross compilers,
12942
# most powerpc-linux boxes support dynamic linking these days and
12943
# people can always --disable-shared, the test was removed, and we
12944
# assume the GNU/Linux dynamic linker is in use.
12945
dynamic_linker='GNU/Linux ld.so'
12952
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12953
soname_spec='${libname}${release}${shared_ext}$major'
12954
shlibpath_var=LD_LIBRARY_PATH
12955
shlibpath_overrides_runpath=no
12956
hardcode_into_libs=yes
12957
dynamic_linker='GNU ld.so'
12964
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12965
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12966
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12967
dynamic_linker='NetBSD (a.out) ld.so'
12969
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12970
soname_spec='${libname}${release}${shared_ext}$major'
12971
dynamic_linker='NetBSD ld.elf_so'
12973
shlibpath_var=LD_LIBRARY_PATH
12974
shlibpath_overrides_runpath=yes
12975
hardcode_into_libs=yes
12980
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12981
shlibpath_var=LD_LIBRARY_PATH
12982
shlibpath_overrides_runpath=yes
12989
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12990
soname_spec='${libname}${release}${shared_ext}$major'
12991
shlibpath_var=LD_LIBRARY_PATH
12992
shlibpath_overrides_runpath=yes
12999
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13000
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13001
shlibpath_var=LD_LIBRARY_PATH
13002
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13004
openbsd2.[89] | openbsd2.[89].*)
13005
shlibpath_overrides_runpath=no
13008
shlibpath_overrides_runpath=yes
13012
shlibpath_overrides_runpath=yes
13017
libname_spec='$name'
13020
library_names_spec='$libname${shared_ext} $libname.a'
13021
dynamic_linker='OS/2 ld.exe'
13022
shlibpath_var=LIBPATH
13025
osf3* | osf4* | osf5*)
13029
soname_spec='${libname}${release}${shared_ext}$major'
13030
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13031
shlibpath_var=LD_LIBRARY_PATH
13032
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13033
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13038
soname_spec='${libname}${release}${shared_ext}$major'
13039
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13040
shlibpath_var=LD_LIBRARY_PATH
13047
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13048
soname_spec='${libname}${release}${shared_ext}$major'
13049
shlibpath_var=LD_LIBRARY_PATH
13050
shlibpath_overrides_runpath=yes
13051
hardcode_into_libs=yes
13052
# ldd complains unless libraries are executable
13053
postinstall_cmds='chmod +x $lib'
13058
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13059
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13060
shlibpath_var=LD_LIBRARY_PATH
13061
shlibpath_overrides_runpath=yes
13062
if test "$with_gnu_ld" = yes; then
13068
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13070
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13071
soname_spec='${libname}${release}${shared_ext}$major'
13072
shlibpath_var=LD_LIBRARY_PATH
13073
case $host_vendor in
13075
shlibpath_overrides_runpath=no
13077
export_dynamic_flag_spec='${wl}-Blargedynsym'
13078
runpath_var=LD_RUN_PATH
13086
shlibpath_overrides_runpath=no
13087
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13093
if test -d /usr/nec ;then
13095
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13096
soname_spec='$libname${shared_ext}.$major'
13097
shlibpath_var=LD_LIBRARY_PATH
13103
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13104
soname_spec='${libname}${release}${shared_ext}$major'
13105
shlibpath_var=LD_LIBRARY_PATH
13112
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13113
echo "${ECHO_T}$dynamic_linker" >&6
13114
test "$dynamic_linker" = no && can_build_shared=no
13116
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13117
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13118
hardcode_action_CXX=
13119
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13120
test -n "$runpath_var_CXX" || \
13121
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13123
# We can hardcode non-existant directories.
13124
if test "$hardcode_direct_CXX" != no &&
13125
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13126
# have to relink, otherwise we might link with an installed library
13127
# when we should be linking with a yet-to-be-installed one
13128
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13129
test "$hardcode_minus_L_CXX" != no; then
13130
# Linking always hardcodes the temporary library directory.
13131
hardcode_action_CXX=relink
13133
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13134
hardcode_action_CXX=immediate
13137
# We cannot hardcode anything, or else we can only hardcode existing
13139
hardcode_action_CXX=unsupported
13141
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13142
echo "${ECHO_T}$hardcode_action_CXX" >&6
13144
if test "$hardcode_action_CXX" = relink; then
13145
# Fast installation is not supported
13146
enable_fast_install=no
13147
elif test "$shlibpath_overrides_runpath" = yes ||
13148
test "$enable_shared" = no; then
13149
# Fast installation is not necessary
13150
enable_fast_install=needless
13155
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13156
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13157
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13158
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13159
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13160
echo "$as_me:$LINENO: result: yes" >&5
13161
echo "${ECHO_T}yes" >&6
13163
# FIXME - insert some real tests, host_os isn't really good enough
13166
if test -n "$STRIP" ; then
13167
striplib="$STRIP -x"
13168
echo "$as_me:$LINENO: result: yes" >&5
13169
echo "${ECHO_T}yes" >&6
13171
echo "$as_me:$LINENO: result: no" >&5
13172
echo "${ECHO_T}no" >&6
13176
echo "$as_me:$LINENO: result: no" >&5
13177
echo "${ECHO_T}no" >&6
13182
if test "x$enable_dlopen" != xyes; then
13183
enable_dlopen=unknown
13184
enable_dlopen_self=unknown
13185
enable_dlopen_self_static=unknown
13192
lt_cv_dlopen="load_add_on"
13194
lt_cv_dlopen_self=yes
13198
lt_cv_dlopen="LoadLibrary"
13203
lt_cv_dlopen="dlopen"
13208
# if libdl is installed we need to link against it
13209
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13210
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13211
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13212
echo $ECHO_N "(cached) $ECHO_C" >&6
13214
ac_check_lib_save_LIBS=$LIBS
13216
cat >conftest.$ac_ext <<_ACEOF
13219
cat confdefs.h >>conftest.$ac_ext
13220
cat >>conftest.$ac_ext <<_ACEOF
13221
/* end confdefs.h. */
13223
/* Override any gcc2 internal prototype to avoid an error. */
13227
/* We use char because int might match the return type of a gcc2
13228
builtin and then its argument prototype would still apply. */
13238
rm -f conftest.$ac_objext conftest$ac_exeext
13239
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13240
(eval $ac_link) 2>conftest.er1
13242
grep -v '^ *+' conftest.er1 >conftest.err
13244
cat conftest.err >&5
13245
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246
(exit $ac_status); } &&
13247
{ ac_try='test -z "$ac_cxx_werror_flag"
13248
|| test ! -s conftest.err'
13249
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250
(eval $ac_try) 2>&5
13252
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253
(exit $ac_status); }; } &&
13254
{ ac_try='test -s conftest$ac_exeext'
13255
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256
(eval $ac_try) 2>&5
13258
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259
(exit $ac_status); }; }; then
13260
ac_cv_lib_dl_dlopen=yes
13262
echo "$as_me: failed program was:" >&5
13263
sed 's/^/| /' conftest.$ac_ext >&5
13265
ac_cv_lib_dl_dlopen=no
13267
rm -f conftest.err conftest.$ac_objext \
13268
conftest$ac_exeext conftest.$ac_ext
13269
LIBS=$ac_check_lib_save_LIBS
13271
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13272
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13273
if test $ac_cv_lib_dl_dlopen = yes; then
13274
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13277
lt_cv_dlopen="dyld"
13279
lt_cv_dlopen_self=yes
13286
echo "$as_me:$LINENO: checking for shl_load" >&5
13287
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13288
if test "${ac_cv_func_shl_load+set}" = set; then
13289
echo $ECHO_N "(cached) $ECHO_C" >&6
13291
cat >conftest.$ac_ext <<_ACEOF
13294
cat confdefs.h >>conftest.$ac_ext
13295
cat >>conftest.$ac_ext <<_ACEOF
13296
/* end confdefs.h. */
13297
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13298
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13299
#define shl_load innocuous_shl_load
13301
/* System header to define __stub macros and hopefully few prototypes,
13302
which can conflict with char shl_load (); below.
13303
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13304
<limits.h> exists even on freestanding compilers. */
13307
# include <limits.h>
13309
# include <assert.h>
13314
/* Override any gcc2 internal prototype to avoid an error. */
13319
/* We use char because int might match the return type of a gcc2
13320
builtin and then its argument prototype would still apply. */
13322
/* The GNU C library defines this for functions which it implements
13323
to always fail with ENOSYS. Some functions are actually named
13324
something starting with __ and the normal name is an alias. */
13325
#if defined (__stub_shl_load) || defined (__stub___shl_load)
13328
char (*f) () = shl_load;
13337
return f != shl_load;
13342
rm -f conftest.$ac_objext conftest$ac_exeext
13343
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13344
(eval $ac_link) 2>conftest.er1
13346
grep -v '^ *+' conftest.er1 >conftest.err
13348
cat conftest.err >&5
13349
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350
(exit $ac_status); } &&
13351
{ ac_try='test -z "$ac_cxx_werror_flag"
13352
|| test ! -s conftest.err'
13353
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13354
(eval $ac_try) 2>&5
13356
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357
(exit $ac_status); }; } &&
13358
{ ac_try='test -s conftest$ac_exeext'
13359
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13360
(eval $ac_try) 2>&5
13362
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363
(exit $ac_status); }; }; then
13364
ac_cv_func_shl_load=yes
13366
echo "$as_me: failed program was:" >&5
13367
sed 's/^/| /' conftest.$ac_ext >&5
13369
ac_cv_func_shl_load=no
13371
rm -f conftest.err conftest.$ac_objext \
13372
conftest$ac_exeext conftest.$ac_ext
13374
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13375
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13376
if test $ac_cv_func_shl_load = yes; then
13377
lt_cv_dlopen="shl_load"
13379
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13380
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13381
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13382
echo $ECHO_N "(cached) $ECHO_C" >&6
13384
ac_check_lib_save_LIBS=$LIBS
13386
cat >conftest.$ac_ext <<_ACEOF
13389
cat confdefs.h >>conftest.$ac_ext
13390
cat >>conftest.$ac_ext <<_ACEOF
13391
/* end confdefs.h. */
13393
/* Override any gcc2 internal prototype to avoid an error. */
13397
/* We use char because int might match the return type of a gcc2
13398
builtin and then its argument prototype would still apply. */
13408
rm -f conftest.$ac_objext conftest$ac_exeext
13409
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13410
(eval $ac_link) 2>conftest.er1
13412
grep -v '^ *+' conftest.er1 >conftest.err
13414
cat conftest.err >&5
13415
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416
(exit $ac_status); } &&
13417
{ ac_try='test -z "$ac_cxx_werror_flag"
13418
|| test ! -s conftest.err'
13419
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13420
(eval $ac_try) 2>&5
13422
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423
(exit $ac_status); }; } &&
13424
{ ac_try='test -s conftest$ac_exeext'
13425
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426
(eval $ac_try) 2>&5
13428
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429
(exit $ac_status); }; }; then
13430
ac_cv_lib_dld_shl_load=yes
13432
echo "$as_me: failed program was:" >&5
13433
sed 's/^/| /' conftest.$ac_ext >&5
13435
ac_cv_lib_dld_shl_load=no
13437
rm -f conftest.err conftest.$ac_objext \
13438
conftest$ac_exeext conftest.$ac_ext
13439
LIBS=$ac_check_lib_save_LIBS
13441
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13442
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13443
if test $ac_cv_lib_dld_shl_load = yes; then
13444
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13446
echo "$as_me:$LINENO: checking for dlopen" >&5
13447
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13448
if test "${ac_cv_func_dlopen+set}" = set; then
13449
echo $ECHO_N "(cached) $ECHO_C" >&6
13451
cat >conftest.$ac_ext <<_ACEOF
13454
cat confdefs.h >>conftest.$ac_ext
13455
cat >>conftest.$ac_ext <<_ACEOF
13456
/* end confdefs.h. */
13457
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13458
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13459
#define dlopen innocuous_dlopen
13461
/* System header to define __stub macros and hopefully few prototypes,
13462
which can conflict with char dlopen (); below.
13463
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13464
<limits.h> exists even on freestanding compilers. */
13467
# include <limits.h>
13469
# include <assert.h>
13474
/* Override any gcc2 internal prototype to avoid an error. */
13479
/* We use char because int might match the return type of a gcc2
13480
builtin and then its argument prototype would still apply. */
13482
/* The GNU C library defines this for functions which it implements
13483
to always fail with ENOSYS. Some functions are actually named
13484
something starting with __ and the normal name is an alias. */
13485
#if defined (__stub_dlopen) || defined (__stub___dlopen)
13488
char (*f) () = dlopen;
13497
return f != dlopen;
13502
rm -f conftest.$ac_objext conftest$ac_exeext
13503
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13504
(eval $ac_link) 2>conftest.er1
13506
grep -v '^ *+' conftest.er1 >conftest.err
13508
cat conftest.err >&5
13509
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510
(exit $ac_status); } &&
13511
{ ac_try='test -z "$ac_cxx_werror_flag"
13512
|| test ! -s conftest.err'
13513
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514
(eval $ac_try) 2>&5
13516
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517
(exit $ac_status); }; } &&
13518
{ ac_try='test -s conftest$ac_exeext'
13519
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13520
(eval $ac_try) 2>&5
13522
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523
(exit $ac_status); }; }; then
13524
ac_cv_func_dlopen=yes
13526
echo "$as_me: failed program was:" >&5
13527
sed 's/^/| /' conftest.$ac_ext >&5
13529
ac_cv_func_dlopen=no
13531
rm -f conftest.err conftest.$ac_objext \
13532
conftest$ac_exeext conftest.$ac_ext
13534
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13535
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13536
if test $ac_cv_func_dlopen = yes; then
13537
lt_cv_dlopen="dlopen"
13539
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13540
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13541
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13542
echo $ECHO_N "(cached) $ECHO_C" >&6
13544
ac_check_lib_save_LIBS=$LIBS
13546
cat >conftest.$ac_ext <<_ACEOF
13549
cat confdefs.h >>conftest.$ac_ext
13550
cat >>conftest.$ac_ext <<_ACEOF
13551
/* end confdefs.h. */
13553
/* Override any gcc2 internal prototype to avoid an error. */
13557
/* We use char because int might match the return type of a gcc2
13558
builtin and then its argument prototype would still apply. */
13568
rm -f conftest.$ac_objext conftest$ac_exeext
13569
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13570
(eval $ac_link) 2>conftest.er1
13572
grep -v '^ *+' conftest.er1 >conftest.err
13574
cat conftest.err >&5
13575
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576
(exit $ac_status); } &&
13577
{ ac_try='test -z "$ac_cxx_werror_flag"
13578
|| test ! -s conftest.err'
13579
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580
(eval $ac_try) 2>&5
13582
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583
(exit $ac_status); }; } &&
13584
{ ac_try='test -s conftest$ac_exeext'
13585
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586
(eval $ac_try) 2>&5
13588
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589
(exit $ac_status); }; }; then
13590
ac_cv_lib_dl_dlopen=yes
13592
echo "$as_me: failed program was:" >&5
13593
sed 's/^/| /' conftest.$ac_ext >&5
13595
ac_cv_lib_dl_dlopen=no
13597
rm -f conftest.err conftest.$ac_objext \
13598
conftest$ac_exeext conftest.$ac_ext
13599
LIBS=$ac_check_lib_save_LIBS
13601
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13602
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13603
if test $ac_cv_lib_dl_dlopen = yes; then
13604
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13606
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13607
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13608
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13609
echo $ECHO_N "(cached) $ECHO_C" >&6
13611
ac_check_lib_save_LIBS=$LIBS
13612
LIBS="-lsvld $LIBS"
13613
cat >conftest.$ac_ext <<_ACEOF
13616
cat confdefs.h >>conftest.$ac_ext
13617
cat >>conftest.$ac_ext <<_ACEOF
13618
/* end confdefs.h. */
13620
/* Override any gcc2 internal prototype to avoid an error. */
13624
/* We use char because int might match the return type of a gcc2
13625
builtin and then its argument prototype would still apply. */
13635
rm -f conftest.$ac_objext conftest$ac_exeext
13636
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13637
(eval $ac_link) 2>conftest.er1
13639
grep -v '^ *+' conftest.er1 >conftest.err
13641
cat conftest.err >&5
13642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643
(exit $ac_status); } &&
13644
{ ac_try='test -z "$ac_cxx_werror_flag"
13645
|| test ! -s conftest.err'
13646
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13647
(eval $ac_try) 2>&5
13649
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650
(exit $ac_status); }; } &&
13651
{ ac_try='test -s conftest$ac_exeext'
13652
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13653
(eval $ac_try) 2>&5
13655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656
(exit $ac_status); }; }; then
13657
ac_cv_lib_svld_dlopen=yes
13659
echo "$as_me: failed program was:" >&5
13660
sed 's/^/| /' conftest.$ac_ext >&5
13662
ac_cv_lib_svld_dlopen=no
13664
rm -f conftest.err conftest.$ac_objext \
13665
conftest$ac_exeext conftest.$ac_ext
13666
LIBS=$ac_check_lib_save_LIBS
13668
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13669
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13670
if test $ac_cv_lib_svld_dlopen = yes; then
13671
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13673
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13674
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13675
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13676
echo $ECHO_N "(cached) $ECHO_C" >&6
13678
ac_check_lib_save_LIBS=$LIBS
13680
cat >conftest.$ac_ext <<_ACEOF
13683
cat confdefs.h >>conftest.$ac_ext
13684
cat >>conftest.$ac_ext <<_ACEOF
13685
/* end confdefs.h. */
13687
/* Override any gcc2 internal prototype to avoid an error. */
13691
/* We use char because int might match the return type of a gcc2
13692
builtin and then its argument prototype would still apply. */
13702
rm -f conftest.$ac_objext conftest$ac_exeext
13703
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13704
(eval $ac_link) 2>conftest.er1
13706
grep -v '^ *+' conftest.er1 >conftest.err
13708
cat conftest.err >&5
13709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710
(exit $ac_status); } &&
13711
{ ac_try='test -z "$ac_cxx_werror_flag"
13712
|| test ! -s conftest.err'
13713
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13714
(eval $ac_try) 2>&5
13716
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717
(exit $ac_status); }; } &&
13718
{ ac_try='test -s conftest$ac_exeext'
13719
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720
(eval $ac_try) 2>&5
13722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723
(exit $ac_status); }; }; then
13724
ac_cv_lib_dld_dld_link=yes
13726
echo "$as_me: failed program was:" >&5
13727
sed 's/^/| /' conftest.$ac_ext >&5
13729
ac_cv_lib_dld_dld_link=no
13731
rm -f conftest.err conftest.$ac_objext \
13732
conftest$ac_exeext conftest.$ac_ext
13733
LIBS=$ac_check_lib_save_LIBS
13735
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13736
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13737
if test $ac_cv_lib_dld_dld_link = yes; then
13738
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13759
if test "x$lt_cv_dlopen" != xno; then
13765
case $lt_cv_dlopen in
13767
save_CPPFLAGS="$CPPFLAGS"
13768
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13770
save_LDFLAGS="$LDFLAGS"
13771
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13774
LIBS="$lt_cv_dlopen_libs $LIBS"
13776
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13777
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13778
if test "${lt_cv_dlopen_self+set}" = set; then
13779
echo $ECHO_N "(cached) $ECHO_C" >&6
13781
if test "$cross_compiling" = yes; then :
13782
lt_cv_dlopen_self=cross
13784
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13785
lt_status=$lt_dlunknown
13786
cat > conftest.$ac_ext <<EOF
13787
#line __oline__ "configure"
13788
#include "confdefs.h"
13797
# define LT_DLGLOBAL RTLD_GLOBAL
13800
# define LT_DLGLOBAL DL_GLOBAL
13802
# define LT_DLGLOBAL 0
13806
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13807
find out it does not work in some platform. */
13808
#ifndef LT_DLLAZY_OR_NOW
13810
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13813
# define LT_DLLAZY_OR_NOW DL_LAZY
13816
# define LT_DLLAZY_OR_NOW RTLD_NOW
13819
# define LT_DLLAZY_OR_NOW DL_NOW
13821
# define LT_DLLAZY_OR_NOW 0
13829
extern "C" void exit (int);
13832
void fnord() { int i=42;}
13835
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13836
int status = $lt_dlunknown;
13840
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13841
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13842
/* dlclose (self); */
13848
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13849
(eval $ac_link) 2>&5
13851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13853
(./conftest; exit; ) 2>/dev/null
13855
case x$lt_status in
13856
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13857
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13858
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13861
# compilation failed
13862
lt_cv_dlopen_self=no
13869
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13870
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13872
if test "x$lt_cv_dlopen_self" = xyes; then
13873
LDFLAGS="$LDFLAGS $link_static_flag"
13874
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13875
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13876
if test "${lt_cv_dlopen_self_static+set}" = set; then
13877
echo $ECHO_N "(cached) $ECHO_C" >&6
13879
if test "$cross_compiling" = yes; then :
13880
lt_cv_dlopen_self_static=cross
13882
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13883
lt_status=$lt_dlunknown
13884
cat > conftest.$ac_ext <<EOF
13885
#line __oline__ "configure"
13886
#include "confdefs.h"
13895
# define LT_DLGLOBAL RTLD_GLOBAL
13898
# define LT_DLGLOBAL DL_GLOBAL
13900
# define LT_DLGLOBAL 0
13904
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13905
find out it does not work in some platform. */
13906
#ifndef LT_DLLAZY_OR_NOW
13908
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13911
# define LT_DLLAZY_OR_NOW DL_LAZY
13914
# define LT_DLLAZY_OR_NOW RTLD_NOW
13917
# define LT_DLLAZY_OR_NOW DL_NOW
13919
# define LT_DLLAZY_OR_NOW 0
13927
extern "C" void exit (int);
13930
void fnord() { int i=42;}
13933
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13934
int status = $lt_dlunknown;
13938
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13939
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13940
/* dlclose (self); */
13946
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13947
(eval $ac_link) 2>&5
13949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13951
(./conftest; exit; ) 2>/dev/null
13953
case x$lt_status in
13954
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13955
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13956
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13959
# compilation failed
13960
lt_cv_dlopen_self_static=no
13967
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13968
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13971
CPPFLAGS="$save_CPPFLAGS"
13972
LDFLAGS="$save_LDFLAGS"
13977
case $lt_cv_dlopen_self in
13978
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13979
*) enable_dlopen_self=unknown ;;
13982
case $lt_cv_dlopen_self_static in
13983
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13984
*) enable_dlopen_self_static=unknown ;;
13989
# The else clause should only fire when bootstrapping the
13990
# libtool distribution, otherwise you forgot to ship ltmain.sh
13991
# with your package, and you will get complaints that there are
13992
# no rules to generate ltmain.sh.
13993
if test -f "$ltmain"; then
13994
# See if we are running on zsh, and set the options which allow our commands through
13995
# without removal of \ escapes.
13996
if test -n "${ZSH_VERSION+set}" ; then
13997
setopt NO_GLOB_SUBST
13999
# Now quote all the things that may contain metacharacters while being
14000
# careful not to overquote the AC_SUBSTed values. We take copies of the
14001
# variables and quote the copies for generation of the libtool script.
14002
for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
14004
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14005
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14006
deplibs_check_method reload_flag reload_cmds need_locks \
14007
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14008
lt_cv_sys_global_symbol_to_c_name_address \
14009
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14010
old_postinstall_cmds old_postuninstall_cmds \
14014
lt_prog_compiler_wl_CXX \
14015
lt_prog_compiler_pic_CXX \
14016
lt_prog_compiler_static_CXX \
14017
lt_prog_compiler_no_builtin_flag_CXX \
14018
export_dynamic_flag_spec_CXX \
14019
thread_safe_flag_spec_CXX \
14020
whole_archive_flag_spec_CXX \
14021
enable_shared_with_static_runtimes_CXX \
14022
old_archive_cmds_CXX \
14023
old_archive_from_new_cmds_CXX \
14024
predep_objects_CXX \
14025
postdep_objects_CXX \
14028
compiler_lib_search_path_CXX \
14030
archive_expsym_cmds_CXX \
14031
postinstall_cmds_CXX \
14032
postuninstall_cmds_CXX \
14033
old_archive_from_expsyms_cmds_CXX \
14034
allow_undefined_flag_CXX \
14035
no_undefined_flag_CXX \
14036
export_symbols_cmds_CXX \
14037
hardcode_libdir_flag_spec_CXX \
14038
hardcode_libdir_flag_spec_ld_CXX \
14039
hardcode_libdir_separator_CXX \
14040
hardcode_automatic_CXX \
14042
module_expsym_cmds_CXX \
14043
lt_cv_prog_compiler_c_o_CXX \
14044
exclude_expsyms_CXX \
14045
include_expsyms_CXX; do
14048
old_archive_cmds_CXX | \
14049
old_archive_from_new_cmds_CXX | \
14050
archive_cmds_CXX | \
14051
archive_expsym_cmds_CXX | \
14052
module_cmds_CXX | \
14053
module_expsym_cmds_CXX | \
14054
old_archive_from_expsyms_cmds_CXX | \
14055
export_symbols_cmds_CXX | \
14056
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14057
postinstall_cmds | postuninstall_cmds | \
14058
old_postinstall_cmds | old_postuninstall_cmds | \
14059
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14060
# Double-quote double-evaled strings.
14061
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14064
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14070
*'\$0 --fallback-echo"')
14071
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14077
cat <<__EOF__ >> "$cfgfile"
14078
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14080
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14082
# Shell to use when invoking shell scripts.
14085
# Whether or not to build shared libraries.
14086
build_libtool_libs=$enable_shared
14088
# Whether or not to build static libraries.
14089
build_old_libs=$enable_static
14091
# Whether or not to add -lc for building shared libraries.
14092
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14094
# Whether or not to disallow shared libs when runtime libs are static
14095
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14097
# Whether or not to optimize for fast installation.
14098
fast_install=$enable_fast_install
14101
host_alias=$host_alias
14105
# The build system.
14106
build_alias=$build_alias
14110
# An echo program that does not interpret backslashes.
14115
AR_FLAGS=$lt_AR_FLAGS
14120
# A language-specific compiler.
14121
CC=$lt_compiler_CXX
14123
# Is the compiler the GNU C compiler?
14129
# The linker used to build libraries.
14132
# Whether we need hard or soft links.
14135
# A BSD-compatible nm program.
14138
# A symbol stripping program
14141
# Used to examine libraries when file_magic_cmd begins "file"
14142
MAGIC_CMD=$MAGIC_CMD
14144
# Used on cygwin: DLL creation program.
14147
# Used on cygwin: object dumper.
14150
# Used on cygwin: assembler.
14153
# The name of the directory that contains temporary libtool files.
14156
# How to create reloadable object files.
14157
reload_flag=$lt_reload_flag
14158
reload_cmds=$lt_reload_cmds
14160
# How to pass a linker flag through the compiler.
14161
wl=$lt_lt_prog_compiler_wl_CXX
14163
# Object file suffix (normally "o").
14164
objext="$ac_objext"
14166
# Old archive suffix (normally "a").
14169
# Shared library suffix (normally ".so").
14170
shrext_cmds='$shrext_cmds'
14172
# Executable file suffix (normally "").
14175
# Additional compiler flags for building library objects.
14176
pic_flag=$lt_lt_prog_compiler_pic_CXX
14179
# What is the maximum length of a command?
14180
max_cmd_len=$lt_cv_sys_max_cmd_len
14182
# Does compiler simultaneously support -c and -o options?
14183
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14185
# Must we lock files when doing compilation ?
14186
need_locks=$lt_need_locks
14188
# Do we need the lib prefix for modules?
14189
need_lib_prefix=$need_lib_prefix
14191
# Do we need a version for libraries?
14192
need_version=$need_version
14194
# Whether dlopen is supported.
14195
dlopen_support=$enable_dlopen
14197
# Whether dlopen of programs is supported.
14198
dlopen_self=$enable_dlopen_self
14200
# Whether dlopen of statically linked programs is supported.
14201
dlopen_self_static=$enable_dlopen_self_static
14203
# Compiler flag to prevent dynamic linking.
14204
link_static_flag=$lt_lt_prog_compiler_static_CXX
14206
# Compiler flag to turn off builtin functions.
14207
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14209
# Compiler flag to allow reflexive dlopens.
14210
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14212
# Compiler flag to generate shared objects directly from archives.
14213
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14215
# Compiler flag to generate thread-safe objects.
14216
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14218
# Library versioning type.
14219
version_type=$version_type
14221
# Format of library name prefix.
14222
libname_spec=$lt_libname_spec
14224
# List of archive names. First name is the real one, the rest are links.
14225
# The last name is the one that the linker finds with -lNAME.
14226
library_names_spec=$lt_library_names_spec
14228
# The coded name of the library, if different from the real name.
14229
soname_spec=$lt_soname_spec
14231
# Commands used to build and install an old-style archive.
14233
old_archive_cmds=$lt_old_archive_cmds_CXX
14234
old_postinstall_cmds=$lt_old_postinstall_cmds
14235
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14237
# Create an old-style archive from a shared archive.
14238
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14240
# Create a temporary old-style archive to link instead of a shared archive.
14241
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14243
# Commands used to build and install a shared archive.
14244
archive_cmds=$lt_archive_cmds_CXX
14245
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14246
postinstall_cmds=$lt_postinstall_cmds
14247
postuninstall_cmds=$lt_postuninstall_cmds
14249
# Commands used to build a loadable module (assumed same as above if empty)
14250
module_cmds=$lt_module_cmds_CXX
14251
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14253
# Commands to strip libraries.
14254
old_striplib=$lt_old_striplib
14255
striplib=$lt_striplib
14257
# Dependencies to place before the objects being linked to create a
14259
predep_objects=$lt_predep_objects_CXX
14261
# Dependencies to place after the objects being linked to create a
14263
postdep_objects=$lt_postdep_objects_CXX
14265
# Dependencies to place before the objects being linked to create a
14267
predeps=$lt_predeps_CXX
14269
# Dependencies to place after the objects being linked to create a
14271
postdeps=$lt_postdeps_CXX
14273
# The library search path used internally by the compiler when linking
14274
# a shared library.
14275
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14277
# Method to check whether dependent libraries are shared objects.
14278
deplibs_check_method=$lt_deplibs_check_method
14280
# Command to use when deplibs_check_method == file_magic.
14281
file_magic_cmd=$lt_file_magic_cmd
14283
# Flag that allows shared libraries with undefined symbols to be built.
14284
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14286
# Flag that forces no undefined symbols.
14287
no_undefined_flag=$lt_no_undefined_flag_CXX
14289
# Commands used to finish a libtool library installation in a directory.
14290
finish_cmds=$lt_finish_cmds
14292
# Same as above, but a single script fragment to be evaled but not shown.
14293
finish_eval=$lt_finish_eval
14295
# Take the output of nm and produce a listing of raw symbols and C names.
14296
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14298
# Transform the output of nm in a proper C declaration
14299
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14301
# Transform the output of nm in a C name address pair
14302
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14304
# This is the shared library runtime path variable.
14305
runpath_var=$runpath_var
14307
# This is the shared library path variable.
14308
shlibpath_var=$shlibpath_var
14310
# Is shlibpath searched before the hard-coded library search path?
14311
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14313
# How to hardcode a shared library path into an executable.
14314
hardcode_action=$hardcode_action_CXX
14316
# Whether we should hardcode library paths into libraries.
14317
hardcode_into_libs=$hardcode_into_libs
14319
# Flag to hardcode \$libdir into a binary during linking.
14320
# This must work even if \$libdir does not exist.
14321
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14323
# If ld is used when linking, flag to hardcode \$libdir into
14324
# a binary during linking. This must work even if \$libdir does
14326
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14328
# Whether we need a single -rpath flag with a separated argument.
14329
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14331
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14332
# resulting binary.
14333
hardcode_direct=$hardcode_direct_CXX
14335
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14336
# resulting binary.
14337
hardcode_minus_L=$hardcode_minus_L_CXX
14339
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14340
# the resulting binary.
14341
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14343
# Set to yes if building a shared library automatically hardcodes DIR into the library
14344
# and all subsequent libraries and executables linked against it.
14345
hardcode_automatic=$hardcode_automatic_CXX
14347
# Variables whose values should be saved in libtool wrapper scripts and
14348
# restored at relink time.
14349
variables_saved_for_relink="$variables_saved_for_relink"
14351
# Whether libtool must link a program against all its dependency libraries.
14352
link_all_deplibs=$link_all_deplibs_CXX
14354
# Compile-time system search path for libraries
14355
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14357
# Run-time system search path for libraries
14358
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14360
# Fix the shell variable \$srcfile for the compiler.
14361
fix_srcfile_path="$fix_srcfile_path_CXX"
14363
# Set to yes if exported symbols are required.
14364
always_export_symbols=$always_export_symbols_CXX
14366
# The commands to list exported symbols.
14367
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14369
# The commands to extract the exported symbol list from a shared archive.
14370
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14372
# Symbols that should not be listed in the preloaded symbols.
14373
exclude_expsyms=$lt_exclude_expsyms_CXX
14375
# Symbols that must always be exported.
14376
include_expsyms=$lt_include_expsyms_CXX
14378
# ### END LIBTOOL TAG CONFIG: $tagname
14384
# If there is no Makefile yet, we rely on a make rule to execute
14385
# `config.status --recheck' to rerun these tests and create the
14386
# libtool script then.
14387
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14388
if test -f "$ltmain_in"; then
14389
test -f Makefile && make "$ltmain"
14395
ac_cpp='$CPP $CPPFLAGS'
14396
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14397
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14398
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14404
with_gnu_ldcxx=$with_gnu_ld
14405
with_gnu_ld=$lt_save_with_gnu_ld
14406
lt_cv_path_LDCXX=$lt_cv_path_LD
14407
lt_cv_path_LD=$lt_save_path_LD
14408
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14409
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14417
if test -n "$F77" && test "X$F77" != "Xno"; then
14420
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14421
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14422
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14425
archive_cmds_need_lc_F77=no
14426
allow_undefined_flag_F77=
14427
always_export_symbols_F77=no
14428
archive_expsym_cmds_F77=
14429
export_dynamic_flag_spec_F77=
14430
hardcode_direct_F77=no
14431
hardcode_libdir_flag_spec_F77=
14432
hardcode_libdir_flag_spec_ld_F77=
14433
hardcode_libdir_separator_F77=
14434
hardcode_minus_L_F77=no
14435
hardcode_automatic_F77=no
14437
module_expsym_cmds_F77=
14438
link_all_deplibs_F77=unknown
14439
old_archive_cmds_F77=$old_archive_cmds
14440
no_undefined_flag_F77=
14441
whole_archive_flag_spec_F77=
14442
enable_shared_with_static_runtimes_F77=no
14444
# Source file extension for f77 test sources.
14447
# Object file extension for compiled f77 test sources.
14451
# Code to be used in simple compile tests
14452
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14454
# Code to be used in simple link tests
14455
lt_simple_link_test_code=" program t\n end\n"
14457
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14459
# If no C compiler was specified, use CC.
14462
# Allow CC to be a program name with arguments.
14466
# Allow CC to be a program name with arguments.
14471
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14473
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14474
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14475
echo "$as_me:$LINENO: result: $can_build_shared" >&5
14476
echo "${ECHO_T}$can_build_shared" >&6
14478
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14479
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14480
test "$can_build_shared" = "no" && enable_shared=no
14482
# On AIX, shared libraries and static libraries use the same namespace, and
14483
# are all built from PIC.
14486
test "$enable_shared" = yes && enable_static=no
14487
if test -n "$RANLIB"; then
14488
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14489
postinstall_cmds='$RANLIB $lib'
14493
test "$enable_shared" = yes && enable_static=no
14496
echo "$as_me:$LINENO: result: $enable_shared" >&5
14497
echo "${ECHO_T}$enable_shared" >&6
14499
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14500
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14501
# Make sure either enable_shared or enable_static is yes.
14502
test "$enable_shared" = yes || enable_static=yes
14503
echo "$as_me:$LINENO: result: $enable_static" >&5
14504
echo "${ECHO_T}$enable_static" >&6
14506
test "$ld_shlibs_F77" = no && can_build_shared=no
14511
lt_prog_compiler_wl_F77=
14512
lt_prog_compiler_pic_F77=
14513
lt_prog_compiler_static_F77=
14515
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14516
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14518
if test "$GCC" = yes; then
14519
lt_prog_compiler_wl_F77='-Wl,'
14520
lt_prog_compiler_static_F77='-static'
14524
# All AIX code is PIC.
14525
if test "$host_cpu" = ia64; then
14526
# AIX 5 now supports IA64 processor
14527
lt_prog_compiler_static_F77='-Bstatic'
14532
# FIXME: we need at least 68020 code to build shared libraries, but
14533
# adding the `-m68020' flag to GCC prevents building anything better,
14535
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14538
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14539
# PIC is the default for these OSes.
14542
mingw* | pw32* | os2*)
14543
# This hack is so that the source file can tell whether it is being
14544
# built for inclusion in a dll (and should export symbols for example).
14545
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14548
darwin* | rhapsody*)
14549
# PIC is the default on this platform
14550
# Common symbols not allowed in MH_DYLIB files
14551
lt_prog_compiler_pic_F77='-fno-common'
14555
# Just because we use GCC doesn't mean we suddenly get shared libraries
14556
# on systems that don't support them.
14557
lt_prog_compiler_can_build_shared_F77=no
14562
if test -d /usr/nec; then
14563
lt_prog_compiler_pic_F77=-Kconform_pic
14568
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14569
# not for PA HP-UX.
14570
case "$host_cpu" in
14575
lt_prog_compiler_pic_F77='-fPIC'
14581
lt_prog_compiler_pic_F77='-fPIC'
14585
# PORTME Check for flag to pass linker flags through the system compiler.
14588
lt_prog_compiler_wl_F77='-Wl,'
14589
if test "$host_cpu" = ia64; then
14590
# AIX 5 now supports IA64 processor
14591
lt_prog_compiler_static_F77='-Bstatic'
14593
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14597
# PIC is the default on this platform
14598
# Common symbols not allowed in MH_DYLIB files
14599
case "$cc_basename" in
14601
lt_prog_compiler_pic_F77='-qnocommon'
14602
lt_prog_compiler_wl_F77='-Wl,'
14607
mingw* | pw32* | os2*)
14608
# This hack is so that the source file can tell whether it is being
14609
# built for inclusion in a dll (and should export symbols for example).
14610
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14613
hpux9* | hpux10* | hpux11*)
14614
lt_prog_compiler_wl_F77='-Wl,'
14615
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14616
# not for PA HP-UX.
14617
case "$host_cpu" in
14622
lt_prog_compiler_pic_F77='+Z'
14625
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14626
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14629
irix5* | irix6* | nonstopux*)
14630
lt_prog_compiler_wl_F77='-Wl,'
14631
# PIC (with -KPIC) is the default.
14632
lt_prog_compiler_static_F77='-non_shared'
14636
lt_prog_compiler_pic_F77='-KPIC'
14637
lt_prog_compiler_static_F77='-Bstatic'
14641
case $cc_basename in
14643
lt_prog_compiler_wl_F77='-Wl,'
14644
lt_prog_compiler_pic_F77='-KPIC'
14645
lt_prog_compiler_static_F77='-static'
14647
pgcc | pgf77 | pgf90)
14648
# Portland Group compilers (*not* the Pentium gcc compiler,
14649
# which looks to be a dead project)
14650
lt_prog_compiler_wl_F77='-Wl,'
14651
lt_prog_compiler_pic_F77='-fpic'
14652
lt_prog_compiler_static_F77='-static'
14655
lt_prog_compiler_wl_F77='-Wl,'
14656
# All Alpha code is PIC.
14657
lt_prog_compiler_static_F77='-non_shared'
14662
osf3* | osf4* | osf5*)
14663
lt_prog_compiler_wl_F77='-Wl,'
14664
# All OSF/1 code is PIC.
14665
lt_prog_compiler_static_F77='-non_shared'
14669
lt_prog_compiler_pic_F77='-Kpic'
14670
lt_prog_compiler_static_F77='-dn'
14674
lt_prog_compiler_wl_F77='-Wl,'
14675
lt_prog_compiler_pic_F77='-KPIC'
14676
lt_prog_compiler_static_F77='-Bstatic'
14680
lt_prog_compiler_wl_F77='-Qoption ld '
14681
lt_prog_compiler_pic_F77='-PIC'
14682
lt_prog_compiler_static_F77='-Bstatic'
14685
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14686
lt_prog_compiler_wl_F77='-Wl,'
14687
lt_prog_compiler_pic_F77='-KPIC'
14688
lt_prog_compiler_static_F77='-Bstatic'
14692
if test -d /usr/nec ;then
14693
lt_prog_compiler_pic_F77='-Kconform_pic'
14694
lt_prog_compiler_static_F77='-Bstatic'
14699
lt_prog_compiler_wl_F77='-Wl,'
14700
lt_prog_compiler_can_build_shared_F77=no
14704
lt_prog_compiler_pic_F77='-pic'
14705
lt_prog_compiler_static_F77='-Bstatic'
14709
lt_prog_compiler_can_build_shared_F77=no
14714
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14715
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14718
# Check to make sure the PIC flag actually works.
14720
if test -n "$lt_prog_compiler_pic_F77"; then
14722
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14723
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14724
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14725
echo $ECHO_N "(cached) $ECHO_C" >&6
14727
lt_prog_compiler_pic_works_F77=no
14728
ac_outfile=conftest.$ac_objext
14729
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14730
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14731
# Insert the option either (1) after the last *FLAGS variable, or
14732
# (2) before a word containing "conftest.", or (3) at the end.
14733
# Note that $ac_compile itself does not contain backslashes and begins
14734
# with a dollar sign (not a hyphen), so the echo should work correctly.
14735
# The option is referenced via a variable to avoid confusing sed.
14736
lt_compile=`echo "$ac_compile" | $SED \
14737
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14738
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14739
-e 's:$: $lt_compiler_flag:'`
14740
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14741
(eval "$lt_compile" 2>conftest.err)
14743
cat conftest.err >&5
14744
echo "$as_me:__oline__: \$? = $ac_status" >&5
14745
if (exit $ac_status) && test -s "$ac_outfile"; then
14746
# The compiler can only warn and ignore the option if not recognized
14747
# So say no if there are warnings
14748
if test ! -s conftest.err; then
14749
lt_prog_compiler_pic_works_F77=yes
14755
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14756
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14758
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14759
case $lt_prog_compiler_pic_F77 in
14761
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14764
lt_prog_compiler_pic_F77=
14765
lt_prog_compiler_can_build_shared_F77=no
14770
# For platforms which do not support PIC, -DPIC is meaningless:
14772
lt_prog_compiler_pic_F77=
14775
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14779
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14780
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14781
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14782
echo $ECHO_N "(cached) $ECHO_C" >&6
14784
lt_cv_prog_compiler_c_o_F77=no
14785
$rm -r conftest 2>/dev/null
14789
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14791
lt_compiler_flag="-o out/conftest2.$ac_objext"
14792
# Insert the option either (1) after the last *FLAGS variable, or
14793
# (2) before a word containing "conftest.", or (3) at the end.
14794
# Note that $ac_compile itself does not contain backslashes and begins
14795
# with a dollar sign (not a hyphen), so the echo should work correctly.
14796
lt_compile=`echo "$ac_compile" | $SED \
14797
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14798
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14799
-e 's:$: $lt_compiler_flag:'`
14800
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14801
(eval "$lt_compile" 2>out/conftest.err)
14803
cat out/conftest.err >&5
14804
echo "$as_me:__oline__: \$? = $ac_status" >&5
14805
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14807
# The compiler can only warn and ignore the option if not recognized
14808
# So say no if there are warnings
14809
if test ! -s out/conftest.err; then
14810
lt_cv_prog_compiler_c_o_F77=yes
14815
# SGI C++ compiler will create directory out/ii_files/ for
14816
# template instantiation
14817
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14818
$rm out/* && rmdir out
14824
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14825
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14828
hard_links="nottested"
14829
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14830
# do not overwrite the value of need_locks provided by the user
14831
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14832
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14835
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14837
ln conftest.a conftest.b 2>&5 || hard_links=no
14838
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14839
echo "$as_me:$LINENO: result: $hard_links" >&5
14840
echo "${ECHO_T}$hard_links" >&6
14841
if test "$hard_links" = no; then
14842
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14843
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14850
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14851
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14854
allow_undefined_flag_F77=
14855
enable_shared_with_static_runtimes_F77=no
14857
archive_expsym_cmds_F77=
14858
old_archive_From_new_cmds_F77=
14859
old_archive_from_expsyms_cmds_F77=
14860
export_dynamic_flag_spec_F77=
14861
whole_archive_flag_spec_F77=
14862
thread_safe_flag_spec_F77=
14863
hardcode_libdir_flag_spec_F77=
14864
hardcode_libdir_flag_spec_ld_F77=
14865
hardcode_libdir_separator_F77=
14866
hardcode_direct_F77=no
14867
hardcode_minus_L_F77=no
14868
hardcode_shlibpath_var_F77=unsupported
14869
link_all_deplibs_F77=unknown
14870
hardcode_automatic_F77=no
14872
module_expsym_cmds_F77=
14873
always_export_symbols_F77=no
14874
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14875
# include_expsyms should be a list of space-separated symbols to be *always*
14876
# included in the symbol list
14877
include_expsyms_F77=
14878
# exclude_expsyms can be an extended regexp of symbols to exclude
14879
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14880
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14881
# as well as any symbol that contains `d'.
14882
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14883
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14884
# platforms (ab)use it in PIC code, but their linkers get confused if
14885
# the symbol is explicitly referenced. Since portable code cannot
14886
# rely on this symbol name, it's probably fine to never include it in
14887
# preloaded symbol tables.
14888
extract_expsyms_cmds=
14891
cygwin* | mingw* | pw32*)
14892
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14893
# When not using gcc, we currently assume that we are using
14894
# Microsoft Visual C++.
14895
if test "$GCC" != yes; then
14905
if test "$with_gnu_ld" = yes; then
14906
# If archive_cmds runs LD, not CC, wlarc should be empty
14909
# See if GNU ld supports shared libraries.
14911
aix3* | aix4* | aix5*)
14912
# On AIX/PPC, the GNU linker is very broken
14913
if test "$host_cpu" != ia64; then
14917
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14918
*** to be unable to reliably create shared libraries on AIX.
14919
*** Therefore, libtool is disabling shared libraries support. If you
14920
*** really care for shared libraries, you may want to modify your PATH
14921
*** so that a non-GNU linker is found, and then restart.
14928
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)'
14929
hardcode_libdir_flag_spec_F77='-L$libdir'
14930
hardcode_minus_L_F77=yes
14932
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14933
# that the semantics of dynamic libraries on AmigaOS, at least up
14934
# to version 4, is to share data among multiple programs linked
14935
# with the same dynamic library. Since this doesn't match the
14936
# behavior of shared libraries on other platforms, we can't use
14942
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14943
allow_undefined_flag_F77=unsupported
14944
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14945
# support --undefined. This deserves some investigation. FIXME
14946
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14952
cygwin* | mingw* | pw32*)
14953
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14954
# as there is no search path for DLLs.
14955
hardcode_libdir_flag_spec_F77='-L$libdir'
14956
allow_undefined_flag_F77=unsupported
14957
always_export_symbols_F77=no
14958
enable_shared_with_static_runtimes_F77=yes
14959
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14961
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14962
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14963
# If the export-symbols file already is a .def file (1st line
14964
# is EXPORTS), use it as is; otherwise, prepend...
14965
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14966
cp $export_symbols $output_objdir/$soname.def;
14968
echo EXPORTS > $output_objdir/$soname.def;
14969
cat $export_symbols >> $output_objdir/$soname.def;
14971
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14978
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14979
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14982
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14983
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14988
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14992
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14993
*** create shared libraries on Solaris systems. Therefore, libtool
14994
*** is disabling shared libraries support. We urge you to upgrade GNU
14995
*** binutils to release 2.9.1 or newer. Another option is to modify
14996
*** your PATH or compiler configuration so that the native linker is
14997
*** used, and then restart.
15000
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15001
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15002
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15009
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15011
hardcode_direct_F77=yes
15012
hardcode_shlibpath_var_F77=no
15016
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15018
case $CC,$host_cpu in
15019
pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
15020
tmp_addflag=' -fpic' ;;
15021
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15022
tmp_addflag=' -i_dynamic' ;;
15023
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15024
tmp_addflag=' -i_dynamic -nofor_main' ;;
15025
ifc* | ifort*) # Intel Fortran compiler
15026
tmp_addflag=' -nofor_main' ;;
15028
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15029
supports_anon_versioning=no
15030
case `$LD -v 2>/dev/null` in
15031
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15032
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15033
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15034
*\ 2.11.*) ;; # other 2.11 versions
15035
*) supports_anon_versioning=yes ;;
15037
if test $supports_anon_versioning = yes; then
15038
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15039
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15040
$echo "local: *; };" >> $output_objdir/$libname.ver~
15041
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15043
archive_expsym_cmds_F77=$archive_cmds_F77
15051
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15052
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15053
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15060
if test "$ld_shlibs_F77" = yes; then
15061
runpath_var=LD_RUN_PATH
15062
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15063
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15064
# ancient GNU ld didn't support --whole-archive et. al.
15065
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15066
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15068
whole_archive_flag_spec_F77=
15072
# PORTME fill in a description of your system's linker (not GNU ld)
15075
allow_undefined_flag_F77=unsupported
15076
always_export_symbols_F77=yes
15077
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'
15078
# Note: this linker hardcodes the directories in LIBPATH if there
15079
# are no directories specified by -L.
15080
hardcode_minus_L_F77=yes
15081
if test "$GCC" = yes && test -z "$link_static_flag"; then
15082
# Neither direct hardcoding nor static linking is supported with a
15084
hardcode_direct_F77=unsupported
15089
if test "$host_cpu" = ia64; then
15090
# On IA64, the linker does run time linking by default, so we don't
15091
# have to do anything special.
15092
aix_use_runtimelinking=no
15093
exp_sym_flag='-Bexport'
15096
# If we're using GNU nm, then we don't want the "-C" option.
15097
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15098
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15099
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'
15101
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'
15103
aix_use_runtimelinking=no
15105
# Test if we are trying to use run time linking or normal
15106
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15107
# need to do runtime linking.
15108
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15109
for ld_flag in $LDFLAGS; do
15110
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15111
aix_use_runtimelinking=yes
15117
exp_sym_flag='-bexport'
15118
no_entry_flag='-bnoentry'
15121
# When large executables or shared objects are built, AIX ld can
15122
# have problems creating the table of contents. If linking a library
15123
# or program results in "error TOC overflow" add -mminimal-toc to
15124
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15125
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15127
archive_cmds_F77=''
15128
hardcode_direct_F77=yes
15129
hardcode_libdir_separator_F77=':'
15130
link_all_deplibs_F77=yes
15132
if test "$GCC" = yes; then
15133
case $host_os in aix4.[012]|aix4.[012].*)
15134
# We only want to do this on AIX 4.2 and lower, the check
15135
# below for broken collect2 doesn't work under 4.3+
15136
collect2name=`${CC} -print-prog-name=collect2`
15137
if test -f "$collect2name" && \
15138
strings "$collect2name" | grep resolve_lib_name >/dev/null
15140
# We have reworked collect2
15141
hardcode_direct_F77=yes
15143
# We have old collect2
15144
hardcode_direct_F77=unsupported
15145
# It fails to find uninstalled libraries when the uninstalled
15146
# path is not listed in the libpath. Setting hardcode_minus_L
15147
# to unsupported forces relinking
15148
hardcode_minus_L_F77=yes
15149
hardcode_libdir_flag_spec_F77='-L$libdir'
15150
hardcode_libdir_separator_F77=
15153
shared_flag='-shared'
15154
if test "$aix_use_runtimelinking" = yes; then
15155
shared_flag="$shared_flag "'${wl}-G'
15159
if test "$host_cpu" = ia64; then
15160
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15161
# chokes on -Wl,-G. The following line is correct:
15164
if test "$aix_use_runtimelinking" = yes; then
15165
shared_flag='${wl}-G'
15167
shared_flag='${wl}-bM:SRE'
15172
# It seems that -bexpall does not export symbols beginning with
15173
# underscore (_), so it is better to generate a list of symbols to export.
15174
always_export_symbols_F77=yes
15175
if test "$aix_use_runtimelinking" = yes; then
15176
# Warning - without using the other runtime loading flags (-brtl),
15177
# -berok will link without error, but may produce a broken library.
15178
allow_undefined_flag_F77='-berok'
15179
# Determine the default libpath from the value encoded in an empty executable.
15180
cat >conftest.$ac_ext <<_ACEOF
15185
rm -f conftest.$ac_objext conftest$ac_exeext
15186
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15187
(eval $ac_link) 2>conftest.er1
15189
grep -v '^ *+' conftest.er1 >conftest.err
15191
cat conftest.err >&5
15192
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193
(exit $ac_status); } &&
15194
{ ac_try='test -z "$ac_f77_werror_flag"
15195
|| test ! -s conftest.err'
15196
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197
(eval $ac_try) 2>&5
15199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200
(exit $ac_status); }; } &&
15201
{ ac_try='test -s conftest$ac_exeext'
15202
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15203
(eval $ac_try) 2>&5
15205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206
(exit $ac_status); }; }; then
15208
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15210
# Check for a 64-bit object if we didn't find anything.
15211
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; }
15214
echo "$as_me: failed program was:" >&5
15215
sed 's/^/| /' conftest.$ac_ext >&5
15218
rm -f conftest.err conftest.$ac_objext \
15219
conftest$ac_exeext conftest.$ac_ext
15220
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15222
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15223
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"
15225
if test "$host_cpu" = ia64; then
15226
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15227
allow_undefined_flag_F77="-z nodefs"
15228
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"
15230
# Determine the default libpath from the value encoded in an empty executable.
15231
cat >conftest.$ac_ext <<_ACEOF
15236
rm -f conftest.$ac_objext conftest$ac_exeext
15237
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15238
(eval $ac_link) 2>conftest.er1
15240
grep -v '^ *+' conftest.er1 >conftest.err
15242
cat conftest.err >&5
15243
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244
(exit $ac_status); } &&
15245
{ ac_try='test -z "$ac_f77_werror_flag"
15246
|| test ! -s conftest.err'
15247
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248
(eval $ac_try) 2>&5
15250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251
(exit $ac_status); }; } &&
15252
{ ac_try='test -s conftest$ac_exeext'
15253
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254
(eval $ac_try) 2>&5
15256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257
(exit $ac_status); }; }; then
15259
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15261
# Check for a 64-bit object if we didn't find anything.
15262
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; }
15265
echo "$as_me: failed program was:" >&5
15266
sed 's/^/| /' conftest.$ac_ext >&5
15269
rm -f conftest.err conftest.$ac_objext \
15270
conftest$ac_exeext conftest.$ac_ext
15271
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15273
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15274
# Warning - without using the other run time loading flags,
15275
# -berok will link without error, but may produce a broken library.
15276
no_undefined_flag_F77=' ${wl}-bernotok'
15277
allow_undefined_flag_F77=' ${wl}-berok'
15278
# -bexpall does not export symbols beginning with underscore (_)
15279
always_export_symbols_F77=yes
15280
# Exported symbols can be pulled into shared objects from archives
15281
whole_archive_flag_spec_F77=' '
15282
archive_cmds_need_lc_F77=yes
15283
# This is similar to how AIX traditionally builds it's shared libraries.
15284
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'
15290
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)'
15291
hardcode_libdir_flag_spec_F77='-L$libdir'
15292
hardcode_minus_L_F77=yes
15293
# see comment about different semantics on the GNU ld section
15298
export_dynamic_flag_spec_F77=-rdynamic
15301
cygwin* | mingw* | pw32*)
15302
# When not using gcc, we currently assume that we are using
15303
# Microsoft Visual C++.
15304
# hardcode_libdir_flag_spec is actually meaningless, as there is
15305
# no search path for DLLs.
15306
hardcode_libdir_flag_spec_F77=' '
15307
allow_undefined_flag_F77=unsupported
15308
# Tell ltmain to make .lib files, not .a files.
15310
# Tell ltmain to make .dll files, not .so files.
15312
# FIXME: Setting linknames here is a bad hack.
15313
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15314
# The linker will automatically build a .lib file if we build a DLL.
15315
old_archive_From_new_cmds_F77='true'
15316
# FIXME: Should let the user specify the lib program.
15317
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15318
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15319
enable_shared_with_static_runtimes_F77=yes
15322
darwin* | rhapsody*)
15324
rhapsody* | darwin1.[012])
15325
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15328
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15329
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15331
case ${MACOSX_DEPLOYMENT_TARGET} in
15333
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15336
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15342
archive_cmds_need_lc_F77=no
15343
hardcode_direct_F77=no
15344
hardcode_automatic_F77=yes
15345
hardcode_shlibpath_var_F77=unsupported
15346
whole_archive_flag_spec_F77=''
15347
link_all_deplibs_F77=yes
15348
if test "$GCC" = yes ; then
15349
output_verbose_link_cmd='echo'
15350
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15351
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15352
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15353
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}'
15354
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}'
15356
case "$cc_basename" in
15358
output_verbose_link_cmd='echo'
15359
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15360
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15361
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15362
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}'
15363
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}'
15373
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15374
hardcode_libdir_flag_spec_F77='-L$libdir'
15375
hardcode_shlibpath_var_F77=no
15382
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15383
# support. Future versions do this automatically, but an explicit c++rt0.o
15384
# does not break anything, and helps significantly (at the cost of a little
15387
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15388
hardcode_libdir_flag_spec_F77='-R$libdir'
15389
hardcode_direct_F77=yes
15390
hardcode_shlibpath_var_F77=no
15393
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15395
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15396
hardcode_direct_F77=yes
15397
hardcode_minus_L_F77=yes
15398
hardcode_shlibpath_var_F77=no
15401
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15402
freebsd* | kfreebsd*-gnu | dragonfly*)
15403
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15404
hardcode_libdir_flag_spec_F77='-R$libdir'
15405
hardcode_direct_F77=yes
15406
hardcode_shlibpath_var_F77=no
15410
if test "$GCC" = yes; then
15411
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'
15413
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'
15415
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15416
hardcode_libdir_separator_F77=:
15417
hardcode_direct_F77=yes
15419
# hardcode_minus_L: Not really in the search PATH,
15420
# but as the default location of the library.
15421
hardcode_minus_L_F77=yes
15422
export_dynamic_flag_spec_F77='${wl}-E'
15426
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15427
case "$host_cpu" in
15429
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15432
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15436
case "$host_cpu" in
15438
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15441
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15445
if test "$with_gnu_ld" = no; then
15446
case "$host_cpu" in
15448
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15449
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15450
hardcode_libdir_separator_F77=:
15451
hardcode_direct_F77=no
15452
hardcode_shlibpath_var_F77=no
15455
hardcode_libdir_flag_spec_F77='-L$libdir'
15456
hardcode_direct_F77=no
15457
hardcode_shlibpath_var_F77=no
15459
# hardcode_minus_L: Not really in the search PATH,
15460
# but as the default location of the library.
15461
hardcode_minus_L_F77=yes
15464
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15465
hardcode_libdir_separator_F77=:
15466
hardcode_direct_F77=yes
15467
export_dynamic_flag_spec_F77='${wl}-E'
15469
# hardcode_minus_L: Not really in the search PATH,
15470
# but as the default location of the library.
15471
hardcode_minus_L_F77=yes
15477
irix5* | irix6* | nonstopux*)
15478
if test "$GCC" = yes; then
15479
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'
15481
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'
15482
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15484
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15485
hardcode_libdir_separator_F77=:
15486
link_all_deplibs_F77=yes
15490
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15491
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15493
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15495
hardcode_libdir_flag_spec_F77='-R$libdir'
15496
hardcode_direct_F77=yes
15497
hardcode_shlibpath_var_F77=no
15501
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15502
hardcode_direct_F77=yes
15503
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15504
hardcode_libdir_separator_F77=:
15505
hardcode_shlibpath_var_F77=no
15509
hardcode_direct_F77=yes
15510
hardcode_shlibpath_var_F77=no
15511
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15512
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15513
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15514
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15515
export_dynamic_flag_spec_F77='${wl}-E'
15518
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15519
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15520
hardcode_libdir_flag_spec_F77='-R$libdir'
15523
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15524
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15531
hardcode_libdir_flag_spec_F77='-L$libdir'
15532
hardcode_minus_L_F77=yes
15533
allow_undefined_flag_F77=unsupported
15534
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'
15535
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15539
if test "$GCC" = yes; then
15540
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15541
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'
15543
allow_undefined_flag_F77=' -expect_unresolved \*'
15544
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'
15546
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15547
hardcode_libdir_separator_F77=:
15550
osf4* | osf5*) # as osf3* with the addition of -msym flag
15551
if test "$GCC" = yes; then
15552
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15553
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'
15554
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15556
allow_undefined_flag_F77=' -expect_unresolved \*'
15557
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'
15558
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~
15559
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15561
# Both c and cxx compiler support -rpath directly
15562
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15564
hardcode_libdir_separator_F77=:
15568
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15569
hardcode_shlibpath_var_F77=no
15570
export_dynamic_flag_spec_F77='${wl}-Bexport'
15571
runpath_var=LD_RUN_PATH
15572
hardcode_runpath_var=yes
15576
no_undefined_flag_F77=' -z text'
15577
if test "$GCC" = yes; then
15578
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15579
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15580
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15582
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15583
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15584
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15586
hardcode_libdir_flag_spec_F77='-R$libdir'
15587
hardcode_shlibpath_var_F77=no
15589
solaris2.[0-5] | solaris2.[0-5].*) ;;
15590
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
15591
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
15593
link_all_deplibs_F77=yes
15597
if test "x$host_vendor" = xsequent; then
15598
# Use $CC to link under sequent, because it throws in some extra .o
15599
# files that make .init and .fini sections work.
15600
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15602
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15604
hardcode_libdir_flag_spec_F77='-L$libdir'
15605
hardcode_direct_F77=yes
15606
hardcode_minus_L_F77=yes
15607
hardcode_shlibpath_var_F77=no
15611
case $host_vendor in
15613
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15614
hardcode_direct_F77=yes # is this really true???
15617
## LD is ld it makes a PLAMLIB
15618
## CC just makes a GrossModule.
15619
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15620
reload_cmds_F77='$CC -r -o $output$reload_objs'
15621
hardcode_direct_F77=no
15624
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15625
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15628
runpath_var='LD_RUN_PATH'
15629
hardcode_shlibpath_var_F77=no
15633
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15634
hardcode_shlibpath_var_F77=no
15635
export_dynamic_flag_spec_F77='-Bexport'
15639
if test -d /usr/nec; then
15640
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15641
hardcode_shlibpath_var_F77=no
15642
runpath_var=LD_RUN_PATH
15643
hardcode_runpath_var=yes
15649
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15650
hardcode_direct_F77=yes
15651
hardcode_minus_L_F77=no
15652
hardcode_shlibpath_var_F77=no
15653
hardcode_runpath_var=yes
15654
runpath_var=LD_RUN_PATH
15657
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15658
no_undefined_flag_F77='${wl}-z ${wl}text'
15659
if test "$GCC" = yes; then
15660
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15662
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15664
runpath_var='LD_RUN_PATH'
15665
hardcode_shlibpath_var_F77=no
15669
no_undefined_flag_F77=' -z text'
15670
# $CC -shared without GNU ld will not create a library from C++
15671
# object files and a static libstdc++, better avoid it by now
15672
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15673
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15674
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15675
hardcode_libdir_flag_spec_F77=
15676
hardcode_shlibpath_var_F77=no
15677
runpath_var='LD_RUN_PATH'
15681
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15682
hardcode_libdir_flag_spec_F77='-L$libdir'
15683
hardcode_shlibpath_var_F77=no
15692
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15693
echo "${ECHO_T}$ld_shlibs_F77" >&6
15694
test "$ld_shlibs_F77" = no && can_build_shared=no
15696
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15697
if test "$GCC" = yes; then
15698
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15702
# Do we need to explicitly link libc?
15704
case "x$archive_cmds_need_lc_F77" in
15706
# Assume -lc should be added
15707
archive_cmds_need_lc_F77=yes
15709
if test "$enable_shared" = yes && test "$GCC" = yes; then
15710
case $archive_cmds_F77 in
15712
# FIXME: we may have to deal with multi-command sequences.
15715
# Test whether the compiler implicitly links with -lc since on some
15716
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15717
# to ld, don't add -lc before -lgcc.
15718
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15719
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15721
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15723
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15724
(eval $ac_compile) 2>&5
15726
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727
(exit $ac_status); } 2>conftest.err; then
15730
libobjs=conftest.$ac_objext
15732
wl=$lt_prog_compiler_wl_F77
15738
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15739
allow_undefined_flag_F77=
15740
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15741
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15743
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744
(exit $ac_status); }
15746
archive_cmds_need_lc_F77=no
15748
archive_cmds_need_lc_F77=yes
15750
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15752
cat conftest.err 1>&5
15755
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15756
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15763
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15764
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15765
library_names_spec=
15766
libname_spec='lib$name'
15770
postuninstall_cmds=
15774
shlibpath_overrides_runpath=unknown
15776
dynamic_linker="$host_os ld.so"
15777
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15778
if test "$GCC" = yes; then
15779
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15780
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15781
# if the path contains ";" then we assume it to be the separator
15782
# otherwise default to the standard path separator (i.e. ":") - it is
15783
# assumed that no part of a normal pathname contains ";" but that should
15784
# okay in the real world where ";" in dirpaths is itself problematic.
15785
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15787
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15790
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15792
need_lib_prefix=unknown
15793
hardcode_into_libs=no
15795
# when you set need_version to no, make sure it does not cause -set_version
15796
# flags to be left without arguments
15797
need_version=unknown
15802
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15803
shlibpath_var=LIBPATH
15805
# AIX 3 has no versioning support, so we append a major version to the name.
15806
soname_spec='${libname}${release}${shared_ext}$major'
15813
hardcode_into_libs=yes
15814
if test "$host_cpu" = ia64; then
15815
# AIX 5 supports IA64
15816
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15817
shlibpath_var=LD_LIBRARY_PATH
15819
# With GCC up to 2.95.x, collect2 would create an import file
15820
# for dependence libraries. The import file would start with
15821
# the line `#! .'. This would cause the generated library to
15822
# depend on `.', always an invalid library. This was fixed in
15823
# development snapshots of GCC prior to 3.0.
15825
aix4 | aix4.[01] | aix4.[01].*)
15826
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15828
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15831
can_build_shared=no
15835
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15836
# soname into executable. Probably we can add versioning support to
15837
# collect2, so additional links can be useful in future.
15838
if test "$aix_use_runtimelinking" = yes; then
15839
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15840
# instead of lib<name>.a to let people know that these are not
15841
# typical AIX shared libraries.
15842
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15844
# We preserve .a as extension for shared libraries through AIX4.2
15845
# and later when we are not doing run time linking.
15846
library_names_spec='${libname}${release}.a $libname.a'
15847
soname_spec='${libname}${release}${shared_ext}$major'
15849
shlibpath_var=LIBPATH
15854
library_names_spec='$libname.ixlibrary $libname.a'
15855
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15856
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'
15860
library_names_spec='${libname}${shared_ext}'
15861
dynamic_linker="$host_os ld.so"
15862
shlibpath_var=LIBRARY_PATH
15868
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15869
soname_spec='${libname}${release}${shared_ext}$major'
15870
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15871
shlibpath_var=LD_LIBRARY_PATH
15872
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15873
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15874
# the default ld.so.conf also contains /usr/contrib/lib and
15875
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15876
# libtool to hard-code these into programs
15879
cygwin* | mingw* | pw32*)
15880
version_type=windows
15885
case $GCC,$host_os in
15886
yes,cygwin* | yes,mingw* | yes,pw32*)
15887
library_names_spec='$libname.dll.a'
15888
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15889
postinstall_cmds='base_file=`basename \${file}`~
15890
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15891
dldir=$destdir/`dirname \$dlpath`~
15892
test -d \$dldir || mkdir -p \$dldir~
15893
$install_prog $dir/$dlname \$dldir/$dlname'
15894
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15895
dlpath=$dir/\$dldll~
15897
shlibpath_overrides_runpath=yes
15901
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15902
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15903
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15906
# MinGW DLLs use traditional 'lib' prefix
15907
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15908
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15909
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15910
# It is most probably a Windows format PATH printed by
15911
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15912
# path with ; separators, and with drive letters. We can handle the
15913
# drive letters (cygwin fileutils understands them), so leave them,
15914
# especially as we might pass files found there to a mingw objdump,
15915
# which wouldn't understand a cygwinified path. Ahh.
15916
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15918
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15922
# pw32 DLLs use 'pw' prefix rather than 'lib'
15923
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15929
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15932
dynamic_linker='Win32 ld.exe'
15933
# FIXME: first we should search . and the directory the executable is in
15937
darwin* | rhapsody*)
15938
dynamic_linker="$host_os dyld"
15939
version_type=darwin
15942
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15943
soname_spec='${libname}${release}${major}$shared_ext'
15944
shlibpath_overrides_runpath=yes
15945
shlibpath_var=DYLD_LIBRARY_PATH
15946
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15947
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15948
if test "$GCC" = yes; then
15949
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"`
15951
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15953
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15960
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15961
soname_spec='${libname}${release}${shared_ext}$major'
15962
shlibpath_var=LD_LIBRARY_PATH
15973
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15974
soname_spec='${libname}${release}${shared_ext}$major'
15975
shlibpath_var=LD_LIBRARY_PATH
15976
shlibpath_overrides_runpath=no
15977
hardcode_into_libs=yes
15978
dynamic_linker='GNU ld.so'
15981
freebsd* | dragonfly*)
15982
# DragonFly does not have aout. When/if they implement a new
15983
# versioning mechanism, adjust this.
15984
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15985
version_type=freebsd-$objformat
15986
case $version_type in
15988
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15993
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15997
shlibpath_var=LD_LIBRARY_PATH
16000
shlibpath_overrides_runpath=yes
16002
freebsd3.[01]* | freebsdelf3.[01]*)
16003
shlibpath_overrides_runpath=yes
16004
hardcode_into_libs=yes
16007
shlibpath_overrides_runpath=no
16008
hardcode_into_libs=yes
16017
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16018
soname_spec='${libname}${release}${shared_ext}$major'
16019
shlibpath_var=LD_LIBRARY_PATH
16020
hardcode_into_libs=yes
16023
hpux9* | hpux10* | hpux11*)
16024
# Give a soname corresponding to the major version so that dld.sl refuses to
16025
# link against other versions.
16029
case "$host_cpu" in
16032
hardcode_into_libs=yes
16033
dynamic_linker="$host_os dld.so"
16034
shlibpath_var=LD_LIBRARY_PATH
16035
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16036
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16037
soname_spec='${libname}${release}${shared_ext}$major'
16038
if test "X$HPUX_IA64_MODE" = X32; then
16039
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16041
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16043
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16047
hardcode_into_libs=yes
16048
dynamic_linker="$host_os dld.sl"
16049
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16050
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16051
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16052
soname_spec='${libname}${release}${shared_ext}$major'
16053
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16054
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16058
dynamic_linker="$host_os dld.sl"
16059
shlibpath_var=SHLIB_PATH
16060
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16061
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16062
soname_spec='${libname}${release}${shared_ext}$major'
16065
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16066
postinstall_cmds='chmod 555 $lib'
16069
irix5* | irix6* | nonstopux*)
16071
nonstopux*) version_type=nonstopux ;;
16073
if test "$lt_cv_prog_gnu_ld" = yes; then
16081
soname_spec='${libname}${release}${shared_ext}$major'
16082
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16084
irix5* | nonstopux*)
16085
libsuff= shlibsuff=
16088
case $LD in # libtool.m4 will add one of these switches to LD
16089
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16090
libsuff= shlibsuff= libmagic=32-bit;;
16091
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16092
libsuff=32 shlibsuff=N32 libmagic=N32;;
16093
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16094
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16095
*) libsuff= shlibsuff= libmagic=never-match;;
16099
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16100
shlibpath_overrides_runpath=no
16101
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16102
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16103
hardcode_into_libs=yes
16106
# No shared lib support for Linux oldld, aout, or coff.
16107
linux*oldld* | linux*aout* | linux*coff*)
16111
# This must be Linux ELF.
16116
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16117
soname_spec='${libname}${release}${shared_ext}$major'
16118
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16119
shlibpath_var=LD_LIBRARY_PATH
16120
shlibpath_overrides_runpath=no
16121
# This implies no fast_install, which is unacceptable.
16122
# Some rework will be needed to allow for fast_install
16123
# before this can be enabled.
16124
hardcode_into_libs=yes
16126
# Append ld.so.conf contents to the search path
16127
if test -f /etc/ld.so.conf; then
16128
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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16129
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16132
# We used to test for /lib/ld.so.1 and disable shared libraries on
16133
# powerpc, because MkLinux only supported shared libraries with the
16134
# GNU dynamic linker. Since this was broken with cross compilers,
16135
# most powerpc-linux boxes support dynamic linking these days and
16136
# people can always --disable-shared, the test was removed, and we
16137
# assume the GNU/Linux dynamic linker is in use.
16138
dynamic_linker='GNU/Linux ld.so'
16145
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16146
soname_spec='${libname}${release}${shared_ext}$major'
16147
shlibpath_var=LD_LIBRARY_PATH
16148
shlibpath_overrides_runpath=no
16149
hardcode_into_libs=yes
16150
dynamic_linker='GNU ld.so'
16157
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16158
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16159
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16160
dynamic_linker='NetBSD (a.out) ld.so'
16162
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16163
soname_spec='${libname}${release}${shared_ext}$major'
16164
dynamic_linker='NetBSD ld.elf_so'
16166
shlibpath_var=LD_LIBRARY_PATH
16167
shlibpath_overrides_runpath=yes
16168
hardcode_into_libs=yes
16173
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16174
shlibpath_var=LD_LIBRARY_PATH
16175
shlibpath_overrides_runpath=yes
16182
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16183
soname_spec='${libname}${release}${shared_ext}$major'
16184
shlibpath_var=LD_LIBRARY_PATH
16185
shlibpath_overrides_runpath=yes
16192
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16193
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16194
shlibpath_var=LD_LIBRARY_PATH
16195
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16197
openbsd2.[89] | openbsd2.[89].*)
16198
shlibpath_overrides_runpath=no
16201
shlibpath_overrides_runpath=yes
16205
shlibpath_overrides_runpath=yes
16210
libname_spec='$name'
16213
library_names_spec='$libname${shared_ext} $libname.a'
16214
dynamic_linker='OS/2 ld.exe'
16215
shlibpath_var=LIBPATH
16218
osf3* | osf4* | osf5*)
16222
soname_spec='${libname}${release}${shared_ext}$major'
16223
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16224
shlibpath_var=LD_LIBRARY_PATH
16225
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16226
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16231
soname_spec='${libname}${release}${shared_ext}$major'
16232
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16233
shlibpath_var=LD_LIBRARY_PATH
16240
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16241
soname_spec='${libname}${release}${shared_ext}$major'
16242
shlibpath_var=LD_LIBRARY_PATH
16243
shlibpath_overrides_runpath=yes
16244
hardcode_into_libs=yes
16245
# ldd complains unless libraries are executable
16246
postinstall_cmds='chmod +x $lib'
16251
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16252
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16253
shlibpath_var=LD_LIBRARY_PATH
16254
shlibpath_overrides_runpath=yes
16255
if test "$with_gnu_ld" = yes; then
16261
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16263
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16264
soname_spec='${libname}${release}${shared_ext}$major'
16265
shlibpath_var=LD_LIBRARY_PATH
16266
case $host_vendor in
16268
shlibpath_overrides_runpath=no
16270
export_dynamic_flag_spec='${wl}-Blargedynsym'
16271
runpath_var=LD_RUN_PATH
16279
shlibpath_overrides_runpath=no
16280
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16286
if test -d /usr/nec ;then
16288
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16289
soname_spec='$libname${shared_ext}.$major'
16290
shlibpath_var=LD_LIBRARY_PATH
16296
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16297
soname_spec='${libname}${release}${shared_ext}$major'
16298
shlibpath_var=LD_LIBRARY_PATH
16305
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16306
echo "${ECHO_T}$dynamic_linker" >&6
16307
test "$dynamic_linker" = no && can_build_shared=no
16309
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16310
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16311
hardcode_action_F77=
16312
if test -n "$hardcode_libdir_flag_spec_F77" || \
16313
test -n "$runpath_var_F77" || \
16314
test "X$hardcode_automatic_F77" = "Xyes" ; then
16316
# We can hardcode non-existant directories.
16317
if test "$hardcode_direct_F77" != no &&
16318
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16319
# have to relink, otherwise we might link with an installed library
16320
# when we should be linking with a yet-to-be-installed one
16321
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16322
test "$hardcode_minus_L_F77" != no; then
16323
# Linking always hardcodes the temporary library directory.
16324
hardcode_action_F77=relink
16326
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16327
hardcode_action_F77=immediate
16330
# We cannot hardcode anything, or else we can only hardcode existing
16332
hardcode_action_F77=unsupported
16334
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16335
echo "${ECHO_T}$hardcode_action_F77" >&6
16337
if test "$hardcode_action_F77" = relink; then
16338
# Fast installation is not supported
16339
enable_fast_install=no
16340
elif test "$shlibpath_overrides_runpath" = yes ||
16341
test "$enable_shared" = no; then
16342
# Fast installation is not necessary
16343
enable_fast_install=needless
16348
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16349
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16350
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16351
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16352
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16353
echo "$as_me:$LINENO: result: yes" >&5
16354
echo "${ECHO_T}yes" >&6
16356
# FIXME - insert some real tests, host_os isn't really good enough
16359
if test -n "$STRIP" ; then
16360
striplib="$STRIP -x"
16361
echo "$as_me:$LINENO: result: yes" >&5
16362
echo "${ECHO_T}yes" >&6
16364
echo "$as_me:$LINENO: result: no" >&5
16365
echo "${ECHO_T}no" >&6
16369
echo "$as_me:$LINENO: result: no" >&5
16370
echo "${ECHO_T}no" >&6
16377
# The else clause should only fire when bootstrapping the
16378
# libtool distribution, otherwise you forgot to ship ltmain.sh
16379
# with your package, and you will get complaints that there are
16380
# no rules to generate ltmain.sh.
16381
if test -f "$ltmain"; then
16382
# See if we are running on zsh, and set the options which allow our commands through
16383
# without removal of \ escapes.
16384
if test -n "${ZSH_VERSION+set}" ; then
16385
setopt NO_GLOB_SUBST
16387
# Now quote all the things that may contain metacharacters while being
16388
# careful not to overquote the AC_SUBSTed values. We take copies of the
16389
# variables and quote the copies for generation of the libtool script.
16390
for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
16392
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16393
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16394
deplibs_check_method reload_flag reload_cmds need_locks \
16395
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16396
lt_cv_sys_global_symbol_to_c_name_address \
16397
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16398
old_postinstall_cmds old_postuninstall_cmds \
16402
lt_prog_compiler_wl_F77 \
16403
lt_prog_compiler_pic_F77 \
16404
lt_prog_compiler_static_F77 \
16405
lt_prog_compiler_no_builtin_flag_F77 \
16406
export_dynamic_flag_spec_F77 \
16407
thread_safe_flag_spec_F77 \
16408
whole_archive_flag_spec_F77 \
16409
enable_shared_with_static_runtimes_F77 \
16410
old_archive_cmds_F77 \
16411
old_archive_from_new_cmds_F77 \
16412
predep_objects_F77 \
16413
postdep_objects_F77 \
16416
compiler_lib_search_path_F77 \
16418
archive_expsym_cmds_F77 \
16419
postinstall_cmds_F77 \
16420
postuninstall_cmds_F77 \
16421
old_archive_from_expsyms_cmds_F77 \
16422
allow_undefined_flag_F77 \
16423
no_undefined_flag_F77 \
16424
export_symbols_cmds_F77 \
16425
hardcode_libdir_flag_spec_F77 \
16426
hardcode_libdir_flag_spec_ld_F77 \
16427
hardcode_libdir_separator_F77 \
16428
hardcode_automatic_F77 \
16430
module_expsym_cmds_F77 \
16431
lt_cv_prog_compiler_c_o_F77 \
16432
exclude_expsyms_F77 \
16433
include_expsyms_F77; do
16436
old_archive_cmds_F77 | \
16437
old_archive_from_new_cmds_F77 | \
16438
archive_cmds_F77 | \
16439
archive_expsym_cmds_F77 | \
16440
module_cmds_F77 | \
16441
module_expsym_cmds_F77 | \
16442
old_archive_from_expsyms_cmds_F77 | \
16443
export_symbols_cmds_F77 | \
16444
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16445
postinstall_cmds | postuninstall_cmds | \
16446
old_postinstall_cmds | old_postuninstall_cmds | \
16447
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16448
# Double-quote double-evaled strings.
16449
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16452
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16458
*'\$0 --fallback-echo"')
16459
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16465
cat <<__EOF__ >> "$cfgfile"
16466
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16468
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16470
# Shell to use when invoking shell scripts.
16473
# Whether or not to build shared libraries.
16474
build_libtool_libs=$enable_shared
16476
# Whether or not to build static libraries.
16477
build_old_libs=$enable_static
16479
# Whether or not to add -lc for building shared libraries.
16480
build_libtool_need_lc=$archive_cmds_need_lc_F77
16482
# Whether or not to disallow shared libs when runtime libs are static
16483
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16485
# Whether or not to optimize for fast installation.
16486
fast_install=$enable_fast_install
16489
host_alias=$host_alias
16493
# The build system.
16494
build_alias=$build_alias
16498
# An echo program that does not interpret backslashes.
16503
AR_FLAGS=$lt_AR_FLAGS
16508
# A language-specific compiler.
16509
CC=$lt_compiler_F77
16511
# Is the compiler the GNU C compiler?
16517
# The linker used to build libraries.
16520
# Whether we need hard or soft links.
16523
# A BSD-compatible nm program.
16526
# A symbol stripping program
16529
# Used to examine libraries when file_magic_cmd begins "file"
16530
MAGIC_CMD=$MAGIC_CMD
16532
# Used on cygwin: DLL creation program.
16535
# Used on cygwin: object dumper.
16538
# Used on cygwin: assembler.
16541
# The name of the directory that contains temporary libtool files.
16544
# How to create reloadable object files.
16545
reload_flag=$lt_reload_flag
16546
reload_cmds=$lt_reload_cmds
16548
# How to pass a linker flag through the compiler.
16549
wl=$lt_lt_prog_compiler_wl_F77
16551
# Object file suffix (normally "o").
16552
objext="$ac_objext"
16554
# Old archive suffix (normally "a").
16557
# Shared library suffix (normally ".so").
16558
shrext_cmds='$shrext_cmds'
16560
# Executable file suffix (normally "").
16563
# Additional compiler flags for building library objects.
16564
pic_flag=$lt_lt_prog_compiler_pic_F77
16567
# What is the maximum length of a command?
16568
max_cmd_len=$lt_cv_sys_max_cmd_len
16570
# Does compiler simultaneously support -c and -o options?
16571
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16573
# Must we lock files when doing compilation ?
16574
need_locks=$lt_need_locks
16576
# Do we need the lib prefix for modules?
16577
need_lib_prefix=$need_lib_prefix
16579
# Do we need a version for libraries?
16580
need_version=$need_version
16582
# Whether dlopen is supported.
16583
dlopen_support=$enable_dlopen
16585
# Whether dlopen of programs is supported.
16586
dlopen_self=$enable_dlopen_self
16588
# Whether dlopen of statically linked programs is supported.
16589
dlopen_self_static=$enable_dlopen_self_static
16591
# Compiler flag to prevent dynamic linking.
16592
link_static_flag=$lt_lt_prog_compiler_static_F77
16594
# Compiler flag to turn off builtin functions.
16595
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16597
# Compiler flag to allow reflexive dlopens.
16598
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16600
# Compiler flag to generate shared objects directly from archives.
16601
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16603
# Compiler flag to generate thread-safe objects.
16604
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16606
# Library versioning type.
16607
version_type=$version_type
16609
# Format of library name prefix.
16610
libname_spec=$lt_libname_spec
16612
# List of archive names. First name is the real one, the rest are links.
16613
# The last name is the one that the linker finds with -lNAME.
16614
library_names_spec=$lt_library_names_spec
16616
# The coded name of the library, if different from the real name.
16617
soname_spec=$lt_soname_spec
16619
# Commands used to build and install an old-style archive.
16621
old_archive_cmds=$lt_old_archive_cmds_F77
16622
old_postinstall_cmds=$lt_old_postinstall_cmds
16623
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16625
# Create an old-style archive from a shared archive.
16626
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16628
# Create a temporary old-style archive to link instead of a shared archive.
16629
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16631
# Commands used to build and install a shared archive.
16632
archive_cmds=$lt_archive_cmds_F77
16633
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16634
postinstall_cmds=$lt_postinstall_cmds
16635
postuninstall_cmds=$lt_postuninstall_cmds
16637
# Commands used to build a loadable module (assumed same as above if empty)
16638
module_cmds=$lt_module_cmds_F77
16639
module_expsym_cmds=$lt_module_expsym_cmds_F77
16641
# Commands to strip libraries.
16642
old_striplib=$lt_old_striplib
16643
striplib=$lt_striplib
16645
# Dependencies to place before the objects being linked to create a
16647
predep_objects=$lt_predep_objects_F77
16649
# Dependencies to place after the objects being linked to create a
16651
postdep_objects=$lt_postdep_objects_F77
16653
# Dependencies to place before the objects being linked to create a
16655
predeps=$lt_predeps_F77
16657
# Dependencies to place after the objects being linked to create a
16659
postdeps=$lt_postdeps_F77
16661
# The library search path used internally by the compiler when linking
16662
# a shared library.
16663
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16665
# Method to check whether dependent libraries are shared objects.
16666
deplibs_check_method=$lt_deplibs_check_method
16668
# Command to use when deplibs_check_method == file_magic.
16669
file_magic_cmd=$lt_file_magic_cmd
16671
# Flag that allows shared libraries with undefined symbols to be built.
16672
allow_undefined_flag=$lt_allow_undefined_flag_F77
16674
# Flag that forces no undefined symbols.
16675
no_undefined_flag=$lt_no_undefined_flag_F77
16677
# Commands used to finish a libtool library installation in a directory.
16678
finish_cmds=$lt_finish_cmds
16680
# Same as above, but a single script fragment to be evaled but not shown.
16681
finish_eval=$lt_finish_eval
16683
# Take the output of nm and produce a listing of raw symbols and C names.
16684
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16686
# Transform the output of nm in a proper C declaration
16687
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16689
# Transform the output of nm in a C name address pair
16690
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16692
# This is the shared library runtime path variable.
16693
runpath_var=$runpath_var
16695
# This is the shared library path variable.
16696
shlibpath_var=$shlibpath_var
16698
# Is shlibpath searched before the hard-coded library search path?
16699
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16701
# How to hardcode a shared library path into an executable.
16702
hardcode_action=$hardcode_action_F77
16704
# Whether we should hardcode library paths into libraries.
16705
hardcode_into_libs=$hardcode_into_libs
16707
# Flag to hardcode \$libdir into a binary during linking.
16708
# This must work even if \$libdir does not exist.
16709
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16711
# If ld is used when linking, flag to hardcode \$libdir into
16712
# a binary during linking. This must work even if \$libdir does
16714
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16716
# Whether we need a single -rpath flag with a separated argument.
16717
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16719
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16720
# resulting binary.
16721
hardcode_direct=$hardcode_direct_F77
16723
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16724
# resulting binary.
16725
hardcode_minus_L=$hardcode_minus_L_F77
16727
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16728
# the resulting binary.
16729
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16731
# Set to yes if building a shared library automatically hardcodes DIR into the library
16732
# and all subsequent libraries and executables linked against it.
16733
hardcode_automatic=$hardcode_automatic_F77
16735
# Variables whose values should be saved in libtool wrapper scripts and
16736
# restored at relink time.
16737
variables_saved_for_relink="$variables_saved_for_relink"
16739
# Whether libtool must link a program against all its dependency libraries.
16740
link_all_deplibs=$link_all_deplibs_F77
16742
# Compile-time system search path for libraries
16743
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16745
# Run-time system search path for libraries
16746
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16748
# Fix the shell variable \$srcfile for the compiler.
16749
fix_srcfile_path="$fix_srcfile_path_F77"
16751
# Set to yes if exported symbols are required.
16752
always_export_symbols=$always_export_symbols_F77
16754
# The commands to list exported symbols.
16755
export_symbols_cmds=$lt_export_symbols_cmds_F77
16757
# The commands to extract the exported symbol list from a shared archive.
16758
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16760
# Symbols that should not be listed in the preloaded symbols.
16761
exclude_expsyms=$lt_exclude_expsyms_F77
16763
# Symbols that must always be exported.
16764
include_expsyms=$lt_include_expsyms_F77
16766
# ### END LIBTOOL TAG CONFIG: $tagname
16772
# If there is no Makefile yet, we rely on a make rule to execute
16773
# `config.status --recheck' to rerun these tests and create the
16774
# libtool script then.
16775
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16776
if test -f "$ltmain_in"; then
16777
test -f Makefile && make "$ltmain"
16783
ac_cpp='$CPP $CPPFLAGS'
16784
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16785
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16786
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16796
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16800
# Source file extension for Java test sources.
16803
# Object file extension for compiled Java test sources.
16807
# Code to be used in simple compile tests
16808
lt_simple_compile_test_code="class foo {}\n"
16810
# Code to be used in simple link tests
16811
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16813
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16815
# If no C compiler was specified, use CC.
16818
# Allow CC to be a program name with arguments.
16822
# Allow CC to be a program name with arguments.
16828
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16829
archive_cmds_need_lc_GCJ=no
16832
lt_prog_compiler_no_builtin_flag_GCJ=
16834
if test "$GCC" = yes; then
16835
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16838
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16839
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16840
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16841
echo $ECHO_N "(cached) $ECHO_C" >&6
16843
lt_cv_prog_compiler_rtti_exceptions=no
16844
ac_outfile=conftest.$ac_objext
16845
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16846
lt_compiler_flag="-fno-rtti -fno-exceptions"
16847
# Insert the option either (1) after the last *FLAGS variable, or
16848
# (2) before a word containing "conftest.", or (3) at the end.
16849
# Note that $ac_compile itself does not contain backslashes and begins
16850
# with a dollar sign (not a hyphen), so the echo should work correctly.
16851
# The option is referenced via a variable to avoid confusing sed.
16852
lt_compile=`echo "$ac_compile" | $SED \
16853
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16854
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16855
-e 's:$: $lt_compiler_flag:'`
16856
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16857
(eval "$lt_compile" 2>conftest.err)
16859
cat conftest.err >&5
16860
echo "$as_me:__oline__: \$? = $ac_status" >&5
16861
if (exit $ac_status) && test -s "$ac_outfile"; then
16862
# The compiler can only warn and ignore the option if not recognized
16863
# So say no if there are warnings
16864
if test ! -s conftest.err; then
16865
lt_cv_prog_compiler_rtti_exceptions=yes
16871
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16872
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16874
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16875
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16882
lt_prog_compiler_wl_GCJ=
16883
lt_prog_compiler_pic_GCJ=
16884
lt_prog_compiler_static_GCJ=
16886
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16887
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16889
if test "$GCC" = yes; then
16890
lt_prog_compiler_wl_GCJ='-Wl,'
16891
lt_prog_compiler_static_GCJ='-static'
16895
# All AIX code is PIC.
16896
if test "$host_cpu" = ia64; then
16897
# AIX 5 now supports IA64 processor
16898
lt_prog_compiler_static_GCJ='-Bstatic'
16903
# FIXME: we need at least 68020 code to build shared libraries, but
16904
# adding the `-m68020' flag to GCC prevents building anything better,
16906
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16909
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16910
# PIC is the default for these OSes.
16913
mingw* | pw32* | os2*)
16914
# This hack is so that the source file can tell whether it is being
16915
# built for inclusion in a dll (and should export symbols for example).
16916
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16919
darwin* | rhapsody*)
16920
# PIC is the default on this platform
16921
# Common symbols not allowed in MH_DYLIB files
16922
lt_prog_compiler_pic_GCJ='-fno-common'
16926
# Just because we use GCC doesn't mean we suddenly get shared libraries
16927
# on systems that don't support them.
16928
lt_prog_compiler_can_build_shared_GCJ=no
16933
if test -d /usr/nec; then
16934
lt_prog_compiler_pic_GCJ=-Kconform_pic
16939
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16940
# not for PA HP-UX.
16941
case "$host_cpu" in
16946
lt_prog_compiler_pic_GCJ='-fPIC'
16952
lt_prog_compiler_pic_GCJ='-fPIC'
16956
# PORTME Check for flag to pass linker flags through the system compiler.
16959
lt_prog_compiler_wl_GCJ='-Wl,'
16960
if test "$host_cpu" = ia64; then
16961
# AIX 5 now supports IA64 processor
16962
lt_prog_compiler_static_GCJ='-Bstatic'
16964
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16968
# PIC is the default on this platform
16969
# Common symbols not allowed in MH_DYLIB files
16970
case "$cc_basename" in
16972
lt_prog_compiler_pic_GCJ='-qnocommon'
16973
lt_prog_compiler_wl_GCJ='-Wl,'
16978
mingw* | pw32* | os2*)
16979
# This hack is so that the source file can tell whether it is being
16980
# built for inclusion in a dll (and should export symbols for example).
16981
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16984
hpux9* | hpux10* | hpux11*)
16985
lt_prog_compiler_wl_GCJ='-Wl,'
16986
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16987
# not for PA HP-UX.
16988
case "$host_cpu" in
16993
lt_prog_compiler_pic_GCJ='+Z'
16996
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16997
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17000
irix5* | irix6* | nonstopux*)
17001
lt_prog_compiler_wl_GCJ='-Wl,'
17002
# PIC (with -KPIC) is the default.
17003
lt_prog_compiler_static_GCJ='-non_shared'
17007
lt_prog_compiler_pic_GCJ='-KPIC'
17008
lt_prog_compiler_static_GCJ='-Bstatic'
17012
case $cc_basename in
17014
lt_prog_compiler_wl_GCJ='-Wl,'
17015
lt_prog_compiler_pic_GCJ='-KPIC'
17016
lt_prog_compiler_static_GCJ='-static'
17018
pgcc | pgf77 | pgf90)
17019
# Portland Group compilers (*not* the Pentium gcc compiler,
17020
# which looks to be a dead project)
17021
lt_prog_compiler_wl_GCJ='-Wl,'
17022
lt_prog_compiler_pic_GCJ='-fpic'
17023
lt_prog_compiler_static_GCJ='-static'
17026
lt_prog_compiler_wl_GCJ='-Wl,'
17027
# All Alpha code is PIC.
17028
lt_prog_compiler_static_GCJ='-non_shared'
17033
osf3* | osf4* | osf5*)
17034
lt_prog_compiler_wl_GCJ='-Wl,'
17035
# All OSF/1 code is PIC.
17036
lt_prog_compiler_static_GCJ='-non_shared'
17040
lt_prog_compiler_pic_GCJ='-Kpic'
17041
lt_prog_compiler_static_GCJ='-dn'
17045
lt_prog_compiler_wl_GCJ='-Wl,'
17046
lt_prog_compiler_pic_GCJ='-KPIC'
17047
lt_prog_compiler_static_GCJ='-Bstatic'
17051
lt_prog_compiler_wl_GCJ='-Qoption ld '
17052
lt_prog_compiler_pic_GCJ='-PIC'
17053
lt_prog_compiler_static_GCJ='-Bstatic'
17056
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17057
lt_prog_compiler_wl_GCJ='-Wl,'
17058
lt_prog_compiler_pic_GCJ='-KPIC'
17059
lt_prog_compiler_static_GCJ='-Bstatic'
17063
if test -d /usr/nec ;then
17064
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17065
lt_prog_compiler_static_GCJ='-Bstatic'
17070
lt_prog_compiler_wl_GCJ='-Wl,'
17071
lt_prog_compiler_can_build_shared_GCJ=no
17075
lt_prog_compiler_pic_GCJ='-pic'
17076
lt_prog_compiler_static_GCJ='-Bstatic'
17080
lt_prog_compiler_can_build_shared_GCJ=no
17085
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17086
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17089
# Check to make sure the PIC flag actually works.
17091
if test -n "$lt_prog_compiler_pic_GCJ"; then
17093
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17094
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17095
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17096
echo $ECHO_N "(cached) $ECHO_C" >&6
17098
lt_prog_compiler_pic_works_GCJ=no
17099
ac_outfile=conftest.$ac_objext
17100
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17101
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17102
# Insert the option either (1) after the last *FLAGS variable, or
17103
# (2) before a word containing "conftest.", or (3) at the end.
17104
# Note that $ac_compile itself does not contain backslashes and begins
17105
# with a dollar sign (not a hyphen), so the echo should work correctly.
17106
# The option is referenced via a variable to avoid confusing sed.
17107
lt_compile=`echo "$ac_compile" | $SED \
17108
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17109
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17110
-e 's:$: $lt_compiler_flag:'`
17111
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17112
(eval "$lt_compile" 2>conftest.err)
17114
cat conftest.err >&5
17115
echo "$as_me:__oline__: \$? = $ac_status" >&5
17116
if (exit $ac_status) && test -s "$ac_outfile"; then
17117
# The compiler can only warn and ignore the option if not recognized
17118
# So say no if there are warnings
17119
if test ! -s conftest.err; then
17120
lt_prog_compiler_pic_works_GCJ=yes
17126
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17127
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17129
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17130
case $lt_prog_compiler_pic_GCJ in
17132
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17135
lt_prog_compiler_pic_GCJ=
17136
lt_prog_compiler_can_build_shared_GCJ=no
17141
# For platforms which do not support PIC, -DPIC is meaningless:
17143
lt_prog_compiler_pic_GCJ=
17146
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17150
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17151
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17152
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17153
echo $ECHO_N "(cached) $ECHO_C" >&6
17155
lt_cv_prog_compiler_c_o_GCJ=no
17156
$rm -r conftest 2>/dev/null
17160
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17162
lt_compiler_flag="-o out/conftest2.$ac_objext"
17163
# Insert the option either (1) after the last *FLAGS variable, or
17164
# (2) before a word containing "conftest.", or (3) at the end.
17165
# Note that $ac_compile itself does not contain backslashes and begins
17166
# with a dollar sign (not a hyphen), so the echo should work correctly.
17167
lt_compile=`echo "$ac_compile" | $SED \
17168
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17169
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17170
-e 's:$: $lt_compiler_flag:'`
17171
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17172
(eval "$lt_compile" 2>out/conftest.err)
17174
cat out/conftest.err >&5
17175
echo "$as_me:__oline__: \$? = $ac_status" >&5
17176
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17178
# The compiler can only warn and ignore the option if not recognized
17179
# So say no if there are warnings
17180
if test ! -s out/conftest.err; then
17181
lt_cv_prog_compiler_c_o_GCJ=yes
17186
# SGI C++ compiler will create directory out/ii_files/ for
17187
# template instantiation
17188
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17189
$rm out/* && rmdir out
17195
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17196
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17199
hard_links="nottested"
17200
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17201
# do not overwrite the value of need_locks provided by the user
17202
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17203
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17206
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17208
ln conftest.a conftest.b 2>&5 || hard_links=no
17209
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17210
echo "$as_me:$LINENO: result: $hard_links" >&5
17211
echo "${ECHO_T}$hard_links" >&6
17212
if test "$hard_links" = no; then
17213
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17214
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17221
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17222
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17225
allow_undefined_flag_GCJ=
17226
enable_shared_with_static_runtimes_GCJ=no
17228
archive_expsym_cmds_GCJ=
17229
old_archive_From_new_cmds_GCJ=
17230
old_archive_from_expsyms_cmds_GCJ=
17231
export_dynamic_flag_spec_GCJ=
17232
whole_archive_flag_spec_GCJ=
17233
thread_safe_flag_spec_GCJ=
17234
hardcode_libdir_flag_spec_GCJ=
17235
hardcode_libdir_flag_spec_ld_GCJ=
17236
hardcode_libdir_separator_GCJ=
17237
hardcode_direct_GCJ=no
17238
hardcode_minus_L_GCJ=no
17239
hardcode_shlibpath_var_GCJ=unsupported
17240
link_all_deplibs_GCJ=unknown
17241
hardcode_automatic_GCJ=no
17243
module_expsym_cmds_GCJ=
17244
always_export_symbols_GCJ=no
17245
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17246
# include_expsyms should be a list of space-separated symbols to be *always*
17247
# included in the symbol list
17248
include_expsyms_GCJ=
17249
# exclude_expsyms can be an extended regexp of symbols to exclude
17250
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17251
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17252
# as well as any symbol that contains `d'.
17253
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17254
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17255
# platforms (ab)use it in PIC code, but their linkers get confused if
17256
# the symbol is explicitly referenced. Since portable code cannot
17257
# rely on this symbol name, it's probably fine to never include it in
17258
# preloaded symbol tables.
17259
extract_expsyms_cmds=
17262
cygwin* | mingw* | pw32*)
17263
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17264
# When not using gcc, we currently assume that we are using
17265
# Microsoft Visual C++.
17266
if test "$GCC" != yes; then
17276
if test "$with_gnu_ld" = yes; then
17277
# If archive_cmds runs LD, not CC, wlarc should be empty
17280
# See if GNU ld supports shared libraries.
17282
aix3* | aix4* | aix5*)
17283
# On AIX/PPC, the GNU linker is very broken
17284
if test "$host_cpu" != ia64; then
17288
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17289
*** to be unable to reliably create shared libraries on AIX.
17290
*** Therefore, libtool is disabling shared libraries support. If you
17291
*** really care for shared libraries, you may want to modify your PATH
17292
*** so that a non-GNU linker is found, and then restart.
17299
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)'
17300
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17301
hardcode_minus_L_GCJ=yes
17303
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17304
# that the semantics of dynamic libraries on AmigaOS, at least up
17305
# to version 4, is to share data among multiple programs linked
17306
# with the same dynamic library. Since this doesn't match the
17307
# behavior of shared libraries on other platforms, we can't use
17313
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17314
allow_undefined_flag_GCJ=unsupported
17315
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17316
# support --undefined. This deserves some investigation. FIXME
17317
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17323
cygwin* | mingw* | pw32*)
17324
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17325
# as there is no search path for DLLs.
17326
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17327
allow_undefined_flag_GCJ=unsupported
17328
always_export_symbols_GCJ=no
17329
enable_shared_with_static_runtimes_GCJ=yes
17330
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17332
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17333
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17334
# If the export-symbols file already is a .def file (1st line
17335
# is EXPORTS), use it as is; otherwise, prepend...
17336
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17337
cp $export_symbols $output_objdir/$soname.def;
17339
echo EXPORTS > $output_objdir/$soname.def;
17340
cat $export_symbols >> $output_objdir/$soname.def;
17342
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17349
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17350
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17353
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17354
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17359
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17363
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17364
*** create shared libraries on Solaris systems. Therefore, libtool
17365
*** is disabling shared libraries support. We urge you to upgrade GNU
17366
*** binutils to release 2.9.1 or newer. Another option is to modify
17367
*** your PATH or compiler configuration so that the native linker is
17368
*** used, and then restart.
17371
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17372
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17373
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17380
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17382
hardcode_direct_GCJ=yes
17383
hardcode_shlibpath_var_GCJ=no
17387
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17389
case $CC,$host_cpu in
17390
pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
17391
tmp_addflag=' -fpic' ;;
17392
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17393
tmp_addflag=' -i_dynamic' ;;
17394
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17395
tmp_addflag=' -i_dynamic -nofor_main' ;;
17396
ifc* | ifort*) # Intel Fortran compiler
17397
tmp_addflag=' -nofor_main' ;;
17399
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17400
supports_anon_versioning=no
17401
case `$LD -v 2>/dev/null` in
17402
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17403
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17404
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17405
*\ 2.11.*) ;; # other 2.11 versions
17406
*) supports_anon_versioning=yes ;;
17408
if test $supports_anon_versioning = yes; then
17409
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17410
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17411
$echo "local: *; };" >> $output_objdir/$libname.ver~
17412
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17414
archive_expsym_cmds_GCJ=$archive_cmds_GCJ
17422
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17423
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17424
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17431
if test "$ld_shlibs_GCJ" = yes; then
17432
runpath_var=LD_RUN_PATH
17433
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17434
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17435
# ancient GNU ld didn't support --whole-archive et. al.
17436
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17437
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17439
whole_archive_flag_spec_GCJ=
17443
# PORTME fill in a description of your system's linker (not GNU ld)
17446
allow_undefined_flag_GCJ=unsupported
17447
always_export_symbols_GCJ=yes
17448
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'
17449
# Note: this linker hardcodes the directories in LIBPATH if there
17450
# are no directories specified by -L.
17451
hardcode_minus_L_GCJ=yes
17452
if test "$GCC" = yes && test -z "$link_static_flag"; then
17453
# Neither direct hardcoding nor static linking is supported with a
17455
hardcode_direct_GCJ=unsupported
17460
if test "$host_cpu" = ia64; then
17461
# On IA64, the linker does run time linking by default, so we don't
17462
# have to do anything special.
17463
aix_use_runtimelinking=no
17464
exp_sym_flag='-Bexport'
17467
# If we're using GNU nm, then we don't want the "-C" option.
17468
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17469
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17470
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'
17472
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'
17474
aix_use_runtimelinking=no
17476
# Test if we are trying to use run time linking or normal
17477
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17478
# need to do runtime linking.
17479
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17480
for ld_flag in $LDFLAGS; do
17481
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17482
aix_use_runtimelinking=yes
17488
exp_sym_flag='-bexport'
17489
no_entry_flag='-bnoentry'
17492
# When large executables or shared objects are built, AIX ld can
17493
# have problems creating the table of contents. If linking a library
17494
# or program results in "error TOC overflow" add -mminimal-toc to
17495
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17496
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17498
archive_cmds_GCJ=''
17499
hardcode_direct_GCJ=yes
17500
hardcode_libdir_separator_GCJ=':'
17501
link_all_deplibs_GCJ=yes
17503
if test "$GCC" = yes; then
17504
case $host_os in aix4.[012]|aix4.[012].*)
17505
# We only want to do this on AIX 4.2 and lower, the check
17506
# below for broken collect2 doesn't work under 4.3+
17507
collect2name=`${CC} -print-prog-name=collect2`
17508
if test -f "$collect2name" && \
17509
strings "$collect2name" | grep resolve_lib_name >/dev/null
17511
# We have reworked collect2
17512
hardcode_direct_GCJ=yes
17514
# We have old collect2
17515
hardcode_direct_GCJ=unsupported
17516
# It fails to find uninstalled libraries when the uninstalled
17517
# path is not listed in the libpath. Setting hardcode_minus_L
17518
# to unsupported forces relinking
17519
hardcode_minus_L_GCJ=yes
17520
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17521
hardcode_libdir_separator_GCJ=
17524
shared_flag='-shared'
17525
if test "$aix_use_runtimelinking" = yes; then
17526
shared_flag="$shared_flag "'${wl}-G'
17530
if test "$host_cpu" = ia64; then
17531
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17532
# chokes on -Wl,-G. The following line is correct:
17535
if test "$aix_use_runtimelinking" = yes; then
17536
shared_flag='${wl}-G'
17538
shared_flag='${wl}-bM:SRE'
17543
# It seems that -bexpall does not export symbols beginning with
17544
# underscore (_), so it is better to generate a list of symbols to export.
17545
always_export_symbols_GCJ=yes
17546
if test "$aix_use_runtimelinking" = yes; then
17547
# Warning - without using the other runtime loading flags (-brtl),
17548
# -berok will link without error, but may produce a broken library.
17549
allow_undefined_flag_GCJ='-berok'
17550
# Determine the default libpath from the value encoded in an empty executable.
17551
cat >conftest.$ac_ext <<_ACEOF
17554
cat confdefs.h >>conftest.$ac_ext
17555
cat >>conftest.$ac_ext <<_ACEOF
17556
/* end confdefs.h. */
17566
rm -f conftest.$ac_objext conftest$ac_exeext
17567
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17568
(eval $ac_link) 2>conftest.er1
17570
grep -v '^ *+' conftest.er1 >conftest.err
17572
cat conftest.err >&5
17573
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574
(exit $ac_status); } &&
17575
{ ac_try='test -z "$ac_c_werror_flag"
17576
|| test ! -s conftest.err'
17577
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578
(eval $ac_try) 2>&5
17580
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581
(exit $ac_status); }; } &&
17582
{ ac_try='test -s conftest$ac_exeext'
17583
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17584
(eval $ac_try) 2>&5
17586
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587
(exit $ac_status); }; }; then
17589
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17591
# Check for a 64-bit object if we didn't find anything.
17592
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; }
17595
echo "$as_me: failed program was:" >&5
17596
sed 's/^/| /' conftest.$ac_ext >&5
17599
rm -f conftest.err conftest.$ac_objext \
17600
conftest$ac_exeext conftest.$ac_ext
17601
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17603
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17604
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"
17606
if test "$host_cpu" = ia64; then
17607
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17608
allow_undefined_flag_GCJ="-z nodefs"
17609
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"
17611
# Determine the default libpath from the value encoded in an empty executable.
17612
cat >conftest.$ac_ext <<_ACEOF
17615
cat confdefs.h >>conftest.$ac_ext
17616
cat >>conftest.$ac_ext <<_ACEOF
17617
/* end confdefs.h. */
17627
rm -f conftest.$ac_objext conftest$ac_exeext
17628
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17629
(eval $ac_link) 2>conftest.er1
17631
grep -v '^ *+' conftest.er1 >conftest.err
17633
cat conftest.err >&5
17634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635
(exit $ac_status); } &&
17636
{ ac_try='test -z "$ac_c_werror_flag"
17637
|| test ! -s conftest.err'
17638
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17639
(eval $ac_try) 2>&5
17641
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642
(exit $ac_status); }; } &&
17643
{ ac_try='test -s conftest$ac_exeext'
17644
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645
(eval $ac_try) 2>&5
17647
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648
(exit $ac_status); }; }; then
17650
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17652
# Check for a 64-bit object if we didn't find anything.
17653
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; }
17656
echo "$as_me: failed program was:" >&5
17657
sed 's/^/| /' conftest.$ac_ext >&5
17660
rm -f conftest.err conftest.$ac_objext \
17661
conftest$ac_exeext conftest.$ac_ext
17662
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17664
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17665
# Warning - without using the other run time loading flags,
17666
# -berok will link without error, but may produce a broken library.
17667
no_undefined_flag_GCJ=' ${wl}-bernotok'
17668
allow_undefined_flag_GCJ=' ${wl}-berok'
17669
# -bexpall does not export symbols beginning with underscore (_)
17670
always_export_symbols_GCJ=yes
17671
# Exported symbols can be pulled into shared objects from archives
17672
whole_archive_flag_spec_GCJ=' '
17673
archive_cmds_need_lc_GCJ=yes
17674
# This is similar to how AIX traditionally builds it's shared libraries.
17675
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'
17681
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)'
17682
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17683
hardcode_minus_L_GCJ=yes
17684
# see comment about different semantics on the GNU ld section
17689
export_dynamic_flag_spec_GCJ=-rdynamic
17692
cygwin* | mingw* | pw32*)
17693
# When not using gcc, we currently assume that we are using
17694
# Microsoft Visual C++.
17695
# hardcode_libdir_flag_spec is actually meaningless, as there is
17696
# no search path for DLLs.
17697
hardcode_libdir_flag_spec_GCJ=' '
17698
allow_undefined_flag_GCJ=unsupported
17699
# Tell ltmain to make .lib files, not .a files.
17701
# Tell ltmain to make .dll files, not .so files.
17703
# FIXME: Setting linknames here is a bad hack.
17704
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17705
# The linker will automatically build a .lib file if we build a DLL.
17706
old_archive_From_new_cmds_GCJ='true'
17707
# FIXME: Should let the user specify the lib program.
17708
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17709
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17710
enable_shared_with_static_runtimes_GCJ=yes
17713
darwin* | rhapsody*)
17715
rhapsody* | darwin1.[012])
17716
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17719
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17720
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17722
case ${MACOSX_DEPLOYMENT_TARGET} in
17724
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17727
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17733
archive_cmds_need_lc_GCJ=no
17734
hardcode_direct_GCJ=no
17735
hardcode_automatic_GCJ=yes
17736
hardcode_shlibpath_var_GCJ=unsupported
17737
whole_archive_flag_spec_GCJ=''
17738
link_all_deplibs_GCJ=yes
17739
if test "$GCC" = yes ; then
17740
output_verbose_link_cmd='echo'
17741
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17742
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17743
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17744
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}'
17745
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}'
17747
case "$cc_basename" in
17749
output_verbose_link_cmd='echo'
17750
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17751
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17752
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17753
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}'
17754
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}'
17764
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17765
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17766
hardcode_shlibpath_var_GCJ=no
17773
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17774
# support. Future versions do this automatically, but an explicit c++rt0.o
17775
# does not break anything, and helps significantly (at the cost of a little
17778
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17779
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17780
hardcode_direct_GCJ=yes
17781
hardcode_shlibpath_var_GCJ=no
17784
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17786
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17787
hardcode_direct_GCJ=yes
17788
hardcode_minus_L_GCJ=yes
17789
hardcode_shlibpath_var_GCJ=no
17792
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17793
freebsd* | kfreebsd*-gnu | dragonfly*)
17794
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17795
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17796
hardcode_direct_GCJ=yes
17797
hardcode_shlibpath_var_GCJ=no
17801
if test "$GCC" = yes; then
17802
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'
17804
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'
17806
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17807
hardcode_libdir_separator_GCJ=:
17808
hardcode_direct_GCJ=yes
17810
# hardcode_minus_L: Not really in the search PATH,
17811
# but as the default location of the library.
17812
hardcode_minus_L_GCJ=yes
17813
export_dynamic_flag_spec_GCJ='${wl}-E'
17817
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17818
case "$host_cpu" in
17820
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17823
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17827
case "$host_cpu" in
17829
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17832
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17836
if test "$with_gnu_ld" = no; then
17837
case "$host_cpu" in
17839
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17840
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17841
hardcode_libdir_separator_GCJ=:
17842
hardcode_direct_GCJ=no
17843
hardcode_shlibpath_var_GCJ=no
17846
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17847
hardcode_direct_GCJ=no
17848
hardcode_shlibpath_var_GCJ=no
17850
# hardcode_minus_L: Not really in the search PATH,
17851
# but as the default location of the library.
17852
hardcode_minus_L_GCJ=yes
17855
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17856
hardcode_libdir_separator_GCJ=:
17857
hardcode_direct_GCJ=yes
17858
export_dynamic_flag_spec_GCJ='${wl}-E'
17860
# hardcode_minus_L: Not really in the search PATH,
17861
# but as the default location of the library.
17862
hardcode_minus_L_GCJ=yes
17868
irix5* | irix6* | nonstopux*)
17869
if test "$GCC" = yes; then
17870
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'
17872
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'
17873
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17875
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17876
hardcode_libdir_separator_GCJ=:
17877
link_all_deplibs_GCJ=yes
17881
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17882
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17884
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17886
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17887
hardcode_direct_GCJ=yes
17888
hardcode_shlibpath_var_GCJ=no
17892
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17893
hardcode_direct_GCJ=yes
17894
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17895
hardcode_libdir_separator_GCJ=:
17896
hardcode_shlibpath_var_GCJ=no
17900
hardcode_direct_GCJ=yes
17901
hardcode_shlibpath_var_GCJ=no
17902
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17903
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17904
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17905
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17906
export_dynamic_flag_spec_GCJ='${wl}-E'
17909
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17910
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17911
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17914
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17915
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17922
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17923
hardcode_minus_L_GCJ=yes
17924
allow_undefined_flag_GCJ=unsupported
17925
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'
17926
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17930
if test "$GCC" = yes; then
17931
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17932
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'
17934
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17935
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'
17937
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17938
hardcode_libdir_separator_GCJ=:
17941
osf4* | osf5*) # as osf3* with the addition of -msym flag
17942
if test "$GCC" = yes; then
17943
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17944
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'
17945
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17947
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17948
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'
17949
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~
17950
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17952
# Both c and cxx compiler support -rpath directly
17953
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17955
hardcode_libdir_separator_GCJ=:
17959
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17960
hardcode_shlibpath_var_GCJ=no
17961
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17962
runpath_var=LD_RUN_PATH
17963
hardcode_runpath_var=yes
17967
no_undefined_flag_GCJ=' -z text'
17968
if test "$GCC" = yes; then
17969
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17970
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17971
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17973
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17974
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17975
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17977
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17978
hardcode_shlibpath_var_GCJ=no
17980
solaris2.[0-5] | solaris2.[0-5].*) ;;
17981
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
17982
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
17984
link_all_deplibs_GCJ=yes
17988
if test "x$host_vendor" = xsequent; then
17989
# Use $CC to link under sequent, because it throws in some extra .o
17990
# files that make .init and .fini sections work.
17991
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17993
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17995
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17996
hardcode_direct_GCJ=yes
17997
hardcode_minus_L_GCJ=yes
17998
hardcode_shlibpath_var_GCJ=no
18002
case $host_vendor in
18004
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18005
hardcode_direct_GCJ=yes # is this really true???
18008
## LD is ld it makes a PLAMLIB
18009
## CC just makes a GrossModule.
18010
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18011
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18012
hardcode_direct_GCJ=no
18015
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18016
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18019
runpath_var='LD_RUN_PATH'
18020
hardcode_shlibpath_var_GCJ=no
18024
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18025
hardcode_shlibpath_var_GCJ=no
18026
export_dynamic_flag_spec_GCJ='-Bexport'
18030
if test -d /usr/nec; then
18031
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18032
hardcode_shlibpath_var_GCJ=no
18033
runpath_var=LD_RUN_PATH
18034
hardcode_runpath_var=yes
18040
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18041
hardcode_direct_GCJ=yes
18042
hardcode_minus_L_GCJ=no
18043
hardcode_shlibpath_var_GCJ=no
18044
hardcode_runpath_var=yes
18045
runpath_var=LD_RUN_PATH
18048
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18049
no_undefined_flag_GCJ='${wl}-z ${wl}text'
18050
if test "$GCC" = yes; then
18051
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18053
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18055
runpath_var='LD_RUN_PATH'
18056
hardcode_shlibpath_var_GCJ=no
18060
no_undefined_flag_GCJ=' -z text'
18061
# $CC -shared without GNU ld will not create a library from C++
18062
# object files and a static libstdc++, better avoid it by now
18063
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18064
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18065
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18066
hardcode_libdir_flag_spec_GCJ=
18067
hardcode_shlibpath_var_GCJ=no
18068
runpath_var='LD_RUN_PATH'
18072
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18073
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18074
hardcode_shlibpath_var_GCJ=no
18083
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18084
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18085
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18087
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18088
if test "$GCC" = yes; then
18089
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18093
# Do we need to explicitly link libc?
18095
case "x$archive_cmds_need_lc_GCJ" in
18097
# Assume -lc should be added
18098
archive_cmds_need_lc_GCJ=yes
18100
if test "$enable_shared" = yes && test "$GCC" = yes; then
18101
case $archive_cmds_GCJ in
18103
# FIXME: we may have to deal with multi-command sequences.
18106
# Test whether the compiler implicitly links with -lc since on some
18107
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18108
# to ld, don't add -lc before -lgcc.
18109
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18110
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18112
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18114
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18115
(eval $ac_compile) 2>&5
18117
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118
(exit $ac_status); } 2>conftest.err; then
18121
libobjs=conftest.$ac_objext
18123
wl=$lt_prog_compiler_wl_GCJ
18129
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18130
allow_undefined_flag_GCJ=
18131
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18132
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18134
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135
(exit $ac_status); }
18137
archive_cmds_need_lc_GCJ=no
18139
archive_cmds_need_lc_GCJ=yes
18141
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18143
cat conftest.err 1>&5
18146
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18147
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18154
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18155
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18156
library_names_spec=
18157
libname_spec='lib$name'
18161
postuninstall_cmds=
18165
shlibpath_overrides_runpath=unknown
18167
dynamic_linker="$host_os ld.so"
18168
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18169
if test "$GCC" = yes; then
18170
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18171
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18172
# if the path contains ";" then we assume it to be the separator
18173
# otherwise default to the standard path separator (i.e. ":") - it is
18174
# assumed that no part of a normal pathname contains ";" but that should
18175
# okay in the real world where ";" in dirpaths is itself problematic.
18176
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18178
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18181
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18183
need_lib_prefix=unknown
18184
hardcode_into_libs=no
18186
# when you set need_version to no, make sure it does not cause -set_version
18187
# flags to be left without arguments
18188
need_version=unknown
18193
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18194
shlibpath_var=LIBPATH
18196
# AIX 3 has no versioning support, so we append a major version to the name.
18197
soname_spec='${libname}${release}${shared_ext}$major'
18204
hardcode_into_libs=yes
18205
if test "$host_cpu" = ia64; then
18206
# AIX 5 supports IA64
18207
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18208
shlibpath_var=LD_LIBRARY_PATH
18210
# With GCC up to 2.95.x, collect2 would create an import file
18211
# for dependence libraries. The import file would start with
18212
# the line `#! .'. This would cause the generated library to
18213
# depend on `.', always an invalid library. This was fixed in
18214
# development snapshots of GCC prior to 3.0.
18216
aix4 | aix4.[01] | aix4.[01].*)
18217
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18219
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18222
can_build_shared=no
18226
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18227
# soname into executable. Probably we can add versioning support to
18228
# collect2, so additional links can be useful in future.
18229
if test "$aix_use_runtimelinking" = yes; then
18230
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18231
# instead of lib<name>.a to let people know that these are not
18232
# typical AIX shared libraries.
18233
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18235
# We preserve .a as extension for shared libraries through AIX4.2
18236
# and later when we are not doing run time linking.
18237
library_names_spec='${libname}${release}.a $libname.a'
18238
soname_spec='${libname}${release}${shared_ext}$major'
18240
shlibpath_var=LIBPATH
18245
library_names_spec='$libname.ixlibrary $libname.a'
18246
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18247
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'
18251
library_names_spec='${libname}${shared_ext}'
18252
dynamic_linker="$host_os ld.so"
18253
shlibpath_var=LIBRARY_PATH
18259
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18260
soname_spec='${libname}${release}${shared_ext}$major'
18261
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18262
shlibpath_var=LD_LIBRARY_PATH
18263
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18264
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18265
# the default ld.so.conf also contains /usr/contrib/lib and
18266
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18267
# libtool to hard-code these into programs
18270
cygwin* | mingw* | pw32*)
18271
version_type=windows
18276
case $GCC,$host_os in
18277
yes,cygwin* | yes,mingw* | yes,pw32*)
18278
library_names_spec='$libname.dll.a'
18279
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18280
postinstall_cmds='base_file=`basename \${file}`~
18281
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18282
dldir=$destdir/`dirname \$dlpath`~
18283
test -d \$dldir || mkdir -p \$dldir~
18284
$install_prog $dir/$dlname \$dldir/$dlname'
18285
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18286
dlpath=$dir/\$dldll~
18288
shlibpath_overrides_runpath=yes
18292
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18293
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18294
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18297
# MinGW DLLs use traditional 'lib' prefix
18298
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18299
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18300
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18301
# It is most probably a Windows format PATH printed by
18302
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18303
# path with ; separators, and with drive letters. We can handle the
18304
# drive letters (cygwin fileutils understands them), so leave them,
18305
# especially as we might pass files found there to a mingw objdump,
18306
# which wouldn't understand a cygwinified path. Ahh.
18307
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18309
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18313
# pw32 DLLs use 'pw' prefix rather than 'lib'
18314
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18320
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18323
dynamic_linker='Win32 ld.exe'
18324
# FIXME: first we should search . and the directory the executable is in
18328
darwin* | rhapsody*)
18329
dynamic_linker="$host_os dyld"
18330
version_type=darwin
18333
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18334
soname_spec='${libname}${release}${major}$shared_ext'
18335
shlibpath_overrides_runpath=yes
18336
shlibpath_var=DYLD_LIBRARY_PATH
18337
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18338
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18339
if test "$GCC" = yes; then
18340
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"`
18342
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18344
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18351
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18352
soname_spec='${libname}${release}${shared_ext}$major'
18353
shlibpath_var=LD_LIBRARY_PATH
18364
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18365
soname_spec='${libname}${release}${shared_ext}$major'
18366
shlibpath_var=LD_LIBRARY_PATH
18367
shlibpath_overrides_runpath=no
18368
hardcode_into_libs=yes
18369
dynamic_linker='GNU ld.so'
18372
freebsd* | dragonfly*)
18373
# DragonFly does not have aout. When/if they implement a new
18374
# versioning mechanism, adjust this.
18375
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18376
version_type=freebsd-$objformat
18377
case $version_type in
18379
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18384
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18388
shlibpath_var=LD_LIBRARY_PATH
18391
shlibpath_overrides_runpath=yes
18393
freebsd3.[01]* | freebsdelf3.[01]*)
18394
shlibpath_overrides_runpath=yes
18395
hardcode_into_libs=yes
18398
shlibpath_overrides_runpath=no
18399
hardcode_into_libs=yes
18408
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18409
soname_spec='${libname}${release}${shared_ext}$major'
18410
shlibpath_var=LD_LIBRARY_PATH
18411
hardcode_into_libs=yes
18414
hpux9* | hpux10* | hpux11*)
18415
# Give a soname corresponding to the major version so that dld.sl refuses to
18416
# link against other versions.
18420
case "$host_cpu" in
18423
hardcode_into_libs=yes
18424
dynamic_linker="$host_os dld.so"
18425
shlibpath_var=LD_LIBRARY_PATH
18426
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18427
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18428
soname_spec='${libname}${release}${shared_ext}$major'
18429
if test "X$HPUX_IA64_MODE" = X32; then
18430
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18432
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18434
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18438
hardcode_into_libs=yes
18439
dynamic_linker="$host_os dld.sl"
18440
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18441
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18442
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18443
soname_spec='${libname}${release}${shared_ext}$major'
18444
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18445
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18449
dynamic_linker="$host_os dld.sl"
18450
shlibpath_var=SHLIB_PATH
18451
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18452
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18453
soname_spec='${libname}${release}${shared_ext}$major'
18456
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18457
postinstall_cmds='chmod 555 $lib'
18460
irix5* | irix6* | nonstopux*)
18462
nonstopux*) version_type=nonstopux ;;
18464
if test "$lt_cv_prog_gnu_ld" = yes; then
18472
soname_spec='${libname}${release}${shared_ext}$major'
18473
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18475
irix5* | nonstopux*)
18476
libsuff= shlibsuff=
18479
case $LD in # libtool.m4 will add one of these switches to LD
18480
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18481
libsuff= shlibsuff= libmagic=32-bit;;
18482
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18483
libsuff=32 shlibsuff=N32 libmagic=N32;;
18484
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18485
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18486
*) libsuff= shlibsuff= libmagic=never-match;;
18490
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18491
shlibpath_overrides_runpath=no
18492
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18493
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18494
hardcode_into_libs=yes
18497
# No shared lib support for Linux oldld, aout, or coff.
18498
linux*oldld* | linux*aout* | linux*coff*)
18502
# This must be Linux ELF.
18507
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18508
soname_spec='${libname}${release}${shared_ext}$major'
18509
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18510
shlibpath_var=LD_LIBRARY_PATH
18511
shlibpath_overrides_runpath=no
18512
# This implies no fast_install, which is unacceptable.
18513
# Some rework will be needed to allow for fast_install
18514
# before this can be enabled.
18515
hardcode_into_libs=yes
18517
# Append ld.so.conf contents to the search path
18518
if test -f /etc/ld.so.conf; then
18519
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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18520
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18523
# We used to test for /lib/ld.so.1 and disable shared libraries on
18524
# powerpc, because MkLinux only supported shared libraries with the
18525
# GNU dynamic linker. Since this was broken with cross compilers,
18526
# most powerpc-linux boxes support dynamic linking these days and
18527
# people can always --disable-shared, the test was removed, and we
18528
# assume the GNU/Linux dynamic linker is in use.
18529
dynamic_linker='GNU/Linux ld.so'
18536
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18537
soname_spec='${libname}${release}${shared_ext}$major'
18538
shlibpath_var=LD_LIBRARY_PATH
18539
shlibpath_overrides_runpath=no
18540
hardcode_into_libs=yes
18541
dynamic_linker='GNU ld.so'
18548
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18549
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18550
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18551
dynamic_linker='NetBSD (a.out) ld.so'
18553
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18554
soname_spec='${libname}${release}${shared_ext}$major'
18555
dynamic_linker='NetBSD ld.elf_so'
18557
shlibpath_var=LD_LIBRARY_PATH
18558
shlibpath_overrides_runpath=yes
18559
hardcode_into_libs=yes
18564
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18565
shlibpath_var=LD_LIBRARY_PATH
18566
shlibpath_overrides_runpath=yes
18573
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18574
soname_spec='${libname}${release}${shared_ext}$major'
18575
shlibpath_var=LD_LIBRARY_PATH
18576
shlibpath_overrides_runpath=yes
18583
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18584
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18585
shlibpath_var=LD_LIBRARY_PATH
18586
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18588
openbsd2.[89] | openbsd2.[89].*)
18589
shlibpath_overrides_runpath=no
18592
shlibpath_overrides_runpath=yes
18596
shlibpath_overrides_runpath=yes
18601
libname_spec='$name'
18604
library_names_spec='$libname${shared_ext} $libname.a'
18605
dynamic_linker='OS/2 ld.exe'
18606
shlibpath_var=LIBPATH
18609
osf3* | osf4* | osf5*)
18613
soname_spec='${libname}${release}${shared_ext}$major'
18614
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18615
shlibpath_var=LD_LIBRARY_PATH
18616
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18617
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18622
soname_spec='${libname}${release}${shared_ext}$major'
18623
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18624
shlibpath_var=LD_LIBRARY_PATH
18631
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18632
soname_spec='${libname}${release}${shared_ext}$major'
18633
shlibpath_var=LD_LIBRARY_PATH
18634
shlibpath_overrides_runpath=yes
18635
hardcode_into_libs=yes
18636
# ldd complains unless libraries are executable
18637
postinstall_cmds='chmod +x $lib'
18642
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18643
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18644
shlibpath_var=LD_LIBRARY_PATH
18645
shlibpath_overrides_runpath=yes
18646
if test "$with_gnu_ld" = yes; then
18652
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18654
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18655
soname_spec='${libname}${release}${shared_ext}$major'
18656
shlibpath_var=LD_LIBRARY_PATH
18657
case $host_vendor in
18659
shlibpath_overrides_runpath=no
18661
export_dynamic_flag_spec='${wl}-Blargedynsym'
18662
runpath_var=LD_RUN_PATH
18670
shlibpath_overrides_runpath=no
18671
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18677
if test -d /usr/nec ;then
18679
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18680
soname_spec='$libname${shared_ext}.$major'
18681
shlibpath_var=LD_LIBRARY_PATH
18687
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18688
soname_spec='${libname}${release}${shared_ext}$major'
18689
shlibpath_var=LD_LIBRARY_PATH
18696
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18697
echo "${ECHO_T}$dynamic_linker" >&6
18698
test "$dynamic_linker" = no && can_build_shared=no
18700
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18701
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18702
hardcode_action_GCJ=
18703
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18704
test -n "$runpath_var_GCJ" || \
18705
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18707
# We can hardcode non-existant directories.
18708
if test "$hardcode_direct_GCJ" != no &&
18709
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18710
# have to relink, otherwise we might link with an installed library
18711
# when we should be linking with a yet-to-be-installed one
18712
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18713
test "$hardcode_minus_L_GCJ" != no; then
18714
# Linking always hardcodes the temporary library directory.
18715
hardcode_action_GCJ=relink
18717
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18718
hardcode_action_GCJ=immediate
18721
# We cannot hardcode anything, or else we can only hardcode existing
18723
hardcode_action_GCJ=unsupported
18725
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18726
echo "${ECHO_T}$hardcode_action_GCJ" >&6
18728
if test "$hardcode_action_GCJ" = relink; then
18729
# Fast installation is not supported
18730
enable_fast_install=no
18731
elif test "$shlibpath_overrides_runpath" = yes ||
18732
test "$enable_shared" = no; then
18733
# Fast installation is not necessary
18734
enable_fast_install=needless
18739
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18740
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18741
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18742
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18743
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18744
echo "$as_me:$LINENO: result: yes" >&5
18745
echo "${ECHO_T}yes" >&6
18747
# FIXME - insert some real tests, host_os isn't really good enough
18750
if test -n "$STRIP" ; then
18751
striplib="$STRIP -x"
18752
echo "$as_me:$LINENO: result: yes" >&5
18753
echo "${ECHO_T}yes" >&6
18755
echo "$as_me:$LINENO: result: no" >&5
18756
echo "${ECHO_T}no" >&6
18760
echo "$as_me:$LINENO: result: no" >&5
18761
echo "${ECHO_T}no" >&6
18766
if test "x$enable_dlopen" != xyes; then
18767
enable_dlopen=unknown
18768
enable_dlopen_self=unknown
18769
enable_dlopen_self_static=unknown
18776
lt_cv_dlopen="load_add_on"
18778
lt_cv_dlopen_self=yes
18782
lt_cv_dlopen="LoadLibrary"
18787
lt_cv_dlopen="dlopen"
18792
# if libdl is installed we need to link against it
18793
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18794
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18795
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18796
echo $ECHO_N "(cached) $ECHO_C" >&6
18798
ac_check_lib_save_LIBS=$LIBS
18800
cat >conftest.$ac_ext <<_ACEOF
18803
cat confdefs.h >>conftest.$ac_ext
18804
cat >>conftest.$ac_ext <<_ACEOF
18805
/* end confdefs.h. */
18807
/* Override any gcc2 internal prototype to avoid an error. */
18811
/* We use char because int might match the return type of a gcc2
18812
builtin and then its argument prototype would still apply. */
18822
rm -f conftest.$ac_objext conftest$ac_exeext
18823
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18824
(eval $ac_link) 2>conftest.er1
18826
grep -v '^ *+' conftest.er1 >conftest.err
18828
cat conftest.err >&5
18829
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830
(exit $ac_status); } &&
18831
{ ac_try='test -z "$ac_c_werror_flag"
18832
|| test ! -s conftest.err'
18833
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18834
(eval $ac_try) 2>&5
18836
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837
(exit $ac_status); }; } &&
18838
{ ac_try='test -s conftest$ac_exeext'
18839
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18840
(eval $ac_try) 2>&5
18842
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843
(exit $ac_status); }; }; then
18844
ac_cv_lib_dl_dlopen=yes
18846
echo "$as_me: failed program was:" >&5
18847
sed 's/^/| /' conftest.$ac_ext >&5
18849
ac_cv_lib_dl_dlopen=no
18851
rm -f conftest.err conftest.$ac_objext \
18852
conftest$ac_exeext conftest.$ac_ext
18853
LIBS=$ac_check_lib_save_LIBS
18855
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18856
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18857
if test $ac_cv_lib_dl_dlopen = yes; then
18858
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18861
lt_cv_dlopen="dyld"
18863
lt_cv_dlopen_self=yes
18870
echo "$as_me:$LINENO: checking for shl_load" >&5
18871
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18872
if test "${ac_cv_func_shl_load+set}" = set; then
18873
echo $ECHO_N "(cached) $ECHO_C" >&6
18875
cat >conftest.$ac_ext <<_ACEOF
18878
cat confdefs.h >>conftest.$ac_ext
18879
cat >>conftest.$ac_ext <<_ACEOF
18880
/* end confdefs.h. */
18881
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18882
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18883
#define shl_load innocuous_shl_load
18885
/* System header to define __stub macros and hopefully few prototypes,
18886
which can conflict with char shl_load (); below.
18887
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18888
<limits.h> exists even on freestanding compilers. */
18891
# include <limits.h>
18893
# include <assert.h>
18898
/* Override any gcc2 internal prototype to avoid an error. */
18903
/* We use char because int might match the return type of a gcc2
18904
builtin and then its argument prototype would still apply. */
18906
/* The GNU C library defines this for functions which it implements
18907
to always fail with ENOSYS. Some functions are actually named
18908
something starting with __ and the normal name is an alias. */
18909
#if defined (__stub_shl_load) || defined (__stub___shl_load)
18912
char (*f) () = shl_load;
18921
return f != shl_load;
18926
rm -f conftest.$ac_objext conftest$ac_exeext
18927
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18928
(eval $ac_link) 2>conftest.er1
18930
grep -v '^ *+' conftest.er1 >conftest.err
18932
cat conftest.err >&5
18933
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934
(exit $ac_status); } &&
18935
{ ac_try='test -z "$ac_c_werror_flag"
18936
|| test ! -s conftest.err'
18937
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18938
(eval $ac_try) 2>&5
18940
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941
(exit $ac_status); }; } &&
18942
{ ac_try='test -s conftest$ac_exeext'
18943
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18944
(eval $ac_try) 2>&5
18946
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947
(exit $ac_status); }; }; then
18948
ac_cv_func_shl_load=yes
18950
echo "$as_me: failed program was:" >&5
18951
sed 's/^/| /' conftest.$ac_ext >&5
18953
ac_cv_func_shl_load=no
18955
rm -f conftest.err conftest.$ac_objext \
18956
conftest$ac_exeext conftest.$ac_ext
18958
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18959
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18960
if test $ac_cv_func_shl_load = yes; then
18961
lt_cv_dlopen="shl_load"
18963
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18964
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18965
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18966
echo $ECHO_N "(cached) $ECHO_C" >&6
18968
ac_check_lib_save_LIBS=$LIBS
18970
cat >conftest.$ac_ext <<_ACEOF
18973
cat confdefs.h >>conftest.$ac_ext
18974
cat >>conftest.$ac_ext <<_ACEOF
18975
/* end confdefs.h. */
18977
/* Override any gcc2 internal prototype to avoid an error. */
18981
/* We use char because int might match the return type of a gcc2
18982
builtin and then its argument prototype would still apply. */
18992
rm -f conftest.$ac_objext conftest$ac_exeext
18993
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18994
(eval $ac_link) 2>conftest.er1
18996
grep -v '^ *+' conftest.er1 >conftest.err
18998
cat conftest.err >&5
18999
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000
(exit $ac_status); } &&
19001
{ ac_try='test -z "$ac_c_werror_flag"
19002
|| test ! -s conftest.err'
19003
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19004
(eval $ac_try) 2>&5
19006
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007
(exit $ac_status); }; } &&
19008
{ ac_try='test -s conftest$ac_exeext'
19009
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19010
(eval $ac_try) 2>&5
19012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013
(exit $ac_status); }; }; then
19014
ac_cv_lib_dld_shl_load=yes
19016
echo "$as_me: failed program was:" >&5
19017
sed 's/^/| /' conftest.$ac_ext >&5
19019
ac_cv_lib_dld_shl_load=no
19021
rm -f conftest.err conftest.$ac_objext \
19022
conftest$ac_exeext conftest.$ac_ext
19023
LIBS=$ac_check_lib_save_LIBS
19025
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19026
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19027
if test $ac_cv_lib_dld_shl_load = yes; then
19028
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19030
echo "$as_me:$LINENO: checking for dlopen" >&5
19031
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19032
if test "${ac_cv_func_dlopen+set}" = set; then
19033
echo $ECHO_N "(cached) $ECHO_C" >&6
19035
cat >conftest.$ac_ext <<_ACEOF
19038
cat confdefs.h >>conftest.$ac_ext
19039
cat >>conftest.$ac_ext <<_ACEOF
19040
/* end confdefs.h. */
19041
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19042
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19043
#define dlopen innocuous_dlopen
19045
/* System header to define __stub macros and hopefully few prototypes,
19046
which can conflict with char dlopen (); below.
19047
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19048
<limits.h> exists even on freestanding compilers. */
19051
# include <limits.h>
19053
# include <assert.h>
19058
/* Override any gcc2 internal prototype to avoid an error. */
19063
/* We use char because int might match the return type of a gcc2
19064
builtin and then its argument prototype would still apply. */
19066
/* The GNU C library defines this for functions which it implements
19067
to always fail with ENOSYS. Some functions are actually named
19068
something starting with __ and the normal name is an alias. */
19069
#if defined (__stub_dlopen) || defined (__stub___dlopen)
19072
char (*f) () = dlopen;
19081
return f != dlopen;
19086
rm -f conftest.$ac_objext conftest$ac_exeext
19087
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19088
(eval $ac_link) 2>conftest.er1
19090
grep -v '^ *+' conftest.er1 >conftest.err
19092
cat conftest.err >&5
19093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094
(exit $ac_status); } &&
19095
{ ac_try='test -z "$ac_c_werror_flag"
19096
|| test ! -s conftest.err'
19097
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19098
(eval $ac_try) 2>&5
19100
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101
(exit $ac_status); }; } &&
19102
{ ac_try='test -s conftest$ac_exeext'
19103
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19104
(eval $ac_try) 2>&5
19106
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107
(exit $ac_status); }; }; then
19108
ac_cv_func_dlopen=yes
19110
echo "$as_me: failed program was:" >&5
19111
sed 's/^/| /' conftest.$ac_ext >&5
19113
ac_cv_func_dlopen=no
19115
rm -f conftest.err conftest.$ac_objext \
19116
conftest$ac_exeext conftest.$ac_ext
19118
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19119
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19120
if test $ac_cv_func_dlopen = yes; then
19121
lt_cv_dlopen="dlopen"
19123
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19124
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19125
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19126
echo $ECHO_N "(cached) $ECHO_C" >&6
19128
ac_check_lib_save_LIBS=$LIBS
19130
cat >conftest.$ac_ext <<_ACEOF
19133
cat confdefs.h >>conftest.$ac_ext
19134
cat >>conftest.$ac_ext <<_ACEOF
19135
/* end confdefs.h. */
19137
/* Override any gcc2 internal prototype to avoid an error. */
19141
/* We use char because int might match the return type of a gcc2
19142
builtin and then its argument prototype would still apply. */
19152
rm -f conftest.$ac_objext conftest$ac_exeext
19153
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19154
(eval $ac_link) 2>conftest.er1
19156
grep -v '^ *+' conftest.er1 >conftest.err
19158
cat conftest.err >&5
19159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160
(exit $ac_status); } &&
19161
{ ac_try='test -z "$ac_c_werror_flag"
19162
|| test ! -s conftest.err'
19163
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19164
(eval $ac_try) 2>&5
19166
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167
(exit $ac_status); }; } &&
19168
{ ac_try='test -s conftest$ac_exeext'
19169
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19170
(eval $ac_try) 2>&5
19172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173
(exit $ac_status); }; }; then
19174
ac_cv_lib_dl_dlopen=yes
19176
echo "$as_me: failed program was:" >&5
19177
sed 's/^/| /' conftest.$ac_ext >&5
19179
ac_cv_lib_dl_dlopen=no
19181
rm -f conftest.err conftest.$ac_objext \
19182
conftest$ac_exeext conftest.$ac_ext
19183
LIBS=$ac_check_lib_save_LIBS
19185
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19186
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19187
if test $ac_cv_lib_dl_dlopen = yes; then
19188
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19190
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19191
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19192
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19193
echo $ECHO_N "(cached) $ECHO_C" >&6
19195
ac_check_lib_save_LIBS=$LIBS
19196
LIBS="-lsvld $LIBS"
19197
cat >conftest.$ac_ext <<_ACEOF
19200
cat confdefs.h >>conftest.$ac_ext
19201
cat >>conftest.$ac_ext <<_ACEOF
19202
/* end confdefs.h. */
19204
/* Override any gcc2 internal prototype to avoid an error. */
19208
/* We use char because int might match the return type of a gcc2
19209
builtin and then its argument prototype would still apply. */
19219
rm -f conftest.$ac_objext conftest$ac_exeext
19220
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19221
(eval $ac_link) 2>conftest.er1
19223
grep -v '^ *+' conftest.er1 >conftest.err
19225
cat conftest.err >&5
19226
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227
(exit $ac_status); } &&
19228
{ ac_try='test -z "$ac_c_werror_flag"
19229
|| test ! -s conftest.err'
19230
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19231
(eval $ac_try) 2>&5
19233
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234
(exit $ac_status); }; } &&
19235
{ ac_try='test -s conftest$ac_exeext'
19236
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19237
(eval $ac_try) 2>&5
19239
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240
(exit $ac_status); }; }; then
19241
ac_cv_lib_svld_dlopen=yes
19243
echo "$as_me: failed program was:" >&5
19244
sed 's/^/| /' conftest.$ac_ext >&5
19246
ac_cv_lib_svld_dlopen=no
19248
rm -f conftest.err conftest.$ac_objext \
19249
conftest$ac_exeext conftest.$ac_ext
19250
LIBS=$ac_check_lib_save_LIBS
19252
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19253
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19254
if test $ac_cv_lib_svld_dlopen = yes; then
19255
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19257
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19258
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19259
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19260
echo $ECHO_N "(cached) $ECHO_C" >&6
19262
ac_check_lib_save_LIBS=$LIBS
19264
cat >conftest.$ac_ext <<_ACEOF
19267
cat confdefs.h >>conftest.$ac_ext
19268
cat >>conftest.$ac_ext <<_ACEOF
19269
/* end confdefs.h. */
19271
/* Override any gcc2 internal prototype to avoid an error. */
19275
/* We use char because int might match the return type of a gcc2
19276
builtin and then its argument prototype would still apply. */
19286
rm -f conftest.$ac_objext conftest$ac_exeext
19287
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19288
(eval $ac_link) 2>conftest.er1
19290
grep -v '^ *+' conftest.er1 >conftest.err
19292
cat conftest.err >&5
19293
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294
(exit $ac_status); } &&
19295
{ ac_try='test -z "$ac_c_werror_flag"
19296
|| test ! -s conftest.err'
19297
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19298
(eval $ac_try) 2>&5
19300
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301
(exit $ac_status); }; } &&
19302
{ ac_try='test -s conftest$ac_exeext'
19303
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19304
(eval $ac_try) 2>&5
19306
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307
(exit $ac_status); }; }; then
19308
ac_cv_lib_dld_dld_link=yes
19310
echo "$as_me: failed program was:" >&5
19311
sed 's/^/| /' conftest.$ac_ext >&5
19313
ac_cv_lib_dld_dld_link=no
19315
rm -f conftest.err conftest.$ac_objext \
19316
conftest$ac_exeext conftest.$ac_ext
19317
LIBS=$ac_check_lib_save_LIBS
19319
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19320
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19321
if test $ac_cv_lib_dld_dld_link = yes; then
19322
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19343
if test "x$lt_cv_dlopen" != xno; then
19349
case $lt_cv_dlopen in
19351
save_CPPFLAGS="$CPPFLAGS"
19352
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19354
save_LDFLAGS="$LDFLAGS"
19355
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19358
LIBS="$lt_cv_dlopen_libs $LIBS"
19360
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19361
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19362
if test "${lt_cv_dlopen_self+set}" = set; then
19363
echo $ECHO_N "(cached) $ECHO_C" >&6
19365
if test "$cross_compiling" = yes; then :
19366
lt_cv_dlopen_self=cross
19368
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19369
lt_status=$lt_dlunknown
19370
cat > conftest.$ac_ext <<EOF
19371
#line __oline__ "configure"
19372
#include "confdefs.h"
19381
# define LT_DLGLOBAL RTLD_GLOBAL
19384
# define LT_DLGLOBAL DL_GLOBAL
19386
# define LT_DLGLOBAL 0
19390
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19391
find out it does not work in some platform. */
19392
#ifndef LT_DLLAZY_OR_NOW
19394
# define LT_DLLAZY_OR_NOW RTLD_LAZY
19397
# define LT_DLLAZY_OR_NOW DL_LAZY
19400
# define LT_DLLAZY_OR_NOW RTLD_NOW
19403
# define LT_DLLAZY_OR_NOW DL_NOW
19405
# define LT_DLLAZY_OR_NOW 0
19413
extern "C" void exit (int);
19416
void fnord() { int i=42;}
19419
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19420
int status = $lt_dlunknown;
19424
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19425
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19426
/* dlclose (self); */
19432
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19433
(eval $ac_link) 2>&5
19435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19437
(./conftest; exit; ) 2>/dev/null
19439
case x$lt_status in
19440
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19441
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19442
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19445
# compilation failed
19446
lt_cv_dlopen_self=no
19453
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19454
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19456
if test "x$lt_cv_dlopen_self" = xyes; then
19457
LDFLAGS="$LDFLAGS $link_static_flag"
19458
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19459
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19460
if test "${lt_cv_dlopen_self_static+set}" = set; then
19461
echo $ECHO_N "(cached) $ECHO_C" >&6
19463
if test "$cross_compiling" = yes; then :
19464
lt_cv_dlopen_self_static=cross
19466
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19467
lt_status=$lt_dlunknown
19468
cat > conftest.$ac_ext <<EOF
19469
#line __oline__ "configure"
19470
#include "confdefs.h"
19479
# define LT_DLGLOBAL RTLD_GLOBAL
19482
# define LT_DLGLOBAL DL_GLOBAL
19484
# define LT_DLGLOBAL 0
19488
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19489
find out it does not work in some platform. */
19490
#ifndef LT_DLLAZY_OR_NOW
19492
# define LT_DLLAZY_OR_NOW RTLD_LAZY
19495
# define LT_DLLAZY_OR_NOW DL_LAZY
19498
# define LT_DLLAZY_OR_NOW RTLD_NOW
19501
# define LT_DLLAZY_OR_NOW DL_NOW
19503
# define LT_DLLAZY_OR_NOW 0
19511
extern "C" void exit (int);
19514
void fnord() { int i=42;}
19517
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19518
int status = $lt_dlunknown;
19522
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19523
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19524
/* dlclose (self); */
19530
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19531
(eval $ac_link) 2>&5
19533
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19535
(./conftest; exit; ) 2>/dev/null
19537
case x$lt_status in
19538
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19539
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19540
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19543
# compilation failed
19544
lt_cv_dlopen_self_static=no
19551
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19552
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19555
CPPFLAGS="$save_CPPFLAGS"
19556
LDFLAGS="$save_LDFLAGS"
19561
case $lt_cv_dlopen_self in
19562
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19563
*) enable_dlopen_self=unknown ;;
19566
case $lt_cv_dlopen_self_static in
19567
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19568
*) enable_dlopen_self_static=unknown ;;
19573
# The else clause should only fire when bootstrapping the
19574
# libtool distribution, otherwise you forgot to ship ltmain.sh
19575
# with your package, and you will get complaints that there are
19576
# no rules to generate ltmain.sh.
19577
if test -f "$ltmain"; then
19578
# See if we are running on zsh, and set the options which allow our commands through
19579
# without removal of \ escapes.
19580
if test -n "${ZSH_VERSION+set}" ; then
19581
setopt NO_GLOB_SUBST
19583
# Now quote all the things that may contain metacharacters while being
19584
# careful not to overquote the AC_SUBSTed values. We take copies of the
19585
# variables and quote the copies for generation of the libtool script.
19586
for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
19588
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19589
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19590
deplibs_check_method reload_flag reload_cmds need_locks \
19591
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19592
lt_cv_sys_global_symbol_to_c_name_address \
19593
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19594
old_postinstall_cmds old_postuninstall_cmds \
19598
lt_prog_compiler_wl_GCJ \
19599
lt_prog_compiler_pic_GCJ \
19600
lt_prog_compiler_static_GCJ \
19601
lt_prog_compiler_no_builtin_flag_GCJ \
19602
export_dynamic_flag_spec_GCJ \
19603
thread_safe_flag_spec_GCJ \
19604
whole_archive_flag_spec_GCJ \
19605
enable_shared_with_static_runtimes_GCJ \
19606
old_archive_cmds_GCJ \
19607
old_archive_from_new_cmds_GCJ \
19608
predep_objects_GCJ \
19609
postdep_objects_GCJ \
19612
compiler_lib_search_path_GCJ \
19614
archive_expsym_cmds_GCJ \
19615
postinstall_cmds_GCJ \
19616
postuninstall_cmds_GCJ \
19617
old_archive_from_expsyms_cmds_GCJ \
19618
allow_undefined_flag_GCJ \
19619
no_undefined_flag_GCJ \
19620
export_symbols_cmds_GCJ \
19621
hardcode_libdir_flag_spec_GCJ \
19622
hardcode_libdir_flag_spec_ld_GCJ \
19623
hardcode_libdir_separator_GCJ \
19624
hardcode_automatic_GCJ \
19626
module_expsym_cmds_GCJ \
19627
lt_cv_prog_compiler_c_o_GCJ \
19628
exclude_expsyms_GCJ \
19629
include_expsyms_GCJ; do
19632
old_archive_cmds_GCJ | \
19633
old_archive_from_new_cmds_GCJ | \
19634
archive_cmds_GCJ | \
19635
archive_expsym_cmds_GCJ | \
19636
module_cmds_GCJ | \
19637
module_expsym_cmds_GCJ | \
19638
old_archive_from_expsyms_cmds_GCJ | \
19639
export_symbols_cmds_GCJ | \
19640
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19641
postinstall_cmds | postuninstall_cmds | \
19642
old_postinstall_cmds | old_postuninstall_cmds | \
19643
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19644
# Double-quote double-evaled strings.
19645
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19648
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19654
*'\$0 --fallback-echo"')
19655
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19661
cat <<__EOF__ >> "$cfgfile"
19662
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19664
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19666
# Shell to use when invoking shell scripts.
19669
# Whether or not to build shared libraries.
19670
build_libtool_libs=$enable_shared
19672
# Whether or not to build static libraries.
19673
build_old_libs=$enable_static
19675
# Whether or not to add -lc for building shared libraries.
19676
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19678
# Whether or not to disallow shared libs when runtime libs are static
19679
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19681
# Whether or not to optimize for fast installation.
19682
fast_install=$enable_fast_install
19685
host_alias=$host_alias
19689
# The build system.
19690
build_alias=$build_alias
19694
# An echo program that does not interpret backslashes.
19699
AR_FLAGS=$lt_AR_FLAGS
19704
# A language-specific compiler.
19705
CC=$lt_compiler_GCJ
19707
# Is the compiler the GNU C compiler?
19713
# The linker used to build libraries.
19716
# Whether we need hard or soft links.
19719
# A BSD-compatible nm program.
19722
# A symbol stripping program
19725
# Used to examine libraries when file_magic_cmd begins "file"
19726
MAGIC_CMD=$MAGIC_CMD
19728
# Used on cygwin: DLL creation program.
19731
# Used on cygwin: object dumper.
19734
# Used on cygwin: assembler.
19737
# The name of the directory that contains temporary libtool files.
19740
# How to create reloadable object files.
19741
reload_flag=$lt_reload_flag
19742
reload_cmds=$lt_reload_cmds
19744
# How to pass a linker flag through the compiler.
19745
wl=$lt_lt_prog_compiler_wl_GCJ
19747
# Object file suffix (normally "o").
19748
objext="$ac_objext"
19750
# Old archive suffix (normally "a").
19753
# Shared library suffix (normally ".so").
19754
shrext_cmds='$shrext_cmds'
19756
# Executable file suffix (normally "").
19759
# Additional compiler flags for building library objects.
19760
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19763
# What is the maximum length of a command?
19764
max_cmd_len=$lt_cv_sys_max_cmd_len
19766
# Does compiler simultaneously support -c and -o options?
19767
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19769
# Must we lock files when doing compilation ?
19770
need_locks=$lt_need_locks
19772
# Do we need the lib prefix for modules?
19773
need_lib_prefix=$need_lib_prefix
19775
# Do we need a version for libraries?
19776
need_version=$need_version
19778
# Whether dlopen is supported.
19779
dlopen_support=$enable_dlopen
19781
# Whether dlopen of programs is supported.
19782
dlopen_self=$enable_dlopen_self
19784
# Whether dlopen of statically linked programs is supported.
19785
dlopen_self_static=$enable_dlopen_self_static
19787
# Compiler flag to prevent dynamic linking.
19788
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19790
# Compiler flag to turn off builtin functions.
19791
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19793
# Compiler flag to allow reflexive dlopens.
19794
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19796
# Compiler flag to generate shared objects directly from archives.
19797
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19799
# Compiler flag to generate thread-safe objects.
19800
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19802
# Library versioning type.
19803
version_type=$version_type
19805
# Format of library name prefix.
19806
libname_spec=$lt_libname_spec
19808
# List of archive names. First name is the real one, the rest are links.
19809
# The last name is the one that the linker finds with -lNAME.
19810
library_names_spec=$lt_library_names_spec
19812
# The coded name of the library, if different from the real name.
19813
soname_spec=$lt_soname_spec
19815
# Commands used to build and install an old-style archive.
19817
old_archive_cmds=$lt_old_archive_cmds_GCJ
19818
old_postinstall_cmds=$lt_old_postinstall_cmds
19819
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19821
# Create an old-style archive from a shared archive.
19822
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19824
# Create a temporary old-style archive to link instead of a shared archive.
19825
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19827
# Commands used to build and install a shared archive.
19828
archive_cmds=$lt_archive_cmds_GCJ
19829
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19830
postinstall_cmds=$lt_postinstall_cmds
19831
postuninstall_cmds=$lt_postuninstall_cmds
19833
# Commands used to build a loadable module (assumed same as above if empty)
19834
module_cmds=$lt_module_cmds_GCJ
19835
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19837
# Commands to strip libraries.
19838
old_striplib=$lt_old_striplib
19839
striplib=$lt_striplib
19841
# Dependencies to place before the objects being linked to create a
19843
predep_objects=$lt_predep_objects_GCJ
19845
# Dependencies to place after the objects being linked to create a
19847
postdep_objects=$lt_postdep_objects_GCJ
19849
# Dependencies to place before the objects being linked to create a
19851
predeps=$lt_predeps_GCJ
19853
# Dependencies to place after the objects being linked to create a
19855
postdeps=$lt_postdeps_GCJ
19857
# The library search path used internally by the compiler when linking
19858
# a shared library.
19859
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19861
# Method to check whether dependent libraries are shared objects.
19862
deplibs_check_method=$lt_deplibs_check_method
19864
# Command to use when deplibs_check_method == file_magic.
19865
file_magic_cmd=$lt_file_magic_cmd
19867
# Flag that allows shared libraries with undefined symbols to be built.
19868
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19870
# Flag that forces no undefined symbols.
19871
no_undefined_flag=$lt_no_undefined_flag_GCJ
19873
# Commands used to finish a libtool library installation in a directory.
19874
finish_cmds=$lt_finish_cmds
19876
# Same as above, but a single script fragment to be evaled but not shown.
19877
finish_eval=$lt_finish_eval
19879
# Take the output of nm and produce a listing of raw symbols and C names.
19880
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19882
# Transform the output of nm in a proper C declaration
19883
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19885
# Transform the output of nm in a C name address pair
19886
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19888
# This is the shared library runtime path variable.
19889
runpath_var=$runpath_var
19891
# This is the shared library path variable.
19892
shlibpath_var=$shlibpath_var
19894
# Is shlibpath searched before the hard-coded library search path?
19895
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19897
# How to hardcode a shared library path into an executable.
19898
hardcode_action=$hardcode_action_GCJ
19900
# Whether we should hardcode library paths into libraries.
19901
hardcode_into_libs=$hardcode_into_libs
19903
# Flag to hardcode \$libdir into a binary during linking.
19904
# This must work even if \$libdir does not exist.
19905
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19907
# If ld is used when linking, flag to hardcode \$libdir into
19908
# a binary during linking. This must work even if \$libdir does
19910
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19912
# Whether we need a single -rpath flag with a separated argument.
19913
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19915
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19916
# resulting binary.
19917
hardcode_direct=$hardcode_direct_GCJ
19919
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19920
# resulting binary.
19921
hardcode_minus_L=$hardcode_minus_L_GCJ
19923
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19924
# the resulting binary.
19925
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19927
# Set to yes if building a shared library automatically hardcodes DIR into the library
19928
# and all subsequent libraries and executables linked against it.
19929
hardcode_automatic=$hardcode_automatic_GCJ
19931
# Variables whose values should be saved in libtool wrapper scripts and
19932
# restored at relink time.
19933
variables_saved_for_relink="$variables_saved_for_relink"
19935
# Whether libtool must link a program against all its dependency libraries.
19936
link_all_deplibs=$link_all_deplibs_GCJ
19938
# Compile-time system search path for libraries
19939
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19941
# Run-time system search path for libraries
19942
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19944
# Fix the shell variable \$srcfile for the compiler.
19945
fix_srcfile_path="$fix_srcfile_path_GCJ"
19947
# Set to yes if exported symbols are required.
19948
always_export_symbols=$always_export_symbols_GCJ
19950
# The commands to list exported symbols.
19951
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19953
# The commands to extract the exported symbol list from a shared archive.
19954
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19956
# Symbols that should not be listed in the preloaded symbols.
19957
exclude_expsyms=$lt_exclude_expsyms_GCJ
19959
# Symbols that must always be exported.
19960
include_expsyms=$lt_include_expsyms_GCJ
19962
# ### END LIBTOOL TAG CONFIG: $tagname
19968
# If there is no Makefile yet, we rely on a make rule to execute
19969
# `config.status --recheck' to rerun these tests and create the
19970
# libtool script then.
19971
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19972
if test -f "$ltmain_in"; then
19973
test -f Makefile && make "$ltmain"
19979
ac_cpp='$CPP $CPPFLAGS'
19980
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19981
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19982
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19995
# Source file extension for RC test sources.
19998
# Object file extension for compiled RC test sources.
20002
# Code to be used in simple compile tests
20003
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20005
# Code to be used in simple link tests
20006
lt_simple_link_test_code="$lt_simple_compile_test_code"
20008
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20010
# If no C compiler was specified, use CC.
20013
# Allow CC to be a program name with arguments.
20017
# Allow CC to be a program name with arguments.
20022
lt_cv_prog_compiler_c_o_RC=yes
20024
# The else clause should only fire when bootstrapping the
20025
# libtool distribution, otherwise you forgot to ship ltmain.sh
20026
# with your package, and you will get complaints that there are
20027
# no rules to generate ltmain.sh.
20028
if test -f "$ltmain"; then
20029
# See if we are running on zsh, and set the options which allow our commands through
20030
# without removal of \ escapes.
20031
if test -n "${ZSH_VERSION+set}" ; then
20032
setopt NO_GLOB_SUBST
20034
# Now quote all the things that may contain metacharacters while being
20035
# careful not to overquote the AC_SUBSTed values. We take copies of the
20036
# variables and quote the copies for generation of the libtool script.
20037
for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
20039
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20040
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20041
deplibs_check_method reload_flag reload_cmds need_locks \
20042
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20043
lt_cv_sys_global_symbol_to_c_name_address \
20044
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20045
old_postinstall_cmds old_postuninstall_cmds \
20049
lt_prog_compiler_wl_RC \
20050
lt_prog_compiler_pic_RC \
20051
lt_prog_compiler_static_RC \
20052
lt_prog_compiler_no_builtin_flag_RC \
20053
export_dynamic_flag_spec_RC \
20054
thread_safe_flag_spec_RC \
20055
whole_archive_flag_spec_RC \
20056
enable_shared_with_static_runtimes_RC \
20057
old_archive_cmds_RC \
20058
old_archive_from_new_cmds_RC \
20059
predep_objects_RC \
20060
postdep_objects_RC \
20063
compiler_lib_search_path_RC \
20065
archive_expsym_cmds_RC \
20066
postinstall_cmds_RC \
20067
postuninstall_cmds_RC \
20068
old_archive_from_expsyms_cmds_RC \
20069
allow_undefined_flag_RC \
20070
no_undefined_flag_RC \
20071
export_symbols_cmds_RC \
20072
hardcode_libdir_flag_spec_RC \
20073
hardcode_libdir_flag_spec_ld_RC \
20074
hardcode_libdir_separator_RC \
20075
hardcode_automatic_RC \
20077
module_expsym_cmds_RC \
20078
lt_cv_prog_compiler_c_o_RC \
20079
exclude_expsyms_RC \
20080
include_expsyms_RC; do
20083
old_archive_cmds_RC | \
20084
old_archive_from_new_cmds_RC | \
20085
archive_cmds_RC | \
20086
archive_expsym_cmds_RC | \
20088
module_expsym_cmds_RC | \
20089
old_archive_from_expsyms_cmds_RC | \
20090
export_symbols_cmds_RC | \
20091
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20092
postinstall_cmds | postuninstall_cmds | \
20093
old_postinstall_cmds | old_postuninstall_cmds | \
20094
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20095
# Double-quote double-evaled strings.
20096
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20099
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20105
*'\$0 --fallback-echo"')
20106
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20112
cat <<__EOF__ >> "$cfgfile"
20113
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20115
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20117
# Shell to use when invoking shell scripts.
20120
# Whether or not to build shared libraries.
20121
build_libtool_libs=$enable_shared
20123
# Whether or not to build static libraries.
20124
build_old_libs=$enable_static
20126
# Whether or not to add -lc for building shared libraries.
20127
build_libtool_need_lc=$archive_cmds_need_lc_RC
20129
# Whether or not to disallow shared libs when runtime libs are static
20130
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20132
# Whether or not to optimize for fast installation.
20133
fast_install=$enable_fast_install
20136
host_alias=$host_alias
20140
# The build system.
20141
build_alias=$build_alias
20145
# An echo program that does not interpret backslashes.
20150
AR_FLAGS=$lt_AR_FLAGS
20155
# A language-specific compiler.
20158
# Is the compiler the GNU C compiler?
20164
# The linker used to build libraries.
20167
# Whether we need hard or soft links.
20170
# A BSD-compatible nm program.
20173
# A symbol stripping program
20176
# Used to examine libraries when file_magic_cmd begins "file"
20177
MAGIC_CMD=$MAGIC_CMD
20179
# Used on cygwin: DLL creation program.
20182
# Used on cygwin: object dumper.
20185
# Used on cygwin: assembler.
20188
# The name of the directory that contains temporary libtool files.
20191
# How to create reloadable object files.
20192
reload_flag=$lt_reload_flag
20193
reload_cmds=$lt_reload_cmds
20195
# How to pass a linker flag through the compiler.
20196
wl=$lt_lt_prog_compiler_wl_RC
20198
# Object file suffix (normally "o").
20199
objext="$ac_objext"
20201
# Old archive suffix (normally "a").
20204
# Shared library suffix (normally ".so").
20205
shrext_cmds='$shrext_cmds'
20207
# Executable file suffix (normally "").
20210
# Additional compiler flags for building library objects.
20211
pic_flag=$lt_lt_prog_compiler_pic_RC
20214
# What is the maximum length of a command?
20215
max_cmd_len=$lt_cv_sys_max_cmd_len
20217
# Does compiler simultaneously support -c and -o options?
20218
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20220
# Must we lock files when doing compilation ?
20221
need_locks=$lt_need_locks
20223
# Do we need the lib prefix for modules?
20224
need_lib_prefix=$need_lib_prefix
20226
# Do we need a version for libraries?
20227
need_version=$need_version
20229
# Whether dlopen is supported.
20230
dlopen_support=$enable_dlopen
20232
# Whether dlopen of programs is supported.
20233
dlopen_self=$enable_dlopen_self
20235
# Whether dlopen of statically linked programs is supported.
20236
dlopen_self_static=$enable_dlopen_self_static
20238
# Compiler flag to prevent dynamic linking.
20239
link_static_flag=$lt_lt_prog_compiler_static_RC
20241
# Compiler flag to turn off builtin functions.
20242
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20244
# Compiler flag to allow reflexive dlopens.
20245
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20247
# Compiler flag to generate shared objects directly from archives.
20248
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20250
# Compiler flag to generate thread-safe objects.
20251
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20253
# Library versioning type.
20254
version_type=$version_type
20256
# Format of library name prefix.
20257
libname_spec=$lt_libname_spec
20259
# List of archive names. First name is the real one, the rest are links.
20260
# The last name is the one that the linker finds with -lNAME.
20261
library_names_spec=$lt_library_names_spec
20263
# The coded name of the library, if different from the real name.
20264
soname_spec=$lt_soname_spec
20266
# Commands used to build and install an old-style archive.
20268
old_archive_cmds=$lt_old_archive_cmds_RC
20269
old_postinstall_cmds=$lt_old_postinstall_cmds
20270
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20272
# Create an old-style archive from a shared archive.
20273
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20275
# Create a temporary old-style archive to link instead of a shared archive.
20276
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20278
# Commands used to build and install a shared archive.
20279
archive_cmds=$lt_archive_cmds_RC
20280
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20281
postinstall_cmds=$lt_postinstall_cmds
20282
postuninstall_cmds=$lt_postuninstall_cmds
20284
# Commands used to build a loadable module (assumed same as above if empty)
20285
module_cmds=$lt_module_cmds_RC
20286
module_expsym_cmds=$lt_module_expsym_cmds_RC
20288
# Commands to strip libraries.
20289
old_striplib=$lt_old_striplib
20290
striplib=$lt_striplib
20292
# Dependencies to place before the objects being linked to create a
20294
predep_objects=$lt_predep_objects_RC
20296
# Dependencies to place after the objects being linked to create a
20298
postdep_objects=$lt_postdep_objects_RC
20300
# Dependencies to place before the objects being linked to create a
20302
predeps=$lt_predeps_RC
20304
# Dependencies to place after the objects being linked to create a
20306
postdeps=$lt_postdeps_RC
20308
# The library search path used internally by the compiler when linking
20309
# a shared library.
20310
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20312
# Method to check whether dependent libraries are shared objects.
20313
deplibs_check_method=$lt_deplibs_check_method
20315
# Command to use when deplibs_check_method == file_magic.
20316
file_magic_cmd=$lt_file_magic_cmd
20318
# Flag that allows shared libraries with undefined symbols to be built.
20319
allow_undefined_flag=$lt_allow_undefined_flag_RC
20321
# Flag that forces no undefined symbols.
20322
no_undefined_flag=$lt_no_undefined_flag_RC
20324
# Commands used to finish a libtool library installation in a directory.
20325
finish_cmds=$lt_finish_cmds
20327
# Same as above, but a single script fragment to be evaled but not shown.
20328
finish_eval=$lt_finish_eval
20330
# Take the output of nm and produce a listing of raw symbols and C names.
20331
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20333
# Transform the output of nm in a proper C declaration
20334
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20336
# Transform the output of nm in a C name address pair
20337
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20339
# This is the shared library runtime path variable.
20340
runpath_var=$runpath_var
20342
# This is the shared library path variable.
20343
shlibpath_var=$shlibpath_var
20345
# Is shlibpath searched before the hard-coded library search path?
20346
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20348
# How to hardcode a shared library path into an executable.
20349
hardcode_action=$hardcode_action_RC
20351
# Whether we should hardcode library paths into libraries.
20352
hardcode_into_libs=$hardcode_into_libs
20354
# Flag to hardcode \$libdir into a binary during linking.
20355
# This must work even if \$libdir does not exist.
20356
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20358
# If ld is used when linking, flag to hardcode \$libdir into
20359
# a binary during linking. This must work even if \$libdir does
20361
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20363
# Whether we need a single -rpath flag with a separated argument.
20364
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20366
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20367
# resulting binary.
20368
hardcode_direct=$hardcode_direct_RC
20370
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20371
# resulting binary.
20372
hardcode_minus_L=$hardcode_minus_L_RC
20374
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20375
# the resulting binary.
20376
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20378
# Set to yes if building a shared library automatically hardcodes DIR into the library
20379
# and all subsequent libraries and executables linked against it.
20380
hardcode_automatic=$hardcode_automatic_RC
20382
# Variables whose values should be saved in libtool wrapper scripts and
20383
# restored at relink time.
20384
variables_saved_for_relink="$variables_saved_for_relink"
20386
# Whether libtool must link a program against all its dependency libraries.
20387
link_all_deplibs=$link_all_deplibs_RC
20389
# Compile-time system search path for libraries
20390
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20392
# Run-time system search path for libraries
20393
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20395
# Fix the shell variable \$srcfile for the compiler.
20396
fix_srcfile_path="$fix_srcfile_path_RC"
20398
# Set to yes if exported symbols are required.
20399
always_export_symbols=$always_export_symbols_RC
20401
# The commands to list exported symbols.
20402
export_symbols_cmds=$lt_export_symbols_cmds_RC
20404
# The commands to extract the exported symbol list from a shared archive.
20405
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20407
# Symbols that should not be listed in the preloaded symbols.
20408
exclude_expsyms=$lt_exclude_expsyms_RC
20410
# Symbols that must always be exported.
20411
include_expsyms=$lt_include_expsyms_RC
20413
# ### END LIBTOOL TAG CONFIG: $tagname
20419
# If there is no Makefile yet, we rely on a make rule to execute
20420
# `config.status --recheck' to rerun these tests and create the
20421
# libtool script then.
20422
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20423
if test -f "$ltmain_in"; then
20424
test -f Makefile && make "$ltmain"
20430
ac_cpp='$CPP $CPPFLAGS'
20431
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20432
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20433
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20440
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20441
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20442
{ (exit 1); exit 1; }; }
20446
# Append the new tag name to the list of available tags.
20447
if test -n "$tagname" ; then
20448
available_tags="$available_tags $tagname"
20454
# Now substitute the updated list of available tags.
20455
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20456
mv "${ofile}T" "$ofile"
20460
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20461
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20462
{ (exit 1); exit 1; }; }
20468
# This can be used to rebuild libtool when needed
20469
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20471
# Always use our own libtool.
20472
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20474
# Prevent multiple expansion
20496
TCSD_DEFAULT_PORT=30003
20500
CFLAGS="$CFLAGS -I../include -W -Wall -Werror -Wno-unused-parameter -DTCSD_DEFAULT_PORT=${TCSD_DEFAULT_PORT} -DTSS_VER_MAJOR=${TSS_VER_MAJOR} -DTSS_VER_MINOR=${TSS_VER_MINOR}"
20501
#CFLAGS="$CFLAGS -I../include -std=c99 -pedantic -W -Wall"
20502
KERNEL_VERSION=`uname -r`
20505
# When we build the rpms, prefix will be /usr. This'll do some things that make sense,
20506
# like put our sbin stuff in /usr/sbin and our library in /usr/lib. It'll do some other
20507
# things that don't make sense like put our config file in /usr/etc. So, I'll just hack
20508
# it here. If the --prefix option isn't specified during configure, let it all go to
20509
# /usr/local, even /usr/local/etc. :-P
20510
if test x"${prefix}" == x"/usr"; then
20512
localstatedir="/var"
20513
mandir="/usr/share/man"
20514
elif test x"${prefix}" == x"NONE"; then
20515
localstatedir="/usr/local/var"
20518
ac_config_files="$ac_config_files dist/tcsd.conf dist/fedora/trousers.spec dist/trousers.spec Makefile src/Makefile src/include/Makefile src/tcs/Makefile src/tddl/Makefile src/tspi/Makefile src/trspi/Makefile src/tcsd/Makefile tools/Makefile man/man8/tcsd.8 man/man5/tcsd.conf.5 dist/Makefile man/Makefile man/man3/Makefile man/man5/Makefile man/man8/Makefile"
20519
cat >confcache <<\_ACEOF
20520
# This file is a shell script that caches the results of configure
20521
# tests run on this system so they can be shared between configure
20522
# scripts and configure runs, see configure's option --config-cache.
20523
# It is not useful on other systems. If it contains results you don't
20524
# want to keep, you may remove or edit it.
20526
# config.status only pays attention to the cache file if you give it
20527
# the --recheck option to rerun configure.
20529
# `ac_cv_env_foo' variables (set or unset) will be overridden when
20530
# loading this file, other *unset* `ac_cv_foo' will be assigned the
20531
# following values.
20535
# The following way of writing the cache mishandles newlines in values,
20536
# but we know of no workaround that is simple, portable, and efficient.
20537
# So, don't put newlines in cache variables' values.
20538
# Ultrix sh set writes to stderr and can't be redirected directly,
20539
# and sets the high bit in the cache file unless we assign to the vars.
20542
case `(ac_space=' '; set | grep ac_space) 2>&1` in
20544
# `set' does not quote correctly, so add quotes (double-quote
20545
# substitution turns \\\\ into \\, and sed turns \\ into \).
20548
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20551
# `set' quotes correctly as required by POSIX, so do not add quotes.
20553
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20560
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20562
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20564
if diff $cache_file confcache >/dev/null 2>&1; then :; else
20565
if test -w $cache_file; then
20566
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20567
cat confcache >$cache_file
20569
echo "not updating unwritable cache $cache_file"
20574
test "x$prefix" = xNONE && prefix=$ac_default_prefix
20575
# Let make expand exec_prefix.
20576
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20578
# VPATH may cause trouble with some makes, so we remove $(srcdir),
20579
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20580
# trailing colons and then remove the whole line if VPATH becomes empty
20581
# (actually we leave an empty line to preserve line numbers).
20582
if test "x$srcdir" = x.; then
20583
ac_vpsub='/^[ ]*VPATH[ ]*=/{
20584
s/:*\$(srcdir):*/:/;
20585
s/:*\${srcdir}:*/:/;
20587
s/^\([^=]*=[ ]*\):*/\1/;
20593
# Transform confdefs.h into DEFS.
20594
# Protect against shell expansion while executing Makefile rules.
20595
# Protect against Makefile macro expansion.
20597
# If the first sed substitution is executed (which looks for macros that
20598
# take arguments), then we branch to the quote section. Otherwise,
20599
# look for a macro that doesn't take arguments.
20600
cat >confdef2opt.sed <<\_ACEOF
20603
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
20605
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
20609
s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
20615
# We use echo to avoid assuming a particular line-breaking character.
20616
# The extra dot is to prevent the shell from consuming trailing
20617
# line-breaks from the sub-command output. A line-break within
20618
# single-quotes doesn't work because, if this script is created in a
20619
# platform that uses two characters for line-breaks (e.g., DOS), tr
20621
ac_LF_and_DOT=`echo; echo .`
20622
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
20623
rm -f confdef2opt.sed
20628
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
20629
# 1. Remove the extension, and $U if already installed.
20630
ac_i=`echo "$ac_i" |
20631
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20633
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20634
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20636
LIB@&t@OBJS=$ac_libobjs
20638
LTLIBOBJS=$ac_ltlibobjs
20641
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20642
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20643
Usually this means the macro was only invoked conditionally." >&5
20644
echo "$as_me: error: conditional \"AMDEP\" was never defined.
20645
Usually this means the macro was only invoked conditionally." >&2;}
20646
{ (exit 1); exit 1; }; }
20648
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20649
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20650
Usually this means the macro was only invoked conditionally." >&5
20651
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20652
Usually this means the macro was only invoked conditionally." >&2;}
20653
{ (exit 1); exit 1; }; }
20655
if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
20656
{ { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK\" was never defined.
20657
Usually this means the macro was only invoked conditionally." >&5
20658
echo "$as_me: error: conditional \"HAVE_GTK\" was never defined.
20659
Usually this means the macro was only invoked conditionally." >&2;}
20660
{ (exit 1); exit 1; }; }
20662
if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
20663
{ { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK\" was never defined.
20664
Usually this means the macro was only invoked conditionally." >&5
20665
echo "$as_me: error: conditional \"HAVE_GTK\" was never defined.
20666
Usually this means the macro was only invoked conditionally." >&2;}
20667
{ (exit 1); exit 1; }; }
20669
if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
20670
{ { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK\" was never defined.
20671
Usually this means the macro was only invoked conditionally." >&5
20672
echo "$as_me: error: conditional \"HAVE_GTK\" was never defined.
20673
Usually this means the macro was only invoked conditionally." >&2;}
20674
{ (exit 1); exit 1; }; }
20676
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20677
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20678
Usually this means the macro was only invoked conditionally." >&5
20679
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20680
Usually this means the macro was only invoked conditionally." >&2;}
20681
{ (exit 1); exit 1; }; }
20683
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20684
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20685
Usually this means the macro was only invoked conditionally." >&5
20686
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20687
Usually this means the macro was only invoked conditionally." >&2;}
20688
{ (exit 1); exit 1; }; }
20691
: ${CONFIG_STATUS=./config.status}
20692
ac_clean_files_save=$ac_clean_files
20693
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20694
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20695
echo "$as_me: creating $CONFIG_STATUS" >&6;}
20696
cat >$CONFIG_STATUS <<_ACEOF
20698
# Generated by $as_me.
20699
# Run this file to recreate the current configuration.
20700
# Compiler output produced by configure, useful for debugging
20701
# configure, is in config.log if it exists.
20704
ac_cs_recheck=false
20706
SHELL=\${CONFIG_SHELL-$SHELL}
20709
cat >>$CONFIG_STATUS <<\_ACEOF
20710
## --------------------- ##
20711
## M4sh Initialization. ##
20712
## --------------------- ##
20714
# Be Bourne compatible
20715
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20718
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20719
# is contrary to our usage. Disable this feature.
20720
alias -g '${1+"$@"}'='"$@"'
20721
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20724
DUALCASE=1; export DUALCASE # for MKS sh
20726
# Support unset when possible.
20727
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20734
# Work around bugs in pre-3.0 UWIN ksh.
20735
$as_unset ENV MAIL MAILPATH
20742
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20743
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20744
LC_TELEPHONE LC_TIME
20746
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20747
eval $as_var=C; export $as_var
20753
# Required to use basename.
20754
if expr a : '\(a\)' >/dev/null 2>&1; then
20760
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20761
as_basename=basename
20767
# Name of the executable.
20768
as_me=`$as_basename "$0" ||
20769
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20770
X"$0" : 'X\(//\)$' \| \
20771
X"$0" : 'X\(/\)$' \| \
20772
. : '\(.\)' 2>/dev/null ||
20774
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20775
/^X\/\(\/\/\)$/{ s//\1/; q; }
20776
/^X\/\(\/\).*/{ s//\1/; q; }
20780
# PATH needs CR, and LINENO needs CR and PATH.
20781
# Avoid depending upon Character Ranges.
20782
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20783
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20784
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20785
as_cr_digits='0123456789'
20786
as_cr_alnum=$as_cr_Letters$as_cr_digits
20788
# The user is always right.
20789
if test "${PATH_SEPARATOR+set}" != set; then
20790
echo "#! /bin/sh" >conf$$.sh
20791
echo "exit 0" >>conf$$.sh
20793
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20802
as_lineno_1=$LINENO
20803
as_lineno_2=$LINENO
20804
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20805
test "x$as_lineno_1" != "x$as_lineno_2" &&
20806
test "x$as_lineno_3" = "x$as_lineno_2" || {
20807
# Find who we are. Look in the path if we contain no path at all
20810
*[\\/]* ) as_myself=$0 ;;
20811
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20812
for as_dir in $PATH
20815
test -z "$as_dir" && as_dir=.
20816
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20821
# We did not find ourselves, most probably we were run as `sh COMMAND'
20822
# in which case we are not to be found in the path.
20823
if test "x$as_myself" = x; then
20826
if test ! -f "$as_myself"; then
20827
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20828
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20829
{ (exit 1); exit 1; }; }
20831
case $CONFIG_SHELL in
20833
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20834
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20837
test -z "$as_dir" && as_dir=.
20838
for as_base in sh bash ksh sh5; do
20841
if ("$as_dir/$as_base" -c '
20842
as_lineno_1=$LINENO
20843
as_lineno_2=$LINENO
20844
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20845
test "x$as_lineno_1" != "x$as_lineno_2" &&
20846
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20847
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20848
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20849
CONFIG_SHELL=$as_dir/$as_base
20850
export CONFIG_SHELL
20851
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20859
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20860
# uniformly replaced by the line number. The first 'sed' inserts a
20861
# line-number line before each line; the second 'sed' does the real
20862
# work. The second script uses 'N' to pair each line-number line
20863
# with the numbered line, and appends trailing '-' during
20864
# substitution so that $LINENO is not a special case at line end.
20865
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20866
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20867
sed '=' <$as_myself |
20872
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20875
s,^['$as_cr_digits']*\n,,
20876
' >$as_me.lineno &&
20877
chmod +x $as_me.lineno ||
20878
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20879
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20880
{ (exit 1); exit 1; }; }
20882
# Don't try to exec as it changes $[0], causing all sort of problems
20883
# (the dirname of $[0] is not the place where we might find the
20884
# original and so on. Autoconf is especially sensible to this).
20886
# Exit status is that of the last command.
20891
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20892
*c*,-n*) ECHO_N= ECHO_C='
20894
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20895
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20898
if expr a : '\(a\)' >/dev/null 2>&1; then
20904
rm -f conf$$ conf$$.exe conf$$.file
20906
if ln -s conf$$.file conf$$ 2>/dev/null; then
20907
# We could just check for DJGPP; but this test a) works b) is more generic
20908
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20909
if test -f conf$$.exe; then
20910
# Don't use ln at all; we don't have any links
20915
elif ln conf$$.file conf$$ 2>/dev/null; then
20920
rm -f conf$$ conf$$.exe conf$$.file
20922
if mkdir -p . 2>/dev/null; then
20925
test -d ./-p && rmdir ./-p
20929
as_executable_p="test -f"
20931
# Sed expression to map a string onto a valid CPP name.
20932
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20934
# Sed expression to map a string onto a valid variable name.
20935
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20939
# We need space, tab and new line, in precisely that order.
20949
# Open the log real soon, to keep \$[0] and so on meaningful, and to
20950
# report actual input values of CONFIG_FILES etc. instead of their
20951
# values after options handling. Logging --version etc. is OK.
20955
sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
20956
@%:@@%:@ Running $as_me. @%:@@%:@
20961
This file was extended by trousers $as_me 0.2.9.1, which was
20962
generated by GNU Autoconf 2.59. Invocation command line was
20964
CONFIG_FILES = $CONFIG_FILES
20965
CONFIG_HEADERS = $CONFIG_HEADERS
20966
CONFIG_LINKS = $CONFIG_LINKS
20967
CONFIG_COMMANDS = $CONFIG_COMMANDS
20971
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20975
# Files that config.status was made for.
20976
if test -n "$ac_config_files"; then
20977
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20980
if test -n "$ac_config_headers"; then
20981
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20984
if test -n "$ac_config_links"; then
20985
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20988
if test -n "$ac_config_commands"; then
20989
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20992
cat >>$CONFIG_STATUS <<\_ACEOF
20995
\`$as_me' instantiates files from templates according to the
20996
current configuration.
20998
Usage: $0 [OPTIONS] [FILE]...
21000
-h, --help print this help, then exit
21001
-V, --version print version number, then exit
21002
-q, --quiet do not print progress messages
21003
-d, --debug don't remove temporary files
21004
--recheck update $as_me by reconfiguring in the same conditions
21005
--file=FILE[:TEMPLATE]
21006
instantiate the configuration file FILE
21008
Configuration files:
21011
Configuration commands:
21014
Report bugs to <bug-autoconf@gnu.org>."
21017
cat >>$CONFIG_STATUS <<_ACEOF
21019
trousers config.status 0.2.9.1
21020
configured by $0, generated by GNU Autoconf 2.59,
21021
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21023
Copyright (C) 2003 Free Software Foundation, Inc.
21024
This config.status script is free software; the Free Software Foundation
21025
gives unlimited permission to copy, distribute and modify it."
21030
cat >>$CONFIG_STATUS <<\_ACEOF
21031
# If no file are specified by the user, then we need to provide default
21032
# value. By we need to know if files were specified by the user.
21038
ac_option=`expr "x$1" : 'x\([^=]*\)='`
21039
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21047
*) # This is not an option, so the user has probably given explicit
21050
ac_need_defaults=false;;
21054
# Handling of the options.
21056
cat >>$CONFIG_STATUS <<\_ACEOF
21057
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21059
--version | --vers* | -V )
21060
echo "$ac_cs_version"; exit 0 ;;
21062
# Conflict between --help and --header
21063
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
21064
Try \`$0 --help' for more information." >&5
21065
echo "$as_me: error: ambiguous option: $1
21066
Try \`$0 --help' for more information." >&2;}
21067
{ (exit 1); exit 1; }; };;
21068
--help | --hel | -h )
21069
echo "$ac_cs_usage"; exit 0 ;;
21070
--debug | --d* | -d )
21072
--file | --fil | --fi | --f )
21074
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21075
ac_need_defaults=false;;
21076
--header | --heade | --head | --hea )
21078
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21079
ac_need_defaults=false;;
21080
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
21081
| -silent | --silent | --silen | --sile | --sil | --si | --s)
21084
# This is an error.
21085
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21086
Try \`$0 --help' for more information." >&5
21087
echo "$as_me: error: unrecognized option: $1
21088
Try \`$0 --help' for more information." >&2;}
21089
{ (exit 1); exit 1; }; } ;;
21091
*) ac_config_targets="$ac_config_targets $1" ;;
21097
ac_configure_extra_args=
21099
if $ac_cs_silent; then
21101
ac_configure_extra_args="$ac_configure_extra_args --silent"
21105
cat >>$CONFIG_STATUS <<_ACEOF
21106
if \$ac_cs_recheck; then
21107
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21108
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21113
cat >>$CONFIG_STATUS <<_ACEOF
21115
# INIT-COMMANDS section.
21118
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21124
cat >>$CONFIG_STATUS <<\_ACEOF
21125
for ac_config_target in $ac_config_targets
21127
case "$ac_config_target" in
21128
# Handling of arguments.
21129
"dist/tcsd.conf" ) CONFIG_FILES="$CONFIG_FILES dist/tcsd.conf" ;;
21130
"dist/fedora/trousers.spec" ) CONFIG_FILES="$CONFIG_FILES dist/fedora/trousers.spec" ;;
21131
"dist/trousers.spec" ) CONFIG_FILES="$CONFIG_FILES dist/trousers.spec" ;;
21132
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21133
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21134
"src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
21135
"src/tcs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tcs/Makefile" ;;
21136
"src/tddl/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tddl/Makefile" ;;
21137
"src/tspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tspi/Makefile" ;;
21138
"src/trspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/trspi/Makefile" ;;
21139
"src/tcsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tcsd/Makefile" ;;
21140
"tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21141
"man/man8/tcsd.8" ) CONFIG_FILES="$CONFIG_FILES man/man8/tcsd.8" ;;
21142
"man/man5/tcsd.conf.5" ) CONFIG_FILES="$CONFIG_FILES man/man5/tcsd.conf.5" ;;
21143
"dist/Makefile" ) CONFIG_FILES="$CONFIG_FILES dist/Makefile" ;;
21144
"man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21145
"man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/man3/Makefile" ;;
21146
"man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
21147
"man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
21148
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21149
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21150
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21151
{ (exit 1); exit 1; }; };;
21155
# If the user did not use the arguments to specify the items to instantiate,
21156
# then the envvar interface is used. Set only those that are not.
21157
# We use the long form for the default assignment because of an extremely
21158
# bizarre bug on SunOS 4.1.3.
21159
if $ac_need_defaults; then
21160
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21161
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21164
# Have a temporary directory for convenience. Make it in the build tree
21165
# simply because there is no reason to put it here, and in addition,
21166
# creating and moving files from /tmp can sometimes cause problems.
21167
# Create a temporary directory, and hook for its removal unless debugging.
21170
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21171
trap '{ (exit 1); exit 1; }' 1 2 13 15
21174
# Create a (secure) tmp directory for tmp files.
21177
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21178
test -n "$tmp" && test -d "$tmp"
21181
tmp=./confstat$$-$RANDOM
21182
(umask 077 && mkdir $tmp)
21185
echo "$me: cannot create a temporary directory in ." >&2
21186
{ (exit 1); exit 1; }
21191
cat >>$CONFIG_STATUS <<_ACEOF
21194
# CONFIG_FILES section.
21197
# No need to generate the scripts if there are no CONFIG_FILES.
21198
# This happens for instance when ./config.status config.h
21199
if test -n "\$CONFIG_FILES"; then
21200
# Protect against being on the right side of a sed subst in config.status.
21201
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21202
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21203
s,@SHELL@,$SHELL,;t t
21204
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21205
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21206
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21207
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21208
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21209
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21210
s,@exec_prefix@,$exec_prefix,;t t
21211
s,@prefix@,$prefix,;t t
21212
s,@program_transform_name@,$program_transform_name,;t t
21213
s,@bindir@,$bindir,;t t
21214
s,@sbindir@,$sbindir,;t t
21215
s,@libexecdir@,$libexecdir,;t t
21216
s,@datadir@,$datadir,;t t
21217
s,@sysconfdir@,$sysconfdir,;t t
21218
s,@sharedstatedir@,$sharedstatedir,;t t
21219
s,@localstatedir@,$localstatedir,;t t
21220
s,@libdir@,$libdir,;t t
21221
s,@includedir@,$includedir,;t t
21222
s,@oldincludedir@,$oldincludedir,;t t
21223
s,@infodir@,$infodir,;t t
21224
s,@mandir@,$mandir,;t t
21225
s,@build_alias@,$build_alias,;t t
21226
s,@host_alias@,$host_alias,;t t
21227
s,@target_alias@,$target_alias,;t t
21228
s,@DEFS@,$DEFS,;t t
21229
s,@ECHO_C@,$ECHO_C,;t t
21230
s,@ECHO_N@,$ECHO_N,;t t
21231
s,@ECHO_T@,$ECHO_T,;t t
21232
s,@LIBS@,$LIBS,;t t
21233
s,@build@,$build,;t t
21234
s,@build_cpu@,$build_cpu,;t t
21235
s,@build_vendor@,$build_vendor,;t t
21236
s,@build_os@,$build_os,;t t
21237
s,@host@,$host,;t t
21238
s,@host_cpu@,$host_cpu,;t t
21239
s,@host_vendor@,$host_vendor,;t t
21240
s,@host_os@,$host_os,;t t
21241
s,@target@,$target,;t t
21242
s,@target_cpu@,$target_cpu,;t t
21243
s,@target_vendor@,$target_vendor,;t t
21244
s,@target_os@,$target_os,;t t
21245
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21246
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21247
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21248
s,@CYGPATH_W@,$CYGPATH_W,;t t
21249
s,@PACKAGE@,$PACKAGE,;t t
21250
s,@VERSION@,$VERSION,;t t
21251
s,@ACLOCAL@,$ACLOCAL,;t t
21252
s,@AUTOCONF@,$AUTOCONF,;t t
21253
s,@AUTOMAKE@,$AUTOMAKE,;t t
21254
s,@AUTOHEADER@,$AUTOHEADER,;t t
21255
s,@MAKEINFO@,$MAKEINFO,;t t
21256
s,@install_sh@,$install_sh,;t t
21257
s,@STRIP@,$STRIP,;t t
21258
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21259
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21260
s,@mkdir_p@,$mkdir_p,;t t
21262
s,@SET_MAKE@,$SET_MAKE,;t t
21263
s,@am__leading_dot@,$am__leading_dot,;t t
21264
s,@AMTAR@,$AMTAR,;t t
21265
s,@am__tar@,$am__tar,;t t
21266
s,@am__untar@,$am__untar,;t t
21267
s,@OPENSSL_LIB_DIR@,$OPENSSL_LIB_DIR,;t t
21269
s,@CFLAGS@,$CFLAGS,;t t
21270
s,@LDFLAGS@,$LDFLAGS,;t t
21271
s,@CPPFLAGS@,$CPPFLAGS,;t t
21272
s,@ac_ct_CC@,$ac_ct_CC,;t t
21273
s,@EXEEXT@,$EXEEXT,;t t
21274
s,@OBJEXT@,$OBJEXT,;t t
21275
s,@DEPDIR@,$DEPDIR,;t t
21276
s,@am__include@,$am__include,;t t
21277
s,@am__quote@,$am__quote,;t t
21278
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21279
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21280
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21281
s,@CCDEPMODE@,$CCDEPMODE,;t t
21282
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21283
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21284
s,@CRYPTO_PACKAGE@,$CRYPTO_PACKAGE,;t t
21285
s,@HAVE_GTK_TRUE@,$HAVE_GTK_TRUE,;t t
21286
s,@HAVE_GTK_FALSE@,$HAVE_GTK_FALSE,;t t
21287
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21288
s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
21289
s,@GTK_LIBS@,$GTK_LIBS,;t t
21290
s,@EGREP@,$EGREP,;t t
21291
s,@LN_S@,$LN_S,;t t
21292
s,@ECHO@,$ECHO,;t t
21294
s,@ac_ct_AR@,$ac_ct_AR,;t t
21295
s,@RANLIB@,$RANLIB,;t t
21296
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21299
s,@CXXFLAGS@,$CXXFLAGS,;t t
21300
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21301
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21302
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21303
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21304
s,@CXXCPP@,$CXXCPP,;t t
21306
s,@FFLAGS@,$FFLAGS,;t t
21307
s,@ac_ct_F77@,$ac_ct_F77,;t t
21308
s,@LIBTOOL@,$LIBTOOL,;t t
21309
s,@TCSD_DEFAULT_PORT@,$TCSD_DEFAULT_PORT,;t t
21310
s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
21311
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21316
cat >>$CONFIG_STATUS <<\_ACEOF
21317
# Split the substitutions into bite-sized pieces for seds with
21318
# small command number limits, like on Digital OSF/1 and HP-UX.
21319
ac_max_sed_lines=48
21320
ac_sed_frag=1 # Number of current file.
21321
ac_beg=1 # First line for current file.
21322
ac_end=$ac_max_sed_lines # Line after last line for current file.
21325
while $ac_more_lines; do
21326
if test $ac_beg -gt 1; then
21327
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21329
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21331
if test ! -s $tmp/subs.frag; then
21332
ac_more_lines=false
21334
# The purpose of the label and of the branching condition is to
21335
# speed up the sed processing (if there are no `@' at all, there
21336
# is no need to browse any of the substitutions).
21337
# These are the two extra sed commands mentioned above.
21339
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21340
if test -z "$ac_sed_cmds"; then
21341
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21343
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21345
ac_sed_frag=`expr $ac_sed_frag + 1`
21347
ac_end=`expr $ac_end + $ac_max_sed_lines`
21350
if test -z "$ac_sed_cmds"; then
21353
fi # test -n "$CONFIG_FILES"
21356
cat >>$CONFIG_STATUS <<\_ACEOF
21357
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21358
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21360
- | *:- | *:-:* ) # input from stdin
21362
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21363
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21364
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21365
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21366
* ) ac_file_in=$ac_file.in ;;
21369
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21370
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21371
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21372
X"$ac_file" : 'X\(//\)[^/]' \| \
21373
X"$ac_file" : 'X\(//\)$' \| \
21374
X"$ac_file" : 'X\(/\)' \| \
21375
. : '\(.\)' 2>/dev/null ||
21377
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21378
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21379
/^X\(\/\/\)$/{ s//\1/; q; }
21380
/^X\(\/\).*/{ s//\1/; q; }
21382
{ if $as_mkdir_p; then
21387
while test ! -d "$as_dir"; do
21388
as_dirs="$as_dir $as_dirs"
21389
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21390
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21391
X"$as_dir" : 'X\(//\)[^/]' \| \
21392
X"$as_dir" : 'X\(//\)$' \| \
21393
X"$as_dir" : 'X\(/\)' \| \
21394
. : '\(.\)' 2>/dev/null ||
21396
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21397
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21398
/^X\(\/\/\)$/{ s//\1/; q; }
21399
/^X\(\/\).*/{ s//\1/; q; }
21402
test ! -n "$as_dirs" || mkdir $as_dirs
21403
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21404
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21405
{ (exit 1); exit 1; }; }; }
21409
if test "$ac_dir" != .; then
21410
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21411
# A "../" for each directory in $ac_dir_suffix.
21412
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21414
ac_dir_suffix= ac_top_builddir=
21418
.) # No --srcdir option. We are building in place.
21420
if test -z "$ac_top_builddir"; then
21423
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21425
[\\/]* | ?:[\\/]* ) # Absolute path.
21426
ac_srcdir=$srcdir$ac_dir_suffix;
21427
ac_top_srcdir=$srcdir ;;
21428
*) # Relative path.
21429
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21430
ac_top_srcdir=$ac_top_builddir$srcdir ;;
21433
# Do not use `cd foo && pwd` to compute absolute paths, because
21434
# the directories may not exist.
21436
.) ac_abs_builddir="$ac_dir";;
21439
.) ac_abs_builddir=`pwd`;;
21440
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21441
*) ac_abs_builddir=`pwd`/"$ac_dir";;
21444
case $ac_abs_builddir in
21445
.) ac_abs_top_builddir=${ac_top_builddir}.;;
21447
case ${ac_top_builddir}. in
21448
.) ac_abs_top_builddir=$ac_abs_builddir;;
21449
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21450
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21453
case $ac_abs_builddir in
21454
.) ac_abs_srcdir=$ac_srcdir;;
21457
.) ac_abs_srcdir=$ac_abs_builddir;;
21458
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21459
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21462
case $ac_abs_builddir in
21463
.) ac_abs_top_srcdir=$ac_top_srcdir;;
21465
case $ac_top_srcdir in
21466
.) ac_abs_top_srcdir=$ac_abs_builddir;;
21467
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21468
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21474
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21475
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21478
if test x"$ac_file" != x-; then
21479
{ echo "$as_me:$LINENO: creating $ac_file" >&5
21480
echo "$as_me: creating $ac_file" >&6;}
21483
# Let's still pretend it is `configure' which instantiates (i.e., don't
21484
# use $as_me), people would be surprised to read:
21485
# /* config.h. Generated by config.status. */
21486
if test x"$ac_file" = x-; then
21489
configure_input="$ac_file. "
21491
configure_input=$configure_input"Generated from `echo $ac_file_in |
21492
sed 's,.*/,,'` by configure."
21494
# First look for the input files in the build tree, otherwise in the
21496
ac_file_inputs=`IFS=:
21497
for f in $ac_file_in; do
21499
-) echo $tmp/stdin ;;
21501
# Absolute (can't be DOS-style, as IFS=:)
21502
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21503
echo "$as_me: error: cannot find input file: $f" >&2;}
21504
{ (exit 1); exit 1; }; }
21507
if test -f "$f"; then
21510
elif test -f "$srcdir/$f"; then
21515
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21516
echo "$as_me: error: cannot find input file: $f" >&2;}
21517
{ (exit 1); exit 1; }; }
21520
done` || { (exit 1); exit 1; }
21522
cat >>$CONFIG_STATUS <<_ACEOF
21526
cat >>$CONFIG_STATUS <<\_ACEOF
21528
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21529
s,@configure_input@,$configure_input,;t t
21530
s,@srcdir@,$ac_srcdir,;t t
21531
s,@abs_srcdir@,$ac_abs_srcdir,;t t
21532
s,@top_srcdir@,$ac_top_srcdir,;t t
21533
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21534
s,@builddir@,$ac_builddir,;t t
21535
s,@abs_builddir@,$ac_abs_builddir,;t t
21536
s,@top_builddir@,$ac_top_builddir,;t t
21537
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21538
s,@INSTALL@,$ac_INSTALL,;t t
21539
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21541
if test x"$ac_file" != x-; then
21542
mv $tmp/out $ac_file
21550
cat >>$CONFIG_STATUS <<\_ACEOF
21553
# CONFIG_COMMANDS section.
21555
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21556
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21557
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21558
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21559
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21560
X"$ac_dest" : 'X\(//\)[^/]' \| \
21561
X"$ac_dest" : 'X\(//\)$' \| \
21562
X"$ac_dest" : 'X\(/\)' \| \
21563
. : '\(.\)' 2>/dev/null ||
21565
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21566
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21567
/^X\(\/\/\)$/{ s//\1/; q; }
21568
/^X\(\/\).*/{ s//\1/; q; }
21570
{ if $as_mkdir_p; then
21575
while test ! -d "$as_dir"; do
21576
as_dirs="$as_dir $as_dirs"
21577
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21578
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21579
X"$as_dir" : 'X\(//\)[^/]' \| \
21580
X"$as_dir" : 'X\(//\)$' \| \
21581
X"$as_dir" : 'X\(/\)' \| \
21582
. : '\(.\)' 2>/dev/null ||
21584
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21585
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21586
/^X\(\/\/\)$/{ s//\1/; q; }
21587
/^X\(\/\).*/{ s//\1/; q; }
21590
test ! -n "$as_dirs" || mkdir $as_dirs
21591
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21592
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21593
{ (exit 1); exit 1; }; }; }
21597
if test "$ac_dir" != .; then
21598
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21599
# A "../" for each directory in $ac_dir_suffix.
21600
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21602
ac_dir_suffix= ac_top_builddir=
21606
.) # No --srcdir option. We are building in place.
21608
if test -z "$ac_top_builddir"; then
21611
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21613
[\\/]* | ?:[\\/]* ) # Absolute path.
21614
ac_srcdir=$srcdir$ac_dir_suffix;
21615
ac_top_srcdir=$srcdir ;;
21616
*) # Relative path.
21617
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21618
ac_top_srcdir=$ac_top_builddir$srcdir ;;
21621
# Do not use `cd foo && pwd` to compute absolute paths, because
21622
# the directories may not exist.
21624
.) ac_abs_builddir="$ac_dir";;
21627
.) ac_abs_builddir=`pwd`;;
21628
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21629
*) ac_abs_builddir=`pwd`/"$ac_dir";;
21632
case $ac_abs_builddir in
21633
.) ac_abs_top_builddir=${ac_top_builddir}.;;
21635
case ${ac_top_builddir}. in
21636
.) ac_abs_top_builddir=$ac_abs_builddir;;
21637
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21638
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21641
case $ac_abs_builddir in
21642
.) ac_abs_srcdir=$ac_srcdir;;
21645
.) ac_abs_srcdir=$ac_abs_builddir;;
21646
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21647
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21650
case $ac_abs_builddir in
21651
.) ac_abs_top_srcdir=$ac_top_srcdir;;
21653
case $ac_top_srcdir in
21654
.) ac_abs_top_srcdir=$ac_abs_builddir;;
21655
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21656
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21661
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21662
echo "$as_me: executing $ac_dest commands" >&6;}
21664
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21665
# Strip MF so we end up with the name of the file.
21666
mf=`echo "$mf" | sed -e 's/:.*$//'`
21667
# Check whether this is an Automake generated Makefile or not.
21668
# We used to match only the files named `Makefile.in', but
21669
# some people rename them; so instead we look at the file content.
21670
# Grep'ing the first line is not enough: some people post-process
21671
# each Makefile.in and add a new line on top of each file to say so.
21672
# So let's grep whole file.
21673
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21674
dirpart=`(dirname "$mf") 2>/dev/null ||
21675
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21676
X"$mf" : 'X\(//\)[^/]' \| \
21677
X"$mf" : 'X\(//\)$' \| \
21678
X"$mf" : 'X\(/\)' \| \
21679
. : '\(.\)' 2>/dev/null ||
21681
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21682
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21683
/^X\(\/\/\)$/{ s//\1/; q; }
21684
/^X\(\/\).*/{ s//\1/; q; }
21689
# Extract the definition of DEPDIR, am__include, and am__quote
21690
# from the Makefile without running `make'.
21691
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21692
test -z "$DEPDIR" && continue
21693
am__include=`sed -n 's/^am__include = //p' < "$mf"`
21694
test -z "am__include" && continue
21695
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21696
# When using ansi2knr, U may be empty or an underscore; expand it
21697
U=`sed -n 's/^U = //p' < "$mf"`
21698
# Find all dependency output files, they are included files with
21699
# $(DEPDIR) in their names. We invoke sed twice because it is the
21700
# simplest approach to changing $(DEPDIR) to its actual value in the
21702
for file in `sed -n "
21703
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21704
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21705
# Make sure the directory exists.
21706
test -f "$dirpart/$file" && continue
21707
fdir=`(dirname "$file") 2>/dev/null ||
21708
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21709
X"$file" : 'X\(//\)[^/]' \| \
21710
X"$file" : 'X\(//\)$' \| \
21711
X"$file" : 'X\(/\)' \| \
21712
. : '\(.\)' 2>/dev/null ||
21714
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21715
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21716
/^X\(\/\/\)$/{ s//\1/; q; }
21717
/^X\(\/\).*/{ s//\1/; q; }
21719
{ if $as_mkdir_p; then
21720
mkdir -p $dirpart/$fdir
21722
as_dir=$dirpart/$fdir
21724
while test ! -d "$as_dir"; do
21725
as_dirs="$as_dir $as_dirs"
21726
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21727
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21728
X"$as_dir" : 'X\(//\)[^/]' \| \
21729
X"$as_dir" : 'X\(//\)$' \| \
21730
X"$as_dir" : 'X\(/\)' \| \
21731
. : '\(.\)' 2>/dev/null ||
21733
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21734
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21735
/^X\(\/\/\)$/{ s//\1/; q; }
21736
/^X\(\/\).*/{ s//\1/; q; }
21739
test ! -n "$as_dirs" || mkdir $as_dirs
21740
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21741
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21742
{ (exit 1); exit 1; }; }; }
21744
# echo "creating $dirpart/$file"
21745
echo '# dummy' > "$dirpart/$file"
21753
cat >>$CONFIG_STATUS <<\_ACEOF
21755
{ (exit 0); exit 0; }
21757
chmod +x $CONFIG_STATUS
21758
ac_clean_files=$ac_clean_files_save
21761
# configure is writing to config.log, and then calls config.status.
21762
# config.status does its own redirection, appending to config.log.
21763
# Unfortunately, on DOS this fails, as config.log is still kept open
21764
# by configure, so config.status won't be able to write to it; its
21765
# output is simply discarded. So we exec the FD to /dev/null,
21766
# effectively closing config.log, so it can be properly (re)opened and
21767
# appended to by config.status. When coming back to configure, we
21768
# need to make the FD available again.
21769
if test "$no_create" != yes; then
21771
ac_config_status_args=
21772
test "$silent" = yes &&
21773
ac_config_status_args="$ac_config_status_args --quiet"
21775
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21777
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
21778
# would make configure fail if this is the last instruction.
21779
$ac_cs_success || { (exit 1); exit 1; }
21783
echo "CFLAGS=$CFLAGS"