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
## There is no encapsulation within the following macros, do not change
7508
## the running order or otherwise move them around unless you know exactly
7509
## what you are doing...
7511
lt_prog_compiler_no_builtin_flag=
7513
if test "$GCC" = yes; then
7514
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7517
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7518
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7519
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7520
echo $ECHO_N "(cached) $ECHO_C" >&6
7522
lt_cv_prog_compiler_rtti_exceptions=no
7523
ac_outfile=conftest.$ac_objext
7524
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7525
lt_compiler_flag="-fno-rtti -fno-exceptions"
7526
# Insert the option either (1) after the last *FLAGS variable, or
7527
# (2) before a word containing "conftest.", or (3) at the end.
7528
# Note that $ac_compile itself does not contain backslashes and begins
7529
# with a dollar sign (not a hyphen), so the echo should work correctly.
7530
# The option is referenced via a variable to avoid confusing sed.
7531
lt_compile=`echo "$ac_compile" | $SED \
7532
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7533
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7534
-e 's:$: $lt_compiler_flag:'`
7535
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7536
(eval "$lt_compile" 2>conftest.err)
7538
cat conftest.err >&5
7539
echo "$as_me:__oline__: \$? = $ac_status" >&5
7540
if (exit $ac_status) && test -s "$ac_outfile"; then
7541
# The compiler can only warn and ignore the option if not recognized
7542
# So say no if there are warnings
7543
if test ! -s conftest.err; then
7544
lt_cv_prog_compiler_rtti_exceptions=yes
7550
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7551
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7553
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7554
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7561
lt_prog_compiler_wl=
7562
lt_prog_compiler_pic=
7563
lt_prog_compiler_static=
7565
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7566
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7568
if test "$GCC" = yes; then
7569
lt_prog_compiler_wl='-Wl,'
7570
lt_prog_compiler_static='-static'
7574
# All AIX code is PIC.
7575
if test "$host_cpu" = ia64; then
7576
# AIX 5 now supports IA64 processor
7577
lt_prog_compiler_static='-Bstatic'
7582
# FIXME: we need at least 68020 code to build shared libraries, but
7583
# adding the `-m68020' flag to GCC prevents building anything better,
7585
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7588
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7589
# PIC is the default for these OSes.
7592
mingw* | pw32* | os2*)
7593
# This hack is so that the source file can tell whether it is being
7594
# built for inclusion in a dll (and should export symbols for example).
7595
lt_prog_compiler_pic='-DDLL_EXPORT'
7598
darwin* | rhapsody*)
7599
# PIC is the default on this platform
7600
# Common symbols not allowed in MH_DYLIB files
7601
lt_prog_compiler_pic='-fno-common'
7605
# Just because we use GCC doesn't mean we suddenly get shared libraries
7606
# on systems that don't support them.
7607
lt_prog_compiler_can_build_shared=no
7612
if test -d /usr/nec; then
7613
lt_prog_compiler_pic=-Kconform_pic
7618
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7625
lt_prog_compiler_pic='-fPIC'
7631
lt_prog_compiler_pic='-fPIC'
7635
# PORTME Check for flag to pass linker flags through the system compiler.
7638
lt_prog_compiler_wl='-Wl,'
7639
if test "$host_cpu" = ia64; then
7640
# AIX 5 now supports IA64 processor
7641
lt_prog_compiler_static='-Bstatic'
7643
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7647
# PIC is the default on this platform
7648
# Common symbols not allowed in MH_DYLIB files
7649
case "$cc_basename" in
7651
lt_prog_compiler_pic='-qnocommon'
7652
lt_prog_compiler_wl='-Wl,'
7657
mingw* | pw32* | os2*)
7658
# This hack is so that the source file can tell whether it is being
7659
# built for inclusion in a dll (and should export symbols for example).
7660
lt_prog_compiler_pic='-DDLL_EXPORT'
7663
hpux9* | hpux10* | hpux11*)
7664
lt_prog_compiler_wl='-Wl,'
7665
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7672
lt_prog_compiler_pic='+Z'
7675
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7676
lt_prog_compiler_static='${wl}-a ${wl}archive'
7679
irix5* | irix6* | nonstopux*)
7680
lt_prog_compiler_wl='-Wl,'
7681
# PIC (with -KPIC) is the default.
7682
lt_prog_compiler_static='-non_shared'
7686
lt_prog_compiler_pic='-KPIC'
7687
lt_prog_compiler_static='-Bstatic'
7691
case $cc_basename in
7693
lt_prog_compiler_wl='-Wl,'
7694
lt_prog_compiler_pic='-KPIC'
7695
lt_prog_compiler_static='-static'
7697
pgcc | pgf77 | pgf90)
7698
# Portland Group compilers (*not* the Pentium gcc compiler,
7699
# which looks to be a dead project)
7700
lt_prog_compiler_wl='-Wl,'
7701
lt_prog_compiler_pic='-fpic'
7702
lt_prog_compiler_static='-static'
7705
lt_prog_compiler_wl='-Wl,'
7706
# All Alpha code is PIC.
7707
lt_prog_compiler_static='-non_shared'
7712
osf3* | osf4* | osf5*)
7713
lt_prog_compiler_wl='-Wl,'
7714
# All OSF/1 code is PIC.
7715
lt_prog_compiler_static='-non_shared'
7719
lt_prog_compiler_pic='-Kpic'
7720
lt_prog_compiler_static='-dn'
7724
lt_prog_compiler_wl='-Wl,'
7725
lt_prog_compiler_pic='-KPIC'
7726
lt_prog_compiler_static='-Bstatic'
7730
lt_prog_compiler_wl='-Qoption ld '
7731
lt_prog_compiler_pic='-PIC'
7732
lt_prog_compiler_static='-Bstatic'
7735
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7736
lt_prog_compiler_wl='-Wl,'
7737
lt_prog_compiler_pic='-KPIC'
7738
lt_prog_compiler_static='-Bstatic'
7742
if test -d /usr/nec ;then
7743
lt_prog_compiler_pic='-Kconform_pic'
7744
lt_prog_compiler_static='-Bstatic'
7749
lt_prog_compiler_wl='-Wl,'
7750
lt_prog_compiler_can_build_shared=no
7754
lt_prog_compiler_pic='-pic'
7755
lt_prog_compiler_static='-Bstatic'
7759
lt_prog_compiler_can_build_shared=no
7764
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7765
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7768
# Check to make sure the PIC flag actually works.
7770
if test -n "$lt_prog_compiler_pic"; then
7772
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7773
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7774
if test "${lt_prog_compiler_pic_works+set}" = set; then
7775
echo $ECHO_N "(cached) $ECHO_C" >&6
7777
lt_prog_compiler_pic_works=no
7778
ac_outfile=conftest.$ac_objext
7779
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7780
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7781
# Insert the option either (1) after the last *FLAGS variable, or
7782
# (2) before a word containing "conftest.", or (3) at the end.
7783
# Note that $ac_compile itself does not contain backslashes and begins
7784
# with a dollar sign (not a hyphen), so the echo should work correctly.
7785
# The option is referenced via a variable to avoid confusing sed.
7786
lt_compile=`echo "$ac_compile" | $SED \
7787
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7788
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7789
-e 's:$: $lt_compiler_flag:'`
7790
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7791
(eval "$lt_compile" 2>conftest.err)
7793
cat conftest.err >&5
7794
echo "$as_me:__oline__: \$? = $ac_status" >&5
7795
if (exit $ac_status) && test -s "$ac_outfile"; then
7796
# The compiler can only warn and ignore the option if not recognized
7797
# So say no if there are warnings
7798
if test ! -s conftest.err; then
7799
lt_prog_compiler_pic_works=yes
7805
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7806
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7808
if test x"$lt_prog_compiler_pic_works" = xyes; then
7809
case $lt_prog_compiler_pic in
7811
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7814
lt_prog_compiler_pic=
7815
lt_prog_compiler_can_build_shared=no
7820
# For platforms which do not support PIC, -DPIC is meaningless:
7822
lt_prog_compiler_pic=
7825
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7829
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7830
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7831
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7832
echo $ECHO_N "(cached) $ECHO_C" >&6
7834
lt_cv_prog_compiler_c_o=no
7835
$rm -r conftest 2>/dev/null
7839
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7841
lt_compiler_flag="-o out/conftest2.$ac_objext"
7842
# Insert the option either (1) after the last *FLAGS variable, or
7843
# (2) before a word containing "conftest.", or (3) at the end.
7844
# Note that $ac_compile itself does not contain backslashes and begins
7845
# with a dollar sign (not a hyphen), so the echo should work correctly.
7846
lt_compile=`echo "$ac_compile" | $SED \
7847
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7848
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7849
-e 's:$: $lt_compiler_flag:'`
7850
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7851
(eval "$lt_compile" 2>out/conftest.err)
7853
cat out/conftest.err >&5
7854
echo "$as_me:__oline__: \$? = $ac_status" >&5
7855
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7857
# The compiler can only warn and ignore the option if not recognized
7858
# So say no if there are warnings
7859
if test ! -s out/conftest.err; then
7860
lt_cv_prog_compiler_c_o=yes
7865
# SGI C++ compiler will create directory out/ii_files/ for
7866
# template instantiation
7867
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7868
$rm out/* && rmdir out
7874
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7875
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7878
hard_links="nottested"
7879
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7880
# do not overwrite the value of need_locks provided by the user
7881
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7882
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7885
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7887
ln conftest.a conftest.b 2>&5 || hard_links=no
7888
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7889
echo "$as_me:$LINENO: result: $hard_links" >&5
7890
echo "${ECHO_T}$hard_links" >&6
7891
if test "$hard_links" = no; then
7892
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7893
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7900
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7901
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7904
allow_undefined_flag=
7905
enable_shared_with_static_runtimes=no
7907
archive_expsym_cmds=
7908
old_archive_From_new_cmds=
7909
old_archive_from_expsyms_cmds=
7910
export_dynamic_flag_spec=
7911
whole_archive_flag_spec=
7912
thread_safe_flag_spec=
7913
hardcode_libdir_flag_spec=
7914
hardcode_libdir_flag_spec_ld=
7915
hardcode_libdir_separator=
7918
hardcode_shlibpath_var=unsupported
7919
link_all_deplibs=unknown
7920
hardcode_automatic=no
7923
always_export_symbols=no
7924
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7925
# include_expsyms should be a list of space-separated symbols to be *always*
7926
# included in the symbol list
7928
# exclude_expsyms can be an extended regexp of symbols to exclude
7929
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7930
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7931
# as well as any symbol that contains `d'.
7932
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7933
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7934
# platforms (ab)use it in PIC code, but their linkers get confused if
7935
# the symbol is explicitly referenced. Since portable code cannot
7936
# rely on this symbol name, it's probably fine to never include it in
7937
# preloaded symbol tables.
7938
extract_expsyms_cmds=
7941
cygwin* | mingw* | pw32*)
7942
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7943
# When not using gcc, we currently assume that we are using
7944
# Microsoft Visual C++.
7945
if test "$GCC" != yes; then
7955
if test "$with_gnu_ld" = yes; then
7956
# If archive_cmds runs LD, not CC, wlarc should be empty
7959
# See if GNU ld supports shared libraries.
7961
aix3* | aix4* | aix5*)
7962
# On AIX/PPC, the GNU linker is very broken
7963
if test "$host_cpu" != ia64; then
7967
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7968
*** to be unable to reliably create shared libraries on AIX.
7969
*** Therefore, libtool is disabling shared libraries support. If you
7970
*** really care for shared libraries, you may want to modify your PATH
7971
*** so that a non-GNU linker is found, and then restart.
7978
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)'
7979
hardcode_libdir_flag_spec='-L$libdir'
7980
hardcode_minus_L=yes
7982
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7983
# that the semantics of dynamic libraries on AmigaOS, at least up
7984
# to version 4, is to share data among multiple programs linked
7985
# with the same dynamic library. Since this doesn't match the
7986
# behavior of shared libraries on other platforms, we can't use
7992
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7993
allow_undefined_flag=unsupported
7994
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7995
# support --undefined. This deserves some investigation. FIXME
7996
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8002
cygwin* | mingw* | pw32*)
8003
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8004
# as there is no search path for DLLs.
8005
hardcode_libdir_flag_spec='-L$libdir'
8006
allow_undefined_flag=unsupported
8007
always_export_symbols=no
8008
enable_shared_with_static_runtimes=yes
8009
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8011
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8012
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8013
# If the export-symbols file already is a .def file (1st line
8014
# is EXPORTS), use it as is; otherwise, prepend...
8015
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8016
cp $export_symbols $output_objdir/$soname.def;
8018
echo EXPORTS > $output_objdir/$soname.def;
8019
cat $export_symbols >> $output_objdir/$soname.def;
8021
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8028
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8029
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8032
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8033
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8038
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8042
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8043
*** create shared libraries on Solaris systems. Therefore, libtool
8044
*** is disabling shared libraries support. We urge you to upgrade GNU
8045
*** binutils to release 2.9.1 or newer. Another option is to modify
8046
*** your PATH or compiler configuration so that the native linker is
8047
*** used, and then restart.
8050
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8051
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8052
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8059
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8062
hardcode_shlibpath_var=no
8066
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8068
case $CC,$host_cpu in
8069
pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
8070
tmp_addflag=' -fpic' ;;
8071
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8072
tmp_addflag=' -i_dynamic' ;;
8073
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8074
tmp_addflag=' -i_dynamic -nofor_main' ;;
8075
ifc* | ifort*) # Intel Fortran compiler
8076
tmp_addflag=' -nofor_main' ;;
8078
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8079
supports_anon_versioning=no
8080
case `$LD -v 2>/dev/null` in
8081
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8082
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8083
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8084
*\ 2.11.*) ;; # other 2.11 versions
8085
*) supports_anon_versioning=yes ;;
8087
if test $supports_anon_versioning = yes; then
8088
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8089
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8090
$echo "local: *; };" >> $output_objdir/$libname.ver~
8091
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8093
archive_expsym_cmds=$archive_cmds
8101
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8102
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8103
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8110
if test "$ld_shlibs" = yes; then
8111
runpath_var=LD_RUN_PATH
8112
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8113
export_dynamic_flag_spec='${wl}--export-dynamic'
8114
# ancient GNU ld didn't support --whole-archive et. al.
8115
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8116
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8118
whole_archive_flag_spec=
8122
# PORTME fill in a description of your system's linker (not GNU ld)
8125
allow_undefined_flag=unsupported
8126
always_export_symbols=yes
8127
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'
8128
# Note: this linker hardcodes the directories in LIBPATH if there
8129
# are no directories specified by -L.
8130
hardcode_minus_L=yes
8131
if test "$GCC" = yes && test -z "$link_static_flag"; then
8132
# Neither direct hardcoding nor static linking is supported with a
8134
hardcode_direct=unsupported
8139
if test "$host_cpu" = ia64; then
8140
# On IA64, the linker does run time linking by default, so we don't
8141
# have to do anything special.
8142
aix_use_runtimelinking=no
8143
exp_sym_flag='-Bexport'
8146
# If we're using GNU nm, then we don't want the "-C" option.
8147
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8148
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8149
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'
8151
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'
8153
aix_use_runtimelinking=no
8155
# Test if we are trying to use run time linking or normal
8156
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8157
# need to do runtime linking.
8158
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8159
for ld_flag in $LDFLAGS; do
8160
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8161
aix_use_runtimelinking=yes
8167
exp_sym_flag='-bexport'
8168
no_entry_flag='-bnoentry'
8171
# When large executables or shared objects are built, AIX ld can
8172
# have problems creating the table of contents. If linking a library
8173
# or program results in "error TOC overflow" add -mminimal-toc to
8174
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8175
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8179
hardcode_libdir_separator=':'
8180
link_all_deplibs=yes
8182
if test "$GCC" = yes; then
8183
case $host_os in aix4.[012]|aix4.[012].*)
8184
# We only want to do this on AIX 4.2 and lower, the check
8185
# below for broken collect2 doesn't work under 4.3+
8186
collect2name=`${CC} -print-prog-name=collect2`
8187
if test -f "$collect2name" && \
8188
strings "$collect2name" | grep resolve_lib_name >/dev/null
8190
# We have reworked collect2
8193
# We have old collect2
8194
hardcode_direct=unsupported
8195
# It fails to find uninstalled libraries when the uninstalled
8196
# path is not listed in the libpath. Setting hardcode_minus_L
8197
# to unsupported forces relinking
8198
hardcode_minus_L=yes
8199
hardcode_libdir_flag_spec='-L$libdir'
8200
hardcode_libdir_separator=
8203
shared_flag='-shared'
8204
if test "$aix_use_runtimelinking" = yes; then
8205
shared_flag="$shared_flag "'${wl}-G'
8209
if test "$host_cpu" = ia64; then
8210
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8211
# chokes on -Wl,-G. The following line is correct:
8214
if test "$aix_use_runtimelinking" = yes; then
8215
shared_flag='${wl}-G'
8217
shared_flag='${wl}-bM:SRE'
8222
# It seems that -bexpall does not export symbols beginning with
8223
# underscore (_), so it is better to generate a list of symbols to export.
8224
always_export_symbols=yes
8225
if test "$aix_use_runtimelinking" = yes; then
8226
# Warning - without using the other runtime loading flags (-brtl),
8227
# -berok will link without error, but may produce a broken library.
8228
allow_undefined_flag='-berok'
8229
# Determine the default libpath from the value encoded in an empty executable.
8230
cat >conftest.$ac_ext <<_ACEOF
8233
cat confdefs.h >>conftest.$ac_ext
8234
cat >>conftest.$ac_ext <<_ACEOF
8235
/* end confdefs.h. */
8245
rm -f conftest.$ac_objext conftest$ac_exeext
8246
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8247
(eval $ac_link) 2>conftest.er1
8249
grep -v '^ *+' conftest.er1 >conftest.err
8251
cat conftest.err >&5
8252
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253
(exit $ac_status); } &&
8254
{ ac_try='test -z "$ac_c_werror_flag"
8255
|| test ! -s conftest.err'
8256
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260
(exit $ac_status); }; } &&
8261
{ ac_try='test -s conftest$ac_exeext'
8262
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266
(exit $ac_status); }; }; then
8268
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8270
# Check for a 64-bit object if we didn't find anything.
8271
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; }
8274
echo "$as_me: failed program was:" >&5
8275
sed 's/^/| /' conftest.$ac_ext >&5
8278
rm -f conftest.err conftest.$ac_objext \
8279
conftest$ac_exeext conftest.$ac_ext
8280
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8282
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8283
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"
8285
if test "$host_cpu" = ia64; then
8286
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8287
allow_undefined_flag="-z nodefs"
8288
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"
8290
# Determine the default libpath from the value encoded in an empty executable.
8291
cat >conftest.$ac_ext <<_ACEOF
8294
cat confdefs.h >>conftest.$ac_ext
8295
cat >>conftest.$ac_ext <<_ACEOF
8296
/* end confdefs.h. */
8306
rm -f conftest.$ac_objext conftest$ac_exeext
8307
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8308
(eval $ac_link) 2>conftest.er1
8310
grep -v '^ *+' conftest.er1 >conftest.err
8312
cat conftest.err >&5
8313
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314
(exit $ac_status); } &&
8315
{ ac_try='test -z "$ac_c_werror_flag"
8316
|| test ! -s conftest.err'
8317
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321
(exit $ac_status); }; } &&
8322
{ ac_try='test -s conftest$ac_exeext'
8323
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327
(exit $ac_status); }; }; then
8329
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8331
# Check for a 64-bit object if we didn't find anything.
8332
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; }
8335
echo "$as_me: failed program was:" >&5
8336
sed 's/^/| /' conftest.$ac_ext >&5
8339
rm -f conftest.err conftest.$ac_objext \
8340
conftest$ac_exeext conftest.$ac_ext
8341
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8343
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8344
# Warning - without using the other run time loading flags,
8345
# -berok will link without error, but may produce a broken library.
8346
no_undefined_flag=' ${wl}-bernotok'
8347
allow_undefined_flag=' ${wl}-berok'
8348
# -bexpall does not export symbols beginning with underscore (_)
8349
always_export_symbols=yes
8350
# Exported symbols can be pulled into shared objects from archives
8351
whole_archive_flag_spec=' '
8352
archive_cmds_need_lc=yes
8353
# This is similar to how AIX traditionally builds it's shared libraries.
8354
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'
8360
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)'
8361
hardcode_libdir_flag_spec='-L$libdir'
8362
hardcode_minus_L=yes
8363
# see comment about different semantics on the GNU ld section
8368
export_dynamic_flag_spec=-rdynamic
8371
cygwin* | mingw* | pw32*)
8372
# When not using gcc, we currently assume that we are using
8373
# Microsoft Visual C++.
8374
# hardcode_libdir_flag_spec is actually meaningless, as there is
8375
# no search path for DLLs.
8376
hardcode_libdir_flag_spec=' '
8377
allow_undefined_flag=unsupported
8378
# Tell ltmain to make .lib files, not .a files.
8380
# Tell ltmain to make .dll files, not .so files.
8382
# FIXME: Setting linknames here is a bad hack.
8383
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8384
# The linker will automatically build a .lib file if we build a DLL.
8385
old_archive_From_new_cmds='true'
8386
# FIXME: Should let the user specify the lib program.
8387
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8388
fix_srcfile_path='`cygpath -w "$srcfile"`'
8389
enable_shared_with_static_runtimes=yes
8392
darwin* | rhapsody*)
8394
rhapsody* | darwin1.[012])
8395
allow_undefined_flag='${wl}-undefined ${wl}suppress'
8398
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8399
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8401
case ${MACOSX_DEPLOYMENT_TARGET} in
8403
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8406
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8412
archive_cmds_need_lc=no
8414
hardcode_automatic=yes
8415
hardcode_shlibpath_var=unsupported
8416
whole_archive_flag_spec=''
8417
link_all_deplibs=yes
8418
if test "$GCC" = yes ; then
8419
output_verbose_link_cmd='echo'
8420
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8421
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8422
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8423
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}'
8424
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}'
8426
case "$cc_basename" in
8428
output_verbose_link_cmd='echo'
8429
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8430
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8431
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8432
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}'
8433
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}'
8443
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8444
hardcode_libdir_flag_spec='-L$libdir'
8445
hardcode_shlibpath_var=no
8452
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8453
# support. Future versions do this automatically, but an explicit c++rt0.o
8454
# does not break anything, and helps significantly (at the cost of a little
8457
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8458
hardcode_libdir_flag_spec='-R$libdir'
8460
hardcode_shlibpath_var=no
8463
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8465
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8467
hardcode_minus_L=yes
8468
hardcode_shlibpath_var=no
8471
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8472
freebsd* | kfreebsd*-gnu | dragonfly*)
8473
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8474
hardcode_libdir_flag_spec='-R$libdir'
8476
hardcode_shlibpath_var=no
8480
if test "$GCC" = yes; then
8481
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'
8483
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'
8485
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8486
hardcode_libdir_separator=:
8489
# hardcode_minus_L: Not really in the search PATH,
8490
# but as the default location of the library.
8491
hardcode_minus_L=yes
8492
export_dynamic_flag_spec='${wl}-E'
8496
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8499
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8502
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8508
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8511
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8515
if test "$with_gnu_ld" = no; then
8518
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8519
hardcode_libdir_flag_spec_ld='+b $libdir'
8520
hardcode_libdir_separator=:
8522
hardcode_shlibpath_var=no
8525
hardcode_libdir_flag_spec='-L$libdir'
8527
hardcode_shlibpath_var=no
8529
# hardcode_minus_L: Not really in the search PATH,
8530
# but as the default location of the library.
8531
hardcode_minus_L=yes
8534
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8535
hardcode_libdir_separator=:
8537
export_dynamic_flag_spec='${wl}-E'
8539
# hardcode_minus_L: Not really in the search PATH,
8540
# but as the default location of the library.
8541
hardcode_minus_L=yes
8547
irix5* | irix6* | nonstopux*)
8548
if test "$GCC" = yes; then
8549
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'
8551
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'
8552
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8554
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8555
hardcode_libdir_separator=:
8556
link_all_deplibs=yes
8560
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8561
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8563
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8565
hardcode_libdir_flag_spec='-R$libdir'
8567
hardcode_shlibpath_var=no
8571
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8573
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8574
hardcode_libdir_separator=:
8575
hardcode_shlibpath_var=no
8580
hardcode_shlibpath_var=no
8581
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8582
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8583
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8584
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8585
export_dynamic_flag_spec='${wl}-E'
8588
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8589
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8590
hardcode_libdir_flag_spec='-R$libdir'
8593
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8594
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8601
hardcode_libdir_flag_spec='-L$libdir'
8602
hardcode_minus_L=yes
8603
allow_undefined_flag=unsupported
8604
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'
8605
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8609
if test "$GCC" = yes; then
8610
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8611
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'
8613
allow_undefined_flag=' -expect_unresolved \*'
8614
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'
8616
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8617
hardcode_libdir_separator=:
8620
osf4* | osf5*) # as osf3* with the addition of -msym flag
8621
if test "$GCC" = yes; then
8622
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8623
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'
8624
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8626
allow_undefined_flag=' -expect_unresolved \*'
8627
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'
8628
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8629
$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'
8631
# Both c and cxx compiler support -rpath directly
8632
hardcode_libdir_flag_spec='-rpath $libdir'
8634
hardcode_libdir_separator=:
8638
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8639
hardcode_shlibpath_var=no
8640
export_dynamic_flag_spec='${wl}-Bexport'
8641
runpath_var=LD_RUN_PATH
8642
hardcode_runpath_var=yes
8646
no_undefined_flag=' -z text'
8647
if test "$GCC" = yes; then
8648
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8649
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8650
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8652
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8653
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8654
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8656
hardcode_libdir_flag_spec='-R$libdir'
8657
hardcode_shlibpath_var=no
8659
solaris2.[0-5] | solaris2.[0-5].*) ;;
8660
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
8661
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
8663
link_all_deplibs=yes
8667
if test "x$host_vendor" = xsequent; then
8668
# Use $CC to link under sequent, because it throws in some extra .o
8669
# files that make .init and .fini sections work.
8670
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8672
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8674
hardcode_libdir_flag_spec='-L$libdir'
8676
hardcode_minus_L=yes
8677
hardcode_shlibpath_var=no
8681
case $host_vendor in
8683
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8684
hardcode_direct=yes # is this really true???
8687
## LD is ld it makes a PLAMLIB
8688
## CC just makes a GrossModule.
8689
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8690
reload_cmds='$CC -r -o $output$reload_objs'
8694
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8695
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8698
runpath_var='LD_RUN_PATH'
8699
hardcode_shlibpath_var=no
8703
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8704
hardcode_shlibpath_var=no
8705
export_dynamic_flag_spec='-Bexport'
8709
if test -d /usr/nec; then
8710
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8711
hardcode_shlibpath_var=no
8712
runpath_var=LD_RUN_PATH
8713
hardcode_runpath_var=yes
8719
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8722
hardcode_shlibpath_var=no
8723
hardcode_runpath_var=yes
8724
runpath_var=LD_RUN_PATH
8727
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8728
no_undefined_flag='${wl}-z ${wl}text'
8729
if test "$GCC" = yes; then
8730
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8732
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8734
runpath_var='LD_RUN_PATH'
8735
hardcode_shlibpath_var=no
8739
no_undefined_flag=' -z text'
8740
# $CC -shared without GNU ld will not create a library from C++
8741
# object files and a static libstdc++, better avoid it by now
8742
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8743
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8744
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8745
hardcode_libdir_flag_spec=
8746
hardcode_shlibpath_var=no
8747
runpath_var='LD_RUN_PATH'
8751
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8752
hardcode_libdir_flag_spec='-L$libdir'
8753
hardcode_shlibpath_var=no
8762
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8763
echo "${ECHO_T}$ld_shlibs" >&6
8764
test "$ld_shlibs" = no && can_build_shared=no
8766
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8767
if test "$GCC" = yes; then
8768
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8772
# Do we need to explicitly link libc?
8774
case "x$archive_cmds_need_lc" in
8776
# Assume -lc should be added
8777
archive_cmds_need_lc=yes
8779
if test "$enable_shared" = yes && test "$GCC" = yes; then
8780
case $archive_cmds in
8782
# FIXME: we may have to deal with multi-command sequences.
8785
# Test whether the compiler implicitly links with -lc since on some
8786
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8787
# to ld, don't add -lc before -lgcc.
8788
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8789
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8791
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8793
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8794
(eval $ac_compile) 2>&5
8796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797
(exit $ac_status); } 2>conftest.err; then
8800
libobjs=conftest.$ac_objext
8802
wl=$lt_prog_compiler_wl
8808
lt_save_allow_undefined_flag=$allow_undefined_flag
8809
allow_undefined_flag=
8810
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8811
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8813
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814
(exit $ac_status); }
8816
archive_cmds_need_lc=no
8818
archive_cmds_need_lc=yes
8820
allow_undefined_flag=$lt_save_allow_undefined_flag
8822
cat conftest.err 1>&5
8825
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8826
echo "${ECHO_T}$archive_cmds_need_lc" >&6
8833
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8834
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8836
libname_spec='lib$name'
8844
shlibpath_overrides_runpath=unknown
8846
dynamic_linker="$host_os ld.so"
8847
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8848
if test "$GCC" = yes; then
8849
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8850
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8851
# if the path contains ";" then we assume it to be the separator
8852
# otherwise default to the standard path separator (i.e. ":") - it is
8853
# assumed that no part of a normal pathname contains ";" but that should
8854
# okay in the real world where ";" in dirpaths is itself problematic.
8855
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8857
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8860
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8862
need_lib_prefix=unknown
8863
hardcode_into_libs=no
8865
# when you set need_version to no, make sure it does not cause -set_version
8866
# flags to be left without arguments
8867
need_version=unknown
8872
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8873
shlibpath_var=LIBPATH
8875
# AIX 3 has no versioning support, so we append a major version to the name.
8876
soname_spec='${libname}${release}${shared_ext}$major'
8883
hardcode_into_libs=yes
8884
if test "$host_cpu" = ia64; then
8885
# AIX 5 supports IA64
8886
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8887
shlibpath_var=LD_LIBRARY_PATH
8889
# With GCC up to 2.95.x, collect2 would create an import file
8890
# for dependence libraries. The import file would start with
8891
# the line `#! .'. This would cause the generated library to
8892
# depend on `.', always an invalid library. This was fixed in
8893
# development snapshots of GCC prior to 3.0.
8895
aix4 | aix4.[01] | aix4.[01].*)
8896
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8898
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8905
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8906
# soname into executable. Probably we can add versioning support to
8907
# collect2, so additional links can be useful in future.
8908
if test "$aix_use_runtimelinking" = yes; then
8909
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
8910
# instead of lib<name>.a to let people know that these are not
8911
# typical AIX shared libraries.
8912
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8914
# We preserve .a as extension for shared libraries through AIX4.2
8915
# and later when we are not doing run time linking.
8916
library_names_spec='${libname}${release}.a $libname.a'
8917
soname_spec='${libname}${release}${shared_ext}$major'
8919
shlibpath_var=LIBPATH
8924
library_names_spec='$libname.ixlibrary $libname.a'
8925
# Create ${libname}_ixlibrary.a entries in /sys/libs.
8926
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'
8930
library_names_spec='${libname}${shared_ext}'
8931
dynamic_linker="$host_os ld.so"
8932
shlibpath_var=LIBRARY_PATH
8938
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8939
soname_spec='${libname}${release}${shared_ext}$major'
8940
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8941
shlibpath_var=LD_LIBRARY_PATH
8942
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8943
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8944
# the default ld.so.conf also contains /usr/contrib/lib and
8945
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8946
# libtool to hard-code these into programs
8949
cygwin* | mingw* | pw32*)
8950
version_type=windows
8955
case $GCC,$host_os in
8956
yes,cygwin* | yes,mingw* | yes,pw32*)
8957
library_names_spec='$libname.dll.a'
8958
# DLL is installed to $(libdir)/../bin by postinstall_cmds
8959
postinstall_cmds='base_file=`basename \${file}`~
8960
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8961
dldir=$destdir/`dirname \$dlpath`~
8962
test -d \$dldir || mkdir -p \$dldir~
8963
$install_prog $dir/$dlname \$dldir/$dlname'
8964
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8965
dlpath=$dir/\$dldll~
8967
shlibpath_overrides_runpath=yes
8971
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
8972
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8973
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8976
# MinGW DLLs use traditional 'lib' prefix
8977
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8978
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8979
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8980
# It is most probably a Windows format PATH printed by
8981
# mingw gcc, but we are running on Cygwin. Gcc prints its search
8982
# path with ; separators, and with drive letters. We can handle the
8983
# drive letters (cygwin fileutils understands them), so leave them,
8984
# especially as we might pass files found there to a mingw objdump,
8985
# which wouldn't understand a cygwinified path. Ahh.
8986
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8988
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8992
# pw32 DLLs use 'pw' prefix rather than 'lib'
8993
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8999
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9002
dynamic_linker='Win32 ld.exe'
9003
# FIXME: first we should search . and the directory the executable is in
9007
darwin* | rhapsody*)
9008
dynamic_linker="$host_os dyld"
9012
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9013
soname_spec='${libname}${release}${major}$shared_ext'
9014
shlibpath_overrides_runpath=yes
9015
shlibpath_var=DYLD_LIBRARY_PATH
9016
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9017
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9018
if test "$GCC" = yes; then
9019
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"`
9021
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9023
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9030
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9031
soname_spec='${libname}${release}${shared_ext}$major'
9032
shlibpath_var=LD_LIBRARY_PATH
9043
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9044
soname_spec='${libname}${release}${shared_ext}$major'
9045
shlibpath_var=LD_LIBRARY_PATH
9046
shlibpath_overrides_runpath=no
9047
hardcode_into_libs=yes
9048
dynamic_linker='GNU ld.so'
9051
freebsd* | dragonfly*)
9052
# DragonFly does not have aout. When/if they implement a new
9053
# versioning mechanism, adjust this.
9054
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9055
version_type=freebsd-$objformat
9056
case $version_type in
9058
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9063
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9067
shlibpath_var=LD_LIBRARY_PATH
9070
shlibpath_overrides_runpath=yes
9072
freebsd3.[01]* | freebsdelf3.[01]*)
9073
shlibpath_overrides_runpath=yes
9074
hardcode_into_libs=yes
9077
shlibpath_overrides_runpath=no
9078
hardcode_into_libs=yes
9087
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9088
soname_spec='${libname}${release}${shared_ext}$major'
9089
shlibpath_var=LD_LIBRARY_PATH
9090
hardcode_into_libs=yes
9093
hpux9* | hpux10* | hpux11*)
9094
# Give a soname corresponding to the major version so that dld.sl refuses to
9095
# link against other versions.
9102
hardcode_into_libs=yes
9103
dynamic_linker="$host_os dld.so"
9104
shlibpath_var=LD_LIBRARY_PATH
9105
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9106
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9107
soname_spec='${libname}${release}${shared_ext}$major'
9108
if test "X$HPUX_IA64_MODE" = X32; then
9109
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9111
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9113
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9117
hardcode_into_libs=yes
9118
dynamic_linker="$host_os dld.sl"
9119
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9120
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9121
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9122
soname_spec='${libname}${release}${shared_ext}$major'
9123
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9124
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9128
dynamic_linker="$host_os dld.sl"
9129
shlibpath_var=SHLIB_PATH
9130
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9131
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9132
soname_spec='${libname}${release}${shared_ext}$major'
9135
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9136
postinstall_cmds='chmod 555 $lib'
9139
irix5* | irix6* | nonstopux*)
9141
nonstopux*) version_type=nonstopux ;;
9143
if test "$lt_cv_prog_gnu_ld" = yes; then
9151
soname_spec='${libname}${release}${shared_ext}$major'
9152
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9154
irix5* | nonstopux*)
9158
case $LD in # libtool.m4 will add one of these switches to LD
9159
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9160
libsuff= shlibsuff= libmagic=32-bit;;
9161
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9162
libsuff=32 shlibsuff=N32 libmagic=N32;;
9163
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9164
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9165
*) libsuff= shlibsuff= libmagic=never-match;;
9169
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9170
shlibpath_overrides_runpath=no
9171
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9172
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9173
hardcode_into_libs=yes
9176
# No shared lib support for Linux oldld, aout, or coff.
9177
linux*oldld* | linux*aout* | linux*coff*)
9181
# This must be Linux ELF.
9186
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187
soname_spec='${libname}${release}${shared_ext}$major'
9188
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9189
shlibpath_var=LD_LIBRARY_PATH
9190
shlibpath_overrides_runpath=no
9191
# This implies no fast_install, which is unacceptable.
9192
# Some rework will be needed to allow for fast_install
9193
# before this can be enabled.
9194
hardcode_into_libs=yes
9196
# Append ld.so.conf contents to the search path
9197
if test -f /etc/ld.so.conf; then
9198
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' ' '`
9199
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9202
# We used to test for /lib/ld.so.1 and disable shared libraries on
9203
# powerpc, because MkLinux only supported shared libraries with the
9204
# GNU dynamic linker. Since this was broken with cross compilers,
9205
# most powerpc-linux boxes support dynamic linking these days and
9206
# people can always --disable-shared, the test was removed, and we
9207
# assume the GNU/Linux dynamic linker is in use.
9208
dynamic_linker='GNU/Linux ld.so'
9215
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9216
soname_spec='${libname}${release}${shared_ext}$major'
9217
shlibpath_var=LD_LIBRARY_PATH
9218
shlibpath_overrides_runpath=no
9219
hardcode_into_libs=yes
9220
dynamic_linker='GNU ld.so'
9227
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9228
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9229
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9230
dynamic_linker='NetBSD (a.out) ld.so'
9232
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9233
soname_spec='${libname}${release}${shared_ext}$major'
9234
dynamic_linker='NetBSD ld.elf_so'
9236
shlibpath_var=LD_LIBRARY_PATH
9237
shlibpath_overrides_runpath=yes
9238
hardcode_into_libs=yes
9243
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9244
shlibpath_var=LD_LIBRARY_PATH
9245
shlibpath_overrides_runpath=yes
9252
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9253
soname_spec='${libname}${release}${shared_ext}$major'
9254
shlibpath_var=LD_LIBRARY_PATH
9255
shlibpath_overrides_runpath=yes
9262
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9263
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9264
shlibpath_var=LD_LIBRARY_PATH
9265
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9267
openbsd2.[89] | openbsd2.[89].*)
9268
shlibpath_overrides_runpath=no
9271
shlibpath_overrides_runpath=yes
9275
shlibpath_overrides_runpath=yes
9280
libname_spec='$name'
9283
library_names_spec='$libname${shared_ext} $libname.a'
9284
dynamic_linker='OS/2 ld.exe'
9285
shlibpath_var=LIBPATH
9288
osf3* | osf4* | osf5*)
9292
soname_spec='${libname}${release}${shared_ext}$major'
9293
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9294
shlibpath_var=LD_LIBRARY_PATH
9295
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9296
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9301
soname_spec='${libname}${release}${shared_ext}$major'
9302
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9303
shlibpath_var=LD_LIBRARY_PATH
9310
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9311
soname_spec='${libname}${release}${shared_ext}$major'
9312
shlibpath_var=LD_LIBRARY_PATH
9313
shlibpath_overrides_runpath=yes
9314
hardcode_into_libs=yes
9315
# ldd complains unless libraries are executable
9316
postinstall_cmds='chmod +x $lib'
9321
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9322
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9323
shlibpath_var=LD_LIBRARY_PATH
9324
shlibpath_overrides_runpath=yes
9325
if test "$with_gnu_ld" = yes; then
9331
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9333
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9334
soname_spec='${libname}${release}${shared_ext}$major'
9335
shlibpath_var=LD_LIBRARY_PATH
9336
case $host_vendor in
9338
shlibpath_overrides_runpath=no
9340
export_dynamic_flag_spec='${wl}-Blargedynsym'
9341
runpath_var=LD_RUN_PATH
9349
shlibpath_overrides_runpath=no
9350
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9356
if test -d /usr/nec ;then
9358
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9359
soname_spec='$libname${shared_ext}.$major'
9360
shlibpath_var=LD_LIBRARY_PATH
9366
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9367
soname_spec='${libname}${release}${shared_ext}$major'
9368
shlibpath_var=LD_LIBRARY_PATH
9375
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9376
echo "${ECHO_T}$dynamic_linker" >&6
9377
test "$dynamic_linker" = no && can_build_shared=no
9379
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9380
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9382
if test -n "$hardcode_libdir_flag_spec" || \
9383
test -n "$runpath_var" || \
9384
test "X$hardcode_automatic" = "Xyes" ; then
9386
# We can hardcode non-existant directories.
9387
if test "$hardcode_direct" != no &&
9388
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9389
# have to relink, otherwise we might link with an installed library
9390
# when we should be linking with a yet-to-be-installed one
9391
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9392
test "$hardcode_minus_L" != no; then
9393
# Linking always hardcodes the temporary library directory.
9394
hardcode_action=relink
9396
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9397
hardcode_action=immediate
9400
# We cannot hardcode anything, or else we can only hardcode existing
9402
hardcode_action=unsupported
9404
echo "$as_me:$LINENO: result: $hardcode_action" >&5
9405
echo "${ECHO_T}$hardcode_action" >&6
9407
if test "$hardcode_action" = relink; then
9408
# Fast installation is not supported
9409
enable_fast_install=no
9410
elif test "$shlibpath_overrides_runpath" = yes ||
9411
test "$enable_shared" = no; then
9412
# Fast installation is not necessary
9413
enable_fast_install=needless
9418
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9419
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9420
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9421
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9422
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9423
echo "$as_me:$LINENO: result: yes" >&5
9424
echo "${ECHO_T}yes" >&6
9426
# FIXME - insert some real tests, host_os isn't really good enough
9429
if test -n "$STRIP" ; then
9430
striplib="$STRIP -x"
9431
echo "$as_me:$LINENO: result: yes" >&5
9432
echo "${ECHO_T}yes" >&6
9434
echo "$as_me:$LINENO: result: no" >&5
9435
echo "${ECHO_T}no" >&6
9439
echo "$as_me:$LINENO: result: no" >&5
9440
echo "${ECHO_T}no" >&6
9445
if test "x$enable_dlopen" != xyes; then
9446
enable_dlopen=unknown
9447
enable_dlopen_self=unknown
9448
enable_dlopen_self_static=unknown
9455
lt_cv_dlopen="load_add_on"
9457
lt_cv_dlopen_self=yes
9461
lt_cv_dlopen="LoadLibrary"
9466
lt_cv_dlopen="dlopen"
9471
# if libdl is installed we need to link against it
9472
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9473
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9474
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9475
echo $ECHO_N "(cached) $ECHO_C" >&6
9477
ac_check_lib_save_LIBS=$LIBS
9479
cat >conftest.$ac_ext <<_ACEOF
9482
cat confdefs.h >>conftest.$ac_ext
9483
cat >>conftest.$ac_ext <<_ACEOF
9484
/* end confdefs.h. */
9486
/* Override any gcc2 internal prototype to avoid an error. */
9490
/* We use char because int might match the return type of a gcc2
9491
builtin and then its argument prototype would still apply. */
9501
rm -f conftest.$ac_objext conftest$ac_exeext
9502
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9503
(eval $ac_link) 2>conftest.er1
9505
grep -v '^ *+' conftest.er1 >conftest.err
9507
cat conftest.err >&5
9508
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509
(exit $ac_status); } &&
9510
{ ac_try='test -z "$ac_c_werror_flag"
9511
|| test ! -s conftest.err'
9512
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9515
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516
(exit $ac_status); }; } &&
9517
{ ac_try='test -s conftest$ac_exeext'
9518
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9521
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522
(exit $ac_status); }; }; then
9523
ac_cv_lib_dl_dlopen=yes
9525
echo "$as_me: failed program was:" >&5
9526
sed 's/^/| /' conftest.$ac_ext >&5
9528
ac_cv_lib_dl_dlopen=no
9530
rm -f conftest.err conftest.$ac_objext \
9531
conftest$ac_exeext conftest.$ac_ext
9532
LIBS=$ac_check_lib_save_LIBS
9534
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9535
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9536
if test $ac_cv_lib_dl_dlopen = yes; then
9537
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9542
lt_cv_dlopen_self=yes
9549
echo "$as_me:$LINENO: checking for shl_load" >&5
9550
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9551
if test "${ac_cv_func_shl_load+set}" = set; then
9552
echo $ECHO_N "(cached) $ECHO_C" >&6
9554
cat >conftest.$ac_ext <<_ACEOF
9557
cat confdefs.h >>conftest.$ac_ext
9558
cat >>conftest.$ac_ext <<_ACEOF
9559
/* end confdefs.h. */
9560
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9561
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9562
#define shl_load innocuous_shl_load
9564
/* System header to define __stub macros and hopefully few prototypes,
9565
which can conflict with char shl_load (); below.
9566
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9567
<limits.h> exists even on freestanding compilers. */
9570
# include <limits.h>
9572
# include <assert.h>
9577
/* Override any gcc2 internal prototype to avoid an error. */
9582
/* We use char because int might match the return type of a gcc2
9583
builtin and then its argument prototype would still apply. */
9585
/* The GNU C library defines this for functions which it implements
9586
to always fail with ENOSYS. Some functions are actually named
9587
something starting with __ and the normal name is an alias. */
9588
#if defined (__stub_shl_load) || defined (__stub___shl_load)
9591
char (*f) () = shl_load;
9600
return f != shl_load;
9605
rm -f conftest.$ac_objext conftest$ac_exeext
9606
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9607
(eval $ac_link) 2>conftest.er1
9609
grep -v '^ *+' conftest.er1 >conftest.err
9611
cat conftest.err >&5
9612
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613
(exit $ac_status); } &&
9614
{ ac_try='test -z "$ac_c_werror_flag"
9615
|| test ! -s conftest.err'
9616
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620
(exit $ac_status); }; } &&
9621
{ ac_try='test -s conftest$ac_exeext'
9622
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626
(exit $ac_status); }; }; then
9627
ac_cv_func_shl_load=yes
9629
echo "$as_me: failed program was:" >&5
9630
sed 's/^/| /' conftest.$ac_ext >&5
9632
ac_cv_func_shl_load=no
9634
rm -f conftest.err conftest.$ac_objext \
9635
conftest$ac_exeext conftest.$ac_ext
9637
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9638
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9639
if test $ac_cv_func_shl_load = yes; then
9640
lt_cv_dlopen="shl_load"
9642
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9643
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9644
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9645
echo $ECHO_N "(cached) $ECHO_C" >&6
9647
ac_check_lib_save_LIBS=$LIBS
9649
cat >conftest.$ac_ext <<_ACEOF
9652
cat confdefs.h >>conftest.$ac_ext
9653
cat >>conftest.$ac_ext <<_ACEOF
9654
/* end confdefs.h. */
9656
/* Override any gcc2 internal prototype to avoid an error. */
9660
/* We use char because int might match the return type of a gcc2
9661
builtin and then its argument prototype would still apply. */
9671
rm -f conftest.$ac_objext conftest$ac_exeext
9672
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9673
(eval $ac_link) 2>conftest.er1
9675
grep -v '^ *+' conftest.er1 >conftest.err
9677
cat conftest.err >&5
9678
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679
(exit $ac_status); } &&
9680
{ ac_try='test -z "$ac_c_werror_flag"
9681
|| test ! -s conftest.err'
9682
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686
(exit $ac_status); }; } &&
9687
{ ac_try='test -s conftest$ac_exeext'
9688
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692
(exit $ac_status); }; }; then
9693
ac_cv_lib_dld_shl_load=yes
9695
echo "$as_me: failed program was:" >&5
9696
sed 's/^/| /' conftest.$ac_ext >&5
9698
ac_cv_lib_dld_shl_load=no
9700
rm -f conftest.err conftest.$ac_objext \
9701
conftest$ac_exeext conftest.$ac_ext
9702
LIBS=$ac_check_lib_save_LIBS
9704
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9705
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9706
if test $ac_cv_lib_dld_shl_load = yes; then
9707
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9709
echo "$as_me:$LINENO: checking for dlopen" >&5
9710
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9711
if test "${ac_cv_func_dlopen+set}" = set; then
9712
echo $ECHO_N "(cached) $ECHO_C" >&6
9714
cat >conftest.$ac_ext <<_ACEOF
9717
cat confdefs.h >>conftest.$ac_ext
9718
cat >>conftest.$ac_ext <<_ACEOF
9719
/* end confdefs.h. */
9720
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9721
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9722
#define dlopen innocuous_dlopen
9724
/* System header to define __stub macros and hopefully few prototypes,
9725
which can conflict with char dlopen (); below.
9726
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9727
<limits.h> exists even on freestanding compilers. */
9730
# include <limits.h>
9732
# include <assert.h>
9737
/* Override any gcc2 internal prototype to avoid an error. */
9742
/* We use char because int might match the return type of a gcc2
9743
builtin and then its argument prototype would still apply. */
9745
/* The GNU C library defines this for functions which it implements
9746
to always fail with ENOSYS. Some functions are actually named
9747
something starting with __ and the normal name is an alias. */
9748
#if defined (__stub_dlopen) || defined (__stub___dlopen)
9751
char (*f) () = dlopen;
9765
rm -f conftest.$ac_objext conftest$ac_exeext
9766
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9767
(eval $ac_link) 2>conftest.er1
9769
grep -v '^ *+' conftest.er1 >conftest.err
9771
cat conftest.err >&5
9772
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773
(exit $ac_status); } &&
9774
{ ac_try='test -z "$ac_c_werror_flag"
9775
|| test ! -s conftest.err'
9776
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780
(exit $ac_status); }; } &&
9781
{ ac_try='test -s conftest$ac_exeext'
9782
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786
(exit $ac_status); }; }; then
9787
ac_cv_func_dlopen=yes
9789
echo "$as_me: failed program was:" >&5
9790
sed 's/^/| /' conftest.$ac_ext >&5
9792
ac_cv_func_dlopen=no
9794
rm -f conftest.err conftest.$ac_objext \
9795
conftest$ac_exeext conftest.$ac_ext
9797
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9798
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9799
if test $ac_cv_func_dlopen = yes; then
9800
lt_cv_dlopen="dlopen"
9802
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9803
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9804
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9805
echo $ECHO_N "(cached) $ECHO_C" >&6
9807
ac_check_lib_save_LIBS=$LIBS
9809
cat >conftest.$ac_ext <<_ACEOF
9812
cat confdefs.h >>conftest.$ac_ext
9813
cat >>conftest.$ac_ext <<_ACEOF
9814
/* end confdefs.h. */
9816
/* Override any gcc2 internal prototype to avoid an error. */
9820
/* We use char because int might match the return type of a gcc2
9821
builtin and then its argument prototype would still apply. */
9831
rm -f conftest.$ac_objext conftest$ac_exeext
9832
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9833
(eval $ac_link) 2>conftest.er1
9835
grep -v '^ *+' conftest.er1 >conftest.err
9837
cat conftest.err >&5
9838
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839
(exit $ac_status); } &&
9840
{ ac_try='test -z "$ac_c_werror_flag"
9841
|| test ! -s conftest.err'
9842
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846
(exit $ac_status); }; } &&
9847
{ ac_try='test -s conftest$ac_exeext'
9848
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852
(exit $ac_status); }; }; then
9853
ac_cv_lib_dl_dlopen=yes
9855
echo "$as_me: failed program was:" >&5
9856
sed 's/^/| /' conftest.$ac_ext >&5
9858
ac_cv_lib_dl_dlopen=no
9860
rm -f conftest.err conftest.$ac_objext \
9861
conftest$ac_exeext conftest.$ac_ext
9862
LIBS=$ac_check_lib_save_LIBS
9864
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9865
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9866
if test $ac_cv_lib_dl_dlopen = yes; then
9867
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9869
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9870
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9871
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9872
echo $ECHO_N "(cached) $ECHO_C" >&6
9874
ac_check_lib_save_LIBS=$LIBS
9876
cat >conftest.$ac_ext <<_ACEOF
9879
cat confdefs.h >>conftest.$ac_ext
9880
cat >>conftest.$ac_ext <<_ACEOF
9881
/* end confdefs.h. */
9883
/* Override any gcc2 internal prototype to avoid an error. */
9887
/* We use char because int might match the return type of a gcc2
9888
builtin and then its argument prototype would still apply. */
9898
rm -f conftest.$ac_objext conftest$ac_exeext
9899
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9900
(eval $ac_link) 2>conftest.er1
9902
grep -v '^ *+' conftest.er1 >conftest.err
9904
cat conftest.err >&5
9905
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906
(exit $ac_status); } &&
9907
{ ac_try='test -z "$ac_c_werror_flag"
9908
|| test ! -s conftest.err'
9909
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913
(exit $ac_status); }; } &&
9914
{ ac_try='test -s conftest$ac_exeext'
9915
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919
(exit $ac_status); }; }; then
9920
ac_cv_lib_svld_dlopen=yes
9922
echo "$as_me: failed program was:" >&5
9923
sed 's/^/| /' conftest.$ac_ext >&5
9925
ac_cv_lib_svld_dlopen=no
9927
rm -f conftest.err conftest.$ac_objext \
9928
conftest$ac_exeext conftest.$ac_ext
9929
LIBS=$ac_check_lib_save_LIBS
9931
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9932
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9933
if test $ac_cv_lib_svld_dlopen = yes; then
9934
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9936
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9937
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9938
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9939
echo $ECHO_N "(cached) $ECHO_C" >&6
9941
ac_check_lib_save_LIBS=$LIBS
9943
cat >conftest.$ac_ext <<_ACEOF
9946
cat confdefs.h >>conftest.$ac_ext
9947
cat >>conftest.$ac_ext <<_ACEOF
9948
/* end confdefs.h. */
9950
/* Override any gcc2 internal prototype to avoid an error. */
9954
/* We use char because int might match the return type of a gcc2
9955
builtin and then its argument prototype would still apply. */
9965
rm -f conftest.$ac_objext conftest$ac_exeext
9966
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9967
(eval $ac_link) 2>conftest.er1
9969
grep -v '^ *+' conftest.er1 >conftest.err
9971
cat conftest.err >&5
9972
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973
(exit $ac_status); } &&
9974
{ ac_try='test -z "$ac_c_werror_flag"
9975
|| test ! -s conftest.err'
9976
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980
(exit $ac_status); }; } &&
9981
{ ac_try='test -s conftest$ac_exeext'
9982
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986
(exit $ac_status); }; }; then
9987
ac_cv_lib_dld_dld_link=yes
9989
echo "$as_me: failed program was:" >&5
9990
sed 's/^/| /' conftest.$ac_ext >&5
9992
ac_cv_lib_dld_dld_link=no
9994
rm -f conftest.err conftest.$ac_objext \
9995
conftest$ac_exeext conftest.$ac_ext
9996
LIBS=$ac_check_lib_save_LIBS
9998
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9999
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10000
if test $ac_cv_lib_dld_dld_link = yes; then
10001
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10022
if test "x$lt_cv_dlopen" != xno; then
10028
case $lt_cv_dlopen in
10030
save_CPPFLAGS="$CPPFLAGS"
10031
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10033
save_LDFLAGS="$LDFLAGS"
10034
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10037
LIBS="$lt_cv_dlopen_libs $LIBS"
10039
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10040
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10041
if test "${lt_cv_dlopen_self+set}" = set; then
10042
echo $ECHO_N "(cached) $ECHO_C" >&6
10044
if test "$cross_compiling" = yes; then :
10045
lt_cv_dlopen_self=cross
10047
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10048
lt_status=$lt_dlunknown
10049
cat > conftest.$ac_ext <<EOF
10050
#line __oline__ "configure"
10051
#include "confdefs.h"
10060
# define LT_DLGLOBAL RTLD_GLOBAL
10063
# define LT_DLGLOBAL DL_GLOBAL
10065
# define LT_DLGLOBAL 0
10069
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10070
find out it does not work in some platform. */
10071
#ifndef LT_DLLAZY_OR_NOW
10073
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10076
# define LT_DLLAZY_OR_NOW DL_LAZY
10079
# define LT_DLLAZY_OR_NOW RTLD_NOW
10082
# define LT_DLLAZY_OR_NOW DL_NOW
10084
# define LT_DLLAZY_OR_NOW 0
10092
extern "C" void exit (int);
10095
void fnord() { int i=42;}
10098
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10099
int status = $lt_dlunknown;
10103
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10104
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10105
/* dlclose (self); */
10111
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10112
(eval $ac_link) 2>&5
10114
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10116
(./conftest; exit; ) 2>/dev/null
10118
case x$lt_status in
10119
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10120
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10121
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10124
# compilation failed
10125
lt_cv_dlopen_self=no
10132
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10133
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10135
if test "x$lt_cv_dlopen_self" = xyes; then
10136
LDFLAGS="$LDFLAGS $link_static_flag"
10137
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10138
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10139
if test "${lt_cv_dlopen_self_static+set}" = set; then
10140
echo $ECHO_N "(cached) $ECHO_C" >&6
10142
if test "$cross_compiling" = yes; then :
10143
lt_cv_dlopen_self_static=cross
10145
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10146
lt_status=$lt_dlunknown
10147
cat > conftest.$ac_ext <<EOF
10148
#line __oline__ "configure"
10149
#include "confdefs.h"
10158
# define LT_DLGLOBAL RTLD_GLOBAL
10161
# define LT_DLGLOBAL DL_GLOBAL
10163
# define LT_DLGLOBAL 0
10167
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10168
find out it does not work in some platform. */
10169
#ifndef LT_DLLAZY_OR_NOW
10171
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10174
# define LT_DLLAZY_OR_NOW DL_LAZY
10177
# define LT_DLLAZY_OR_NOW RTLD_NOW
10180
# define LT_DLLAZY_OR_NOW DL_NOW
10182
# define LT_DLLAZY_OR_NOW 0
10190
extern "C" void exit (int);
10193
void fnord() { int i=42;}
10196
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10197
int status = $lt_dlunknown;
10201
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10202
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10203
/* dlclose (self); */
10209
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10210
(eval $ac_link) 2>&5
10212
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10214
(./conftest; exit; ) 2>/dev/null
10216
case x$lt_status in
10217
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10218
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10219
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10222
# compilation failed
10223
lt_cv_dlopen_self_static=no
10230
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10231
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10234
CPPFLAGS="$save_CPPFLAGS"
10235
LDFLAGS="$save_LDFLAGS"
10240
case $lt_cv_dlopen_self in
10241
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10242
*) enable_dlopen_self=unknown ;;
10245
case $lt_cv_dlopen_self_static in
10246
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10247
*) enable_dlopen_self_static=unknown ;;
10252
# Report which librarie types wil actually be built
10253
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10254
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10255
echo "$as_me:$LINENO: result: $can_build_shared" >&5
10256
echo "${ECHO_T}$can_build_shared" >&6
10258
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10259
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10260
test "$can_build_shared" = "no" && enable_shared=no
10262
# On AIX, shared libraries and static libraries use the same namespace, and
10263
# are all built from PIC.
10266
test "$enable_shared" = yes && enable_static=no
10267
if test -n "$RANLIB"; then
10268
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10269
postinstall_cmds='$RANLIB $lib'
10274
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10275
test "$enable_shared" = yes && enable_static=no
10279
echo "$as_me:$LINENO: result: $enable_shared" >&5
10280
echo "${ECHO_T}$enable_shared" >&6
10282
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10283
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10284
# Make sure either enable_shared or enable_static is yes.
10285
test "$enable_shared" = yes || enable_static=yes
10286
echo "$as_me:$LINENO: result: $enable_static" >&5
10287
echo "${ECHO_T}$enable_static" >&6
10289
# The else clause should only fire when bootstrapping the
10290
# libtool distribution, otherwise you forgot to ship ltmain.sh
10291
# with your package, and you will get complaints that there are
10292
# no rules to generate ltmain.sh.
10293
if test -f "$ltmain"; then
10294
# See if we are running on zsh, and set the options which allow our commands through
10295
# without removal of \ escapes.
10296
if test -n "${ZSH_VERSION+set}" ; then
10297
setopt NO_GLOB_SUBST
10299
# Now quote all the things that may contain metacharacters while being
10300
# careful not to overquote the AC_SUBSTed values. We take copies of the
10301
# variables and quote the copies for generation of the libtool script.
10302
for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
10304
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10305
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10306
deplibs_check_method reload_flag reload_cmds need_locks \
10307
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10308
lt_cv_sys_global_symbol_to_c_name_address \
10309
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10310
old_postinstall_cmds old_postuninstall_cmds \
10314
lt_prog_compiler_wl \
10315
lt_prog_compiler_pic \
10316
lt_prog_compiler_static \
10317
lt_prog_compiler_no_builtin_flag \
10318
export_dynamic_flag_spec \
10319
thread_safe_flag_spec \
10320
whole_archive_flag_spec \
10321
enable_shared_with_static_runtimes \
10323
old_archive_from_new_cmds \
10328
compiler_lib_search_path \
10330
archive_expsym_cmds \
10332
postuninstall_cmds \
10333
old_archive_from_expsyms_cmds \
10334
allow_undefined_flag \
10335
no_undefined_flag \
10336
export_symbols_cmds \
10337
hardcode_libdir_flag_spec \
10338
hardcode_libdir_flag_spec_ld \
10339
hardcode_libdir_separator \
10340
hardcode_automatic \
10342
module_expsym_cmds \
10343
lt_cv_prog_compiler_c_o \
10345
include_expsyms; do
10348
old_archive_cmds | \
10349
old_archive_from_new_cmds | \
10351
archive_expsym_cmds | \
10353
module_expsym_cmds | \
10354
old_archive_from_expsyms_cmds | \
10355
export_symbols_cmds | \
10356
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10357
postinstall_cmds | postuninstall_cmds | \
10358
old_postinstall_cmds | old_postuninstall_cmds | \
10359
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10360
# Double-quote double-evaled strings.
10361
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10364
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10370
*'\$0 --fallback-echo"')
10371
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10375
cfgfile="${ofile}T"
10376
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10378
{ echo "$as_me:$LINENO: creating $ofile" >&5
10379
echo "$as_me: creating $ofile" >&6;}
10381
cat <<__EOF__ >> "$cfgfile"
10384
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10385
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10386
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10388
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10389
# Free Software Foundation, Inc.
10391
# This file is part of GNU Libtool:
10392
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10394
# This program is free software; you can redistribute it and/or modify
10395
# it under the terms of the GNU General Public License as published by
10396
# the Free Software Foundation; either version 2 of the License, or
10397
# (at your option) any later version.
10399
# This program is distributed in the hope that it will be useful, but
10400
# WITHOUT ANY WARRANTY; without even the implied warranty of
10401
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10402
# General Public License for more details.
10404
# You should have received a copy of the GNU General Public License
10405
# along with this program; if not, write to the Free Software
10406
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10408
# As a special exception to the GNU General Public License, if you
10409
# distribute this file as part of a program that contains a
10410
# configuration script generated by Autoconf, you may include it under
10411
# the same distribution terms that you use for the rest of that program.
10413
# A sed program that does not truncate output.
10416
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10417
Xsed="$SED -e s/^X//"
10419
# The HP-UX ksh and POSIX shell print the target directory to stdout
10420
# if CDPATH is set.
10421
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10423
# The names of the tagged configurations supported by this script.
10426
# ### BEGIN LIBTOOL CONFIG
10428
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10430
# Shell to use when invoking shell scripts.
10433
# Whether or not to build shared libraries.
10434
build_libtool_libs=$enable_shared
10436
# Whether or not to build static libraries.
10437
build_old_libs=$enable_static
10439
# Whether or not to add -lc for building shared libraries.
10440
build_libtool_need_lc=$archive_cmds_need_lc
10442
# Whether or not to disallow shared libs when runtime libs are static
10443
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10445
# Whether or not to optimize for fast installation.
10446
fast_install=$enable_fast_install
10449
host_alias=$host_alias
10453
# The build system.
10454
build_alias=$build_alias
10458
# An echo program that does not interpret backslashes.
10463
AR_FLAGS=$lt_AR_FLAGS
10468
# A language-specific compiler.
10471
# Is the compiler the GNU C compiler?
10477
# The linker used to build libraries.
10480
# Whether we need hard or soft links.
10483
# A BSD-compatible nm program.
10486
# A symbol stripping program
10489
# Used to examine libraries when file_magic_cmd begins "file"
10490
MAGIC_CMD=$MAGIC_CMD
10492
# Used on cygwin: DLL creation program.
10495
# Used on cygwin: object dumper.
10498
# Used on cygwin: assembler.
10501
# The name of the directory that contains temporary libtool files.
10504
# How to create reloadable object files.
10505
reload_flag=$lt_reload_flag
10506
reload_cmds=$lt_reload_cmds
10508
# How to pass a linker flag through the compiler.
10509
wl=$lt_lt_prog_compiler_wl
10511
# Object file suffix (normally "o").
10512
objext="$ac_objext"
10514
# Old archive suffix (normally "a").
10517
# Shared library suffix (normally ".so").
10518
shrext_cmds='$shrext_cmds'
10520
# Executable file suffix (normally "").
10523
# Additional compiler flags for building library objects.
10524
pic_flag=$lt_lt_prog_compiler_pic
10527
# What is the maximum length of a command?
10528
max_cmd_len=$lt_cv_sys_max_cmd_len
10530
# Does compiler simultaneously support -c and -o options?
10531
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10533
# Must we lock files when doing compilation ?
10534
need_locks=$lt_need_locks
10536
# Do we need the lib prefix for modules?
10537
need_lib_prefix=$need_lib_prefix
10539
# Do we need a version for libraries?
10540
need_version=$need_version
10542
# Whether dlopen is supported.
10543
dlopen_support=$enable_dlopen
10545
# Whether dlopen of programs is supported.
10546
dlopen_self=$enable_dlopen_self
10548
# Whether dlopen of statically linked programs is supported.
10549
dlopen_self_static=$enable_dlopen_self_static
10551
# Compiler flag to prevent dynamic linking.
10552
link_static_flag=$lt_lt_prog_compiler_static
10554
# Compiler flag to turn off builtin functions.
10555
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10557
# Compiler flag to allow reflexive dlopens.
10558
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10560
# Compiler flag to generate shared objects directly from archives.
10561
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10563
# Compiler flag to generate thread-safe objects.
10564
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10566
# Library versioning type.
10567
version_type=$version_type
10569
# Format of library name prefix.
10570
libname_spec=$lt_libname_spec
10572
# List of archive names. First name is the real one, the rest are links.
10573
# The last name is the one that the linker finds with -lNAME.
10574
library_names_spec=$lt_library_names_spec
10576
# The coded name of the library, if different from the real name.
10577
soname_spec=$lt_soname_spec
10579
# Commands used to build and install an old-style archive.
10581
old_archive_cmds=$lt_old_archive_cmds
10582
old_postinstall_cmds=$lt_old_postinstall_cmds
10583
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10585
# Create an old-style archive from a shared archive.
10586
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10588
# Create a temporary old-style archive to link instead of a shared archive.
10589
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10591
# Commands used to build and install a shared archive.
10592
archive_cmds=$lt_archive_cmds
10593
archive_expsym_cmds=$lt_archive_expsym_cmds
10594
postinstall_cmds=$lt_postinstall_cmds
10595
postuninstall_cmds=$lt_postuninstall_cmds
10597
# Commands used to build a loadable module (assumed same as above if empty)
10598
module_cmds=$lt_module_cmds
10599
module_expsym_cmds=$lt_module_expsym_cmds
10601
# Commands to strip libraries.
10602
old_striplib=$lt_old_striplib
10603
striplib=$lt_striplib
10605
# Dependencies to place before the objects being linked to create a
10607
predep_objects=$lt_predep_objects
10609
# Dependencies to place after the objects being linked to create a
10611
postdep_objects=$lt_postdep_objects
10613
# Dependencies to place before the objects being linked to create a
10615
predeps=$lt_predeps
10617
# Dependencies to place after the objects being linked to create a
10619
postdeps=$lt_postdeps
10621
# The library search path used internally by the compiler when linking
10622
# a shared library.
10623
compiler_lib_search_path=$lt_compiler_lib_search_path
10625
# Method to check whether dependent libraries are shared objects.
10626
deplibs_check_method=$lt_deplibs_check_method
10628
# Command to use when deplibs_check_method == file_magic.
10629
file_magic_cmd=$lt_file_magic_cmd
10631
# Flag that allows shared libraries with undefined symbols to be built.
10632
allow_undefined_flag=$lt_allow_undefined_flag
10634
# Flag that forces no undefined symbols.
10635
no_undefined_flag=$lt_no_undefined_flag
10637
# Commands used to finish a libtool library installation in a directory.
10638
finish_cmds=$lt_finish_cmds
10640
# Same as above, but a single script fragment to be evaled but not shown.
10641
finish_eval=$lt_finish_eval
10643
# Take the output of nm and produce a listing of raw symbols and C names.
10644
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10646
# Transform the output of nm in a proper C declaration
10647
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10649
# Transform the output of nm in a C name address pair
10650
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10652
# This is the shared library runtime path variable.
10653
runpath_var=$runpath_var
10655
# This is the shared library path variable.
10656
shlibpath_var=$shlibpath_var
10658
# Is shlibpath searched before the hard-coded library search path?
10659
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10661
# How to hardcode a shared library path into an executable.
10662
hardcode_action=$hardcode_action
10664
# Whether we should hardcode library paths into libraries.
10665
hardcode_into_libs=$hardcode_into_libs
10667
# Flag to hardcode \$libdir into a binary during linking.
10668
# This must work even if \$libdir does not exist.
10669
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10671
# If ld is used when linking, flag to hardcode \$libdir into
10672
# a binary during linking. This must work even if \$libdir does
10674
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10676
# Whether we need a single -rpath flag with a separated argument.
10677
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10679
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10680
# resulting binary.
10681
hardcode_direct=$hardcode_direct
10683
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10684
# resulting binary.
10685
hardcode_minus_L=$hardcode_minus_L
10687
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10688
# the resulting binary.
10689
hardcode_shlibpath_var=$hardcode_shlibpath_var
10691
# Set to yes if building a shared library automatically hardcodes DIR into the library
10692
# and all subsequent libraries and executables linked against it.
10693
hardcode_automatic=$hardcode_automatic
10695
# Variables whose values should be saved in libtool wrapper scripts and
10696
# restored at relink time.
10697
variables_saved_for_relink="$variables_saved_for_relink"
10699
# Whether libtool must link a program against all its dependency libraries.
10700
link_all_deplibs=$link_all_deplibs
10702
# Compile-time system search path for libraries
10703
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10705
# Run-time system search path for libraries
10706
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10708
# Fix the shell variable \$srcfile for the compiler.
10709
fix_srcfile_path="$fix_srcfile_path"
10711
# Set to yes if exported symbols are required.
10712
always_export_symbols=$always_export_symbols
10714
# The commands to list exported symbols.
10715
export_symbols_cmds=$lt_export_symbols_cmds
10717
# The commands to extract the exported symbol list from a shared archive.
10718
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10720
# Symbols that should not be listed in the preloaded symbols.
10721
exclude_expsyms=$lt_exclude_expsyms
10723
# Symbols that must always be exported.
10724
include_expsyms=$lt_include_expsyms
10726
# ### END LIBTOOL CONFIG
10733
cat <<\EOF >> "$cfgfile"
10735
# AIX sometimes has problems with the GCC collect2 program. For some
10736
# reason, if we set the COLLECT_NAMES environment variable, the problems
10737
# vanish in a puff of smoke.
10738
if test "X${COLLECT_NAMES+set}" != Xset; then
10740
export COLLECT_NAMES
10746
# We use sed instead of cat because bash on DJGPP gets confused if
10747
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10748
# text mode, it properly converts lines to CR/LF. This bash problem
10749
# is reportedly fixed, but why not run on old versions too?
10750
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10752
mv -f "$cfgfile" "$ofile" || \
10753
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10757
# If there is no Makefile yet, we rely on a make rule to execute
10758
# `config.status --recheck' to rerun these tests and create the
10759
# libtool script then.
10760
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10761
if test -f "$ltmain_in"; then
10762
test -f Makefile && make "$ltmain"
10768
ac_cpp='$CPP $CPPFLAGS'
10769
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10770
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10771
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10776
# Check whether --with-tags or --without-tags was given.
10777
if test "${with_tags+set}" = set; then
10778
withval="$with_tags"
10779
tagnames="$withval"
10782
if test -f "$ltmain" && test -n "$tagnames"; then
10783
if test ! -f "${ofile}"; then
10784
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10785
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10788
if test -z "$LTCC"; then
10789
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10790
if test -z "$LTCC"; then
10791
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10792
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10794
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10795
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10799
# Extract list of available tagged configurations in $ofile.
10800
# Note that this assumes the entire list is on one line.
10801
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10803
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10804
for tagname in $tagnames; do
10806
# Check whether tagname contains only valid characters
10807
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10809
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10810
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10811
{ (exit 1); exit 1; }; }
10815
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10817
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10818
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10819
{ (exit 1); exit 1; }; }
10822
# Update the list of available tags.
10823
if test -n "$tagname"; then
10824
echo appending configuration tag \"$tagname\" to $ofile
10828
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10829
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10830
(test "X$CXX" != "Xg++"))) ; then
10832
ac_cpp='$CXXCPP $CPPFLAGS'
10833
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10834
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10835
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10840
archive_cmds_need_lc_CXX=no
10841
allow_undefined_flag_CXX=
10842
always_export_symbols_CXX=no
10843
archive_expsym_cmds_CXX=
10844
export_dynamic_flag_spec_CXX=
10845
hardcode_direct_CXX=no
10846
hardcode_libdir_flag_spec_CXX=
10847
hardcode_libdir_flag_spec_ld_CXX=
10848
hardcode_libdir_separator_CXX=
10849
hardcode_minus_L_CXX=no
10850
hardcode_automatic_CXX=no
10852
module_expsym_cmds_CXX=
10853
link_all_deplibs_CXX=unknown
10854
old_archive_cmds_CXX=$old_archive_cmds
10855
no_undefined_flag_CXX=
10856
whole_archive_flag_spec_CXX=
10857
enable_shared_with_static_runtimes_CXX=no
10859
# Dependencies to place before and after the object being linked:
10860
predep_objects_CXX=
10861
postdep_objects_CXX=
10864
compiler_lib_search_path_CXX=
10866
# Source file extension for C++ test sources.
10869
# Object file extension for compiled C++ test sources.
10873
# Code to be used in simple compile tests
10874
lt_simple_compile_test_code="int some_variable = 0;\n"
10876
# Code to be used in simple link tests
10877
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10879
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10881
# If no C compiler was specified, use CC.
10884
# Allow CC to be a program name with arguments.
10888
# Allow CC to be a program name with arguments.
10893
lt_save_with_gnu_ld=$with_gnu_ld
10894
lt_save_path_LD=$lt_cv_path_LD
10895
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10896
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10898
unset lt_cv_prog_gnu_ld
10900
if test -n "${lt_cv_path_LDCXX+set}"; then
10901
lt_cv_path_LD=$lt_cv_path_LDCXX
10903
unset lt_cv_path_LD
10905
test -z "${LDCXX+set}" || LD=$LDCXX
10909
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10911
# We don't want -fno-exception wen compiling C++ code, so set the
10912
# no_builtin_flag separately
10913
if test "$GXX" = yes; then
10914
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10916
lt_prog_compiler_no_builtin_flag_CXX=
10919
if test "$GXX" = yes; then
10920
# Set up default GNU C++ configuration
10923
# Check whether --with-gnu-ld or --without-gnu-ld was given.
10924
if test "${with_gnu_ld+set}" = set; then
10925
withval="$with_gnu_ld"
10926
test "$withval" = no || with_gnu_ld=yes
10931
if test "$GCC" = yes; then
10932
# Check if gcc -print-prog-name=ld gives a path.
10933
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10934
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10937
# gcc leaves a trailing carriage return which upsets mingw
10938
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10940
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10943
# Accept absolute paths.
10945
re_direlt='/[^/][^/]*/\.\./'
10946
# Canonicalize the pathname of ld
10947
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10948
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10949
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10951
test -z "$LD" && LD="$ac_prog"
10954
# If it fails, then pretend we aren't using GCC.
10958
# If it is relative, then search for the first ld in PATH.
10959
with_gnu_ld=unknown
10962
elif test "$with_gnu_ld" = yes; then
10963
echo "$as_me:$LINENO: checking for GNU ld" >&5
10964
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10966
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10967
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10969
if test "${lt_cv_path_LD+set}" = set; then
10970
echo $ECHO_N "(cached) $ECHO_C" >&6
10972
if test -z "$LD"; then
10973
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10974
for ac_dir in $PATH; do
10976
test -z "$ac_dir" && ac_dir=.
10977
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10978
lt_cv_path_LD="$ac_dir/$ac_prog"
10979
# Check to see if the program is GNU ld. I'd rather use --version,
10980
# but apparently some GNU ld's only accept -v.
10981
# Break only if it was the GNU/non-GNU ld that we prefer.
10982
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10983
*GNU* | *'with BFD'*)
10984
test "$with_gnu_ld" != no && break
10987
test "$with_gnu_ld" != yes && break
10994
lt_cv_path_LD="$LD" # Let the user override the test with a path.
10998
LD="$lt_cv_path_LD"
10999
if test -n "$LD"; then
11000
echo "$as_me:$LINENO: result: $LD" >&5
11001
echo "${ECHO_T}$LD" >&6
11003
echo "$as_me:$LINENO: result: no" >&5
11004
echo "${ECHO_T}no" >&6
11006
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11007
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11008
{ (exit 1); exit 1; }; }
11009
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11010
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11011
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11012
echo $ECHO_N "(cached) $ECHO_C" >&6
11014
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
11015
case `$LD -v 2>&1 </dev/null` in
11016
*GNU* | *'with BFD'*)
11017
lt_cv_prog_gnu_ld=yes
11020
lt_cv_prog_gnu_ld=no
11024
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11025
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11026
with_gnu_ld=$lt_cv_prog_gnu_ld
11030
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11031
# archiving commands below assume that GNU ld is being used.
11032
if test "$with_gnu_ld" = yes; then
11033
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11034
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'
11036
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11037
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11039
# If archive_cmds runs LD, not CC, wlarc should be empty
11040
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11041
# investigate it a little bit more. (MM)
11044
# ancient GNU ld didn't support --whole-archive et. al.
11045
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11046
grep 'no-whole-archive' > /dev/null; then
11047
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11049
whole_archive_flag_spec_CXX=
11055
# A generic and very simple default shared library creation
11056
# command for GNU C++ for the case where it uses the native
11057
# linker, instead of GNU ld. If possible, this setting should
11058
# overridden to take advantage of the native linker features on
11059
# the platform it is being used on.
11060
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11063
# Commands to make compiler produce verbose output that lists
11064
# what "hidden" libraries, object files and flags are used when
11065
# linking a shared library.
11066
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11074
# PORTME: fill in a description of your system's C++ link characteristics
11075
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11076
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11080
# FIXME: insert proper C++ library support
11084
if test "$host_cpu" = ia64; then
11085
# On IA64, the linker does run time linking by default, so we don't
11086
# have to do anything special.
11087
aix_use_runtimelinking=no
11088
exp_sym_flag='-Bexport'
11091
aix_use_runtimelinking=no
11093
# Test if we are trying to use run time linking or normal
11094
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11095
# need to do runtime linking.
11096
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11097
for ld_flag in $LDFLAGS; do
11100
aix_use_runtimelinking=yes
11107
exp_sym_flag='-bexport'
11108
no_entry_flag='-bnoentry'
11111
# When large executables or shared objects are built, AIX ld can
11112
# have problems creating the table of contents. If linking a library
11113
# or program results in "error TOC overflow" add -mminimal-toc to
11114
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11115
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11117
archive_cmds_CXX=''
11118
hardcode_direct_CXX=yes
11119
hardcode_libdir_separator_CXX=':'
11120
link_all_deplibs_CXX=yes
11122
if test "$GXX" = yes; then
11123
case $host_os in aix4.[012]|aix4.[012].*)
11124
# We only want to do this on AIX 4.2 and lower, the check
11125
# below for broken collect2 doesn't work under 4.3+
11126
collect2name=`${CC} -print-prog-name=collect2`
11127
if test -f "$collect2name" && \
11128
strings "$collect2name" | grep resolve_lib_name >/dev/null
11130
# We have reworked collect2
11131
hardcode_direct_CXX=yes
11133
# We have old collect2
11134
hardcode_direct_CXX=unsupported
11135
# It fails to find uninstalled libraries when the uninstalled
11136
# path is not listed in the libpath. Setting hardcode_minus_L
11137
# to unsupported forces relinking
11138
hardcode_minus_L_CXX=yes
11139
hardcode_libdir_flag_spec_CXX='-L$libdir'
11140
hardcode_libdir_separator_CXX=
11143
shared_flag='-shared'
11144
if test "$aix_use_runtimelinking" = yes; then
11145
shared_flag="$shared_flag "'${wl}-G'
11149
if test "$host_cpu" = ia64; then
11150
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11151
# chokes on -Wl,-G. The following line is correct:
11154
if test "$aix_use_runtimelinking" = yes; then
11155
shared_flag='${wl}-G'
11157
shared_flag='${wl}-bM:SRE'
11162
# It seems that -bexpall does not export symbols beginning with
11163
# underscore (_), so it is better to generate a list of symbols to export.
11164
always_export_symbols_CXX=yes
11165
if test "$aix_use_runtimelinking" = yes; then
11166
# Warning - without using the other runtime loading flags (-brtl),
11167
# -berok will link without error, but may produce a broken library.
11168
allow_undefined_flag_CXX='-berok'
11169
# Determine the default libpath from the value encoded in an empty executable.
11170
cat >conftest.$ac_ext <<_ACEOF
11173
cat confdefs.h >>conftest.$ac_ext
11174
cat >>conftest.$ac_ext <<_ACEOF
11175
/* end confdefs.h. */
11185
rm -f conftest.$ac_objext conftest$ac_exeext
11186
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11187
(eval $ac_link) 2>conftest.er1
11189
grep -v '^ *+' conftest.er1 >conftest.err
11191
cat conftest.err >&5
11192
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193
(exit $ac_status); } &&
11194
{ ac_try='test -z "$ac_cxx_werror_flag"
11195
|| test ! -s conftest.err'
11196
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197
(eval $ac_try) 2>&5
11199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200
(exit $ac_status); }; } &&
11201
{ ac_try='test -s conftest$ac_exeext'
11202
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203
(eval $ac_try) 2>&5
11205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206
(exit $ac_status); }; }; then
11208
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11210
# Check for a 64-bit object if we didn't find anything.
11211
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; }
11214
echo "$as_me: failed program was:" >&5
11215
sed 's/^/| /' conftest.$ac_ext >&5
11218
rm -f conftest.err conftest.$ac_objext \
11219
conftest$ac_exeext conftest.$ac_ext
11220
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11222
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11224
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"
11226
if test "$host_cpu" = ia64; then
11227
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11228
allow_undefined_flag_CXX="-z nodefs"
11229
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"
11231
# Determine the default libpath from the value encoded in an empty executable.
11232
cat >conftest.$ac_ext <<_ACEOF
11235
cat confdefs.h >>conftest.$ac_ext
11236
cat >>conftest.$ac_ext <<_ACEOF
11237
/* end confdefs.h. */
11247
rm -f conftest.$ac_objext conftest$ac_exeext
11248
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11249
(eval $ac_link) 2>conftest.er1
11251
grep -v '^ *+' conftest.er1 >conftest.err
11253
cat conftest.err >&5
11254
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255
(exit $ac_status); } &&
11256
{ ac_try='test -z "$ac_cxx_werror_flag"
11257
|| test ! -s conftest.err'
11258
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259
(eval $ac_try) 2>&5
11261
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262
(exit $ac_status); }; } &&
11263
{ ac_try='test -s conftest$ac_exeext'
11264
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11265
(eval $ac_try) 2>&5
11267
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268
(exit $ac_status); }; }; then
11270
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11272
# Check for a 64-bit object if we didn't find anything.
11273
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; }
11276
echo "$as_me: failed program was:" >&5
11277
sed 's/^/| /' conftest.$ac_ext >&5
11280
rm -f conftest.err conftest.$ac_objext \
11281
conftest$ac_exeext conftest.$ac_ext
11282
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11284
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11285
# Warning - without using the other run time loading flags,
11286
# -berok will link without error, but may produce a broken library.
11287
no_undefined_flag_CXX=' ${wl}-bernotok'
11288
allow_undefined_flag_CXX=' ${wl}-berok'
11289
# -bexpall does not export symbols beginning with underscore (_)
11290
always_export_symbols_CXX=yes
11291
# Exported symbols can be pulled into shared objects from archives
11292
whole_archive_flag_spec_CXX=' '
11293
archive_cmds_need_lc_CXX=yes
11294
# This is similar to how AIX traditionally builds it's shared libraries.
11295
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'
11300
case $cc_basename in
11302
# FIXME: insert proper C++ library support
11309
cygwin* | mingw* | pw32*)
11310
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11311
# as there is no search path for DLLs.
11312
hardcode_libdir_flag_spec_CXX='-L$libdir'
11313
allow_undefined_flag_CXX=unsupported
11314
always_export_symbols_CXX=no
11315
enable_shared_with_static_runtimes_CXX=yes
11317
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11318
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'
11319
# If the export-symbols file already is a .def file (1st line
11320
# is EXPORTS), use it as is; otherwise, prepend...
11321
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11322
cp $export_symbols $output_objdir/$soname.def;
11324
echo EXPORTS > $output_objdir/$soname.def;
11325
cat $export_symbols >> $output_objdir/$soname.def;
11327
$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'
11332
darwin* | rhapsody*)
11334
rhapsody* | darwin1.[012])
11335
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11338
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11339
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11341
case ${MACOSX_DEPLOYMENT_TARGET} in
11343
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11346
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11352
archive_cmds_need_lc_CXX=no
11353
hardcode_direct_CXX=no
11354
hardcode_automatic_CXX=yes
11355
hardcode_shlibpath_var_CXX=unsupported
11356
whole_archive_flag_spec_CXX=''
11357
link_all_deplibs_CXX=yes
11359
if test "$GXX" = yes ; then
11360
lt_int_apple_cc_single_mod=no
11361
output_verbose_link_cmd='echo'
11362
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11363
lt_int_apple_cc_single_mod=yes
11365
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11366
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11368
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'
11370
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11371
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11372
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11373
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}'
11375
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}'
11377
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}'
11379
case "$cc_basename" in
11381
output_verbose_link_cmd='echo'
11382
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'
11383
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11384
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11385
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}'
11386
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}'
11396
case $cc_basename in
11398
# FIXME: insert proper C++ library support
11402
# Green Hills C++ Compiler
11403
# FIXME: insert proper C++ library support
11407
# FIXME: insert proper C++ library support
11413
# C++ shared libraries reported to be fairly broken before switch to ELF
11417
archive_cmds_need_lc_CXX=no
11419
freebsd* | kfreebsd*-gnu | dragonfly*)
11420
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11427
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11428
hardcode_libdir_separator_CXX=:
11429
export_dynamic_flag_spec_CXX='${wl}-E'
11430
hardcode_direct_CXX=yes
11431
hardcode_minus_L_CXX=yes # Not in the search PATH,
11432
# but as the default
11433
# location of the library.
11435
case $cc_basename in
11437
# FIXME: insert proper C++ library support
11441
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'
11442
# Commands to make compiler produce verbose output that lists
11443
# what "hidden" libraries, object files and flags are used when
11444
# linking a shared library.
11446
# There doesn't appear to be a way to prevent this compiler from
11447
# explicitly linking system object files so we need to strip them
11448
# from the output so that they don't get included in the library
11450
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'
11453
if test "$GXX" = yes; then
11454
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'
11456
# FIXME: insert proper C++ library support
11463
if test $with_gnu_ld = no; then
11464
case "$host_cpu" in
11466
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11467
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11468
hardcode_libdir_separator_CXX=:
11471
hardcode_libdir_flag_spec_CXX='-L$libdir'
11474
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11475
hardcode_libdir_separator_CXX=:
11476
export_dynamic_flag_spec_CXX='${wl}-E'
11480
case "$host_cpu" in
11482
hardcode_direct_CXX=no
11483
hardcode_shlibpath_var_CXX=no
11486
hardcode_direct_CXX=no
11487
hardcode_shlibpath_var_CXX=no
11488
hardcode_minus_L_CXX=yes # Not in the search PATH,
11489
# but as the default
11490
# location of the library.
11493
hardcode_direct_CXX=yes
11494
hardcode_minus_L_CXX=yes # Not in the search PATH,
11495
# but as the default
11496
# location of the library.
11500
case $cc_basename in
11502
# FIXME: insert proper C++ library support
11506
case "$host_cpu" in
11508
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11511
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11514
# Commands to make compiler produce verbose output that lists
11515
# what "hidden" libraries, object files and flags are used when
11516
# linking a shared library.
11518
# There doesn't appear to be a way to prevent this compiler from
11519
# explicitly linking system object files so we need to strip them
11520
# from the output so that they don't get included in the library
11522
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'
11525
if test "$GXX" = yes; then
11526
if test $with_gnu_ld = no; then
11527
case "$host_cpu" in
11529
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11532
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'
11537
# FIXME: insert proper C++ library support
11544
case $cc_basename in
11547
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'
11549
# Archives containing C++ object files must be created using
11550
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11551
# necessary to make sure instantiated templates are included
11553
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11556
if test "$GXX" = yes; then
11557
if test "$with_gnu_ld" = no; then
11558
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'
11560
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'
11563
link_all_deplibs_CXX=yes
11566
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11567
hardcode_libdir_separator_CXX=:
11570
case $cc_basename in
11572
# Kuck and Associates, Inc. (KAI) C++ Compiler
11574
# KCC will only create a shared library if the output file
11575
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11576
# to its proper name (with version) after linking.
11577
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'
11578
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'
11579
# Commands to make compiler produce verbose output that lists
11580
# what "hidden" libraries, object files and flags are used when
11581
# linking a shared library.
11583
# There doesn't appear to be a way to prevent this compiler from
11584
# explicitly linking system object files so we need to strip them
11585
# from the output so that they don't get included in the library
11587
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'
11589
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11590
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11592
# Archives containing C++ object files must be created using
11593
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11594
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11599
# version 8.0 and above of icpc choke on multiply defined symbols
11600
# if we add $predep_objects and $postdep_objects, however 7.1 and
11601
# earlier do not add the objects themselves.
11602
case `$CC -V 2>&1` in
11604
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11605
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'
11607
*) # Version 8.0 or newer
11610
ia64*) tmp_idyn=' -i_dynamic';;
11612
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11613
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'
11616
archive_cmds_need_lc_CXX=no
11617
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11618
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11619
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11622
# Portland Group C++ compiler
11623
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11624
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'
11626
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11627
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11631
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11632
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'
11634
runpath_var=LD_RUN_PATH
11635
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11636
hardcode_libdir_separator_CXX=:
11638
# Commands to make compiler produce verbose output that lists
11639
# what "hidden" libraries, object files and flags are used when
11640
# linking a shared library.
11642
# There doesn't appear to be a way to prevent this compiler from
11643
# explicitly linking system object files so we need to strip them
11644
# from the output so that they don't get included in the library
11646
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'
11651
# FIXME: insert proper C++ library support
11655
# FIXME: insert proper C++ library support
11659
case $cc_basename in
11661
# FIXME: insert proper C++ library support
11665
# FIXME: insert proper C++ library support
11671
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11672
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11674
hardcode_libdir_flag_spec_CXX='-R$libdir'
11675
hardcode_direct_CXX=yes
11676
hardcode_shlibpath_var_CXX=no
11678
# Workaround some broken pre-1.5 toolchains
11679
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11682
# C++ shared libraries are fairly broken
11686
hardcode_direct_CXX=yes
11687
hardcode_shlibpath_var_CXX=no
11688
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11689
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11690
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11691
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11692
export_dynamic_flag_spec_CXX='${wl}-E'
11693
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11695
output_verbose_link_cmd='echo'
11698
case $cc_basename in
11700
# Kuck and Associates, Inc. (KAI) C++ Compiler
11702
# KCC will only create a shared library if the output file
11703
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11704
# to its proper name (with version) after linking.
11705
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'
11707
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11708
hardcode_libdir_separator_CXX=:
11710
# Archives containing C++ object files must be created using
11711
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11712
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11716
# Rational C++ 2.4.1
11717
# FIXME: insert proper C++ library support
11721
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11722
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'
11724
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11725
hardcode_libdir_separator_CXX=:
11727
# Commands to make compiler produce verbose output that lists
11728
# what "hidden" libraries, object files and flags are used when
11729
# linking a shared library.
11731
# There doesn't appear to be a way to prevent this compiler from
11732
# explicitly linking system object files so we need to strip them
11733
# from the output so that they don't get included in the library
11735
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'
11738
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11739
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11740
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'
11742
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11743
hardcode_libdir_separator_CXX=:
11745
# Commands to make compiler produce verbose output that lists
11746
# what "hidden" libraries, object files and flags are used when
11747
# linking a shared library.
11748
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11751
# FIXME: insert proper C++ library support
11758
case $cc_basename in
11760
# Kuck and Associates, Inc. (KAI) C++ Compiler
11762
# KCC will only create a shared library if the output file
11763
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11764
# to its proper name (with version) after linking.
11765
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'
11767
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11768
hardcode_libdir_separator_CXX=:
11770
# Archives containing C++ object files must be created using
11771
# the KAI C++ compiler.
11772
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11775
# Rational C++ 2.4.1
11776
# FIXME: insert proper C++ library support
11780
allow_undefined_flag_CXX=' -expect_unresolved \*'
11781
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'
11782
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11783
echo "-hidden">> $lib.exp~
11784
$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~
11787
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11788
hardcode_libdir_separator_CXX=:
11790
# Commands to make compiler produce verbose output that lists
11791
# what "hidden" libraries, object files and flags are used when
11792
# linking a shared library.
11794
# There doesn't appear to be a way to prevent this compiler from
11795
# explicitly linking system object files so we need to strip them
11796
# from the output so that they don't get included in the library
11798
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'
11801
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11802
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11803
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'
11805
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11806
hardcode_libdir_separator_CXX=:
11808
# Commands to make compiler produce verbose output that lists
11809
# what "hidden" libraries, object files and flags are used when
11810
# linking a shared library.
11811
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11814
# FIXME: insert proper C++ library support
11821
# FIXME: insert proper C++ library support
11825
archive_cmds_need_lc_CXX=no
11826
case $cc_basename in
11828
# FIXME: insert proper C++ library support
11832
# FIXME: insert proper C++ library support
11838
case $cc_basename in
11841
# FIXME: insert proper C++ library support
11846
# FIXME: insert proper C++ library support
11850
# FIXME: insert proper C++ library support
11856
case $cc_basename in
11858
# Sun C++ 4.2, 5.x and Centerline C++
11859
no_undefined_flag_CXX=' -zdefs'
11860
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11861
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11862
$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'
11864
hardcode_libdir_flag_spec_CXX='-R$libdir'
11865
hardcode_shlibpath_var_CXX=no
11867
solaris2.[0-5] | solaris2.[0-5].*) ;;
11869
# The C++ compiler is used as linker so we must use $wl
11870
# flag to pass the commands to the underlying system
11872
# Supported since Solaris 2.6 (maybe 2.5.1?)
11873
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11876
link_all_deplibs_CXX=yes
11878
# Commands to make compiler produce verbose output that lists
11879
# what "hidden" libraries, object files and flags are used when
11880
# linking a shared library.
11882
# There doesn't appear to be a way to prevent this compiler from
11883
# explicitly linking system object files so we need to strip them
11884
# from the output so that they don't get included in the library
11886
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'
11888
# Archives containing C++ object files must be created using
11889
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11890
# necessary to make sure instantiated templates are included
11892
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11895
# Green Hills C++ Compiler
11896
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11898
# The C++ compiler must be used to create the archive.
11899
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11902
# GNU C++ compiler with Solaris linker
11903
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11904
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11905
if $CC --version | grep -v '^2\.7' > /dev/null; then
11906
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11907
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11908
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11910
# Commands to make compiler produce verbose output that lists
11911
# what "hidden" libraries, object files and flags are used when
11912
# linking a shared library.
11913
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11915
# g++ 2.7 appears to require `-G' NOT `-shared' on this
11917
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11918
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11919
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11921
# Commands to make compiler produce verbose output that lists
11922
# what "hidden" libraries, object files and flags are used when
11923
# linking a shared library.
11924
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11927
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11932
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11933
archive_cmds_need_lc_CXX=no
11936
case $cc_basename in
11938
# NonStop-UX NCC 3.20
11939
# FIXME: insert proper C++ library support
11943
# FIXME: insert proper C++ library support
11949
# FIXME: insert proper C++ library support
11953
# FIXME: insert proper C++ library support
11957
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11958
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11959
test "$ld_shlibs_CXX" = no && can_build_shared=no
11965
## There is no encapsulation within the following macros, do not change
11966
## the running order or otherwise move them around unless you know exactly
11967
## what you are doing...
11969
cat > conftest.$ac_ext <<EOF
11973
Foo (void) { a = 0; }
11979
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11980
(eval $ac_compile) 2>&5
11982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983
(exit $ac_status); }; then
11984
# Parse the compiler output and extract the necessary
11985
# objects, libraries and library flags.
11987
# Sentinel used to keep track of whether or not we are before
11988
# the conftest object file.
11989
pre_test_object_deps_done=no
11991
# The `*' in the case matches for architectures that use `case' in
11992
# $output_verbose_cmd can trigger glob expansion during the loop
11993
# eval without this substitution.
11994
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11996
for p in `eval $output_verbose_link_cmd`; do
12000
# Some compilers place space between "-{L,R}" and the path.
12001
# Remove the space.
12002
if test $p = "-L" \
12003
|| test $p = "-R"; then
12010
if test "$pre_test_object_deps_done" = no; then
12013
# Internal compiler library paths should come after those
12014
# provided the user. The postdeps already come after the
12015
# user supplied libs so there is no need to process them.
12016
if test -z "$compiler_lib_search_path_CXX"; then
12017
compiler_lib_search_path_CXX="${prev}${p}"
12019
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12022
# The "-l" case would never come before the object being
12023
# linked, so don't bother handling this case.
12026
if test -z "$postdeps_CXX"; then
12027
postdeps_CXX="${prev}${p}"
12029
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12035
# This assumes that the test object file only shows up
12036
# once in the compiler output.
12037
if test "$p" = "conftest.$objext"; then
12038
pre_test_object_deps_done=yes
12042
if test "$pre_test_object_deps_done" = no; then
12043
if test -z "$predep_objects_CXX"; then
12044
predep_objects_CXX="$p"
12046
predep_objects_CXX="$predep_objects_CXX $p"
12049
if test -z "$postdep_objects_CXX"; then
12050
postdep_objects_CXX="$p"
12052
postdep_objects_CXX="$postdep_objects_CXX $p"
12057
*) ;; # Ignore the rest.
12065
echo "libtool.m4: error: problem compiling CXX test program"
12068
$rm -f confest.$objext
12070
case " $postdeps_CXX " in
12071
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12074
lt_prog_compiler_wl_CXX=
12075
lt_prog_compiler_pic_CXX=
12076
lt_prog_compiler_static_CXX=
12078
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12079
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12081
# C++ specific cases for pic, static, wl, etc.
12082
if test "$GXX" = yes; then
12083
lt_prog_compiler_wl_CXX='-Wl,'
12084
lt_prog_compiler_static_CXX='-static'
12088
# All AIX code is PIC.
12089
if test "$host_cpu" = ia64; then
12090
# AIX 5 now supports IA64 processor
12091
lt_prog_compiler_static_CXX='-Bstatic'
12095
# FIXME: we need at least 68020 code to build shared libraries, but
12096
# adding the `-m68020' flag to GCC prevents building anything better,
12098
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12100
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12101
# PIC is the default for these OSes.
12103
mingw* | os2* | pw32*)
12104
# This hack is so that the source file can tell whether it is being
12105
# built for inclusion in a dll (and should export symbols for example).
12106
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12108
darwin* | rhapsody*)
12109
# PIC is the default on this platform
12110
# Common symbols not allowed in MH_DYLIB files
12111
lt_prog_compiler_pic_CXX='-fno-common'
12114
# DJGPP does not support shared libraries at all
12115
lt_prog_compiler_pic_CXX=
12118
if test -d /usr/nec; then
12119
lt_prog_compiler_pic_CXX=-Kconform_pic
12123
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12124
# not for PA HP-UX.
12125
case "$host_cpu" in
12129
lt_prog_compiler_pic_CXX='-fPIC'
12134
lt_prog_compiler_pic_CXX='-fPIC'
12140
# All AIX code is PIC.
12141
if test "$host_cpu" = ia64; then
12142
# AIX 5 now supports IA64 processor
12143
lt_prog_compiler_static_CXX='-Bstatic'
12145
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12149
case $cc_basename in
12151
# Green Hills C++ Compiler
12152
# _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"
12157
# PIC is the default on this platform
12158
# Common symbols not allowed in MH_DYLIB files
12159
case "$cc_basename" in
12161
lt_prog_compiler_pic_CXX='-qnocommon'
12162
lt_prog_compiler_wl_CXX='-Wl,'
12167
case $cc_basename in
12169
lt_prog_compiler_pic_CXX='-KPIC'
12172
# Green Hills C++ Compiler
12173
lt_prog_compiler_pic_CXX='-pic'
12179
freebsd* | kfreebsd*-gnu | dragonfly*)
12180
# FreeBSD uses GNU C++
12182
hpux9* | hpux10* | hpux11*)
12183
case $cc_basename in
12185
lt_prog_compiler_wl_CXX='-Wl,'
12186
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12187
if test "$host_cpu" != ia64; then
12188
lt_prog_compiler_pic_CXX='+Z'
12192
lt_prog_compiler_wl_CXX='-Wl,'
12193
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12194
case "$host_cpu" in
12199
lt_prog_compiler_pic_CXX='+Z'
12207
irix5* | irix6* | nonstopux*)
12208
case $cc_basename in
12210
lt_prog_compiler_wl_CXX='-Wl,'
12211
lt_prog_compiler_static_CXX='-non_shared'
12212
# CC pic flag -KPIC is the default.
12219
case $cc_basename in
12222
lt_prog_compiler_wl_CXX='--backend -Wl,'
12223
lt_prog_compiler_pic_CXX='-fPIC'
12227
lt_prog_compiler_wl_CXX='-Wl,'
12228
lt_prog_compiler_pic_CXX='-KPIC'
12229
lt_prog_compiler_static_CXX='-static'
12232
# Portland Group C++ compiler.
12233
lt_prog_compiler_wl_CXX='-Wl,'
12234
lt_prog_compiler_pic_CXX='-fpic'
12235
lt_prog_compiler_static_CXX='-static'
12239
# Make sure the PIC flag is empty. It appears that all Alpha
12240
# Linux and Compaq Tru64 Unix objects are PIC.
12241
lt_prog_compiler_pic_CXX=
12242
lt_prog_compiler_static_CXX='-non_shared'
12253
case $cc_basename in
12255
lt_prog_compiler_pic_CXX='-W c,exportall'
12263
osf3* | osf4* | osf5*)
12264
case $cc_basename in
12266
lt_prog_compiler_wl_CXX='--backend -Wl,'
12269
# Rational C++ 2.4.1
12270
lt_prog_compiler_pic_CXX='-pic'
12273
# Digital/Compaq C++
12274
lt_prog_compiler_wl_CXX='-Wl,'
12275
# Make sure the PIC flag is empty. It appears that all Alpha
12276
# Linux and Compaq Tru64 Unix objects are PIC.
12277
lt_prog_compiler_pic_CXX=
12278
lt_prog_compiler_static_CXX='-non_shared'
12287
case $cc_basename in
12289
lt_prog_compiler_pic_CXX='-fPIC'
12296
case $cc_basename in
12298
# Sun C++ 4.2, 5.x and Centerline C++
12299
lt_prog_compiler_pic_CXX='-KPIC'
12300
lt_prog_compiler_static_CXX='-Bstatic'
12301
lt_prog_compiler_wl_CXX='-Qoption ld '
12304
# Green Hills C++ Compiler
12305
lt_prog_compiler_pic_CXX='-PIC'
12312
case $cc_basename in
12315
lt_prog_compiler_pic_CXX='-pic'
12316
lt_prog_compiler_static_CXX='-Bstatic'
12320
lt_prog_compiler_pic_CXX='-pic'
12327
case $cc_basename in
12329
# NonStop-UX NCC 3.20
12330
lt_prog_compiler_pic_CXX='-KPIC'
12341
lt_prog_compiler_can_build_shared_CXX=no
12346
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12347
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12350
# Check to make sure the PIC flag actually works.
12352
if test -n "$lt_prog_compiler_pic_CXX"; then
12354
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12355
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12356
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12357
echo $ECHO_N "(cached) $ECHO_C" >&6
12359
lt_prog_compiler_pic_works_CXX=no
12360
ac_outfile=conftest.$ac_objext
12361
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12362
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12363
# Insert the option either (1) after the last *FLAGS variable, or
12364
# (2) before a word containing "conftest.", or (3) at the end.
12365
# Note that $ac_compile itself does not contain backslashes and begins
12366
# with a dollar sign (not a hyphen), so the echo should work correctly.
12367
# The option is referenced via a variable to avoid confusing sed.
12368
lt_compile=`echo "$ac_compile" | $SED \
12369
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12370
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12371
-e 's:$: $lt_compiler_flag:'`
12372
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12373
(eval "$lt_compile" 2>conftest.err)
12375
cat conftest.err >&5
12376
echo "$as_me:__oline__: \$? = $ac_status" >&5
12377
if (exit $ac_status) && test -s "$ac_outfile"; then
12378
# The compiler can only warn and ignore the option if not recognized
12379
# So say no if there are warnings
12380
if test ! -s conftest.err; then
12381
lt_prog_compiler_pic_works_CXX=yes
12387
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12388
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12390
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12391
case $lt_prog_compiler_pic_CXX in
12393
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12396
lt_prog_compiler_pic_CXX=
12397
lt_prog_compiler_can_build_shared_CXX=no
12402
# For platforms which do not support PIC, -DPIC is meaningless:
12404
lt_prog_compiler_pic_CXX=
12407
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12411
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12412
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12413
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12414
echo $ECHO_N "(cached) $ECHO_C" >&6
12416
lt_cv_prog_compiler_c_o_CXX=no
12417
$rm -r conftest 2>/dev/null
12421
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12423
lt_compiler_flag="-o out/conftest2.$ac_objext"
12424
# Insert the option either (1) after the last *FLAGS variable, or
12425
# (2) before a word containing "conftest.", or (3) at the end.
12426
# Note that $ac_compile itself does not contain backslashes and begins
12427
# with a dollar sign (not a hyphen), so the echo should work correctly.
12428
lt_compile=`echo "$ac_compile" | $SED \
12429
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12430
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12431
-e 's:$: $lt_compiler_flag:'`
12432
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12433
(eval "$lt_compile" 2>out/conftest.err)
12435
cat out/conftest.err >&5
12436
echo "$as_me:__oline__: \$? = $ac_status" >&5
12437
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12439
# The compiler can only warn and ignore the option if not recognized
12440
# So say no if there are warnings
12441
if test ! -s out/conftest.err; then
12442
lt_cv_prog_compiler_c_o_CXX=yes
12447
# SGI C++ compiler will create directory out/ii_files/ for
12448
# template instantiation
12449
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12450
$rm out/* && rmdir out
12456
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12457
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12460
hard_links="nottested"
12461
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12462
# do not overwrite the value of need_locks provided by the user
12463
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12464
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12467
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12469
ln conftest.a conftest.b 2>&5 || hard_links=no
12470
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12471
echo "$as_me:$LINENO: result: $hard_links" >&5
12472
echo "${ECHO_T}$hard_links" >&6
12473
if test "$hard_links" = no; then
12474
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12475
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12482
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12483
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12485
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12488
# If we're using GNU nm, then we don't want the "-C" option.
12489
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12490
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12491
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'
12493
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'
12497
export_symbols_cmds_CXX="$ltdll_cmds"
12500
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'
12503
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12507
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12508
echo "${ECHO_T}$ld_shlibs_CXX" >&6
12509
test "$ld_shlibs_CXX" = no && can_build_shared=no
12511
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12512
if test "$GCC" = yes; then
12513
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12517
# Do we need to explicitly link libc?
12519
case "x$archive_cmds_need_lc_CXX" in
12521
# Assume -lc should be added
12522
archive_cmds_need_lc_CXX=yes
12524
if test "$enable_shared" = yes && test "$GCC" = yes; then
12525
case $archive_cmds_CXX in
12527
# FIXME: we may have to deal with multi-command sequences.
12530
# Test whether the compiler implicitly links with -lc since on some
12531
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12532
# to ld, don't add -lc before -lgcc.
12533
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12534
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12536
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12538
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12539
(eval $ac_compile) 2>&5
12541
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542
(exit $ac_status); } 2>conftest.err; then
12545
libobjs=conftest.$ac_objext
12547
wl=$lt_prog_compiler_wl_CXX
12553
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12554
allow_undefined_flag_CXX=
12555
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12556
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12558
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559
(exit $ac_status); }
12561
archive_cmds_need_lc_CXX=no
12563
archive_cmds_need_lc_CXX=yes
12565
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12567
cat conftest.err 1>&5
12570
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12571
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12578
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12579
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12580
library_names_spec=
12581
libname_spec='lib$name'
12585
postuninstall_cmds=
12589
shlibpath_overrides_runpath=unknown
12591
dynamic_linker="$host_os ld.so"
12592
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12593
if test "$GCC" = yes; then
12594
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12595
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12596
# if the path contains ";" then we assume it to be the separator
12597
# otherwise default to the standard path separator (i.e. ":") - it is
12598
# assumed that no part of a normal pathname contains ";" but that should
12599
# okay in the real world where ";" in dirpaths is itself problematic.
12600
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12602
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12605
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12607
need_lib_prefix=unknown
12608
hardcode_into_libs=no
12610
# when you set need_version to no, make sure it does not cause -set_version
12611
# flags to be left without arguments
12612
need_version=unknown
12617
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12618
shlibpath_var=LIBPATH
12620
# AIX 3 has no versioning support, so we append a major version to the name.
12621
soname_spec='${libname}${release}${shared_ext}$major'
12628
hardcode_into_libs=yes
12629
if test "$host_cpu" = ia64; then
12630
# AIX 5 supports IA64
12631
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12632
shlibpath_var=LD_LIBRARY_PATH
12634
# With GCC up to 2.95.x, collect2 would create an import file
12635
# for dependence libraries. The import file would start with
12636
# the line `#! .'. This would cause the generated library to
12637
# depend on `.', always an invalid library. This was fixed in
12638
# development snapshots of GCC prior to 3.0.
12640
aix4 | aix4.[01] | aix4.[01].*)
12641
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12643
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12646
can_build_shared=no
12650
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12651
# soname into executable. Probably we can add versioning support to
12652
# collect2, so additional links can be useful in future.
12653
if test "$aix_use_runtimelinking" = yes; then
12654
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12655
# instead of lib<name>.a to let people know that these are not
12656
# typical AIX shared libraries.
12657
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12659
# We preserve .a as extension for shared libraries through AIX4.2
12660
# and later when we are not doing run time linking.
12661
library_names_spec='${libname}${release}.a $libname.a'
12662
soname_spec='${libname}${release}${shared_ext}$major'
12664
shlibpath_var=LIBPATH
12669
library_names_spec='$libname.ixlibrary $libname.a'
12670
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12671
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'
12675
library_names_spec='${libname}${shared_ext}'
12676
dynamic_linker="$host_os ld.so"
12677
shlibpath_var=LIBRARY_PATH
12683
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12684
soname_spec='${libname}${release}${shared_ext}$major'
12685
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12686
shlibpath_var=LD_LIBRARY_PATH
12687
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12688
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12689
# the default ld.so.conf also contains /usr/contrib/lib and
12690
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12691
# libtool to hard-code these into programs
12694
cygwin* | mingw* | pw32*)
12695
version_type=windows
12700
case $GCC,$host_os in
12701
yes,cygwin* | yes,mingw* | yes,pw32*)
12702
library_names_spec='$libname.dll.a'
12703
# DLL is installed to $(libdir)/../bin by postinstall_cmds
12704
postinstall_cmds='base_file=`basename \${file}`~
12705
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12706
dldir=$destdir/`dirname \$dlpath`~
12707
test -d \$dldir || mkdir -p \$dldir~
12708
$install_prog $dir/$dlname \$dldir/$dlname'
12709
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12710
dlpath=$dir/\$dldll~
12712
shlibpath_overrides_runpath=yes
12716
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
12717
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12718
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12721
# MinGW DLLs use traditional 'lib' prefix
12722
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12723
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12724
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12725
# It is most probably a Windows format PATH printed by
12726
# mingw gcc, but we are running on Cygwin. Gcc prints its search
12727
# path with ; separators, and with drive letters. We can handle the
12728
# drive letters (cygwin fileutils understands them), so leave them,
12729
# especially as we might pass files found there to a mingw objdump,
12730
# which wouldn't understand a cygwinified path. Ahh.
12731
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12733
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12737
# pw32 DLLs use 'pw' prefix rather than 'lib'
12738
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12744
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12747
dynamic_linker='Win32 ld.exe'
12748
# FIXME: first we should search . and the directory the executable is in
12752
darwin* | rhapsody*)
12753
dynamic_linker="$host_os dyld"
12754
version_type=darwin
12757
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12758
soname_spec='${libname}${release}${major}$shared_ext'
12759
shlibpath_overrides_runpath=yes
12760
shlibpath_var=DYLD_LIBRARY_PATH
12761
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12762
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12763
if test "$GCC" = yes; then
12764
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"`
12766
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12768
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12775
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12776
soname_spec='${libname}${release}${shared_ext}$major'
12777
shlibpath_var=LD_LIBRARY_PATH
12788
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12789
soname_spec='${libname}${release}${shared_ext}$major'
12790
shlibpath_var=LD_LIBRARY_PATH
12791
shlibpath_overrides_runpath=no
12792
hardcode_into_libs=yes
12793
dynamic_linker='GNU ld.so'
12796
freebsd* | dragonfly*)
12797
# DragonFly does not have aout. When/if they implement a new
12798
# versioning mechanism, adjust this.
12799
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12800
version_type=freebsd-$objformat
12801
case $version_type in
12803
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12808
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12812
shlibpath_var=LD_LIBRARY_PATH
12815
shlibpath_overrides_runpath=yes
12817
freebsd3.[01]* | freebsdelf3.[01]*)
12818
shlibpath_overrides_runpath=yes
12819
hardcode_into_libs=yes
12822
shlibpath_overrides_runpath=no
12823
hardcode_into_libs=yes
12832
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12833
soname_spec='${libname}${release}${shared_ext}$major'
12834
shlibpath_var=LD_LIBRARY_PATH
12835
hardcode_into_libs=yes
12838
hpux9* | hpux10* | hpux11*)
12839
# Give a soname corresponding to the major version so that dld.sl refuses to
12840
# link against other versions.
12844
case "$host_cpu" in
12847
hardcode_into_libs=yes
12848
dynamic_linker="$host_os dld.so"
12849
shlibpath_var=LD_LIBRARY_PATH
12850
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12851
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12852
soname_spec='${libname}${release}${shared_ext}$major'
12853
if test "X$HPUX_IA64_MODE" = X32; then
12854
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12856
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12858
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12862
hardcode_into_libs=yes
12863
dynamic_linker="$host_os dld.sl"
12864
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12865
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12866
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12867
soname_spec='${libname}${release}${shared_ext}$major'
12868
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12869
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12873
dynamic_linker="$host_os dld.sl"
12874
shlibpath_var=SHLIB_PATH
12875
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12876
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12877
soname_spec='${libname}${release}${shared_ext}$major'
12880
# HP-UX runs *really* slowly unless shared libraries are mode 555.
12881
postinstall_cmds='chmod 555 $lib'
12884
irix5* | irix6* | nonstopux*)
12886
nonstopux*) version_type=nonstopux ;;
12888
if test "$lt_cv_prog_gnu_ld" = yes; then
12896
soname_spec='${libname}${release}${shared_ext}$major'
12897
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12899
irix5* | nonstopux*)
12900
libsuff= shlibsuff=
12903
case $LD in # libtool.m4 will add one of these switches to LD
12904
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12905
libsuff= shlibsuff= libmagic=32-bit;;
12906
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12907
libsuff=32 shlibsuff=N32 libmagic=N32;;
12908
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12909
libsuff=64 shlibsuff=64 libmagic=64-bit;;
12910
*) libsuff= shlibsuff= libmagic=never-match;;
12914
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12915
shlibpath_overrides_runpath=no
12916
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12917
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12918
hardcode_into_libs=yes
12921
# No shared lib support for Linux oldld, aout, or coff.
12922
linux*oldld* | linux*aout* | linux*coff*)
12926
# This must be Linux ELF.
12931
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12932
soname_spec='${libname}${release}${shared_ext}$major'
12933
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12934
shlibpath_var=LD_LIBRARY_PATH
12935
shlibpath_overrides_runpath=no
12936
# This implies no fast_install, which is unacceptable.
12937
# Some rework will be needed to allow for fast_install
12938
# before this can be enabled.
12939
hardcode_into_libs=yes
12941
# Append ld.so.conf contents to the search path
12942
if test -f /etc/ld.so.conf; then
12943
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' ' '`
12944
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12947
# We used to test for /lib/ld.so.1 and disable shared libraries on
12948
# powerpc, because MkLinux only supported shared libraries with the
12949
# GNU dynamic linker. Since this was broken with cross compilers,
12950
# most powerpc-linux boxes support dynamic linking these days and
12951
# people can always --disable-shared, the test was removed, and we
12952
# assume the GNU/Linux dynamic linker is in use.
12953
dynamic_linker='GNU/Linux ld.so'
12960
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12961
soname_spec='${libname}${release}${shared_ext}$major'
12962
shlibpath_var=LD_LIBRARY_PATH
12963
shlibpath_overrides_runpath=no
12964
hardcode_into_libs=yes
12965
dynamic_linker='GNU ld.so'
12972
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12973
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12974
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12975
dynamic_linker='NetBSD (a.out) ld.so'
12977
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12978
soname_spec='${libname}${release}${shared_ext}$major'
12979
dynamic_linker='NetBSD ld.elf_so'
12981
shlibpath_var=LD_LIBRARY_PATH
12982
shlibpath_overrides_runpath=yes
12983
hardcode_into_libs=yes
12988
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12989
shlibpath_var=LD_LIBRARY_PATH
12990
shlibpath_overrides_runpath=yes
12997
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12998
soname_spec='${libname}${release}${shared_ext}$major'
12999
shlibpath_var=LD_LIBRARY_PATH
13000
shlibpath_overrides_runpath=yes
13007
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13008
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13009
shlibpath_var=LD_LIBRARY_PATH
13010
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13012
openbsd2.[89] | openbsd2.[89].*)
13013
shlibpath_overrides_runpath=no
13016
shlibpath_overrides_runpath=yes
13020
shlibpath_overrides_runpath=yes
13025
libname_spec='$name'
13028
library_names_spec='$libname${shared_ext} $libname.a'
13029
dynamic_linker='OS/2 ld.exe'
13030
shlibpath_var=LIBPATH
13033
osf3* | osf4* | osf5*)
13037
soname_spec='${libname}${release}${shared_ext}$major'
13038
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13039
shlibpath_var=LD_LIBRARY_PATH
13040
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13041
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13046
soname_spec='${libname}${release}${shared_ext}$major'
13047
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13048
shlibpath_var=LD_LIBRARY_PATH
13055
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13056
soname_spec='${libname}${release}${shared_ext}$major'
13057
shlibpath_var=LD_LIBRARY_PATH
13058
shlibpath_overrides_runpath=yes
13059
hardcode_into_libs=yes
13060
# ldd complains unless libraries are executable
13061
postinstall_cmds='chmod +x $lib'
13066
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13067
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13068
shlibpath_var=LD_LIBRARY_PATH
13069
shlibpath_overrides_runpath=yes
13070
if test "$with_gnu_ld" = yes; then
13076
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13078
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13079
soname_spec='${libname}${release}${shared_ext}$major'
13080
shlibpath_var=LD_LIBRARY_PATH
13081
case $host_vendor in
13083
shlibpath_overrides_runpath=no
13085
export_dynamic_flag_spec='${wl}-Blargedynsym'
13086
runpath_var=LD_RUN_PATH
13094
shlibpath_overrides_runpath=no
13095
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13101
if test -d /usr/nec ;then
13103
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13104
soname_spec='$libname${shared_ext}.$major'
13105
shlibpath_var=LD_LIBRARY_PATH
13111
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13112
soname_spec='${libname}${release}${shared_ext}$major'
13113
shlibpath_var=LD_LIBRARY_PATH
13120
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13121
echo "${ECHO_T}$dynamic_linker" >&6
13122
test "$dynamic_linker" = no && can_build_shared=no
13124
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13125
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13126
hardcode_action_CXX=
13127
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13128
test -n "$runpath_var_CXX" || \
13129
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13131
# We can hardcode non-existant directories.
13132
if test "$hardcode_direct_CXX" != no &&
13133
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13134
# have to relink, otherwise we might link with an installed library
13135
# when we should be linking with a yet-to-be-installed one
13136
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13137
test "$hardcode_minus_L_CXX" != no; then
13138
# Linking always hardcodes the temporary library directory.
13139
hardcode_action_CXX=relink
13141
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13142
hardcode_action_CXX=immediate
13145
# We cannot hardcode anything, or else we can only hardcode existing
13147
hardcode_action_CXX=unsupported
13149
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13150
echo "${ECHO_T}$hardcode_action_CXX" >&6
13152
if test "$hardcode_action_CXX" = relink; then
13153
# Fast installation is not supported
13154
enable_fast_install=no
13155
elif test "$shlibpath_overrides_runpath" = yes ||
13156
test "$enable_shared" = no; then
13157
# Fast installation is not necessary
13158
enable_fast_install=needless
13163
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13164
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13165
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13166
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13167
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13168
echo "$as_me:$LINENO: result: yes" >&5
13169
echo "${ECHO_T}yes" >&6
13171
# FIXME - insert some real tests, host_os isn't really good enough
13174
if test -n "$STRIP" ; then
13175
striplib="$STRIP -x"
13176
echo "$as_me:$LINENO: result: yes" >&5
13177
echo "${ECHO_T}yes" >&6
13179
echo "$as_me:$LINENO: result: no" >&5
13180
echo "${ECHO_T}no" >&6
13184
echo "$as_me:$LINENO: result: no" >&5
13185
echo "${ECHO_T}no" >&6
13190
if test "x$enable_dlopen" != xyes; then
13191
enable_dlopen=unknown
13192
enable_dlopen_self=unknown
13193
enable_dlopen_self_static=unknown
13200
lt_cv_dlopen="load_add_on"
13202
lt_cv_dlopen_self=yes
13206
lt_cv_dlopen="LoadLibrary"
13211
lt_cv_dlopen="dlopen"
13216
# if libdl is installed we need to link against it
13217
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13218
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13219
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13220
echo $ECHO_N "(cached) $ECHO_C" >&6
13222
ac_check_lib_save_LIBS=$LIBS
13224
cat >conftest.$ac_ext <<_ACEOF
13227
cat confdefs.h >>conftest.$ac_ext
13228
cat >>conftest.$ac_ext <<_ACEOF
13229
/* end confdefs.h. */
13231
/* Override any gcc2 internal prototype to avoid an error. */
13235
/* We use char because int might match the return type of a gcc2
13236
builtin and then its argument prototype would still apply. */
13246
rm -f conftest.$ac_objext conftest$ac_exeext
13247
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13248
(eval $ac_link) 2>conftest.er1
13250
grep -v '^ *+' conftest.er1 >conftest.err
13252
cat conftest.err >&5
13253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254
(exit $ac_status); } &&
13255
{ ac_try='test -z "$ac_cxx_werror_flag"
13256
|| test ! -s conftest.err'
13257
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258
(eval $ac_try) 2>&5
13260
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261
(exit $ac_status); }; } &&
13262
{ ac_try='test -s conftest$ac_exeext'
13263
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264
(eval $ac_try) 2>&5
13266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267
(exit $ac_status); }; }; then
13268
ac_cv_lib_dl_dlopen=yes
13270
echo "$as_me: failed program was:" >&5
13271
sed 's/^/| /' conftest.$ac_ext >&5
13273
ac_cv_lib_dl_dlopen=no
13275
rm -f conftest.err conftest.$ac_objext \
13276
conftest$ac_exeext conftest.$ac_ext
13277
LIBS=$ac_check_lib_save_LIBS
13279
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13280
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13281
if test $ac_cv_lib_dl_dlopen = yes; then
13282
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13285
lt_cv_dlopen="dyld"
13287
lt_cv_dlopen_self=yes
13294
echo "$as_me:$LINENO: checking for shl_load" >&5
13295
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13296
if test "${ac_cv_func_shl_load+set}" = set; then
13297
echo $ECHO_N "(cached) $ECHO_C" >&6
13299
cat >conftest.$ac_ext <<_ACEOF
13302
cat confdefs.h >>conftest.$ac_ext
13303
cat >>conftest.$ac_ext <<_ACEOF
13304
/* end confdefs.h. */
13305
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13306
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13307
#define shl_load innocuous_shl_load
13309
/* System header to define __stub macros and hopefully few prototypes,
13310
which can conflict with char shl_load (); below.
13311
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13312
<limits.h> exists even on freestanding compilers. */
13315
# include <limits.h>
13317
# include <assert.h>
13322
/* Override any gcc2 internal prototype to avoid an error. */
13327
/* We use char because int might match the return type of a gcc2
13328
builtin and then its argument prototype would still apply. */
13330
/* The GNU C library defines this for functions which it implements
13331
to always fail with ENOSYS. Some functions are actually named
13332
something starting with __ and the normal name is an alias. */
13333
#if defined (__stub_shl_load) || defined (__stub___shl_load)
13336
char (*f) () = shl_load;
13345
return f != shl_load;
13350
rm -f conftest.$ac_objext conftest$ac_exeext
13351
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13352
(eval $ac_link) 2>conftest.er1
13354
grep -v '^ *+' conftest.er1 >conftest.err
13356
cat conftest.err >&5
13357
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358
(exit $ac_status); } &&
13359
{ ac_try='test -z "$ac_cxx_werror_flag"
13360
|| test ! -s conftest.err'
13361
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13362
(eval $ac_try) 2>&5
13364
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365
(exit $ac_status); }; } &&
13366
{ ac_try='test -s conftest$ac_exeext'
13367
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368
(eval $ac_try) 2>&5
13370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371
(exit $ac_status); }; }; then
13372
ac_cv_func_shl_load=yes
13374
echo "$as_me: failed program was:" >&5
13375
sed 's/^/| /' conftest.$ac_ext >&5
13377
ac_cv_func_shl_load=no
13379
rm -f conftest.err conftest.$ac_objext \
13380
conftest$ac_exeext conftest.$ac_ext
13382
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13383
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13384
if test $ac_cv_func_shl_load = yes; then
13385
lt_cv_dlopen="shl_load"
13387
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13388
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13389
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13390
echo $ECHO_N "(cached) $ECHO_C" >&6
13392
ac_check_lib_save_LIBS=$LIBS
13394
cat >conftest.$ac_ext <<_ACEOF
13397
cat confdefs.h >>conftest.$ac_ext
13398
cat >>conftest.$ac_ext <<_ACEOF
13399
/* end confdefs.h. */
13401
/* Override any gcc2 internal prototype to avoid an error. */
13405
/* We use char because int might match the return type of a gcc2
13406
builtin and then its argument prototype would still apply. */
13416
rm -f conftest.$ac_objext conftest$ac_exeext
13417
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13418
(eval $ac_link) 2>conftest.er1
13420
grep -v '^ *+' conftest.er1 >conftest.err
13422
cat conftest.err >&5
13423
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424
(exit $ac_status); } &&
13425
{ ac_try='test -z "$ac_cxx_werror_flag"
13426
|| test ! -s conftest.err'
13427
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13428
(eval $ac_try) 2>&5
13430
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431
(exit $ac_status); }; } &&
13432
{ ac_try='test -s conftest$ac_exeext'
13433
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434
(eval $ac_try) 2>&5
13436
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437
(exit $ac_status); }; }; then
13438
ac_cv_lib_dld_shl_load=yes
13440
echo "$as_me: failed program was:" >&5
13441
sed 's/^/| /' conftest.$ac_ext >&5
13443
ac_cv_lib_dld_shl_load=no
13445
rm -f conftest.err conftest.$ac_objext \
13446
conftest$ac_exeext conftest.$ac_ext
13447
LIBS=$ac_check_lib_save_LIBS
13449
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13450
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13451
if test $ac_cv_lib_dld_shl_load = yes; then
13452
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13454
echo "$as_me:$LINENO: checking for dlopen" >&5
13455
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13456
if test "${ac_cv_func_dlopen+set}" = set; then
13457
echo $ECHO_N "(cached) $ECHO_C" >&6
13459
cat >conftest.$ac_ext <<_ACEOF
13462
cat confdefs.h >>conftest.$ac_ext
13463
cat >>conftest.$ac_ext <<_ACEOF
13464
/* end confdefs.h. */
13465
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13466
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13467
#define dlopen innocuous_dlopen
13469
/* System header to define __stub macros and hopefully few prototypes,
13470
which can conflict with char dlopen (); below.
13471
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13472
<limits.h> exists even on freestanding compilers. */
13475
# include <limits.h>
13477
# include <assert.h>
13482
/* Override any gcc2 internal prototype to avoid an error. */
13487
/* We use char because int might match the return type of a gcc2
13488
builtin and then its argument prototype would still apply. */
13490
/* The GNU C library defines this for functions which it implements
13491
to always fail with ENOSYS. Some functions are actually named
13492
something starting with __ and the normal name is an alias. */
13493
#if defined (__stub_dlopen) || defined (__stub___dlopen)
13496
char (*f) () = dlopen;
13505
return f != dlopen;
13510
rm -f conftest.$ac_objext conftest$ac_exeext
13511
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13512
(eval $ac_link) 2>conftest.er1
13514
grep -v '^ *+' conftest.er1 >conftest.err
13516
cat conftest.err >&5
13517
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518
(exit $ac_status); } &&
13519
{ ac_try='test -z "$ac_cxx_werror_flag"
13520
|| test ! -s conftest.err'
13521
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522
(eval $ac_try) 2>&5
13524
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525
(exit $ac_status); }; } &&
13526
{ ac_try='test -s conftest$ac_exeext'
13527
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528
(eval $ac_try) 2>&5
13530
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531
(exit $ac_status); }; }; then
13532
ac_cv_func_dlopen=yes
13534
echo "$as_me: failed program was:" >&5
13535
sed 's/^/| /' conftest.$ac_ext >&5
13537
ac_cv_func_dlopen=no
13539
rm -f conftest.err conftest.$ac_objext \
13540
conftest$ac_exeext conftest.$ac_ext
13542
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13543
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13544
if test $ac_cv_func_dlopen = yes; then
13545
lt_cv_dlopen="dlopen"
13547
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13548
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13549
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13550
echo $ECHO_N "(cached) $ECHO_C" >&6
13552
ac_check_lib_save_LIBS=$LIBS
13554
cat >conftest.$ac_ext <<_ACEOF
13557
cat confdefs.h >>conftest.$ac_ext
13558
cat >>conftest.$ac_ext <<_ACEOF
13559
/* end confdefs.h. */
13561
/* Override any gcc2 internal prototype to avoid an error. */
13565
/* We use char because int might match the return type of a gcc2
13566
builtin and then its argument prototype would still apply. */
13576
rm -f conftest.$ac_objext conftest$ac_exeext
13577
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13578
(eval $ac_link) 2>conftest.er1
13580
grep -v '^ *+' conftest.er1 >conftest.err
13582
cat conftest.err >&5
13583
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584
(exit $ac_status); } &&
13585
{ ac_try='test -z "$ac_cxx_werror_flag"
13586
|| test ! -s conftest.err'
13587
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588
(eval $ac_try) 2>&5
13590
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591
(exit $ac_status); }; } &&
13592
{ ac_try='test -s conftest$ac_exeext'
13593
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594
(eval $ac_try) 2>&5
13596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597
(exit $ac_status); }; }; then
13598
ac_cv_lib_dl_dlopen=yes
13600
echo "$as_me: failed program was:" >&5
13601
sed 's/^/| /' conftest.$ac_ext >&5
13603
ac_cv_lib_dl_dlopen=no
13605
rm -f conftest.err conftest.$ac_objext \
13606
conftest$ac_exeext conftest.$ac_ext
13607
LIBS=$ac_check_lib_save_LIBS
13609
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13610
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13611
if test $ac_cv_lib_dl_dlopen = yes; then
13612
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13614
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13615
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13616
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13617
echo $ECHO_N "(cached) $ECHO_C" >&6
13619
ac_check_lib_save_LIBS=$LIBS
13620
LIBS="-lsvld $LIBS"
13621
cat >conftest.$ac_ext <<_ACEOF
13624
cat confdefs.h >>conftest.$ac_ext
13625
cat >>conftest.$ac_ext <<_ACEOF
13626
/* end confdefs.h. */
13628
/* Override any gcc2 internal prototype to avoid an error. */
13632
/* We use char because int might match the return type of a gcc2
13633
builtin and then its argument prototype would still apply. */
13643
rm -f conftest.$ac_objext conftest$ac_exeext
13644
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13645
(eval $ac_link) 2>conftest.er1
13647
grep -v '^ *+' conftest.er1 >conftest.err
13649
cat conftest.err >&5
13650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651
(exit $ac_status); } &&
13652
{ ac_try='test -z "$ac_cxx_werror_flag"
13653
|| test ! -s conftest.err'
13654
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13655
(eval $ac_try) 2>&5
13657
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658
(exit $ac_status); }; } &&
13659
{ ac_try='test -s conftest$ac_exeext'
13660
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13661
(eval $ac_try) 2>&5
13663
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664
(exit $ac_status); }; }; then
13665
ac_cv_lib_svld_dlopen=yes
13667
echo "$as_me: failed program was:" >&5
13668
sed 's/^/| /' conftest.$ac_ext >&5
13670
ac_cv_lib_svld_dlopen=no
13672
rm -f conftest.err conftest.$ac_objext \
13673
conftest$ac_exeext conftest.$ac_ext
13674
LIBS=$ac_check_lib_save_LIBS
13676
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13677
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13678
if test $ac_cv_lib_svld_dlopen = yes; then
13679
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13681
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13682
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13683
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13684
echo $ECHO_N "(cached) $ECHO_C" >&6
13686
ac_check_lib_save_LIBS=$LIBS
13688
cat >conftest.$ac_ext <<_ACEOF
13691
cat confdefs.h >>conftest.$ac_ext
13692
cat >>conftest.$ac_ext <<_ACEOF
13693
/* end confdefs.h. */
13695
/* Override any gcc2 internal prototype to avoid an error. */
13699
/* We use char because int might match the return type of a gcc2
13700
builtin and then its argument prototype would still apply. */
13710
rm -f conftest.$ac_objext conftest$ac_exeext
13711
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13712
(eval $ac_link) 2>conftest.er1
13714
grep -v '^ *+' conftest.er1 >conftest.err
13716
cat conftest.err >&5
13717
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718
(exit $ac_status); } &&
13719
{ ac_try='test -z "$ac_cxx_werror_flag"
13720
|| test ! -s conftest.err'
13721
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722
(eval $ac_try) 2>&5
13724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725
(exit $ac_status); }; } &&
13726
{ ac_try='test -s conftest$ac_exeext'
13727
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728
(eval $ac_try) 2>&5
13730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731
(exit $ac_status); }; }; then
13732
ac_cv_lib_dld_dld_link=yes
13734
echo "$as_me: failed program was:" >&5
13735
sed 's/^/| /' conftest.$ac_ext >&5
13737
ac_cv_lib_dld_dld_link=no
13739
rm -f conftest.err conftest.$ac_objext \
13740
conftest$ac_exeext conftest.$ac_ext
13741
LIBS=$ac_check_lib_save_LIBS
13743
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13744
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13745
if test $ac_cv_lib_dld_dld_link = yes; then
13746
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13767
if test "x$lt_cv_dlopen" != xno; then
13773
case $lt_cv_dlopen in
13775
save_CPPFLAGS="$CPPFLAGS"
13776
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13778
save_LDFLAGS="$LDFLAGS"
13779
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13782
LIBS="$lt_cv_dlopen_libs $LIBS"
13784
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13785
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13786
if test "${lt_cv_dlopen_self+set}" = set; then
13787
echo $ECHO_N "(cached) $ECHO_C" >&6
13789
if test "$cross_compiling" = yes; then :
13790
lt_cv_dlopen_self=cross
13792
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13793
lt_status=$lt_dlunknown
13794
cat > conftest.$ac_ext <<EOF
13795
#line __oline__ "configure"
13796
#include "confdefs.h"
13805
# define LT_DLGLOBAL RTLD_GLOBAL
13808
# define LT_DLGLOBAL DL_GLOBAL
13810
# define LT_DLGLOBAL 0
13814
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13815
find out it does not work in some platform. */
13816
#ifndef LT_DLLAZY_OR_NOW
13818
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13821
# define LT_DLLAZY_OR_NOW DL_LAZY
13824
# define LT_DLLAZY_OR_NOW RTLD_NOW
13827
# define LT_DLLAZY_OR_NOW DL_NOW
13829
# define LT_DLLAZY_OR_NOW 0
13837
extern "C" void exit (int);
13840
void fnord() { int i=42;}
13843
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13844
int status = $lt_dlunknown;
13848
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13849
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13850
/* dlclose (self); */
13856
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13857
(eval $ac_link) 2>&5
13859
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13861
(./conftest; exit; ) 2>/dev/null
13863
case x$lt_status in
13864
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13865
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13866
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13869
# compilation failed
13870
lt_cv_dlopen_self=no
13877
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13878
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13880
if test "x$lt_cv_dlopen_self" = xyes; then
13881
LDFLAGS="$LDFLAGS $link_static_flag"
13882
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13883
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13884
if test "${lt_cv_dlopen_self_static+set}" = set; then
13885
echo $ECHO_N "(cached) $ECHO_C" >&6
13887
if test "$cross_compiling" = yes; then :
13888
lt_cv_dlopen_self_static=cross
13890
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13891
lt_status=$lt_dlunknown
13892
cat > conftest.$ac_ext <<EOF
13893
#line __oline__ "configure"
13894
#include "confdefs.h"
13903
# define LT_DLGLOBAL RTLD_GLOBAL
13906
# define LT_DLGLOBAL DL_GLOBAL
13908
# define LT_DLGLOBAL 0
13912
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13913
find out it does not work in some platform. */
13914
#ifndef LT_DLLAZY_OR_NOW
13916
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13919
# define LT_DLLAZY_OR_NOW DL_LAZY
13922
# define LT_DLLAZY_OR_NOW RTLD_NOW
13925
# define LT_DLLAZY_OR_NOW DL_NOW
13927
# define LT_DLLAZY_OR_NOW 0
13935
extern "C" void exit (int);
13938
void fnord() { int i=42;}
13941
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13942
int status = $lt_dlunknown;
13946
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13947
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13948
/* dlclose (self); */
13954
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13955
(eval $ac_link) 2>&5
13957
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13959
(./conftest; exit; ) 2>/dev/null
13961
case x$lt_status in
13962
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13963
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13964
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13967
# compilation failed
13968
lt_cv_dlopen_self_static=no
13975
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13976
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13979
CPPFLAGS="$save_CPPFLAGS"
13980
LDFLAGS="$save_LDFLAGS"
13985
case $lt_cv_dlopen_self in
13986
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13987
*) enable_dlopen_self=unknown ;;
13990
case $lt_cv_dlopen_self_static in
13991
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13992
*) enable_dlopen_self_static=unknown ;;
13997
# The else clause should only fire when bootstrapping the
13998
# libtool distribution, otherwise you forgot to ship ltmain.sh
13999
# with your package, and you will get complaints that there are
14000
# no rules to generate ltmain.sh.
14001
if test -f "$ltmain"; then
14002
# See if we are running on zsh, and set the options which allow our commands through
14003
# without removal of \ escapes.
14004
if test -n "${ZSH_VERSION+set}" ; then
14005
setopt NO_GLOB_SUBST
14007
# Now quote all the things that may contain metacharacters while being
14008
# careful not to overquote the AC_SUBSTed values. We take copies of the
14009
# variables and quote the copies for generation of the libtool script.
14010
for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
14012
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14013
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14014
deplibs_check_method reload_flag reload_cmds need_locks \
14015
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14016
lt_cv_sys_global_symbol_to_c_name_address \
14017
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14018
old_postinstall_cmds old_postuninstall_cmds \
14022
lt_prog_compiler_wl_CXX \
14023
lt_prog_compiler_pic_CXX \
14024
lt_prog_compiler_static_CXX \
14025
lt_prog_compiler_no_builtin_flag_CXX \
14026
export_dynamic_flag_spec_CXX \
14027
thread_safe_flag_spec_CXX \
14028
whole_archive_flag_spec_CXX \
14029
enable_shared_with_static_runtimes_CXX \
14030
old_archive_cmds_CXX \
14031
old_archive_from_new_cmds_CXX \
14032
predep_objects_CXX \
14033
postdep_objects_CXX \
14036
compiler_lib_search_path_CXX \
14038
archive_expsym_cmds_CXX \
14039
postinstall_cmds_CXX \
14040
postuninstall_cmds_CXX \
14041
old_archive_from_expsyms_cmds_CXX \
14042
allow_undefined_flag_CXX \
14043
no_undefined_flag_CXX \
14044
export_symbols_cmds_CXX \
14045
hardcode_libdir_flag_spec_CXX \
14046
hardcode_libdir_flag_spec_ld_CXX \
14047
hardcode_libdir_separator_CXX \
14048
hardcode_automatic_CXX \
14050
module_expsym_cmds_CXX \
14051
lt_cv_prog_compiler_c_o_CXX \
14052
exclude_expsyms_CXX \
14053
include_expsyms_CXX; do
14056
old_archive_cmds_CXX | \
14057
old_archive_from_new_cmds_CXX | \
14058
archive_cmds_CXX | \
14059
archive_expsym_cmds_CXX | \
14060
module_cmds_CXX | \
14061
module_expsym_cmds_CXX | \
14062
old_archive_from_expsyms_cmds_CXX | \
14063
export_symbols_cmds_CXX | \
14064
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14065
postinstall_cmds | postuninstall_cmds | \
14066
old_postinstall_cmds | old_postuninstall_cmds | \
14067
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14068
# Double-quote double-evaled strings.
14069
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14072
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14078
*'\$0 --fallback-echo"')
14079
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14085
cat <<__EOF__ >> "$cfgfile"
14086
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14088
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14090
# Shell to use when invoking shell scripts.
14093
# Whether or not to build shared libraries.
14094
build_libtool_libs=$enable_shared
14096
# Whether or not to build static libraries.
14097
build_old_libs=$enable_static
14099
# Whether or not to add -lc for building shared libraries.
14100
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14102
# Whether or not to disallow shared libs when runtime libs are static
14103
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14105
# Whether or not to optimize for fast installation.
14106
fast_install=$enable_fast_install
14109
host_alias=$host_alias
14113
# The build system.
14114
build_alias=$build_alias
14118
# An echo program that does not interpret backslashes.
14123
AR_FLAGS=$lt_AR_FLAGS
14128
# A language-specific compiler.
14129
CC=$lt_compiler_CXX
14131
# Is the compiler the GNU C compiler?
14137
# The linker used to build libraries.
14140
# Whether we need hard or soft links.
14143
# A BSD-compatible nm program.
14146
# A symbol stripping program
14149
# Used to examine libraries when file_magic_cmd begins "file"
14150
MAGIC_CMD=$MAGIC_CMD
14152
# Used on cygwin: DLL creation program.
14155
# Used on cygwin: object dumper.
14158
# Used on cygwin: assembler.
14161
# The name of the directory that contains temporary libtool files.
14164
# How to create reloadable object files.
14165
reload_flag=$lt_reload_flag
14166
reload_cmds=$lt_reload_cmds
14168
# How to pass a linker flag through the compiler.
14169
wl=$lt_lt_prog_compiler_wl_CXX
14171
# Object file suffix (normally "o").
14172
objext="$ac_objext"
14174
# Old archive suffix (normally "a").
14177
# Shared library suffix (normally ".so").
14178
shrext_cmds='$shrext_cmds'
14180
# Executable file suffix (normally "").
14183
# Additional compiler flags for building library objects.
14184
pic_flag=$lt_lt_prog_compiler_pic_CXX
14187
# What is the maximum length of a command?
14188
max_cmd_len=$lt_cv_sys_max_cmd_len
14190
# Does compiler simultaneously support -c and -o options?
14191
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14193
# Must we lock files when doing compilation ?
14194
need_locks=$lt_need_locks
14196
# Do we need the lib prefix for modules?
14197
need_lib_prefix=$need_lib_prefix
14199
# Do we need a version for libraries?
14200
need_version=$need_version
14202
# Whether dlopen is supported.
14203
dlopen_support=$enable_dlopen
14205
# Whether dlopen of programs is supported.
14206
dlopen_self=$enable_dlopen_self
14208
# Whether dlopen of statically linked programs is supported.
14209
dlopen_self_static=$enable_dlopen_self_static
14211
# Compiler flag to prevent dynamic linking.
14212
link_static_flag=$lt_lt_prog_compiler_static_CXX
14214
# Compiler flag to turn off builtin functions.
14215
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14217
# Compiler flag to allow reflexive dlopens.
14218
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14220
# Compiler flag to generate shared objects directly from archives.
14221
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14223
# Compiler flag to generate thread-safe objects.
14224
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14226
# Library versioning type.
14227
version_type=$version_type
14229
# Format of library name prefix.
14230
libname_spec=$lt_libname_spec
14232
# List of archive names. First name is the real one, the rest are links.
14233
# The last name is the one that the linker finds with -lNAME.
14234
library_names_spec=$lt_library_names_spec
14236
# The coded name of the library, if different from the real name.
14237
soname_spec=$lt_soname_spec
14239
# Commands used to build and install an old-style archive.
14241
old_archive_cmds=$lt_old_archive_cmds_CXX
14242
old_postinstall_cmds=$lt_old_postinstall_cmds
14243
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14245
# Create an old-style archive from a shared archive.
14246
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14248
# Create a temporary old-style archive to link instead of a shared archive.
14249
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14251
# Commands used to build and install a shared archive.
14252
archive_cmds=$lt_archive_cmds_CXX
14253
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14254
postinstall_cmds=$lt_postinstall_cmds
14255
postuninstall_cmds=$lt_postuninstall_cmds
14257
# Commands used to build a loadable module (assumed same as above if empty)
14258
module_cmds=$lt_module_cmds_CXX
14259
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14261
# Commands to strip libraries.
14262
old_striplib=$lt_old_striplib
14263
striplib=$lt_striplib
14265
# Dependencies to place before the objects being linked to create a
14267
predep_objects=$lt_predep_objects_CXX
14269
# Dependencies to place after the objects being linked to create a
14271
postdep_objects=$lt_postdep_objects_CXX
14273
# Dependencies to place before the objects being linked to create a
14275
predeps=$lt_predeps_CXX
14277
# Dependencies to place after the objects being linked to create a
14279
postdeps=$lt_postdeps_CXX
14281
# The library search path used internally by the compiler when linking
14282
# a shared library.
14283
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14285
# Method to check whether dependent libraries are shared objects.
14286
deplibs_check_method=$lt_deplibs_check_method
14288
# Command to use when deplibs_check_method == file_magic.
14289
file_magic_cmd=$lt_file_magic_cmd
14291
# Flag that allows shared libraries with undefined symbols to be built.
14292
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14294
# Flag that forces no undefined symbols.
14295
no_undefined_flag=$lt_no_undefined_flag_CXX
14297
# Commands used to finish a libtool library installation in a directory.
14298
finish_cmds=$lt_finish_cmds
14300
# Same as above, but a single script fragment to be evaled but not shown.
14301
finish_eval=$lt_finish_eval
14303
# Take the output of nm and produce a listing of raw symbols and C names.
14304
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14306
# Transform the output of nm in a proper C declaration
14307
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14309
# Transform the output of nm in a C name address pair
14310
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14312
# This is the shared library runtime path variable.
14313
runpath_var=$runpath_var
14315
# This is the shared library path variable.
14316
shlibpath_var=$shlibpath_var
14318
# Is shlibpath searched before the hard-coded library search path?
14319
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14321
# How to hardcode a shared library path into an executable.
14322
hardcode_action=$hardcode_action_CXX
14324
# Whether we should hardcode library paths into libraries.
14325
hardcode_into_libs=$hardcode_into_libs
14327
# Flag to hardcode \$libdir into a binary during linking.
14328
# This must work even if \$libdir does not exist.
14329
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14331
# If ld is used when linking, flag to hardcode \$libdir into
14332
# a binary during linking. This must work even if \$libdir does
14334
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14336
# Whether we need a single -rpath flag with a separated argument.
14337
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14339
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14340
# resulting binary.
14341
hardcode_direct=$hardcode_direct_CXX
14343
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14344
# resulting binary.
14345
hardcode_minus_L=$hardcode_minus_L_CXX
14347
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14348
# the resulting binary.
14349
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14351
# Set to yes if building a shared library automatically hardcodes DIR into the library
14352
# and all subsequent libraries and executables linked against it.
14353
hardcode_automatic=$hardcode_automatic_CXX
14355
# Variables whose values should be saved in libtool wrapper scripts and
14356
# restored at relink time.
14357
variables_saved_for_relink="$variables_saved_for_relink"
14359
# Whether libtool must link a program against all its dependency libraries.
14360
link_all_deplibs=$link_all_deplibs_CXX
14362
# Compile-time system search path for libraries
14363
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14365
# Run-time system search path for libraries
14366
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14368
# Fix the shell variable \$srcfile for the compiler.
14369
fix_srcfile_path="$fix_srcfile_path_CXX"
14371
# Set to yes if exported symbols are required.
14372
always_export_symbols=$always_export_symbols_CXX
14374
# The commands to list exported symbols.
14375
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14377
# The commands to extract the exported symbol list from a shared archive.
14378
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14380
# Symbols that should not be listed in the preloaded symbols.
14381
exclude_expsyms=$lt_exclude_expsyms_CXX
14383
# Symbols that must always be exported.
14384
include_expsyms=$lt_include_expsyms_CXX
14386
# ### END LIBTOOL TAG CONFIG: $tagname
14392
# If there is no Makefile yet, we rely on a make rule to execute
14393
# `config.status --recheck' to rerun these tests and create the
14394
# libtool script then.
14395
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14396
if test -f "$ltmain_in"; then
14397
test -f Makefile && make "$ltmain"
14403
ac_cpp='$CPP $CPPFLAGS'
14404
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14405
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14406
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14412
with_gnu_ldcxx=$with_gnu_ld
14413
with_gnu_ld=$lt_save_with_gnu_ld
14414
lt_cv_path_LDCXX=$lt_cv_path_LD
14415
lt_cv_path_LD=$lt_save_path_LD
14416
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14417
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14425
if test -n "$F77" && test "X$F77" != "Xno"; then
14428
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14429
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14430
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14433
archive_cmds_need_lc_F77=no
14434
allow_undefined_flag_F77=
14435
always_export_symbols_F77=no
14436
archive_expsym_cmds_F77=
14437
export_dynamic_flag_spec_F77=
14438
hardcode_direct_F77=no
14439
hardcode_libdir_flag_spec_F77=
14440
hardcode_libdir_flag_spec_ld_F77=
14441
hardcode_libdir_separator_F77=
14442
hardcode_minus_L_F77=no
14443
hardcode_automatic_F77=no
14445
module_expsym_cmds_F77=
14446
link_all_deplibs_F77=unknown
14447
old_archive_cmds_F77=$old_archive_cmds
14448
no_undefined_flag_F77=
14449
whole_archive_flag_spec_F77=
14450
enable_shared_with_static_runtimes_F77=no
14452
# Source file extension for f77 test sources.
14455
# Object file extension for compiled f77 test sources.
14459
# Code to be used in simple compile tests
14460
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14462
# Code to be used in simple link tests
14463
lt_simple_link_test_code=" program t\n end\n"
14465
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14467
# If no C compiler was specified, use CC.
14470
# Allow CC to be a program name with arguments.
14474
# Allow CC to be a program name with arguments.
14479
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14481
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14482
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14483
echo "$as_me:$LINENO: result: $can_build_shared" >&5
14484
echo "${ECHO_T}$can_build_shared" >&6
14486
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14487
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14488
test "$can_build_shared" = "no" && enable_shared=no
14490
# On AIX, shared libraries and static libraries use the same namespace, and
14491
# are all built from PIC.
14494
test "$enable_shared" = yes && enable_static=no
14495
if test -n "$RANLIB"; then
14496
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14497
postinstall_cmds='$RANLIB $lib'
14501
test "$enable_shared" = yes && enable_static=no
14504
echo "$as_me:$LINENO: result: $enable_shared" >&5
14505
echo "${ECHO_T}$enable_shared" >&6
14507
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14508
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14509
# Make sure either enable_shared or enable_static is yes.
14510
test "$enable_shared" = yes || enable_static=yes
14511
echo "$as_me:$LINENO: result: $enable_static" >&5
14512
echo "${ECHO_T}$enable_static" >&6
14514
test "$ld_shlibs_F77" = no && can_build_shared=no
14519
lt_prog_compiler_wl_F77=
14520
lt_prog_compiler_pic_F77=
14521
lt_prog_compiler_static_F77=
14523
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14524
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14526
if test "$GCC" = yes; then
14527
lt_prog_compiler_wl_F77='-Wl,'
14528
lt_prog_compiler_static_F77='-static'
14532
# All AIX code is PIC.
14533
if test "$host_cpu" = ia64; then
14534
# AIX 5 now supports IA64 processor
14535
lt_prog_compiler_static_F77='-Bstatic'
14540
# FIXME: we need at least 68020 code to build shared libraries, but
14541
# adding the `-m68020' flag to GCC prevents building anything better,
14543
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14546
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14547
# PIC is the default for these OSes.
14550
mingw* | pw32* | os2*)
14551
# This hack is so that the source file can tell whether it is being
14552
# built for inclusion in a dll (and should export symbols for example).
14553
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14556
darwin* | rhapsody*)
14557
# PIC is the default on this platform
14558
# Common symbols not allowed in MH_DYLIB files
14559
lt_prog_compiler_pic_F77='-fno-common'
14563
# Just because we use GCC doesn't mean we suddenly get shared libraries
14564
# on systems that don't support them.
14565
lt_prog_compiler_can_build_shared_F77=no
14570
if test -d /usr/nec; then
14571
lt_prog_compiler_pic_F77=-Kconform_pic
14576
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14577
# not for PA HP-UX.
14578
case "$host_cpu" in
14583
lt_prog_compiler_pic_F77='-fPIC'
14589
lt_prog_compiler_pic_F77='-fPIC'
14593
# PORTME Check for flag to pass linker flags through the system compiler.
14596
lt_prog_compiler_wl_F77='-Wl,'
14597
if test "$host_cpu" = ia64; then
14598
# AIX 5 now supports IA64 processor
14599
lt_prog_compiler_static_F77='-Bstatic'
14601
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14605
# PIC is the default on this platform
14606
# Common symbols not allowed in MH_DYLIB files
14607
case "$cc_basename" in
14609
lt_prog_compiler_pic_F77='-qnocommon'
14610
lt_prog_compiler_wl_F77='-Wl,'
14615
mingw* | pw32* | os2*)
14616
# This hack is so that the source file can tell whether it is being
14617
# built for inclusion in a dll (and should export symbols for example).
14618
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14621
hpux9* | hpux10* | hpux11*)
14622
lt_prog_compiler_wl_F77='-Wl,'
14623
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14624
# not for PA HP-UX.
14625
case "$host_cpu" in
14630
lt_prog_compiler_pic_F77='+Z'
14633
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14634
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14637
irix5* | irix6* | nonstopux*)
14638
lt_prog_compiler_wl_F77='-Wl,'
14639
# PIC (with -KPIC) is the default.
14640
lt_prog_compiler_static_F77='-non_shared'
14644
lt_prog_compiler_pic_F77='-KPIC'
14645
lt_prog_compiler_static_F77='-Bstatic'
14649
case $cc_basename in
14651
lt_prog_compiler_wl_F77='-Wl,'
14652
lt_prog_compiler_pic_F77='-KPIC'
14653
lt_prog_compiler_static_F77='-static'
14655
pgcc | pgf77 | pgf90)
14656
# Portland Group compilers (*not* the Pentium gcc compiler,
14657
# which looks to be a dead project)
14658
lt_prog_compiler_wl_F77='-Wl,'
14659
lt_prog_compiler_pic_F77='-fpic'
14660
lt_prog_compiler_static_F77='-static'
14663
lt_prog_compiler_wl_F77='-Wl,'
14664
# All Alpha code is PIC.
14665
lt_prog_compiler_static_F77='-non_shared'
14670
osf3* | osf4* | osf5*)
14671
lt_prog_compiler_wl_F77='-Wl,'
14672
# All OSF/1 code is PIC.
14673
lt_prog_compiler_static_F77='-non_shared'
14677
lt_prog_compiler_pic_F77='-Kpic'
14678
lt_prog_compiler_static_F77='-dn'
14682
lt_prog_compiler_wl_F77='-Wl,'
14683
lt_prog_compiler_pic_F77='-KPIC'
14684
lt_prog_compiler_static_F77='-Bstatic'
14688
lt_prog_compiler_wl_F77='-Qoption ld '
14689
lt_prog_compiler_pic_F77='-PIC'
14690
lt_prog_compiler_static_F77='-Bstatic'
14693
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14694
lt_prog_compiler_wl_F77='-Wl,'
14695
lt_prog_compiler_pic_F77='-KPIC'
14696
lt_prog_compiler_static_F77='-Bstatic'
14700
if test -d /usr/nec ;then
14701
lt_prog_compiler_pic_F77='-Kconform_pic'
14702
lt_prog_compiler_static_F77='-Bstatic'
14707
lt_prog_compiler_wl_F77='-Wl,'
14708
lt_prog_compiler_can_build_shared_F77=no
14712
lt_prog_compiler_pic_F77='-pic'
14713
lt_prog_compiler_static_F77='-Bstatic'
14717
lt_prog_compiler_can_build_shared_F77=no
14722
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14723
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14726
# Check to make sure the PIC flag actually works.
14728
if test -n "$lt_prog_compiler_pic_F77"; then
14730
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14731
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14732
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14733
echo $ECHO_N "(cached) $ECHO_C" >&6
14735
lt_prog_compiler_pic_works_F77=no
14736
ac_outfile=conftest.$ac_objext
14737
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14738
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14739
# Insert the option either (1) after the last *FLAGS variable, or
14740
# (2) before a word containing "conftest.", or (3) at the end.
14741
# Note that $ac_compile itself does not contain backslashes and begins
14742
# with a dollar sign (not a hyphen), so the echo should work correctly.
14743
# The option is referenced via a variable to avoid confusing sed.
14744
lt_compile=`echo "$ac_compile" | $SED \
14745
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14746
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14747
-e 's:$: $lt_compiler_flag:'`
14748
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14749
(eval "$lt_compile" 2>conftest.err)
14751
cat conftest.err >&5
14752
echo "$as_me:__oline__: \$? = $ac_status" >&5
14753
if (exit $ac_status) && test -s "$ac_outfile"; then
14754
# The compiler can only warn and ignore the option if not recognized
14755
# So say no if there are warnings
14756
if test ! -s conftest.err; then
14757
lt_prog_compiler_pic_works_F77=yes
14763
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14764
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14766
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14767
case $lt_prog_compiler_pic_F77 in
14769
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14772
lt_prog_compiler_pic_F77=
14773
lt_prog_compiler_can_build_shared_F77=no
14778
# For platforms which do not support PIC, -DPIC is meaningless:
14780
lt_prog_compiler_pic_F77=
14783
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14787
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14788
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14789
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14790
echo $ECHO_N "(cached) $ECHO_C" >&6
14792
lt_cv_prog_compiler_c_o_F77=no
14793
$rm -r conftest 2>/dev/null
14797
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14799
lt_compiler_flag="-o out/conftest2.$ac_objext"
14800
# Insert the option either (1) after the last *FLAGS variable, or
14801
# (2) before a word containing "conftest.", or (3) at the end.
14802
# Note that $ac_compile itself does not contain backslashes and begins
14803
# with a dollar sign (not a hyphen), so the echo should work correctly.
14804
lt_compile=`echo "$ac_compile" | $SED \
14805
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14806
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14807
-e 's:$: $lt_compiler_flag:'`
14808
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14809
(eval "$lt_compile" 2>out/conftest.err)
14811
cat out/conftest.err >&5
14812
echo "$as_me:__oline__: \$? = $ac_status" >&5
14813
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14815
# The compiler can only warn and ignore the option if not recognized
14816
# So say no if there are warnings
14817
if test ! -s out/conftest.err; then
14818
lt_cv_prog_compiler_c_o_F77=yes
14823
# SGI C++ compiler will create directory out/ii_files/ for
14824
# template instantiation
14825
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14826
$rm out/* && rmdir out
14832
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14833
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14836
hard_links="nottested"
14837
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14838
# do not overwrite the value of need_locks provided by the user
14839
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14840
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14843
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14845
ln conftest.a conftest.b 2>&5 || hard_links=no
14846
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14847
echo "$as_me:$LINENO: result: $hard_links" >&5
14848
echo "${ECHO_T}$hard_links" >&6
14849
if test "$hard_links" = no; then
14850
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14851
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14858
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14859
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14862
allow_undefined_flag_F77=
14863
enable_shared_with_static_runtimes_F77=no
14865
archive_expsym_cmds_F77=
14866
old_archive_From_new_cmds_F77=
14867
old_archive_from_expsyms_cmds_F77=
14868
export_dynamic_flag_spec_F77=
14869
whole_archive_flag_spec_F77=
14870
thread_safe_flag_spec_F77=
14871
hardcode_libdir_flag_spec_F77=
14872
hardcode_libdir_flag_spec_ld_F77=
14873
hardcode_libdir_separator_F77=
14874
hardcode_direct_F77=no
14875
hardcode_minus_L_F77=no
14876
hardcode_shlibpath_var_F77=unsupported
14877
link_all_deplibs_F77=unknown
14878
hardcode_automatic_F77=no
14880
module_expsym_cmds_F77=
14881
always_export_symbols_F77=no
14882
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14883
# include_expsyms should be a list of space-separated symbols to be *always*
14884
# included in the symbol list
14885
include_expsyms_F77=
14886
# exclude_expsyms can be an extended regexp of symbols to exclude
14887
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14888
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14889
# as well as any symbol that contains `d'.
14890
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14891
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14892
# platforms (ab)use it in PIC code, but their linkers get confused if
14893
# the symbol is explicitly referenced. Since portable code cannot
14894
# rely on this symbol name, it's probably fine to never include it in
14895
# preloaded symbol tables.
14896
extract_expsyms_cmds=
14899
cygwin* | mingw* | pw32*)
14900
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14901
# When not using gcc, we currently assume that we are using
14902
# Microsoft Visual C++.
14903
if test "$GCC" != yes; then
14913
if test "$with_gnu_ld" = yes; then
14914
# If archive_cmds runs LD, not CC, wlarc should be empty
14917
# See if GNU ld supports shared libraries.
14919
aix3* | aix4* | aix5*)
14920
# On AIX/PPC, the GNU linker is very broken
14921
if test "$host_cpu" != ia64; then
14925
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14926
*** to be unable to reliably create shared libraries on AIX.
14927
*** Therefore, libtool is disabling shared libraries support. If you
14928
*** really care for shared libraries, you may want to modify your PATH
14929
*** so that a non-GNU linker is found, and then restart.
14936
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)'
14937
hardcode_libdir_flag_spec_F77='-L$libdir'
14938
hardcode_minus_L_F77=yes
14940
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14941
# that the semantics of dynamic libraries on AmigaOS, at least up
14942
# to version 4, is to share data among multiple programs linked
14943
# with the same dynamic library. Since this doesn't match the
14944
# behavior of shared libraries on other platforms, we can't use
14950
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14951
allow_undefined_flag_F77=unsupported
14952
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14953
# support --undefined. This deserves some investigation. FIXME
14954
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14960
cygwin* | mingw* | pw32*)
14961
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14962
# as there is no search path for DLLs.
14963
hardcode_libdir_flag_spec_F77='-L$libdir'
14964
allow_undefined_flag_F77=unsupported
14965
always_export_symbols_F77=no
14966
enable_shared_with_static_runtimes_F77=yes
14967
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14969
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14970
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14971
# If the export-symbols file already is a .def file (1st line
14972
# is EXPORTS), use it as is; otherwise, prepend...
14973
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14974
cp $export_symbols $output_objdir/$soname.def;
14976
echo EXPORTS > $output_objdir/$soname.def;
14977
cat $export_symbols >> $output_objdir/$soname.def;
14979
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14986
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14987
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14990
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14991
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14996
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15000
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15001
*** create shared libraries on Solaris systems. Therefore, libtool
15002
*** is disabling shared libraries support. We urge you to upgrade GNU
15003
*** binutils to release 2.9.1 or newer. Another option is to modify
15004
*** your PATH or compiler configuration so that the native linker is
15005
*** used, and then restart.
15008
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15009
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15010
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15017
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15019
hardcode_direct_F77=yes
15020
hardcode_shlibpath_var_F77=no
15024
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15026
case $CC,$host_cpu in
15027
pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
15028
tmp_addflag=' -fpic' ;;
15029
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15030
tmp_addflag=' -i_dynamic' ;;
15031
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15032
tmp_addflag=' -i_dynamic -nofor_main' ;;
15033
ifc* | ifort*) # Intel Fortran compiler
15034
tmp_addflag=' -nofor_main' ;;
15036
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15037
supports_anon_versioning=no
15038
case `$LD -v 2>/dev/null` in
15039
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15040
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15041
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15042
*\ 2.11.*) ;; # other 2.11 versions
15043
*) supports_anon_versioning=yes ;;
15045
if test $supports_anon_versioning = yes; then
15046
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15047
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15048
$echo "local: *; };" >> $output_objdir/$libname.ver~
15049
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15051
archive_expsym_cmds_F77=$archive_cmds_F77
15059
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15060
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15061
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15068
if test "$ld_shlibs_F77" = yes; then
15069
runpath_var=LD_RUN_PATH
15070
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15071
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15072
# ancient GNU ld didn't support --whole-archive et. al.
15073
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15074
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15076
whole_archive_flag_spec_F77=
15080
# PORTME fill in a description of your system's linker (not GNU ld)
15083
allow_undefined_flag_F77=unsupported
15084
always_export_symbols_F77=yes
15085
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'
15086
# Note: this linker hardcodes the directories in LIBPATH if there
15087
# are no directories specified by -L.
15088
hardcode_minus_L_F77=yes
15089
if test "$GCC" = yes && test -z "$link_static_flag"; then
15090
# Neither direct hardcoding nor static linking is supported with a
15092
hardcode_direct_F77=unsupported
15097
if test "$host_cpu" = ia64; then
15098
# On IA64, the linker does run time linking by default, so we don't
15099
# have to do anything special.
15100
aix_use_runtimelinking=no
15101
exp_sym_flag='-Bexport'
15104
# If we're using GNU nm, then we don't want the "-C" option.
15105
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15106
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15107
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'
15109
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'
15111
aix_use_runtimelinking=no
15113
# Test if we are trying to use run time linking or normal
15114
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15115
# need to do runtime linking.
15116
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15117
for ld_flag in $LDFLAGS; do
15118
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15119
aix_use_runtimelinking=yes
15125
exp_sym_flag='-bexport'
15126
no_entry_flag='-bnoentry'
15129
# When large executables or shared objects are built, AIX ld can
15130
# have problems creating the table of contents. If linking a library
15131
# or program results in "error TOC overflow" add -mminimal-toc to
15132
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15133
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15135
archive_cmds_F77=''
15136
hardcode_direct_F77=yes
15137
hardcode_libdir_separator_F77=':'
15138
link_all_deplibs_F77=yes
15140
if test "$GCC" = yes; then
15141
case $host_os in aix4.[012]|aix4.[012].*)
15142
# We only want to do this on AIX 4.2 and lower, the check
15143
# below for broken collect2 doesn't work under 4.3+
15144
collect2name=`${CC} -print-prog-name=collect2`
15145
if test -f "$collect2name" && \
15146
strings "$collect2name" | grep resolve_lib_name >/dev/null
15148
# We have reworked collect2
15149
hardcode_direct_F77=yes
15151
# We have old collect2
15152
hardcode_direct_F77=unsupported
15153
# It fails to find uninstalled libraries when the uninstalled
15154
# path is not listed in the libpath. Setting hardcode_minus_L
15155
# to unsupported forces relinking
15156
hardcode_minus_L_F77=yes
15157
hardcode_libdir_flag_spec_F77='-L$libdir'
15158
hardcode_libdir_separator_F77=
15161
shared_flag='-shared'
15162
if test "$aix_use_runtimelinking" = yes; then
15163
shared_flag="$shared_flag "'${wl}-G'
15167
if test "$host_cpu" = ia64; then
15168
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15169
# chokes on -Wl,-G. The following line is correct:
15172
if test "$aix_use_runtimelinking" = yes; then
15173
shared_flag='${wl}-G'
15175
shared_flag='${wl}-bM:SRE'
15180
# It seems that -bexpall does not export symbols beginning with
15181
# underscore (_), so it is better to generate a list of symbols to export.
15182
always_export_symbols_F77=yes
15183
if test "$aix_use_runtimelinking" = yes; then
15184
# Warning - without using the other runtime loading flags (-brtl),
15185
# -berok will link without error, but may produce a broken library.
15186
allow_undefined_flag_F77='-berok'
15187
# Determine the default libpath from the value encoded in an empty executable.
15188
cat >conftest.$ac_ext <<_ACEOF
15193
rm -f conftest.$ac_objext conftest$ac_exeext
15194
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15195
(eval $ac_link) 2>conftest.er1
15197
grep -v '^ *+' conftest.er1 >conftest.err
15199
cat conftest.err >&5
15200
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201
(exit $ac_status); } &&
15202
{ ac_try='test -z "$ac_f77_werror_flag"
15203
|| test ! -s conftest.err'
15204
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15205
(eval $ac_try) 2>&5
15207
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208
(exit $ac_status); }; } &&
15209
{ ac_try='test -s conftest$ac_exeext'
15210
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211
(eval $ac_try) 2>&5
15213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214
(exit $ac_status); }; }; then
15216
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15218
# Check for a 64-bit object if we didn't find anything.
15219
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; }
15222
echo "$as_me: failed program was:" >&5
15223
sed 's/^/| /' conftest.$ac_ext >&5
15226
rm -f conftest.err conftest.$ac_objext \
15227
conftest$ac_exeext conftest.$ac_ext
15228
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15230
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15231
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"
15233
if test "$host_cpu" = ia64; then
15234
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15235
allow_undefined_flag_F77="-z nodefs"
15236
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"
15238
# Determine the default libpath from the value encoded in an empty executable.
15239
cat >conftest.$ac_ext <<_ACEOF
15244
rm -f conftest.$ac_objext conftest$ac_exeext
15245
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15246
(eval $ac_link) 2>conftest.er1
15248
grep -v '^ *+' conftest.er1 >conftest.err
15250
cat conftest.err >&5
15251
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252
(exit $ac_status); } &&
15253
{ ac_try='test -z "$ac_f77_werror_flag"
15254
|| test ! -s conftest.err'
15255
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256
(eval $ac_try) 2>&5
15258
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259
(exit $ac_status); }; } &&
15260
{ ac_try='test -s conftest$ac_exeext'
15261
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262
(eval $ac_try) 2>&5
15264
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265
(exit $ac_status); }; }; then
15267
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15269
# Check for a 64-bit object if we didn't find anything.
15270
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; }
15273
echo "$as_me: failed program was:" >&5
15274
sed 's/^/| /' conftest.$ac_ext >&5
15277
rm -f conftest.err conftest.$ac_objext \
15278
conftest$ac_exeext conftest.$ac_ext
15279
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15281
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15282
# Warning - without using the other run time loading flags,
15283
# -berok will link without error, but may produce a broken library.
15284
no_undefined_flag_F77=' ${wl}-bernotok'
15285
allow_undefined_flag_F77=' ${wl}-berok'
15286
# -bexpall does not export symbols beginning with underscore (_)
15287
always_export_symbols_F77=yes
15288
# Exported symbols can be pulled into shared objects from archives
15289
whole_archive_flag_spec_F77=' '
15290
archive_cmds_need_lc_F77=yes
15291
# This is similar to how AIX traditionally builds it's shared libraries.
15292
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'
15298
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)'
15299
hardcode_libdir_flag_spec_F77='-L$libdir'
15300
hardcode_minus_L_F77=yes
15301
# see comment about different semantics on the GNU ld section
15306
export_dynamic_flag_spec_F77=-rdynamic
15309
cygwin* | mingw* | pw32*)
15310
# When not using gcc, we currently assume that we are using
15311
# Microsoft Visual C++.
15312
# hardcode_libdir_flag_spec is actually meaningless, as there is
15313
# no search path for DLLs.
15314
hardcode_libdir_flag_spec_F77=' '
15315
allow_undefined_flag_F77=unsupported
15316
# Tell ltmain to make .lib files, not .a files.
15318
# Tell ltmain to make .dll files, not .so files.
15320
# FIXME: Setting linknames here is a bad hack.
15321
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15322
# The linker will automatically build a .lib file if we build a DLL.
15323
old_archive_From_new_cmds_F77='true'
15324
# FIXME: Should let the user specify the lib program.
15325
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15326
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15327
enable_shared_with_static_runtimes_F77=yes
15330
darwin* | rhapsody*)
15332
rhapsody* | darwin1.[012])
15333
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15336
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15337
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15339
case ${MACOSX_DEPLOYMENT_TARGET} in
15341
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15344
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15350
archive_cmds_need_lc_F77=no
15351
hardcode_direct_F77=no
15352
hardcode_automatic_F77=yes
15353
hardcode_shlibpath_var_F77=unsupported
15354
whole_archive_flag_spec_F77=''
15355
link_all_deplibs_F77=yes
15356
if test "$GCC" = yes ; then
15357
output_verbose_link_cmd='echo'
15358
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15359
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15360
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15361
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}'
15362
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}'
15364
case "$cc_basename" in
15366
output_verbose_link_cmd='echo'
15367
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15368
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15369
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15370
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}'
15371
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}'
15381
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15382
hardcode_libdir_flag_spec_F77='-L$libdir'
15383
hardcode_shlibpath_var_F77=no
15390
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15391
# support. Future versions do this automatically, but an explicit c++rt0.o
15392
# does not break anything, and helps significantly (at the cost of a little
15395
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15396
hardcode_libdir_flag_spec_F77='-R$libdir'
15397
hardcode_direct_F77=yes
15398
hardcode_shlibpath_var_F77=no
15401
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15403
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15404
hardcode_direct_F77=yes
15405
hardcode_minus_L_F77=yes
15406
hardcode_shlibpath_var_F77=no
15409
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15410
freebsd* | kfreebsd*-gnu | dragonfly*)
15411
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15412
hardcode_libdir_flag_spec_F77='-R$libdir'
15413
hardcode_direct_F77=yes
15414
hardcode_shlibpath_var_F77=no
15418
if test "$GCC" = yes; then
15419
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'
15421
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'
15423
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15424
hardcode_libdir_separator_F77=:
15425
hardcode_direct_F77=yes
15427
# hardcode_minus_L: Not really in the search PATH,
15428
# but as the default location of the library.
15429
hardcode_minus_L_F77=yes
15430
export_dynamic_flag_spec_F77='${wl}-E'
15434
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15435
case "$host_cpu" in
15437
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15440
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15444
case "$host_cpu" in
15446
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15449
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15453
if test "$with_gnu_ld" = no; then
15454
case "$host_cpu" in
15456
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15457
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15458
hardcode_libdir_separator_F77=:
15459
hardcode_direct_F77=no
15460
hardcode_shlibpath_var_F77=no
15463
hardcode_libdir_flag_spec_F77='-L$libdir'
15464
hardcode_direct_F77=no
15465
hardcode_shlibpath_var_F77=no
15467
# hardcode_minus_L: Not really in the search PATH,
15468
# but as the default location of the library.
15469
hardcode_minus_L_F77=yes
15472
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15473
hardcode_libdir_separator_F77=:
15474
hardcode_direct_F77=yes
15475
export_dynamic_flag_spec_F77='${wl}-E'
15477
# hardcode_minus_L: Not really in the search PATH,
15478
# but as the default location of the library.
15479
hardcode_minus_L_F77=yes
15485
irix5* | irix6* | nonstopux*)
15486
if test "$GCC" = yes; then
15487
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'
15489
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'
15490
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15492
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15493
hardcode_libdir_separator_F77=:
15494
link_all_deplibs_F77=yes
15498
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15499
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15501
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15503
hardcode_libdir_flag_spec_F77='-R$libdir'
15504
hardcode_direct_F77=yes
15505
hardcode_shlibpath_var_F77=no
15509
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15510
hardcode_direct_F77=yes
15511
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15512
hardcode_libdir_separator_F77=:
15513
hardcode_shlibpath_var_F77=no
15517
hardcode_direct_F77=yes
15518
hardcode_shlibpath_var_F77=no
15519
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15520
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15521
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15522
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15523
export_dynamic_flag_spec_F77='${wl}-E'
15526
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15527
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15528
hardcode_libdir_flag_spec_F77='-R$libdir'
15531
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15532
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15539
hardcode_libdir_flag_spec_F77='-L$libdir'
15540
hardcode_minus_L_F77=yes
15541
allow_undefined_flag_F77=unsupported
15542
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'
15543
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15547
if test "$GCC" = yes; then
15548
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15549
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'
15551
allow_undefined_flag_F77=' -expect_unresolved \*'
15552
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'
15554
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15555
hardcode_libdir_separator_F77=:
15558
osf4* | osf5*) # as osf3* with the addition of -msym flag
15559
if test "$GCC" = yes; then
15560
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15561
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'
15562
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15564
allow_undefined_flag_F77=' -expect_unresolved \*'
15565
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'
15566
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~
15567
$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'
15569
# Both c and cxx compiler support -rpath directly
15570
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15572
hardcode_libdir_separator_F77=:
15576
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15577
hardcode_shlibpath_var_F77=no
15578
export_dynamic_flag_spec_F77='${wl}-Bexport'
15579
runpath_var=LD_RUN_PATH
15580
hardcode_runpath_var=yes
15584
no_undefined_flag_F77=' -z text'
15585
if test "$GCC" = yes; then
15586
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15587
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15588
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15590
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15591
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15592
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15594
hardcode_libdir_flag_spec_F77='-R$libdir'
15595
hardcode_shlibpath_var_F77=no
15597
solaris2.[0-5] | solaris2.[0-5].*) ;;
15598
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
15599
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
15601
link_all_deplibs_F77=yes
15605
if test "x$host_vendor" = xsequent; then
15606
# Use $CC to link under sequent, because it throws in some extra .o
15607
# files that make .init and .fini sections work.
15608
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15610
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15612
hardcode_libdir_flag_spec_F77='-L$libdir'
15613
hardcode_direct_F77=yes
15614
hardcode_minus_L_F77=yes
15615
hardcode_shlibpath_var_F77=no
15619
case $host_vendor in
15621
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15622
hardcode_direct_F77=yes # is this really true???
15625
## LD is ld it makes a PLAMLIB
15626
## CC just makes a GrossModule.
15627
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15628
reload_cmds_F77='$CC -r -o $output$reload_objs'
15629
hardcode_direct_F77=no
15632
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15633
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15636
runpath_var='LD_RUN_PATH'
15637
hardcode_shlibpath_var_F77=no
15641
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15642
hardcode_shlibpath_var_F77=no
15643
export_dynamic_flag_spec_F77='-Bexport'
15647
if test -d /usr/nec; then
15648
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15649
hardcode_shlibpath_var_F77=no
15650
runpath_var=LD_RUN_PATH
15651
hardcode_runpath_var=yes
15657
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15658
hardcode_direct_F77=yes
15659
hardcode_minus_L_F77=no
15660
hardcode_shlibpath_var_F77=no
15661
hardcode_runpath_var=yes
15662
runpath_var=LD_RUN_PATH
15665
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15666
no_undefined_flag_F77='${wl}-z ${wl}text'
15667
if test "$GCC" = yes; then
15668
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15670
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15672
runpath_var='LD_RUN_PATH'
15673
hardcode_shlibpath_var_F77=no
15677
no_undefined_flag_F77=' -z text'
15678
# $CC -shared without GNU ld will not create a library from C++
15679
# object files and a static libstdc++, better avoid it by now
15680
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15681
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15682
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15683
hardcode_libdir_flag_spec_F77=
15684
hardcode_shlibpath_var_F77=no
15685
runpath_var='LD_RUN_PATH'
15689
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15690
hardcode_libdir_flag_spec_F77='-L$libdir'
15691
hardcode_shlibpath_var_F77=no
15700
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15701
echo "${ECHO_T}$ld_shlibs_F77" >&6
15702
test "$ld_shlibs_F77" = no && can_build_shared=no
15704
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15705
if test "$GCC" = yes; then
15706
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15710
# Do we need to explicitly link libc?
15712
case "x$archive_cmds_need_lc_F77" in
15714
# Assume -lc should be added
15715
archive_cmds_need_lc_F77=yes
15717
if test "$enable_shared" = yes && test "$GCC" = yes; then
15718
case $archive_cmds_F77 in
15720
# FIXME: we may have to deal with multi-command sequences.
15723
# Test whether the compiler implicitly links with -lc since on some
15724
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15725
# to ld, don't add -lc before -lgcc.
15726
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15727
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15729
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15731
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15732
(eval $ac_compile) 2>&5
15734
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735
(exit $ac_status); } 2>conftest.err; then
15738
libobjs=conftest.$ac_objext
15740
wl=$lt_prog_compiler_wl_F77
15746
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15747
allow_undefined_flag_F77=
15748
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15749
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15751
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752
(exit $ac_status); }
15754
archive_cmds_need_lc_F77=no
15756
archive_cmds_need_lc_F77=yes
15758
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15760
cat conftest.err 1>&5
15763
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15764
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15771
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15772
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15773
library_names_spec=
15774
libname_spec='lib$name'
15778
postuninstall_cmds=
15782
shlibpath_overrides_runpath=unknown
15784
dynamic_linker="$host_os ld.so"
15785
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15786
if test "$GCC" = yes; then
15787
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15788
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15789
# if the path contains ";" then we assume it to be the separator
15790
# otherwise default to the standard path separator (i.e. ":") - it is
15791
# assumed that no part of a normal pathname contains ";" but that should
15792
# okay in the real world where ";" in dirpaths is itself problematic.
15793
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15795
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15798
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15800
need_lib_prefix=unknown
15801
hardcode_into_libs=no
15803
# when you set need_version to no, make sure it does not cause -set_version
15804
# flags to be left without arguments
15805
need_version=unknown
15810
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15811
shlibpath_var=LIBPATH
15813
# AIX 3 has no versioning support, so we append a major version to the name.
15814
soname_spec='${libname}${release}${shared_ext}$major'
15821
hardcode_into_libs=yes
15822
if test "$host_cpu" = ia64; then
15823
# AIX 5 supports IA64
15824
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15825
shlibpath_var=LD_LIBRARY_PATH
15827
# With GCC up to 2.95.x, collect2 would create an import file
15828
# for dependence libraries. The import file would start with
15829
# the line `#! .'. This would cause the generated library to
15830
# depend on `.', always an invalid library. This was fixed in
15831
# development snapshots of GCC prior to 3.0.
15833
aix4 | aix4.[01] | aix4.[01].*)
15834
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15836
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15839
can_build_shared=no
15843
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15844
# soname into executable. Probably we can add versioning support to
15845
# collect2, so additional links can be useful in future.
15846
if test "$aix_use_runtimelinking" = yes; then
15847
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15848
# instead of lib<name>.a to let people know that these are not
15849
# typical AIX shared libraries.
15850
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15852
# We preserve .a as extension for shared libraries through AIX4.2
15853
# and later when we are not doing run time linking.
15854
library_names_spec='${libname}${release}.a $libname.a'
15855
soname_spec='${libname}${release}${shared_ext}$major'
15857
shlibpath_var=LIBPATH
15862
library_names_spec='$libname.ixlibrary $libname.a'
15863
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15864
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'
15868
library_names_spec='${libname}${shared_ext}'
15869
dynamic_linker="$host_os ld.so"
15870
shlibpath_var=LIBRARY_PATH
15876
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15877
soname_spec='${libname}${release}${shared_ext}$major'
15878
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15879
shlibpath_var=LD_LIBRARY_PATH
15880
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15881
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15882
# the default ld.so.conf also contains /usr/contrib/lib and
15883
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15884
# libtool to hard-code these into programs
15887
cygwin* | mingw* | pw32*)
15888
version_type=windows
15893
case $GCC,$host_os in
15894
yes,cygwin* | yes,mingw* | yes,pw32*)
15895
library_names_spec='$libname.dll.a'
15896
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15897
postinstall_cmds='base_file=`basename \${file}`~
15898
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15899
dldir=$destdir/`dirname \$dlpath`~
15900
test -d \$dldir || mkdir -p \$dldir~
15901
$install_prog $dir/$dlname \$dldir/$dlname'
15902
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15903
dlpath=$dir/\$dldll~
15905
shlibpath_overrides_runpath=yes
15909
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15910
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15911
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15914
# MinGW DLLs use traditional 'lib' prefix
15915
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15916
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15917
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15918
# It is most probably a Windows format PATH printed by
15919
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15920
# path with ; separators, and with drive letters. We can handle the
15921
# drive letters (cygwin fileutils understands them), so leave them,
15922
# especially as we might pass files found there to a mingw objdump,
15923
# which wouldn't understand a cygwinified path. Ahh.
15924
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15926
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15930
# pw32 DLLs use 'pw' prefix rather than 'lib'
15931
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15937
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15940
dynamic_linker='Win32 ld.exe'
15941
# FIXME: first we should search . and the directory the executable is in
15945
darwin* | rhapsody*)
15946
dynamic_linker="$host_os dyld"
15947
version_type=darwin
15950
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15951
soname_spec='${libname}${release}${major}$shared_ext'
15952
shlibpath_overrides_runpath=yes
15953
shlibpath_var=DYLD_LIBRARY_PATH
15954
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15955
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15956
if test "$GCC" = yes; then
15957
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"`
15959
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15961
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15968
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15969
soname_spec='${libname}${release}${shared_ext}$major'
15970
shlibpath_var=LD_LIBRARY_PATH
15981
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15982
soname_spec='${libname}${release}${shared_ext}$major'
15983
shlibpath_var=LD_LIBRARY_PATH
15984
shlibpath_overrides_runpath=no
15985
hardcode_into_libs=yes
15986
dynamic_linker='GNU ld.so'
15989
freebsd* | dragonfly*)
15990
# DragonFly does not have aout. When/if they implement a new
15991
# versioning mechanism, adjust this.
15992
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15993
version_type=freebsd-$objformat
15994
case $version_type in
15996
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16001
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16005
shlibpath_var=LD_LIBRARY_PATH
16008
shlibpath_overrides_runpath=yes
16010
freebsd3.[01]* | freebsdelf3.[01]*)
16011
shlibpath_overrides_runpath=yes
16012
hardcode_into_libs=yes
16015
shlibpath_overrides_runpath=no
16016
hardcode_into_libs=yes
16025
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16026
soname_spec='${libname}${release}${shared_ext}$major'
16027
shlibpath_var=LD_LIBRARY_PATH
16028
hardcode_into_libs=yes
16031
hpux9* | hpux10* | hpux11*)
16032
# Give a soname corresponding to the major version so that dld.sl refuses to
16033
# link against other versions.
16037
case "$host_cpu" in
16040
hardcode_into_libs=yes
16041
dynamic_linker="$host_os dld.so"
16042
shlibpath_var=LD_LIBRARY_PATH
16043
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16044
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16045
soname_spec='${libname}${release}${shared_ext}$major'
16046
if test "X$HPUX_IA64_MODE" = X32; then
16047
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16049
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16051
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16055
hardcode_into_libs=yes
16056
dynamic_linker="$host_os dld.sl"
16057
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16058
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16059
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16060
soname_spec='${libname}${release}${shared_ext}$major'
16061
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16062
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16066
dynamic_linker="$host_os dld.sl"
16067
shlibpath_var=SHLIB_PATH
16068
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16069
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16070
soname_spec='${libname}${release}${shared_ext}$major'
16073
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16074
postinstall_cmds='chmod 555 $lib'
16077
irix5* | irix6* | nonstopux*)
16079
nonstopux*) version_type=nonstopux ;;
16081
if test "$lt_cv_prog_gnu_ld" = yes; then
16089
soname_spec='${libname}${release}${shared_ext}$major'
16090
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16092
irix5* | nonstopux*)
16093
libsuff= shlibsuff=
16096
case $LD in # libtool.m4 will add one of these switches to LD
16097
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16098
libsuff= shlibsuff= libmagic=32-bit;;
16099
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16100
libsuff=32 shlibsuff=N32 libmagic=N32;;
16101
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16102
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16103
*) libsuff= shlibsuff= libmagic=never-match;;
16107
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16108
shlibpath_overrides_runpath=no
16109
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16110
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16111
hardcode_into_libs=yes
16114
# No shared lib support for Linux oldld, aout, or coff.
16115
linux*oldld* | linux*aout* | linux*coff*)
16119
# This must be Linux ELF.
16124
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16125
soname_spec='${libname}${release}${shared_ext}$major'
16126
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16127
shlibpath_var=LD_LIBRARY_PATH
16128
shlibpath_overrides_runpath=no
16129
# This implies no fast_install, which is unacceptable.
16130
# Some rework will be needed to allow for fast_install
16131
# before this can be enabled.
16132
hardcode_into_libs=yes
16134
# Append ld.so.conf contents to the search path
16135
if test -f /etc/ld.so.conf; then
16136
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' ' '`
16137
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16140
# We used to test for /lib/ld.so.1 and disable shared libraries on
16141
# powerpc, because MkLinux only supported shared libraries with the
16142
# GNU dynamic linker. Since this was broken with cross compilers,
16143
# most powerpc-linux boxes support dynamic linking these days and
16144
# people can always --disable-shared, the test was removed, and we
16145
# assume the GNU/Linux dynamic linker is in use.
16146
dynamic_linker='GNU/Linux ld.so'
16153
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16154
soname_spec='${libname}${release}${shared_ext}$major'
16155
shlibpath_var=LD_LIBRARY_PATH
16156
shlibpath_overrides_runpath=no
16157
hardcode_into_libs=yes
16158
dynamic_linker='GNU ld.so'
16165
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16166
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16167
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16168
dynamic_linker='NetBSD (a.out) ld.so'
16170
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16171
soname_spec='${libname}${release}${shared_ext}$major'
16172
dynamic_linker='NetBSD ld.elf_so'
16174
shlibpath_var=LD_LIBRARY_PATH
16175
shlibpath_overrides_runpath=yes
16176
hardcode_into_libs=yes
16181
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16182
shlibpath_var=LD_LIBRARY_PATH
16183
shlibpath_overrides_runpath=yes
16190
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16191
soname_spec='${libname}${release}${shared_ext}$major'
16192
shlibpath_var=LD_LIBRARY_PATH
16193
shlibpath_overrides_runpath=yes
16200
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16201
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16202
shlibpath_var=LD_LIBRARY_PATH
16203
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16205
openbsd2.[89] | openbsd2.[89].*)
16206
shlibpath_overrides_runpath=no
16209
shlibpath_overrides_runpath=yes
16213
shlibpath_overrides_runpath=yes
16218
libname_spec='$name'
16221
library_names_spec='$libname${shared_ext} $libname.a'
16222
dynamic_linker='OS/2 ld.exe'
16223
shlibpath_var=LIBPATH
16226
osf3* | osf4* | osf5*)
16230
soname_spec='${libname}${release}${shared_ext}$major'
16231
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16232
shlibpath_var=LD_LIBRARY_PATH
16233
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16234
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16239
soname_spec='${libname}${release}${shared_ext}$major'
16240
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16241
shlibpath_var=LD_LIBRARY_PATH
16248
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16249
soname_spec='${libname}${release}${shared_ext}$major'
16250
shlibpath_var=LD_LIBRARY_PATH
16251
shlibpath_overrides_runpath=yes
16252
hardcode_into_libs=yes
16253
# ldd complains unless libraries are executable
16254
postinstall_cmds='chmod +x $lib'
16259
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16260
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16261
shlibpath_var=LD_LIBRARY_PATH
16262
shlibpath_overrides_runpath=yes
16263
if test "$with_gnu_ld" = yes; then
16269
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16271
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16272
soname_spec='${libname}${release}${shared_ext}$major'
16273
shlibpath_var=LD_LIBRARY_PATH
16274
case $host_vendor in
16276
shlibpath_overrides_runpath=no
16278
export_dynamic_flag_spec='${wl}-Blargedynsym'
16279
runpath_var=LD_RUN_PATH
16287
shlibpath_overrides_runpath=no
16288
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16294
if test -d /usr/nec ;then
16296
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16297
soname_spec='$libname${shared_ext}.$major'
16298
shlibpath_var=LD_LIBRARY_PATH
16304
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16305
soname_spec='${libname}${release}${shared_ext}$major'
16306
shlibpath_var=LD_LIBRARY_PATH
16313
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16314
echo "${ECHO_T}$dynamic_linker" >&6
16315
test "$dynamic_linker" = no && can_build_shared=no
16317
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16318
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16319
hardcode_action_F77=
16320
if test -n "$hardcode_libdir_flag_spec_F77" || \
16321
test -n "$runpath_var_F77" || \
16322
test "X$hardcode_automatic_F77" = "Xyes" ; then
16324
# We can hardcode non-existant directories.
16325
if test "$hardcode_direct_F77" != no &&
16326
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16327
# have to relink, otherwise we might link with an installed library
16328
# when we should be linking with a yet-to-be-installed one
16329
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16330
test "$hardcode_minus_L_F77" != no; then
16331
# Linking always hardcodes the temporary library directory.
16332
hardcode_action_F77=relink
16334
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16335
hardcode_action_F77=immediate
16338
# We cannot hardcode anything, or else we can only hardcode existing
16340
hardcode_action_F77=unsupported
16342
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16343
echo "${ECHO_T}$hardcode_action_F77" >&6
16345
if test "$hardcode_action_F77" = relink; then
16346
# Fast installation is not supported
16347
enable_fast_install=no
16348
elif test "$shlibpath_overrides_runpath" = yes ||
16349
test "$enable_shared" = no; then
16350
# Fast installation is not necessary
16351
enable_fast_install=needless
16356
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16357
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16358
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16359
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16360
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16361
echo "$as_me:$LINENO: result: yes" >&5
16362
echo "${ECHO_T}yes" >&6
16364
# FIXME - insert some real tests, host_os isn't really good enough
16367
if test -n "$STRIP" ; then
16368
striplib="$STRIP -x"
16369
echo "$as_me:$LINENO: result: yes" >&5
16370
echo "${ECHO_T}yes" >&6
16372
echo "$as_me:$LINENO: result: no" >&5
16373
echo "${ECHO_T}no" >&6
16377
echo "$as_me:$LINENO: result: no" >&5
16378
echo "${ECHO_T}no" >&6
16385
# The else clause should only fire when bootstrapping the
16386
# libtool distribution, otherwise you forgot to ship ltmain.sh
16387
# with your package, and you will get complaints that there are
16388
# no rules to generate ltmain.sh.
16389
if test -f "$ltmain"; then
16390
# See if we are running on zsh, and set the options which allow our commands through
16391
# without removal of \ escapes.
16392
if test -n "${ZSH_VERSION+set}" ; then
16393
setopt NO_GLOB_SUBST
16395
# Now quote all the things that may contain metacharacters while being
16396
# careful not to overquote the AC_SUBSTed values. We take copies of the
16397
# variables and quote the copies for generation of the libtool script.
16398
for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
16400
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16401
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16402
deplibs_check_method reload_flag reload_cmds need_locks \
16403
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16404
lt_cv_sys_global_symbol_to_c_name_address \
16405
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16406
old_postinstall_cmds old_postuninstall_cmds \
16410
lt_prog_compiler_wl_F77 \
16411
lt_prog_compiler_pic_F77 \
16412
lt_prog_compiler_static_F77 \
16413
lt_prog_compiler_no_builtin_flag_F77 \
16414
export_dynamic_flag_spec_F77 \
16415
thread_safe_flag_spec_F77 \
16416
whole_archive_flag_spec_F77 \
16417
enable_shared_with_static_runtimes_F77 \
16418
old_archive_cmds_F77 \
16419
old_archive_from_new_cmds_F77 \
16420
predep_objects_F77 \
16421
postdep_objects_F77 \
16424
compiler_lib_search_path_F77 \
16426
archive_expsym_cmds_F77 \
16427
postinstall_cmds_F77 \
16428
postuninstall_cmds_F77 \
16429
old_archive_from_expsyms_cmds_F77 \
16430
allow_undefined_flag_F77 \
16431
no_undefined_flag_F77 \
16432
export_symbols_cmds_F77 \
16433
hardcode_libdir_flag_spec_F77 \
16434
hardcode_libdir_flag_spec_ld_F77 \
16435
hardcode_libdir_separator_F77 \
16436
hardcode_automatic_F77 \
16438
module_expsym_cmds_F77 \
16439
lt_cv_prog_compiler_c_o_F77 \
16440
exclude_expsyms_F77 \
16441
include_expsyms_F77; do
16444
old_archive_cmds_F77 | \
16445
old_archive_from_new_cmds_F77 | \
16446
archive_cmds_F77 | \
16447
archive_expsym_cmds_F77 | \
16448
module_cmds_F77 | \
16449
module_expsym_cmds_F77 | \
16450
old_archive_from_expsyms_cmds_F77 | \
16451
export_symbols_cmds_F77 | \
16452
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16453
postinstall_cmds | postuninstall_cmds | \
16454
old_postinstall_cmds | old_postuninstall_cmds | \
16455
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16456
# Double-quote double-evaled strings.
16457
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16460
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16466
*'\$0 --fallback-echo"')
16467
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16473
cat <<__EOF__ >> "$cfgfile"
16474
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16476
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16478
# Shell to use when invoking shell scripts.
16481
# Whether or not to build shared libraries.
16482
build_libtool_libs=$enable_shared
16484
# Whether or not to build static libraries.
16485
build_old_libs=$enable_static
16487
# Whether or not to add -lc for building shared libraries.
16488
build_libtool_need_lc=$archive_cmds_need_lc_F77
16490
# Whether or not to disallow shared libs when runtime libs are static
16491
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16493
# Whether or not to optimize for fast installation.
16494
fast_install=$enable_fast_install
16497
host_alias=$host_alias
16501
# The build system.
16502
build_alias=$build_alias
16506
# An echo program that does not interpret backslashes.
16511
AR_FLAGS=$lt_AR_FLAGS
16516
# A language-specific compiler.
16517
CC=$lt_compiler_F77
16519
# Is the compiler the GNU C compiler?
16525
# The linker used to build libraries.
16528
# Whether we need hard or soft links.
16531
# A BSD-compatible nm program.
16534
# A symbol stripping program
16537
# Used to examine libraries when file_magic_cmd begins "file"
16538
MAGIC_CMD=$MAGIC_CMD
16540
# Used on cygwin: DLL creation program.
16543
# Used on cygwin: object dumper.
16546
# Used on cygwin: assembler.
16549
# The name of the directory that contains temporary libtool files.
16552
# How to create reloadable object files.
16553
reload_flag=$lt_reload_flag
16554
reload_cmds=$lt_reload_cmds
16556
# How to pass a linker flag through the compiler.
16557
wl=$lt_lt_prog_compiler_wl_F77
16559
# Object file suffix (normally "o").
16560
objext="$ac_objext"
16562
# Old archive suffix (normally "a").
16565
# Shared library suffix (normally ".so").
16566
shrext_cmds='$shrext_cmds'
16568
# Executable file suffix (normally "").
16571
# Additional compiler flags for building library objects.
16572
pic_flag=$lt_lt_prog_compiler_pic_F77
16575
# What is the maximum length of a command?
16576
max_cmd_len=$lt_cv_sys_max_cmd_len
16578
# Does compiler simultaneously support -c and -o options?
16579
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16581
# Must we lock files when doing compilation ?
16582
need_locks=$lt_need_locks
16584
# Do we need the lib prefix for modules?
16585
need_lib_prefix=$need_lib_prefix
16587
# Do we need a version for libraries?
16588
need_version=$need_version
16590
# Whether dlopen is supported.
16591
dlopen_support=$enable_dlopen
16593
# Whether dlopen of programs is supported.
16594
dlopen_self=$enable_dlopen_self
16596
# Whether dlopen of statically linked programs is supported.
16597
dlopen_self_static=$enable_dlopen_self_static
16599
# Compiler flag to prevent dynamic linking.
16600
link_static_flag=$lt_lt_prog_compiler_static_F77
16602
# Compiler flag to turn off builtin functions.
16603
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16605
# Compiler flag to allow reflexive dlopens.
16606
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16608
# Compiler flag to generate shared objects directly from archives.
16609
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16611
# Compiler flag to generate thread-safe objects.
16612
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16614
# Library versioning type.
16615
version_type=$version_type
16617
# Format of library name prefix.
16618
libname_spec=$lt_libname_spec
16620
# List of archive names. First name is the real one, the rest are links.
16621
# The last name is the one that the linker finds with -lNAME.
16622
library_names_spec=$lt_library_names_spec
16624
# The coded name of the library, if different from the real name.
16625
soname_spec=$lt_soname_spec
16627
# Commands used to build and install an old-style archive.
16629
old_archive_cmds=$lt_old_archive_cmds_F77
16630
old_postinstall_cmds=$lt_old_postinstall_cmds
16631
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16633
# Create an old-style archive from a shared archive.
16634
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16636
# Create a temporary old-style archive to link instead of a shared archive.
16637
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16639
# Commands used to build and install a shared archive.
16640
archive_cmds=$lt_archive_cmds_F77
16641
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16642
postinstall_cmds=$lt_postinstall_cmds
16643
postuninstall_cmds=$lt_postuninstall_cmds
16645
# Commands used to build a loadable module (assumed same as above if empty)
16646
module_cmds=$lt_module_cmds_F77
16647
module_expsym_cmds=$lt_module_expsym_cmds_F77
16649
# Commands to strip libraries.
16650
old_striplib=$lt_old_striplib
16651
striplib=$lt_striplib
16653
# Dependencies to place before the objects being linked to create a
16655
predep_objects=$lt_predep_objects_F77
16657
# Dependencies to place after the objects being linked to create a
16659
postdep_objects=$lt_postdep_objects_F77
16661
# Dependencies to place before the objects being linked to create a
16663
predeps=$lt_predeps_F77
16665
# Dependencies to place after the objects being linked to create a
16667
postdeps=$lt_postdeps_F77
16669
# The library search path used internally by the compiler when linking
16670
# a shared library.
16671
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16673
# Method to check whether dependent libraries are shared objects.
16674
deplibs_check_method=$lt_deplibs_check_method
16676
# Command to use when deplibs_check_method == file_magic.
16677
file_magic_cmd=$lt_file_magic_cmd
16679
# Flag that allows shared libraries with undefined symbols to be built.
16680
allow_undefined_flag=$lt_allow_undefined_flag_F77
16682
# Flag that forces no undefined symbols.
16683
no_undefined_flag=$lt_no_undefined_flag_F77
16685
# Commands used to finish a libtool library installation in a directory.
16686
finish_cmds=$lt_finish_cmds
16688
# Same as above, but a single script fragment to be evaled but not shown.
16689
finish_eval=$lt_finish_eval
16691
# Take the output of nm and produce a listing of raw symbols and C names.
16692
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16694
# Transform the output of nm in a proper C declaration
16695
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16697
# Transform the output of nm in a C name address pair
16698
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16700
# This is the shared library runtime path variable.
16701
runpath_var=$runpath_var
16703
# This is the shared library path variable.
16704
shlibpath_var=$shlibpath_var
16706
# Is shlibpath searched before the hard-coded library search path?
16707
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16709
# How to hardcode a shared library path into an executable.
16710
hardcode_action=$hardcode_action_F77
16712
# Whether we should hardcode library paths into libraries.
16713
hardcode_into_libs=$hardcode_into_libs
16715
# Flag to hardcode \$libdir into a binary during linking.
16716
# This must work even if \$libdir does not exist.
16717
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16719
# If ld is used when linking, flag to hardcode \$libdir into
16720
# a binary during linking. This must work even if \$libdir does
16722
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16724
# Whether we need a single -rpath flag with a separated argument.
16725
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16727
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16728
# resulting binary.
16729
hardcode_direct=$hardcode_direct_F77
16731
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16732
# resulting binary.
16733
hardcode_minus_L=$hardcode_minus_L_F77
16735
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16736
# the resulting binary.
16737
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16739
# Set to yes if building a shared library automatically hardcodes DIR into the library
16740
# and all subsequent libraries and executables linked against it.
16741
hardcode_automatic=$hardcode_automatic_F77
16743
# Variables whose values should be saved in libtool wrapper scripts and
16744
# restored at relink time.
16745
variables_saved_for_relink="$variables_saved_for_relink"
16747
# Whether libtool must link a program against all its dependency libraries.
16748
link_all_deplibs=$link_all_deplibs_F77
16750
# Compile-time system search path for libraries
16751
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16753
# Run-time system search path for libraries
16754
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16756
# Fix the shell variable \$srcfile for the compiler.
16757
fix_srcfile_path="$fix_srcfile_path_F77"
16759
# Set to yes if exported symbols are required.
16760
always_export_symbols=$always_export_symbols_F77
16762
# The commands to list exported symbols.
16763
export_symbols_cmds=$lt_export_symbols_cmds_F77
16765
# The commands to extract the exported symbol list from a shared archive.
16766
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16768
# Symbols that should not be listed in the preloaded symbols.
16769
exclude_expsyms=$lt_exclude_expsyms_F77
16771
# Symbols that must always be exported.
16772
include_expsyms=$lt_include_expsyms_F77
16774
# ### END LIBTOOL TAG CONFIG: $tagname
16780
# If there is no Makefile yet, we rely on a make rule to execute
16781
# `config.status --recheck' to rerun these tests and create the
16782
# libtool script then.
16783
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16784
if test -f "$ltmain_in"; then
16785
test -f Makefile && make "$ltmain"
16791
ac_cpp='$CPP $CPPFLAGS'
16792
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16793
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16794
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16804
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16808
# Source file extension for Java test sources.
16811
# Object file extension for compiled Java test sources.
16815
# Code to be used in simple compile tests
16816
lt_simple_compile_test_code="class foo {}\n"
16818
# Code to be used in simple link tests
16819
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16821
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16823
# If no C compiler was specified, use CC.
16826
# Allow CC to be a program name with arguments.
16830
# Allow CC to be a program name with arguments.
16836
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16837
archive_cmds_need_lc_GCJ=no
16840
## There is no encapsulation within the following macros, do not change
16841
## the running order or otherwise move them around unless you know exactly
16842
## what you are doing...
16844
lt_prog_compiler_no_builtin_flag_GCJ=
16846
if test "$GCC" = yes; then
16847
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16850
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16851
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16852
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16853
echo $ECHO_N "(cached) $ECHO_C" >&6
16855
lt_cv_prog_compiler_rtti_exceptions=no
16856
ac_outfile=conftest.$ac_objext
16857
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16858
lt_compiler_flag="-fno-rtti -fno-exceptions"
16859
# Insert the option either (1) after the last *FLAGS variable, or
16860
# (2) before a word containing "conftest.", or (3) at the end.
16861
# Note that $ac_compile itself does not contain backslashes and begins
16862
# with a dollar sign (not a hyphen), so the echo should work correctly.
16863
# The option is referenced via a variable to avoid confusing sed.
16864
lt_compile=`echo "$ac_compile" | $SED \
16865
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16866
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16867
-e 's:$: $lt_compiler_flag:'`
16868
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16869
(eval "$lt_compile" 2>conftest.err)
16871
cat conftest.err >&5
16872
echo "$as_me:__oline__: \$? = $ac_status" >&5
16873
if (exit $ac_status) && test -s "$ac_outfile"; then
16874
# The compiler can only warn and ignore the option if not recognized
16875
# So say no if there are warnings
16876
if test ! -s conftest.err; then
16877
lt_cv_prog_compiler_rtti_exceptions=yes
16883
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16884
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16886
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16887
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16894
lt_prog_compiler_wl_GCJ=
16895
lt_prog_compiler_pic_GCJ=
16896
lt_prog_compiler_static_GCJ=
16898
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16899
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16901
if test "$GCC" = yes; then
16902
lt_prog_compiler_wl_GCJ='-Wl,'
16903
lt_prog_compiler_static_GCJ='-static'
16907
# All AIX code is PIC.
16908
if test "$host_cpu" = ia64; then
16909
# AIX 5 now supports IA64 processor
16910
lt_prog_compiler_static_GCJ='-Bstatic'
16915
# FIXME: we need at least 68020 code to build shared libraries, but
16916
# adding the `-m68020' flag to GCC prevents building anything better,
16918
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16921
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16922
# PIC is the default for these OSes.
16925
mingw* | pw32* | os2*)
16926
# This hack is so that the source file can tell whether it is being
16927
# built for inclusion in a dll (and should export symbols for example).
16928
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16931
darwin* | rhapsody*)
16932
# PIC is the default on this platform
16933
# Common symbols not allowed in MH_DYLIB files
16934
lt_prog_compiler_pic_GCJ='-fno-common'
16938
# Just because we use GCC doesn't mean we suddenly get shared libraries
16939
# on systems that don't support them.
16940
lt_prog_compiler_can_build_shared_GCJ=no
16945
if test -d /usr/nec; then
16946
lt_prog_compiler_pic_GCJ=-Kconform_pic
16951
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16952
# not for PA HP-UX.
16953
case "$host_cpu" in
16958
lt_prog_compiler_pic_GCJ='-fPIC'
16964
lt_prog_compiler_pic_GCJ='-fPIC'
16968
# PORTME Check for flag to pass linker flags through the system compiler.
16971
lt_prog_compiler_wl_GCJ='-Wl,'
16972
if test "$host_cpu" = ia64; then
16973
# AIX 5 now supports IA64 processor
16974
lt_prog_compiler_static_GCJ='-Bstatic'
16976
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16980
# PIC is the default on this platform
16981
# Common symbols not allowed in MH_DYLIB files
16982
case "$cc_basename" in
16984
lt_prog_compiler_pic_GCJ='-qnocommon'
16985
lt_prog_compiler_wl_GCJ='-Wl,'
16990
mingw* | pw32* | os2*)
16991
# This hack is so that the source file can tell whether it is being
16992
# built for inclusion in a dll (and should export symbols for example).
16993
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16996
hpux9* | hpux10* | hpux11*)
16997
lt_prog_compiler_wl_GCJ='-Wl,'
16998
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16999
# not for PA HP-UX.
17000
case "$host_cpu" in
17005
lt_prog_compiler_pic_GCJ='+Z'
17008
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17009
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17012
irix5* | irix6* | nonstopux*)
17013
lt_prog_compiler_wl_GCJ='-Wl,'
17014
# PIC (with -KPIC) is the default.
17015
lt_prog_compiler_static_GCJ='-non_shared'
17019
lt_prog_compiler_pic_GCJ='-KPIC'
17020
lt_prog_compiler_static_GCJ='-Bstatic'
17024
case $cc_basename in
17026
lt_prog_compiler_wl_GCJ='-Wl,'
17027
lt_prog_compiler_pic_GCJ='-KPIC'
17028
lt_prog_compiler_static_GCJ='-static'
17030
pgcc | pgf77 | pgf90)
17031
# Portland Group compilers (*not* the Pentium gcc compiler,
17032
# which looks to be a dead project)
17033
lt_prog_compiler_wl_GCJ='-Wl,'
17034
lt_prog_compiler_pic_GCJ='-fpic'
17035
lt_prog_compiler_static_GCJ='-static'
17038
lt_prog_compiler_wl_GCJ='-Wl,'
17039
# All Alpha code is PIC.
17040
lt_prog_compiler_static_GCJ='-non_shared'
17045
osf3* | osf4* | osf5*)
17046
lt_prog_compiler_wl_GCJ='-Wl,'
17047
# All OSF/1 code is PIC.
17048
lt_prog_compiler_static_GCJ='-non_shared'
17052
lt_prog_compiler_pic_GCJ='-Kpic'
17053
lt_prog_compiler_static_GCJ='-dn'
17057
lt_prog_compiler_wl_GCJ='-Wl,'
17058
lt_prog_compiler_pic_GCJ='-KPIC'
17059
lt_prog_compiler_static_GCJ='-Bstatic'
17063
lt_prog_compiler_wl_GCJ='-Qoption ld '
17064
lt_prog_compiler_pic_GCJ='-PIC'
17065
lt_prog_compiler_static_GCJ='-Bstatic'
17068
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17069
lt_prog_compiler_wl_GCJ='-Wl,'
17070
lt_prog_compiler_pic_GCJ='-KPIC'
17071
lt_prog_compiler_static_GCJ='-Bstatic'
17075
if test -d /usr/nec ;then
17076
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17077
lt_prog_compiler_static_GCJ='-Bstatic'
17082
lt_prog_compiler_wl_GCJ='-Wl,'
17083
lt_prog_compiler_can_build_shared_GCJ=no
17087
lt_prog_compiler_pic_GCJ='-pic'
17088
lt_prog_compiler_static_GCJ='-Bstatic'
17092
lt_prog_compiler_can_build_shared_GCJ=no
17097
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17098
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17101
# Check to make sure the PIC flag actually works.
17103
if test -n "$lt_prog_compiler_pic_GCJ"; then
17105
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17106
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17107
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17108
echo $ECHO_N "(cached) $ECHO_C" >&6
17110
lt_prog_compiler_pic_works_GCJ=no
17111
ac_outfile=conftest.$ac_objext
17112
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17113
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17114
# Insert the option either (1) after the last *FLAGS variable, or
17115
# (2) before a word containing "conftest.", or (3) at the end.
17116
# Note that $ac_compile itself does not contain backslashes and begins
17117
# with a dollar sign (not a hyphen), so the echo should work correctly.
17118
# The option is referenced via a variable to avoid confusing sed.
17119
lt_compile=`echo "$ac_compile" | $SED \
17120
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17121
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17122
-e 's:$: $lt_compiler_flag:'`
17123
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17124
(eval "$lt_compile" 2>conftest.err)
17126
cat conftest.err >&5
17127
echo "$as_me:__oline__: \$? = $ac_status" >&5
17128
if (exit $ac_status) && test -s "$ac_outfile"; then
17129
# The compiler can only warn and ignore the option if not recognized
17130
# So say no if there are warnings
17131
if test ! -s conftest.err; then
17132
lt_prog_compiler_pic_works_GCJ=yes
17138
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17139
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17141
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17142
case $lt_prog_compiler_pic_GCJ in
17144
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17147
lt_prog_compiler_pic_GCJ=
17148
lt_prog_compiler_can_build_shared_GCJ=no
17153
# For platforms which do not support PIC, -DPIC is meaningless:
17155
lt_prog_compiler_pic_GCJ=
17158
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17162
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17163
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17164
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17165
echo $ECHO_N "(cached) $ECHO_C" >&6
17167
lt_cv_prog_compiler_c_o_GCJ=no
17168
$rm -r conftest 2>/dev/null
17172
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17174
lt_compiler_flag="-o out/conftest2.$ac_objext"
17175
# Insert the option either (1) after the last *FLAGS variable, or
17176
# (2) before a word containing "conftest.", or (3) at the end.
17177
# Note that $ac_compile itself does not contain backslashes and begins
17178
# with a dollar sign (not a hyphen), so the echo should work correctly.
17179
lt_compile=`echo "$ac_compile" | $SED \
17180
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17181
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17182
-e 's:$: $lt_compiler_flag:'`
17183
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17184
(eval "$lt_compile" 2>out/conftest.err)
17186
cat out/conftest.err >&5
17187
echo "$as_me:__oline__: \$? = $ac_status" >&5
17188
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17190
# The compiler can only warn and ignore the option if not recognized
17191
# So say no if there are warnings
17192
if test ! -s out/conftest.err; then
17193
lt_cv_prog_compiler_c_o_GCJ=yes
17198
# SGI C++ compiler will create directory out/ii_files/ for
17199
# template instantiation
17200
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17201
$rm out/* && rmdir out
17207
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17208
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17211
hard_links="nottested"
17212
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17213
# do not overwrite the value of need_locks provided by the user
17214
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17215
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17218
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17220
ln conftest.a conftest.b 2>&5 || hard_links=no
17221
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17222
echo "$as_me:$LINENO: result: $hard_links" >&5
17223
echo "${ECHO_T}$hard_links" >&6
17224
if test "$hard_links" = no; then
17225
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17226
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17233
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17234
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17237
allow_undefined_flag_GCJ=
17238
enable_shared_with_static_runtimes_GCJ=no
17240
archive_expsym_cmds_GCJ=
17241
old_archive_From_new_cmds_GCJ=
17242
old_archive_from_expsyms_cmds_GCJ=
17243
export_dynamic_flag_spec_GCJ=
17244
whole_archive_flag_spec_GCJ=
17245
thread_safe_flag_spec_GCJ=
17246
hardcode_libdir_flag_spec_GCJ=
17247
hardcode_libdir_flag_spec_ld_GCJ=
17248
hardcode_libdir_separator_GCJ=
17249
hardcode_direct_GCJ=no
17250
hardcode_minus_L_GCJ=no
17251
hardcode_shlibpath_var_GCJ=unsupported
17252
link_all_deplibs_GCJ=unknown
17253
hardcode_automatic_GCJ=no
17255
module_expsym_cmds_GCJ=
17256
always_export_symbols_GCJ=no
17257
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17258
# include_expsyms should be a list of space-separated symbols to be *always*
17259
# included in the symbol list
17260
include_expsyms_GCJ=
17261
# exclude_expsyms can be an extended regexp of symbols to exclude
17262
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17263
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17264
# as well as any symbol that contains `d'.
17265
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17266
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17267
# platforms (ab)use it in PIC code, but their linkers get confused if
17268
# the symbol is explicitly referenced. Since portable code cannot
17269
# rely on this symbol name, it's probably fine to never include it in
17270
# preloaded symbol tables.
17271
extract_expsyms_cmds=
17274
cygwin* | mingw* | pw32*)
17275
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17276
# When not using gcc, we currently assume that we are using
17277
# Microsoft Visual C++.
17278
if test "$GCC" != yes; then
17288
if test "$with_gnu_ld" = yes; then
17289
# If archive_cmds runs LD, not CC, wlarc should be empty
17292
# See if GNU ld supports shared libraries.
17294
aix3* | aix4* | aix5*)
17295
# On AIX/PPC, the GNU linker is very broken
17296
if test "$host_cpu" != ia64; then
17300
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17301
*** to be unable to reliably create shared libraries on AIX.
17302
*** Therefore, libtool is disabling shared libraries support. If you
17303
*** really care for shared libraries, you may want to modify your PATH
17304
*** so that a non-GNU linker is found, and then restart.
17311
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)'
17312
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17313
hardcode_minus_L_GCJ=yes
17315
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17316
# that the semantics of dynamic libraries on AmigaOS, at least up
17317
# to version 4, is to share data among multiple programs linked
17318
# with the same dynamic library. Since this doesn't match the
17319
# behavior of shared libraries on other platforms, we can't use
17325
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17326
allow_undefined_flag_GCJ=unsupported
17327
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17328
# support --undefined. This deserves some investigation. FIXME
17329
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17335
cygwin* | mingw* | pw32*)
17336
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17337
# as there is no search path for DLLs.
17338
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17339
allow_undefined_flag_GCJ=unsupported
17340
always_export_symbols_GCJ=no
17341
enable_shared_with_static_runtimes_GCJ=yes
17342
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17344
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17345
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17346
# If the export-symbols file already is a .def file (1st line
17347
# is EXPORTS), use it as is; otherwise, prepend...
17348
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17349
cp $export_symbols $output_objdir/$soname.def;
17351
echo EXPORTS > $output_objdir/$soname.def;
17352
cat $export_symbols >> $output_objdir/$soname.def;
17354
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17361
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17362
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17365
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17366
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17371
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17375
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17376
*** create shared libraries on Solaris systems. Therefore, libtool
17377
*** is disabling shared libraries support. We urge you to upgrade GNU
17378
*** binutils to release 2.9.1 or newer. Another option is to modify
17379
*** your PATH or compiler configuration so that the native linker is
17380
*** used, and then restart.
17383
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17384
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17385
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17392
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17394
hardcode_direct_GCJ=yes
17395
hardcode_shlibpath_var_GCJ=no
17399
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17401
case $CC,$host_cpu in
17402
pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
17403
tmp_addflag=' -fpic' ;;
17404
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17405
tmp_addflag=' -i_dynamic' ;;
17406
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17407
tmp_addflag=' -i_dynamic -nofor_main' ;;
17408
ifc* | ifort*) # Intel Fortran compiler
17409
tmp_addflag=' -nofor_main' ;;
17411
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17412
supports_anon_versioning=no
17413
case `$LD -v 2>/dev/null` in
17414
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17415
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17416
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17417
*\ 2.11.*) ;; # other 2.11 versions
17418
*) supports_anon_versioning=yes ;;
17420
if test $supports_anon_versioning = yes; then
17421
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17422
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17423
$echo "local: *; };" >> $output_objdir/$libname.ver~
17424
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17426
archive_expsym_cmds_GCJ=$archive_cmds_GCJ
17434
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17435
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17436
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17443
if test "$ld_shlibs_GCJ" = yes; then
17444
runpath_var=LD_RUN_PATH
17445
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17446
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17447
# ancient GNU ld didn't support --whole-archive et. al.
17448
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17449
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17451
whole_archive_flag_spec_GCJ=
17455
# PORTME fill in a description of your system's linker (not GNU ld)
17458
allow_undefined_flag_GCJ=unsupported
17459
always_export_symbols_GCJ=yes
17460
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'
17461
# Note: this linker hardcodes the directories in LIBPATH if there
17462
# are no directories specified by -L.
17463
hardcode_minus_L_GCJ=yes
17464
if test "$GCC" = yes && test -z "$link_static_flag"; then
17465
# Neither direct hardcoding nor static linking is supported with a
17467
hardcode_direct_GCJ=unsupported
17472
if test "$host_cpu" = ia64; then
17473
# On IA64, the linker does run time linking by default, so we don't
17474
# have to do anything special.
17475
aix_use_runtimelinking=no
17476
exp_sym_flag='-Bexport'
17479
# If we're using GNU nm, then we don't want the "-C" option.
17480
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17481
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17482
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'
17484
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'
17486
aix_use_runtimelinking=no
17488
# Test if we are trying to use run time linking or normal
17489
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17490
# need to do runtime linking.
17491
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17492
for ld_flag in $LDFLAGS; do
17493
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17494
aix_use_runtimelinking=yes
17500
exp_sym_flag='-bexport'
17501
no_entry_flag='-bnoentry'
17504
# When large executables or shared objects are built, AIX ld can
17505
# have problems creating the table of contents. If linking a library
17506
# or program results in "error TOC overflow" add -mminimal-toc to
17507
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17508
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17510
archive_cmds_GCJ=''
17511
hardcode_direct_GCJ=yes
17512
hardcode_libdir_separator_GCJ=':'
17513
link_all_deplibs_GCJ=yes
17515
if test "$GCC" = yes; then
17516
case $host_os in aix4.[012]|aix4.[012].*)
17517
# We only want to do this on AIX 4.2 and lower, the check
17518
# below for broken collect2 doesn't work under 4.3+
17519
collect2name=`${CC} -print-prog-name=collect2`
17520
if test -f "$collect2name" && \
17521
strings "$collect2name" | grep resolve_lib_name >/dev/null
17523
# We have reworked collect2
17524
hardcode_direct_GCJ=yes
17526
# We have old collect2
17527
hardcode_direct_GCJ=unsupported
17528
# It fails to find uninstalled libraries when the uninstalled
17529
# path is not listed in the libpath. Setting hardcode_minus_L
17530
# to unsupported forces relinking
17531
hardcode_minus_L_GCJ=yes
17532
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17533
hardcode_libdir_separator_GCJ=
17536
shared_flag='-shared'
17537
if test "$aix_use_runtimelinking" = yes; then
17538
shared_flag="$shared_flag "'${wl}-G'
17542
if test "$host_cpu" = ia64; then
17543
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17544
# chokes on -Wl,-G. The following line is correct:
17547
if test "$aix_use_runtimelinking" = yes; then
17548
shared_flag='${wl}-G'
17550
shared_flag='${wl}-bM:SRE'
17555
# It seems that -bexpall does not export symbols beginning with
17556
# underscore (_), so it is better to generate a list of symbols to export.
17557
always_export_symbols_GCJ=yes
17558
if test "$aix_use_runtimelinking" = yes; then
17559
# Warning - without using the other runtime loading flags (-brtl),
17560
# -berok will link without error, but may produce a broken library.
17561
allow_undefined_flag_GCJ='-berok'
17562
# Determine the default libpath from the value encoded in an empty executable.
17563
cat >conftest.$ac_ext <<_ACEOF
17566
cat confdefs.h >>conftest.$ac_ext
17567
cat >>conftest.$ac_ext <<_ACEOF
17568
/* end confdefs.h. */
17578
rm -f conftest.$ac_objext conftest$ac_exeext
17579
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17580
(eval $ac_link) 2>conftest.er1
17582
grep -v '^ *+' conftest.er1 >conftest.err
17584
cat conftest.err >&5
17585
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586
(exit $ac_status); } &&
17587
{ ac_try='test -z "$ac_c_werror_flag"
17588
|| test ! -s conftest.err'
17589
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590
(eval $ac_try) 2>&5
17592
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593
(exit $ac_status); }; } &&
17594
{ ac_try='test -s conftest$ac_exeext'
17595
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596
(eval $ac_try) 2>&5
17598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599
(exit $ac_status); }; }; then
17601
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17603
# Check for a 64-bit object if we didn't find anything.
17604
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; }
17607
echo "$as_me: failed program was:" >&5
17608
sed 's/^/| /' conftest.$ac_ext >&5
17611
rm -f conftest.err conftest.$ac_objext \
17612
conftest$ac_exeext conftest.$ac_ext
17613
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17615
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17616
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"
17618
if test "$host_cpu" = ia64; then
17619
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17620
allow_undefined_flag_GCJ="-z nodefs"
17621
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"
17623
# Determine the default libpath from the value encoded in an empty executable.
17624
cat >conftest.$ac_ext <<_ACEOF
17627
cat confdefs.h >>conftest.$ac_ext
17628
cat >>conftest.$ac_ext <<_ACEOF
17629
/* end confdefs.h. */
17639
rm -f conftest.$ac_objext conftest$ac_exeext
17640
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17641
(eval $ac_link) 2>conftest.er1
17643
grep -v '^ *+' conftest.er1 >conftest.err
17645
cat conftest.err >&5
17646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647
(exit $ac_status); } &&
17648
{ ac_try='test -z "$ac_c_werror_flag"
17649
|| test ! -s conftest.err'
17650
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17651
(eval $ac_try) 2>&5
17653
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654
(exit $ac_status); }; } &&
17655
{ ac_try='test -s conftest$ac_exeext'
17656
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17657
(eval $ac_try) 2>&5
17659
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660
(exit $ac_status); }; }; then
17662
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17664
# Check for a 64-bit object if we didn't find anything.
17665
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; }
17668
echo "$as_me: failed program was:" >&5
17669
sed 's/^/| /' conftest.$ac_ext >&5
17672
rm -f conftest.err conftest.$ac_objext \
17673
conftest$ac_exeext conftest.$ac_ext
17674
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17676
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17677
# Warning - without using the other run time loading flags,
17678
# -berok will link without error, but may produce a broken library.
17679
no_undefined_flag_GCJ=' ${wl}-bernotok'
17680
allow_undefined_flag_GCJ=' ${wl}-berok'
17681
# -bexpall does not export symbols beginning with underscore (_)
17682
always_export_symbols_GCJ=yes
17683
# Exported symbols can be pulled into shared objects from archives
17684
whole_archive_flag_spec_GCJ=' '
17685
archive_cmds_need_lc_GCJ=yes
17686
# This is similar to how AIX traditionally builds it's shared libraries.
17687
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'
17693
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)'
17694
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17695
hardcode_minus_L_GCJ=yes
17696
# see comment about different semantics on the GNU ld section
17701
export_dynamic_flag_spec_GCJ=-rdynamic
17704
cygwin* | mingw* | pw32*)
17705
# When not using gcc, we currently assume that we are using
17706
# Microsoft Visual C++.
17707
# hardcode_libdir_flag_spec is actually meaningless, as there is
17708
# no search path for DLLs.
17709
hardcode_libdir_flag_spec_GCJ=' '
17710
allow_undefined_flag_GCJ=unsupported
17711
# Tell ltmain to make .lib files, not .a files.
17713
# Tell ltmain to make .dll files, not .so files.
17715
# FIXME: Setting linknames here is a bad hack.
17716
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17717
# The linker will automatically build a .lib file if we build a DLL.
17718
old_archive_From_new_cmds_GCJ='true'
17719
# FIXME: Should let the user specify the lib program.
17720
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17721
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17722
enable_shared_with_static_runtimes_GCJ=yes
17725
darwin* | rhapsody*)
17727
rhapsody* | darwin1.[012])
17728
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17731
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17732
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17734
case ${MACOSX_DEPLOYMENT_TARGET} in
17736
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17739
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17745
archive_cmds_need_lc_GCJ=no
17746
hardcode_direct_GCJ=no
17747
hardcode_automatic_GCJ=yes
17748
hardcode_shlibpath_var_GCJ=unsupported
17749
whole_archive_flag_spec_GCJ=''
17750
link_all_deplibs_GCJ=yes
17751
if test "$GCC" = yes ; then
17752
output_verbose_link_cmd='echo'
17753
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17754
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17755
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17756
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}'
17757
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}'
17759
case "$cc_basename" in
17761
output_verbose_link_cmd='echo'
17762
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17763
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17764
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17765
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}'
17766
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}'
17776
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17777
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17778
hardcode_shlibpath_var_GCJ=no
17785
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17786
# support. Future versions do this automatically, but an explicit c++rt0.o
17787
# does not break anything, and helps significantly (at the cost of a little
17790
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17791
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17792
hardcode_direct_GCJ=yes
17793
hardcode_shlibpath_var_GCJ=no
17796
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17798
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17799
hardcode_direct_GCJ=yes
17800
hardcode_minus_L_GCJ=yes
17801
hardcode_shlibpath_var_GCJ=no
17804
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17805
freebsd* | kfreebsd*-gnu | dragonfly*)
17806
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17807
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17808
hardcode_direct_GCJ=yes
17809
hardcode_shlibpath_var_GCJ=no
17813
if test "$GCC" = yes; then
17814
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'
17816
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'
17818
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17819
hardcode_libdir_separator_GCJ=:
17820
hardcode_direct_GCJ=yes
17822
# hardcode_minus_L: Not really in the search PATH,
17823
# but as the default location of the library.
17824
hardcode_minus_L_GCJ=yes
17825
export_dynamic_flag_spec_GCJ='${wl}-E'
17829
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17830
case "$host_cpu" in
17832
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17835
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17839
case "$host_cpu" in
17841
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17844
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17848
if test "$with_gnu_ld" = no; then
17849
case "$host_cpu" in
17851
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17852
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17853
hardcode_libdir_separator_GCJ=:
17854
hardcode_direct_GCJ=no
17855
hardcode_shlibpath_var_GCJ=no
17858
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17859
hardcode_direct_GCJ=no
17860
hardcode_shlibpath_var_GCJ=no
17862
# hardcode_minus_L: Not really in the search PATH,
17863
# but as the default location of the library.
17864
hardcode_minus_L_GCJ=yes
17867
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17868
hardcode_libdir_separator_GCJ=:
17869
hardcode_direct_GCJ=yes
17870
export_dynamic_flag_spec_GCJ='${wl}-E'
17872
# hardcode_minus_L: Not really in the search PATH,
17873
# but as the default location of the library.
17874
hardcode_minus_L_GCJ=yes
17880
irix5* | irix6* | nonstopux*)
17881
if test "$GCC" = yes; then
17882
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'
17884
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'
17885
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17887
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17888
hardcode_libdir_separator_GCJ=:
17889
link_all_deplibs_GCJ=yes
17893
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17894
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17896
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17898
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17899
hardcode_direct_GCJ=yes
17900
hardcode_shlibpath_var_GCJ=no
17904
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17905
hardcode_direct_GCJ=yes
17906
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17907
hardcode_libdir_separator_GCJ=:
17908
hardcode_shlibpath_var_GCJ=no
17912
hardcode_direct_GCJ=yes
17913
hardcode_shlibpath_var_GCJ=no
17914
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17915
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17916
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17917
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17918
export_dynamic_flag_spec_GCJ='${wl}-E'
17921
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17922
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17923
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17926
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17927
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17934
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17935
hardcode_minus_L_GCJ=yes
17936
allow_undefined_flag_GCJ=unsupported
17937
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'
17938
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
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}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17946
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17947
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'
17949
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17950
hardcode_libdir_separator_GCJ=:
17953
osf4* | osf5*) # as osf3* with the addition of -msym flag
17954
if test "$GCC" = yes; then
17955
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17956
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'
17957
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17959
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17960
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'
17961
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~
17962
$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'
17964
# Both c and cxx compiler support -rpath directly
17965
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17967
hardcode_libdir_separator_GCJ=:
17971
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17972
hardcode_shlibpath_var_GCJ=no
17973
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17974
runpath_var=LD_RUN_PATH
17975
hardcode_runpath_var=yes
17979
no_undefined_flag_GCJ=' -z text'
17980
if test "$GCC" = yes; then
17981
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17982
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17983
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17985
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17986
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17987
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17989
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17990
hardcode_shlibpath_var_GCJ=no
17992
solaris2.[0-5] | solaris2.[0-5].*) ;;
17993
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
17994
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
17996
link_all_deplibs_GCJ=yes
18000
if test "x$host_vendor" = xsequent; then
18001
# Use $CC to link under sequent, because it throws in some extra .o
18002
# files that make .init and .fini sections work.
18003
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18005
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18007
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18008
hardcode_direct_GCJ=yes
18009
hardcode_minus_L_GCJ=yes
18010
hardcode_shlibpath_var_GCJ=no
18014
case $host_vendor in
18016
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18017
hardcode_direct_GCJ=yes # is this really true???
18020
## LD is ld it makes a PLAMLIB
18021
## CC just makes a GrossModule.
18022
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18023
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18024
hardcode_direct_GCJ=no
18027
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18028
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18031
runpath_var='LD_RUN_PATH'
18032
hardcode_shlibpath_var_GCJ=no
18036
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18037
hardcode_shlibpath_var_GCJ=no
18038
export_dynamic_flag_spec_GCJ='-Bexport'
18042
if test -d /usr/nec; then
18043
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18044
hardcode_shlibpath_var_GCJ=no
18045
runpath_var=LD_RUN_PATH
18046
hardcode_runpath_var=yes
18052
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18053
hardcode_direct_GCJ=yes
18054
hardcode_minus_L_GCJ=no
18055
hardcode_shlibpath_var_GCJ=no
18056
hardcode_runpath_var=yes
18057
runpath_var=LD_RUN_PATH
18060
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18061
no_undefined_flag_GCJ='${wl}-z ${wl}text'
18062
if test "$GCC" = yes; then
18063
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18065
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18067
runpath_var='LD_RUN_PATH'
18068
hardcode_shlibpath_var_GCJ=no
18072
no_undefined_flag_GCJ=' -z text'
18073
# $CC -shared without GNU ld will not create a library from C++
18074
# object files and a static libstdc++, better avoid it by now
18075
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18076
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18077
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18078
hardcode_libdir_flag_spec_GCJ=
18079
hardcode_shlibpath_var_GCJ=no
18080
runpath_var='LD_RUN_PATH'
18084
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18085
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18086
hardcode_shlibpath_var_GCJ=no
18095
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18096
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18097
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18099
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18100
if test "$GCC" = yes; then
18101
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18105
# Do we need to explicitly link libc?
18107
case "x$archive_cmds_need_lc_GCJ" in
18109
# Assume -lc should be added
18110
archive_cmds_need_lc_GCJ=yes
18112
if test "$enable_shared" = yes && test "$GCC" = yes; then
18113
case $archive_cmds_GCJ in
18115
# FIXME: we may have to deal with multi-command sequences.
18118
# Test whether the compiler implicitly links with -lc since on some
18119
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18120
# to ld, don't add -lc before -lgcc.
18121
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18122
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18124
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18126
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18127
(eval $ac_compile) 2>&5
18129
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130
(exit $ac_status); } 2>conftest.err; then
18133
libobjs=conftest.$ac_objext
18135
wl=$lt_prog_compiler_wl_GCJ
18141
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18142
allow_undefined_flag_GCJ=
18143
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18144
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147
(exit $ac_status); }
18149
archive_cmds_need_lc_GCJ=no
18151
archive_cmds_need_lc_GCJ=yes
18153
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18155
cat conftest.err 1>&5
18158
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18159
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18166
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18167
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18168
library_names_spec=
18169
libname_spec='lib$name'
18173
postuninstall_cmds=
18177
shlibpath_overrides_runpath=unknown
18179
dynamic_linker="$host_os ld.so"
18180
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18181
if test "$GCC" = yes; then
18182
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18183
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18184
# if the path contains ";" then we assume it to be the separator
18185
# otherwise default to the standard path separator (i.e. ":") - it is
18186
# assumed that no part of a normal pathname contains ";" but that should
18187
# okay in the real world where ";" in dirpaths is itself problematic.
18188
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18190
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18193
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18195
need_lib_prefix=unknown
18196
hardcode_into_libs=no
18198
# when you set need_version to no, make sure it does not cause -set_version
18199
# flags to be left without arguments
18200
need_version=unknown
18205
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18206
shlibpath_var=LIBPATH
18208
# AIX 3 has no versioning support, so we append a major version to the name.
18209
soname_spec='${libname}${release}${shared_ext}$major'
18216
hardcode_into_libs=yes
18217
if test "$host_cpu" = ia64; then
18218
# AIX 5 supports IA64
18219
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18220
shlibpath_var=LD_LIBRARY_PATH
18222
# With GCC up to 2.95.x, collect2 would create an import file
18223
# for dependence libraries. The import file would start with
18224
# the line `#! .'. This would cause the generated library to
18225
# depend on `.', always an invalid library. This was fixed in
18226
# development snapshots of GCC prior to 3.0.
18228
aix4 | aix4.[01] | aix4.[01].*)
18229
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18231
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18234
can_build_shared=no
18238
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18239
# soname into executable. Probably we can add versioning support to
18240
# collect2, so additional links can be useful in future.
18241
if test "$aix_use_runtimelinking" = yes; then
18242
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18243
# instead of lib<name>.a to let people know that these are not
18244
# typical AIX shared libraries.
18245
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18247
# We preserve .a as extension for shared libraries through AIX4.2
18248
# and later when we are not doing run time linking.
18249
library_names_spec='${libname}${release}.a $libname.a'
18250
soname_spec='${libname}${release}${shared_ext}$major'
18252
shlibpath_var=LIBPATH
18257
library_names_spec='$libname.ixlibrary $libname.a'
18258
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18259
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'
18263
library_names_spec='${libname}${shared_ext}'
18264
dynamic_linker="$host_os ld.so"
18265
shlibpath_var=LIBRARY_PATH
18271
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18272
soname_spec='${libname}${release}${shared_ext}$major'
18273
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18274
shlibpath_var=LD_LIBRARY_PATH
18275
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18276
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18277
# the default ld.so.conf also contains /usr/contrib/lib and
18278
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18279
# libtool to hard-code these into programs
18282
cygwin* | mingw* | pw32*)
18283
version_type=windows
18288
case $GCC,$host_os in
18289
yes,cygwin* | yes,mingw* | yes,pw32*)
18290
library_names_spec='$libname.dll.a'
18291
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18292
postinstall_cmds='base_file=`basename \${file}`~
18293
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18294
dldir=$destdir/`dirname \$dlpath`~
18295
test -d \$dldir || mkdir -p \$dldir~
18296
$install_prog $dir/$dlname \$dldir/$dlname'
18297
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18298
dlpath=$dir/\$dldll~
18300
shlibpath_overrides_runpath=yes
18304
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18305
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18306
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18309
# MinGW DLLs use traditional 'lib' prefix
18310
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18311
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18312
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18313
# It is most probably a Windows format PATH printed by
18314
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18315
# path with ; separators, and with drive letters. We can handle the
18316
# drive letters (cygwin fileutils understands them), so leave them,
18317
# especially as we might pass files found there to a mingw objdump,
18318
# which wouldn't understand a cygwinified path. Ahh.
18319
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18321
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18325
# pw32 DLLs use 'pw' prefix rather than 'lib'
18326
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18332
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18335
dynamic_linker='Win32 ld.exe'
18336
# FIXME: first we should search . and the directory the executable is in
18340
darwin* | rhapsody*)
18341
dynamic_linker="$host_os dyld"
18342
version_type=darwin
18345
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18346
soname_spec='${libname}${release}${major}$shared_ext'
18347
shlibpath_overrides_runpath=yes
18348
shlibpath_var=DYLD_LIBRARY_PATH
18349
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18350
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18351
if test "$GCC" = yes; then
18352
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"`
18354
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18356
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18363
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18364
soname_spec='${libname}${release}${shared_ext}$major'
18365
shlibpath_var=LD_LIBRARY_PATH
18376
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18377
soname_spec='${libname}${release}${shared_ext}$major'
18378
shlibpath_var=LD_LIBRARY_PATH
18379
shlibpath_overrides_runpath=no
18380
hardcode_into_libs=yes
18381
dynamic_linker='GNU ld.so'
18384
freebsd* | dragonfly*)
18385
# DragonFly does not have aout. When/if they implement a new
18386
# versioning mechanism, adjust this.
18387
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18388
version_type=freebsd-$objformat
18389
case $version_type in
18391
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18396
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18400
shlibpath_var=LD_LIBRARY_PATH
18403
shlibpath_overrides_runpath=yes
18405
freebsd3.[01]* | freebsdelf3.[01]*)
18406
shlibpath_overrides_runpath=yes
18407
hardcode_into_libs=yes
18410
shlibpath_overrides_runpath=no
18411
hardcode_into_libs=yes
18420
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18421
soname_spec='${libname}${release}${shared_ext}$major'
18422
shlibpath_var=LD_LIBRARY_PATH
18423
hardcode_into_libs=yes
18426
hpux9* | hpux10* | hpux11*)
18427
# Give a soname corresponding to the major version so that dld.sl refuses to
18428
# link against other versions.
18432
case "$host_cpu" in
18435
hardcode_into_libs=yes
18436
dynamic_linker="$host_os dld.so"
18437
shlibpath_var=LD_LIBRARY_PATH
18438
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18439
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18440
soname_spec='${libname}${release}${shared_ext}$major'
18441
if test "X$HPUX_IA64_MODE" = X32; then
18442
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18444
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18446
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18450
hardcode_into_libs=yes
18451
dynamic_linker="$host_os dld.sl"
18452
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18453
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18454
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18455
soname_spec='${libname}${release}${shared_ext}$major'
18456
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18457
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18461
dynamic_linker="$host_os dld.sl"
18462
shlibpath_var=SHLIB_PATH
18463
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18464
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18465
soname_spec='${libname}${release}${shared_ext}$major'
18468
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18469
postinstall_cmds='chmod 555 $lib'
18472
irix5* | irix6* | nonstopux*)
18474
nonstopux*) version_type=nonstopux ;;
18476
if test "$lt_cv_prog_gnu_ld" = yes; then
18484
soname_spec='${libname}${release}${shared_ext}$major'
18485
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18487
irix5* | nonstopux*)
18488
libsuff= shlibsuff=
18491
case $LD in # libtool.m4 will add one of these switches to LD
18492
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18493
libsuff= shlibsuff= libmagic=32-bit;;
18494
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18495
libsuff=32 shlibsuff=N32 libmagic=N32;;
18496
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18497
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18498
*) libsuff= shlibsuff= libmagic=never-match;;
18502
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18503
shlibpath_overrides_runpath=no
18504
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18505
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18506
hardcode_into_libs=yes
18509
# No shared lib support for Linux oldld, aout, or coff.
18510
linux*oldld* | linux*aout* | linux*coff*)
18514
# This must be Linux ELF.
18519
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18520
soname_spec='${libname}${release}${shared_ext}$major'
18521
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18522
shlibpath_var=LD_LIBRARY_PATH
18523
shlibpath_overrides_runpath=no
18524
# This implies no fast_install, which is unacceptable.
18525
# Some rework will be needed to allow for fast_install
18526
# before this can be enabled.
18527
hardcode_into_libs=yes
18529
# Append ld.so.conf contents to the search path
18530
if test -f /etc/ld.so.conf; then
18531
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' ' '`
18532
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18535
# We used to test for /lib/ld.so.1 and disable shared libraries on
18536
# powerpc, because MkLinux only supported shared libraries with the
18537
# GNU dynamic linker. Since this was broken with cross compilers,
18538
# most powerpc-linux boxes support dynamic linking these days and
18539
# people can always --disable-shared, the test was removed, and we
18540
# assume the GNU/Linux dynamic linker is in use.
18541
dynamic_linker='GNU/Linux ld.so'
18548
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18549
soname_spec='${libname}${release}${shared_ext}$major'
18550
shlibpath_var=LD_LIBRARY_PATH
18551
shlibpath_overrides_runpath=no
18552
hardcode_into_libs=yes
18553
dynamic_linker='GNU ld.so'
18560
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18561
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18562
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18563
dynamic_linker='NetBSD (a.out) ld.so'
18565
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18566
soname_spec='${libname}${release}${shared_ext}$major'
18567
dynamic_linker='NetBSD ld.elf_so'
18569
shlibpath_var=LD_LIBRARY_PATH
18570
shlibpath_overrides_runpath=yes
18571
hardcode_into_libs=yes
18576
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18577
shlibpath_var=LD_LIBRARY_PATH
18578
shlibpath_overrides_runpath=yes
18585
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18586
soname_spec='${libname}${release}${shared_ext}$major'
18587
shlibpath_var=LD_LIBRARY_PATH
18588
shlibpath_overrides_runpath=yes
18595
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18596
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18597
shlibpath_var=LD_LIBRARY_PATH
18598
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18600
openbsd2.[89] | openbsd2.[89].*)
18601
shlibpath_overrides_runpath=no
18604
shlibpath_overrides_runpath=yes
18608
shlibpath_overrides_runpath=yes
18613
libname_spec='$name'
18616
library_names_spec='$libname${shared_ext} $libname.a'
18617
dynamic_linker='OS/2 ld.exe'
18618
shlibpath_var=LIBPATH
18621
osf3* | osf4* | osf5*)
18625
soname_spec='${libname}${release}${shared_ext}$major'
18626
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18627
shlibpath_var=LD_LIBRARY_PATH
18628
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18629
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18634
soname_spec='${libname}${release}${shared_ext}$major'
18635
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18636
shlibpath_var=LD_LIBRARY_PATH
18643
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18644
soname_spec='${libname}${release}${shared_ext}$major'
18645
shlibpath_var=LD_LIBRARY_PATH
18646
shlibpath_overrides_runpath=yes
18647
hardcode_into_libs=yes
18648
# ldd complains unless libraries are executable
18649
postinstall_cmds='chmod +x $lib'
18654
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18655
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18656
shlibpath_var=LD_LIBRARY_PATH
18657
shlibpath_overrides_runpath=yes
18658
if test "$with_gnu_ld" = yes; then
18664
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18666
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18667
soname_spec='${libname}${release}${shared_ext}$major'
18668
shlibpath_var=LD_LIBRARY_PATH
18669
case $host_vendor in
18671
shlibpath_overrides_runpath=no
18673
export_dynamic_flag_spec='${wl}-Blargedynsym'
18674
runpath_var=LD_RUN_PATH
18682
shlibpath_overrides_runpath=no
18683
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18689
if test -d /usr/nec ;then
18691
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18692
soname_spec='$libname${shared_ext}.$major'
18693
shlibpath_var=LD_LIBRARY_PATH
18699
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18700
soname_spec='${libname}${release}${shared_ext}$major'
18701
shlibpath_var=LD_LIBRARY_PATH
18708
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18709
echo "${ECHO_T}$dynamic_linker" >&6
18710
test "$dynamic_linker" = no && can_build_shared=no
18712
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18713
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18714
hardcode_action_GCJ=
18715
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18716
test -n "$runpath_var_GCJ" || \
18717
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18719
# We can hardcode non-existant directories.
18720
if test "$hardcode_direct_GCJ" != no &&
18721
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18722
# have to relink, otherwise we might link with an installed library
18723
# when we should be linking with a yet-to-be-installed one
18724
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18725
test "$hardcode_minus_L_GCJ" != no; then
18726
# Linking always hardcodes the temporary library directory.
18727
hardcode_action_GCJ=relink
18729
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18730
hardcode_action_GCJ=immediate
18733
# We cannot hardcode anything, or else we can only hardcode existing
18735
hardcode_action_GCJ=unsupported
18737
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18738
echo "${ECHO_T}$hardcode_action_GCJ" >&6
18740
if test "$hardcode_action_GCJ" = relink; then
18741
# Fast installation is not supported
18742
enable_fast_install=no
18743
elif test "$shlibpath_overrides_runpath" = yes ||
18744
test "$enable_shared" = no; then
18745
# Fast installation is not necessary
18746
enable_fast_install=needless
18751
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18752
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18753
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18754
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18755
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18756
echo "$as_me:$LINENO: result: yes" >&5
18757
echo "${ECHO_T}yes" >&6
18759
# FIXME - insert some real tests, host_os isn't really good enough
18762
if test -n "$STRIP" ; then
18763
striplib="$STRIP -x"
18764
echo "$as_me:$LINENO: result: yes" >&5
18765
echo "${ECHO_T}yes" >&6
18767
echo "$as_me:$LINENO: result: no" >&5
18768
echo "${ECHO_T}no" >&6
18772
echo "$as_me:$LINENO: result: no" >&5
18773
echo "${ECHO_T}no" >&6
18778
if test "x$enable_dlopen" != xyes; then
18779
enable_dlopen=unknown
18780
enable_dlopen_self=unknown
18781
enable_dlopen_self_static=unknown
18788
lt_cv_dlopen="load_add_on"
18790
lt_cv_dlopen_self=yes
18794
lt_cv_dlopen="LoadLibrary"
18799
lt_cv_dlopen="dlopen"
18804
# if libdl is installed we need to link against it
18805
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18806
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18807
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18808
echo $ECHO_N "(cached) $ECHO_C" >&6
18810
ac_check_lib_save_LIBS=$LIBS
18812
cat >conftest.$ac_ext <<_ACEOF
18815
cat confdefs.h >>conftest.$ac_ext
18816
cat >>conftest.$ac_ext <<_ACEOF
18817
/* end confdefs.h. */
18819
/* Override any gcc2 internal prototype to avoid an error. */
18823
/* We use char because int might match the return type of a gcc2
18824
builtin and then its argument prototype would still apply. */
18834
rm -f conftest.$ac_objext conftest$ac_exeext
18835
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18836
(eval $ac_link) 2>conftest.er1
18838
grep -v '^ *+' conftest.er1 >conftest.err
18840
cat conftest.err >&5
18841
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842
(exit $ac_status); } &&
18843
{ ac_try='test -z "$ac_c_werror_flag"
18844
|| test ! -s conftest.err'
18845
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18846
(eval $ac_try) 2>&5
18848
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849
(exit $ac_status); }; } &&
18850
{ ac_try='test -s conftest$ac_exeext'
18851
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852
(eval $ac_try) 2>&5
18854
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855
(exit $ac_status); }; }; then
18856
ac_cv_lib_dl_dlopen=yes
18858
echo "$as_me: failed program was:" >&5
18859
sed 's/^/| /' conftest.$ac_ext >&5
18861
ac_cv_lib_dl_dlopen=no
18863
rm -f conftest.err conftest.$ac_objext \
18864
conftest$ac_exeext conftest.$ac_ext
18865
LIBS=$ac_check_lib_save_LIBS
18867
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18868
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18869
if test $ac_cv_lib_dl_dlopen = yes; then
18870
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18873
lt_cv_dlopen="dyld"
18875
lt_cv_dlopen_self=yes
18882
echo "$as_me:$LINENO: checking for shl_load" >&5
18883
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18884
if test "${ac_cv_func_shl_load+set}" = set; then
18885
echo $ECHO_N "(cached) $ECHO_C" >&6
18887
cat >conftest.$ac_ext <<_ACEOF
18890
cat confdefs.h >>conftest.$ac_ext
18891
cat >>conftest.$ac_ext <<_ACEOF
18892
/* end confdefs.h. */
18893
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18894
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18895
#define shl_load innocuous_shl_load
18897
/* System header to define __stub macros and hopefully few prototypes,
18898
which can conflict with char shl_load (); below.
18899
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18900
<limits.h> exists even on freestanding compilers. */
18903
# include <limits.h>
18905
# include <assert.h>
18910
/* Override any gcc2 internal prototype to avoid an error. */
18915
/* We use char because int might match the return type of a gcc2
18916
builtin and then its argument prototype would still apply. */
18918
/* The GNU C library defines this for functions which it implements
18919
to always fail with ENOSYS. Some functions are actually named
18920
something starting with __ and the normal name is an alias. */
18921
#if defined (__stub_shl_load) || defined (__stub___shl_load)
18924
char (*f) () = shl_load;
18933
return f != shl_load;
18938
rm -f conftest.$ac_objext conftest$ac_exeext
18939
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18940
(eval $ac_link) 2>conftest.er1
18942
grep -v '^ *+' conftest.er1 >conftest.err
18944
cat conftest.err >&5
18945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946
(exit $ac_status); } &&
18947
{ ac_try='test -z "$ac_c_werror_flag"
18948
|| test ! -s conftest.err'
18949
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950
(eval $ac_try) 2>&5
18952
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953
(exit $ac_status); }; } &&
18954
{ ac_try='test -s conftest$ac_exeext'
18955
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956
(eval $ac_try) 2>&5
18958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959
(exit $ac_status); }; }; then
18960
ac_cv_func_shl_load=yes
18962
echo "$as_me: failed program was:" >&5
18963
sed 's/^/| /' conftest.$ac_ext >&5
18965
ac_cv_func_shl_load=no
18967
rm -f conftest.err conftest.$ac_objext \
18968
conftest$ac_exeext conftest.$ac_ext
18970
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18971
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18972
if test $ac_cv_func_shl_load = yes; then
18973
lt_cv_dlopen="shl_load"
18975
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18976
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18977
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18978
echo $ECHO_N "(cached) $ECHO_C" >&6
18980
ac_check_lib_save_LIBS=$LIBS
18982
cat >conftest.$ac_ext <<_ACEOF
18985
cat confdefs.h >>conftest.$ac_ext
18986
cat >>conftest.$ac_ext <<_ACEOF
18987
/* end confdefs.h. */
18989
/* Override any gcc2 internal prototype to avoid an error. */
18993
/* We use char because int might match the return type of a gcc2
18994
builtin and then its argument prototype would still apply. */
19004
rm -f conftest.$ac_objext conftest$ac_exeext
19005
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19006
(eval $ac_link) 2>conftest.er1
19008
grep -v '^ *+' conftest.er1 >conftest.err
19010
cat conftest.err >&5
19011
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012
(exit $ac_status); } &&
19013
{ ac_try='test -z "$ac_c_werror_flag"
19014
|| test ! -s conftest.err'
19015
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19016
(eval $ac_try) 2>&5
19018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019
(exit $ac_status); }; } &&
19020
{ ac_try='test -s conftest$ac_exeext'
19021
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19022
(eval $ac_try) 2>&5
19024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025
(exit $ac_status); }; }; then
19026
ac_cv_lib_dld_shl_load=yes
19028
echo "$as_me: failed program was:" >&5
19029
sed 's/^/| /' conftest.$ac_ext >&5
19031
ac_cv_lib_dld_shl_load=no
19033
rm -f conftest.err conftest.$ac_objext \
19034
conftest$ac_exeext conftest.$ac_ext
19035
LIBS=$ac_check_lib_save_LIBS
19037
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19038
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19039
if test $ac_cv_lib_dld_shl_load = yes; then
19040
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19042
echo "$as_me:$LINENO: checking for dlopen" >&5
19043
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19044
if test "${ac_cv_func_dlopen+set}" = set; then
19045
echo $ECHO_N "(cached) $ECHO_C" >&6
19047
cat >conftest.$ac_ext <<_ACEOF
19050
cat confdefs.h >>conftest.$ac_ext
19051
cat >>conftest.$ac_ext <<_ACEOF
19052
/* end confdefs.h. */
19053
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19054
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19055
#define dlopen innocuous_dlopen
19057
/* System header to define __stub macros and hopefully few prototypes,
19058
which can conflict with char dlopen (); below.
19059
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19060
<limits.h> exists even on freestanding compilers. */
19063
# include <limits.h>
19065
# include <assert.h>
19070
/* Override any gcc2 internal prototype to avoid an error. */
19075
/* We use char because int might match the return type of a gcc2
19076
builtin and then its argument prototype would still apply. */
19078
/* The GNU C library defines this for functions which it implements
19079
to always fail with ENOSYS. Some functions are actually named
19080
something starting with __ and the normal name is an alias. */
19081
#if defined (__stub_dlopen) || defined (__stub___dlopen)
19084
char (*f) () = dlopen;
19093
return f != dlopen;
19098
rm -f conftest.$ac_objext conftest$ac_exeext
19099
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19100
(eval $ac_link) 2>conftest.er1
19102
grep -v '^ *+' conftest.er1 >conftest.err
19104
cat conftest.err >&5
19105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106
(exit $ac_status); } &&
19107
{ ac_try='test -z "$ac_c_werror_flag"
19108
|| test ! -s conftest.err'
19109
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110
(eval $ac_try) 2>&5
19112
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113
(exit $ac_status); }; } &&
19114
{ ac_try='test -s conftest$ac_exeext'
19115
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19116
(eval $ac_try) 2>&5
19118
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119
(exit $ac_status); }; }; then
19120
ac_cv_func_dlopen=yes
19122
echo "$as_me: failed program was:" >&5
19123
sed 's/^/| /' conftest.$ac_ext >&5
19125
ac_cv_func_dlopen=no
19127
rm -f conftest.err conftest.$ac_objext \
19128
conftest$ac_exeext conftest.$ac_ext
19130
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19131
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19132
if test $ac_cv_func_dlopen = yes; then
19133
lt_cv_dlopen="dlopen"
19135
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19136
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19137
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19138
echo $ECHO_N "(cached) $ECHO_C" >&6
19140
ac_check_lib_save_LIBS=$LIBS
19142
cat >conftest.$ac_ext <<_ACEOF
19145
cat confdefs.h >>conftest.$ac_ext
19146
cat >>conftest.$ac_ext <<_ACEOF
19147
/* end confdefs.h. */
19149
/* Override any gcc2 internal prototype to avoid an error. */
19153
/* We use char because int might match the return type of a gcc2
19154
builtin and then its argument prototype would still apply. */
19164
rm -f conftest.$ac_objext conftest$ac_exeext
19165
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19166
(eval $ac_link) 2>conftest.er1
19168
grep -v '^ *+' conftest.er1 >conftest.err
19170
cat conftest.err >&5
19171
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172
(exit $ac_status); } &&
19173
{ ac_try='test -z "$ac_c_werror_flag"
19174
|| test ! -s conftest.err'
19175
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19176
(eval $ac_try) 2>&5
19178
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179
(exit $ac_status); }; } &&
19180
{ ac_try='test -s conftest$ac_exeext'
19181
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19182
(eval $ac_try) 2>&5
19184
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185
(exit $ac_status); }; }; then
19186
ac_cv_lib_dl_dlopen=yes
19188
echo "$as_me: failed program was:" >&5
19189
sed 's/^/| /' conftest.$ac_ext >&5
19191
ac_cv_lib_dl_dlopen=no
19193
rm -f conftest.err conftest.$ac_objext \
19194
conftest$ac_exeext conftest.$ac_ext
19195
LIBS=$ac_check_lib_save_LIBS
19197
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19198
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19199
if test $ac_cv_lib_dl_dlopen = yes; then
19200
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19202
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19203
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19204
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19205
echo $ECHO_N "(cached) $ECHO_C" >&6
19207
ac_check_lib_save_LIBS=$LIBS
19208
LIBS="-lsvld $LIBS"
19209
cat >conftest.$ac_ext <<_ACEOF
19212
cat confdefs.h >>conftest.$ac_ext
19213
cat >>conftest.$ac_ext <<_ACEOF
19214
/* end confdefs.h. */
19216
/* Override any gcc2 internal prototype to avoid an error. */
19220
/* We use char because int might match the return type of a gcc2
19221
builtin and then its argument prototype would still apply. */
19231
rm -f conftest.$ac_objext conftest$ac_exeext
19232
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19233
(eval $ac_link) 2>conftest.er1
19235
grep -v '^ *+' conftest.er1 >conftest.err
19237
cat conftest.err >&5
19238
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239
(exit $ac_status); } &&
19240
{ ac_try='test -z "$ac_c_werror_flag"
19241
|| test ! -s conftest.err'
19242
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19243
(eval $ac_try) 2>&5
19245
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246
(exit $ac_status); }; } &&
19247
{ ac_try='test -s conftest$ac_exeext'
19248
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19249
(eval $ac_try) 2>&5
19251
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252
(exit $ac_status); }; }; then
19253
ac_cv_lib_svld_dlopen=yes
19255
echo "$as_me: failed program was:" >&5
19256
sed 's/^/| /' conftest.$ac_ext >&5
19258
ac_cv_lib_svld_dlopen=no
19260
rm -f conftest.err conftest.$ac_objext \
19261
conftest$ac_exeext conftest.$ac_ext
19262
LIBS=$ac_check_lib_save_LIBS
19264
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19265
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19266
if test $ac_cv_lib_svld_dlopen = yes; then
19267
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19269
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19270
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19271
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19272
echo $ECHO_N "(cached) $ECHO_C" >&6
19274
ac_check_lib_save_LIBS=$LIBS
19276
cat >conftest.$ac_ext <<_ACEOF
19279
cat confdefs.h >>conftest.$ac_ext
19280
cat >>conftest.$ac_ext <<_ACEOF
19281
/* end confdefs.h. */
19283
/* Override any gcc2 internal prototype to avoid an error. */
19287
/* We use char because int might match the return type of a gcc2
19288
builtin and then its argument prototype would still apply. */
19298
rm -f conftest.$ac_objext conftest$ac_exeext
19299
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19300
(eval $ac_link) 2>conftest.er1
19302
grep -v '^ *+' conftest.er1 >conftest.err
19304
cat conftest.err >&5
19305
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306
(exit $ac_status); } &&
19307
{ ac_try='test -z "$ac_c_werror_flag"
19308
|| test ! -s conftest.err'
19309
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19310
(eval $ac_try) 2>&5
19312
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313
(exit $ac_status); }; } &&
19314
{ ac_try='test -s conftest$ac_exeext'
19315
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19316
(eval $ac_try) 2>&5
19318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319
(exit $ac_status); }; }; then
19320
ac_cv_lib_dld_dld_link=yes
19322
echo "$as_me: failed program was:" >&5
19323
sed 's/^/| /' conftest.$ac_ext >&5
19325
ac_cv_lib_dld_dld_link=no
19327
rm -f conftest.err conftest.$ac_objext \
19328
conftest$ac_exeext conftest.$ac_ext
19329
LIBS=$ac_check_lib_save_LIBS
19331
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19332
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19333
if test $ac_cv_lib_dld_dld_link = yes; then
19334
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19355
if test "x$lt_cv_dlopen" != xno; then
19361
case $lt_cv_dlopen in
19363
save_CPPFLAGS="$CPPFLAGS"
19364
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19366
save_LDFLAGS="$LDFLAGS"
19367
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19370
LIBS="$lt_cv_dlopen_libs $LIBS"
19372
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19373
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19374
if test "${lt_cv_dlopen_self+set}" = set; then
19375
echo $ECHO_N "(cached) $ECHO_C" >&6
19377
if test "$cross_compiling" = yes; then :
19378
lt_cv_dlopen_self=cross
19380
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19381
lt_status=$lt_dlunknown
19382
cat > conftest.$ac_ext <<EOF
19383
#line __oline__ "configure"
19384
#include "confdefs.h"
19393
# define LT_DLGLOBAL RTLD_GLOBAL
19396
# define LT_DLGLOBAL DL_GLOBAL
19398
# define LT_DLGLOBAL 0
19402
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19403
find out it does not work in some platform. */
19404
#ifndef LT_DLLAZY_OR_NOW
19406
# define LT_DLLAZY_OR_NOW RTLD_LAZY
19409
# define LT_DLLAZY_OR_NOW DL_LAZY
19412
# define LT_DLLAZY_OR_NOW RTLD_NOW
19415
# define LT_DLLAZY_OR_NOW DL_NOW
19417
# define LT_DLLAZY_OR_NOW 0
19425
extern "C" void exit (int);
19428
void fnord() { int i=42;}
19431
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19432
int status = $lt_dlunknown;
19436
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19437
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19438
/* dlclose (self); */
19444
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19445
(eval $ac_link) 2>&5
19447
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19449
(./conftest; exit; ) 2>/dev/null
19451
case x$lt_status in
19452
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19453
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19454
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19457
# compilation failed
19458
lt_cv_dlopen_self=no
19465
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19466
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19468
if test "x$lt_cv_dlopen_self" = xyes; then
19469
LDFLAGS="$LDFLAGS $link_static_flag"
19470
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19471
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19472
if test "${lt_cv_dlopen_self_static+set}" = set; then
19473
echo $ECHO_N "(cached) $ECHO_C" >&6
19475
if test "$cross_compiling" = yes; then :
19476
lt_cv_dlopen_self_static=cross
19478
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19479
lt_status=$lt_dlunknown
19480
cat > conftest.$ac_ext <<EOF
19481
#line __oline__ "configure"
19482
#include "confdefs.h"
19491
# define LT_DLGLOBAL RTLD_GLOBAL
19494
# define LT_DLGLOBAL DL_GLOBAL
19496
# define LT_DLGLOBAL 0
19500
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19501
find out it does not work in some platform. */
19502
#ifndef LT_DLLAZY_OR_NOW
19504
# define LT_DLLAZY_OR_NOW RTLD_LAZY
19507
# define LT_DLLAZY_OR_NOW DL_LAZY
19510
# define LT_DLLAZY_OR_NOW RTLD_NOW
19513
# define LT_DLLAZY_OR_NOW DL_NOW
19515
# define LT_DLLAZY_OR_NOW 0
19523
extern "C" void exit (int);
19526
void fnord() { int i=42;}
19529
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19530
int status = $lt_dlunknown;
19534
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19535
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19536
/* dlclose (self); */
19542
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19543
(eval $ac_link) 2>&5
19545
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19547
(./conftest; exit; ) 2>/dev/null
19549
case x$lt_status in
19550
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19551
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19552
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19555
# compilation failed
19556
lt_cv_dlopen_self_static=no
19563
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19564
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19567
CPPFLAGS="$save_CPPFLAGS"
19568
LDFLAGS="$save_LDFLAGS"
19573
case $lt_cv_dlopen_self in
19574
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19575
*) enable_dlopen_self=unknown ;;
19578
case $lt_cv_dlopen_self_static in
19579
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19580
*) enable_dlopen_self_static=unknown ;;
19585
# The else clause should only fire when bootstrapping the
19586
# libtool distribution, otherwise you forgot to ship ltmain.sh
19587
# with your package, and you will get complaints that there are
19588
# no rules to generate ltmain.sh.
19589
if test -f "$ltmain"; then
19590
# See if we are running on zsh, and set the options which allow our commands through
19591
# without removal of \ escapes.
19592
if test -n "${ZSH_VERSION+set}" ; then
19593
setopt NO_GLOB_SUBST
19595
# Now quote all the things that may contain metacharacters while being
19596
# careful not to overquote the AC_SUBSTed values. We take copies of the
19597
# variables and quote the copies for generation of the libtool script.
19598
for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
19600
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19601
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19602
deplibs_check_method reload_flag reload_cmds need_locks \
19603
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19604
lt_cv_sys_global_symbol_to_c_name_address \
19605
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19606
old_postinstall_cmds old_postuninstall_cmds \
19610
lt_prog_compiler_wl_GCJ \
19611
lt_prog_compiler_pic_GCJ \
19612
lt_prog_compiler_static_GCJ \
19613
lt_prog_compiler_no_builtin_flag_GCJ \
19614
export_dynamic_flag_spec_GCJ \
19615
thread_safe_flag_spec_GCJ \
19616
whole_archive_flag_spec_GCJ \
19617
enable_shared_with_static_runtimes_GCJ \
19618
old_archive_cmds_GCJ \
19619
old_archive_from_new_cmds_GCJ \
19620
predep_objects_GCJ \
19621
postdep_objects_GCJ \
19624
compiler_lib_search_path_GCJ \
19626
archive_expsym_cmds_GCJ \
19627
postinstall_cmds_GCJ \
19628
postuninstall_cmds_GCJ \
19629
old_archive_from_expsyms_cmds_GCJ \
19630
allow_undefined_flag_GCJ \
19631
no_undefined_flag_GCJ \
19632
export_symbols_cmds_GCJ \
19633
hardcode_libdir_flag_spec_GCJ \
19634
hardcode_libdir_flag_spec_ld_GCJ \
19635
hardcode_libdir_separator_GCJ \
19636
hardcode_automatic_GCJ \
19638
module_expsym_cmds_GCJ \
19639
lt_cv_prog_compiler_c_o_GCJ \
19640
exclude_expsyms_GCJ \
19641
include_expsyms_GCJ; do
19644
old_archive_cmds_GCJ | \
19645
old_archive_from_new_cmds_GCJ | \
19646
archive_cmds_GCJ | \
19647
archive_expsym_cmds_GCJ | \
19648
module_cmds_GCJ | \
19649
module_expsym_cmds_GCJ | \
19650
old_archive_from_expsyms_cmds_GCJ | \
19651
export_symbols_cmds_GCJ | \
19652
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19653
postinstall_cmds | postuninstall_cmds | \
19654
old_postinstall_cmds | old_postuninstall_cmds | \
19655
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19656
# Double-quote double-evaled strings.
19657
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19660
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19666
*'\$0 --fallback-echo"')
19667
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19673
cat <<__EOF__ >> "$cfgfile"
19674
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19676
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19678
# Shell to use when invoking shell scripts.
19681
# Whether or not to build shared libraries.
19682
build_libtool_libs=$enable_shared
19684
# Whether or not to build static libraries.
19685
build_old_libs=$enable_static
19687
# Whether or not to add -lc for building shared libraries.
19688
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19690
# Whether or not to disallow shared libs when runtime libs are static
19691
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19693
# Whether or not to optimize for fast installation.
19694
fast_install=$enable_fast_install
19697
host_alias=$host_alias
19701
# The build system.
19702
build_alias=$build_alias
19706
# An echo program that does not interpret backslashes.
19711
AR_FLAGS=$lt_AR_FLAGS
19716
# A language-specific compiler.
19717
CC=$lt_compiler_GCJ
19719
# Is the compiler the GNU C compiler?
19725
# The linker used to build libraries.
19728
# Whether we need hard or soft links.
19731
# A BSD-compatible nm program.
19734
# A symbol stripping program
19737
# Used to examine libraries when file_magic_cmd begins "file"
19738
MAGIC_CMD=$MAGIC_CMD
19740
# Used on cygwin: DLL creation program.
19743
# Used on cygwin: object dumper.
19746
# Used on cygwin: assembler.
19749
# The name of the directory that contains temporary libtool files.
19752
# How to create reloadable object files.
19753
reload_flag=$lt_reload_flag
19754
reload_cmds=$lt_reload_cmds
19756
# How to pass a linker flag through the compiler.
19757
wl=$lt_lt_prog_compiler_wl_GCJ
19759
# Object file suffix (normally "o").
19760
objext="$ac_objext"
19762
# Old archive suffix (normally "a").
19765
# Shared library suffix (normally ".so").
19766
shrext_cmds='$shrext_cmds'
19768
# Executable file suffix (normally "").
19771
# Additional compiler flags for building library objects.
19772
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19775
# What is the maximum length of a command?
19776
max_cmd_len=$lt_cv_sys_max_cmd_len
19778
# Does compiler simultaneously support -c and -o options?
19779
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19781
# Must we lock files when doing compilation ?
19782
need_locks=$lt_need_locks
19784
# Do we need the lib prefix for modules?
19785
need_lib_prefix=$need_lib_prefix
19787
# Do we need a version for libraries?
19788
need_version=$need_version
19790
# Whether dlopen is supported.
19791
dlopen_support=$enable_dlopen
19793
# Whether dlopen of programs is supported.
19794
dlopen_self=$enable_dlopen_self
19796
# Whether dlopen of statically linked programs is supported.
19797
dlopen_self_static=$enable_dlopen_self_static
19799
# Compiler flag to prevent dynamic linking.
19800
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19802
# Compiler flag to turn off builtin functions.
19803
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19805
# Compiler flag to allow reflexive dlopens.
19806
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19808
# Compiler flag to generate shared objects directly from archives.
19809
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19811
# Compiler flag to generate thread-safe objects.
19812
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19814
# Library versioning type.
19815
version_type=$version_type
19817
# Format of library name prefix.
19818
libname_spec=$lt_libname_spec
19820
# List of archive names. First name is the real one, the rest are links.
19821
# The last name is the one that the linker finds with -lNAME.
19822
library_names_spec=$lt_library_names_spec
19824
# The coded name of the library, if different from the real name.
19825
soname_spec=$lt_soname_spec
19827
# Commands used to build and install an old-style archive.
19829
old_archive_cmds=$lt_old_archive_cmds_GCJ
19830
old_postinstall_cmds=$lt_old_postinstall_cmds
19831
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19833
# Create an old-style archive from a shared archive.
19834
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19836
# Create a temporary old-style archive to link instead of a shared archive.
19837
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19839
# Commands used to build and install a shared archive.
19840
archive_cmds=$lt_archive_cmds_GCJ
19841
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19842
postinstall_cmds=$lt_postinstall_cmds
19843
postuninstall_cmds=$lt_postuninstall_cmds
19845
# Commands used to build a loadable module (assumed same as above if empty)
19846
module_cmds=$lt_module_cmds_GCJ
19847
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19849
# Commands to strip libraries.
19850
old_striplib=$lt_old_striplib
19851
striplib=$lt_striplib
19853
# Dependencies to place before the objects being linked to create a
19855
predep_objects=$lt_predep_objects_GCJ
19857
# Dependencies to place after the objects being linked to create a
19859
postdep_objects=$lt_postdep_objects_GCJ
19861
# Dependencies to place before the objects being linked to create a
19863
predeps=$lt_predeps_GCJ
19865
# Dependencies to place after the objects being linked to create a
19867
postdeps=$lt_postdeps_GCJ
19869
# The library search path used internally by the compiler when linking
19870
# a shared library.
19871
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19873
# Method to check whether dependent libraries are shared objects.
19874
deplibs_check_method=$lt_deplibs_check_method
19876
# Command to use when deplibs_check_method == file_magic.
19877
file_magic_cmd=$lt_file_magic_cmd
19879
# Flag that allows shared libraries with undefined symbols to be built.
19880
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19882
# Flag that forces no undefined symbols.
19883
no_undefined_flag=$lt_no_undefined_flag_GCJ
19885
# Commands used to finish a libtool library installation in a directory.
19886
finish_cmds=$lt_finish_cmds
19888
# Same as above, but a single script fragment to be evaled but not shown.
19889
finish_eval=$lt_finish_eval
19891
# Take the output of nm and produce a listing of raw symbols and C names.
19892
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19894
# Transform the output of nm in a proper C declaration
19895
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19897
# Transform the output of nm in a C name address pair
19898
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19900
# This is the shared library runtime path variable.
19901
runpath_var=$runpath_var
19903
# This is the shared library path variable.
19904
shlibpath_var=$shlibpath_var
19906
# Is shlibpath searched before the hard-coded library search path?
19907
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19909
# How to hardcode a shared library path into an executable.
19910
hardcode_action=$hardcode_action_GCJ
19912
# Whether we should hardcode library paths into libraries.
19913
hardcode_into_libs=$hardcode_into_libs
19915
# Flag to hardcode \$libdir into a binary during linking.
19916
# This must work even if \$libdir does not exist.
19917
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19919
# If ld is used when linking, flag to hardcode \$libdir into
19920
# a binary during linking. This must work even if \$libdir does
19922
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19924
# Whether we need a single -rpath flag with a separated argument.
19925
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19927
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19928
# resulting binary.
19929
hardcode_direct=$hardcode_direct_GCJ
19931
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19932
# resulting binary.
19933
hardcode_minus_L=$hardcode_minus_L_GCJ
19935
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19936
# the resulting binary.
19937
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19939
# Set to yes if building a shared library automatically hardcodes DIR into the library
19940
# and all subsequent libraries and executables linked against it.
19941
hardcode_automatic=$hardcode_automatic_GCJ
19943
# Variables whose values should be saved in libtool wrapper scripts and
19944
# restored at relink time.
19945
variables_saved_for_relink="$variables_saved_for_relink"
19947
# Whether libtool must link a program against all its dependency libraries.
19948
link_all_deplibs=$link_all_deplibs_GCJ
19950
# Compile-time system search path for libraries
19951
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19953
# Run-time system search path for libraries
19954
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19956
# Fix the shell variable \$srcfile for the compiler.
19957
fix_srcfile_path="$fix_srcfile_path_GCJ"
19959
# Set to yes if exported symbols are required.
19960
always_export_symbols=$always_export_symbols_GCJ
19962
# The commands to list exported symbols.
19963
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19965
# The commands to extract the exported symbol list from a shared archive.
19966
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19968
# Symbols that should not be listed in the preloaded symbols.
19969
exclude_expsyms=$lt_exclude_expsyms_GCJ
19971
# Symbols that must always be exported.
19972
include_expsyms=$lt_include_expsyms_GCJ
19974
# ### END LIBTOOL TAG CONFIG: $tagname
19980
# If there is no Makefile yet, we rely on a make rule to execute
19981
# `config.status --recheck' to rerun these tests and create the
19982
# libtool script then.
19983
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19984
if test -f "$ltmain_in"; then
19985
test -f Makefile && make "$ltmain"
19991
ac_cpp='$CPP $CPPFLAGS'
19992
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19993
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19994
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20007
# Source file extension for RC test sources.
20010
# Object file extension for compiled RC test sources.
20014
# Code to be used in simple compile tests
20015
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20017
# Code to be used in simple link tests
20018
lt_simple_link_test_code="$lt_simple_compile_test_code"
20020
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20022
# If no C compiler was specified, use CC.
20025
# Allow CC to be a program name with arguments.
20029
# Allow CC to be a program name with arguments.
20034
lt_cv_prog_compiler_c_o_RC=yes
20036
# The else clause should only fire when bootstrapping the
20037
# libtool distribution, otherwise you forgot to ship ltmain.sh
20038
# with your package, and you will get complaints that there are
20039
# no rules to generate ltmain.sh.
20040
if test -f "$ltmain"; then
20041
# See if we are running on zsh, and set the options which allow our commands through
20042
# without removal of \ escapes.
20043
if test -n "${ZSH_VERSION+set}" ; then
20044
setopt NO_GLOB_SUBST
20046
# Now quote all the things that may contain metacharacters while being
20047
# careful not to overquote the AC_SUBSTed values. We take copies of the
20048
# variables and quote the copies for generation of the libtool script.
20049
for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
20051
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20052
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20053
deplibs_check_method reload_flag reload_cmds need_locks \
20054
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20055
lt_cv_sys_global_symbol_to_c_name_address \
20056
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20057
old_postinstall_cmds old_postuninstall_cmds \
20061
lt_prog_compiler_wl_RC \
20062
lt_prog_compiler_pic_RC \
20063
lt_prog_compiler_static_RC \
20064
lt_prog_compiler_no_builtin_flag_RC \
20065
export_dynamic_flag_spec_RC \
20066
thread_safe_flag_spec_RC \
20067
whole_archive_flag_spec_RC \
20068
enable_shared_with_static_runtimes_RC \
20069
old_archive_cmds_RC \
20070
old_archive_from_new_cmds_RC \
20071
predep_objects_RC \
20072
postdep_objects_RC \
20075
compiler_lib_search_path_RC \
20077
archive_expsym_cmds_RC \
20078
postinstall_cmds_RC \
20079
postuninstall_cmds_RC \
20080
old_archive_from_expsyms_cmds_RC \
20081
allow_undefined_flag_RC \
20082
no_undefined_flag_RC \
20083
export_symbols_cmds_RC \
20084
hardcode_libdir_flag_spec_RC \
20085
hardcode_libdir_flag_spec_ld_RC \
20086
hardcode_libdir_separator_RC \
20087
hardcode_automatic_RC \
20089
module_expsym_cmds_RC \
20090
lt_cv_prog_compiler_c_o_RC \
20091
exclude_expsyms_RC \
20092
include_expsyms_RC; do
20095
old_archive_cmds_RC | \
20096
old_archive_from_new_cmds_RC | \
20097
archive_cmds_RC | \
20098
archive_expsym_cmds_RC | \
20100
module_expsym_cmds_RC | \
20101
old_archive_from_expsyms_cmds_RC | \
20102
export_symbols_cmds_RC | \
20103
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20104
postinstall_cmds | postuninstall_cmds | \
20105
old_postinstall_cmds | old_postuninstall_cmds | \
20106
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20107
# Double-quote double-evaled strings.
20108
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20111
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20117
*'\$0 --fallback-echo"')
20118
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20124
cat <<__EOF__ >> "$cfgfile"
20125
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20127
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20129
# Shell to use when invoking shell scripts.
20132
# Whether or not to build shared libraries.
20133
build_libtool_libs=$enable_shared
20135
# Whether or not to build static libraries.
20136
build_old_libs=$enable_static
20138
# Whether or not to add -lc for building shared libraries.
20139
build_libtool_need_lc=$archive_cmds_need_lc_RC
20141
# Whether or not to disallow shared libs when runtime libs are static
20142
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20144
# Whether or not to optimize for fast installation.
20145
fast_install=$enable_fast_install
20148
host_alias=$host_alias
20152
# The build system.
20153
build_alias=$build_alias
20157
# An echo program that does not interpret backslashes.
20162
AR_FLAGS=$lt_AR_FLAGS
20167
# A language-specific compiler.
20170
# Is the compiler the GNU C compiler?
20176
# The linker used to build libraries.
20179
# Whether we need hard or soft links.
20182
# A BSD-compatible nm program.
20185
# A symbol stripping program
20188
# Used to examine libraries when file_magic_cmd begins "file"
20189
MAGIC_CMD=$MAGIC_CMD
20191
# Used on cygwin: DLL creation program.
20194
# Used on cygwin: object dumper.
20197
# Used on cygwin: assembler.
20200
# The name of the directory that contains temporary libtool files.
20203
# How to create reloadable object files.
20204
reload_flag=$lt_reload_flag
20205
reload_cmds=$lt_reload_cmds
20207
# How to pass a linker flag through the compiler.
20208
wl=$lt_lt_prog_compiler_wl_RC
20210
# Object file suffix (normally "o").
20211
objext="$ac_objext"
20213
# Old archive suffix (normally "a").
20216
# Shared library suffix (normally ".so").
20217
shrext_cmds='$shrext_cmds'
20219
# Executable file suffix (normally "").
20222
# Additional compiler flags for building library objects.
20223
pic_flag=$lt_lt_prog_compiler_pic_RC
20226
# What is the maximum length of a command?
20227
max_cmd_len=$lt_cv_sys_max_cmd_len
20229
# Does compiler simultaneously support -c and -o options?
20230
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20232
# Must we lock files when doing compilation ?
20233
need_locks=$lt_need_locks
20235
# Do we need the lib prefix for modules?
20236
need_lib_prefix=$need_lib_prefix
20238
# Do we need a version for libraries?
20239
need_version=$need_version
20241
# Whether dlopen is supported.
20242
dlopen_support=$enable_dlopen
20244
# Whether dlopen of programs is supported.
20245
dlopen_self=$enable_dlopen_self
20247
# Whether dlopen of statically linked programs is supported.
20248
dlopen_self_static=$enable_dlopen_self_static
20250
# Compiler flag to prevent dynamic linking.
20251
link_static_flag=$lt_lt_prog_compiler_static_RC
20253
# Compiler flag to turn off builtin functions.
20254
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20256
# Compiler flag to allow reflexive dlopens.
20257
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20259
# Compiler flag to generate shared objects directly from archives.
20260
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20262
# Compiler flag to generate thread-safe objects.
20263
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20265
# Library versioning type.
20266
version_type=$version_type
20268
# Format of library name prefix.
20269
libname_spec=$lt_libname_spec
20271
# List of archive names. First name is the real one, the rest are links.
20272
# The last name is the one that the linker finds with -lNAME.
20273
library_names_spec=$lt_library_names_spec
20275
# The coded name of the library, if different from the real name.
20276
soname_spec=$lt_soname_spec
20278
# Commands used to build and install an old-style archive.
20280
old_archive_cmds=$lt_old_archive_cmds_RC
20281
old_postinstall_cmds=$lt_old_postinstall_cmds
20282
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20284
# Create an old-style archive from a shared archive.
20285
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20287
# Create a temporary old-style archive to link instead of a shared archive.
20288
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20290
# Commands used to build and install a shared archive.
20291
archive_cmds=$lt_archive_cmds_RC
20292
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20293
postinstall_cmds=$lt_postinstall_cmds
20294
postuninstall_cmds=$lt_postuninstall_cmds
20296
# Commands used to build a loadable module (assumed same as above if empty)
20297
module_cmds=$lt_module_cmds_RC
20298
module_expsym_cmds=$lt_module_expsym_cmds_RC
20300
# Commands to strip libraries.
20301
old_striplib=$lt_old_striplib
20302
striplib=$lt_striplib
20304
# Dependencies to place before the objects being linked to create a
20306
predep_objects=$lt_predep_objects_RC
20308
# Dependencies to place after the objects being linked to create a
20310
postdep_objects=$lt_postdep_objects_RC
20312
# Dependencies to place before the objects being linked to create a
20314
predeps=$lt_predeps_RC
20316
# Dependencies to place after the objects being linked to create a
20318
postdeps=$lt_postdeps_RC
20320
# The library search path used internally by the compiler when linking
20321
# a shared library.
20322
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20324
# Method to check whether dependent libraries are shared objects.
20325
deplibs_check_method=$lt_deplibs_check_method
20327
# Command to use when deplibs_check_method == file_magic.
20328
file_magic_cmd=$lt_file_magic_cmd
20330
# Flag that allows shared libraries with undefined symbols to be built.
20331
allow_undefined_flag=$lt_allow_undefined_flag_RC
20333
# Flag that forces no undefined symbols.
20334
no_undefined_flag=$lt_no_undefined_flag_RC
20336
# Commands used to finish a libtool library installation in a directory.
20337
finish_cmds=$lt_finish_cmds
20339
# Same as above, but a single script fragment to be evaled but not shown.
20340
finish_eval=$lt_finish_eval
20342
# Take the output of nm and produce a listing of raw symbols and C names.
20343
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20345
# Transform the output of nm in a proper C declaration
20346
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20348
# Transform the output of nm in a C name address pair
20349
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20351
# This is the shared library runtime path variable.
20352
runpath_var=$runpath_var
20354
# This is the shared library path variable.
20355
shlibpath_var=$shlibpath_var
20357
# Is shlibpath searched before the hard-coded library search path?
20358
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20360
# How to hardcode a shared library path into an executable.
20361
hardcode_action=$hardcode_action_RC
20363
# Whether we should hardcode library paths into libraries.
20364
hardcode_into_libs=$hardcode_into_libs
20366
# Flag to hardcode \$libdir into a binary during linking.
20367
# This must work even if \$libdir does not exist.
20368
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20370
# If ld is used when linking, flag to hardcode \$libdir into
20371
# a binary during linking. This must work even if \$libdir does
20373
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20375
# Whether we need a single -rpath flag with a separated argument.
20376
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20378
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20379
# resulting binary.
20380
hardcode_direct=$hardcode_direct_RC
20382
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20383
# resulting binary.
20384
hardcode_minus_L=$hardcode_minus_L_RC
20386
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20387
# the resulting binary.
20388
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20390
# Set to yes if building a shared library automatically hardcodes DIR into the library
20391
# and all subsequent libraries and executables linked against it.
20392
hardcode_automatic=$hardcode_automatic_RC
20394
# Variables whose values should be saved in libtool wrapper scripts and
20395
# restored at relink time.
20396
variables_saved_for_relink="$variables_saved_for_relink"
20398
# Whether libtool must link a program against all its dependency libraries.
20399
link_all_deplibs=$link_all_deplibs_RC
20401
# Compile-time system search path for libraries
20402
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20404
# Run-time system search path for libraries
20405
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20407
# Fix the shell variable \$srcfile for the compiler.
20408
fix_srcfile_path="$fix_srcfile_path_RC"
20410
# Set to yes if exported symbols are required.
20411
always_export_symbols=$always_export_symbols_RC
20413
# The commands to list exported symbols.
20414
export_symbols_cmds=$lt_export_symbols_cmds_RC
20416
# The commands to extract the exported symbol list from a shared archive.
20417
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20419
# Symbols that should not be listed in the preloaded symbols.
20420
exclude_expsyms=$lt_exclude_expsyms_RC
20422
# Symbols that must always be exported.
20423
include_expsyms=$lt_include_expsyms_RC
20425
# ### END LIBTOOL TAG CONFIG: $tagname
20431
# If there is no Makefile yet, we rely on a make rule to execute
20432
# `config.status --recheck' to rerun these tests and create the
20433
# libtool script then.
20434
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20435
if test -f "$ltmain_in"; then
20436
test -f Makefile && make "$ltmain"
20442
ac_cpp='$CPP $CPPFLAGS'
20443
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20444
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20445
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20452
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20453
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20454
{ (exit 1); exit 1; }; }
20458
# Append the new tag name to the list of available tags.
20459
if test -n "$tagname" ; then
20460
available_tags="$available_tags $tagname"
20466
# Now substitute the updated list of available tags.
20467
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20468
mv "${ofile}T" "$ofile"
20472
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20473
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20474
{ (exit 1); exit 1; }; }
20480
# This can be used to rebuild libtool when needed
20481
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20483
# Always use our own libtool.
20484
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20486
# Prevent multiple expansion
20508
TCSD_DEFAULT_PORT=30003
20512
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}"
20513
#CFLAGS="$CFLAGS -I../include -std=c99 -pedantic -W -Wall"
20514
KERNEL_VERSION=`uname -r`
20517
# When we build the rpms, prefix will be /usr. This'll do some things that make sense,
20518
# like put our sbin stuff in /usr/sbin and our library in /usr/lib. It'll do some other
20519
# things that don't make sense like put our config file in /usr/etc. So, I'll just hack
20520
# it here. If the --prefix option isn't specified during configure, let it all go to
20521
# /usr/local, even /usr/local/etc. :-P
20522
if test x"${prefix}" == x"/usr"; then
20524
localstatedir="/var"
20525
mandir="/usr/share/man"
20526
elif test x"${prefix}" == x"NONE"; then
20527
localstatedir="/usr/local/var"
20530
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"
20531
cat >confcache <<\_ACEOF
20532
# This file is a shell script that caches the results of configure
20533
# tests run on this system so they can be shared between configure
20534
# scripts and configure runs, see configure's option --config-cache.
20535
# It is not useful on other systems. If it contains results you don't
20536
# want to keep, you may remove or edit it.
20538
# config.status only pays attention to the cache file if you give it
20539
# the --recheck option to rerun configure.
20541
# `ac_cv_env_foo' variables (set or unset) will be overridden when
20542
# loading this file, other *unset* `ac_cv_foo' will be assigned the
20543
# following values.
20547
# The following way of writing the cache mishandles newlines in values,
20548
# but we know of no workaround that is simple, portable, and efficient.
20549
# So, don't put newlines in cache variables' values.
20550
# Ultrix sh set writes to stderr and can't be redirected directly,
20551
# and sets the high bit in the cache file unless we assign to the vars.
20554
case `(ac_space=' '; set | grep ac_space) 2>&1` in
20556
# `set' does not quote correctly, so add quotes (double-quote
20557
# substitution turns \\\\ into \\, and sed turns \\ into \).
20560
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20563
# `set' quotes correctly as required by POSIX, so do not add quotes.
20565
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20572
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20574
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20576
if diff $cache_file confcache >/dev/null 2>&1; then :; else
20577
if test -w $cache_file; then
20578
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20579
cat confcache >$cache_file
20581
echo "not updating unwritable cache $cache_file"
20586
test "x$prefix" = xNONE && prefix=$ac_default_prefix
20587
# Let make expand exec_prefix.
20588
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20590
# VPATH may cause trouble with some makes, so we remove $(srcdir),
20591
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20592
# trailing colons and then remove the whole line if VPATH becomes empty
20593
# (actually we leave an empty line to preserve line numbers).
20594
if test "x$srcdir" = x.; then
20595
ac_vpsub='/^[ ]*VPATH[ ]*=/{
20596
s/:*\$(srcdir):*/:/;
20597
s/:*\${srcdir}:*/:/;
20599
s/^\([^=]*=[ ]*\):*/\1/;
20605
# Transform confdefs.h into DEFS.
20606
# Protect against shell expansion while executing Makefile rules.
20607
# Protect against Makefile macro expansion.
20609
# If the first sed substitution is executed (which looks for macros that
20610
# take arguments), then we branch to the quote section. Otherwise,
20611
# look for a macro that doesn't take arguments.
20612
cat >confdef2opt.sed <<\_ACEOF
20615
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
20617
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
20621
s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
20627
# We use echo to avoid assuming a particular line-breaking character.
20628
# The extra dot is to prevent the shell from consuming trailing
20629
# line-breaks from the sub-command output. A line-break within
20630
# single-quotes doesn't work because, if this script is created in a
20631
# platform that uses two characters for line-breaks (e.g., DOS), tr
20633
ac_LF_and_DOT=`echo; echo .`
20634
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
20635
rm -f confdef2opt.sed
20640
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
20641
# 1. Remove the extension, and $U if already installed.
20642
ac_i=`echo "$ac_i" |
20643
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20645
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20646
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20648
LIB@&t@OBJS=$ac_libobjs
20650
LTLIBOBJS=$ac_ltlibobjs
20653
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20654
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20655
Usually this means the macro was only invoked conditionally." >&5
20656
echo "$as_me: error: conditional \"AMDEP\" was never defined.
20657
Usually this means the macro was only invoked conditionally." >&2;}
20658
{ (exit 1); exit 1; }; }
20660
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20661
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20662
Usually this means the macro was only invoked conditionally." >&5
20663
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20664
Usually this means the macro was only invoked conditionally." >&2;}
20665
{ (exit 1); exit 1; }; }
20667
if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
20668
{ { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK\" was never defined.
20669
Usually this means the macro was only invoked conditionally." >&5
20670
echo "$as_me: error: conditional \"HAVE_GTK\" was never defined.
20671
Usually this means the macro was only invoked conditionally." >&2;}
20672
{ (exit 1); exit 1; }; }
20674
if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
20675
{ { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK\" was never defined.
20676
Usually this means the macro was only invoked conditionally." >&5
20677
echo "$as_me: error: conditional \"HAVE_GTK\" was never defined.
20678
Usually this means the macro was only invoked conditionally." >&2;}
20679
{ (exit 1); exit 1; }; }
20681
if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
20682
{ { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK\" was never defined.
20683
Usually this means the macro was only invoked conditionally." >&5
20684
echo "$as_me: error: conditional \"HAVE_GTK\" was never defined.
20685
Usually this means the macro was only invoked conditionally." >&2;}
20686
{ (exit 1); exit 1; }; }
20688
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20689
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20690
Usually this means the macro was only invoked conditionally." >&5
20691
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20692
Usually this means the macro was only invoked conditionally." >&2;}
20693
{ (exit 1); exit 1; }; }
20695
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20696
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20697
Usually this means the macro was only invoked conditionally." >&5
20698
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20699
Usually this means the macro was only invoked conditionally." >&2;}
20700
{ (exit 1); exit 1; }; }
20703
: ${CONFIG_STATUS=./config.status}
20704
ac_clean_files_save=$ac_clean_files
20705
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20706
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20707
echo "$as_me: creating $CONFIG_STATUS" >&6;}
20708
cat >$CONFIG_STATUS <<_ACEOF
20710
# Generated by $as_me.
20711
# Run this file to recreate the current configuration.
20712
# Compiler output produced by configure, useful for debugging
20713
# configure, is in config.log if it exists.
20716
ac_cs_recheck=false
20718
SHELL=\${CONFIG_SHELL-$SHELL}
20721
cat >>$CONFIG_STATUS <<\_ACEOF
20722
## --------------------- ##
20723
## M4sh Initialization. ##
20724
## --------------------- ##
20726
# Be Bourne compatible
20727
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20730
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20731
# is contrary to our usage. Disable this feature.
20732
alias -g '${1+"$@"}'='"$@"'
20733
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20736
DUALCASE=1; export DUALCASE # for MKS sh
20738
# Support unset when possible.
20739
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20746
# Work around bugs in pre-3.0 UWIN ksh.
20747
$as_unset ENV MAIL MAILPATH
20754
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20755
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20756
LC_TELEPHONE LC_TIME
20758
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20759
eval $as_var=C; export $as_var
20765
# Required to use basename.
20766
if expr a : '\(a\)' >/dev/null 2>&1; then
20772
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20773
as_basename=basename
20779
# Name of the executable.
20780
as_me=`$as_basename "$0" ||
20781
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20782
X"$0" : 'X\(//\)$' \| \
20783
X"$0" : 'X\(/\)$' \| \
20784
. : '\(.\)' 2>/dev/null ||
20786
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20787
/^X\/\(\/\/\)$/{ s//\1/; q; }
20788
/^X\/\(\/\).*/{ s//\1/; q; }
20792
# PATH needs CR, and LINENO needs CR and PATH.
20793
# Avoid depending upon Character Ranges.
20794
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20795
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20796
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20797
as_cr_digits='0123456789'
20798
as_cr_alnum=$as_cr_Letters$as_cr_digits
20800
# The user is always right.
20801
if test "${PATH_SEPARATOR+set}" != set; then
20802
echo "#! /bin/sh" >conf$$.sh
20803
echo "exit 0" >>conf$$.sh
20805
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20814
as_lineno_1=$LINENO
20815
as_lineno_2=$LINENO
20816
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20817
test "x$as_lineno_1" != "x$as_lineno_2" &&
20818
test "x$as_lineno_3" = "x$as_lineno_2" || {
20819
# Find who we are. Look in the path if we contain no path at all
20822
*[\\/]* ) as_myself=$0 ;;
20823
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20824
for as_dir in $PATH
20827
test -z "$as_dir" && as_dir=.
20828
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20833
# We did not find ourselves, most probably we were run as `sh COMMAND'
20834
# in which case we are not to be found in the path.
20835
if test "x$as_myself" = x; then
20838
if test ! -f "$as_myself"; then
20839
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20840
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20841
{ (exit 1); exit 1; }; }
20843
case $CONFIG_SHELL in
20845
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20846
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20849
test -z "$as_dir" && as_dir=.
20850
for as_base in sh bash ksh sh5; do
20853
if ("$as_dir/$as_base" -c '
20854
as_lineno_1=$LINENO
20855
as_lineno_2=$LINENO
20856
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20857
test "x$as_lineno_1" != "x$as_lineno_2" &&
20858
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20859
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20860
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20861
CONFIG_SHELL=$as_dir/$as_base
20862
export CONFIG_SHELL
20863
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20871
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20872
# uniformly replaced by the line number. The first 'sed' inserts a
20873
# line-number line before each line; the second 'sed' does the real
20874
# work. The second script uses 'N' to pair each line-number line
20875
# with the numbered line, and appends trailing '-' during
20876
# substitution so that $LINENO is not a special case at line end.
20877
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20878
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20879
sed '=' <$as_myself |
20884
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20887
s,^['$as_cr_digits']*\n,,
20888
' >$as_me.lineno &&
20889
chmod +x $as_me.lineno ||
20890
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20891
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20892
{ (exit 1); exit 1; }; }
20894
# Don't try to exec as it changes $[0], causing all sort of problems
20895
# (the dirname of $[0] is not the place where we might find the
20896
# original and so on. Autoconf is especially sensible to this).
20898
# Exit status is that of the last command.
20903
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20904
*c*,-n*) ECHO_N= ECHO_C='
20906
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20907
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20910
if expr a : '\(a\)' >/dev/null 2>&1; then
20916
rm -f conf$$ conf$$.exe conf$$.file
20918
if ln -s conf$$.file conf$$ 2>/dev/null; then
20919
# We could just check for DJGPP; but this test a) works b) is more generic
20920
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20921
if test -f conf$$.exe; then
20922
# Don't use ln at all; we don't have any links
20927
elif ln conf$$.file conf$$ 2>/dev/null; then
20932
rm -f conf$$ conf$$.exe conf$$.file
20934
if mkdir -p . 2>/dev/null; then
20937
test -d ./-p && rmdir ./-p
20941
as_executable_p="test -f"
20943
# Sed expression to map a string onto a valid CPP name.
20944
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20946
# Sed expression to map a string onto a valid variable name.
20947
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20951
# We need space, tab and new line, in precisely that order.
20961
# Open the log real soon, to keep \$[0] and so on meaningful, and to
20962
# report actual input values of CONFIG_FILES etc. instead of their
20963
# values after options handling. Logging --version etc. is OK.
20967
sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
20968
@%:@@%:@ Running $as_me. @%:@@%:@
20973
This file was extended by trousers $as_me 0.2.9.1, which was
20974
generated by GNU Autoconf 2.59. Invocation command line was
20976
CONFIG_FILES = $CONFIG_FILES
20977
CONFIG_HEADERS = $CONFIG_HEADERS
20978
CONFIG_LINKS = $CONFIG_LINKS
20979
CONFIG_COMMANDS = $CONFIG_COMMANDS
20983
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20987
# Files that config.status was made for.
20988
if test -n "$ac_config_files"; then
20989
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20992
if test -n "$ac_config_headers"; then
20993
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20996
if test -n "$ac_config_links"; then
20997
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21000
if test -n "$ac_config_commands"; then
21001
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21004
cat >>$CONFIG_STATUS <<\_ACEOF
21007
\`$as_me' instantiates files from templates according to the
21008
current configuration.
21010
Usage: $0 [OPTIONS] [FILE]...
21012
-h, --help print this help, then exit
21013
-V, --version print version number, then exit
21014
-q, --quiet do not print progress messages
21015
-d, --debug don't remove temporary files
21016
--recheck update $as_me by reconfiguring in the same conditions
21017
--file=FILE[:TEMPLATE]
21018
instantiate the configuration file FILE
21020
Configuration files:
21023
Configuration commands:
21026
Report bugs to <bug-autoconf@gnu.org>."
21029
cat >>$CONFIG_STATUS <<_ACEOF
21031
trousers config.status 0.2.9.1
21032
configured by $0, generated by GNU Autoconf 2.59,
21033
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21035
Copyright (C) 2003 Free Software Foundation, Inc.
21036
This config.status script is free software; the Free Software Foundation
21037
gives unlimited permission to copy, distribute and modify it."
21042
cat >>$CONFIG_STATUS <<\_ACEOF
21043
# If no file are specified by the user, then we need to provide default
21044
# value. By we need to know if files were specified by the user.
21050
ac_option=`expr "x$1" : 'x\([^=]*\)='`
21051
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21059
*) # This is not an option, so the user has probably given explicit
21062
ac_need_defaults=false;;
21066
# Handling of the options.
21068
cat >>$CONFIG_STATUS <<\_ACEOF
21069
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21071
--version | --vers* | -V )
21072
echo "$ac_cs_version"; exit 0 ;;
21074
# Conflict between --help and --header
21075
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
21076
Try \`$0 --help' for more information." >&5
21077
echo "$as_me: error: ambiguous option: $1
21078
Try \`$0 --help' for more information." >&2;}
21079
{ (exit 1); exit 1; }; };;
21080
--help | --hel | -h )
21081
echo "$ac_cs_usage"; exit 0 ;;
21082
--debug | --d* | -d )
21084
--file | --fil | --fi | --f )
21086
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21087
ac_need_defaults=false;;
21088
--header | --heade | --head | --hea )
21090
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21091
ac_need_defaults=false;;
21092
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
21093
| -silent | --silent | --silen | --sile | --sil | --si | --s)
21096
# This is an error.
21097
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21098
Try \`$0 --help' for more information." >&5
21099
echo "$as_me: error: unrecognized option: $1
21100
Try \`$0 --help' for more information." >&2;}
21101
{ (exit 1); exit 1; }; } ;;
21103
*) ac_config_targets="$ac_config_targets $1" ;;
21109
ac_configure_extra_args=
21111
if $ac_cs_silent; then
21113
ac_configure_extra_args="$ac_configure_extra_args --silent"
21117
cat >>$CONFIG_STATUS <<_ACEOF
21118
if \$ac_cs_recheck; then
21119
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21120
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21125
cat >>$CONFIG_STATUS <<_ACEOF
21127
# INIT-COMMANDS section.
21130
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21136
cat >>$CONFIG_STATUS <<\_ACEOF
21137
for ac_config_target in $ac_config_targets
21139
case "$ac_config_target" in
21140
# Handling of arguments.
21141
"dist/tcsd.conf" ) CONFIG_FILES="$CONFIG_FILES dist/tcsd.conf" ;;
21142
"dist/fedora/trousers.spec" ) CONFIG_FILES="$CONFIG_FILES dist/fedora/trousers.spec" ;;
21143
"dist/trousers.spec" ) CONFIG_FILES="$CONFIG_FILES dist/trousers.spec" ;;
21144
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21145
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21146
"src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
21147
"src/tcs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tcs/Makefile" ;;
21148
"src/tddl/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tddl/Makefile" ;;
21149
"src/tspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tspi/Makefile" ;;
21150
"src/trspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/trspi/Makefile" ;;
21151
"src/tcsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tcsd/Makefile" ;;
21152
"tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21153
"man/man8/tcsd.8" ) CONFIG_FILES="$CONFIG_FILES man/man8/tcsd.8" ;;
21154
"man/man5/tcsd.conf.5" ) CONFIG_FILES="$CONFIG_FILES man/man5/tcsd.conf.5" ;;
21155
"dist/Makefile" ) CONFIG_FILES="$CONFIG_FILES dist/Makefile" ;;
21156
"man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21157
"man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/man3/Makefile" ;;
21158
"man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
21159
"man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
21160
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21161
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21162
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21163
{ (exit 1); exit 1; }; };;
21167
# If the user did not use the arguments to specify the items to instantiate,
21168
# then the envvar interface is used. Set only those that are not.
21169
# We use the long form for the default assignment because of an extremely
21170
# bizarre bug on SunOS 4.1.3.
21171
if $ac_need_defaults; then
21172
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21173
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21176
# Have a temporary directory for convenience. Make it in the build tree
21177
# simply because there is no reason to put it here, and in addition,
21178
# creating and moving files from /tmp can sometimes cause problems.
21179
# Create a temporary directory, and hook for its removal unless debugging.
21182
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21183
trap '{ (exit 1); exit 1; }' 1 2 13 15
21186
# Create a (secure) tmp directory for tmp files.
21189
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21190
test -n "$tmp" && test -d "$tmp"
21193
tmp=./confstat$$-$RANDOM
21194
(umask 077 && mkdir $tmp)
21197
echo "$me: cannot create a temporary directory in ." >&2
21198
{ (exit 1); exit 1; }
21203
cat >>$CONFIG_STATUS <<_ACEOF
21206
# CONFIG_FILES section.
21209
# No need to generate the scripts if there are no CONFIG_FILES.
21210
# This happens for instance when ./config.status config.h
21211
if test -n "\$CONFIG_FILES"; then
21212
# Protect against being on the right side of a sed subst in config.status.
21213
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21214
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21215
s,@SHELL@,$SHELL,;t t
21216
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21217
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21218
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21219
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21220
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21221
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21222
s,@exec_prefix@,$exec_prefix,;t t
21223
s,@prefix@,$prefix,;t t
21224
s,@program_transform_name@,$program_transform_name,;t t
21225
s,@bindir@,$bindir,;t t
21226
s,@sbindir@,$sbindir,;t t
21227
s,@libexecdir@,$libexecdir,;t t
21228
s,@datadir@,$datadir,;t t
21229
s,@sysconfdir@,$sysconfdir,;t t
21230
s,@sharedstatedir@,$sharedstatedir,;t t
21231
s,@localstatedir@,$localstatedir,;t t
21232
s,@libdir@,$libdir,;t t
21233
s,@includedir@,$includedir,;t t
21234
s,@oldincludedir@,$oldincludedir,;t t
21235
s,@infodir@,$infodir,;t t
21236
s,@mandir@,$mandir,;t t
21237
s,@build_alias@,$build_alias,;t t
21238
s,@host_alias@,$host_alias,;t t
21239
s,@target_alias@,$target_alias,;t t
21240
s,@DEFS@,$DEFS,;t t
21241
s,@ECHO_C@,$ECHO_C,;t t
21242
s,@ECHO_N@,$ECHO_N,;t t
21243
s,@ECHO_T@,$ECHO_T,;t t
21244
s,@LIBS@,$LIBS,;t t
21245
s,@build@,$build,;t t
21246
s,@build_cpu@,$build_cpu,;t t
21247
s,@build_vendor@,$build_vendor,;t t
21248
s,@build_os@,$build_os,;t t
21249
s,@host@,$host,;t t
21250
s,@host_cpu@,$host_cpu,;t t
21251
s,@host_vendor@,$host_vendor,;t t
21252
s,@host_os@,$host_os,;t t
21253
s,@target@,$target,;t t
21254
s,@target_cpu@,$target_cpu,;t t
21255
s,@target_vendor@,$target_vendor,;t t
21256
s,@target_os@,$target_os,;t t
21257
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21258
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21259
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21260
s,@CYGPATH_W@,$CYGPATH_W,;t t
21261
s,@PACKAGE@,$PACKAGE,;t t
21262
s,@VERSION@,$VERSION,;t t
21263
s,@ACLOCAL@,$ACLOCAL,;t t
21264
s,@AUTOCONF@,$AUTOCONF,;t t
21265
s,@AUTOMAKE@,$AUTOMAKE,;t t
21266
s,@AUTOHEADER@,$AUTOHEADER,;t t
21267
s,@MAKEINFO@,$MAKEINFO,;t t
21268
s,@install_sh@,$install_sh,;t t
21269
s,@STRIP@,$STRIP,;t t
21270
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21271
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21272
s,@mkdir_p@,$mkdir_p,;t t
21274
s,@SET_MAKE@,$SET_MAKE,;t t
21275
s,@am__leading_dot@,$am__leading_dot,;t t
21276
s,@AMTAR@,$AMTAR,;t t
21277
s,@am__tar@,$am__tar,;t t
21278
s,@am__untar@,$am__untar,;t t
21279
s,@OPENSSL_LIB_DIR@,$OPENSSL_LIB_DIR,;t t
21281
s,@CFLAGS@,$CFLAGS,;t t
21282
s,@LDFLAGS@,$LDFLAGS,;t t
21283
s,@CPPFLAGS@,$CPPFLAGS,;t t
21284
s,@ac_ct_CC@,$ac_ct_CC,;t t
21285
s,@EXEEXT@,$EXEEXT,;t t
21286
s,@OBJEXT@,$OBJEXT,;t t
21287
s,@DEPDIR@,$DEPDIR,;t t
21288
s,@am__include@,$am__include,;t t
21289
s,@am__quote@,$am__quote,;t t
21290
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21291
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21292
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21293
s,@CCDEPMODE@,$CCDEPMODE,;t t
21294
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21295
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21296
s,@CRYPTO_PACKAGE@,$CRYPTO_PACKAGE,;t t
21297
s,@HAVE_GTK_TRUE@,$HAVE_GTK_TRUE,;t t
21298
s,@HAVE_GTK_FALSE@,$HAVE_GTK_FALSE,;t t
21299
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21300
s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
21301
s,@GTK_LIBS@,$GTK_LIBS,;t t
21302
s,@EGREP@,$EGREP,;t t
21303
s,@LN_S@,$LN_S,;t t
21304
s,@ECHO@,$ECHO,;t t
21306
s,@ac_ct_AR@,$ac_ct_AR,;t t
21307
s,@RANLIB@,$RANLIB,;t t
21308
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21311
s,@CXXFLAGS@,$CXXFLAGS,;t t
21312
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21313
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21314
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21315
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21316
s,@CXXCPP@,$CXXCPP,;t t
21318
s,@FFLAGS@,$FFLAGS,;t t
21319
s,@ac_ct_F77@,$ac_ct_F77,;t t
21320
s,@LIBTOOL@,$LIBTOOL,;t t
21321
s,@TCSD_DEFAULT_PORT@,$TCSD_DEFAULT_PORT,;t t
21322
s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
21323
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21328
cat >>$CONFIG_STATUS <<\_ACEOF
21329
# Split the substitutions into bite-sized pieces for seds with
21330
# small command number limits, like on Digital OSF/1 and HP-UX.
21331
ac_max_sed_lines=48
21332
ac_sed_frag=1 # Number of current file.
21333
ac_beg=1 # First line for current file.
21334
ac_end=$ac_max_sed_lines # Line after last line for current file.
21337
while $ac_more_lines; do
21338
if test $ac_beg -gt 1; then
21339
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21341
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21343
if test ! -s $tmp/subs.frag; then
21344
ac_more_lines=false
21346
# The purpose of the label and of the branching condition is to
21347
# speed up the sed processing (if there are no `@' at all, there
21348
# is no need to browse any of the substitutions).
21349
# These are the two extra sed commands mentioned above.
21351
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21352
if test -z "$ac_sed_cmds"; then
21353
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21355
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21357
ac_sed_frag=`expr $ac_sed_frag + 1`
21359
ac_end=`expr $ac_end + $ac_max_sed_lines`
21362
if test -z "$ac_sed_cmds"; then
21365
fi # test -n "$CONFIG_FILES"
21368
cat >>$CONFIG_STATUS <<\_ACEOF
21369
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21370
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21372
- | *:- | *:-:* ) # input from stdin
21374
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21375
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21376
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21377
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21378
* ) ac_file_in=$ac_file.in ;;
21381
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21382
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21383
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21384
X"$ac_file" : 'X\(//\)[^/]' \| \
21385
X"$ac_file" : 'X\(//\)$' \| \
21386
X"$ac_file" : 'X\(/\)' \| \
21387
. : '\(.\)' 2>/dev/null ||
21389
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21390
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21391
/^X\(\/\/\)$/{ s//\1/; q; }
21392
/^X\(\/\).*/{ s//\1/; q; }
21394
{ if $as_mkdir_p; then
21399
while test ! -d "$as_dir"; do
21400
as_dirs="$as_dir $as_dirs"
21401
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21402
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21403
X"$as_dir" : 'X\(//\)[^/]' \| \
21404
X"$as_dir" : 'X\(//\)$' \| \
21405
X"$as_dir" : 'X\(/\)' \| \
21406
. : '\(.\)' 2>/dev/null ||
21408
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21409
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21410
/^X\(\/\/\)$/{ s//\1/; q; }
21411
/^X\(\/\).*/{ s//\1/; q; }
21414
test ! -n "$as_dirs" || mkdir $as_dirs
21415
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21416
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21417
{ (exit 1); exit 1; }; }; }
21421
if test "$ac_dir" != .; then
21422
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21423
# A "../" for each directory in $ac_dir_suffix.
21424
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21426
ac_dir_suffix= ac_top_builddir=
21430
.) # No --srcdir option. We are building in place.
21432
if test -z "$ac_top_builddir"; then
21435
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21437
[\\/]* | ?:[\\/]* ) # Absolute path.
21438
ac_srcdir=$srcdir$ac_dir_suffix;
21439
ac_top_srcdir=$srcdir ;;
21440
*) # Relative path.
21441
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21442
ac_top_srcdir=$ac_top_builddir$srcdir ;;
21445
# Do not use `cd foo && pwd` to compute absolute paths, because
21446
# the directories may not exist.
21448
.) ac_abs_builddir="$ac_dir";;
21451
.) ac_abs_builddir=`pwd`;;
21452
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21453
*) ac_abs_builddir=`pwd`/"$ac_dir";;
21456
case $ac_abs_builddir in
21457
.) ac_abs_top_builddir=${ac_top_builddir}.;;
21459
case ${ac_top_builddir}. in
21460
.) ac_abs_top_builddir=$ac_abs_builddir;;
21461
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21462
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21465
case $ac_abs_builddir in
21466
.) ac_abs_srcdir=$ac_srcdir;;
21469
.) ac_abs_srcdir=$ac_abs_builddir;;
21470
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21471
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21474
case $ac_abs_builddir in
21475
.) ac_abs_top_srcdir=$ac_top_srcdir;;
21477
case $ac_top_srcdir in
21478
.) ac_abs_top_srcdir=$ac_abs_builddir;;
21479
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21480
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21486
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21487
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21490
if test x"$ac_file" != x-; then
21491
{ echo "$as_me:$LINENO: creating $ac_file" >&5
21492
echo "$as_me: creating $ac_file" >&6;}
21495
# Let's still pretend it is `configure' which instantiates (i.e., don't
21496
# use $as_me), people would be surprised to read:
21497
# /* config.h. Generated by config.status. */
21498
if test x"$ac_file" = x-; then
21501
configure_input="$ac_file. "
21503
configure_input=$configure_input"Generated from `echo $ac_file_in |
21504
sed 's,.*/,,'` by configure."
21506
# First look for the input files in the build tree, otherwise in the
21508
ac_file_inputs=`IFS=:
21509
for f in $ac_file_in; do
21511
-) echo $tmp/stdin ;;
21513
# Absolute (can't be DOS-style, as IFS=:)
21514
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21515
echo "$as_me: error: cannot find input file: $f" >&2;}
21516
{ (exit 1); exit 1; }; }
21519
if test -f "$f"; then
21522
elif test -f "$srcdir/$f"; then
21527
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21528
echo "$as_me: error: cannot find input file: $f" >&2;}
21529
{ (exit 1); exit 1; }; }
21532
done` || { (exit 1); exit 1; }
21534
cat >>$CONFIG_STATUS <<_ACEOF
21538
cat >>$CONFIG_STATUS <<\_ACEOF
21540
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21541
s,@configure_input@,$configure_input,;t t
21542
s,@srcdir@,$ac_srcdir,;t t
21543
s,@abs_srcdir@,$ac_abs_srcdir,;t t
21544
s,@top_srcdir@,$ac_top_srcdir,;t t
21545
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21546
s,@builddir@,$ac_builddir,;t t
21547
s,@abs_builddir@,$ac_abs_builddir,;t t
21548
s,@top_builddir@,$ac_top_builddir,;t t
21549
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21550
s,@INSTALL@,$ac_INSTALL,;t t
21551
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21553
if test x"$ac_file" != x-; then
21554
mv $tmp/out $ac_file
21562
cat >>$CONFIG_STATUS <<\_ACEOF
21565
# CONFIG_COMMANDS section.
21567
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21568
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21569
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21570
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21571
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21572
X"$ac_dest" : 'X\(//\)[^/]' \| \
21573
X"$ac_dest" : 'X\(//\)$' \| \
21574
X"$ac_dest" : 'X\(/\)' \| \
21575
. : '\(.\)' 2>/dev/null ||
21577
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21578
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21579
/^X\(\/\/\)$/{ s//\1/; q; }
21580
/^X\(\/\).*/{ s//\1/; q; }
21582
{ if $as_mkdir_p; then
21587
while test ! -d "$as_dir"; do
21588
as_dirs="$as_dir $as_dirs"
21589
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21590
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21591
X"$as_dir" : 'X\(//\)[^/]' \| \
21592
X"$as_dir" : 'X\(//\)$' \| \
21593
X"$as_dir" : 'X\(/\)' \| \
21594
. : '\(.\)' 2>/dev/null ||
21596
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21597
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21598
/^X\(\/\/\)$/{ s//\1/; q; }
21599
/^X\(\/\).*/{ s//\1/; q; }
21602
test ! -n "$as_dirs" || mkdir $as_dirs
21603
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21604
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21605
{ (exit 1); exit 1; }; }; }
21609
if test "$ac_dir" != .; then
21610
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21611
# A "../" for each directory in $ac_dir_suffix.
21612
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21614
ac_dir_suffix= ac_top_builddir=
21618
.) # No --srcdir option. We are building in place.
21620
if test -z "$ac_top_builddir"; then
21623
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21625
[\\/]* | ?:[\\/]* ) # Absolute path.
21626
ac_srcdir=$srcdir$ac_dir_suffix;
21627
ac_top_srcdir=$srcdir ;;
21628
*) # Relative path.
21629
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21630
ac_top_srcdir=$ac_top_builddir$srcdir ;;
21633
# Do not use `cd foo && pwd` to compute absolute paths, because
21634
# the directories may not exist.
21636
.) ac_abs_builddir="$ac_dir";;
21639
.) ac_abs_builddir=`pwd`;;
21640
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21641
*) ac_abs_builddir=`pwd`/"$ac_dir";;
21644
case $ac_abs_builddir in
21645
.) ac_abs_top_builddir=${ac_top_builddir}.;;
21647
case ${ac_top_builddir}. in
21648
.) ac_abs_top_builddir=$ac_abs_builddir;;
21649
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21650
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21653
case $ac_abs_builddir in
21654
.) ac_abs_srcdir=$ac_srcdir;;
21657
.) ac_abs_srcdir=$ac_abs_builddir;;
21658
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21659
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21662
case $ac_abs_builddir in
21663
.) ac_abs_top_srcdir=$ac_top_srcdir;;
21665
case $ac_top_srcdir in
21666
.) ac_abs_top_srcdir=$ac_abs_builddir;;
21667
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21668
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21673
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21674
echo "$as_me: executing $ac_dest commands" >&6;}
21676
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21677
# Strip MF so we end up with the name of the file.
21678
mf=`echo "$mf" | sed -e 's/:.*$//'`
21679
# Check whether this is an Automake generated Makefile or not.
21680
# We used to match only the files named `Makefile.in', but
21681
# some people rename them; so instead we look at the file content.
21682
# Grep'ing the first line is not enough: some people post-process
21683
# each Makefile.in and add a new line on top of each file to say so.
21684
# So let's grep whole file.
21685
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21686
dirpart=`(dirname "$mf") 2>/dev/null ||
21687
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21688
X"$mf" : 'X\(//\)[^/]' \| \
21689
X"$mf" : 'X\(//\)$' \| \
21690
X"$mf" : 'X\(/\)' \| \
21691
. : '\(.\)' 2>/dev/null ||
21693
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21694
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21695
/^X\(\/\/\)$/{ s//\1/; q; }
21696
/^X\(\/\).*/{ s//\1/; q; }
21701
# Extract the definition of DEPDIR, am__include, and am__quote
21702
# from the Makefile without running `make'.
21703
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21704
test -z "$DEPDIR" && continue
21705
am__include=`sed -n 's/^am__include = //p' < "$mf"`
21706
test -z "am__include" && continue
21707
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21708
# When using ansi2knr, U may be empty or an underscore; expand it
21709
U=`sed -n 's/^U = //p' < "$mf"`
21710
# Find all dependency output files, they are included files with
21711
# $(DEPDIR) in their names. We invoke sed twice because it is the
21712
# simplest approach to changing $(DEPDIR) to its actual value in the
21714
for file in `sed -n "
21715
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21716
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21717
# Make sure the directory exists.
21718
test -f "$dirpart/$file" && continue
21719
fdir=`(dirname "$file") 2>/dev/null ||
21720
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21721
X"$file" : 'X\(//\)[^/]' \| \
21722
X"$file" : 'X\(//\)$' \| \
21723
X"$file" : 'X\(/\)' \| \
21724
. : '\(.\)' 2>/dev/null ||
21726
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21727
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21728
/^X\(\/\/\)$/{ s//\1/; q; }
21729
/^X\(\/\).*/{ s//\1/; q; }
21731
{ if $as_mkdir_p; then
21732
mkdir -p $dirpart/$fdir
21734
as_dir=$dirpart/$fdir
21736
while test ! -d "$as_dir"; do
21737
as_dirs="$as_dir $as_dirs"
21738
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21739
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21740
X"$as_dir" : 'X\(//\)[^/]' \| \
21741
X"$as_dir" : 'X\(//\)$' \| \
21742
X"$as_dir" : 'X\(/\)' \| \
21743
. : '\(.\)' 2>/dev/null ||
21745
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21746
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21747
/^X\(\/\/\)$/{ s//\1/; q; }
21748
/^X\(\/\).*/{ s//\1/; q; }
21751
test ! -n "$as_dirs" || mkdir $as_dirs
21752
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21753
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21754
{ (exit 1); exit 1; }; }; }
21756
# echo "creating $dirpart/$file"
21757
echo '# dummy' > "$dirpart/$file"
21765
cat >>$CONFIG_STATUS <<\_ACEOF
21767
{ (exit 0); exit 0; }
21769
chmod +x $CONFIG_STATUS
21770
ac_clean_files=$ac_clean_files_save
21773
# configure is writing to config.log, and then calls config.status.
21774
# config.status does its own redirection, appending to config.log.
21775
# Unfortunately, on DOS this fails, as config.log is still kept open
21776
# by configure, so config.status won't be able to write to it; its
21777
# output is simply discarded. So we exec the FD to /dev/null,
21778
# effectively closing config.log, so it can be properly (re)opened and
21779
# appended to by config.status. When coming back to configure, we
21780
# need to make the FD available again.
21781
if test "$no_create" != yes; then
21783
ac_config_status_args=
21784
test "$silent" = yes &&
21785
ac_config_status_args="$ac_config_status_args --quiet"
21787
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21789
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
21790
# would make configure fail if this is the last instruction.
21791
$ac_cs_success || { (exit 1); exit 1; }
21795
echo "CFLAGS=$CFLAGS"