2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59 for espresso 0.99.16.
5
# Report bugs to <https://launchpad.net/distros/ubuntu/+source/espresso/+filebug>.
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='espresso'
425
PACKAGE_TARNAME='espresso'
426
PACKAGE_VERSION='0.99.16'
427
PACKAGE_STRING='espresso 0.99.16'
428
PACKAGE_BUGREPORT='https://launchpad.net/distros/ubuntu/+source/espresso/+filebug'
430
ac_unique_file="src/cut-and-paste/e-map/e-map.c"
431
# Factoring default headers for most tests.
432
ac_includes_default="\
435
# include <sys/types.h>
438
# include <sys/stat.h>
449
# if !STDC_HEADERS && HAVE_MEMORY_H
455
# include <strings.h>
458
# include <inttypes.h>
468
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 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 GLIB_GENMARSHAL PKG_CONFIG GTK_CFLAGS GTK_LIBS ac_pt_PKG_CONFIG ESPRESSO_DEPENDS_CFLAGS ESPRESSO_DEPENDS_LIBS scriptsdir pixmapsdir LIBOBJS LTLIBOBJS'
471
# Initialize some variables set by options.
473
ac_init_version=false
474
# The variables have the same names as the options, with
475
# dashes changed to underlines.
483
program_transform_name=s,x,x,
491
# Installation directory options.
492
# These are left unexpanded so users can "make install exec_prefix=/foo"
493
# and all the variables that are supposed to be based on exec_prefix
494
# by default will actually change.
495
# Use braces instead of parens because sh, perl, etc. also accept them.
496
bindir='${exec_prefix}/bin'
497
sbindir='${exec_prefix}/sbin'
498
libexecdir='${exec_prefix}/libexec'
499
datadir='${prefix}/share'
500
sysconfdir='${prefix}/etc'
501
sharedstatedir='${prefix}/com'
502
localstatedir='${prefix}/var'
503
libdir='${exec_prefix}/lib'
504
includedir='${prefix}/include'
505
oldincludedir='/usr/include'
506
infodir='${prefix}/info'
507
mandir='${prefix}/man'
512
# If the previous option needs an argument, assign it.
513
if test -n "$ac_prev"; then
514
eval "$ac_prev=\$ac_option"
519
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
# Accept the important Cygnus configure options, so we can diagnose typos.
525
-bindir | --bindir | --bindi | --bind | --bin | --bi)
527
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530
-build | --build | --buil | --bui | --bu)
531
ac_prev=build_alias ;;
532
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
533
build_alias=$ac_optarg ;;
535
-cache-file | --cache-file | --cache-fil | --cache-fi \
536
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537
ac_prev=cache_file ;;
538
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540
cache_file=$ac_optarg ;;
543
cache_file=config.cache ;;
545
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549
datadir=$ac_optarg ;;
551
-disable-* | --disable-*)
552
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553
# Reject names that are not valid shell variable names.
554
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
556
{ (exit 1); exit 1; }; }
557
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558
eval "enable_$ac_feature=no" ;;
560
-enable-* | --enable-*)
561
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562
# Reject names that are not valid shell variable names.
563
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
565
{ (exit 1); exit 1; }; }
566
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571
eval "enable_$ac_feature='$ac_optarg'" ;;
573
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575
| --exec | --exe | --ex)
576
ac_prev=exec_prefix ;;
577
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579
| --exec=* | --exe=* | --ex=*)
580
exec_prefix=$ac_optarg ;;
582
-gas | --gas | --ga | --g)
583
# Obsolete; use --with-gas.
586
-help | --help | --hel | --he | -h)
588
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589
ac_init_help=recursive ;;
590
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591
ac_init_help=short ;;
593
-host | --host | --hos | --ho)
594
ac_prev=host_alias ;;
595
-host=* | --host=* | --hos=* | --ho=*)
596
host_alias=$ac_optarg ;;
598
-includedir | --includedir | --includedi | --included | --include \
599
| --includ | --inclu | --incl | --inc)
600
ac_prev=includedir ;;
601
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602
| --includ=* | --inclu=* | --incl=* | --inc=*)
603
includedir=$ac_optarg ;;
605
-infodir | --infodir | --infodi | --infod | --info | --inf)
607
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608
infodir=$ac_optarg ;;
610
-libdir | --libdir | --libdi | --libd)
612
-libdir=* | --libdir=* | --libdi=* | --libd=*)
615
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616
| --libexe | --libex | --libe)
617
ac_prev=libexecdir ;;
618
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619
| --libexe=* | --libex=* | --libe=*)
620
libexecdir=$ac_optarg ;;
622
-localstatedir | --localstatedir | --localstatedi | --localstated \
623
| --localstate | --localstat | --localsta | --localst \
624
| --locals | --local | --loca | --loc | --lo)
625
ac_prev=localstatedir ;;
626
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
628
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629
localstatedir=$ac_optarg ;;
631
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637
# Obsolete; use --without-fp.
640
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
641
| --no-cr | --no-c | -n)
644
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
645
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650
| --oldin | --oldi | --old | --ol | --o)
651
ac_prev=oldincludedir ;;
652
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655
oldincludedir=$ac_optarg ;;
657
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662
-program-prefix | --program-prefix | --program-prefi | --program-pref \
663
| --program-pre | --program-pr | --program-p)
664
ac_prev=program_prefix ;;
665
-program-prefix=* | --program-prefix=* | --program-prefi=* \
666
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667
program_prefix=$ac_optarg ;;
669
-program-suffix | --program-suffix | --program-suffi | --program-suff \
670
| --program-suf | --program-su | --program-s)
671
ac_prev=program_suffix ;;
672
-program-suffix=* | --program-suffix=* | --program-suffi=* \
673
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674
program_suffix=$ac_optarg ;;
676
-program-transform-name | --program-transform-name \
677
| --program-transform-nam | --program-transform-na \
678
| --program-transform-n | --program-transform- \
679
| --program-transform | --program-transfor \
680
| --program-transfo | --program-transf \
681
| --program-trans | --program-tran \
682
| --progr-tra | --program-tr | --program-t)
683
ac_prev=program_transform_name ;;
684
-program-transform-name=* | --program-transform-name=* \
685
| --program-transform-nam=* | --program-transform-na=* \
686
| --program-transform-n=* | --program-transform-=* \
687
| --program-transform=* | --program-transfor=* \
688
| --program-transfo=* | --program-transf=* \
689
| --program-trans=* | --program-tran=* \
690
| --progr-tra=* | --program-tr=* | --program-t=*)
691
program_transform_name=$ac_optarg ;;
693
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
694
| -silent | --silent | --silen | --sile | --sil)
697
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701
sbindir=$ac_optarg ;;
703
-sharedstatedir | --sharedstatedir | --sharedstatedi \
704
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705
| --sharedst | --shareds | --shared | --share | --shar \
707
ac_prev=sharedstatedir ;;
708
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712
sharedstatedir=$ac_optarg ;;
714
-site | --site | --sit)
716
-site=* | --site=* | --sit=*)
719
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725
| --syscon | --sysco | --sysc | --sys | --sy)
726
ac_prev=sysconfdir ;;
727
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729
sysconfdir=$ac_optarg ;;
731
-target | --target | --targe | --targ | --tar | --ta | --t)
732
ac_prev=target_alias ;;
733
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734
target_alias=$ac_optarg ;;
736
-v | -verbose | --verbose | --verbos | --verbo | --verb)
739
-version | --version | --versio | --versi | --vers | -V)
743
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744
# Reject names that are not valid shell variable names.
745
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746
{ echo "$as_me: error: invalid package name: $ac_package" >&2
747
{ (exit 1); exit 1; }; }
748
ac_package=`echo $ac_package| sed 's/-/_/g'`
750
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753
eval "with_$ac_package='$ac_optarg'" ;;
755
-without-* | --without-*)
756
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757
# Reject names that are not valid shell variable names.
758
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759
{ echo "$as_me: error: invalid package name: $ac_package" >&2
760
{ (exit 1); exit 1; }; }
761
ac_package=`echo $ac_package | sed 's/-/_/g'`
762
eval "with_$ac_package=no" ;;
765
# Obsolete; use --with-x.
768
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769
| --x-incl | --x-inc | --x-in | --x-i)
770
ac_prev=x_includes ;;
771
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773
x_includes=$ac_optarg ;;
775
-x-libraries | --x-libraries | --x-librarie | --x-librari \
776
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777
ac_prev=x_libraries ;;
778
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780
x_libraries=$ac_optarg ;;
782
-*) { echo "$as_me: error: unrecognized option: $ac_option
783
Try \`$0 --help' for more information." >&2
784
{ (exit 1); exit 1; }; }
788
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789
# Reject names that are not valid shell variable names.
790
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792
{ (exit 1); exit 1; }; }
793
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794
eval "$ac_envvar='$ac_optarg'"
798
# FIXME: should be removed in autoconf 3.0.
799
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808
if test -n "$ac_prev"; then
809
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810
{ echo "$as_me: error: missing argument to $ac_option" >&2
811
{ (exit 1); exit 1; }; }
814
# Be sure to have absolute paths.
815
for ac_var in exec_prefix prefix
817
eval ac_val=$`echo $ac_var`
819
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821
{ (exit 1); exit 1; }; };;
825
# Be sure to have absolute paths.
826
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827
localstatedir libdir includedir oldincludedir infodir mandir
829
eval ac_val=$`echo $ac_var`
831
[\\/$]* | ?:[\\/]* ) ;;
832
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833
{ (exit 1); exit 1; }; };;
837
# There might be people who depend on the old broken behavior: `$host'
838
# used to hold the argument of --host etc.
839
# FIXME: To remove some day.
844
# FIXME: To remove some day.
845
if test "x$host_alias" != x; then
846
if test "x$build_alias" = x; then
847
cross_compiling=maybe
848
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849
If a cross compiler is detected then cross compile mode will be used." >&2
850
elif test "x$build_alias" != "x$host_alias"; then
856
test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
test "$silent" = yes && exec 6>/dev/null
861
# Find the source files, if location was not specified.
862
if test -z "$srcdir"; then
863
ac_srcdir_defaulted=yes
864
# Try the directory containing this script, then its parent.
865
ac_confdir=`(dirname "$0") 2>/dev/null ||
866
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867
X"$0" : 'X\(//\)[^/]' \| \
868
X"$0" : 'X\(//\)$' \| \
869
X"$0" : 'X\(/\)' \| \
870
. : '\(.\)' 2>/dev/null ||
872
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
874
/^X\(\/\/\)$/{ s//\1/; q; }
875
/^X\(\/\).*/{ s//\1/; q; }
878
if test ! -r $srcdir/$ac_unique_file; then
882
ac_srcdir_defaulted=no
884
if test ! -r $srcdir/$ac_unique_file; then
885
if test "$ac_srcdir_defaulted" = yes; then
886
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887
{ (exit 1); exit 1; }; }
889
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890
{ (exit 1); exit 1; }; }
893
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895
{ (exit 1); exit 1; }; }
896
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897
ac_env_build_alias_set=${build_alias+set}
898
ac_env_build_alias_value=$build_alias
899
ac_cv_env_build_alias_set=${build_alias+set}
900
ac_cv_env_build_alias_value=$build_alias
901
ac_env_host_alias_set=${host_alias+set}
902
ac_env_host_alias_value=$host_alias
903
ac_cv_env_host_alias_set=${host_alias+set}
904
ac_cv_env_host_alias_value=$host_alias
905
ac_env_target_alias_set=${target_alias+set}
906
ac_env_target_alias_value=$target_alias
907
ac_cv_env_target_alias_set=${target_alias+set}
908
ac_cv_env_target_alias_value=$target_alias
909
ac_env_CC_set=${CC+set}
911
ac_cv_env_CC_set=${CC+set}
912
ac_cv_env_CC_value=$CC
913
ac_env_CFLAGS_set=${CFLAGS+set}
914
ac_env_CFLAGS_value=$CFLAGS
915
ac_cv_env_CFLAGS_set=${CFLAGS+set}
916
ac_cv_env_CFLAGS_value=$CFLAGS
917
ac_env_LDFLAGS_set=${LDFLAGS+set}
918
ac_env_LDFLAGS_value=$LDFLAGS
919
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920
ac_cv_env_LDFLAGS_value=$LDFLAGS
921
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922
ac_env_CPPFLAGS_value=$CPPFLAGS
923
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925
ac_env_CPP_set=${CPP+set}
926
ac_env_CPP_value=$CPP
927
ac_cv_env_CPP_set=${CPP+set}
928
ac_cv_env_CPP_value=$CPP
929
ac_env_CXX_set=${CXX+set}
930
ac_env_CXX_value=$CXX
931
ac_cv_env_CXX_set=${CXX+set}
932
ac_cv_env_CXX_value=$CXX
933
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934
ac_env_CXXFLAGS_value=$CXXFLAGS
935
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937
ac_env_CXXCPP_set=${CXXCPP+set}
938
ac_env_CXXCPP_value=$CXXCPP
939
ac_cv_env_CXXCPP_set=${CXXCPP+set}
940
ac_cv_env_CXXCPP_value=$CXXCPP
941
ac_env_F77_set=${F77+set}
942
ac_env_F77_value=$F77
943
ac_cv_env_F77_set=${F77+set}
944
ac_cv_env_F77_value=$F77
945
ac_env_FFLAGS_set=${FFLAGS+set}
946
ac_env_FFLAGS_value=$FFLAGS
947
ac_cv_env_FFLAGS_set=${FFLAGS+set}
948
ac_cv_env_FFLAGS_value=$FFLAGS
949
ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
950
ac_env_PKG_CONFIG_value=$PKG_CONFIG
951
ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
952
ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
953
ac_env_ESPRESSO_DEPENDS_CFLAGS_set=${ESPRESSO_DEPENDS_CFLAGS+set}
954
ac_env_ESPRESSO_DEPENDS_CFLAGS_value=$ESPRESSO_DEPENDS_CFLAGS
955
ac_cv_env_ESPRESSO_DEPENDS_CFLAGS_set=${ESPRESSO_DEPENDS_CFLAGS+set}
956
ac_cv_env_ESPRESSO_DEPENDS_CFLAGS_value=$ESPRESSO_DEPENDS_CFLAGS
957
ac_env_ESPRESSO_DEPENDS_LIBS_set=${ESPRESSO_DEPENDS_LIBS+set}
958
ac_env_ESPRESSO_DEPENDS_LIBS_value=$ESPRESSO_DEPENDS_LIBS
959
ac_cv_env_ESPRESSO_DEPENDS_LIBS_set=${ESPRESSO_DEPENDS_LIBS+set}
960
ac_cv_env_ESPRESSO_DEPENDS_LIBS_value=$ESPRESSO_DEPENDS_LIBS
963
# Report the --help message.
965
if test "$ac_init_help" = "long"; then
966
# Omit some internal or obsolete options to make the list less imposing.
967
# This message is too long to be a string in the A/UX 3.1 sh.
969
\`configure' configures espresso 0.99.16 to adapt to many kinds of systems.
971
Usage: $0 [OPTION]... [VAR=VALUE]...
973
To assign environment variables (e.g., CC, CFLAGS...), specify them as
974
VAR=VALUE. See below for descriptions of some of the useful variables.
976
Defaults for the options are specified in brackets.
979
-h, --help display this help and exit
980
--help=short display options specific to this package
981
--help=recursive display the short help of all the included packages
982
-V, --version display version information and exit
983
-q, --quiet, --silent do not print \`checking...' messages
984
--cache-file=FILE cache test results in FILE [disabled]
985
-C, --config-cache alias for \`--cache-file=config.cache'
986
-n, --no-create do not create output files
987
--srcdir=DIR find the sources in DIR [configure dir or \`..']
992
Installation directories:
993
--prefix=PREFIX install architecture-independent files in PREFIX
995
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
998
By default, \`make install' will install all the files in
999
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1000
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1001
for instance \`--prefix=\$HOME'.
1003
For better control, use the options below.
1005
Fine tuning of the installation directories:
1006
--bindir=DIR user executables [EPREFIX/bin]
1007
--sbindir=DIR system admin executables [EPREFIX/sbin]
1008
--libexecdir=DIR program executables [EPREFIX/libexec]
1009
--datadir=DIR read-only architecture-independent data [PREFIX/share]
1010
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1011
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1012
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1013
--libdir=DIR object code libraries [EPREFIX/lib]
1014
--includedir=DIR C header files [PREFIX/include]
1015
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1016
--infodir=DIR info documentation [PREFIX/info]
1017
--mandir=DIR man documentation [PREFIX/man]
1023
--program-prefix=PREFIX prepend PREFIX to installed program names
1024
--program-suffix=SUFFIX append SUFFIX to installed program names
1025
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1028
--build=BUILD configure for building on BUILD [guessed]
1029
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1033
if test -n "$ac_init_help"; then
1034
case $ac_init_help in
1035
short | recursive ) echo "Configuration of espresso 0.99.16:";;
1040
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1041
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1042
--enable-maintainer-mode enable make rules and dependencies not useful
1043
(and sometimes confusing) to the casual installer
1044
--enable-shared[=PKGS]
1045
build shared libraries [default=yes]
1046
--enable-static[=PKGS]
1047
build static libraries [default=yes]
1048
--enable-fast-install[=PKGS]
1049
optimize for fast installation [default=yes]
1050
--disable-dependency-tracking speeds up one-time build
1051
--enable-dependency-tracking do not reject slow dependency extractors
1052
--disable-libtool-lock avoid locking (might break parallel builds)
1053
--disable-gtktest do not try to compile and run a test GTK+ program
1056
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1057
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1058
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1059
--with-pic try to use only PIC/non-PIC objects [default=use
1062
include additional configurations [automatic]
1064
Some influential environment variables:
1065
CC C compiler command
1066
CFLAGS C compiler flags
1067
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1068
nonstandard directory <lib dir>
1069
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1070
headers in a nonstandard directory <include dir>
1072
CXX C++ compiler command
1073
CXXFLAGS C++ compiler flags
1074
CXXCPP C++ preprocessor
1075
F77 Fortran 77 compiler command
1076
FFLAGS Fortran 77 compiler flags
1077
PKG_CONFIG path to pkg-config utility
1078
ESPRESSO_DEPENDS_CFLAGS
1079
C compiler flags for ESPRESSO_DEPENDS, overriding pkg-config
1080
ESPRESSO_DEPENDS_LIBS
1081
linker flags for ESPRESSO_DEPENDS, overriding pkg-config
1083
Use these variables to override the choices made by `configure' or to help
1084
it to find libraries and programs with nonstandard names/locations.
1086
Report bugs to <https://launchpad.net/distros/ubuntu/+source/espresso/+filebug>.
1090
if test "$ac_init_help" = "recursive"; then
1091
# If there are subdirs, report their specific --help.
1093
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1094
test -d $ac_dir || continue
1097
if test "$ac_dir" != .; then
1098
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1099
# A "../" for each directory in $ac_dir_suffix.
1100
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1102
ac_dir_suffix= ac_top_builddir=
1106
.) # No --srcdir option. We are building in place.
1108
if test -z "$ac_top_builddir"; then
1111
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1113
[\\/]* | ?:[\\/]* ) # Absolute path.
1114
ac_srcdir=$srcdir$ac_dir_suffix;
1115
ac_top_srcdir=$srcdir ;;
1117
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1118
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1121
# Do not use `cd foo && pwd` to compute absolute paths, because
1122
# the directories may not exist.
1124
.) ac_abs_builddir="$ac_dir";;
1127
.) ac_abs_builddir=`pwd`;;
1128
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1129
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1132
case $ac_abs_builddir in
1133
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1135
case ${ac_top_builddir}. in
1136
.) ac_abs_top_builddir=$ac_abs_builddir;;
1137
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1138
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1141
case $ac_abs_builddir in
1142
.) ac_abs_srcdir=$ac_srcdir;;
1145
.) ac_abs_srcdir=$ac_abs_builddir;;
1146
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1147
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1150
case $ac_abs_builddir in
1151
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1153
case $ac_top_srcdir in
1154
.) ac_abs_top_srcdir=$ac_abs_builddir;;
1155
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1156
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1161
# Check for guested configure; otherwise get Cygnus style configure.
1162
if test -f $ac_srcdir/configure.gnu; then
1164
$SHELL $ac_srcdir/configure.gnu --help=recursive
1165
elif test -f $ac_srcdir/configure; then
1167
$SHELL $ac_srcdir/configure --help=recursive
1168
elif test -f $ac_srcdir/configure.ac ||
1169
test -f $ac_srcdir/configure.in; then
1171
$ac_configure --help
1173
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1179
test -n "$ac_init_help" && exit 0
1180
if $ac_init_version; then
1182
espresso configure 0.99.16
1183
generated by GNU Autoconf 2.59
1185
Copyright (C) 2003 Free Software Foundation, Inc.
1186
This configure script is free software; the Free Software Foundation
1187
gives unlimited permission to copy, distribute and modify it.
1193
This file contains any messages produced by compilers while
1194
running configure, to aid debugging if configure makes a mistake.
1196
It was created by espresso $as_me 0.99.16, which was
1197
generated by GNU Autoconf 2.59. Invocation command line was
1208
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1209
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1210
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1211
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1212
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1214
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1215
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1217
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1218
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1219
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1220
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1221
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1222
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1223
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1227
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1231
test -z "$as_dir" && as_dir=.
1232
echo "PATH: $as_dir"
1247
# Keep a trace of the command line.
1248
# Strip out --no-create and --no-recursion so they do not pile up.
1249
# Strip out --silent because we don't want to record it for future runs.
1250
# Also quote any args containing shell meta-characters.
1251
# Make two passes to allow for proper duplicate-argument suppression.
1256
ac_must_keep_next=false
1262
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1263
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1264
| -silent | --silent | --silen | --sile | --sil)
1266
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1267
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1270
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1272
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1273
if test $ac_must_keep_next = true; then
1274
ac_must_keep_next=false # Got value, back to normal.
1277
*=* | --config-cache | -C | -disable-* | --disable-* \
1278
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1279
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1280
| -with-* | --with-* | -without-* | --without-* | --x)
1281
case "$ac_configure_args0 " in
1282
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1285
-* ) ac_must_keep_next=true ;;
1288
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1289
# Get rid of the leading space.
1295
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1296
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1298
# When interrupted or exit'd, cleanup temporary files, and complete
1299
# config.log. We remove comments because anyway the quotes in there
1300
# would cause problems or look ugly.
1301
# WARNING: Be sure not to use single quotes in there, as some shells,
1302
# such as our DU 5.0 friend, will then `close' the trap.
1303
trap 'exit_status=$?
1304
# Save into config.log some information that might help in debugging.
1309
## ---------------- ##
1310
## Cache variables. ##
1311
## ---------------- ##
1314
# The following way of writing the cache mishandles newlines in values,
1317
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1320
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1321
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1325
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1332
## ----------------- ##
1333
## Output variables. ##
1334
## ----------------- ##
1337
for ac_var in $ac_subst_vars
1339
eval ac_val=$`echo $ac_var`
1340
echo "$ac_var='"'"'$ac_val'"'"'"
1344
if test -n "$ac_subst_files"; then
1351
for ac_var in $ac_subst_files
1353
eval ac_val=$`echo $ac_var`
1354
echo "$ac_var='"'"'$ac_val'"'"'"
1359
if test -s confdefs.h; then
1366
sed "/^$/d" confdefs.h | sort
1369
test "$ac_signal" != 0 &&
1370
echo "$as_me: caught signal $ac_signal"
1371
echo "$as_me: exit $exit_status"
1373
rm -f core *.core &&
1374
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1377
for ac_signal in 1 2 13 15; do
1378
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1382
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1383
rm -rf conftest* confdefs.h
1384
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1387
# Predefined preprocessor variables.
1389
cat >>confdefs.h <<_ACEOF
1390
#define PACKAGE_NAME "$PACKAGE_NAME"
1394
cat >>confdefs.h <<_ACEOF
1395
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1399
cat >>confdefs.h <<_ACEOF
1400
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1404
cat >>confdefs.h <<_ACEOF
1405
#define PACKAGE_STRING "$PACKAGE_STRING"
1409
cat >>confdefs.h <<_ACEOF
1410
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1414
# Let the site file select an alternate cache file if it wants to.
1415
# Prefer explicitly selected file to automatically selected ones.
1416
if test -z "$CONFIG_SITE"; then
1417
if test "x$prefix" != xNONE; then
1418
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1420
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1423
for ac_site_file in $CONFIG_SITE; do
1424
if test -r "$ac_site_file"; then
1425
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1426
echo "$as_me: loading site script $ac_site_file" >&6;}
1427
sed 's/^/| /' "$ac_site_file" >&5
1432
if test -r "$cache_file"; then
1433
# Some versions of bash will fail to source /dev/null (special
1434
# files actually), so we avoid doing that.
1435
if test -f "$cache_file"; then
1436
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1437
echo "$as_me: loading cache $cache_file" >&6;}
1439
[\\/]* | ?:[\\/]* ) . $cache_file;;
1440
*) . ./$cache_file;;
1444
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1445
echo "$as_me: creating cache $cache_file" >&6;}
1449
# Check that the precious variables saved in the cache have kept the same
1451
ac_cache_corrupted=false
1452
for ac_var in `(set) 2>&1 |
1453
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1454
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1455
eval ac_new_set=\$ac_env_${ac_var}_set
1456
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1457
eval ac_new_val="\$ac_env_${ac_var}_value"
1458
case $ac_old_set,$ac_new_set in
1460
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1461
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1462
ac_cache_corrupted=: ;;
1464
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1465
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1466
ac_cache_corrupted=: ;;
1469
if test "x$ac_old_val" != "x$ac_new_val"; then
1470
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1471
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1472
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1473
echo "$as_me: former value: $ac_old_val" >&2;}
1474
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1475
echo "$as_me: current value: $ac_new_val" >&2;}
1476
ac_cache_corrupted=:
1479
# Pass precious variables to config.status.
1480
if test "$ac_new_set" = set; then
1482
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1483
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1484
*) ac_arg=$ac_var=$ac_new_val ;;
1486
case " $ac_configure_args " in
1487
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1488
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1492
if $ac_cache_corrupted; then
1493
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1494
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1495
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1496
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1497
{ (exit 1); exit 1; }; }
1501
ac_cpp='$CPP $CPPFLAGS'
1502
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1503
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1504
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1533
am__api_version="1.8"
1535
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1536
if test -f $ac_dir/install-sh; then
1538
ac_install_sh="$ac_aux_dir/install-sh -c"
1540
elif test -f $ac_dir/install.sh; then
1542
ac_install_sh="$ac_aux_dir/install.sh -c"
1544
elif test -f $ac_dir/shtool; then
1546
ac_install_sh="$ac_aux_dir/shtool install -c"
1550
if test -z "$ac_aux_dir"; then
1551
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1552
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1553
{ (exit 1); exit 1; }; }
1555
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1556
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1557
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1559
# Find a good install program. We prefer a C program (faster),
1560
# so one script is as good as another. But avoid the broken or
1561
# incompatible versions:
1562
# SysV /etc/install, /usr/sbin/install
1563
# SunOS /usr/etc/install
1564
# IRIX /sbin/install
1566
# AmigaOS /C/install, which installs bootblocks on floppy discs
1567
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1568
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1569
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1570
# OS/2's system install, which has a completely different semantic
1571
# ./install, which can be erroneously created by make from ./install.sh.
1572
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1573
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1574
if test -z "$INSTALL"; then
1575
if test "${ac_cv_path_install+set}" = set; then
1576
echo $ECHO_N "(cached) $ECHO_C" >&6
1578
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582
test -z "$as_dir" && as_dir=.
1583
# Account for people who put trailing slashes in PATH elements.
1585
./ | .// | /cC/* | \
1586
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1587
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1590
# OSF1 and SCO ODT 3.0 have their own names for install.
1591
# Don't use installbsd from OSF since it installs stuff as root
1593
for ac_prog in ginstall scoinst install; do
1594
for ac_exec_ext in '' $ac_executable_extensions; do
1595
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1596
if test $ac_prog = install &&
1597
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1598
# AIX install. It has an incompatible calling convention.
1600
elif test $ac_prog = install &&
1601
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1602
# program-specific install script used by HP pwplus--don't use.
1605
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1617
if test "${ac_cv_path_install+set}" = set; then
1618
INSTALL=$ac_cv_path_install
1620
# As a last resort, use the slow shell script. We don't cache a
1621
# path for INSTALL within a source directory, because that will
1622
# break other packages using the cache if that directory is
1623
# removed, or if the path is relative.
1624
INSTALL=$ac_install_sh
1627
echo "$as_me:$LINENO: result: $INSTALL" >&5
1628
echo "${ECHO_T}$INSTALL" >&6
1630
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1631
# It thinks the first close brace ends the variable substitution.
1632
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1634
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1636
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1638
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1639
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1642
echo timestamp > conftest.file
1643
# Do `set' in a subshell so we don't clobber the current shell's
1644
# arguments. Must try -L first in case configure is actually a
1645
# symlink; some systems play weird games with the mod time of symlinks
1646
# (eg FreeBSD returns the mod time of the symlink's containing
1649
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1650
if test "$*" = "X"; then
1652
set X `ls -t $srcdir/configure conftest.file`
1655
if test "$*" != "X $srcdir/configure conftest.file" \
1656
&& test "$*" != "X conftest.file $srcdir/configure"; then
1658
# If neither matched, then we have a broken ls. This can happen
1659
# if, for instance, CONFIG_SHELL is bash and it inherits a
1660
# broken ls alias from the environment. This has actually
1661
# happened. Such a system could not be considered "sane".
1662
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1663
alias in your environment" >&5
1664
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1665
alias in your environment" >&2;}
1666
{ (exit 1); exit 1; }; }
1669
test "$2" = conftest.file
1675
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1676
Check your system clock" >&5
1677
echo "$as_me: error: newly created file is older than distributed files!
1678
Check your system clock" >&2;}
1679
{ (exit 1); exit 1; }; }
1681
echo "$as_me:$LINENO: result: yes" >&5
1682
echo "${ECHO_T}yes" >&6
1683
test "$program_prefix" != NONE &&
1684
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1685
# Use a double $ so make ignores it.
1686
test "$program_suffix" != NONE &&
1687
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1688
# Double any \ or $. echo might interpret backslashes.
1689
# By default was `s,x,x', remove it if useless.
1690
cat <<\_ACEOF >conftest.sed
1691
s/[\\$]/&&/g;s/;s,x,x,$//
1693
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1696
# expand $ac_aux_dir to an absolute path
1697
am_aux_dir=`cd $ac_aux_dir && pwd`
1699
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1700
# Use eval to expand $SHELL
1701
if eval "$MISSING --run true"; then
1702
am_missing_run="$MISSING --run "
1705
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1706
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1709
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1710
# Keeping the `.' argument allows $(mkdir_p) to be used without
1711
# argument. Indeed, we sometimes output rules like
1712
# $(mkdir_p) $(somedir)
1713
# where $(somedir) is conditionally defined.
1714
# (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1715
# expensive solution, as it forces Make to start a sub-shell.)
1716
mkdir_p='mkdir -p -- .'
1718
# On NextStep and OpenStep, the `mkdir' command does not
1719
# recognize any option. It will interpret all options as
1720
# directories to create, and then abort because `.' already
1722
for d in ./-p ./--version;
1724
test -d $d && rmdir $d
1726
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1727
if test -f "$ac_aux_dir/mkinstalldirs"; then
1728
mkdir_p='$(mkinstalldirs)'
1730
mkdir_p='$(install_sh) -d'
1734
for ac_prog in gawk mawk nawk awk
1736
# Extract the first word of "$ac_prog", so it can be a program name with args.
1737
set dummy $ac_prog; ac_word=$2
1738
echo "$as_me:$LINENO: checking for $ac_word" >&5
1739
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1740
if test "${ac_cv_prog_AWK+set}" = set; then
1741
echo $ECHO_N "(cached) $ECHO_C" >&6
1743
if test -n "$AWK"; then
1744
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1746
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1750
test -z "$as_dir" && as_dir=.
1751
for ac_exec_ext in '' $ac_executable_extensions; do
1752
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1753
ac_cv_prog_AWK="$ac_prog"
1754
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763
if test -n "$AWK"; then
1764
echo "$as_me:$LINENO: result: $AWK" >&5
1765
echo "${ECHO_T}$AWK" >&6
1767
echo "$as_me:$LINENO: result: no" >&5
1768
echo "${ECHO_T}no" >&6
1771
test -n "$AWK" && break
1774
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1775
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1776
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1777
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1778
echo $ECHO_N "(cached) $ECHO_C" >&6
1780
cat >conftest.make <<\_ACEOF
1782
@echo 'ac_maketemp="$(MAKE)"'
1784
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1785
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1786
if test -n "$ac_maketemp"; then
1787
eval ac_cv_prog_make_${ac_make}_set=yes
1789
eval ac_cv_prog_make_${ac_make}_set=no
1793
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1794
echo "$as_me:$LINENO: result: yes" >&5
1795
echo "${ECHO_T}yes" >&6
1798
echo "$as_me:$LINENO: result: no" >&5
1799
echo "${ECHO_T}no" >&6
1800
SET_MAKE="MAKE=${MAKE-make}"
1803
rm -rf .tst 2>/dev/null
1804
mkdir .tst 2>/dev/null
1805
if test -d .tst; then
1810
rmdir .tst 2>/dev/null
1812
# test to see if srcdir already configured
1813
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1814
test -f $srcdir/config.status; then
1815
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1816
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1817
{ (exit 1); exit 1; }; }
1820
# test whether we have cygpath
1821
if test -z "$CYGPATH_W"; then
1822
if (cygpath --version) >/dev/null 2>/dev/null; then
1823
CYGPATH_W='cygpath -w'
1830
# Define the identity of the package.
1835
cat >>confdefs.h <<_ACEOF
1836
#define PACKAGE "$PACKAGE"
1840
cat >>confdefs.h <<_ACEOF
1841
#define VERSION "$VERSION"
1844
# Some tools Automake needs.
1846
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1849
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1852
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1855
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1858
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1861
AMTAR=${AMTAR-"${am_missing_run}tar"}
1863
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1865
# Installed binaries are usually stripped using `strip' when the user
1866
# run `make install-strip'. However `strip' might not be the right
1867
# tool to use in cross-compilation environments, therefore Automake
1868
# will honor the `STRIP' environment variable to overrule this program.
1869
if test "$cross_compiling" != no; then
1870
if test -n "$ac_tool_prefix"; then
1871
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1872
set dummy ${ac_tool_prefix}strip; ac_word=$2
1873
echo "$as_me:$LINENO: checking for $ac_word" >&5
1874
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875
if test "${ac_cv_prog_STRIP+set}" = set; then
1876
echo $ECHO_N "(cached) $ECHO_C" >&6
1878
if test -n "$STRIP"; then
1879
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1881
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885
test -z "$as_dir" && as_dir=.
1886
for ac_exec_ext in '' $ac_executable_extensions; do
1887
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1889
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897
STRIP=$ac_cv_prog_STRIP
1898
if test -n "$STRIP"; then
1899
echo "$as_me:$LINENO: result: $STRIP" >&5
1900
echo "${ECHO_T}$STRIP" >&6
1902
echo "$as_me:$LINENO: result: no" >&5
1903
echo "${ECHO_T}no" >&6
1907
if test -z "$ac_cv_prog_STRIP"; then
1909
# Extract the first word of "strip", so it can be a program name with args.
1910
set dummy strip; ac_word=$2
1911
echo "$as_me:$LINENO: checking for $ac_word" >&5
1912
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1914
echo $ECHO_N "(cached) $ECHO_C" >&6
1916
if test -n "$ac_ct_STRIP"; then
1917
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1919
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923
test -z "$as_dir" && as_dir=.
1924
for ac_exec_ext in '' $ac_executable_extensions; do
1925
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926
ac_cv_prog_ac_ct_STRIP="strip"
1927
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1936
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1937
if test -n "$ac_ct_STRIP"; then
1938
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1939
echo "${ECHO_T}$ac_ct_STRIP" >&6
1941
echo "$as_me:$LINENO: result: no" >&5
1942
echo "${ECHO_T}no" >&6
1947
STRIP="$ac_cv_prog_STRIP"
1951
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1953
# We need awk for the "check" target. The system "awk" is bad on
1959
ac_config_headers="$ac_config_headers config.h"
1962
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1963
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1964
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1965
if test "${enable_maintainer_mode+set}" = set; then
1966
enableval="$enable_maintainer_mode"
1967
USE_MAINTAINER_MODE=$enableval
1969
USE_MAINTAINER_MODE=no
1971
echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1972
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1975
if test $USE_MAINTAINER_MODE = yes; then
1976
MAINTAINER_MODE_TRUE=
1977
MAINTAINER_MODE_FALSE='#'
1979
MAINTAINER_MODE_TRUE='#'
1980
MAINTAINER_MODE_FALSE=
1983
MAINT=$MAINTAINER_MODE_TRUE
1987
# Check whether --enable-shared or --disable-shared was given.
1988
if test "${enable_shared+set}" = set; then
1989
enableval="$enable_shared"
1990
p=${PACKAGE-default}
1992
yes) enable_shared=yes ;;
1993
no) enable_shared=no ;;
1996
# Look at the argument we got. We use all the common list separators.
1997
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1998
for pkg in $enableval; do
2000
if test "X$pkg" = "X$p"; then
2011
# Check whether --enable-static or --disable-static was given.
2012
if test "${enable_static+set}" = set; then
2013
enableval="$enable_static"
2014
p=${PACKAGE-default}
2016
yes) enable_static=yes ;;
2017
no) enable_static=no ;;
2020
# Look at the argument we got. We use all the common list separators.
2021
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2022
for pkg in $enableval; do
2024
if test "X$pkg" = "X$p"; then
2035
# Check whether --enable-fast-install or --disable-fast-install was given.
2036
if test "${enable_fast_install+set}" = set; then
2037
enableval="$enable_fast_install"
2038
p=${PACKAGE-default}
2040
yes) enable_fast_install=yes ;;
2041
no) enable_fast_install=no ;;
2043
enable_fast_install=no
2044
# Look at the argument we got. We use all the common list separators.
2045
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2046
for pkg in $enableval; do
2048
if test "X$pkg" = "X$p"; then
2049
enable_fast_install=yes
2056
enable_fast_install=yes
2059
# Make sure we can run config.sub.
2060
$ac_config_sub sun4 >/dev/null 2>&1 ||
2061
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2062
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2063
{ (exit 1); exit 1; }; }
2065
echo "$as_me:$LINENO: checking build system type" >&5
2066
echo $ECHO_N "checking build system type... $ECHO_C" >&6
2067
if test "${ac_cv_build+set}" = set; then
2068
echo $ECHO_N "(cached) $ECHO_C" >&6
2070
ac_cv_build_alias=$build_alias
2071
test -z "$ac_cv_build_alias" &&
2072
ac_cv_build_alias=`$ac_config_guess`
2073
test -z "$ac_cv_build_alias" &&
2074
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2075
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2076
{ (exit 1); exit 1; }; }
2077
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2078
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2079
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2080
{ (exit 1); exit 1; }; }
2083
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2084
echo "${ECHO_T}$ac_cv_build" >&6
2086
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2087
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2088
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2091
echo "$as_me:$LINENO: checking host system type" >&5
2092
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2093
if test "${ac_cv_host+set}" = set; then
2094
echo $ECHO_N "(cached) $ECHO_C" >&6
2096
ac_cv_host_alias=$host_alias
2097
test -z "$ac_cv_host_alias" &&
2098
ac_cv_host_alias=$ac_cv_build_alias
2099
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2100
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2101
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2102
{ (exit 1); exit 1; }; }
2105
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2106
echo "${ECHO_T}$ac_cv_host" >&6
2108
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2109
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2110
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2113
DEPDIR="${am__leading_dot}deps"
2115
ac_config_commands="$ac_config_commands depfiles"
2118
am_make=${MAKE-make}
2119
cat > confinc << 'END'
2124
# If we don't find an include directive, just comment out the code.
2125
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2126
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2130
# First try GNU make style include.
2131
echo "include confinc" > confmf
2132
# We grep out `Entering directory' and `Leaving directory'
2133
# messages which can occur if `w' ends up in MAKEFLAGS.
2134
# In particular we don't look at `^make:' because GNU make might
2135
# be invoked under some other name (usually "gmake"), in which
2136
# case it prints its new name instead of `make'.
2137
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2142
# Now try BSD make style include.
2143
if test "$am__include" = "#"; then
2144
echo '.include "confinc"' > confmf
2145
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2146
am__include=.include
2153
echo "$as_me:$LINENO: result: $_am_result" >&5
2154
echo "${ECHO_T}$_am_result" >&6
2155
rm -f confinc confmf
2157
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2158
if test "${enable_dependency_tracking+set}" = set; then
2159
enableval="$enable_dependency_tracking"
2162
if test "x$enable_dependency_tracking" != xno; then
2163
am_depcomp="$ac_aux_dir/depcomp"
2168
if test "x$enable_dependency_tracking" != xno; then
2179
ac_cpp='$CPP $CPPFLAGS'
2180
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2181
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2182
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2183
if test -n "$ac_tool_prefix"; then
2184
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2185
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2186
echo "$as_me:$LINENO: checking for $ac_word" >&5
2187
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2188
if test "${ac_cv_prog_CC+set}" = set; then
2189
echo $ECHO_N "(cached) $ECHO_C" >&6
2191
if test -n "$CC"; then
2192
ac_cv_prog_CC="$CC" # Let the user override the test.
2194
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198
test -z "$as_dir" && as_dir=.
2199
for ac_exec_ext in '' $ac_executable_extensions; do
2200
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2201
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2202
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2211
if test -n "$CC"; then
2212
echo "$as_me:$LINENO: result: $CC" >&5
2213
echo "${ECHO_T}$CC" >&6
2215
echo "$as_me:$LINENO: result: no" >&5
2216
echo "${ECHO_T}no" >&6
2220
if test -z "$ac_cv_prog_CC"; then
2222
# Extract the first word of "gcc", so it can be a program name with args.
2223
set dummy gcc; ac_word=$2
2224
echo "$as_me:$LINENO: checking for $ac_word" >&5
2225
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2226
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2227
echo $ECHO_N "(cached) $ECHO_C" >&6
2229
if test -n "$ac_ct_CC"; then
2230
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2232
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236
test -z "$as_dir" && as_dir=.
2237
for ac_exec_ext in '' $ac_executable_extensions; do
2238
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2239
ac_cv_prog_ac_ct_CC="gcc"
2240
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2249
if test -n "$ac_ct_CC"; then
2250
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2251
echo "${ECHO_T}$ac_ct_CC" >&6
2253
echo "$as_me:$LINENO: result: no" >&5
2254
echo "${ECHO_T}no" >&6
2262
if test -z "$CC"; then
2263
if test -n "$ac_tool_prefix"; then
2264
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2265
set dummy ${ac_tool_prefix}cc; ac_word=$2
2266
echo "$as_me:$LINENO: checking for $ac_word" >&5
2267
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2268
if test "${ac_cv_prog_CC+set}" = set; then
2269
echo $ECHO_N "(cached) $ECHO_C" >&6
2271
if test -n "$CC"; then
2272
ac_cv_prog_CC="$CC" # Let the user override the test.
2274
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278
test -z "$as_dir" && as_dir=.
2279
for ac_exec_ext in '' $ac_executable_extensions; do
2280
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2281
ac_cv_prog_CC="${ac_tool_prefix}cc"
2282
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291
if test -n "$CC"; then
2292
echo "$as_me:$LINENO: result: $CC" >&5
2293
echo "${ECHO_T}$CC" >&6
2295
echo "$as_me:$LINENO: result: no" >&5
2296
echo "${ECHO_T}no" >&6
2300
if test -z "$ac_cv_prog_CC"; then
2302
# Extract the first word of "cc", so it can be a program name with args.
2303
set dummy cc; ac_word=$2
2304
echo "$as_me:$LINENO: checking for $ac_word" >&5
2305
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2306
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2307
echo $ECHO_N "(cached) $ECHO_C" >&6
2309
if test -n "$ac_ct_CC"; then
2310
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2312
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316
test -z "$as_dir" && as_dir=.
2317
for ac_exec_ext in '' $ac_executable_extensions; do
2318
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2319
ac_cv_prog_ac_ct_CC="cc"
2320
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2329
if test -n "$ac_ct_CC"; then
2330
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2331
echo "${ECHO_T}$ac_ct_CC" >&6
2333
echo "$as_me:$LINENO: result: no" >&5
2334
echo "${ECHO_T}no" >&6
2343
if test -z "$CC"; then
2344
# Extract the first word of "cc", so it can be a program name with args.
2345
set dummy cc; ac_word=$2
2346
echo "$as_me:$LINENO: checking for $ac_word" >&5
2347
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2348
if test "${ac_cv_prog_CC+set}" = set; then
2349
echo $ECHO_N "(cached) $ECHO_C" >&6
2351
if test -n "$CC"; then
2352
ac_cv_prog_CC="$CC" # Let the user override the test.
2355
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359
test -z "$as_dir" && as_dir=.
2360
for ac_exec_ext in '' $ac_executable_extensions; do
2361
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2362
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2363
ac_prog_rejected=yes
2367
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373
if test $ac_prog_rejected = yes; then
2374
# We found a bogon in the path, so make sure we never use it.
2375
set dummy $ac_cv_prog_CC
2377
if test $# != 0; then
2378
# We chose a different compiler from the bogus one.
2379
# However, it has the same basename, so the bogon will be chosen
2380
# first if we set CC to just the basename; use the full file name.
2382
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2388
if test -n "$CC"; then
2389
echo "$as_me:$LINENO: result: $CC" >&5
2390
echo "${ECHO_T}$CC" >&6
2392
echo "$as_me:$LINENO: result: no" >&5
2393
echo "${ECHO_T}no" >&6
2397
if test -z "$CC"; then
2398
if test -n "$ac_tool_prefix"; then
2401
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2402
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2403
echo "$as_me:$LINENO: checking for $ac_word" >&5
2404
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2405
if test "${ac_cv_prog_CC+set}" = set; then
2406
echo $ECHO_N "(cached) $ECHO_C" >&6
2408
if test -n "$CC"; then
2409
ac_cv_prog_CC="$CC" # Let the user override the test.
2411
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415
test -z "$as_dir" && as_dir=.
2416
for ac_exec_ext in '' $ac_executable_extensions; do
2417
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2418
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2419
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428
if test -n "$CC"; then
2429
echo "$as_me:$LINENO: result: $CC" >&5
2430
echo "${ECHO_T}$CC" >&6
2432
echo "$as_me:$LINENO: result: no" >&5
2433
echo "${ECHO_T}no" >&6
2436
test -n "$CC" && break
2439
if test -z "$CC"; then
2443
# Extract the first word of "$ac_prog", so it can be a program name with args.
2444
set dummy $ac_prog; ac_word=$2
2445
echo "$as_me:$LINENO: checking for $ac_word" >&5
2446
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2447
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2448
echo $ECHO_N "(cached) $ECHO_C" >&6
2450
if test -n "$ac_ct_CC"; then
2451
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2453
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457
test -z "$as_dir" && as_dir=.
2458
for ac_exec_ext in '' $ac_executable_extensions; do
2459
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2460
ac_cv_prog_ac_ct_CC="$ac_prog"
2461
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2469
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2470
if test -n "$ac_ct_CC"; then
2471
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2472
echo "${ECHO_T}$ac_ct_CC" >&6
2474
echo "$as_me:$LINENO: result: no" >&5
2475
echo "${ECHO_T}no" >&6
2478
test -n "$ac_ct_CC" && break
2487
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2488
See \`config.log' for more details." >&5
2489
echo "$as_me: error: no acceptable C compiler found in \$PATH
2490
See \`config.log' for more details." >&2;}
2491
{ (exit 1); exit 1; }; }
2493
# Provide some information about the compiler.
2494
echo "$as_me:$LINENO:" \
2495
"checking for C compiler version" >&5
2496
ac_compiler=`set X $ac_compile; echo $2`
2497
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2498
(eval $ac_compiler --version </dev/null >&5) 2>&5
2500
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501
(exit $ac_status); }
2502
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2503
(eval $ac_compiler -v </dev/null >&5) 2>&5
2505
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506
(exit $ac_status); }
2507
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2508
(eval $ac_compiler -V </dev/null >&5) 2>&5
2510
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511
(exit $ac_status); }
2513
cat >conftest.$ac_ext <<_ACEOF
2516
cat confdefs.h >>conftest.$ac_ext
2517
cat >>conftest.$ac_ext <<_ACEOF
2518
/* end confdefs.h. */
2528
ac_clean_files_save=$ac_clean_files
2529
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2530
# Try to create an executable without -o first, disregard a.out.
2531
# It will help us diagnose broken compilers, and finding out an intuition
2533
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2534
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2535
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2536
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2537
(eval $ac_link_default) 2>&5
2539
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540
(exit $ac_status); }; then
2541
# Find the output, starting from the most likely. This scheme is
2542
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2545
# Be careful to initialize this variable, since it used to be cached.
2546
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2548
# b.out is created by i960 compilers.
2549
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2551
test -f "$ac_file" || continue
2553
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2556
# This is the source file.
2559
# We found the default executable, but exeext='' is most
2563
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2564
# FIXME: I believe we export ac_cv_exeext for Libtool,
2565
# but it would be cool to find out if it's true. Does anybody
2566
# maintain Libtool? --akim.
2574
echo "$as_me: failed program was:" >&5
2575
sed 's/^/| /' conftest.$ac_ext >&5
2577
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2578
See \`config.log' for more details." >&5
2579
echo "$as_me: error: C compiler cannot create executables
2580
See \`config.log' for more details." >&2;}
2581
{ (exit 77); exit 77; }; }
2584
ac_exeext=$ac_cv_exeext
2585
echo "$as_me:$LINENO: result: $ac_file" >&5
2586
echo "${ECHO_T}$ac_file" >&6
2588
# Check the compiler produces executables we can run. If not, either
2589
# the compiler is broken, or we cross compile.
2590
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2591
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2592
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2593
# If not cross compiling, check that we can run a simple program.
2594
if test "$cross_compiling" != yes; then
2595
if { ac_try='./$ac_file'
2596
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600
(exit $ac_status); }; }; then
2603
if test "$cross_compiling" = maybe; then
2606
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2607
If you meant to cross compile, use \`--host'.
2608
See \`config.log' for more details." >&5
2609
echo "$as_me: error: cannot run C compiled programs.
2610
If you meant to cross compile, use \`--host'.
2611
See \`config.log' for more details." >&2;}
2612
{ (exit 1); exit 1; }; }
2616
echo "$as_me:$LINENO: result: yes" >&5
2617
echo "${ECHO_T}yes" >&6
2619
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2620
ac_clean_files=$ac_clean_files_save
2621
# Check the compiler produces executables we can run. If not, either
2622
# the compiler is broken, or we cross compile.
2623
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2624
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2625
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2626
echo "${ECHO_T}$cross_compiling" >&6
2628
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2629
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2630
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2631
(eval $ac_link) 2>&5
2633
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634
(exit $ac_status); }; then
2635
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2636
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2637
# work properly (i.e., refer to `conftest.exe'), while it won't with
2639
for ac_file in conftest.exe conftest conftest.*; do
2640
test -f "$ac_file" || continue
2642
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2643
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2650
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2651
See \`config.log' for more details." >&5
2652
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2653
See \`config.log' for more details." >&2;}
2654
{ (exit 1); exit 1; }; }
2657
rm -f conftest$ac_cv_exeext
2658
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2659
echo "${ECHO_T}$ac_cv_exeext" >&6
2661
rm -f conftest.$ac_ext
2662
EXEEXT=$ac_cv_exeext
2664
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2665
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2666
if test "${ac_cv_objext+set}" = set; then
2667
echo $ECHO_N "(cached) $ECHO_C" >&6
2669
cat >conftest.$ac_ext <<_ACEOF
2672
cat confdefs.h >>conftest.$ac_ext
2673
cat >>conftest.$ac_ext <<_ACEOF
2674
/* end confdefs.h. */
2684
rm -f conftest.o conftest.obj
2685
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2686
(eval $ac_compile) 2>&5
2688
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689
(exit $ac_status); }; then
2690
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2692
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2693
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2698
echo "$as_me: failed program was:" >&5
2699
sed 's/^/| /' conftest.$ac_ext >&5
2701
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2702
See \`config.log' for more details." >&5
2703
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2704
See \`config.log' for more details." >&2;}
2705
{ (exit 1); exit 1; }; }
2708
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2710
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2711
echo "${ECHO_T}$ac_cv_objext" >&6
2712
OBJEXT=$ac_cv_objext
2714
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2715
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2716
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2717
echo $ECHO_N "(cached) $ECHO_C" >&6
2719
cat >conftest.$ac_ext <<_ACEOF
2722
cat confdefs.h >>conftest.$ac_ext
2723
cat >>conftest.$ac_ext <<_ACEOF
2724
/* end confdefs.h. */
2737
rm -f conftest.$ac_objext
2738
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2739
(eval $ac_compile) 2>conftest.er1
2741
grep -v '^ *+' conftest.er1 >conftest.err
2743
cat conftest.err >&5
2744
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745
(exit $ac_status); } &&
2746
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2747
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751
(exit $ac_status); }; } &&
2752
{ ac_try='test -s conftest.$ac_objext'
2753
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757
(exit $ac_status); }; }; then
2760
echo "$as_me: failed program was:" >&5
2761
sed 's/^/| /' conftest.$ac_ext >&5
2765
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2766
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2769
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2770
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2771
GCC=`test $ac_compiler_gnu = yes && echo yes`
2772
ac_test_CFLAGS=${CFLAGS+set}
2773
ac_save_CFLAGS=$CFLAGS
2775
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2776
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2777
if test "${ac_cv_prog_cc_g+set}" = set; then
2778
echo $ECHO_N "(cached) $ECHO_C" >&6
2780
cat >conftest.$ac_ext <<_ACEOF
2783
cat confdefs.h >>conftest.$ac_ext
2784
cat >>conftest.$ac_ext <<_ACEOF
2785
/* end confdefs.h. */
2795
rm -f conftest.$ac_objext
2796
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2797
(eval $ac_compile) 2>conftest.er1
2799
grep -v '^ *+' conftest.er1 >conftest.err
2801
cat conftest.err >&5
2802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803
(exit $ac_status); } &&
2804
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2805
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809
(exit $ac_status); }; } &&
2810
{ ac_try='test -s conftest.$ac_objext'
2811
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815
(exit $ac_status); }; }; then
2818
echo "$as_me: failed program was:" >&5
2819
sed 's/^/| /' conftest.$ac_ext >&5
2823
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2825
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2826
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2827
if test "$ac_test_CFLAGS" = set; then
2828
CFLAGS=$ac_save_CFLAGS
2829
elif test $ac_cv_prog_cc_g = yes; then
2830
if test "$GCC" = yes; then
2836
if test "$GCC" = yes; then
2842
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2843
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2844
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2845
echo $ECHO_N "(cached) $ECHO_C" >&6
2847
ac_cv_prog_cc_stdc=no
2849
cat >conftest.$ac_ext <<_ACEOF
2852
cat confdefs.h >>conftest.$ac_ext
2853
cat >>conftest.$ac_ext <<_ACEOF
2854
/* end confdefs.h. */
2857
#include <sys/types.h>
2858
#include <sys/stat.h>
2859
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2860
struct buf { int x; };
2861
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2862
static char *e (p, i)
2868
static char *f (char * (*g) (char **, int), char **p, ...)
2873
s = g (p, va_arg (v,int));
2878
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2879
function prototypes and stuff, but not '\xHH' hex character constants.
2880
These don't provoke an error unfortunately, instead are silently treated
2881
as 'x'. The following induces an error, until -std1 is added to get
2882
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2883
array size at least. It's necessary to write '\x00'==0 to get something
2884
that's true only with -std1. */
2885
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2887
int test (int i, double x);
2888
struct s1 {int (*f) (int a);};
2889
struct s2 {int (*f) (double a);};
2890
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2896
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2901
# Don't try gcc -ansi; that turns off useful extensions and
2902
# breaks some systems' header files.
2903
# AIX -qlanglvl=ansi
2904
# Ultrix and OSF/1 -std1
2905
# HP-UX 10.20 and later -Ae
2906
# HP-UX older versions -Aa -D_HPUX_SOURCE
2907
# SVR4 -Xc -D__EXTENSIONS__
2908
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2910
CC="$ac_save_CC $ac_arg"
2911
rm -f conftest.$ac_objext
2912
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2913
(eval $ac_compile) 2>conftest.er1
2915
grep -v '^ *+' conftest.er1 >conftest.err
2917
cat conftest.err >&5
2918
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919
(exit $ac_status); } &&
2920
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2921
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925
(exit $ac_status); }; } &&
2926
{ ac_try='test -s conftest.$ac_objext'
2927
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931
(exit $ac_status); }; }; then
2932
ac_cv_prog_cc_stdc=$ac_arg
2935
echo "$as_me: failed program was:" >&5
2936
sed 's/^/| /' conftest.$ac_ext >&5
2939
rm -f conftest.err conftest.$ac_objext
2941
rm -f conftest.$ac_ext conftest.$ac_objext
2946
case "x$ac_cv_prog_cc_stdc" in
2948
echo "$as_me:$LINENO: result: none needed" >&5
2949
echo "${ECHO_T}none needed" >&6 ;;
2951
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2952
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2953
CC="$CC $ac_cv_prog_cc_stdc" ;;
2956
# Some people use a C++ compiler to compile C. Since we use `exit',
2957
# in C++ we need to declare it. In case someone uses the same compiler
2958
# for both compiling C and C++ we need to have the C++ compiler decide
2959
# the declaration of exit, since it's the most demanding environment.
2960
cat >conftest.$ac_ext <<_ACEOF
2965
rm -f conftest.$ac_objext
2966
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2967
(eval $ac_compile) 2>conftest.er1
2969
grep -v '^ *+' conftest.er1 >conftest.err
2971
cat conftest.err >&5
2972
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973
(exit $ac_status); } &&
2974
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2975
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2978
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979
(exit $ac_status); }; } &&
2980
{ ac_try='test -s conftest.$ac_objext'
2981
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985
(exit $ac_status); }; }; then
2986
for ac_declaration in \
2988
'extern "C" void std::exit (int) throw (); using std::exit;' \
2989
'extern "C" void std::exit (int); using std::exit;' \
2990
'extern "C" void exit (int) throw ();' \
2991
'extern "C" void exit (int);' \
2994
cat >conftest.$ac_ext <<_ACEOF
2997
cat confdefs.h >>conftest.$ac_ext
2998
cat >>conftest.$ac_ext <<_ACEOF
2999
/* end confdefs.h. */
3010
rm -f conftest.$ac_objext
3011
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3012
(eval $ac_compile) 2>conftest.er1
3014
grep -v '^ *+' conftest.er1 >conftest.err
3016
cat conftest.err >&5
3017
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018
(exit $ac_status); } &&
3019
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3020
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024
(exit $ac_status); }; } &&
3025
{ ac_try='test -s conftest.$ac_objext'
3026
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030
(exit $ac_status); }; }; then
3033
echo "$as_me: failed program was:" >&5
3034
sed 's/^/| /' conftest.$ac_ext >&5
3038
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3039
cat >conftest.$ac_ext <<_ACEOF
3042
cat confdefs.h >>conftest.$ac_ext
3043
cat >>conftest.$ac_ext <<_ACEOF
3044
/* end confdefs.h. */
3054
rm -f conftest.$ac_objext
3055
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3056
(eval $ac_compile) 2>conftest.er1
3058
grep -v '^ *+' conftest.er1 >conftest.err
3060
cat conftest.err >&5
3061
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062
(exit $ac_status); } &&
3063
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3064
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3067
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068
(exit $ac_status); }; } &&
3069
{ ac_try='test -s conftest.$ac_objext'
3070
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074
(exit $ac_status); }; }; then
3077
echo "$as_me: failed program was:" >&5
3078
sed 's/^/| /' conftest.$ac_ext >&5
3081
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3084
if test -n "$ac_declaration"; then
3085
echo '#ifdef __cplusplus' >>confdefs.h
3086
echo $ac_declaration >>confdefs.h
3087
echo '#endif' >>confdefs.h
3091
echo "$as_me: failed program was:" >&5
3092
sed 's/^/| /' conftest.$ac_ext >&5
3095
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3097
ac_cpp='$CPP $CPPFLAGS'
3098
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3102
depcc="$CC" am_compiler_list=
3104
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3105
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3106
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3107
echo $ECHO_N "(cached) $ECHO_C" >&6
3109
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3110
# We make a subdir and do the tests there. Otherwise we can end up
3111
# making bogus files that we don't know about and never remove. For
3112
# instance it was reported that on HP-UX the gcc test will end up
3113
# making a dummy file named `D' -- because `-MD' means `put the output
3116
# Copy depcomp to subdir because otherwise we won't find it if we're
3117
# using a relative directory.
3118
cp "$am_depcomp" conftest.dir
3120
# We will build objects and dependencies in a subdirectory because
3121
# it helps to detect inapplicable dependency modes. For instance
3122
# both Tru64's cc and ICC support -MD to output dependencies as a
3123
# side effect of compilation, but ICC will put the dependencies in
3124
# the current directory while Tru64 will put them in the object
3128
am_cv_CC_dependencies_compiler_type=none
3129
if test "$am_compiler_list" = ""; then
3130
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3132
for depmode in $am_compiler_list; do
3133
# Setup a source with many dependencies, because some compilers
3134
# like to wrap large dependency lists on column 80 (with \), and
3135
# we should not choose a depcomp mode which is confused by this.
3137
# We need to recreate these files for each test, as the compiler may
3138
# overwrite some of them when testing with obscure command lines.
3139
# This happens at least with the AIX C compiler.
3141
for i in 1 2 3 4 5 6; do
3142
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3143
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3144
# Solaris 8's {/usr,}/bin/sh.
3145
touch sub/conftst$i.h
3147
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3151
# after this tag, mechanisms are not by side-effect, so they'll
3152
# only be used when explicitly requested
3153
if test "x$enable_dependency_tracking" = xyes; then
3161
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3162
# mode. It turns out that the SunPro C++ compiler does not properly
3163
# handle `-M -o', and we need to detect this.
3164
if depmode=$depmode \
3165
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3166
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3167
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3168
>/dev/null 2>conftest.err &&
3169
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3170
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3171
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3172
# icc doesn't choke on unknown options, it will just issue warnings
3173
# or remarks (even with -Werror). So we grep stderr for any message
3174
# that says an option was ignored or not supported.
3175
# When given -MP, icc 7.0 and 7.1 complain thusly:
3176
# icc: Command line warning: ignoring option '-M'; no argument required
3177
# The diagnosis changed in icc 8.0:
3178
# icc: Command line remark: option '-MP' not supported
3179
if (grep 'ignoring option' conftest.err ||
3180
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3181
am_cv_CC_dependencies_compiler_type=$depmode
3190
am_cv_CC_dependencies_compiler_type=none
3194
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3195
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3196
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3201
test "x$enable_dependency_tracking" != xno \
3202
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3204
am__fastdepCC_FALSE='#'
3206
am__fastdepCC_TRUE='#'
3207
am__fastdepCC_FALSE=
3211
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3212
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3213
if test "${lt_cv_path_SED+set}" = set; then
3214
echo $ECHO_N "(cached) $ECHO_C" >&6
3216
# Loop through the user's path and test for sed and gsed.
3217
# Then use that list of sed's as ones to test for truncation.
3218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222
test -z "$as_dir" && as_dir=.
3223
for lt_ac_prog in sed gsed; do
3224
for ac_exec_ext in '' $ac_executable_extensions; do
3225
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3226
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3233
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3234
# along with /bin/sed that truncates output.
3235
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3236
test ! -f $lt_ac_sed && continue
3237
cat /dev/null > conftest.in
3239
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3240
# Check for GNU sed and select it if it is found.
3241
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3242
lt_cv_path_SED=$lt_ac_sed
3246
cat conftest.in conftest.in >conftest.tmp
3247
mv conftest.tmp conftest.in
3248
cp conftest.in conftest.nl
3250
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3251
cmp -s conftest.out conftest.nl || break
3252
# 10000 chars as input seems more than enough
3253
test $lt_ac_count -gt 10 && break
3254
lt_ac_count=`expr $lt_ac_count + 1`
3255
if test $lt_ac_count -gt $lt_ac_max; then
3256
lt_ac_max=$lt_ac_count
3257
lt_cv_path_SED=$lt_ac_sed
3265
echo "$as_me:$LINENO: result: $SED" >&5
3266
echo "${ECHO_T}$SED" >&6
3268
echo "$as_me:$LINENO: checking for egrep" >&5
3269
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3270
if test "${ac_cv_prog_egrep+set}" = set; then
3271
echo $ECHO_N "(cached) $ECHO_C" >&6
3273
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3274
then ac_cv_prog_egrep='grep -E'
3275
else ac_cv_prog_egrep='egrep'
3278
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3279
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3280
EGREP=$ac_cv_prog_egrep
3284
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3285
if test "${with_gnu_ld+set}" = set; then
3286
withval="$with_gnu_ld"
3287
test "$withval" = no || with_gnu_ld=yes
3292
if test "$GCC" = yes; then
3293
# Check if gcc -print-prog-name=ld gives a path.
3294
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3295
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3298
# gcc leaves a trailing carriage return which upsets mingw
3299
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3301
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3304
# Accept absolute paths.
3306
re_direlt='/[^/][^/]*/\.\./'
3307
# Canonicalize the pathname of ld
3308
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3309
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3310
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3312
test -z "$LD" && LD="$ac_prog"
3315
# If it fails, then pretend we aren't using GCC.
3319
# If it is relative, then search for the first ld in PATH.
3323
elif test "$with_gnu_ld" = yes; then
3324
echo "$as_me:$LINENO: checking for GNU ld" >&5
3325
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3327
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3328
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3330
if test "${lt_cv_path_LD+set}" = set; then
3331
echo $ECHO_N "(cached) $ECHO_C" >&6
3333
if test -z "$LD"; then
3334
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3335
for ac_dir in $PATH; do
3337
test -z "$ac_dir" && ac_dir=.
3338
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3339
lt_cv_path_LD="$ac_dir/$ac_prog"
3340
# Check to see if the program is GNU ld. I'd rather use --version,
3341
# but apparently some variants of GNU ld only accept -v.
3342
# Break only if it was the GNU/non-GNU ld that we prefer.
3343
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3344
*GNU* | *'with BFD'*)
3345
test "$with_gnu_ld" != no && break
3348
test "$with_gnu_ld" != yes && break
3355
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3360
if test -n "$LD"; then
3361
echo "$as_me:$LINENO: result: $LD" >&5
3362
echo "${ECHO_T}$LD" >&6
3364
echo "$as_me:$LINENO: result: no" >&5
3365
echo "${ECHO_T}no" >&6
3367
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3368
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3369
{ (exit 1); exit 1; }; }
3370
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3371
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3372
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3373
echo $ECHO_N "(cached) $ECHO_C" >&6
3375
# I'd rather use --version here, but apparently some GNU lds only accept -v.
3376
case `$LD -v 2>&1 </dev/null` in
3377
*GNU* | *'with BFD'*)
3378
lt_cv_prog_gnu_ld=yes
3381
lt_cv_prog_gnu_ld=no
3385
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3386
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3387
with_gnu_ld=$lt_cv_prog_gnu_ld
3390
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3391
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3392
if test "${lt_cv_ld_reload_flag+set}" = set; then
3393
echo $ECHO_N "(cached) $ECHO_C" >&6
3395
lt_cv_ld_reload_flag='-r'
3397
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3398
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3399
reload_flag=$lt_cv_ld_reload_flag
3400
case $reload_flag in
3402
*) reload_flag=" $reload_flag" ;;
3404
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3407
if test "$GCC" = yes; then
3408
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3410
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3415
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3416
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3417
if test "${lt_cv_path_NM+set}" = set; then
3418
echo $ECHO_N "(cached) $ECHO_C" >&6
3420
if test -n "$NM"; then
3421
# Let the user override the test.
3424
lt_nm_to_check="${ac_tool_prefix}nm"
3425
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3426
lt_nm_to_check="$lt_nm_to_check nm"
3428
for lt_tmp_nm in $lt_nm_to_check; do
3429
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3430
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3432
test -z "$ac_dir" && ac_dir=.
3433
tmp_nm="$ac_dir/$lt_tmp_nm"
3434
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3435
# Check to see if the nm accepts a BSD-compat flag.
3436
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3437
# nm: unknown option "B" ignored
3438
# Tru64's nm complains that /dev/null is an invalid object file
3439
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3440
*/dev/null* | *'Invalid file or object type'*)
3441
lt_cv_path_NM="$tmp_nm -B"
3445
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3447
lt_cv_path_NM="$tmp_nm -p"
3451
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3452
continue # so that we can try to find one that supports BSD flags
3461
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3464
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3465
echo "${ECHO_T}$lt_cv_path_NM" >&6
3468
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3469
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3471
if test "$LN_S" = "ln -s"; then
3472
echo "$as_me:$LINENO: result: yes" >&5
3473
echo "${ECHO_T}yes" >&6
3475
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3476
echo "${ECHO_T}no, using $LN_S" >&6
3479
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3480
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3481
if test "${lt_cv_deplibs_check_method+set}" = set; then
3482
echo $ECHO_N "(cached) $ECHO_C" >&6
3484
lt_cv_file_magic_cmd='$MAGIC_CMD'
3485
lt_cv_file_magic_test_file=
3486
lt_cv_deplibs_check_method='unknown'
3487
# Need to set the preceding variable on all platforms that support
3488
# interlibrary dependencies.
3489
# 'none' -- dependencies not supported.
3490
# `unknown' -- same as none, but documents that we really don't know.
3491
# 'pass_all' -- all dependencies passed with no checks.
3492
# 'test_compile' -- check by making test program.
3493
# 'file_magic [[regex]]' -- check by looking for files in library path
3494
# which responds to the $file_magic_cmd with a given extended regex.
3495
# If you have `file' or equivalent on your system and you're not sure
3496
# whether `pass_all' will *always* work, you probably want this one.
3500
lt_cv_deplibs_check_method=pass_all
3504
lt_cv_deplibs_check_method=pass_all
3508
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3509
lt_cv_file_magic_cmd='/usr/bin/file -L'
3510
lt_cv_file_magic_test_file=/shlib/libc.so
3514
# func_win32_libid is a shell function defined in ltmain.sh
3515
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3516
lt_cv_file_magic_cmd='func_win32_libid'
3520
# Base MSYS/MinGW do not provide the 'file' command needed by
3521
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
3522
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3523
lt_cv_file_magic_cmd='$OBJDUMP -f'
3526
darwin* | rhapsody*)
3527
lt_cv_deplibs_check_method=pass_all
3530
freebsd* | kfreebsd*-gnu | dragonfly*)
3531
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3534
# Not sure whether the presence of OpenBSD here was a mistake.
3535
# Let's accept both of them until this is cleared up.
3536
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3537
lt_cv_file_magic_cmd=/usr/bin/file
3538
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3542
lt_cv_deplibs_check_method=pass_all
3547
lt_cv_deplibs_check_method=pass_all
3550
hpux10.20* | hpux11*)
3551
lt_cv_file_magic_cmd=/usr/bin/file
3554
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3555
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3558
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]'
3559
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3562
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3563
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3569
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3570
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3573
irix5* | irix6* | nonstopux*)
3575
*-32|*"-32 ") libmagic=32-bit;;
3576
*-n32|*"-n32 ") libmagic=N32;;
3577
*-64|*"-64 ") libmagic=64-bit;;
3578
*) libmagic=never-match;;
3580
lt_cv_deplibs_check_method=pass_all
3583
# This must be Linux ELF.
3585
lt_cv_deplibs_check_method=pass_all
3588
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3589
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3590
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3592
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3597
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3598
lt_cv_file_magic_cmd=/usr/bin/file
3599
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3603
lt_cv_deplibs_check_method=unknown
3607
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3608
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3610
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3614
osf3* | osf4* | osf5*)
3615
lt_cv_deplibs_check_method=pass_all
3619
lt_cv_deplibs_check_method=pass_all
3623
case $host_vendor in
3625
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]'
3626
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3629
lt_cv_deplibs_check_method=pass_all
3632
lt_cv_file_magic_cmd='/bin/file'
3633
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3636
lt_cv_file_magic_cmd='/bin/file'
3637
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3638
lt_cv_file_magic_test_file=/lib/libc.so
3641
lt_cv_deplibs_check_method=pass_all
3644
lt_cv_deplibs_check_method=pass_all
3649
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3650
lt_cv_deplibs_check_method=pass_all
3655
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3656
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3657
file_magic_cmd=$lt_cv_file_magic_cmd
3658
deplibs_check_method=$lt_cv_deplibs_check_method
3659
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3664
# If no C compiler was specified, use CC.
3667
# If no C compiler flags were specified, use CFLAGS.
3668
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3670
# Allow CC to be a program name with arguments.
3674
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3675
if test "${enable_libtool_lock+set}" = set; then
3676
enableval="$enable_libtool_lock"
3679
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3681
# Some flags need to be propagated to the compiler or linker for good
3685
# Find out which ABI we are using.
3686
echo 'int i;' > conftest.$ac_ext
3687
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3688
(eval $ac_compile) 2>&5
3690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691
(exit $ac_status); }; then
3692
case `/usr/bin/file conftest.$ac_objext` in
3704
# Find out which ABI we are using.
3705
echo '#line 3705 "configure"' > conftest.$ac_ext
3706
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3707
(eval $ac_compile) 2>&5
3709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710
(exit $ac_status); }; then
3711
if test "$lt_cv_prog_gnu_ld" = yes; then
3712
case `/usr/bin/file conftest.$ac_objext` in
3714
LD="${LD-ld} -melf32bsmip"
3717
LD="${LD-ld} -melf32bmipn32"
3720
LD="${LD-ld} -melf64bmip"
3724
case `/usr/bin/file conftest.$ac_objext` in
3740
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3741
# Find out which ABI we are using.
3742
echo 'int i;' > conftest.$ac_ext
3743
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3744
(eval $ac_compile) 2>&5
3746
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747
(exit $ac_status); }; then
3748
case `/usr/bin/file conftest.o` in
3752
LD="${LD-ld} -m elf_i386"
3754
ppc64-*linux*|powerpc64-*linux*)
3755
LD="${LD-ld} -m elf32ppclinux"
3758
LD="${LD-ld} -m elf_s390"
3761
LD="${LD-ld} -m elf32_sparc"
3768
LD="${LD-ld} -m elf_x86_64"
3770
ppc*-*linux*|powerpc*-*linux*)
3771
LD="${LD-ld} -m elf64ppc"
3774
LD="${LD-ld} -m elf64_s390"
3777
LD="${LD-ld} -m elf64_sparc"
3787
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
3788
SAVE_CFLAGS="$CFLAGS"
3789
CFLAGS="$CFLAGS -belf"
3790
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3791
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3792
if test "${lt_cv_cc_needs_belf+set}" = set; then
3793
echo $ECHO_N "(cached) $ECHO_C" >&6
3796
ac_cpp='$CPP $CPPFLAGS'
3797
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3798
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3799
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3801
cat >conftest.$ac_ext <<_ACEOF
3804
cat confdefs.h >>conftest.$ac_ext
3805
cat >>conftest.$ac_ext <<_ACEOF
3806
/* end confdefs.h. */
3816
rm -f conftest.$ac_objext conftest$ac_exeext
3817
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3818
(eval $ac_link) 2>conftest.er1
3820
grep -v '^ *+' conftest.er1 >conftest.err
3822
cat conftest.err >&5
3823
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824
(exit $ac_status); } &&
3825
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3826
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3829
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830
(exit $ac_status); }; } &&
3831
{ ac_try='test -s conftest$ac_exeext'
3832
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836
(exit $ac_status); }; }; then
3837
lt_cv_cc_needs_belf=yes
3839
echo "$as_me: failed program was:" >&5
3840
sed 's/^/| /' conftest.$ac_ext >&5
3842
lt_cv_cc_needs_belf=no
3844
rm -f conftest.err conftest.$ac_objext \
3845
conftest$ac_exeext conftest.$ac_ext
3847
ac_cpp='$CPP $CPPFLAGS'
3848
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3854
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3855
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3856
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3857
CFLAGS="$SAVE_CFLAGS"
3861
# Find out which ABI we are using.
3862
echo 'int i;' > conftest.$ac_ext
3863
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3864
(eval $ac_compile) 2>&5
3866
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867
(exit $ac_status); }; then
3868
case `/usr/bin/file conftest.o` in
3870
case $lt_cv_prog_gnu_ld in
3871
yes*) LD="${LD-ld} -m elf64_sparc" ;;
3872
*) LD="${LD-ld} -64" ;;
3883
need_locks="$enable_libtool_lock"
3887
ac_cpp='$CPP $CPPFLAGS'
3888
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3889
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3890
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3891
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3892
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3893
# On Suns, sometimes $CPP names a directory.
3894
if test -n "$CPP" && test -d "$CPP"; then
3897
if test -z "$CPP"; then
3898
if test "${ac_cv_prog_CPP+set}" = set; then
3899
echo $ECHO_N "(cached) $ECHO_C" >&6
3901
# Double quotes because CPP needs to be expanded
3902
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3905
for ac_c_preproc_warn_flag in '' yes
3907
# Use a header file that comes with gcc, so configuring glibc
3908
# with a fresh cross-compiler works.
3909
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3910
# <limits.h> exists even on freestanding compilers.
3911
# On the NeXT, cc -E runs the code through the compiler's parser,
3912
# not just through cpp. "Syntax error" is here to catch this case.
3913
cat >conftest.$ac_ext <<_ACEOF
3916
cat confdefs.h >>conftest.$ac_ext
3917
cat >>conftest.$ac_ext <<_ACEOF
3918
/* end confdefs.h. */
3920
# include <limits.h>
3922
# include <assert.h>
3926
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3927
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3929
grep -v '^ *+' conftest.er1 >conftest.err
3931
cat conftest.err >&5
3932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933
(exit $ac_status); } >/dev/null; then
3934
if test -s conftest.err; then
3935
ac_cpp_err=$ac_c_preproc_warn_flag
3936
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3943
if test -z "$ac_cpp_err"; then
3946
echo "$as_me: failed program was:" >&5
3947
sed 's/^/| /' conftest.$ac_ext >&5
3949
# Broken: fails on valid input.
3952
rm -f conftest.err conftest.$ac_ext
3954
# OK, works on sane cases. Now check whether non-existent headers
3955
# can be detected and how.
3956
cat >conftest.$ac_ext <<_ACEOF
3959
cat confdefs.h >>conftest.$ac_ext
3960
cat >>conftest.$ac_ext <<_ACEOF
3961
/* end confdefs.h. */
3962
#include <ac_nonexistent.h>
3964
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3965
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3967
grep -v '^ *+' conftest.er1 >conftest.err
3969
cat conftest.err >&5
3970
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971
(exit $ac_status); } >/dev/null; then
3972
if test -s conftest.err; then
3973
ac_cpp_err=$ac_c_preproc_warn_flag
3974
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3981
if test -z "$ac_cpp_err"; then
3982
# Broken: success on invalid input.
3985
echo "$as_me: failed program was:" >&5
3986
sed 's/^/| /' conftest.$ac_ext >&5
3988
# Passes both tests.
3992
rm -f conftest.err conftest.$ac_ext
3995
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3996
rm -f conftest.err conftest.$ac_ext
3997
if $ac_preproc_ok; then
4009
echo "$as_me:$LINENO: result: $CPP" >&5
4010
echo "${ECHO_T}$CPP" >&6
4012
for ac_c_preproc_warn_flag in '' yes
4014
# Use a header file that comes with gcc, so configuring glibc
4015
# with a fresh cross-compiler works.
4016
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4017
# <limits.h> exists even on freestanding compilers.
4018
# On the NeXT, cc -E runs the code through the compiler's parser,
4019
# not just through cpp. "Syntax error" is here to catch this case.
4020
cat >conftest.$ac_ext <<_ACEOF
4023
cat confdefs.h >>conftest.$ac_ext
4024
cat >>conftest.$ac_ext <<_ACEOF
4025
/* end confdefs.h. */
4027
# include <limits.h>
4029
# include <assert.h>
4033
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4034
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4036
grep -v '^ *+' conftest.er1 >conftest.err
4038
cat conftest.err >&5
4039
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040
(exit $ac_status); } >/dev/null; then
4041
if test -s conftest.err; then
4042
ac_cpp_err=$ac_c_preproc_warn_flag
4043
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4050
if test -z "$ac_cpp_err"; then
4053
echo "$as_me: failed program was:" >&5
4054
sed 's/^/| /' conftest.$ac_ext >&5
4056
# Broken: fails on valid input.
4059
rm -f conftest.err conftest.$ac_ext
4061
# OK, works on sane cases. Now check whether non-existent headers
4062
# can be detected and how.
4063
cat >conftest.$ac_ext <<_ACEOF
4066
cat confdefs.h >>conftest.$ac_ext
4067
cat >>conftest.$ac_ext <<_ACEOF
4068
/* end confdefs.h. */
4069
#include <ac_nonexistent.h>
4071
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4072
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4074
grep -v '^ *+' conftest.er1 >conftest.err
4076
cat conftest.err >&5
4077
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078
(exit $ac_status); } >/dev/null; then
4079
if test -s conftest.err; then
4080
ac_cpp_err=$ac_c_preproc_warn_flag
4081
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4088
if test -z "$ac_cpp_err"; then
4089
# Broken: success on invalid input.
4092
echo "$as_me: failed program was:" >&5
4093
sed 's/^/| /' conftest.$ac_ext >&5
4095
# Passes both tests.
4099
rm -f conftest.err conftest.$ac_ext
4102
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4103
rm -f conftest.err conftest.$ac_ext
4104
if $ac_preproc_ok; then
4107
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4108
See \`config.log' for more details." >&5
4109
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4110
See \`config.log' for more details." >&2;}
4111
{ (exit 1); exit 1; }; }
4115
ac_cpp='$CPP $CPPFLAGS'
4116
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4121
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4122
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4123
if test "${ac_cv_header_stdc+set}" = set; then
4124
echo $ECHO_N "(cached) $ECHO_C" >&6
4126
cat >conftest.$ac_ext <<_ACEOF
4129
cat confdefs.h >>conftest.$ac_ext
4130
cat >>conftest.$ac_ext <<_ACEOF
4131
/* end confdefs.h. */
4145
rm -f conftest.$ac_objext
4146
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4147
(eval $ac_compile) 2>conftest.er1
4149
grep -v '^ *+' conftest.er1 >conftest.err
4151
cat conftest.err >&5
4152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153
(exit $ac_status); } &&
4154
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4155
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159
(exit $ac_status); }; } &&
4160
{ ac_try='test -s conftest.$ac_objext'
4161
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165
(exit $ac_status); }; }; then
4166
ac_cv_header_stdc=yes
4168
echo "$as_me: failed program was:" >&5
4169
sed 's/^/| /' conftest.$ac_ext >&5
4171
ac_cv_header_stdc=no
4173
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4175
if test $ac_cv_header_stdc = yes; then
4176
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4177
cat >conftest.$ac_ext <<_ACEOF
4180
cat confdefs.h >>conftest.$ac_ext
4181
cat >>conftest.$ac_ext <<_ACEOF
4182
/* end confdefs.h. */
4186
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4187
$EGREP "memchr" >/dev/null 2>&1; then
4190
ac_cv_header_stdc=no
4196
if test $ac_cv_header_stdc = yes; then
4197
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4198
cat >conftest.$ac_ext <<_ACEOF
4201
cat confdefs.h >>conftest.$ac_ext
4202
cat >>conftest.$ac_ext <<_ACEOF
4203
/* end confdefs.h. */
4207
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4208
$EGREP "free" >/dev/null 2>&1; then
4211
ac_cv_header_stdc=no
4217
if test $ac_cv_header_stdc = yes; then
4218
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4219
if test "$cross_compiling" = yes; then
4222
cat >conftest.$ac_ext <<_ACEOF
4225
cat confdefs.h >>conftest.$ac_ext
4226
cat >>conftest.$ac_ext <<_ACEOF
4227
/* end confdefs.h. */
4229
#if ((' ' & 0x0FF) == 0x020)
4230
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4231
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4233
# define ISLOWER(c) \
4234
(('a' <= (c) && (c) <= 'i') \
4235
|| ('j' <= (c) && (c) <= 'r') \
4236
|| ('s' <= (c) && (c) <= 'z'))
4237
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4240
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4245
for (i = 0; i < 256; i++)
4246
if (XOR (islower (i), ISLOWER (i))
4247
|| toupper (i) != TOUPPER (i))
4252
rm -f conftest$ac_exeext
4253
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4254
(eval $ac_link) 2>&5
4256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4258
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262
(exit $ac_status); }; }; then
4265
echo "$as_me: program exited with status $ac_status" >&5
4266
echo "$as_me: failed program was:" >&5
4267
sed 's/^/| /' conftest.$ac_ext >&5
4270
ac_cv_header_stdc=no
4272
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4276
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4277
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4278
if test $ac_cv_header_stdc = yes; then
4280
cat >>confdefs.h <<\_ACEOF
4281
#define STDC_HEADERS 1
4286
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4296
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4297
inttypes.h stdint.h unistd.h
4299
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4300
echo "$as_me:$LINENO: checking for $ac_header" >&5
4301
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4302
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4303
echo $ECHO_N "(cached) $ECHO_C" >&6
4305
cat >conftest.$ac_ext <<_ACEOF
4308
cat confdefs.h >>conftest.$ac_ext
4309
cat >>conftest.$ac_ext <<_ACEOF
4310
/* end confdefs.h. */
4311
$ac_includes_default
4313
#include <$ac_header>
4315
rm -f conftest.$ac_objext
4316
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4317
(eval $ac_compile) 2>conftest.er1
4319
grep -v '^ *+' conftest.er1 >conftest.err
4321
cat conftest.err >&5
4322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323
(exit $ac_status); } &&
4324
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4325
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4328
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329
(exit $ac_status); }; } &&
4330
{ ac_try='test -s conftest.$ac_objext'
4331
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335
(exit $ac_status); }; }; then
4336
eval "$as_ac_Header=yes"
4338
echo "$as_me: failed program was:" >&5
4339
sed 's/^/| /' conftest.$ac_ext >&5
4341
eval "$as_ac_Header=no"
4343
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4345
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4346
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4347
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4348
cat >>confdefs.h <<_ACEOF
4349
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4358
for ac_header in dlfcn.h
4360
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4361
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4362
echo "$as_me:$LINENO: checking for $ac_header" >&5
4363
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4364
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4365
echo $ECHO_N "(cached) $ECHO_C" >&6
4367
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4368
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4370
# Is the header compilable?
4371
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4372
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4373
cat >conftest.$ac_ext <<_ACEOF
4376
cat confdefs.h >>conftest.$ac_ext
4377
cat >>conftest.$ac_ext <<_ACEOF
4378
/* end confdefs.h. */
4379
$ac_includes_default
4380
#include <$ac_header>
4382
rm -f conftest.$ac_objext
4383
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4384
(eval $ac_compile) 2>conftest.er1
4386
grep -v '^ *+' conftest.er1 >conftest.err
4388
cat conftest.err >&5
4389
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390
(exit $ac_status); } &&
4391
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4392
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396
(exit $ac_status); }; } &&
4397
{ ac_try='test -s conftest.$ac_objext'
4398
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402
(exit $ac_status); }; }; then
4403
ac_header_compiler=yes
4405
echo "$as_me: failed program was:" >&5
4406
sed 's/^/| /' conftest.$ac_ext >&5
4408
ac_header_compiler=no
4410
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4411
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4412
echo "${ECHO_T}$ac_header_compiler" >&6
4414
# Is the header present?
4415
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4416
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4417
cat >conftest.$ac_ext <<_ACEOF
4420
cat confdefs.h >>conftest.$ac_ext
4421
cat >>conftest.$ac_ext <<_ACEOF
4422
/* end confdefs.h. */
4423
#include <$ac_header>
4425
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4426
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4428
grep -v '^ *+' conftest.er1 >conftest.err
4430
cat conftest.err >&5
4431
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432
(exit $ac_status); } >/dev/null; then
4433
if test -s conftest.err; then
4434
ac_cpp_err=$ac_c_preproc_warn_flag
4435
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4442
if test -z "$ac_cpp_err"; then
4443
ac_header_preproc=yes
4445
echo "$as_me: failed program was:" >&5
4446
sed 's/^/| /' conftest.$ac_ext >&5
4448
ac_header_preproc=no
4450
rm -f conftest.err conftest.$ac_ext
4451
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4452
echo "${ECHO_T}$ac_header_preproc" >&6
4454
# So? What about this header?
4455
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4457
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4458
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4459
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4460
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4461
ac_header_preproc=yes
4464
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4465
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4466
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4467
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4468
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4469
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4470
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4471
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4472
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4473
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4474
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4475
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4478
## ----------------------------------------------------------------------------- ##
4479
## Report this to https://launchpad.net/distros/ubuntu/+source/espresso/+filebug ##
4480
## ----------------------------------------------------------------------------- ##
4483
sed "s/^/$as_me: WARNING: /" >&2
4486
echo "$as_me:$LINENO: checking for $ac_header" >&5
4487
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4488
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4489
echo $ECHO_N "(cached) $ECHO_C" >&6
4491
eval "$as_ac_Header=\$ac_header_preproc"
4493
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4494
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4497
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4498
cat >>confdefs.h <<_ACEOF
4499
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4507
ac_cpp='$CXXCPP $CPPFLAGS'
4508
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4509
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4510
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4511
if test -n "$ac_tool_prefix"; then
4512
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4514
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4515
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4516
echo "$as_me:$LINENO: checking for $ac_word" >&5
4517
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4518
if test "${ac_cv_prog_CXX+set}" = set; then
4519
echo $ECHO_N "(cached) $ECHO_C" >&6
4521
if test -n "$CXX"; then
4522
ac_cv_prog_CXX="$CXX" # Let the user override the test.
4524
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528
test -z "$as_dir" && as_dir=.
4529
for ac_exec_ext in '' $ac_executable_extensions; do
4530
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4531
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4532
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4541
if test -n "$CXX"; then
4542
echo "$as_me:$LINENO: result: $CXX" >&5
4543
echo "${ECHO_T}$CXX" >&6
4545
echo "$as_me:$LINENO: result: no" >&5
4546
echo "${ECHO_T}no" >&6
4549
test -n "$CXX" && break
4552
if test -z "$CXX"; then
4554
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4556
# Extract the first word of "$ac_prog", so it can be a program name with args.
4557
set dummy $ac_prog; ac_word=$2
4558
echo "$as_me:$LINENO: checking for $ac_word" >&5
4559
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4560
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4561
echo $ECHO_N "(cached) $ECHO_C" >&6
4563
if test -n "$ac_ct_CXX"; then
4564
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4566
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570
test -z "$as_dir" && as_dir=.
4571
for ac_exec_ext in '' $ac_executable_extensions; do
4572
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573
ac_cv_prog_ac_ct_CXX="$ac_prog"
4574
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4582
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4583
if test -n "$ac_ct_CXX"; then
4584
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4585
echo "${ECHO_T}$ac_ct_CXX" >&6
4587
echo "$as_me:$LINENO: result: no" >&5
4588
echo "${ECHO_T}no" >&6
4591
test -n "$ac_ct_CXX" && break
4593
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4599
# Provide some information about the compiler.
4600
echo "$as_me:$LINENO:" \
4601
"checking for C++ compiler version" >&5
4602
ac_compiler=`set X $ac_compile; echo $2`
4603
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4604
(eval $ac_compiler --version </dev/null >&5) 2>&5
4606
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607
(exit $ac_status); }
4608
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4609
(eval $ac_compiler -v </dev/null >&5) 2>&5
4611
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612
(exit $ac_status); }
4613
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4614
(eval $ac_compiler -V </dev/null >&5) 2>&5
4616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617
(exit $ac_status); }
4619
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4620
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4621
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4622
echo $ECHO_N "(cached) $ECHO_C" >&6
4624
cat >conftest.$ac_ext <<_ACEOF
4627
cat confdefs.h >>conftest.$ac_ext
4628
cat >>conftest.$ac_ext <<_ACEOF
4629
/* end confdefs.h. */
4642
rm -f conftest.$ac_objext
4643
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4644
(eval $ac_compile) 2>conftest.er1
4646
grep -v '^ *+' conftest.er1 >conftest.err
4648
cat conftest.err >&5
4649
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650
(exit $ac_status); } &&
4651
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4652
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656
(exit $ac_status); }; } &&
4657
{ ac_try='test -s conftest.$ac_objext'
4658
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662
(exit $ac_status); }; }; then
4665
echo "$as_me: failed program was:" >&5
4666
sed 's/^/| /' conftest.$ac_ext >&5
4670
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4671
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4674
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4675
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4676
GXX=`test $ac_compiler_gnu = yes && echo yes`
4677
ac_test_CXXFLAGS=${CXXFLAGS+set}
4678
ac_save_CXXFLAGS=$CXXFLAGS
4680
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4681
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4682
if test "${ac_cv_prog_cxx_g+set}" = set; then
4683
echo $ECHO_N "(cached) $ECHO_C" >&6
4685
cat >conftest.$ac_ext <<_ACEOF
4688
cat confdefs.h >>conftest.$ac_ext
4689
cat >>conftest.$ac_ext <<_ACEOF
4690
/* end confdefs.h. */
4700
rm -f conftest.$ac_objext
4701
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4702
(eval $ac_compile) 2>conftest.er1
4704
grep -v '^ *+' conftest.er1 >conftest.err
4706
cat conftest.err >&5
4707
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708
(exit $ac_status); } &&
4709
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4710
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714
(exit $ac_status); }; } &&
4715
{ ac_try='test -s conftest.$ac_objext'
4716
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720
(exit $ac_status); }; }; then
4721
ac_cv_prog_cxx_g=yes
4723
echo "$as_me: failed program was:" >&5
4724
sed 's/^/| /' conftest.$ac_ext >&5
4728
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4730
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4731
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4732
if test "$ac_test_CXXFLAGS" = set; then
4733
CXXFLAGS=$ac_save_CXXFLAGS
4734
elif test $ac_cv_prog_cxx_g = yes; then
4735
if test "$GXX" = yes; then
4741
if test "$GXX" = yes; then
4747
for ac_declaration in \
4749
'extern "C" void std::exit (int) throw (); using std::exit;' \
4750
'extern "C" void std::exit (int); using std::exit;' \
4751
'extern "C" void exit (int) throw ();' \
4752
'extern "C" void exit (int);' \
4755
cat >conftest.$ac_ext <<_ACEOF
4758
cat confdefs.h >>conftest.$ac_ext
4759
cat >>conftest.$ac_ext <<_ACEOF
4760
/* end confdefs.h. */
4771
rm -f conftest.$ac_objext
4772
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4773
(eval $ac_compile) 2>conftest.er1
4775
grep -v '^ *+' conftest.er1 >conftest.err
4777
cat conftest.err >&5
4778
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779
(exit $ac_status); } &&
4780
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4781
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785
(exit $ac_status); }; } &&
4786
{ ac_try='test -s conftest.$ac_objext'
4787
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791
(exit $ac_status); }; }; then
4794
echo "$as_me: failed program was:" >&5
4795
sed 's/^/| /' conftest.$ac_ext >&5
4799
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4800
cat >conftest.$ac_ext <<_ACEOF
4803
cat confdefs.h >>conftest.$ac_ext
4804
cat >>conftest.$ac_ext <<_ACEOF
4805
/* end confdefs.h. */
4815
rm -f conftest.$ac_objext
4816
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4817
(eval $ac_compile) 2>conftest.er1
4819
grep -v '^ *+' conftest.er1 >conftest.err
4821
cat conftest.err >&5
4822
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823
(exit $ac_status); } &&
4824
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4825
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829
(exit $ac_status); }; } &&
4830
{ ac_try='test -s conftest.$ac_objext'
4831
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835
(exit $ac_status); }; }; then
4838
echo "$as_me: failed program was:" >&5
4839
sed 's/^/| /' conftest.$ac_ext >&5
4842
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4845
if test -n "$ac_declaration"; then
4846
echo '#ifdef __cplusplus' >>confdefs.h
4847
echo $ac_declaration >>confdefs.h
4848
echo '#endif' >>confdefs.h
4852
ac_cpp='$CXXCPP $CPPFLAGS'
4853
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4857
depcc="$CXX" am_compiler_list=
4859
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4860
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4861
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4862
echo $ECHO_N "(cached) $ECHO_C" >&6
4864
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4865
# We make a subdir and do the tests there. Otherwise we can end up
4866
# making bogus files that we don't know about and never remove. For
4867
# instance it was reported that on HP-UX the gcc test will end up
4868
# making a dummy file named `D' -- because `-MD' means `put the output
4871
# Copy depcomp to subdir because otherwise we won't find it if we're
4872
# using a relative directory.
4873
cp "$am_depcomp" conftest.dir
4875
# We will build objects and dependencies in a subdirectory because
4876
# it helps to detect inapplicable dependency modes. For instance
4877
# both Tru64's cc and ICC support -MD to output dependencies as a
4878
# side effect of compilation, but ICC will put the dependencies in
4879
# the current directory while Tru64 will put them in the object
4883
am_cv_CXX_dependencies_compiler_type=none
4884
if test "$am_compiler_list" = ""; then
4885
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4887
for depmode in $am_compiler_list; do
4888
# Setup a source with many dependencies, because some compilers
4889
# like to wrap large dependency lists on column 80 (with \), and
4890
# we should not choose a depcomp mode which is confused by this.
4892
# We need to recreate these files for each test, as the compiler may
4893
# overwrite some of them when testing with obscure command lines.
4894
# This happens at least with the AIX C compiler.
4896
for i in 1 2 3 4 5 6; do
4897
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4898
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4899
# Solaris 8's {/usr,}/bin/sh.
4900
touch sub/conftst$i.h
4902
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4906
# after this tag, mechanisms are not by side-effect, so they'll
4907
# only be used when explicitly requested
4908
if test "x$enable_dependency_tracking" = xyes; then
4916
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4917
# mode. It turns out that the SunPro C++ compiler does not properly
4918
# handle `-M -o', and we need to detect this.
4919
if depmode=$depmode \
4920
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4921
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4922
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4923
>/dev/null 2>conftest.err &&
4924
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4925
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4926
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4927
# icc doesn't choke on unknown options, it will just issue warnings
4928
# or remarks (even with -Werror). So we grep stderr for any message
4929
# that says an option was ignored or not supported.
4930
# When given -MP, icc 7.0 and 7.1 complain thusly:
4931
# icc: Command line warning: ignoring option '-M'; no argument required
4932
# The diagnosis changed in icc 8.0:
4933
# icc: Command line remark: option '-MP' not supported
4934
if (grep 'ignoring option' conftest.err ||
4935
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4936
am_cv_CXX_dependencies_compiler_type=$depmode
4945
am_cv_CXX_dependencies_compiler_type=none
4949
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4950
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4951
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4956
test "x$enable_dependency_tracking" != xno \
4957
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4958
am__fastdepCXX_TRUE=
4959
am__fastdepCXX_FALSE='#'
4961
am__fastdepCXX_TRUE='#'
4962
am__fastdepCXX_FALSE=
4968
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4969
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4970
(test "X$CXX" != "Xg++"))) ; then
4972
ac_cpp='$CXXCPP $CPPFLAGS'
4973
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4976
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4977
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4978
if test -z "$CXXCPP"; then
4979
if test "${ac_cv_prog_CXXCPP+set}" = set; then
4980
echo $ECHO_N "(cached) $ECHO_C" >&6
4982
# Double quotes because CXXCPP needs to be expanded
4983
for CXXCPP in "$CXX -E" "/lib/cpp"
4986
for ac_cxx_preproc_warn_flag in '' yes
4988
# Use a header file that comes with gcc, so configuring glibc
4989
# with a fresh cross-compiler works.
4990
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4991
# <limits.h> exists even on freestanding compilers.
4992
# On the NeXT, cc -E runs the code through the compiler's parser,
4993
# not just through cpp. "Syntax error" is here to catch this case.
4994
cat >conftest.$ac_ext <<_ACEOF
4997
cat confdefs.h >>conftest.$ac_ext
4998
cat >>conftest.$ac_ext <<_ACEOF
4999
/* end confdefs.h. */
5001
# include <limits.h>
5003
# include <assert.h>
5007
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5008
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5010
grep -v '^ *+' conftest.er1 >conftest.err
5012
cat conftest.err >&5
5013
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014
(exit $ac_status); } >/dev/null; then
5015
if test -s conftest.err; then
5016
ac_cpp_err=$ac_cxx_preproc_warn_flag
5017
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5024
if test -z "$ac_cpp_err"; then
5027
echo "$as_me: failed program was:" >&5
5028
sed 's/^/| /' conftest.$ac_ext >&5
5030
# Broken: fails on valid input.
5033
rm -f conftest.err conftest.$ac_ext
5035
# OK, works on sane cases. Now check whether non-existent headers
5036
# can be detected and how.
5037
cat >conftest.$ac_ext <<_ACEOF
5040
cat confdefs.h >>conftest.$ac_ext
5041
cat >>conftest.$ac_ext <<_ACEOF
5042
/* end confdefs.h. */
5043
#include <ac_nonexistent.h>
5045
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5046
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5048
grep -v '^ *+' conftest.er1 >conftest.err
5050
cat conftest.err >&5
5051
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052
(exit $ac_status); } >/dev/null; then
5053
if test -s conftest.err; then
5054
ac_cpp_err=$ac_cxx_preproc_warn_flag
5055
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5062
if test -z "$ac_cpp_err"; then
5063
# Broken: success on invalid input.
5066
echo "$as_me: failed program was:" >&5
5067
sed 's/^/| /' conftest.$ac_ext >&5
5069
# Passes both tests.
5073
rm -f conftest.err conftest.$ac_ext
5076
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5077
rm -f conftest.err conftest.$ac_ext
5078
if $ac_preproc_ok; then
5083
ac_cv_prog_CXXCPP=$CXXCPP
5086
CXXCPP=$ac_cv_prog_CXXCPP
5088
ac_cv_prog_CXXCPP=$CXXCPP
5090
echo "$as_me:$LINENO: result: $CXXCPP" >&5
5091
echo "${ECHO_T}$CXXCPP" >&6
5093
for ac_cxx_preproc_warn_flag in '' yes
5095
# Use a header file that comes with gcc, so configuring glibc
5096
# with a fresh cross-compiler works.
5097
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5098
# <limits.h> exists even on freestanding compilers.
5099
# On the NeXT, cc -E runs the code through the compiler's parser,
5100
# not just through cpp. "Syntax error" is here to catch this case.
5101
cat >conftest.$ac_ext <<_ACEOF
5104
cat confdefs.h >>conftest.$ac_ext
5105
cat >>conftest.$ac_ext <<_ACEOF
5106
/* end confdefs.h. */
5108
# include <limits.h>
5110
# include <assert.h>
5114
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5115
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5117
grep -v '^ *+' conftest.er1 >conftest.err
5119
cat conftest.err >&5
5120
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121
(exit $ac_status); } >/dev/null; then
5122
if test -s conftest.err; then
5123
ac_cpp_err=$ac_cxx_preproc_warn_flag
5124
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5131
if test -z "$ac_cpp_err"; then
5134
echo "$as_me: failed program was:" >&5
5135
sed 's/^/| /' conftest.$ac_ext >&5
5137
# Broken: fails on valid input.
5140
rm -f conftest.err conftest.$ac_ext
5142
# OK, works on sane cases. Now check whether non-existent headers
5143
# can be detected and how.
5144
cat >conftest.$ac_ext <<_ACEOF
5147
cat confdefs.h >>conftest.$ac_ext
5148
cat >>conftest.$ac_ext <<_ACEOF
5149
/* end confdefs.h. */
5150
#include <ac_nonexistent.h>
5152
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5153
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5155
grep -v '^ *+' conftest.er1 >conftest.err
5157
cat conftest.err >&5
5158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159
(exit $ac_status); } >/dev/null; then
5160
if test -s conftest.err; then
5161
ac_cpp_err=$ac_cxx_preproc_warn_flag
5162
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5169
if test -z "$ac_cpp_err"; then
5170
# Broken: success on invalid input.
5173
echo "$as_me: failed program was:" >&5
5174
sed 's/^/| /' conftest.$ac_ext >&5
5176
# Passes both tests.
5180
rm -f conftest.err conftest.$ac_ext
5183
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5184
rm -f conftest.err conftest.$ac_ext
5185
if $ac_preproc_ok; then
5188
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5189
See \`config.log' for more details." >&5
5190
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5191
See \`config.log' for more details." >&2;}
5192
{ (exit 1); exit 1; }; }
5196
ac_cpp='$CXXCPP $CPPFLAGS'
5197
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5198
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5199
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5205
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5206
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5207
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5208
if test -n "$ac_tool_prefix"; then
5209
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5211
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5212
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213
echo "$as_me:$LINENO: checking for $ac_word" >&5
5214
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5215
if test "${ac_cv_prog_F77+set}" = set; then
5216
echo $ECHO_N "(cached) $ECHO_C" >&6
5218
if test -n "$F77"; then
5219
ac_cv_prog_F77="$F77" # Let the user override the test.
5221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225
test -z "$as_dir" && as_dir=.
5226
for ac_exec_ext in '' $ac_executable_extensions; do
5227
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5229
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5238
if test -n "$F77"; then
5239
echo "$as_me:$LINENO: result: $F77" >&5
5240
echo "${ECHO_T}$F77" >&6
5242
echo "$as_me:$LINENO: result: no" >&5
5243
echo "${ECHO_T}no" >&6
5246
test -n "$F77" && break
5249
if test -z "$F77"; then
5251
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5253
# Extract the first word of "$ac_prog", so it can be a program name with args.
5254
set dummy $ac_prog; ac_word=$2
5255
echo "$as_me:$LINENO: checking for $ac_word" >&5
5256
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5257
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5258
echo $ECHO_N "(cached) $ECHO_C" >&6
5260
if test -n "$ac_ct_F77"; then
5261
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5263
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267
test -z "$as_dir" && as_dir=.
5268
for ac_exec_ext in '' $ac_executable_extensions; do
5269
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270
ac_cv_prog_ac_ct_F77="$ac_prog"
5271
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5279
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5280
if test -n "$ac_ct_F77"; then
5281
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5282
echo "${ECHO_T}$ac_ct_F77" >&6
5284
echo "$as_me:$LINENO: result: no" >&5
5285
echo "${ECHO_T}no" >&6
5288
test -n "$ac_ct_F77" && break
5295
# Provide some information about the compiler.
5296
echo "$as_me:5296:" \
5297
"checking for Fortran 77 compiler version" >&5
5298
ac_compiler=`set X $ac_compile; echo $2`
5299
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5300
(eval $ac_compiler --version </dev/null >&5) 2>&5
5302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303
(exit $ac_status); }
5304
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5305
(eval $ac_compiler -v </dev/null >&5) 2>&5
5307
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308
(exit $ac_status); }
5309
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5310
(eval $ac_compiler -V </dev/null >&5) 2>&5
5312
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313
(exit $ac_status); }
5316
# If we don't use `.F' as extension, the preprocessor is not run on the
5317
# input file. (Note that this only needs to work for GNU compilers.)
5320
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5321
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5322
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5323
echo $ECHO_N "(cached) $ECHO_C" >&6
5325
cat >conftest.$ac_ext <<_ACEOF
5333
rm -f conftest.$ac_objext
5334
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5335
(eval $ac_compile) 2>conftest.er1
5337
grep -v '^ *+' conftest.er1 >conftest.err
5339
cat conftest.err >&5
5340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341
(exit $ac_status); } &&
5342
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5343
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347
(exit $ac_status); }; } &&
5348
{ ac_try='test -s conftest.$ac_objext'
5349
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353
(exit $ac_status); }; }; then
5356
echo "$as_me: failed program was:" >&5
5357
sed 's/^/| /' conftest.$ac_ext >&5
5361
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5362
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5365
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5366
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5368
ac_test_FFLAGS=${FFLAGS+set}
5369
ac_save_FFLAGS=$FFLAGS
5371
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5372
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5373
if test "${ac_cv_prog_f77_g+set}" = set; then
5374
echo $ECHO_N "(cached) $ECHO_C" >&6
5377
cat >conftest.$ac_ext <<_ACEOF
5382
rm -f conftest.$ac_objext
5383
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5384
(eval $ac_compile) 2>conftest.er1
5386
grep -v '^ *+' conftest.er1 >conftest.err
5388
cat conftest.err >&5
5389
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390
(exit $ac_status); } &&
5391
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5392
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396
(exit $ac_status); }; } &&
5397
{ ac_try='test -s conftest.$ac_objext'
5398
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402
(exit $ac_status); }; }; then
5403
ac_cv_prog_f77_g=yes
5405
echo "$as_me: failed program was:" >&5
5406
sed 's/^/| /' conftest.$ac_ext >&5
5410
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5413
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5414
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5415
if test "$ac_test_FFLAGS" = set; then
5416
FFLAGS=$ac_save_FFLAGS
5417
elif test $ac_cv_prog_f77_g = yes; then
5418
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5424
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5431
G77=`test $ac_compiler_gnu = yes && echo yes`
5433
ac_cpp='$CPP $CPPFLAGS'
5434
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5435
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5436
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5440
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5442
# find the maximum length of command line arguments
5443
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5444
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5445
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5446
echo $ECHO_N "(cached) $ECHO_C" >&6
5453
# On DJGPP, this test can blow up pretty badly due to problems in libc
5454
# (any single argument exceeding 2000 bytes causes a buffer overrun
5455
# during glob expansion). Even if it were fixed, the result of this
5456
# check would be larger than it should be.
5457
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5461
# Under GNU Hurd, this test is not required because there is
5462
# no limit to the length of command line arguments.
5463
# Libtool will interpret -1 as no limit whatsoever
5464
lt_cv_sys_max_cmd_len=-1;
5468
# On Win9x/ME, this test blows up -- it succeeds, but takes
5469
# about 5 minutes as the teststring grows exponentially.
5470
# Worse, since 9x/ME are not pre-emptively multitasking,
5471
# you end up with a "frozen" computer, even though with patience
5472
# the test eventually succeeds (with a max line length of 256k).
5473
# Instead, let's just punt: use the minimum linelength reported by
5474
# all of the supported platforms: 8192 (on NT/2K/XP).
5475
lt_cv_sys_max_cmd_len=8192;
5479
# On AmigaOS with pdksh, this test takes hours, literally.
5480
# So we just punt and use a minimum line length of 8192.
5481
lt_cv_sys_max_cmd_len=8192;
5484
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5485
# This has been around since 386BSD, at least. Likely further.
5486
if test -x /sbin/sysctl; then
5487
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5488
elif test -x /usr/sbin/sysctl; then
5489
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5491
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5493
# And add a safety zone
5494
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5495
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5499
# We know the value 262144 and hardcode it with a safety zone (like BSD)
5500
lt_cv_sys_max_cmd_len=196608
5504
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5505
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5506
# nice to cause kernel panics so lets avoid the loop below.
5507
# First set a reasonable default.
5508
lt_cv_sys_max_cmd_len=16384
5510
if test -x /sbin/sysconfig; then
5511
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5512
*1*) lt_cv_sys_max_cmd_len=-1 ;;
5517
lt_cv_sys_max_cmd_len=102400
5519
sysv5* | sco5v6* | sysv4.2uw2*)
5520
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5521
if test -n "$kargmax"; then
5522
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5524
lt_cv_sys_max_cmd_len=32768
5528
# If test is not a shell built-in, we'll probably end up computing a
5529
# maximum length that is only half of the actual maximum length, but
5531
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5532
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5533
= "XX$teststring") >/dev/null 2>&1 &&
5534
new_result=`expr "X$teststring" : ".*" 2>&1` &&
5535
lt_cv_sys_max_cmd_len=$new_result &&
5536
test $i != 17 # 1/2 MB should be enough
5539
teststring=$teststring$teststring
5542
# Add a significant safety factor because C++ compilers can tack on massive
5543
# amounts of additional arguments before passing them to the linker.
5544
# It appears as though 1/2 is a usable value.
5545
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5551
if test -n $lt_cv_sys_max_cmd_len ; then
5552
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5553
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5555
echo "$as_me:$LINENO: result: none" >&5
5556
echo "${ECHO_T}none" >&6
5562
# Check for command to grab the raw symbol name followed by C symbol from nm.
5563
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5564
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5565
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5566
echo $ECHO_N "(cached) $ECHO_C" >&6
5569
# These are sane defaults that work on at least a few old systems.
5570
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5572
# Character class describing NM global symbol codes.
5573
symcode='[BCDEGRST]'
5575
# Regexp to match symbols that can be accessed directly from C.
5576
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5578
# Transform an extracted symbol line into a proper C declaration
5579
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5581
# Transform an extracted symbol line into symbol name and symbol address
5582
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'"
5584
# Define system-specific variables.
5589
cygwin* | mingw* | pw32*)
5590
symcode='[ABCDGISTW]'
5592
hpux*) # Its linker distinguishes data from code symbols
5593
if test "$host_cpu" = ia64; then
5594
symcode='[ABCDEGRST]'
5596
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5597
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'"
5600
if test "$host_cpu" = ia64; then
5601
symcode='[ABCDGIRSTW]'
5602
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5603
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'"
5607
symcode='[BCDEGRST]'
5610
symcode='[BCDEGQRST]'
5621
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5629
# Handle CRLF in mingw tool chain
5633
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5637
# If we're using GNU nm, then use its standard symbol codes.
5638
case `$NM -V 2>&1` in
5639
*GNU* | *'with BFD'*)
5640
symcode='[ABCDGIRSTW]' ;;
5643
# Try without a prefix undercore, then with it.
5644
for ac_symprfx in "" "_"; do
5646
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5647
symxfrm="\\1 $ac_symprfx\\2 \\2"
5649
# Write the raw and C identifiers.
5650
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5652
# Check to see that the pipe works correctly.
5656
cat > conftest.$ac_ext <<EOF
5661
void nm_test_func(){}
5665
int main(){nm_test_var='a';nm_test_func();return(0);}
5668
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5669
(eval $ac_compile) 2>&5
5671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672
(exit $ac_status); }; then
5673
# Now try to grab the symbols.
5675
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5676
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5678
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679
(exit $ac_status); } && test -s "$nlist"; then
5680
# Try sorting and uniquifying the output.
5681
if sort "$nlist" | uniq > "$nlist"T; then
5682
mv -f "$nlist"T "$nlist"
5687
# Make sure that we snagged all the symbols we need.
5688
if grep ' nm_test_var$' "$nlist" >/dev/null; then
5689
if grep ' nm_test_func$' "$nlist" >/dev/null; then
5690
cat <<EOF > conftest.$ac_ext
5696
# Now generate the symbol file.
5697
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5699
cat <<EOF >> conftest.$ac_ext
5700
#if defined (__STDC__) && __STDC__
5701
# define lt_ptr_t void *
5703
# define lt_ptr_t char *
5707
/* The mapping between symbol names and symbols. */
5712
lt_preloaded_symbols[] =
5715
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5716
cat <<\EOF >> conftest.$ac_ext
5724
# Now try linking the two files.
5725
mv conftest.$ac_objext conftstm.$ac_objext
5726
lt_save_LIBS="$LIBS"
5727
lt_save_CFLAGS="$CFLAGS"
5728
LIBS="conftstm.$ac_objext"
5729
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5730
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5731
(eval $ac_link) 2>&5
5733
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734
(exit $ac_status); } && test -s conftest${ac_exeext}; then
5737
LIBS="$lt_save_LIBS"
5738
CFLAGS="$lt_save_CFLAGS"
5740
echo "cannot find nm_test_func in $nlist" >&5
5743
echo "cannot find nm_test_var in $nlist" >&5
5746
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5749
echo "$progname: failed program was:" >&5
5750
cat conftest.$ac_ext >&5
5752
rm -f conftest* conftst*
5754
# Do not use the global_symbol_pipe unless it works.
5755
if test "$pipe_works" = yes; then
5758
lt_cv_sys_global_symbol_pipe=
5764
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5765
lt_cv_sys_global_symbol_to_cdecl=
5767
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5768
echo "$as_me:$LINENO: result: failed" >&5
5769
echo "${ECHO_T}failed" >&6
5771
echo "$as_me:$LINENO: result: ok" >&5
5772
echo "${ECHO_T}ok" >&6
5775
echo "$as_me:$LINENO: checking for objdir" >&5
5776
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5777
if test "${lt_cv_objdir+set}" = set; then
5778
echo $ECHO_N "(cached) $ECHO_C" >&6
5780
rm -f .libs 2>/dev/null
5781
mkdir .libs 2>/dev/null
5782
if test -d .libs; then
5785
# MS-DOS does not allow filenames that begin with a dot.
5788
rmdir .libs 2>/dev/null
5790
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5791
echo "${ECHO_T}$lt_cv_objdir" >&6
5792
objdir=$lt_cv_objdir
5800
# AIX sometimes has problems with the GCC collect2 program. For some
5801
# reason, if we set the COLLECT_NAMES environment variable, the problems
5802
# vanish in a puff of smoke.
5803
if test "X${COLLECT_NAMES+set}" != Xset; then
5805
export COLLECT_NAMES
5810
# Sed substitution that helps us do robust quoting. It backslashifies
5811
# metacharacters that are still active within double-quoted strings.
5812
Xsed='sed -e 1s/^X//'
5813
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5815
# Same as above, but do not quote variable references.
5816
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5818
# Sed substitution to delay expansion of an escaped shell variable in a
5819
# double_quote_subst'ed string.
5820
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5822
# Sed substitution to avoid accidental globbing in evaled expressions
5823
no_glob_subst='s/\*/\\\*/g'
5829
default_ofile=libtool
5830
can_build_shared=yes
5832
# All known linkers require a `.a' archive for static linking (except MSVC,
5833
# which needs '.lib').
5835
ltmain="$ac_aux_dir/ltmain.sh"
5836
ofile="$default_ofile"
5837
with_gnu_ld="$lt_cv_prog_gnu_ld"
5839
if test -n "$ac_tool_prefix"; then
5840
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5841
set dummy ${ac_tool_prefix}ar; ac_word=$2
5842
echo "$as_me:$LINENO: checking for $ac_word" >&5
5843
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5844
if test "${ac_cv_prog_AR+set}" = set; then
5845
echo $ECHO_N "(cached) $ECHO_C" >&6
5847
if test -n "$AR"; then
5848
ac_cv_prog_AR="$AR" # Let the user override the test.
5850
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854
test -z "$as_dir" && as_dir=.
5855
for ac_exec_ext in '' $ac_executable_extensions; do
5856
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5857
ac_cv_prog_AR="${ac_tool_prefix}ar"
5858
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867
if test -n "$AR"; then
5868
echo "$as_me:$LINENO: result: $AR" >&5
5869
echo "${ECHO_T}$AR" >&6
5871
echo "$as_me:$LINENO: result: no" >&5
5872
echo "${ECHO_T}no" >&6
5876
if test -z "$ac_cv_prog_AR"; then
5878
# Extract the first word of "ar", so it can be a program name with args.
5879
set dummy ar; ac_word=$2
5880
echo "$as_me:$LINENO: checking for $ac_word" >&5
5881
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5882
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5883
echo $ECHO_N "(cached) $ECHO_C" >&6
5885
if test -n "$ac_ct_AR"; then
5886
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5888
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892
test -z "$as_dir" && as_dir=.
5893
for ac_exec_ext in '' $ac_executable_extensions; do
5894
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5895
ac_cv_prog_ac_ct_AR="ar"
5896
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5902
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5905
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5906
if test -n "$ac_ct_AR"; then
5907
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5908
echo "${ECHO_T}$ac_ct_AR" >&6
5910
echo "$as_me:$LINENO: result: no" >&5
5911
echo "${ECHO_T}no" >&6
5919
if test -n "$ac_tool_prefix"; then
5920
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5921
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5922
echo "$as_me:$LINENO: checking for $ac_word" >&5
5923
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5924
if test "${ac_cv_prog_RANLIB+set}" = set; then
5925
echo $ECHO_N "(cached) $ECHO_C" >&6
5927
if test -n "$RANLIB"; then
5928
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5930
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934
test -z "$as_dir" && as_dir=.
5935
for ac_exec_ext in '' $ac_executable_extensions; do
5936
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5937
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5938
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5946
RANLIB=$ac_cv_prog_RANLIB
5947
if test -n "$RANLIB"; then
5948
echo "$as_me:$LINENO: result: $RANLIB" >&5
5949
echo "${ECHO_T}$RANLIB" >&6
5951
echo "$as_me:$LINENO: result: no" >&5
5952
echo "${ECHO_T}no" >&6
5956
if test -z "$ac_cv_prog_RANLIB"; then
5957
ac_ct_RANLIB=$RANLIB
5958
# Extract the first word of "ranlib", so it can be a program name with args.
5959
set dummy ranlib; ac_word=$2
5960
echo "$as_me:$LINENO: checking for $ac_word" >&5
5961
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5962
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5963
echo $ECHO_N "(cached) $ECHO_C" >&6
5965
if test -n "$ac_ct_RANLIB"; then
5966
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5968
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972
test -z "$as_dir" && as_dir=.
5973
for ac_exec_ext in '' $ac_executable_extensions; do
5974
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5975
ac_cv_prog_ac_ct_RANLIB="ranlib"
5976
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5982
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5985
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5986
if test -n "$ac_ct_RANLIB"; then
5987
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5988
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5990
echo "$as_me:$LINENO: result: no" >&5
5991
echo "${ECHO_T}no" >&6
5994
RANLIB=$ac_ct_RANLIB
5996
RANLIB="$ac_cv_prog_RANLIB"
5999
if test -n "$ac_tool_prefix"; then
6000
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6001
set dummy ${ac_tool_prefix}strip; ac_word=$2
6002
echo "$as_me:$LINENO: checking for $ac_word" >&5
6003
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6004
if test "${ac_cv_prog_STRIP+set}" = set; then
6005
echo $ECHO_N "(cached) $ECHO_C" >&6
6007
if test -n "$STRIP"; then
6008
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6010
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014
test -z "$as_dir" && as_dir=.
6015
for ac_exec_ext in '' $ac_executable_extensions; do
6016
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6017
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6018
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6026
STRIP=$ac_cv_prog_STRIP
6027
if test -n "$STRIP"; then
6028
echo "$as_me:$LINENO: result: $STRIP" >&5
6029
echo "${ECHO_T}$STRIP" >&6
6031
echo "$as_me:$LINENO: result: no" >&5
6032
echo "${ECHO_T}no" >&6
6036
if test -z "$ac_cv_prog_STRIP"; then
6038
# Extract the first word of "strip", so it can be a program name with args.
6039
set dummy strip; ac_word=$2
6040
echo "$as_me:$LINENO: checking for $ac_word" >&5
6041
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6042
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6043
echo $ECHO_N "(cached) $ECHO_C" >&6
6045
if test -n "$ac_ct_STRIP"; then
6046
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6048
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052
test -z "$as_dir" && as_dir=.
6053
for ac_exec_ext in '' $ac_executable_extensions; do
6054
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6055
ac_cv_prog_ac_ct_STRIP="strip"
6056
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6062
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6065
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6066
if test -n "$ac_ct_STRIP"; then
6067
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6068
echo "${ECHO_T}$ac_ct_STRIP" >&6
6070
echo "$as_me:$LINENO: result: no" >&5
6071
echo "${ECHO_T}no" >&6
6076
STRIP="$ac_cv_prog_STRIP"
6081
old_CFLAGS="$CFLAGS"
6083
# Set sane defaults for various variables
6084
test -z "$AR" && AR=ar
6085
test -z "$AR_FLAGS" && AR_FLAGS=cru
6086
test -z "$AS" && AS=as
6087
test -z "$CC" && CC=cc
6088
test -z "$LTCC" && LTCC=$CC
6089
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6090
test -z "$DLLTOOL" && DLLTOOL=dlltool
6091
test -z "$LD" && LD=ld
6092
test -z "$LN_S" && LN_S="ln -s"
6093
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6094
test -z "$NM" && NM=nm
6095
test -z "$SED" && SED=sed
6096
test -z "$OBJDUMP" && OBJDUMP=objdump
6097
test -z "$RANLIB" && RANLIB=:
6098
test -z "$STRIP" && STRIP=:
6099
test -z "$ac_objext" && ac_objext=o
6101
# Determine commands to create old-style static archives.
6102
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6103
old_postinstall_cmds='chmod 644 $oldlib'
6104
old_postuninstall_cmds=
6106
if test -n "$RANLIB"; then
6109
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6112
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6115
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6118
for cc_temp in $compiler""; do
6120
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6121
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6126
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6129
# Only perform the check for file, if the check method requires it
6130
case $deplibs_check_method in
6132
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6133
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6134
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6135
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6136
echo $ECHO_N "(cached) $ECHO_C" >&6
6140
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6143
lt_save_MAGIC_CMD="$MAGIC_CMD"
6144
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6145
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6146
for ac_dir in $ac_dummy; do
6148
test -z "$ac_dir" && ac_dir=.
6149
if test -f $ac_dir/${ac_tool_prefix}file; then
6150
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6151
if test -n "$file_magic_test_file"; then
6152
case $deplibs_check_method in
6154
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6155
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6156
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6157
$EGREP "$file_magic_regex" > /dev/null; then
6162
*** Warning: the command libtool uses to detect shared libraries,
6163
*** $file_magic_cmd, produces output that libtool cannot recognize.
6164
*** The result is that libtool may fail to recognize shared libraries
6165
*** as such. This will affect the creation of libtool libraries that
6166
*** depend on shared libraries, but programs linked with such libtool
6167
*** libraries will work regardless of this problem. Nevertheless, you
6168
*** may want to report the problem to your system manager and/or to
6169
*** bug-libtool@gnu.org
6179
MAGIC_CMD="$lt_save_MAGIC_CMD"
6184
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6185
if test -n "$MAGIC_CMD"; then
6186
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6187
echo "${ECHO_T}$MAGIC_CMD" >&6
6189
echo "$as_me:$LINENO: result: no" >&5
6190
echo "${ECHO_T}no" >&6
6193
if test -z "$lt_cv_path_MAGIC_CMD"; then
6194
if test -n "$ac_tool_prefix"; then
6195
echo "$as_me:$LINENO: checking for file" >&5
6196
echo $ECHO_N "checking for file... $ECHO_C" >&6
6197
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6198
echo $ECHO_N "(cached) $ECHO_C" >&6
6202
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6205
lt_save_MAGIC_CMD="$MAGIC_CMD"
6206
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6207
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6208
for ac_dir in $ac_dummy; do
6210
test -z "$ac_dir" && ac_dir=.
6211
if test -f $ac_dir/file; then
6212
lt_cv_path_MAGIC_CMD="$ac_dir/file"
6213
if test -n "$file_magic_test_file"; then
6214
case $deplibs_check_method in
6216
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6217
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6218
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6219
$EGREP "$file_magic_regex" > /dev/null; then
6224
*** Warning: the command libtool uses to detect shared libraries,
6225
*** $file_magic_cmd, produces output that libtool cannot recognize.
6226
*** The result is that libtool may fail to recognize shared libraries
6227
*** as such. This will affect the creation of libtool libraries that
6228
*** depend on shared libraries, but programs linked with such libtool
6229
*** libraries will work regardless of this problem. Nevertheless, you
6230
*** may want to report the problem to your system manager and/or to
6231
*** bug-libtool@gnu.org
6241
MAGIC_CMD="$lt_save_MAGIC_CMD"
6246
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6247
if test -n "$MAGIC_CMD"; then
6248
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6249
echo "${ECHO_T}$MAGIC_CMD" >&6
6251
echo "$as_me:$LINENO: result: no" >&5
6252
echo "${ECHO_T}no" >&6
6267
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6268
if test "${enable_libtool_lock+set}" = set; then
6269
enableval="$enable_libtool_lock"
6272
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6275
# Check whether --with-pic or --without-pic was given.
6276
if test "${with_pic+set}" = set; then
6282
test -z "$pic_mode" && pic_mode=default
6284
# Use C for the default configuration in the libtool script
6288
ac_cpp='$CPP $CPPFLAGS'
6289
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6290
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6291
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6294
# Source file extension for C test sources.
6297
# Object file extension for compiled C test sources.
6301
# Code to be used in simple compile tests
6302
lt_simple_compile_test_code="int some_variable = 0;\n"
6304
# Code to be used in simple link tests
6305
lt_simple_link_test_code='int main(){return(0);}\n'
6308
# If no C compiler was specified, use CC.
6311
# If no C compiler flags were specified, use CFLAGS.
6312
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6314
# Allow CC to be a program name with arguments.
6318
# save warnings/boilerplate of simple test code
6319
ac_outfile=conftest.$ac_objext
6320
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6321
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6322
_lt_compiler_boilerplate=`cat conftest.err`
6325
ac_outfile=conftest.$ac_objext
6326
printf "$lt_simple_link_test_code" >conftest.$ac_ext
6327
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6328
_lt_linker_boilerplate=`cat conftest.err`
6333
lt_prog_compiler_no_builtin_flag=
6335
if test "$GCC" = yes; then
6336
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6339
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6340
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6341
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6342
echo $ECHO_N "(cached) $ECHO_C" >&6
6344
lt_cv_prog_compiler_rtti_exceptions=no
6345
ac_outfile=conftest.$ac_objext
6346
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6347
lt_compiler_flag="-fno-rtti -fno-exceptions"
6348
# Insert the option either (1) after the last *FLAGS variable, or
6349
# (2) before a word containing "conftest.", or (3) at the end.
6350
# Note that $ac_compile itself does not contain backslashes and begins
6351
# with a dollar sign (not a hyphen), so the echo should work correctly.
6352
# The option is referenced via a variable to avoid confusing sed.
6353
lt_compile=`echo "$ac_compile" | $SED \
6354
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6355
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6356
-e 's:$: $lt_compiler_flag:'`
6357
(eval echo "\"\$as_me:6357: $lt_compile\"" >&5)
6358
(eval "$lt_compile" 2>conftest.err)
6360
cat conftest.err >&5
6361
echo "$as_me:6361: \$? = $ac_status" >&5
6362
if (exit $ac_status) && test -s "$ac_outfile"; then
6363
# The compiler can only warn and ignore the option if not recognized
6364
# So say no if there are warnings other than the usual output.
6365
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6366
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6367
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6368
lt_cv_prog_compiler_rtti_exceptions=yes
6374
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6375
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6377
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6378
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6385
lt_prog_compiler_wl=
6386
lt_prog_compiler_pic=
6387
lt_prog_compiler_static=
6389
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6390
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6392
if test "$GCC" = yes; then
6393
lt_prog_compiler_wl='-Wl,'
6394
lt_prog_compiler_static='-static'
6398
# All AIX code is PIC.
6399
if test "$host_cpu" = ia64; then
6400
# AIX 5 now supports IA64 processor
6401
lt_prog_compiler_static='-Bstatic'
6406
# FIXME: we need at least 68020 code to build shared libraries, but
6407
# adding the `-m68020' flag to GCC prevents building anything better,
6409
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6412
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6413
# PIC is the default for these OSes.
6416
mingw* | pw32* | os2*)
6417
# This hack is so that the source file can tell whether it is being
6418
# built for inclusion in a dll (and should export symbols for example).
6419
lt_prog_compiler_pic='-DDLL_EXPORT'
6422
darwin* | rhapsody*)
6423
# PIC is the default on this platform
6424
# Common symbols not allowed in MH_DYLIB files
6425
lt_prog_compiler_pic='-fno-common'
6429
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
6430
# Instead, we relocate shared libraries at runtime.
6434
# Just because we use GCC doesn't mean we suddenly get shared libraries
6435
# on systems that don't support them.
6436
lt_prog_compiler_can_build_shared=no
6441
if test -d /usr/nec; then
6442
lt_prog_compiler_pic=-Kconform_pic
6447
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6454
lt_prog_compiler_pic='-fPIC'
6460
lt_prog_compiler_pic='-fPIC'
6464
# PORTME Check for flag to pass linker flags through the system compiler.
6467
lt_prog_compiler_wl='-Wl,'
6468
if test "$host_cpu" = ia64; then
6469
# AIX 5 now supports IA64 processor
6470
lt_prog_compiler_static='-Bstatic'
6472
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6476
# PIC is the default on this platform
6477
# Common symbols not allowed in MH_DYLIB files
6478
case $cc_basename in
6480
lt_prog_compiler_pic='-qnocommon'
6481
lt_prog_compiler_wl='-Wl,'
6486
mingw* | pw32* | os2*)
6487
# This hack is so that the source file can tell whether it is being
6488
# built for inclusion in a dll (and should export symbols for example).
6489
lt_prog_compiler_pic='-DDLL_EXPORT'
6492
hpux9* | hpux10* | hpux11*)
6493
lt_prog_compiler_wl='-Wl,'
6494
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6501
lt_prog_compiler_pic='+Z'
6504
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6505
lt_prog_compiler_static='${wl}-a ${wl}archive'
6508
irix5* | irix6* | nonstopux*)
6509
lt_prog_compiler_wl='-Wl,'
6510
# PIC (with -KPIC) is the default.
6511
lt_prog_compiler_static='-non_shared'
6515
lt_prog_compiler_pic='-KPIC'
6516
lt_prog_compiler_static='-Bstatic'
6520
case $cc_basename in
6522
lt_prog_compiler_wl='-Wl,'
6523
lt_prog_compiler_pic='-KPIC'
6524
lt_prog_compiler_static='-static'
6526
pgcc* | pgf77* | pgf90* | pgf95*)
6527
# Portland Group compilers (*not* the Pentium gcc compiler,
6528
# which looks to be a dead project)
6529
lt_prog_compiler_wl='-Wl,'
6530
lt_prog_compiler_pic='-fpic'
6531
lt_prog_compiler_static='-Bstatic'
6534
lt_prog_compiler_wl='-Wl,'
6535
# All Alpha code is PIC.
6536
lt_prog_compiler_static='-non_shared'
6541
osf3* | osf4* | osf5*)
6542
lt_prog_compiler_wl='-Wl,'
6543
# All OSF/1 code is PIC.
6544
lt_prog_compiler_static='-non_shared'
6548
lt_prog_compiler_pic='-KPIC'
6549
lt_prog_compiler_static='-Bstatic'
6550
case $cc_basename in
6552
lt_prog_compiler_wl='-Qoption ld ';;
6554
lt_prog_compiler_wl='-Wl,';;
6559
lt_prog_compiler_wl='-Qoption ld '
6560
lt_prog_compiler_pic='-PIC'
6561
lt_prog_compiler_static='-Bstatic'
6564
sysv4 | sysv4.2uw2* | sysv4.3*)
6565
lt_prog_compiler_wl='-Wl,'
6566
lt_prog_compiler_pic='-KPIC'
6567
lt_prog_compiler_static='-Bstatic'
6571
if test -d /usr/nec ;then
6572
lt_prog_compiler_pic='-Kconform_pic'
6573
lt_prog_compiler_static='-Bstatic'
6577
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6578
lt_prog_compiler_wl='-Wl,'
6579
lt_prog_compiler_pic='-KPIC'
6580
lt_prog_compiler_static='-Bstatic'
6584
lt_prog_compiler_wl='-Wl,'
6585
lt_prog_compiler_can_build_shared=no
6589
lt_prog_compiler_pic='-pic'
6590
lt_prog_compiler_static='-Bstatic'
6594
lt_prog_compiler_can_build_shared=no
6599
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6600
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6603
# Check to make sure the PIC flag actually works.
6605
if test -n "$lt_prog_compiler_pic"; then
6607
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6608
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6609
if test "${lt_prog_compiler_pic_works+set}" = set; then
6610
echo $ECHO_N "(cached) $ECHO_C" >&6
6612
lt_prog_compiler_pic_works=no
6613
ac_outfile=conftest.$ac_objext
6614
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6615
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6616
# Insert the option either (1) after the last *FLAGS variable, or
6617
# (2) before a word containing "conftest.", or (3) at the end.
6618
# Note that $ac_compile itself does not contain backslashes and begins
6619
# with a dollar sign (not a hyphen), so the echo should work correctly.
6620
# The option is referenced via a variable to avoid confusing sed.
6621
lt_compile=`echo "$ac_compile" | $SED \
6622
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6623
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6624
-e 's:$: $lt_compiler_flag:'`
6625
(eval echo "\"\$as_me:6625: $lt_compile\"" >&5)
6626
(eval "$lt_compile" 2>conftest.err)
6628
cat conftest.err >&5
6629
echo "$as_me:6629: \$? = $ac_status" >&5
6630
if (exit $ac_status) && test -s "$ac_outfile"; then
6631
# The compiler can only warn and ignore the option if not recognized
6632
# So say no if there are warnings other than the usual output.
6633
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6634
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6635
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6636
lt_prog_compiler_pic_works=yes
6642
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6643
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6645
if test x"$lt_prog_compiler_pic_works" = xyes; then
6646
case $lt_prog_compiler_pic in
6648
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6651
lt_prog_compiler_pic=
6652
lt_prog_compiler_can_build_shared=no
6657
# For platforms which do not support PIC, -DPIC is meaningless:
6659
lt_prog_compiler_pic=
6662
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6667
# Check to make sure the static flag actually works.
6669
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6670
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6671
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6672
if test "${lt_prog_compiler_static_works+set}" = set; then
6673
echo $ECHO_N "(cached) $ECHO_C" >&6
6675
lt_prog_compiler_static_works=no
6676
save_LDFLAGS="$LDFLAGS"
6677
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6678
printf "$lt_simple_link_test_code" > conftest.$ac_ext
6679
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6680
# The linker can only warn and ignore the option if not recognized
6681
# So say no if there are warnings
6682
if test -s conftest.err; then
6683
# Append any errors to the config.log.
6684
cat conftest.err 1>&5
6685
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6686
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6687
if diff conftest.exp conftest.er2 >/dev/null; then
6688
lt_prog_compiler_static_works=yes
6691
lt_prog_compiler_static_works=yes
6695
LDFLAGS="$save_LDFLAGS"
6698
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6699
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6701
if test x"$lt_prog_compiler_static_works" = xyes; then
6704
lt_prog_compiler_static=
6708
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6709
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6710
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6711
echo $ECHO_N "(cached) $ECHO_C" >&6
6713
lt_cv_prog_compiler_c_o=no
6714
$rm -r conftest 2>/dev/null
6718
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6720
lt_compiler_flag="-o out/conftest2.$ac_objext"
6721
# Insert the option either (1) after the last *FLAGS variable, or
6722
# (2) before a word containing "conftest.", or (3) at the end.
6723
# Note that $ac_compile itself does not contain backslashes and begins
6724
# with a dollar sign (not a hyphen), so the echo should work correctly.
6725
lt_compile=`echo "$ac_compile" | $SED \
6726
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6727
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6728
-e 's:$: $lt_compiler_flag:'`
6729
(eval echo "\"\$as_me:6729: $lt_compile\"" >&5)
6730
(eval "$lt_compile" 2>out/conftest.err)
6732
cat out/conftest.err >&5
6733
echo "$as_me:6733: \$? = $ac_status" >&5
6734
if (exit $ac_status) && test -s out/conftest2.$ac_objext
6736
# The compiler can only warn and ignore the option if not recognized
6737
# So say no if there are warnings
6738
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6739
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6740
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6741
lt_cv_prog_compiler_c_o=yes
6746
# SGI C++ compiler will create directory out/ii_files/ for
6747
# template instantiation
6748
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6749
$rm out/* && rmdir out
6755
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6756
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6759
hard_links="nottested"
6760
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6761
# do not overwrite the value of need_locks provided by the user
6762
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6763
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6766
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6768
ln conftest.a conftest.b 2>&5 || hard_links=no
6769
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6770
echo "$as_me:$LINENO: result: $hard_links" >&5
6771
echo "${ECHO_T}$hard_links" >&6
6772
if test "$hard_links" = no; then
6773
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6774
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6781
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6782
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6785
allow_undefined_flag=
6786
enable_shared_with_static_runtimes=no
6788
archive_expsym_cmds=
6789
old_archive_From_new_cmds=
6790
old_archive_from_expsyms_cmds=
6791
export_dynamic_flag_spec=
6792
whole_archive_flag_spec=
6793
thread_safe_flag_spec=
6794
hardcode_libdir_flag_spec=
6795
hardcode_libdir_flag_spec_ld=
6796
hardcode_libdir_separator=
6799
hardcode_shlibpath_var=unsupported
6800
link_all_deplibs=unknown
6801
hardcode_automatic=no
6804
always_export_symbols=no
6805
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6806
# include_expsyms should be a list of space-separated symbols to be *always*
6807
# included in the symbol list
6809
# exclude_expsyms can be an extended regexp of symbols to exclude
6810
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6811
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6812
# as well as any symbol that contains `d'.
6813
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6814
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6815
# platforms (ab)use it in PIC code, but their linkers get confused if
6816
# the symbol is explicitly referenced. Since portable code cannot
6817
# rely on this symbol name, it's probably fine to never include it in
6818
# preloaded symbol tables.
6819
extract_expsyms_cmds=
6820
# Just being paranoid about ensuring that cc_basename is set.
6821
for cc_temp in $compiler""; do
6823
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6824
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6829
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6832
cygwin* | mingw* | pw32*)
6833
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6834
# When not using gcc, we currently assume that we are using
6835
# Microsoft Visual C++.
6836
if test "$GCC" != yes; then
6841
# we just hope/assume this is gcc and not c89 (= MSVC++)
6850
if test "$with_gnu_ld" = yes; then
6851
# If archive_cmds runs LD, not CC, wlarc should be empty
6854
# Set some defaults for GNU ld with shared library support. These
6855
# are reset later if shared libraries are not supported. Putting them
6856
# here allows them to be overridden if necessary.
6857
runpath_var=LD_RUN_PATH
6858
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6859
export_dynamic_flag_spec='${wl}--export-dynamic'
6860
# ancient GNU ld didn't support --whole-archive et. al.
6861
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6862
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6864
whole_archive_flag_spec=
6866
supports_anon_versioning=no
6867
case `$LD -v 2>/dev/null` in
6868
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6869
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6870
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6871
*\ 2.11.*) ;; # other 2.11 versions
6872
*) supports_anon_versioning=yes ;;
6875
# See if GNU ld supports shared libraries.
6877
aix3* | aix4* | aix5*)
6878
# On AIX/PPC, the GNU linker is very broken
6879
if test "$host_cpu" != ia64; then
6883
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6884
*** to be unable to reliably create shared libraries on AIX.
6885
*** Therefore, libtool is disabling shared libraries support. If you
6886
*** really care for shared libraries, you may want to modify your PATH
6887
*** so that a non-GNU linker is found, and then restart.
6894
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)'
6895
hardcode_libdir_flag_spec='-L$libdir'
6896
hardcode_minus_L=yes
6898
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6899
# that the semantics of dynamic libraries on AmigaOS, at least up
6900
# to version 4, is to share data among multiple programs linked
6901
# with the same dynamic library. Since this doesn't match the
6902
# behavior of shared libraries on other platforms, we can't use
6908
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6909
allow_undefined_flag=unsupported
6910
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6911
# support --undefined. This deserves some investigation. FIXME
6912
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6918
cygwin* | mingw* | pw32*)
6919
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6920
# as there is no search path for DLLs.
6921
hardcode_libdir_flag_spec='-L$libdir'
6922
allow_undefined_flag=unsupported
6923
always_export_symbols=no
6924
enable_shared_with_static_runtimes=yes
6925
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6927
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6928
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6929
# If the export-symbols file already is a .def file (1st line
6930
# is EXPORTS), use it as is; otherwise, prepend...
6931
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6932
cp $export_symbols $output_objdir/$soname.def;
6934
echo EXPORTS > $output_objdir/$soname.def;
6935
cat $export_symbols >> $output_objdir/$soname.def;
6937
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6945
hardcode_shlibpath_var=no
6946
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6947
export_dynamic_flag_spec='${wl}-E'
6948
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6949
# Instead, shared libraries are loaded at an image base (0x10000000 by
6950
# default) and relocated if they conflict, which is a slow very memory
6951
# consuming and fragmenting process. To avoid this, we pick a random,
6952
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6953
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6954
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6955
archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6959
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6961
case $cc_basename,$host_cpu in
6962
pgcc*) # Portland Group C compiler
6963
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6964
tmp_addflag=' $pic_flag'
6966
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6967
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6968
tmp_addflag=' $pic_flag -Mnomain' ;;
6969
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6970
tmp_addflag=' -i_dynamic' ;;
6971
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6972
tmp_addflag=' -i_dynamic -nofor_main' ;;
6973
ifc* | ifort*) # Intel Fortran compiler
6974
tmp_addflag=' -nofor_main' ;;
6976
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6978
if test $supports_anon_versioning = yes; then
6979
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6980
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6981
$echo "local: *; };" >> $output_objdir/$libname.ver~
6982
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6990
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6991
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6992
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6995
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6996
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7001
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7005
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7006
*** create shared libraries on Solaris systems. Therefore, libtool
7007
*** is disabling shared libraries support. We urge you to upgrade GNU
7008
*** binutils to release 2.9.1 or newer. Another option is to modify
7009
*** your PATH or compiler configuration so that the native linker is
7010
*** used, and then restart.
7013
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7014
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7015
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7021
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7022
case `$LD -v 2>&1` in
7023
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7027
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7028
*** reliably create shared libraries on SCO systems. Therefore, libtool
7029
*** is disabling shared libraries support. We urge you to upgrade GNU
7030
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7031
*** your PATH or compiler configuration so that the native linker is
7032
*** used, and then restart.
7037
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7038
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7039
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7040
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7049
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7052
hardcode_shlibpath_var=no
7056
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7057
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7058
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7065
if test "$ld_shlibs" = no; then
7067
hardcode_libdir_flag_spec=
7068
export_dynamic_flag_spec=
7069
whole_archive_flag_spec=
7072
# PORTME fill in a description of your system's linker (not GNU ld)
7075
allow_undefined_flag=unsupported
7076
always_export_symbols=yes
7077
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'
7078
# Note: this linker hardcodes the directories in LIBPATH if there
7079
# are no directories specified by -L.
7080
hardcode_minus_L=yes
7081
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7082
# Neither direct hardcoding nor static linking is supported with a
7084
hardcode_direct=unsupported
7089
if test "$host_cpu" = ia64; then
7090
# On IA64, the linker does run time linking by default, so we don't
7091
# have to do anything special.
7092
aix_use_runtimelinking=no
7093
exp_sym_flag='-Bexport'
7096
# If we're using GNU nm, then we don't want the "-C" option.
7097
# -C means demangle to AIX nm, but means don't demangle with GNU nm
7098
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7099
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'
7101
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'
7103
aix_use_runtimelinking=no
7105
# Test if we are trying to use run time linking or normal
7106
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7107
# need to do runtime linking.
7108
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7109
for ld_flag in $LDFLAGS; do
7110
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7111
aix_use_runtimelinking=yes
7118
exp_sym_flag='-bexport'
7119
no_entry_flag='-bnoentry'
7122
# When large executables or shared objects are built, AIX ld can
7123
# have problems creating the table of contents. If linking a library
7124
# or program results in "error TOC overflow" add -mminimal-toc to
7125
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7126
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7130
hardcode_libdir_separator=':'
7131
link_all_deplibs=yes
7133
if test "$GCC" = yes; then
7134
case $host_os in aix4.[012]|aix4.[012].*)
7135
# We only want to do this on AIX 4.2 and lower, the check
7136
# below for broken collect2 doesn't work under 4.3+
7137
collect2name=`${CC} -print-prog-name=collect2`
7138
if test -f "$collect2name" && \
7139
strings "$collect2name" | grep resolve_lib_name >/dev/null
7141
# We have reworked collect2
7144
# We have old collect2
7145
hardcode_direct=unsupported
7146
# It fails to find uninstalled libraries when the uninstalled
7147
# path is not listed in the libpath. Setting hardcode_minus_L
7148
# to unsupported forces relinking
7149
hardcode_minus_L=yes
7150
hardcode_libdir_flag_spec='-L$libdir'
7151
hardcode_libdir_separator=
7155
shared_flag='-shared'
7156
if test "$aix_use_runtimelinking" = yes; then
7157
shared_flag="$shared_flag "'${wl}-G'
7161
if test "$host_cpu" = ia64; then
7162
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7163
# chokes on -Wl,-G. The following line is correct:
7166
if test "$aix_use_runtimelinking" = yes; then
7167
shared_flag='${wl}-G'
7169
shared_flag='${wl}-bM:SRE'
7174
# It seems that -bexpall does not export symbols beginning with
7175
# underscore (_), so it is better to generate a list of symbols to export.
7176
always_export_symbols=yes
7177
if test "$aix_use_runtimelinking" = yes; then
7178
# Warning - without using the other runtime loading flags (-brtl),
7179
# -berok will link without error, but may produce a broken library.
7180
allow_undefined_flag='-berok'
7181
# Determine the default libpath from the value encoded in an empty executable.
7182
cat >conftest.$ac_ext <<_ACEOF
7185
cat confdefs.h >>conftest.$ac_ext
7186
cat >>conftest.$ac_ext <<_ACEOF
7187
/* end confdefs.h. */
7197
rm -f conftest.$ac_objext conftest$ac_exeext
7198
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7199
(eval $ac_link) 2>conftest.er1
7201
grep -v '^ *+' conftest.er1 >conftest.err
7203
cat conftest.err >&5
7204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205
(exit $ac_status); } &&
7206
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7207
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7210
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211
(exit $ac_status); }; } &&
7212
{ ac_try='test -s conftest$ac_exeext'
7213
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217
(exit $ac_status); }; }; then
7219
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7221
# Check for a 64-bit object if we didn't find anything.
7222
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; }
7225
echo "$as_me: failed program was:" >&5
7226
sed 's/^/| /' conftest.$ac_ext >&5
7229
rm -f conftest.err conftest.$ac_objext \
7230
conftest$ac_exeext conftest.$ac_ext
7231
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7233
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7234
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7236
if test "$host_cpu" = ia64; then
7237
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7238
allow_undefined_flag="-z nodefs"
7239
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7241
# Determine the default libpath from the value encoded in an empty executable.
7242
cat >conftest.$ac_ext <<_ACEOF
7245
cat confdefs.h >>conftest.$ac_ext
7246
cat >>conftest.$ac_ext <<_ACEOF
7247
/* end confdefs.h. */
7257
rm -f conftest.$ac_objext conftest$ac_exeext
7258
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7259
(eval $ac_link) 2>conftest.er1
7261
grep -v '^ *+' conftest.er1 >conftest.err
7263
cat conftest.err >&5
7264
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265
(exit $ac_status); } &&
7266
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7267
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271
(exit $ac_status); }; } &&
7272
{ ac_try='test -s conftest$ac_exeext'
7273
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7276
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277
(exit $ac_status); }; }; then
7279
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7281
# Check for a 64-bit object if we didn't find anything.
7282
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; }
7285
echo "$as_me: failed program was:" >&5
7286
sed 's/^/| /' conftest.$ac_ext >&5
7289
rm -f conftest.err conftest.$ac_objext \
7290
conftest$ac_exeext conftest.$ac_ext
7291
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7293
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7294
# Warning - without using the other run time loading flags,
7295
# -berok will link without error, but may produce a broken library.
7296
no_undefined_flag=' ${wl}-bernotok'
7297
allow_undefined_flag=' ${wl}-berok'
7298
# Exported symbols can be pulled into shared objects from archives
7299
whole_archive_flag_spec='$convenience'
7300
archive_cmds_need_lc=yes
7301
# This is similar to how AIX traditionally builds its shared libraries.
7302
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7308
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)'
7309
hardcode_libdir_flag_spec='-L$libdir'
7310
hardcode_minus_L=yes
7311
# see comment about different semantics on the GNU ld section
7316
export_dynamic_flag_spec=-rdynamic
7319
cygwin* | mingw* | pw32*)
7320
# When not using gcc, we currently assume that we are using
7321
# Microsoft Visual C++.
7322
# hardcode_libdir_flag_spec is actually meaningless, as there is
7323
# no search path for DLLs.
7324
hardcode_libdir_flag_spec=' '
7325
allow_undefined_flag=unsupported
7326
# Tell ltmain to make .lib files, not .a files.
7328
# Tell ltmain to make .dll files, not .so files.
7330
# FIXME: Setting linknames here is a bad hack.
7331
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7332
# The linker will automatically build a .lib file if we build a DLL.
7333
old_archive_From_new_cmds='true'
7334
# FIXME: Should let the user specify the lib program.
7335
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7336
fix_srcfile_path='`cygpath -w "$srcfile"`'
7337
enable_shared_with_static_runtimes=yes
7340
darwin* | rhapsody*)
7342
rhapsody* | darwin1.[012])
7343
allow_undefined_flag='${wl}-undefined ${wl}suppress'
7346
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7347
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7349
case ${MACOSX_DEPLOYMENT_TARGET} in
7351
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7354
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7360
archive_cmds_need_lc=no
7362
hardcode_automatic=yes
7363
hardcode_shlibpath_var=unsupported
7364
whole_archive_flag_spec=''
7365
link_all_deplibs=yes
7366
if test "$GCC" = yes ; then
7367
output_verbose_link_cmd='echo'
7368
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7369
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7370
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7371
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}'
7372
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}'
7374
case $cc_basename in
7376
output_verbose_link_cmd='echo'
7377
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7378
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7379
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7380
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}'
7381
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}'
7391
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7392
hardcode_libdir_flag_spec='-L$libdir'
7393
hardcode_shlibpath_var=no
7400
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7401
# support. Future versions do this automatically, but an explicit c++rt0.o
7402
# does not break anything, and helps significantly (at the cost of a little
7405
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7406
hardcode_libdir_flag_spec='-R$libdir'
7408
hardcode_shlibpath_var=no
7411
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
7413
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7415
hardcode_minus_L=yes
7416
hardcode_shlibpath_var=no
7419
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7420
freebsd* | dragonfly*)
7421
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7422
hardcode_libdir_flag_spec='-R$libdir'
7424
hardcode_shlibpath_var=no
7427
# GNU/kFreeBSD uses gcc -shared to do shared libraries.
7429
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7430
hardcode_libdir_flag_spec='-R$libdir'
7432
hardcode_shlibpath_var=no
7437
if test "$GCC" = yes; then
7438
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'
7440
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'
7442
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7443
hardcode_libdir_separator=:
7446
# hardcode_minus_L: Not really in the search PATH,
7447
# but as the default location of the library.
7448
hardcode_minus_L=yes
7449
export_dynamic_flag_spec='${wl}-E'
7453
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7454
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7456
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7458
if test "$with_gnu_ld" = no; then
7459
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7460
hardcode_libdir_separator=:
7463
export_dynamic_flag_spec='${wl}-E'
7465
# hardcode_minus_L: Not really in the search PATH,
7466
# but as the default location of the library.
7467
hardcode_minus_L=yes
7472
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7475
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7478
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7481
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7487
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7490
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7493
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7497
if test "$with_gnu_ld" = no; then
7498
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7499
hardcode_libdir_separator=:
7503
hardcode_libdir_flag_spec_ld='+b $libdir'
7505
hardcode_shlibpath_var=no
7509
export_dynamic_flag_spec='${wl}-E'
7511
# hardcode_minus_L: Not really in the search PATH,
7512
# but as the default location of the library.
7513
hardcode_minus_L=yes
7519
irix5* | irix6* | nonstopux*)
7520
if test "$GCC" = yes; then
7521
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'
7523
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'
7524
hardcode_libdir_flag_spec_ld='-rpath $libdir'
7526
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7527
hardcode_libdir_separator=:
7528
link_all_deplibs=yes
7531
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7532
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7533
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7535
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7537
hardcode_libdir_flag_spec='-R$libdir'
7539
hardcode_shlibpath_var=no
7543
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7545
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7546
hardcode_libdir_separator=:
7547
hardcode_shlibpath_var=no
7552
hardcode_shlibpath_var=no
7553
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7554
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7555
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7556
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7557
export_dynamic_flag_spec='${wl}-E'
7560
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7561
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7562
hardcode_libdir_flag_spec='-R$libdir'
7565
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7566
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7573
hardcode_libdir_flag_spec='-L$libdir'
7574
hardcode_minus_L=yes
7575
allow_undefined_flag=unsupported
7576
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'
7577
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7581
if test "$GCC" = yes; then
7582
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7583
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'
7585
allow_undefined_flag=' -expect_unresolved \*'
7586
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'
7588
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7589
hardcode_libdir_separator=:
7592
osf4* | osf5*) # as osf3* with the addition of -msym flag
7593
if test "$GCC" = yes; then
7594
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7595
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'
7596
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7598
allow_undefined_flag=' -expect_unresolved \*'
7599
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'
7600
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7601
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7603
# Both c and cxx compiler support -rpath directly
7604
hardcode_libdir_flag_spec='-rpath $libdir'
7606
hardcode_libdir_separator=:
7610
no_undefined_flag=' -z text'
7611
if test "$GCC" = yes; then
7613
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7614
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7615
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7618
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7619
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7620
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7622
hardcode_libdir_flag_spec='-R$libdir'
7623
hardcode_shlibpath_var=no
7625
solaris2.[0-5] | solaris2.[0-5].*) ;;
7627
# The compiler driver will combine linker options so we
7628
# cannot just pass the convience library names through
7629
# without $wl, iff we do not link with $LD.
7630
# Luckily, gcc supports the same syntax we need for Sun Studio.
7631
# Supported since Solaris 2.6 (maybe 2.5.1?)
7634
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7636
whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7639
link_all_deplibs=yes
7643
if test "x$host_vendor" = xsequent; then
7644
# Use $CC to link under sequent, because it throws in some extra .o
7645
# files that make .init and .fini sections work.
7646
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7648
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7650
hardcode_libdir_flag_spec='-L$libdir'
7652
hardcode_minus_L=yes
7653
hardcode_shlibpath_var=no
7657
case $host_vendor in
7659
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7660
hardcode_direct=yes # is this really true???
7663
## LD is ld it makes a PLAMLIB
7664
## CC just makes a GrossModule.
7665
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7666
reload_cmds='$CC -r -o $output$reload_objs'
7670
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7671
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7674
runpath_var='LD_RUN_PATH'
7675
hardcode_shlibpath_var=no
7679
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7680
hardcode_shlibpath_var=no
7681
export_dynamic_flag_spec='-Bexport'
7685
if test -d /usr/nec; then
7686
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7687
hardcode_shlibpath_var=no
7688
runpath_var=LD_RUN_PATH
7689
hardcode_runpath_var=yes
7694
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7695
no_undefined_flag='${wl}-z,text'
7696
archive_cmds_need_lc=no
7697
hardcode_shlibpath_var=no
7698
runpath_var='LD_RUN_PATH'
7700
if test "$GCC" = yes; then
7701
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7702
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7704
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7705
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7709
sysv5* | sco3.2v5* | sco5v6*)
7710
# Note: We can NOT use -z defs as we might desire, because we do not
7711
# link with -lc, and that would cause any symbols used from libc to
7712
# always be unresolved, which means just about no library would
7713
# ever link correctly. If we're not using GNU ld we use -z text
7714
# though, which does catch some bad symbols but isn't as heavy-handed
7716
no_undefined_flag='${wl}-z,text'
7717
allow_undefined_flag='${wl}-z,nodefs'
7718
archive_cmds_need_lc=no
7719
hardcode_shlibpath_var=no
7720
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7721
hardcode_libdir_separator=':'
7722
link_all_deplibs=yes
7723
export_dynamic_flag_spec='${wl}-Bexport'
7724
runpath_var='LD_RUN_PATH'
7726
if test "$GCC" = yes; then
7727
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7728
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7730
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7731
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7736
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7737
hardcode_libdir_flag_spec='-L$libdir'
7738
hardcode_shlibpath_var=no
7747
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7748
echo "${ECHO_T}$ld_shlibs" >&6
7749
test "$ld_shlibs" = no && can_build_shared=no
7752
# Do we need to explicitly link libc?
7754
case "x$archive_cmds_need_lc" in
7756
# Assume -lc should be added
7757
archive_cmds_need_lc=yes
7759
if test "$enable_shared" = yes && test "$GCC" = yes; then
7760
case $archive_cmds in
7762
# FIXME: we may have to deal with multi-command sequences.
7765
# Test whether the compiler implicitly links with -lc since on some
7766
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7767
# to ld, don't add -lc before -lgcc.
7768
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7769
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7771
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7773
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7774
(eval $ac_compile) 2>&5
7776
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777
(exit $ac_status); } 2>conftest.err; then
7780
libobjs=conftest.$ac_objext
7782
wl=$lt_prog_compiler_wl
7783
pic_flag=$lt_prog_compiler_pic
7789
lt_save_allow_undefined_flag=$allow_undefined_flag
7790
allow_undefined_flag=
7791
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7792
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795
(exit $ac_status); }
7797
archive_cmds_need_lc=no
7799
archive_cmds_need_lc=yes
7801
allow_undefined_flag=$lt_save_allow_undefined_flag
7803
cat conftest.err 1>&5
7806
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7807
echo "${ECHO_T}$archive_cmds_need_lc" >&6
7814
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7815
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7817
libname_spec='lib$name'
7825
shlibpath_overrides_runpath=unknown
7827
dynamic_linker="$host_os ld.so"
7828
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7829
if test "$GCC" = yes; then
7830
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7831
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7832
# if the path contains ";" then we assume it to be the separator
7833
# otherwise default to the standard path separator (i.e. ":") - it is
7834
# assumed that no part of a normal pathname contains ";" but that should
7835
# okay in the real world where ";" in dirpaths is itself problematic.
7836
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7838
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7841
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7843
need_lib_prefix=unknown
7844
hardcode_into_libs=no
7846
# when you set need_version to no, make sure it does not cause -set_version
7847
# flags to be left without arguments
7848
need_version=unknown
7853
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7854
shlibpath_var=LIBPATH
7856
# AIX 3 has no versioning support, so we append a major version to the name.
7857
soname_spec='${libname}${release}${shared_ext}$major'
7864
hardcode_into_libs=yes
7865
if test "$host_cpu" = ia64; then
7866
# AIX 5 supports IA64
7867
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7868
shlibpath_var=LD_LIBRARY_PATH
7870
# With GCC up to 2.95.x, collect2 would create an import file
7871
# for dependence libraries. The import file would start with
7872
# the line `#! .'. This would cause the generated library to
7873
# depend on `.', always an invalid library. This was fixed in
7874
# development snapshots of GCC prior to 3.0.
7876
aix4 | aix4.[01] | aix4.[01].*)
7877
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7879
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7886
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7887
# soname into executable. Probably we can add versioning support to
7888
# collect2, so additional links can be useful in future.
7889
if test "$aix_use_runtimelinking" = yes; then
7890
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
7891
# instead of lib<name>.a to let people know that these are not
7892
# typical AIX shared libraries.
7893
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7895
# We preserve .a as extension for shared libraries through AIX4.2
7896
# and later when we are not doing run time linking.
7897
library_names_spec='${libname}${release}.a $libname.a'
7898
soname_spec='${libname}${release}${shared_ext}$major'
7900
shlibpath_var=LIBPATH
7905
library_names_spec='$libname.ixlibrary $libname.a'
7906
# Create ${libname}_ixlibrary.a entries in /sys/libs.
7907
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'
7911
library_names_spec='${libname}${shared_ext}'
7912
dynamic_linker="$host_os ld.so"
7913
shlibpath_var=LIBRARY_PATH
7919
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7920
soname_spec='${libname}${release}${shared_ext}$major'
7921
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7922
shlibpath_var=LD_LIBRARY_PATH
7923
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7924
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7925
# the default ld.so.conf also contains /usr/contrib/lib and
7926
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7927
# libtool to hard-code these into programs
7930
cygwin* | mingw* | pw32*)
7931
version_type=windows
7936
case $GCC,$host_os in
7937
yes,cygwin* | yes,mingw* | yes,pw32*)
7938
library_names_spec='$libname.dll.a'
7939
# DLL is installed to $(libdir)/../bin by postinstall_cmds
7940
postinstall_cmds='base_file=`basename \${file}`~
7941
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7942
dldir=$destdir/`dirname \$dlpath`~
7943
test -d \$dldir || mkdir -p \$dldir~
7944
$install_prog $dir/$dlname \$dldir/$dlname~
7945
chmod a+x \$dldir/$dlname'
7946
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7947
dlpath=$dir/\$dldll~
7949
shlibpath_overrides_runpath=yes
7953
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
7954
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7955
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7958
# MinGW DLLs use traditional 'lib' prefix
7959
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7960
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7961
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7962
# It is most probably a Windows format PATH printed by
7963
# mingw gcc, but we are running on Cygwin. Gcc prints its search
7964
# path with ; separators, and with drive letters. We can handle the
7965
# drive letters (cygwin fileutils understands them), so leave them,
7966
# especially as we might pass files found there to a mingw objdump,
7967
# which wouldn't understand a cygwinified path. Ahh.
7968
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7970
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7974
# pw32 DLLs use 'pw' prefix rather than 'lib'
7975
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7981
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7984
dynamic_linker='Win32 ld.exe'
7985
# FIXME: first we should search . and the directory the executable is in
7989
darwin* | rhapsody*)
7990
dynamic_linker="$host_os dyld"
7994
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7995
soname_spec='${libname}${release}${major}$shared_ext'
7996
shlibpath_overrides_runpath=yes
7997
shlibpath_var=DYLD_LIBRARY_PATH
7998
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7999
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8000
if test "$GCC" = yes; then
8001
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"`
8003
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8005
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8012
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8013
soname_spec='${libname}${release}${shared_ext}$major'
8014
shlibpath_var=LD_LIBRARY_PATH
8025
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8026
soname_spec='${libname}${release}${shared_ext}$major'
8027
shlibpath_var=LD_LIBRARY_PATH
8028
shlibpath_overrides_runpath=no
8029
hardcode_into_libs=yes
8030
dynamic_linker='GNU ld.so'
8033
freebsd* | dragonfly*)
8034
# DragonFly does not have aout. When/if they implement a new
8035
# versioning mechanism, adjust this.
8036
if test -x /usr/bin/objformat; then
8037
objformat=`/usr/bin/objformat`
8040
freebsd[123]*) objformat=aout ;;
8044
version_type=freebsd-$objformat
8045
case $version_type in
8047
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8052
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8056
shlibpath_var=LD_LIBRARY_PATH
8059
shlibpath_overrides_runpath=yes
8061
freebsd3.[01]* | freebsdelf3.[01]*)
8062
shlibpath_overrides_runpath=yes
8063
hardcode_into_libs=yes
8065
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8066
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8067
shlibpath_overrides_runpath=no
8068
hardcode_into_libs=yes
8070
freebsd*) # from 4.6 on
8071
shlibpath_overrides_runpath=yes
8072
hardcode_into_libs=yes
8081
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8082
soname_spec='${libname}${release}${shared_ext}$major'
8083
shlibpath_var=LD_LIBRARY_PATH
8084
hardcode_into_libs=yes
8087
hpux9* | hpux10* | hpux11*)
8088
# Give a soname corresponding to the major version so that dld.sl refuses to
8089
# link against other versions.
8096
hardcode_into_libs=yes
8097
dynamic_linker="$host_os dld.so"
8098
shlibpath_var=LD_LIBRARY_PATH
8099
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8100
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8101
soname_spec='${libname}${release}${shared_ext}$major'
8102
if test "X$HPUX_IA64_MODE" = X32; then
8103
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8105
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8107
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8111
hardcode_into_libs=yes
8112
dynamic_linker="$host_os dld.sl"
8113
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8114
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8115
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8116
soname_spec='${libname}${release}${shared_ext}$major'
8117
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8118
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8122
dynamic_linker="$host_os dld.sl"
8123
shlibpath_var=SHLIB_PATH
8124
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8125
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8126
soname_spec='${libname}${release}${shared_ext}$major'
8129
# HP-UX runs *really* slowly unless shared libraries are mode 555.
8130
postinstall_cmds='chmod 555 $lib'
8137
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8138
soname_spec='${libname}${release}${shared_ext}$major'
8139
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8140
shlibpath_var=LD_LIBRARY_PATH
8141
shlibpath_overrides_runpath=no
8142
hardcode_into_libs=yes
8145
irix5* | irix6* | nonstopux*)
8147
nonstopux*) version_type=nonstopux ;;
8149
if test "$lt_cv_prog_gnu_ld" = yes; then
8157
soname_spec='${libname}${release}${shared_ext}$major'
8158
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8160
irix5* | nonstopux*)
8164
case $LD in # libtool.m4 will add one of these switches to LD
8165
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8166
libsuff= shlibsuff= libmagic=32-bit;;
8167
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8168
libsuff=32 shlibsuff=N32 libmagic=N32;;
8169
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8170
libsuff=64 shlibsuff=64 libmagic=64-bit;;
8171
*) libsuff= shlibsuff= libmagic=never-match;;
8175
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8176
shlibpath_overrides_runpath=no
8177
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8178
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8179
hardcode_into_libs=yes
8182
# No shared lib support for Linux oldld, aout, or coff.
8183
linux*oldld* | linux*aout* | linux*coff*)
8187
# This must be Linux ELF.
8192
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8193
soname_spec='${libname}${release}${shared_ext}$major'
8194
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8195
shlibpath_var=LD_LIBRARY_PATH
8196
shlibpath_overrides_runpath=no
8197
# This implies no fast_install, which is unacceptable.
8198
# Some rework will be needed to allow for fast_install
8199
# before this can be enabled.
8200
hardcode_into_libs=yes
8202
# Append ld.so.conf contents to the search path
8203
if test -f /etc/ld.so.conf; then
8204
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8205
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8208
# We used to test for /lib/ld.so.1 and disable shared libraries on
8209
# powerpc, because MkLinux only supported shared libraries with the
8210
# GNU dynamic linker. Since this was broken with cross compilers,
8211
# most powerpc-linux boxes support dynamic linking these days and
8212
# people can always --disable-shared, the test was removed, and we
8213
# assume the GNU/Linux dynamic linker is in use.
8214
dynamic_linker='GNU/Linux ld.so'
8221
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8222
soname_spec='${libname}${release}${shared_ext}$major'
8223
shlibpath_var=LD_LIBRARY_PATH
8224
shlibpath_overrides_runpath=no
8225
hardcode_into_libs=yes
8226
dynamic_linker='NetBSD ld.elf_so'
8233
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8234
soname_spec='${libname}${release}${shared_ext}$major'
8235
shlibpath_var=LD_LIBRARY_PATH
8236
shlibpath_overrides_runpath=no
8237
hardcode_into_libs=yes
8238
dynamic_linker='GNU ld.so'
8245
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8246
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8247
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8248
dynamic_linker='NetBSD (a.out) ld.so'
8250
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8251
soname_spec='${libname}${release}${shared_ext}$major'
8252
dynamic_linker='NetBSD ld.elf_so'
8254
shlibpath_var=LD_LIBRARY_PATH
8255
shlibpath_overrides_runpath=yes
8256
hardcode_into_libs=yes
8261
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8262
shlibpath_var=LD_LIBRARY_PATH
8263
shlibpath_overrides_runpath=yes
8270
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8271
soname_spec='${libname}${release}${shared_ext}$major'
8272
shlibpath_var=LD_LIBRARY_PATH
8273
shlibpath_overrides_runpath=yes
8278
sys_lib_dlsearch_path_spec="/usr/lib"
8280
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8282
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8283
*) need_version=no ;;
8285
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8286
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8287
shlibpath_var=LD_LIBRARY_PATH
8288
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8290
openbsd2.[89] | openbsd2.[89].*)
8291
shlibpath_overrides_runpath=no
8294
shlibpath_overrides_runpath=yes
8298
shlibpath_overrides_runpath=yes
8303
libname_spec='$name'
8306
library_names_spec='$libname${shared_ext} $libname.a'
8307
dynamic_linker='OS/2 ld.exe'
8308
shlibpath_var=LIBPATH
8311
osf3* | osf4* | osf5*)
8315
soname_spec='${libname}${release}${shared_ext}$major'
8316
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8317
shlibpath_var=LD_LIBRARY_PATH
8318
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8319
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8326
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8327
soname_spec='${libname}${release}${shared_ext}$major'
8328
shlibpath_var=LD_LIBRARY_PATH
8329
shlibpath_overrides_runpath=yes
8330
hardcode_into_libs=yes
8331
# ldd complains unless libraries are executable
8332
postinstall_cmds='chmod +x $lib'
8337
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8338
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8339
shlibpath_var=LD_LIBRARY_PATH
8340
shlibpath_overrides_runpath=yes
8341
if test "$with_gnu_ld" = yes; then
8349
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8350
soname_spec='${libname}${release}${shared_ext}$major'
8351
shlibpath_var=LD_LIBRARY_PATH
8352
case $host_vendor in
8354
shlibpath_overrides_runpath=no
8356
export_dynamic_flag_spec='${wl}-Blargedynsym'
8357
runpath_var=LD_RUN_PATH
8365
shlibpath_overrides_runpath=no
8366
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8372
if test -d /usr/nec ;then
8374
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8375
soname_spec='$libname${shared_ext}.$major'
8376
shlibpath_var=LD_LIBRARY_PATH
8380
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8381
version_type=freebsd-elf
8384
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8385
soname_spec='${libname}${release}${shared_ext}$major'
8386
shlibpath_var=LD_LIBRARY_PATH
8387
hardcode_into_libs=yes
8388
if test "$with_gnu_ld" = yes; then
8389
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8390
shlibpath_overrides_runpath=no
8392
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8393
shlibpath_overrides_runpath=yes
8396
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8400
sys_lib_dlsearch_path_spec='/usr/lib'
8405
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8406
soname_spec='${libname}${release}${shared_ext}$major'
8407
shlibpath_var=LD_LIBRARY_PATH
8414
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8415
echo "${ECHO_T}$dynamic_linker" >&6
8416
test "$dynamic_linker" = no && can_build_shared=no
8418
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8419
if test "$GCC" = yes; then
8420
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8423
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8424
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8426
if test -n "$hardcode_libdir_flag_spec" || \
8427
test -n "$runpath_var" || \
8428
test "X$hardcode_automatic" = "Xyes" ; then
8430
# We can hardcode non-existant directories.
8431
if test "$hardcode_direct" != no &&
8432
# If the only mechanism to avoid hardcoding is shlibpath_var, we
8433
# have to relink, otherwise we might link with an installed library
8434
# when we should be linking with a yet-to-be-installed one
8435
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8436
test "$hardcode_minus_L" != no; then
8437
# Linking always hardcodes the temporary library directory.
8438
hardcode_action=relink
8440
# We can link without hardcoding, and we can hardcode nonexisting dirs.
8441
hardcode_action=immediate
8444
# We cannot hardcode anything, or else we can only hardcode existing
8446
hardcode_action=unsupported
8448
echo "$as_me:$LINENO: result: $hardcode_action" >&5
8449
echo "${ECHO_T}$hardcode_action" >&6
8451
if test "$hardcode_action" = relink; then
8452
# Fast installation is not supported
8453
enable_fast_install=no
8454
elif test "$shlibpath_overrides_runpath" = yes ||
8455
test "$enable_shared" = no; then
8456
# Fast installation is not necessary
8457
enable_fast_install=needless
8462
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8463
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8464
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8465
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8466
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8467
echo "$as_me:$LINENO: result: yes" >&5
8468
echo "${ECHO_T}yes" >&6
8470
# FIXME - insert some real tests, host_os isn't really good enough
8473
if test -n "$STRIP" ; then
8474
striplib="$STRIP -x"
8475
echo "$as_me:$LINENO: result: yes" >&5
8476
echo "${ECHO_T}yes" >&6
8478
echo "$as_me:$LINENO: result: no" >&5
8479
echo "${ECHO_T}no" >&6
8483
echo "$as_me:$LINENO: result: no" >&5
8484
echo "${ECHO_T}no" >&6
8489
if test "x$enable_dlopen" != xyes; then
8490
enable_dlopen=unknown
8491
enable_dlopen_self=unknown
8492
enable_dlopen_self_static=unknown
8499
lt_cv_dlopen="load_add_on"
8501
lt_cv_dlopen_self=yes
8505
lt_cv_dlopen="LoadLibrary"
8510
lt_cv_dlopen="dlopen"
8515
# if libdl is installed we need to link against it
8516
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8517
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8518
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8519
echo $ECHO_N "(cached) $ECHO_C" >&6
8521
ac_check_lib_save_LIBS=$LIBS
8523
cat >conftest.$ac_ext <<_ACEOF
8526
cat confdefs.h >>conftest.$ac_ext
8527
cat >>conftest.$ac_ext <<_ACEOF
8528
/* end confdefs.h. */
8530
/* Override any gcc2 internal prototype to avoid an error. */
8534
/* We use char because int might match the return type of a gcc2
8535
builtin and then its argument prototype would still apply. */
8545
rm -f conftest.$ac_objext conftest$ac_exeext
8546
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8547
(eval $ac_link) 2>conftest.er1
8549
grep -v '^ *+' conftest.er1 >conftest.err
8551
cat conftest.err >&5
8552
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553
(exit $ac_status); } &&
8554
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8555
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559
(exit $ac_status); }; } &&
8560
{ ac_try='test -s conftest$ac_exeext'
8561
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565
(exit $ac_status); }; }; then
8566
ac_cv_lib_dl_dlopen=yes
8568
echo "$as_me: failed program was:" >&5
8569
sed 's/^/| /' conftest.$ac_ext >&5
8571
ac_cv_lib_dl_dlopen=no
8573
rm -f conftest.err conftest.$ac_objext \
8574
conftest$ac_exeext conftest.$ac_ext
8575
LIBS=$ac_check_lib_save_LIBS
8577
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8578
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8579
if test $ac_cv_lib_dl_dlopen = yes; then
8580
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8585
lt_cv_dlopen_self=yes
8592
echo "$as_me:$LINENO: checking for shl_load" >&5
8593
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8594
if test "${ac_cv_func_shl_load+set}" = set; then
8595
echo $ECHO_N "(cached) $ECHO_C" >&6
8597
cat >conftest.$ac_ext <<_ACEOF
8600
cat confdefs.h >>conftest.$ac_ext
8601
cat >>conftest.$ac_ext <<_ACEOF
8602
/* end confdefs.h. */
8603
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8604
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8605
#define shl_load innocuous_shl_load
8607
/* System header to define __stub macros and hopefully few prototypes,
8608
which can conflict with char shl_load (); below.
8609
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8610
<limits.h> exists even on freestanding compilers. */
8613
# include <limits.h>
8615
# include <assert.h>
8620
/* Override any gcc2 internal prototype to avoid an error. */
8625
/* We use char because int might match the return type of a gcc2
8626
builtin and then its argument prototype would still apply. */
8628
/* The GNU C library defines this for functions which it implements
8629
to always fail with ENOSYS. Some functions are actually named
8630
something starting with __ and the normal name is an alias. */
8631
#if defined (__stub_shl_load) || defined (__stub___shl_load)
8634
char (*f) () = shl_load;
8643
return f != shl_load;
8648
rm -f conftest.$ac_objext conftest$ac_exeext
8649
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8650
(eval $ac_link) 2>conftest.er1
8652
grep -v '^ *+' conftest.er1 >conftest.err
8654
cat conftest.err >&5
8655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656
(exit $ac_status); } &&
8657
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8658
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662
(exit $ac_status); }; } &&
8663
{ ac_try='test -s conftest$ac_exeext'
8664
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668
(exit $ac_status); }; }; then
8669
ac_cv_func_shl_load=yes
8671
echo "$as_me: failed program was:" >&5
8672
sed 's/^/| /' conftest.$ac_ext >&5
8674
ac_cv_func_shl_load=no
8676
rm -f conftest.err conftest.$ac_objext \
8677
conftest$ac_exeext conftest.$ac_ext
8679
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8680
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8681
if test $ac_cv_func_shl_load = yes; then
8682
lt_cv_dlopen="shl_load"
8684
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8685
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8686
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8687
echo $ECHO_N "(cached) $ECHO_C" >&6
8689
ac_check_lib_save_LIBS=$LIBS
8691
cat >conftest.$ac_ext <<_ACEOF
8694
cat confdefs.h >>conftest.$ac_ext
8695
cat >>conftest.$ac_ext <<_ACEOF
8696
/* end confdefs.h. */
8698
/* Override any gcc2 internal prototype to avoid an error. */
8702
/* We use char because int might match the return type of a gcc2
8703
builtin and then its argument prototype would still apply. */
8713
rm -f conftest.$ac_objext conftest$ac_exeext
8714
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8715
(eval $ac_link) 2>conftest.er1
8717
grep -v '^ *+' conftest.er1 >conftest.err
8719
cat conftest.err >&5
8720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721
(exit $ac_status); } &&
8722
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8723
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727
(exit $ac_status); }; } &&
8728
{ ac_try='test -s conftest$ac_exeext'
8729
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733
(exit $ac_status); }; }; then
8734
ac_cv_lib_dld_shl_load=yes
8736
echo "$as_me: failed program was:" >&5
8737
sed 's/^/| /' conftest.$ac_ext >&5
8739
ac_cv_lib_dld_shl_load=no
8741
rm -f conftest.err conftest.$ac_objext \
8742
conftest$ac_exeext conftest.$ac_ext
8743
LIBS=$ac_check_lib_save_LIBS
8745
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8746
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8747
if test $ac_cv_lib_dld_shl_load = yes; then
8748
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8750
echo "$as_me:$LINENO: checking for dlopen" >&5
8751
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8752
if test "${ac_cv_func_dlopen+set}" = set; then
8753
echo $ECHO_N "(cached) $ECHO_C" >&6
8755
cat >conftest.$ac_ext <<_ACEOF
8758
cat confdefs.h >>conftest.$ac_ext
8759
cat >>conftest.$ac_ext <<_ACEOF
8760
/* end confdefs.h. */
8761
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8762
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8763
#define dlopen innocuous_dlopen
8765
/* System header to define __stub macros and hopefully few prototypes,
8766
which can conflict with char dlopen (); below.
8767
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8768
<limits.h> exists even on freestanding compilers. */
8771
# include <limits.h>
8773
# include <assert.h>
8778
/* Override any gcc2 internal prototype to avoid an error. */
8783
/* We use char because int might match the return type of a gcc2
8784
builtin and then its argument prototype would still apply. */
8786
/* The GNU C library defines this for functions which it implements
8787
to always fail with ENOSYS. Some functions are actually named
8788
something starting with __ and the normal name is an alias. */
8789
#if defined (__stub_dlopen) || defined (__stub___dlopen)
8792
char (*f) () = dlopen;
8806
rm -f conftest.$ac_objext conftest$ac_exeext
8807
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8808
(eval $ac_link) 2>conftest.er1
8810
grep -v '^ *+' conftest.er1 >conftest.err
8812
cat conftest.err >&5
8813
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814
(exit $ac_status); } &&
8815
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8816
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820
(exit $ac_status); }; } &&
8821
{ ac_try='test -s conftest$ac_exeext'
8822
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8825
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826
(exit $ac_status); }; }; then
8827
ac_cv_func_dlopen=yes
8829
echo "$as_me: failed program was:" >&5
8830
sed 's/^/| /' conftest.$ac_ext >&5
8832
ac_cv_func_dlopen=no
8834
rm -f conftest.err conftest.$ac_objext \
8835
conftest$ac_exeext conftest.$ac_ext
8837
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8838
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8839
if test $ac_cv_func_dlopen = yes; then
8840
lt_cv_dlopen="dlopen"
8842
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8843
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8844
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8845
echo $ECHO_N "(cached) $ECHO_C" >&6
8847
ac_check_lib_save_LIBS=$LIBS
8849
cat >conftest.$ac_ext <<_ACEOF
8852
cat confdefs.h >>conftest.$ac_ext
8853
cat >>conftest.$ac_ext <<_ACEOF
8854
/* end confdefs.h. */
8856
/* Override any gcc2 internal prototype to avoid an error. */
8860
/* We use char because int might match the return type of a gcc2
8861
builtin and then its argument prototype would still apply. */
8871
rm -f conftest.$ac_objext conftest$ac_exeext
8872
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8873
(eval $ac_link) 2>conftest.er1
8875
grep -v '^ *+' conftest.er1 >conftest.err
8877
cat conftest.err >&5
8878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879
(exit $ac_status); } &&
8880
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8881
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885
(exit $ac_status); }; } &&
8886
{ ac_try='test -s conftest$ac_exeext'
8887
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891
(exit $ac_status); }; }; then
8892
ac_cv_lib_dl_dlopen=yes
8894
echo "$as_me: failed program was:" >&5
8895
sed 's/^/| /' conftest.$ac_ext >&5
8897
ac_cv_lib_dl_dlopen=no
8899
rm -f conftest.err conftest.$ac_objext \
8900
conftest$ac_exeext conftest.$ac_ext
8901
LIBS=$ac_check_lib_save_LIBS
8903
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8904
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8905
if test $ac_cv_lib_dl_dlopen = yes; then
8906
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8908
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8909
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8910
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8911
echo $ECHO_N "(cached) $ECHO_C" >&6
8913
ac_check_lib_save_LIBS=$LIBS
8915
cat >conftest.$ac_ext <<_ACEOF
8918
cat confdefs.h >>conftest.$ac_ext
8919
cat >>conftest.$ac_ext <<_ACEOF
8920
/* end confdefs.h. */
8922
/* Override any gcc2 internal prototype to avoid an error. */
8926
/* We use char because int might match the return type of a gcc2
8927
builtin and then its argument prototype would still apply. */
8937
rm -f conftest.$ac_objext conftest$ac_exeext
8938
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8939
(eval $ac_link) 2>conftest.er1
8941
grep -v '^ *+' conftest.er1 >conftest.err
8943
cat conftest.err >&5
8944
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945
(exit $ac_status); } &&
8946
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8947
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951
(exit $ac_status); }; } &&
8952
{ ac_try='test -s conftest$ac_exeext'
8953
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957
(exit $ac_status); }; }; then
8958
ac_cv_lib_svld_dlopen=yes
8960
echo "$as_me: failed program was:" >&5
8961
sed 's/^/| /' conftest.$ac_ext >&5
8963
ac_cv_lib_svld_dlopen=no
8965
rm -f conftest.err conftest.$ac_objext \
8966
conftest$ac_exeext conftest.$ac_ext
8967
LIBS=$ac_check_lib_save_LIBS
8969
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8970
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8971
if test $ac_cv_lib_svld_dlopen = yes; then
8972
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8974
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8975
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8976
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8977
echo $ECHO_N "(cached) $ECHO_C" >&6
8979
ac_check_lib_save_LIBS=$LIBS
8981
cat >conftest.$ac_ext <<_ACEOF
8984
cat confdefs.h >>conftest.$ac_ext
8985
cat >>conftest.$ac_ext <<_ACEOF
8986
/* end confdefs.h. */
8988
/* Override any gcc2 internal prototype to avoid an error. */
8992
/* We use char because int might match the return type of a gcc2
8993
builtin and then its argument prototype would still apply. */
9003
rm -f conftest.$ac_objext conftest$ac_exeext
9004
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9005
(eval $ac_link) 2>conftest.er1
9007
grep -v '^ *+' conftest.er1 >conftest.err
9009
cat conftest.err >&5
9010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011
(exit $ac_status); } &&
9012
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9013
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9016
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017
(exit $ac_status); }; } &&
9018
{ ac_try='test -s conftest$ac_exeext'
9019
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023
(exit $ac_status); }; }; then
9024
ac_cv_lib_dld_dld_link=yes
9026
echo "$as_me: failed program was:" >&5
9027
sed 's/^/| /' conftest.$ac_ext >&5
9029
ac_cv_lib_dld_dld_link=no
9031
rm -f conftest.err conftest.$ac_objext \
9032
conftest$ac_exeext conftest.$ac_ext
9033
LIBS=$ac_check_lib_save_LIBS
9035
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9036
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9037
if test $ac_cv_lib_dld_dld_link = yes; then
9038
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9059
if test "x$lt_cv_dlopen" != xno; then
9065
case $lt_cv_dlopen in
9067
save_CPPFLAGS="$CPPFLAGS"
9068
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9070
save_LDFLAGS="$LDFLAGS"
9071
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9074
LIBS="$lt_cv_dlopen_libs $LIBS"
9076
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9077
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9078
if test "${lt_cv_dlopen_self+set}" = set; then
9079
echo $ECHO_N "(cached) $ECHO_C" >&6
9081
if test "$cross_compiling" = yes; then :
9082
lt_cv_dlopen_self=cross
9084
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9085
lt_status=$lt_dlunknown
9086
cat > conftest.$ac_ext <<EOF
9087
#line 9087 "configure"
9088
#include "confdefs.h"
9097
# define LT_DLGLOBAL RTLD_GLOBAL
9100
# define LT_DLGLOBAL DL_GLOBAL
9102
# define LT_DLGLOBAL 0
9106
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9107
find out it does not work in some platform. */
9108
#ifndef LT_DLLAZY_OR_NOW
9110
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9113
# define LT_DLLAZY_OR_NOW DL_LAZY
9116
# define LT_DLLAZY_OR_NOW RTLD_NOW
9119
# define LT_DLLAZY_OR_NOW DL_NOW
9121
# define LT_DLLAZY_OR_NOW 0
9129
extern "C" void exit (int);
9132
void fnord() { int i=42;}
9135
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9136
int status = $lt_dlunknown;
9140
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9141
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9142
/* dlclose (self); */
9150
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9151
(eval $ac_link) 2>&5
9153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9155
(./conftest; exit; ) >&5 2>/dev/null
9158
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9159
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9160
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9163
# compilation failed
9164
lt_cv_dlopen_self=no
9171
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9172
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9174
if test "x$lt_cv_dlopen_self" = xyes; then
9175
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9176
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9177
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9178
if test "${lt_cv_dlopen_self_static+set}" = set; then
9179
echo $ECHO_N "(cached) $ECHO_C" >&6
9181
if test "$cross_compiling" = yes; then :
9182
lt_cv_dlopen_self_static=cross
9184
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9185
lt_status=$lt_dlunknown
9186
cat > conftest.$ac_ext <<EOF
9187
#line 9187 "configure"
9188
#include "confdefs.h"
9197
# define LT_DLGLOBAL RTLD_GLOBAL
9200
# define LT_DLGLOBAL DL_GLOBAL
9202
# define LT_DLGLOBAL 0
9206
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9207
find out it does not work in some platform. */
9208
#ifndef LT_DLLAZY_OR_NOW
9210
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9213
# define LT_DLLAZY_OR_NOW DL_LAZY
9216
# define LT_DLLAZY_OR_NOW RTLD_NOW
9219
# define LT_DLLAZY_OR_NOW DL_NOW
9221
# define LT_DLLAZY_OR_NOW 0
9229
extern "C" void exit (int);
9232
void fnord() { int i=42;}
9235
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9236
int status = $lt_dlunknown;
9240
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9241
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9242
/* dlclose (self); */
9250
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9251
(eval $ac_link) 2>&5
9253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9255
(./conftest; exit; ) >&5 2>/dev/null
9258
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9259
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9260
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9263
# compilation failed
9264
lt_cv_dlopen_self_static=no
9271
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9272
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9275
CPPFLAGS="$save_CPPFLAGS"
9276
LDFLAGS="$save_LDFLAGS"
9281
case $lt_cv_dlopen_self in
9282
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9283
*) enable_dlopen_self=unknown ;;
9286
case $lt_cv_dlopen_self_static in
9287
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9288
*) enable_dlopen_self_static=unknown ;;
9293
# Report which library types will actually be built
9294
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9295
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9296
echo "$as_me:$LINENO: result: $can_build_shared" >&5
9297
echo "${ECHO_T}$can_build_shared" >&6
9299
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9300
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9301
test "$can_build_shared" = "no" && enable_shared=no
9303
# On AIX, shared libraries and static libraries use the same namespace, and
9304
# are all built from PIC.
9307
test "$enable_shared" = yes && enable_static=no
9308
if test -n "$RANLIB"; then
9309
archive_cmds="$archive_cmds~\$RANLIB \$lib"
9310
postinstall_cmds='$RANLIB $lib'
9315
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9316
test "$enable_shared" = yes && enable_static=no
9320
echo "$as_me:$LINENO: result: $enable_shared" >&5
9321
echo "${ECHO_T}$enable_shared" >&6
9323
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9324
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9325
# Make sure either enable_shared or enable_static is yes.
9326
test "$enable_shared" = yes || enable_static=yes
9327
echo "$as_me:$LINENO: result: $enable_static" >&5
9328
echo "${ECHO_T}$enable_static" >&6
9330
# The else clause should only fire when bootstrapping the
9331
# libtool distribution, otherwise you forgot to ship ltmain.sh
9332
# with your package, and you will get complaints that there are
9333
# no rules to generate ltmain.sh.
9334
if test -f "$ltmain"; then
9335
# See if we are running on zsh, and set the options which allow our commands through
9336
# without removal of \ escapes.
9337
if test -n "${ZSH_VERSION+set}" ; then
9338
setopt NO_GLOB_SUBST
9340
# Now quote all the things that may contain metacharacters while being
9341
# careful not to overquote the AC_SUBSTed values. We take copies of the
9342
# variables and quote the copies for generation of the libtool script.
9343
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9345
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9346
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9347
deplibs_check_method reload_flag reload_cmds need_locks \
9348
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9349
lt_cv_sys_global_symbol_to_c_name_address \
9350
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9351
old_postinstall_cmds old_postuninstall_cmds \
9355
lt_prog_compiler_wl \
9356
lt_prog_compiler_pic \
9357
lt_prog_compiler_static \
9358
lt_prog_compiler_no_builtin_flag \
9359
export_dynamic_flag_spec \
9360
thread_safe_flag_spec \
9361
whole_archive_flag_spec \
9362
enable_shared_with_static_runtimes \
9364
old_archive_from_new_cmds \
9369
compiler_lib_search_path \
9371
archive_expsym_cmds \
9373
postuninstall_cmds \
9374
old_archive_from_expsyms_cmds \
9375
allow_undefined_flag \
9377
export_symbols_cmds \
9378
hardcode_libdir_flag_spec \
9379
hardcode_libdir_flag_spec_ld \
9380
hardcode_libdir_separator \
9381
hardcode_automatic \
9383
module_expsym_cmds \
9384
lt_cv_prog_compiler_c_o \
9389
old_archive_cmds | \
9390
old_archive_from_new_cmds | \
9392
archive_expsym_cmds | \
9394
module_expsym_cmds | \
9395
old_archive_from_expsyms_cmds | \
9396
export_symbols_cmds | \
9397
extract_expsyms_cmds | reload_cmds | finish_cmds | \
9398
postinstall_cmds | postuninstall_cmds | \
9399
old_postinstall_cmds | old_postuninstall_cmds | \
9400
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9401
# Double-quote double-evaled strings.
9402
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9405
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9411
*'\$0 --fallback-echo"')
9412
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9417
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9419
{ echo "$as_me:$LINENO: creating $ofile" >&5
9420
echo "$as_me: creating $ofile" >&6;}
9422
cat <<__EOF__ >> "$cfgfile"
9425
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9426
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9427
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9429
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9430
# Free Software Foundation, Inc.
9432
# This file is part of GNU Libtool:
9433
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9435
# This program is free software; you can redistribute it and/or modify
9436
# it under the terms of the GNU General Public License as published by
9437
# the Free Software Foundation; either version 2 of the License, or
9438
# (at your option) any later version.
9440
# This program is distributed in the hope that it will be useful, but
9441
# WITHOUT ANY WARRANTY; without even the implied warranty of
9442
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9443
# General Public License for more details.
9445
# You should have received a copy of the GNU General Public License
9446
# along with this program; if not, write to the Free Software
9447
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9449
# As a special exception to the GNU General Public License, if you
9450
# distribute this file as part of a program that contains a
9451
# configuration script generated by Autoconf, you may include it under
9452
# the same distribution terms that you use for the rest of that program.
9454
# A sed program that does not truncate output.
9457
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9458
Xsed="$SED -e 1s/^X//"
9460
# The HP-UX ksh and POSIX shell print the target directory to stdout
9462
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9464
# The names of the tagged configurations supported by this script.
9467
# ### BEGIN LIBTOOL CONFIG
9469
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9471
# Shell to use when invoking shell scripts.
9474
# Whether or not to build shared libraries.
9475
build_libtool_libs=$enable_shared
9477
# Whether or not to build static libraries.
9478
build_old_libs=$enable_static
9480
# Whether or not to add -lc for building shared libraries.
9481
build_libtool_need_lc=$archive_cmds_need_lc
9483
# Whether or not to disallow shared libs when runtime libs are static
9484
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9486
# Whether or not to optimize for fast installation.
9487
fast_install=$enable_fast_install
9490
host_alias=$host_alias
9495
build_alias=$build_alias
9499
# An echo program that does not interpret backslashes.
9504
AR_FLAGS=$lt_AR_FLAGS
9509
# LTCC compiler flags.
9510
LTCFLAGS=$lt_LTCFLAGS
9512
# A language-specific compiler.
9515
# Is the compiler the GNU C compiler?
9521
# The linker used to build libraries.
9524
# Whether we need hard or soft links.
9527
# A BSD-compatible nm program.
9530
# A symbol stripping program
9533
# Used to examine libraries when file_magic_cmd begins "file"
9534
MAGIC_CMD=$MAGIC_CMD
9536
# Used on cygwin: DLL creation program.
9539
# Used on cygwin: object dumper.
9542
# Used on cygwin: assembler.
9545
# The name of the directory that contains temporary libtool files.
9548
# How to create reloadable object files.
9549
reload_flag=$lt_reload_flag
9550
reload_cmds=$lt_reload_cmds
9552
# How to pass a linker flag through the compiler.
9553
wl=$lt_lt_prog_compiler_wl
9555
# Object file suffix (normally "o").
9558
# Old archive suffix (normally "a").
9561
# Shared library suffix (normally ".so").
9562
shrext_cmds='$shrext_cmds'
9564
# Executable file suffix (normally "").
9567
# Additional compiler flags for building library objects.
9568
pic_flag=$lt_lt_prog_compiler_pic
9571
# What is the maximum length of a command?
9572
max_cmd_len=$lt_cv_sys_max_cmd_len
9574
# Does compiler simultaneously support -c and -o options?
9575
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9577
# Must we lock files when doing compilation?
9578
need_locks=$lt_need_locks
9580
# Do we need the lib prefix for modules?
9581
need_lib_prefix=$need_lib_prefix
9583
# Do we need a version for libraries?
9584
need_version=$need_version
9586
# Whether dlopen is supported.
9587
dlopen_support=$enable_dlopen
9589
# Whether dlopen of programs is supported.
9590
dlopen_self=$enable_dlopen_self
9592
# Whether dlopen of statically linked programs is supported.
9593
dlopen_self_static=$enable_dlopen_self_static
9595
# Compiler flag to prevent dynamic linking.
9596
link_static_flag=$lt_lt_prog_compiler_static
9598
# Compiler flag to turn off builtin functions.
9599
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9601
# Compiler flag to allow reflexive dlopens.
9602
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9604
# Compiler flag to generate shared objects directly from archives.
9605
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9607
# Compiler flag to generate thread-safe objects.
9608
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9610
# Library versioning type.
9611
version_type=$version_type
9613
# Format of library name prefix.
9614
libname_spec=$lt_libname_spec
9616
# List of archive names. First name is the real one, the rest are links.
9617
# The last name is the one that the linker finds with -lNAME.
9618
library_names_spec=$lt_library_names_spec
9620
# The coded name of the library, if different from the real name.
9621
soname_spec=$lt_soname_spec
9623
# Commands used to build and install an old-style archive.
9625
old_archive_cmds=$lt_old_archive_cmds
9626
old_postinstall_cmds=$lt_old_postinstall_cmds
9627
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9629
# Create an old-style archive from a shared archive.
9630
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9632
# Create a temporary old-style archive to link instead of a shared archive.
9633
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9635
# Commands used to build and install a shared archive.
9636
archive_cmds=$lt_archive_cmds
9637
archive_expsym_cmds=$lt_archive_expsym_cmds
9638
postinstall_cmds=$lt_postinstall_cmds
9639
postuninstall_cmds=$lt_postuninstall_cmds
9641
# Commands used to build a loadable module (assumed same as above if empty)
9642
module_cmds=$lt_module_cmds
9643
module_expsym_cmds=$lt_module_expsym_cmds
9645
# Commands to strip libraries.
9646
old_striplib=$lt_old_striplib
9647
striplib=$lt_striplib
9649
# Dependencies to place before the objects being linked to create a
9651
predep_objects=$lt_predep_objects
9653
# Dependencies to place after the objects being linked to create a
9655
postdep_objects=$lt_postdep_objects
9657
# Dependencies to place before the objects being linked to create a
9661
# Dependencies to place after the objects being linked to create a
9663
postdeps=$lt_postdeps
9665
# The library search path used internally by the compiler when linking
9667
compiler_lib_search_path=$lt_compiler_lib_search_path
9669
# Method to check whether dependent libraries are shared objects.
9670
deplibs_check_method=$lt_deplibs_check_method
9672
# Command to use when deplibs_check_method == file_magic.
9673
file_magic_cmd=$lt_file_magic_cmd
9675
# Flag that allows shared libraries with undefined symbols to be built.
9676
allow_undefined_flag=$lt_allow_undefined_flag
9678
# Flag that forces no undefined symbols.
9679
no_undefined_flag=$lt_no_undefined_flag
9681
# Commands used to finish a libtool library installation in a directory.
9682
finish_cmds=$lt_finish_cmds
9684
# Same as above, but a single script fragment to be evaled but not shown.
9685
finish_eval=$lt_finish_eval
9687
# Take the output of nm and produce a listing of raw symbols and C names.
9688
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9690
# Transform the output of nm in a proper C declaration
9691
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9693
# Transform the output of nm in a C name address pair
9694
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9696
# This is the shared library runtime path variable.
9697
runpath_var=$runpath_var
9699
# This is the shared library path variable.
9700
shlibpath_var=$shlibpath_var
9702
# Is shlibpath searched before the hard-coded library search path?
9703
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9705
# How to hardcode a shared library path into an executable.
9706
hardcode_action=$hardcode_action
9708
# Whether we should hardcode library paths into libraries.
9709
hardcode_into_libs=$hardcode_into_libs
9711
# Flag to hardcode \$libdir into a binary during linking.
9712
# This must work even if \$libdir does not exist.
9713
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9715
# If ld is used when linking, flag to hardcode \$libdir into
9716
# a binary during linking. This must work even if \$libdir does
9718
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9720
# Whether we need a single -rpath flag with a separated argument.
9721
hardcode_libdir_separator=$lt_hardcode_libdir_separator
9723
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9725
hardcode_direct=$hardcode_direct
9727
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9729
hardcode_minus_L=$hardcode_minus_L
9731
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9732
# the resulting binary.
9733
hardcode_shlibpath_var=$hardcode_shlibpath_var
9735
# Set to yes if building a shared library automatically hardcodes DIR into the library
9736
# and all subsequent libraries and executables linked against it.
9737
hardcode_automatic=$hardcode_automatic
9739
# Variables whose values should be saved in libtool wrapper scripts and
9740
# restored at relink time.
9741
variables_saved_for_relink="$variables_saved_for_relink"
9743
# Whether libtool must link a program against all its dependency libraries.
9744
link_all_deplibs=$link_all_deplibs
9746
# Compile-time system search path for libraries
9747
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9749
# Run-time system search path for libraries
9750
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9752
# Fix the shell variable \$srcfile for the compiler.
9753
fix_srcfile_path="$fix_srcfile_path"
9755
# Set to yes if exported symbols are required.
9756
always_export_symbols=$always_export_symbols
9758
# The commands to list exported symbols.
9759
export_symbols_cmds=$lt_export_symbols_cmds
9761
# The commands to extract the exported symbol list from a shared archive.
9762
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9764
# Symbols that should not be listed in the preloaded symbols.
9765
exclude_expsyms=$lt_exclude_expsyms
9767
# Symbols that must always be exported.
9768
include_expsyms=$lt_include_expsyms
9770
# ### END LIBTOOL CONFIG
9777
cat <<\EOF >> "$cfgfile"
9779
# AIX sometimes has problems with the GCC collect2 program. For some
9780
# reason, if we set the COLLECT_NAMES environment variable, the problems
9781
# vanish in a puff of smoke.
9782
if test "X${COLLECT_NAMES+set}" != Xset; then
9784
export COLLECT_NAMES
9790
# We use sed instead of cat because bash on DJGPP gets confused if
9791
# if finds mixed CR/LF and LF-only lines. Since sed operates in
9792
# text mode, it properly converts lines to CR/LF. This bash problem
9793
# is reportedly fixed, but why not run on old versions too?
9794
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9796
mv -f "$cfgfile" "$ofile" || \
9797
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9801
# If there is no Makefile yet, we rely on a make rule to execute
9802
# `config.status --recheck' to rerun these tests and create the
9803
# libtool script then.
9804
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9805
if test -f "$ltmain_in"; then
9806
test -f Makefile && make "$ltmain"
9812
ac_cpp='$CPP $CPPFLAGS'
9813
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9814
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9815
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9820
# Check whether --with-tags or --without-tags was given.
9821
if test "${with_tags+set}" = set; then
9822
withval="$with_tags"
9826
if test -f "$ltmain" && test -n "$tagnames"; then
9827
if test ! -f "${ofile}"; then
9828
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9829
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9832
if test -z "$LTCC"; then
9833
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9834
if test -z "$LTCC"; then
9835
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9836
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9838
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9839
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9842
if test -z "$LTCFLAGS"; then
9843
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9846
# Extract list of available tagged configurations in $ofile.
9847
# Note that this assumes the entire list is on one line.
9848
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9850
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9851
for tagname in $tagnames; do
9853
# Check whether tagname contains only valid characters
9854
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9856
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9857
echo "$as_me: error: invalid tag name: $tagname" >&2;}
9858
{ (exit 1); exit 1; }; }
9862
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9864
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9865
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9866
{ (exit 1); exit 1; }; }
9869
# Update the list of available tags.
9870
if test -n "$tagname"; then
9871
echo appending configuration tag \"$tagname\" to $ofile
9875
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9876
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9877
(test "X$CXX" != "Xg++"))) ; then
9879
ac_cpp='$CXXCPP $CPPFLAGS'
9880
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9881
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9882
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9887
archive_cmds_need_lc_CXX=no
9888
allow_undefined_flag_CXX=
9889
always_export_symbols_CXX=no
9890
archive_expsym_cmds_CXX=
9891
export_dynamic_flag_spec_CXX=
9892
hardcode_direct_CXX=no
9893
hardcode_libdir_flag_spec_CXX=
9894
hardcode_libdir_flag_spec_ld_CXX=
9895
hardcode_libdir_separator_CXX=
9896
hardcode_minus_L_CXX=no
9897
hardcode_shlibpath_var_CXX=unsupported
9898
hardcode_automatic_CXX=no
9900
module_expsym_cmds_CXX=
9901
link_all_deplibs_CXX=unknown
9902
old_archive_cmds_CXX=$old_archive_cmds
9903
no_undefined_flag_CXX=
9904
whole_archive_flag_spec_CXX=
9905
enable_shared_with_static_runtimes_CXX=no
9907
# Dependencies to place before and after the object being linked:
9909
postdep_objects_CXX=
9912
compiler_lib_search_path_CXX=
9914
# Source file extension for C++ test sources.
9917
# Object file extension for compiled C++ test sources.
9921
# Code to be used in simple compile tests
9922
lt_simple_compile_test_code="int some_variable = 0;\n"
9924
# Code to be used in simple link tests
9925
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9927
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9929
# If no C compiler was specified, use CC.
9932
# If no C compiler flags were specified, use CFLAGS.
9933
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9935
# Allow CC to be a program name with arguments.
9939
# save warnings/boilerplate of simple test code
9940
ac_outfile=conftest.$ac_objext
9941
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9942
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9943
_lt_compiler_boilerplate=`cat conftest.err`
9946
ac_outfile=conftest.$ac_objext
9947
printf "$lt_simple_link_test_code" >conftest.$ac_ext
9948
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9949
_lt_linker_boilerplate=`cat conftest.err`
9953
# Allow CC to be a program name with arguments.
9958
lt_save_with_gnu_ld=$with_gnu_ld
9959
lt_save_path_LD=$lt_cv_path_LD
9960
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9961
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9963
$as_unset lt_cv_prog_gnu_ld
9965
if test -n "${lt_cv_path_LDCXX+set}"; then
9966
lt_cv_path_LD=$lt_cv_path_LDCXX
9968
$as_unset lt_cv_path_LD
9970
test -z "${LDCXX+set}" || LD=$LDCXX
9974
for cc_temp in $compiler""; do
9976
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9977
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9982
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9985
# We don't want -fno-exception wen compiling C++ code, so set the
9986
# no_builtin_flag separately
9987
if test "$GXX" = yes; then
9988
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9990
lt_prog_compiler_no_builtin_flag_CXX=
9993
if test "$GXX" = yes; then
9994
# Set up default GNU C++ configuration
9997
# Check whether --with-gnu-ld or --without-gnu-ld was given.
9998
if test "${with_gnu_ld+set}" = set; then
9999
withval="$with_gnu_ld"
10000
test "$withval" = no || with_gnu_ld=yes
10005
if test "$GCC" = yes; then
10006
# Check if gcc -print-prog-name=ld gives a path.
10007
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10008
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10011
# gcc leaves a trailing carriage return which upsets mingw
10012
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10014
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10017
# Accept absolute paths.
10019
re_direlt='/[^/][^/]*/\.\./'
10020
# Canonicalize the pathname of ld
10021
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10022
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10023
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10025
test -z "$LD" && LD="$ac_prog"
10028
# If it fails, then pretend we aren't using GCC.
10032
# If it is relative, then search for the first ld in PATH.
10033
with_gnu_ld=unknown
10036
elif test "$with_gnu_ld" = yes; then
10037
echo "$as_me:$LINENO: checking for GNU ld" >&5
10038
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10040
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10041
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10043
if test "${lt_cv_path_LD+set}" = set; then
10044
echo $ECHO_N "(cached) $ECHO_C" >&6
10046
if test -z "$LD"; then
10047
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10048
for ac_dir in $PATH; do
10050
test -z "$ac_dir" && ac_dir=.
10051
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10052
lt_cv_path_LD="$ac_dir/$ac_prog"
10053
# Check to see if the program is GNU ld. I'd rather use --version,
10054
# but apparently some variants of GNU ld only accept -v.
10055
# Break only if it was the GNU/non-GNU ld that we prefer.
10056
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10057
*GNU* | *'with BFD'*)
10058
test "$with_gnu_ld" != no && break
10061
test "$with_gnu_ld" != yes && break
10068
lt_cv_path_LD="$LD" # Let the user override the test with a path.
10072
LD="$lt_cv_path_LD"
10073
if test -n "$LD"; then
10074
echo "$as_me:$LINENO: result: $LD" >&5
10075
echo "${ECHO_T}$LD" >&6
10077
echo "$as_me:$LINENO: result: no" >&5
10078
echo "${ECHO_T}no" >&6
10080
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10081
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10082
{ (exit 1); exit 1; }; }
10083
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10084
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10085
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10086
echo $ECHO_N "(cached) $ECHO_C" >&6
10088
# I'd rather use --version here, but apparently some GNU lds only accept -v.
10089
case `$LD -v 2>&1 </dev/null` in
10090
*GNU* | *'with BFD'*)
10091
lt_cv_prog_gnu_ld=yes
10094
lt_cv_prog_gnu_ld=no
10098
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10099
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10100
with_gnu_ld=$lt_cv_prog_gnu_ld
10104
# Check if GNU C++ uses GNU ld as the underlying linker, since the
10105
# archiving commands below assume that GNU ld is being used.
10106
if test "$with_gnu_ld" = yes; then
10107
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10108
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'
10110
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10111
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10113
# If archive_cmds runs LD, not CC, wlarc should be empty
10114
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10115
# investigate it a little bit more. (MM)
10118
# ancient GNU ld didn't support --whole-archive et. al.
10119
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10120
grep 'no-whole-archive' > /dev/null; then
10121
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10123
whole_archive_flag_spec_CXX=
10129
# A generic and very simple default shared library creation
10130
# command for GNU C++ for the case where it uses the native
10131
# linker, instead of GNU ld. If possible, this setting should
10132
# overridden to take advantage of the native linker features on
10133
# the platform it is being used on.
10134
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10137
# Commands to make compiler produce verbose output that lists
10138
# what "hidden" libraries, object files and flags are used when
10139
# linking a shared library.
10140
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10148
# PORTME: fill in a description of your system's C++ link characteristics
10149
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10150
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10154
# FIXME: insert proper C++ library support
10158
if test "$host_cpu" = ia64; then
10159
# On IA64, the linker does run time linking by default, so we don't
10160
# have to do anything special.
10161
aix_use_runtimelinking=no
10162
exp_sym_flag='-Bexport'
10165
aix_use_runtimelinking=no
10167
# Test if we are trying to use run time linking or normal
10168
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10169
# need to do runtime linking.
10170
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10171
for ld_flag in $LDFLAGS; do
10174
aix_use_runtimelinking=yes
10182
exp_sym_flag='-bexport'
10183
no_entry_flag='-bnoentry'
10186
# When large executables or shared objects are built, AIX ld can
10187
# have problems creating the table of contents. If linking a library
10188
# or program results in "error TOC overflow" add -mminimal-toc to
10189
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10190
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10192
archive_cmds_CXX=''
10193
hardcode_direct_CXX=yes
10194
hardcode_libdir_separator_CXX=':'
10195
link_all_deplibs_CXX=yes
10197
if test "$GXX" = yes; then
10198
case $host_os in aix4.[012]|aix4.[012].*)
10199
# We only want to do this on AIX 4.2 and lower, the check
10200
# below for broken collect2 doesn't work under 4.3+
10201
collect2name=`${CC} -print-prog-name=collect2`
10202
if test -f "$collect2name" && \
10203
strings "$collect2name" | grep resolve_lib_name >/dev/null
10205
# We have reworked collect2
10206
hardcode_direct_CXX=yes
10208
# We have old collect2
10209
hardcode_direct_CXX=unsupported
10210
# It fails to find uninstalled libraries when the uninstalled
10211
# path is not listed in the libpath. Setting hardcode_minus_L
10212
# to unsupported forces relinking
10213
hardcode_minus_L_CXX=yes
10214
hardcode_libdir_flag_spec_CXX='-L$libdir'
10215
hardcode_libdir_separator_CXX=
10219
shared_flag='-shared'
10220
if test "$aix_use_runtimelinking" = yes; then
10221
shared_flag="$shared_flag "'${wl}-G'
10225
if test "$host_cpu" = ia64; then
10226
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10227
# chokes on -Wl,-G. The following line is correct:
10230
if test "$aix_use_runtimelinking" = yes; then
10231
shared_flag='${wl}-G'
10233
shared_flag='${wl}-bM:SRE'
10238
# It seems that -bexpall does not export symbols beginning with
10239
# underscore (_), so it is better to generate a list of symbols to export.
10240
always_export_symbols_CXX=yes
10241
if test "$aix_use_runtimelinking" = yes; then
10242
# Warning - without using the other runtime loading flags (-brtl),
10243
# -berok will link without error, but may produce a broken library.
10244
allow_undefined_flag_CXX='-berok'
10245
# Determine the default libpath from the value encoded in an empty executable.
10246
cat >conftest.$ac_ext <<_ACEOF
10249
cat confdefs.h >>conftest.$ac_ext
10250
cat >>conftest.$ac_ext <<_ACEOF
10251
/* end confdefs.h. */
10261
rm -f conftest.$ac_objext conftest$ac_exeext
10262
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10263
(eval $ac_link) 2>conftest.er1
10265
grep -v '^ *+' conftest.er1 >conftest.err
10267
cat conftest.err >&5
10268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269
(exit $ac_status); } &&
10270
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10271
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272
(eval $ac_try) 2>&5
10274
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275
(exit $ac_status); }; } &&
10276
{ ac_try='test -s conftest$ac_exeext'
10277
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278
(eval $ac_try) 2>&5
10280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281
(exit $ac_status); }; }; then
10283
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10285
# Check for a 64-bit object if we didn't find anything.
10286
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; }
10289
echo "$as_me: failed program was:" >&5
10290
sed 's/^/| /' conftest.$ac_ext >&5
10293
rm -f conftest.err conftest.$ac_objext \
10294
conftest$ac_exeext conftest.$ac_ext
10295
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10297
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10299
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10301
if test "$host_cpu" = ia64; then
10302
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10303
allow_undefined_flag_CXX="-z nodefs"
10304
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10306
# Determine the default libpath from the value encoded in an empty executable.
10307
cat >conftest.$ac_ext <<_ACEOF
10310
cat confdefs.h >>conftest.$ac_ext
10311
cat >>conftest.$ac_ext <<_ACEOF
10312
/* end confdefs.h. */
10322
rm -f conftest.$ac_objext conftest$ac_exeext
10323
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10324
(eval $ac_link) 2>conftest.er1
10326
grep -v '^ *+' conftest.er1 >conftest.err
10328
cat conftest.err >&5
10329
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330
(exit $ac_status); } &&
10331
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10332
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10333
(eval $ac_try) 2>&5
10335
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336
(exit $ac_status); }; } &&
10337
{ ac_try='test -s conftest$ac_exeext'
10338
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10339
(eval $ac_try) 2>&5
10341
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342
(exit $ac_status); }; }; then
10344
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10346
# Check for a 64-bit object if we didn't find anything.
10347
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; }
10350
echo "$as_me: failed program was:" >&5
10351
sed 's/^/| /' conftest.$ac_ext >&5
10354
rm -f conftest.err conftest.$ac_objext \
10355
conftest$ac_exeext conftest.$ac_ext
10356
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10358
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10359
# Warning - without using the other run time loading flags,
10360
# -berok will link without error, but may produce a broken library.
10361
no_undefined_flag_CXX=' ${wl}-bernotok'
10362
allow_undefined_flag_CXX=' ${wl}-berok'
10363
# Exported symbols can be pulled into shared objects from archives
10364
whole_archive_flag_spec_CXX='$convenience'
10365
archive_cmds_need_lc_CXX=yes
10366
# This is similar to how AIX traditionally builds its shared libraries.
10367
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10373
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10374
allow_undefined_flag_CXX=unsupported
10375
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10376
# support --undefined. This deserves some investigation. FIXME
10377
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10384
case $cc_basename in
10386
# FIXME: insert proper C++ library support
10392
cygwin* | mingw* | pw32*)
10393
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10394
# as there is no search path for DLLs.
10395
hardcode_libdir_flag_spec_CXX='-L$libdir'
10396
allow_undefined_flag_CXX=unsupported
10397
always_export_symbols_CXX=no
10398
enable_shared_with_static_runtimes_CXX=yes
10400
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10401
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10402
# If the export-symbols file already is a .def file (1st line
10403
# is EXPORTS), use it as is; otherwise, prepend...
10404
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10405
cp $export_symbols $output_objdir/$soname.def;
10407
echo EXPORTS > $output_objdir/$soname.def;
10408
cat $export_symbols >> $output_objdir/$soname.def;
10410
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10415
darwin* | rhapsody*)
10417
rhapsody* | darwin1.[012])
10418
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10421
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10422
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10424
case ${MACOSX_DEPLOYMENT_TARGET} in
10426
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10429
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10435
archive_cmds_need_lc_CXX=no
10436
hardcode_direct_CXX=no
10437
hardcode_automatic_CXX=yes
10438
hardcode_shlibpath_var_CXX=unsupported
10439
whole_archive_flag_spec_CXX=''
10440
link_all_deplibs_CXX=yes
10442
if test "$GXX" = yes ; then
10443
lt_int_apple_cc_single_mod=no
10444
output_verbose_link_cmd='echo'
10445
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10446
lt_int_apple_cc_single_mod=yes
10448
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10449
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10451
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'
10453
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10454
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10455
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10456
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}'
10458
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}'
10460
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}'
10462
case $cc_basename in
10464
output_verbose_link_cmd='echo'
10465
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'
10466
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10467
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10468
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}'
10469
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}'
10479
case $cc_basename in
10481
# FIXME: insert proper C++ library support
10485
# Green Hills C++ Compiler
10486
# FIXME: insert proper C++ library support
10490
# FIXME: insert proper C++ library support
10496
# C++ shared libraries reported to be fairly broken before switch to ELF
10500
archive_cmds_need_lc_CXX=no
10502
freebsd* | kfreebsd*-gnu | dragonfly*)
10503
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10510
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10511
hardcode_libdir_separator_CXX=:
10512
export_dynamic_flag_spec_CXX='${wl}-E'
10513
hardcode_direct_CXX=yes
10514
hardcode_minus_L_CXX=yes # Not in the search PATH,
10515
# but as the default
10516
# location of the library.
10518
case $cc_basename in
10520
# FIXME: insert proper C++ library support
10524
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'
10525
# Commands to make compiler produce verbose output that lists
10526
# what "hidden" libraries, object files and flags are used when
10527
# linking a shared library.
10529
# There doesn't appear to be a way to prevent this compiler from
10530
# explicitly linking system object files so we need to strip them
10531
# from the output so that they don't get included in the library
10533
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'
10536
if test "$GXX" = yes; then
10537
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'
10539
# FIXME: insert proper C++ library support
10546
if test $with_gnu_ld = no; then
10547
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10548
hardcode_libdir_separator_CXX=:
10552
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10555
export_dynamic_flag_spec_CXX='${wl}-E'
10561
hardcode_direct_CXX=no
10562
hardcode_shlibpath_var_CXX=no
10565
hardcode_direct_CXX=yes
10566
hardcode_minus_L_CXX=yes # Not in the search PATH,
10567
# but as the default
10568
# location of the library.
10572
case $cc_basename in
10574
# FIXME: insert proper C++ library support
10580
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10583
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10586
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10589
# Commands to make compiler produce verbose output that lists
10590
# what "hidden" libraries, object files and flags are used when
10591
# linking a shared library.
10593
# There doesn't appear to be a way to prevent this compiler from
10594
# explicitly linking system object files so we need to strip them
10595
# from the output so that they don't get included in the library
10597
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'
10600
if test "$GXX" = yes; then
10601
if test $with_gnu_ld = no; then
10604
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10607
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10610
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'
10615
# FIXME: insert proper C++ library support
10622
hardcode_direct_CXX=no
10623
hardcode_shlibpath_var_CXX=no
10624
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10625
export_dynamic_flag_spec_CXX='${wl}-E'
10626
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10627
# Instead, shared libraries are loaded at an image base (0x10000000 by
10628
# default) and relocated if they conflict, which is a slow very memory
10629
# consuming and fragmenting process. To avoid this, we pick a random,
10630
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10631
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
10632
archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10633
archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10636
case $cc_basename in
10639
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10641
# Archives containing C++ object files must be created using
10642
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
10643
# necessary to make sure instantiated templates are included
10645
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10648
if test "$GXX" = yes; then
10649
if test "$with_gnu_ld" = no; then
10650
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10652
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'
10655
link_all_deplibs_CXX=yes
10658
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10659
hardcode_libdir_separator_CXX=:
10662
case $cc_basename in
10664
# Kuck and Associates, Inc. (KAI) C++ Compiler
10666
# KCC will only create a shared library if the output file
10667
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10668
# to its proper name (with version) after linking.
10669
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'
10670
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'
10671
# Commands to make compiler produce verbose output that lists
10672
# what "hidden" libraries, object files and flags are used when
10673
# linking a shared library.
10675
# There doesn't appear to be a way to prevent this compiler from
10676
# explicitly linking system object files so we need to strip them
10677
# from the output so that they don't get included in the library
10679
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'
10681
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10682
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10684
# Archives containing C++ object files must be created using
10685
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10686
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10691
# version 8.0 and above of icpc choke on multiply defined symbols
10692
# if we add $predep_objects and $postdep_objects, however 7.1 and
10693
# earlier do not add the objects themselves.
10694
case `$CC -V 2>&1` in
10696
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10697
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'
10699
*) # Version 8.0 or newer
10702
ia64*) tmp_idyn=' -i_dynamic';;
10704
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10705
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'
10708
archive_cmds_need_lc_CXX=no
10709
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10710
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10711
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10714
# Portland Group C++ compiler
10715
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10716
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10718
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10719
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10720
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10724
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10725
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'
10727
runpath_var=LD_RUN_PATH
10728
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10729
hardcode_libdir_separator_CXX=:
10731
# Commands to make compiler produce verbose output that lists
10732
# what "hidden" libraries, object files and flags are used when
10733
# linking a shared library.
10735
# There doesn't appear to be a way to prevent this compiler from
10736
# explicitly linking system object files so we need to strip them
10737
# from the output so that they don't get included in the library
10739
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'
10744
# FIXME: insert proper C++ library support
10748
# FIXME: insert proper C++ library support
10752
case $cc_basename in
10754
# FIXME: insert proper C++ library support
10758
# FIXME: insert proper C++ library support
10763
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10764
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10765
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10767
hardcode_libdir_flag_spec_CXX='-R$libdir'
10768
hardcode_direct_CXX=yes
10769
hardcode_shlibpath_var_CXX=no
10771
# Workaround some broken pre-1.5 toolchains
10772
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10775
# C++ shared libraries are fairly broken
10779
hardcode_direct_CXX=yes
10780
hardcode_shlibpath_var_CXX=no
10781
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10782
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10783
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10784
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10785
export_dynamic_flag_spec_CXX='${wl}-E'
10786
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10788
output_verbose_link_cmd='echo'
10791
case $cc_basename in
10793
# Kuck and Associates, Inc. (KAI) C++ Compiler
10795
# KCC will only create a shared library if the output file
10796
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10797
# to its proper name (with version) after linking.
10798
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'
10800
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10801
hardcode_libdir_separator_CXX=:
10803
# Archives containing C++ object files must be created using
10804
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10805
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10809
# Rational C++ 2.4.1
10810
# FIXME: insert proper C++ library support
10814
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10815
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10817
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10818
hardcode_libdir_separator_CXX=:
10820
# Commands to make compiler produce verbose output that lists
10821
# what "hidden" libraries, object files and flags are used when
10822
# linking a shared library.
10824
# There doesn't appear to be a way to prevent this compiler from
10825
# explicitly linking system object files so we need to strip them
10826
# from the output so that they don't get included in the library
10828
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'
10831
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10832
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10833
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10835
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10836
hardcode_libdir_separator_CXX=:
10838
# Commands to make compiler produce verbose output that lists
10839
# what "hidden" libraries, object files and flags are used when
10840
# linking a shared library.
10841
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10844
# FIXME: insert proper C++ library support
10851
case $cc_basename in
10853
# Kuck and Associates, Inc. (KAI) C++ Compiler
10855
# KCC will only create a shared library if the output file
10856
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10857
# to its proper name (with version) after linking.
10858
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'
10860
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10861
hardcode_libdir_separator_CXX=:
10863
# Archives containing C++ object files must be created using
10864
# the KAI C++ compiler.
10865
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10868
# Rational C++ 2.4.1
10869
# FIXME: insert proper C++ library support
10873
allow_undefined_flag_CXX=' -expect_unresolved \*'
10874
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10875
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10876
echo "-hidden">> $lib.exp~
10877
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10880
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10881
hardcode_libdir_separator_CXX=:
10883
# Commands to make compiler produce verbose output that lists
10884
# what "hidden" libraries, object files and flags are used when
10885
# linking a shared library.
10887
# There doesn't appear to be a way to prevent this compiler from
10888
# explicitly linking system object files so we need to strip them
10889
# from the output so that they don't get included in the library
10891
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'
10894
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10895
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10896
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10898
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10899
hardcode_libdir_separator_CXX=:
10901
# Commands to make compiler produce verbose output that lists
10902
# what "hidden" libraries, object files and flags are used when
10903
# linking a shared library.
10904
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10907
# FIXME: insert proper C++ library support
10914
# FIXME: insert proper C++ library support
10918
case $cc_basename in
10921
# FIXME: insert proper C++ library support
10926
# FIXME: insert proper C++ library support
10930
# FIXME: insert proper C++ library support
10936
case $cc_basename in
10938
# Sun C++ 4.2, 5.x and Centerline C++
10939
archive_cmds_need_lc_CXX=yes
10940
no_undefined_flag_CXX=' -zdefs'
10941
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10942
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10943
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10945
hardcode_libdir_flag_spec_CXX='-R$libdir'
10946
hardcode_shlibpath_var_CXX=no
10948
solaris2.[0-5] | solaris2.[0-5].*) ;;
10950
# The C++ compiler is used as linker so we must use $wl
10951
# flag to pass the commands to the underlying system
10952
# linker. We must also pass each convience library through
10953
# to the system linker between allextract/defaultextract.
10954
# The C++ compiler will combine linker options so we
10955
# cannot just pass the convience library names through
10957
# Supported since Solaris 2.6 (maybe 2.5.1?)
10958
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10961
link_all_deplibs_CXX=yes
10963
output_verbose_link_cmd='echo'
10965
# Archives containing C++ object files must be created using
10966
# "CC -xar", where "CC" is the Sun C++ compiler. This is
10967
# necessary to make sure instantiated templates are included
10969
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10972
# Green Hills C++ Compiler
10973
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10975
# The C++ compiler must be used to create the archive.
10976
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10979
# GNU C++ compiler with Solaris linker
10980
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10981
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10982
if $CC --version | grep -v '^2\.7' > /dev/null; then
10983
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10984
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10985
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10987
# Commands to make compiler produce verbose output that lists
10988
# what "hidden" libraries, object files and flags are used when
10989
# linking a shared library.
10990
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10992
# g++ 2.7 appears to require `-G' NOT `-shared' on this
10994
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10995
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10996
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10998
# Commands to make compiler produce verbose output that lists
10999
# what "hidden" libraries, object files and flags are used when
11000
# linking a shared library.
11001
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11004
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11009
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11010
no_undefined_flag_CXX='${wl}-z,text'
11011
archive_cmds_need_lc_CXX=no
11012
hardcode_shlibpath_var_CXX=no
11013
runpath_var='LD_RUN_PATH'
11015
case $cc_basename in
11017
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11018
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11021
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11022
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11026
sysv5* | sco3.2v5* | sco5v6*)
11027
# Note: We can NOT use -z defs as we might desire, because we do not
11028
# link with -lc, and that would cause any symbols used from libc to
11029
# always be unresolved, which means just about no library would
11030
# ever link correctly. If we're not using GNU ld we use -z text
11031
# though, which does catch some bad symbols but isn't as heavy-handed
11033
# For security reasons, it is highly recommended that you always
11034
# use absolute paths for naming shared libraries, and exclude the
11035
# DT_RUNPATH tag from executables and libraries. But doing so
11036
# requires that you compile everything twice, which is a pain.
11037
# So that behaviour is only enabled if SCOABSPATH is set to a
11038
# non-empty value in the environment. Most likely only useful for
11039
# creating official distributions of packages.
11040
# This is a hack until libtool officially supports absolute path
11041
# names for shared libraries.
11042
no_undefined_flag_CXX='${wl}-z,text'
11043
allow_undefined_flag_CXX='${wl}-z,nodefs'
11044
archive_cmds_need_lc_CXX=no
11045
hardcode_shlibpath_var_CXX=no
11046
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11047
hardcode_libdir_separator_CXX=':'
11048
link_all_deplibs_CXX=yes
11049
export_dynamic_flag_spec_CXX='${wl}-Bexport'
11050
runpath_var='LD_RUN_PATH'
11052
case $cc_basename in
11054
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11055
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11058
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11059
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11064
case $cc_basename in
11066
# NonStop-UX NCC 3.20
11067
# FIXME: insert proper C++ library support
11071
# FIXME: insert proper C++ library support
11077
# FIXME: insert proper C++ library support
11081
# FIXME: insert proper C++ library support
11085
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11086
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11087
test "$ld_shlibs_CXX" = no && can_build_shared=no
11093
cat > conftest.$ac_ext <<EOF
11097
Foo (void) { a = 0; }
11103
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11104
(eval $ac_compile) 2>&5
11106
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107
(exit $ac_status); }; then
11108
# Parse the compiler output and extract the necessary
11109
# objects, libraries and library flags.
11111
# Sentinel used to keep track of whether or not we are before
11112
# the conftest object file.
11113
pre_test_object_deps_done=no
11115
# The `*' in the case matches for architectures that use `case' in
11116
# $output_verbose_cmd can trigger glob expansion during the loop
11117
# eval without this substitution.
11118
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11120
for p in `eval $output_verbose_link_cmd`; do
11124
# Some compilers place space between "-{L,R}" and the path.
11125
# Remove the space.
11126
if test $p = "-L" \
11127
|| test $p = "-R"; then
11134
if test "$pre_test_object_deps_done" = no; then
11137
# Internal compiler library paths should come after those
11138
# provided the user. The postdeps already come after the
11139
# user supplied libs so there is no need to process them.
11140
if test -z "$compiler_lib_search_path_CXX"; then
11141
compiler_lib_search_path_CXX="${prev}${p}"
11143
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11146
# The "-l" case would never come before the object being
11147
# linked, so don't bother handling this case.
11150
if test -z "$postdeps_CXX"; then
11151
postdeps_CXX="${prev}${p}"
11153
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11159
# This assumes that the test object file only shows up
11160
# once in the compiler output.
11161
if test "$p" = "conftest.$objext"; then
11162
pre_test_object_deps_done=yes
11166
if test "$pre_test_object_deps_done" = no; then
11167
if test -z "$predep_objects_CXX"; then
11168
predep_objects_CXX="$p"
11170
predep_objects_CXX="$predep_objects_CXX $p"
11173
if test -z "$postdep_objects_CXX"; then
11174
postdep_objects_CXX="$p"
11176
postdep_objects_CXX="$postdep_objects_CXX $p"
11181
*) ;; # Ignore the rest.
11189
echo "libtool.m4: error: problem compiling CXX test program"
11192
$rm -f confest.$objext
11194
# PORTME: override above test on systems where it is broken
11197
# Interix 3.5 installs completely hosed .la files for C++, so rather than
11198
# hack all around it, let's just trust "g++" to DTRT.
11199
predep_objects_CXX=
11200
postdep_objects_CXX=
11205
case $cc_basename in
11207
# Adding this requires a known-good setup of shared libraries for
11208
# Sun compiler versions before 5.6, else PIC objects from an old
11209
# archive will be linked into the output, leading to subtle bugs.
11210
postdeps_CXX='-lCstd -lCrun'
11217
case " $postdeps_CXX " in
11218
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11221
lt_prog_compiler_wl_CXX=
11222
lt_prog_compiler_pic_CXX=
11223
lt_prog_compiler_static_CXX=
11225
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11226
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11228
# C++ specific cases for pic, static, wl, etc.
11229
if test "$GXX" = yes; then
11230
lt_prog_compiler_wl_CXX='-Wl,'
11231
lt_prog_compiler_static_CXX='-static'
11235
# All AIX code is PIC.
11236
if test "$host_cpu" = ia64; then
11237
# AIX 5 now supports IA64 processor
11238
lt_prog_compiler_static_CXX='-Bstatic'
11242
# FIXME: we need at least 68020 code to build shared libraries, but
11243
# adding the `-m68020' flag to GCC prevents building anything better,
11245
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11247
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11248
# PIC is the default for these OSes.
11250
mingw* | os2* | pw32*)
11251
# This hack is so that the source file can tell whether it is being
11252
# built for inclusion in a dll (and should export symbols for example).
11253
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11255
darwin* | rhapsody*)
11256
# PIC is the default on this platform
11257
# Common symbols not allowed in MH_DYLIB files
11258
lt_prog_compiler_pic_CXX='-fno-common'
11261
# DJGPP does not support shared libraries at all
11262
lt_prog_compiler_pic_CXX=
11265
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
11266
# Instead, we relocate shared libraries at runtime.
11269
if test -d /usr/nec; then
11270
lt_prog_compiler_pic_CXX=-Kconform_pic
11274
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11275
# not for PA HP-UX.
11280
lt_prog_compiler_pic_CXX='-fPIC'
11285
lt_prog_compiler_pic_CXX='-fPIC'
11291
# All AIX code is PIC.
11292
if test "$host_cpu" = ia64; then
11293
# AIX 5 now supports IA64 processor
11294
lt_prog_compiler_static_CXX='-Bstatic'
11296
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11300
case $cc_basename in
11302
# Green Hills C++ Compiler
11303
# _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"
11308
# PIC is the default on this platform
11309
# Common symbols not allowed in MH_DYLIB files
11310
case $cc_basename in
11312
lt_prog_compiler_pic_CXX='-qnocommon'
11313
lt_prog_compiler_wl_CXX='-Wl,'
11318
case $cc_basename in
11320
lt_prog_compiler_pic_CXX='-KPIC'
11323
# Green Hills C++ Compiler
11324
lt_prog_compiler_pic_CXX='-pic'
11330
freebsd* | kfreebsd*-gnu | dragonfly*)
11331
# FreeBSD uses GNU C++
11333
hpux9* | hpux10* | hpux11*)
11334
case $cc_basename in
11336
lt_prog_compiler_wl_CXX='-Wl,'
11337
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11338
if test "$host_cpu" != ia64; then
11339
lt_prog_compiler_pic_CXX='+Z'
11343
lt_prog_compiler_wl_CXX='-Wl,'
11344
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11350
lt_prog_compiler_pic_CXX='+Z'
11359
# This is c89, which is MS Visual C++ (no shared libs)
11360
# Anyone wants to do a port?
11362
irix5* | irix6* | nonstopux*)
11363
case $cc_basename in
11365
lt_prog_compiler_wl_CXX='-Wl,'
11366
lt_prog_compiler_static_CXX='-non_shared'
11367
# CC pic flag -KPIC is the default.
11374
case $cc_basename in
11377
lt_prog_compiler_wl_CXX='--backend -Wl,'
11378
lt_prog_compiler_pic_CXX='-fPIC'
11382
lt_prog_compiler_wl_CXX='-Wl,'
11383
lt_prog_compiler_pic_CXX='-KPIC'
11384
lt_prog_compiler_static_CXX='-static'
11387
# Portland Group C++ compiler.
11388
lt_prog_compiler_wl_CXX='-Wl,'
11389
lt_prog_compiler_pic_CXX='-fpic'
11390
lt_prog_compiler_static_CXX='-Bstatic'
11394
# Make sure the PIC flag is empty. It appears that all Alpha
11395
# Linux and Compaq Tru64 Unix objects are PIC.
11396
lt_prog_compiler_pic_CXX=
11397
lt_prog_compiler_static_CXX='-non_shared'
11408
case $cc_basename in
11410
lt_prog_compiler_pic_CXX='-W c,exportall'
11416
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11418
osf3* | osf4* | osf5*)
11419
case $cc_basename in
11421
lt_prog_compiler_wl_CXX='--backend -Wl,'
11424
# Rational C++ 2.4.1
11425
lt_prog_compiler_pic_CXX='-pic'
11428
# Digital/Compaq C++
11429
lt_prog_compiler_wl_CXX='-Wl,'
11430
# Make sure the PIC flag is empty. It appears that all Alpha
11431
# Linux and Compaq Tru64 Unix objects are PIC.
11432
lt_prog_compiler_pic_CXX=
11433
lt_prog_compiler_static_CXX='-non_shared'
11442
case $cc_basename in
11444
# Sun C++ 4.2, 5.x and Centerline C++
11445
lt_prog_compiler_pic_CXX='-KPIC'
11446
lt_prog_compiler_static_CXX='-Bstatic'
11447
lt_prog_compiler_wl_CXX='-Qoption ld '
11450
# Green Hills C++ Compiler
11451
lt_prog_compiler_pic_CXX='-PIC'
11458
case $cc_basename in
11461
lt_prog_compiler_pic_CXX='-pic'
11462
lt_prog_compiler_static_CXX='-Bstatic'
11466
lt_prog_compiler_pic_CXX='-pic'
11473
case $cc_basename in
11475
# NonStop-UX NCC 3.20
11476
lt_prog_compiler_pic_CXX='-KPIC'
11482
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11483
case $cc_basename in
11485
lt_prog_compiler_wl_CXX='-Wl,'
11486
lt_prog_compiler_pic_CXX='-KPIC'
11487
lt_prog_compiler_static_CXX='-Bstatic'
11494
lt_prog_compiler_can_build_shared_CXX=no
11499
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11500
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11503
# Check to make sure the PIC flag actually works.
11505
if test -n "$lt_prog_compiler_pic_CXX"; then
11507
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11508
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11509
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11510
echo $ECHO_N "(cached) $ECHO_C" >&6
11512
lt_prog_compiler_pic_works_CXX=no
11513
ac_outfile=conftest.$ac_objext
11514
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11515
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11516
# Insert the option either (1) after the last *FLAGS variable, or
11517
# (2) before a word containing "conftest.", or (3) at the end.
11518
# Note that $ac_compile itself does not contain backslashes and begins
11519
# with a dollar sign (not a hyphen), so the echo should work correctly.
11520
# The option is referenced via a variable to avoid confusing sed.
11521
lt_compile=`echo "$ac_compile" | $SED \
11522
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11523
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11524
-e 's:$: $lt_compiler_flag:'`
11525
(eval echo "\"\$as_me:11525: $lt_compile\"" >&5)
11526
(eval "$lt_compile" 2>conftest.err)
11528
cat conftest.err >&5
11529
echo "$as_me:11529: \$? = $ac_status" >&5
11530
if (exit $ac_status) && test -s "$ac_outfile"; then
11531
# The compiler can only warn and ignore the option if not recognized
11532
# So say no if there are warnings other than the usual output.
11533
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11534
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11535
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11536
lt_prog_compiler_pic_works_CXX=yes
11542
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11543
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11545
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11546
case $lt_prog_compiler_pic_CXX in
11548
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11551
lt_prog_compiler_pic_CXX=
11552
lt_prog_compiler_can_build_shared_CXX=no
11557
# For platforms which do not support PIC, -DPIC is meaningless:
11559
lt_prog_compiler_pic_CXX=
11562
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11567
# Check to make sure the static flag actually works.
11569
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11570
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11571
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11572
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11573
echo $ECHO_N "(cached) $ECHO_C" >&6
11575
lt_prog_compiler_static_works_CXX=no
11576
save_LDFLAGS="$LDFLAGS"
11577
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11578
printf "$lt_simple_link_test_code" > conftest.$ac_ext
11579
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11580
# The linker can only warn and ignore the option if not recognized
11581
# So say no if there are warnings
11582
if test -s conftest.err; then
11583
# Append any errors to the config.log.
11584
cat conftest.err 1>&5
11585
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11586
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11587
if diff conftest.exp conftest.er2 >/dev/null; then
11588
lt_prog_compiler_static_works_CXX=yes
11591
lt_prog_compiler_static_works_CXX=yes
11595
LDFLAGS="$save_LDFLAGS"
11598
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11599
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11601
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11604
lt_prog_compiler_static_CXX=
11608
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11609
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11610
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11611
echo $ECHO_N "(cached) $ECHO_C" >&6
11613
lt_cv_prog_compiler_c_o_CXX=no
11614
$rm -r conftest 2>/dev/null
11618
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11620
lt_compiler_flag="-o out/conftest2.$ac_objext"
11621
# Insert the option either (1) after the last *FLAGS variable, or
11622
# (2) before a word containing "conftest.", or (3) at the end.
11623
# Note that $ac_compile itself does not contain backslashes and begins
11624
# with a dollar sign (not a hyphen), so the echo should work correctly.
11625
lt_compile=`echo "$ac_compile" | $SED \
11626
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11627
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11628
-e 's:$: $lt_compiler_flag:'`
11629
(eval echo "\"\$as_me:11629: $lt_compile\"" >&5)
11630
(eval "$lt_compile" 2>out/conftest.err)
11632
cat out/conftest.err >&5
11633
echo "$as_me:11633: \$? = $ac_status" >&5
11634
if (exit $ac_status) && test -s out/conftest2.$ac_objext
11636
# The compiler can only warn and ignore the option if not recognized
11637
# So say no if there are warnings
11638
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11639
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11640
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11641
lt_cv_prog_compiler_c_o_CXX=yes
11646
# SGI C++ compiler will create directory out/ii_files/ for
11647
# template instantiation
11648
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11649
$rm out/* && rmdir out
11655
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11656
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11659
hard_links="nottested"
11660
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11661
# do not overwrite the value of need_locks provided by the user
11662
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11663
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11666
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11668
ln conftest.a conftest.b 2>&5 || hard_links=no
11669
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11670
echo "$as_me:$LINENO: result: $hard_links" >&5
11671
echo "${ECHO_T}$hard_links" >&6
11672
if test "$hard_links" = no; then
11673
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11674
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11681
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11682
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11684
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11687
# If we're using GNU nm, then we don't want the "-C" option.
11688
# -C means demangle to AIX nm, but means don't demangle with GNU nm
11689
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11690
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'
11692
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'
11696
export_symbols_cmds_CXX="$ltdll_cmds"
11699
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'
11702
link_all_deplibs_CXX=no
11705
link_all_deplibs_CXX=no
11708
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11712
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11713
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11714
test "$ld_shlibs_CXX" = no && can_build_shared=no
11717
# Do we need to explicitly link libc?
11719
case "x$archive_cmds_need_lc_CXX" in
11721
# Assume -lc should be added
11722
archive_cmds_need_lc_CXX=yes
11724
if test "$enable_shared" = yes && test "$GCC" = yes; then
11725
case $archive_cmds_CXX in
11727
# FIXME: we may have to deal with multi-command sequences.
11730
# Test whether the compiler implicitly links with -lc since on some
11731
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11732
# to ld, don't add -lc before -lgcc.
11733
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11734
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11736
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11738
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11739
(eval $ac_compile) 2>&5
11741
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742
(exit $ac_status); } 2>conftest.err; then
11745
libobjs=conftest.$ac_objext
11747
wl=$lt_prog_compiler_wl_CXX
11748
pic_flag=$lt_prog_compiler_pic_CXX
11754
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11755
allow_undefined_flag_CXX=
11756
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11757
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11759
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760
(exit $ac_status); }
11762
archive_cmds_need_lc_CXX=no
11764
archive_cmds_need_lc_CXX=yes
11766
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11768
cat conftest.err 1>&5
11771
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11772
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11779
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11780
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11781
library_names_spec=
11782
libname_spec='lib$name'
11786
postuninstall_cmds=
11790
shlibpath_overrides_runpath=unknown
11792
dynamic_linker="$host_os ld.so"
11793
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11794
if test "$GCC" = yes; then
11795
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11796
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11797
# if the path contains ";" then we assume it to be the separator
11798
# otherwise default to the standard path separator (i.e. ":") - it is
11799
# assumed that no part of a normal pathname contains ";" but that should
11800
# okay in the real world where ";" in dirpaths is itself problematic.
11801
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11803
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11806
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11808
need_lib_prefix=unknown
11809
hardcode_into_libs=no
11811
# when you set need_version to no, make sure it does not cause -set_version
11812
# flags to be left without arguments
11813
need_version=unknown
11818
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11819
shlibpath_var=LIBPATH
11821
# AIX 3 has no versioning support, so we append a major version to the name.
11822
soname_spec='${libname}${release}${shared_ext}$major'
11829
hardcode_into_libs=yes
11830
if test "$host_cpu" = ia64; then
11831
# AIX 5 supports IA64
11832
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11833
shlibpath_var=LD_LIBRARY_PATH
11835
# With GCC up to 2.95.x, collect2 would create an import file
11836
# for dependence libraries. The import file would start with
11837
# the line `#! .'. This would cause the generated library to
11838
# depend on `.', always an invalid library. This was fixed in
11839
# development snapshots of GCC prior to 3.0.
11841
aix4 | aix4.[01] | aix4.[01].*)
11842
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11844
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11847
can_build_shared=no
11851
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11852
# soname into executable. Probably we can add versioning support to
11853
# collect2, so additional links can be useful in future.
11854
if test "$aix_use_runtimelinking" = yes; then
11855
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11856
# instead of lib<name>.a to let people know that these are not
11857
# typical AIX shared libraries.
11858
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11860
# We preserve .a as extension for shared libraries through AIX4.2
11861
# and later when we are not doing run time linking.
11862
library_names_spec='${libname}${release}.a $libname.a'
11863
soname_spec='${libname}${release}${shared_ext}$major'
11865
shlibpath_var=LIBPATH
11870
library_names_spec='$libname.ixlibrary $libname.a'
11871
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11872
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'
11876
library_names_spec='${libname}${shared_ext}'
11877
dynamic_linker="$host_os ld.so"
11878
shlibpath_var=LIBRARY_PATH
11884
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11885
soname_spec='${libname}${release}${shared_ext}$major'
11886
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11887
shlibpath_var=LD_LIBRARY_PATH
11888
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11889
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11890
# the default ld.so.conf also contains /usr/contrib/lib and
11891
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11892
# libtool to hard-code these into programs
11895
cygwin* | mingw* | pw32*)
11896
version_type=windows
11901
case $GCC,$host_os in
11902
yes,cygwin* | yes,mingw* | yes,pw32*)
11903
library_names_spec='$libname.dll.a'
11904
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11905
postinstall_cmds='base_file=`basename \${file}`~
11906
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11907
dldir=$destdir/`dirname \$dlpath`~
11908
test -d \$dldir || mkdir -p \$dldir~
11909
$install_prog $dir/$dlname \$dldir/$dlname~
11910
chmod a+x \$dldir/$dlname'
11911
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11912
dlpath=$dir/\$dldll~
11914
shlibpath_overrides_runpath=yes
11918
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11919
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11920
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11923
# MinGW DLLs use traditional 'lib' prefix
11924
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11925
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11926
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11927
# It is most probably a Windows format PATH printed by
11928
# mingw gcc, but we are running on Cygwin. Gcc prints its search
11929
# path with ; separators, and with drive letters. We can handle the
11930
# drive letters (cygwin fileutils understands them), so leave them,
11931
# especially as we might pass files found there to a mingw objdump,
11932
# which wouldn't understand a cygwinified path. Ahh.
11933
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11935
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11939
# pw32 DLLs use 'pw' prefix rather than 'lib'
11940
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11946
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11949
dynamic_linker='Win32 ld.exe'
11950
# FIXME: first we should search . and the directory the executable is in
11954
darwin* | rhapsody*)
11955
dynamic_linker="$host_os dyld"
11956
version_type=darwin
11959
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11960
soname_spec='${libname}${release}${major}$shared_ext'
11961
shlibpath_overrides_runpath=yes
11962
shlibpath_var=DYLD_LIBRARY_PATH
11963
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11964
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11965
if test "$GCC" = yes; then
11966
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"`
11968
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11970
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11977
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11978
soname_spec='${libname}${release}${shared_ext}$major'
11979
shlibpath_var=LD_LIBRARY_PATH
11990
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11991
soname_spec='${libname}${release}${shared_ext}$major'
11992
shlibpath_var=LD_LIBRARY_PATH
11993
shlibpath_overrides_runpath=no
11994
hardcode_into_libs=yes
11995
dynamic_linker='GNU ld.so'
11998
freebsd* | dragonfly*)
11999
# DragonFly does not have aout. When/if they implement a new
12000
# versioning mechanism, adjust this.
12001
if test -x /usr/bin/objformat; then
12002
objformat=`/usr/bin/objformat`
12005
freebsd[123]*) objformat=aout ;;
12006
*) objformat=elf ;;
12009
version_type=freebsd-$objformat
12010
case $version_type in
12012
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12017
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12021
shlibpath_var=LD_LIBRARY_PATH
12024
shlibpath_overrides_runpath=yes
12026
freebsd3.[01]* | freebsdelf3.[01]*)
12027
shlibpath_overrides_runpath=yes
12028
hardcode_into_libs=yes
12030
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12031
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12032
shlibpath_overrides_runpath=no
12033
hardcode_into_libs=yes
12035
freebsd*) # from 4.6 on
12036
shlibpath_overrides_runpath=yes
12037
hardcode_into_libs=yes
12046
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12047
soname_spec='${libname}${release}${shared_ext}$major'
12048
shlibpath_var=LD_LIBRARY_PATH
12049
hardcode_into_libs=yes
12052
hpux9* | hpux10* | hpux11*)
12053
# Give a soname corresponding to the major version so that dld.sl refuses to
12054
# link against other versions.
12061
hardcode_into_libs=yes
12062
dynamic_linker="$host_os dld.so"
12063
shlibpath_var=LD_LIBRARY_PATH
12064
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12065
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12066
soname_spec='${libname}${release}${shared_ext}$major'
12067
if test "X$HPUX_IA64_MODE" = X32; then
12068
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12070
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12072
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12076
hardcode_into_libs=yes
12077
dynamic_linker="$host_os dld.sl"
12078
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12079
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12080
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12081
soname_spec='${libname}${release}${shared_ext}$major'
12082
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12083
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12087
dynamic_linker="$host_os dld.sl"
12088
shlibpath_var=SHLIB_PATH
12089
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12090
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12091
soname_spec='${libname}${release}${shared_ext}$major'
12094
# HP-UX runs *really* slowly unless shared libraries are mode 555.
12095
postinstall_cmds='chmod 555 $lib'
12102
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12103
soname_spec='${libname}${release}${shared_ext}$major'
12104
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12105
shlibpath_var=LD_LIBRARY_PATH
12106
shlibpath_overrides_runpath=no
12107
hardcode_into_libs=yes
12110
irix5* | irix6* | nonstopux*)
12112
nonstopux*) version_type=nonstopux ;;
12114
if test "$lt_cv_prog_gnu_ld" = yes; then
12122
soname_spec='${libname}${release}${shared_ext}$major'
12123
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12125
irix5* | nonstopux*)
12126
libsuff= shlibsuff=
12129
case $LD in # libtool.m4 will add one of these switches to LD
12130
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12131
libsuff= shlibsuff= libmagic=32-bit;;
12132
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12133
libsuff=32 shlibsuff=N32 libmagic=N32;;
12134
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12135
libsuff=64 shlibsuff=64 libmagic=64-bit;;
12136
*) libsuff= shlibsuff= libmagic=never-match;;
12140
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12141
shlibpath_overrides_runpath=no
12142
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12143
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12144
hardcode_into_libs=yes
12147
# No shared lib support for Linux oldld, aout, or coff.
12148
linux*oldld* | linux*aout* | linux*coff*)
12152
# This must be Linux ELF.
12157
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12158
soname_spec='${libname}${release}${shared_ext}$major'
12159
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12160
shlibpath_var=LD_LIBRARY_PATH
12161
shlibpath_overrides_runpath=no
12162
# This implies no fast_install, which is unacceptable.
12163
# Some rework will be needed to allow for fast_install
12164
# before this can be enabled.
12165
hardcode_into_libs=yes
12167
# Append ld.so.conf contents to the search path
12168
if test -f /etc/ld.so.conf; then
12169
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12170
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12173
# We used to test for /lib/ld.so.1 and disable shared libraries on
12174
# powerpc, because MkLinux only supported shared libraries with the
12175
# GNU dynamic linker. Since this was broken with cross compilers,
12176
# most powerpc-linux boxes support dynamic linking these days and
12177
# people can always --disable-shared, the test was removed, and we
12178
# assume the GNU/Linux dynamic linker is in use.
12179
dynamic_linker='GNU/Linux ld.so'
12186
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12187
soname_spec='${libname}${release}${shared_ext}$major'
12188
shlibpath_var=LD_LIBRARY_PATH
12189
shlibpath_overrides_runpath=no
12190
hardcode_into_libs=yes
12191
dynamic_linker='NetBSD ld.elf_so'
12198
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12199
soname_spec='${libname}${release}${shared_ext}$major'
12200
shlibpath_var=LD_LIBRARY_PATH
12201
shlibpath_overrides_runpath=no
12202
hardcode_into_libs=yes
12203
dynamic_linker='GNU ld.so'
12210
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12211
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12212
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12213
dynamic_linker='NetBSD (a.out) ld.so'
12215
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12216
soname_spec='${libname}${release}${shared_ext}$major'
12217
dynamic_linker='NetBSD ld.elf_so'
12219
shlibpath_var=LD_LIBRARY_PATH
12220
shlibpath_overrides_runpath=yes
12221
hardcode_into_libs=yes
12226
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12227
shlibpath_var=LD_LIBRARY_PATH
12228
shlibpath_overrides_runpath=yes
12235
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12236
soname_spec='${libname}${release}${shared_ext}$major'
12237
shlibpath_var=LD_LIBRARY_PATH
12238
shlibpath_overrides_runpath=yes
12243
sys_lib_dlsearch_path_spec="/usr/lib"
12245
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12247
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12248
*) need_version=no ;;
12250
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12251
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12252
shlibpath_var=LD_LIBRARY_PATH
12253
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12255
openbsd2.[89] | openbsd2.[89].*)
12256
shlibpath_overrides_runpath=no
12259
shlibpath_overrides_runpath=yes
12263
shlibpath_overrides_runpath=yes
12268
libname_spec='$name'
12271
library_names_spec='$libname${shared_ext} $libname.a'
12272
dynamic_linker='OS/2 ld.exe'
12273
shlibpath_var=LIBPATH
12276
osf3* | osf4* | osf5*)
12280
soname_spec='${libname}${release}${shared_ext}$major'
12281
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12282
shlibpath_var=LD_LIBRARY_PATH
12283
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12284
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12291
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12292
soname_spec='${libname}${release}${shared_ext}$major'
12293
shlibpath_var=LD_LIBRARY_PATH
12294
shlibpath_overrides_runpath=yes
12295
hardcode_into_libs=yes
12296
# ldd complains unless libraries are executable
12297
postinstall_cmds='chmod +x $lib'
12302
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12303
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12304
shlibpath_var=LD_LIBRARY_PATH
12305
shlibpath_overrides_runpath=yes
12306
if test "$with_gnu_ld" = yes; then
12314
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12315
soname_spec='${libname}${release}${shared_ext}$major'
12316
shlibpath_var=LD_LIBRARY_PATH
12317
case $host_vendor in
12319
shlibpath_overrides_runpath=no
12321
export_dynamic_flag_spec='${wl}-Blargedynsym'
12322
runpath_var=LD_RUN_PATH
12330
shlibpath_overrides_runpath=no
12331
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12337
if test -d /usr/nec ;then
12339
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12340
soname_spec='$libname${shared_ext}.$major'
12341
shlibpath_var=LD_LIBRARY_PATH
12345
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12346
version_type=freebsd-elf
12349
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12350
soname_spec='${libname}${release}${shared_ext}$major'
12351
shlibpath_var=LD_LIBRARY_PATH
12352
hardcode_into_libs=yes
12353
if test "$with_gnu_ld" = yes; then
12354
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12355
shlibpath_overrides_runpath=no
12357
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12358
shlibpath_overrides_runpath=yes
12361
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12365
sys_lib_dlsearch_path_spec='/usr/lib'
12370
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12371
soname_spec='${libname}${release}${shared_ext}$major'
12372
shlibpath_var=LD_LIBRARY_PATH
12379
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12380
echo "${ECHO_T}$dynamic_linker" >&6
12381
test "$dynamic_linker" = no && can_build_shared=no
12383
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12384
if test "$GCC" = yes; then
12385
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12388
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12389
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12390
hardcode_action_CXX=
12391
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12392
test -n "$runpath_var_CXX" || \
12393
test "X$hardcode_automatic_CXX" = "Xyes" ; then
12395
# We can hardcode non-existant directories.
12396
if test "$hardcode_direct_CXX" != no &&
12397
# If the only mechanism to avoid hardcoding is shlibpath_var, we
12398
# have to relink, otherwise we might link with an installed library
12399
# when we should be linking with a yet-to-be-installed one
12400
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12401
test "$hardcode_minus_L_CXX" != no; then
12402
# Linking always hardcodes the temporary library directory.
12403
hardcode_action_CXX=relink
12405
# We can link without hardcoding, and we can hardcode nonexisting dirs.
12406
hardcode_action_CXX=immediate
12409
# We cannot hardcode anything, or else we can only hardcode existing
12411
hardcode_action_CXX=unsupported
12413
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12414
echo "${ECHO_T}$hardcode_action_CXX" >&6
12416
if test "$hardcode_action_CXX" = relink; then
12417
# Fast installation is not supported
12418
enable_fast_install=no
12419
elif test "$shlibpath_overrides_runpath" = yes ||
12420
test "$enable_shared" = no; then
12421
# Fast installation is not necessary
12422
enable_fast_install=needless
12426
# The else clause should only fire when bootstrapping the
12427
# libtool distribution, otherwise you forgot to ship ltmain.sh
12428
# with your package, and you will get complaints that there are
12429
# no rules to generate ltmain.sh.
12430
if test -f "$ltmain"; then
12431
# See if we are running on zsh, and set the options which allow our commands through
12432
# without removal of \ escapes.
12433
if test -n "${ZSH_VERSION+set}" ; then
12434
setopt NO_GLOB_SUBST
12436
# Now quote all the things that may contain metacharacters while being
12437
# careful not to overquote the AC_SUBSTed values. We take copies of the
12438
# variables and quote the copies for generation of the libtool script.
12439
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12441
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12442
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12443
deplibs_check_method reload_flag reload_cmds need_locks \
12444
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12445
lt_cv_sys_global_symbol_to_c_name_address \
12446
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12447
old_postinstall_cmds old_postuninstall_cmds \
12451
lt_prog_compiler_wl_CXX \
12452
lt_prog_compiler_pic_CXX \
12453
lt_prog_compiler_static_CXX \
12454
lt_prog_compiler_no_builtin_flag_CXX \
12455
export_dynamic_flag_spec_CXX \
12456
thread_safe_flag_spec_CXX \
12457
whole_archive_flag_spec_CXX \
12458
enable_shared_with_static_runtimes_CXX \
12459
old_archive_cmds_CXX \
12460
old_archive_from_new_cmds_CXX \
12461
predep_objects_CXX \
12462
postdep_objects_CXX \
12465
compiler_lib_search_path_CXX \
12467
archive_expsym_cmds_CXX \
12468
postinstall_cmds_CXX \
12469
postuninstall_cmds_CXX \
12470
old_archive_from_expsyms_cmds_CXX \
12471
allow_undefined_flag_CXX \
12472
no_undefined_flag_CXX \
12473
export_symbols_cmds_CXX \
12474
hardcode_libdir_flag_spec_CXX \
12475
hardcode_libdir_flag_spec_ld_CXX \
12476
hardcode_libdir_separator_CXX \
12477
hardcode_automatic_CXX \
12479
module_expsym_cmds_CXX \
12480
lt_cv_prog_compiler_c_o_CXX \
12481
exclude_expsyms_CXX \
12482
include_expsyms_CXX; do
12485
old_archive_cmds_CXX | \
12486
old_archive_from_new_cmds_CXX | \
12487
archive_cmds_CXX | \
12488
archive_expsym_cmds_CXX | \
12489
module_cmds_CXX | \
12490
module_expsym_cmds_CXX | \
12491
old_archive_from_expsyms_cmds_CXX | \
12492
export_symbols_cmds_CXX | \
12493
extract_expsyms_cmds | reload_cmds | finish_cmds | \
12494
postinstall_cmds | postuninstall_cmds | \
12495
old_postinstall_cmds | old_postuninstall_cmds | \
12496
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12497
# Double-quote double-evaled strings.
12498
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12501
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12507
*'\$0 --fallback-echo"')
12508
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12514
cat <<__EOF__ >> "$cfgfile"
12515
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12517
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12519
# Shell to use when invoking shell scripts.
12522
# Whether or not to build shared libraries.
12523
build_libtool_libs=$enable_shared
12525
# Whether or not to build static libraries.
12526
build_old_libs=$enable_static
12528
# Whether or not to add -lc for building shared libraries.
12529
build_libtool_need_lc=$archive_cmds_need_lc_CXX
12531
# Whether or not to disallow shared libs when runtime libs are static
12532
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12534
# Whether or not to optimize for fast installation.
12535
fast_install=$enable_fast_install
12538
host_alias=$host_alias
12542
# The build system.
12543
build_alias=$build_alias
12547
# An echo program that does not interpret backslashes.
12552
AR_FLAGS=$lt_AR_FLAGS
12557
# LTCC compiler flags.
12558
LTCFLAGS=$lt_LTCFLAGS
12560
# A language-specific compiler.
12561
CC=$lt_compiler_CXX
12563
# Is the compiler the GNU C compiler?
12569
# The linker used to build libraries.
12572
# Whether we need hard or soft links.
12575
# A BSD-compatible nm program.
12578
# A symbol stripping program
12581
# Used to examine libraries when file_magic_cmd begins "file"
12582
MAGIC_CMD=$MAGIC_CMD
12584
# Used on cygwin: DLL creation program.
12587
# Used on cygwin: object dumper.
12590
# Used on cygwin: assembler.
12593
# The name of the directory that contains temporary libtool files.
12596
# How to create reloadable object files.
12597
reload_flag=$lt_reload_flag
12598
reload_cmds=$lt_reload_cmds
12600
# How to pass a linker flag through the compiler.
12601
wl=$lt_lt_prog_compiler_wl_CXX
12603
# Object file suffix (normally "o").
12604
objext="$ac_objext"
12606
# Old archive suffix (normally "a").
12609
# Shared library suffix (normally ".so").
12610
shrext_cmds='$shrext_cmds'
12612
# Executable file suffix (normally "").
12615
# Additional compiler flags for building library objects.
12616
pic_flag=$lt_lt_prog_compiler_pic_CXX
12619
# What is the maximum length of a command?
12620
max_cmd_len=$lt_cv_sys_max_cmd_len
12622
# Does compiler simultaneously support -c and -o options?
12623
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12625
# Must we lock files when doing compilation?
12626
need_locks=$lt_need_locks
12628
# Do we need the lib prefix for modules?
12629
need_lib_prefix=$need_lib_prefix
12631
# Do we need a version for libraries?
12632
need_version=$need_version
12634
# Whether dlopen is supported.
12635
dlopen_support=$enable_dlopen
12637
# Whether dlopen of programs is supported.
12638
dlopen_self=$enable_dlopen_self
12640
# Whether dlopen of statically linked programs is supported.
12641
dlopen_self_static=$enable_dlopen_self_static
12643
# Compiler flag to prevent dynamic linking.
12644
link_static_flag=$lt_lt_prog_compiler_static_CXX
12646
# Compiler flag to turn off builtin functions.
12647
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12649
# Compiler flag to allow reflexive dlopens.
12650
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12652
# Compiler flag to generate shared objects directly from archives.
12653
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12655
# Compiler flag to generate thread-safe objects.
12656
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12658
# Library versioning type.
12659
version_type=$version_type
12661
# Format of library name prefix.
12662
libname_spec=$lt_libname_spec
12664
# List of archive names. First name is the real one, the rest are links.
12665
# The last name is the one that the linker finds with -lNAME.
12666
library_names_spec=$lt_library_names_spec
12668
# The coded name of the library, if different from the real name.
12669
soname_spec=$lt_soname_spec
12671
# Commands used to build and install an old-style archive.
12673
old_archive_cmds=$lt_old_archive_cmds_CXX
12674
old_postinstall_cmds=$lt_old_postinstall_cmds
12675
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12677
# Create an old-style archive from a shared archive.
12678
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12680
# Create a temporary old-style archive to link instead of a shared archive.
12681
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12683
# Commands used to build and install a shared archive.
12684
archive_cmds=$lt_archive_cmds_CXX
12685
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12686
postinstall_cmds=$lt_postinstall_cmds
12687
postuninstall_cmds=$lt_postuninstall_cmds
12689
# Commands used to build a loadable module (assumed same as above if empty)
12690
module_cmds=$lt_module_cmds_CXX
12691
module_expsym_cmds=$lt_module_expsym_cmds_CXX
12693
# Commands to strip libraries.
12694
old_striplib=$lt_old_striplib
12695
striplib=$lt_striplib
12697
# Dependencies to place before the objects being linked to create a
12699
predep_objects=$lt_predep_objects_CXX
12701
# Dependencies to place after the objects being linked to create a
12703
postdep_objects=$lt_postdep_objects_CXX
12705
# Dependencies to place before the objects being linked to create a
12707
predeps=$lt_predeps_CXX
12709
# Dependencies to place after the objects being linked to create a
12711
postdeps=$lt_postdeps_CXX
12713
# The library search path used internally by the compiler when linking
12714
# a shared library.
12715
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12717
# Method to check whether dependent libraries are shared objects.
12718
deplibs_check_method=$lt_deplibs_check_method
12720
# Command to use when deplibs_check_method == file_magic.
12721
file_magic_cmd=$lt_file_magic_cmd
12723
# Flag that allows shared libraries with undefined symbols to be built.
12724
allow_undefined_flag=$lt_allow_undefined_flag_CXX
12726
# Flag that forces no undefined symbols.
12727
no_undefined_flag=$lt_no_undefined_flag_CXX
12729
# Commands used to finish a libtool library installation in a directory.
12730
finish_cmds=$lt_finish_cmds
12732
# Same as above, but a single script fragment to be evaled but not shown.
12733
finish_eval=$lt_finish_eval
12735
# Take the output of nm and produce a listing of raw symbols and C names.
12736
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12738
# Transform the output of nm in a proper C declaration
12739
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12741
# Transform the output of nm in a C name address pair
12742
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12744
# This is the shared library runtime path variable.
12745
runpath_var=$runpath_var
12747
# This is the shared library path variable.
12748
shlibpath_var=$shlibpath_var
12750
# Is shlibpath searched before the hard-coded library search path?
12751
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12753
# How to hardcode a shared library path into an executable.
12754
hardcode_action=$hardcode_action_CXX
12756
# Whether we should hardcode library paths into libraries.
12757
hardcode_into_libs=$hardcode_into_libs
12759
# Flag to hardcode \$libdir into a binary during linking.
12760
# This must work even if \$libdir does not exist.
12761
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12763
# If ld is used when linking, flag to hardcode \$libdir into
12764
# a binary during linking. This must work even if \$libdir does
12766
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12768
# Whether we need a single -rpath flag with a separated argument.
12769
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12771
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12772
# resulting binary.
12773
hardcode_direct=$hardcode_direct_CXX
12775
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12776
# resulting binary.
12777
hardcode_minus_L=$hardcode_minus_L_CXX
12779
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12780
# the resulting binary.
12781
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12783
# Set to yes if building a shared library automatically hardcodes DIR into the library
12784
# and all subsequent libraries and executables linked against it.
12785
hardcode_automatic=$hardcode_automatic_CXX
12787
# Variables whose values should be saved in libtool wrapper scripts and
12788
# restored at relink time.
12789
variables_saved_for_relink="$variables_saved_for_relink"
12791
# Whether libtool must link a program against all its dependency libraries.
12792
link_all_deplibs=$link_all_deplibs_CXX
12794
# Compile-time system search path for libraries
12795
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12797
# Run-time system search path for libraries
12798
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12800
# Fix the shell variable \$srcfile for the compiler.
12801
fix_srcfile_path="$fix_srcfile_path_CXX"
12803
# Set to yes if exported symbols are required.
12804
always_export_symbols=$always_export_symbols_CXX
12806
# The commands to list exported symbols.
12807
export_symbols_cmds=$lt_export_symbols_cmds_CXX
12809
# The commands to extract the exported symbol list from a shared archive.
12810
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12812
# Symbols that should not be listed in the preloaded symbols.
12813
exclude_expsyms=$lt_exclude_expsyms_CXX
12815
# Symbols that must always be exported.
12816
include_expsyms=$lt_include_expsyms_CXX
12818
# ### END LIBTOOL TAG CONFIG: $tagname
12824
# If there is no Makefile yet, we rely on a make rule to execute
12825
# `config.status --recheck' to rerun these tests and create the
12826
# libtool script then.
12827
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12828
if test -f "$ltmain_in"; then
12829
test -f Makefile && make "$ltmain"
12835
ac_cpp='$CPP $CPPFLAGS'
12836
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12837
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12838
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12844
with_gnu_ldcxx=$with_gnu_ld
12845
with_gnu_ld=$lt_save_with_gnu_ld
12846
lt_cv_path_LDCXX=$lt_cv_path_LD
12847
lt_cv_path_LD=$lt_save_path_LD
12848
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12849
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12857
if test -n "$F77" && test "X$F77" != "Xno"; then
12860
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12861
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12862
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12865
archive_cmds_need_lc_F77=no
12866
allow_undefined_flag_F77=
12867
always_export_symbols_F77=no
12868
archive_expsym_cmds_F77=
12869
export_dynamic_flag_spec_F77=
12870
hardcode_direct_F77=no
12871
hardcode_libdir_flag_spec_F77=
12872
hardcode_libdir_flag_spec_ld_F77=
12873
hardcode_libdir_separator_F77=
12874
hardcode_minus_L_F77=no
12875
hardcode_automatic_F77=no
12877
module_expsym_cmds_F77=
12878
link_all_deplibs_F77=unknown
12879
old_archive_cmds_F77=$old_archive_cmds
12880
no_undefined_flag_F77=
12881
whole_archive_flag_spec_F77=
12882
enable_shared_with_static_runtimes_F77=no
12884
# Source file extension for f77 test sources.
12887
# Object file extension for compiled f77 test sources.
12891
# Code to be used in simple compile tests
12892
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12894
# Code to be used in simple link tests
12895
lt_simple_link_test_code=" program t\n end\n"
12897
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12899
# If no C compiler was specified, use CC.
12902
# If no C compiler flags were specified, use CFLAGS.
12903
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12905
# Allow CC to be a program name with arguments.
12909
# save warnings/boilerplate of simple test code
12910
ac_outfile=conftest.$ac_objext
12911
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12912
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12913
_lt_compiler_boilerplate=`cat conftest.err`
12916
ac_outfile=conftest.$ac_objext
12917
printf "$lt_simple_link_test_code" >conftest.$ac_ext
12918
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12919
_lt_linker_boilerplate=`cat conftest.err`
12923
# Allow CC to be a program name with arguments.
12928
for cc_temp in $compiler""; do
12930
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12931
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12936
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12939
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12940
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12941
echo "$as_me:$LINENO: result: $can_build_shared" >&5
12942
echo "${ECHO_T}$can_build_shared" >&6
12944
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12945
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12946
test "$can_build_shared" = "no" && enable_shared=no
12948
# On AIX, shared libraries and static libraries use the same namespace, and
12949
# are all built from PIC.
12952
test "$enable_shared" = yes && enable_static=no
12953
if test -n "$RANLIB"; then
12954
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12955
postinstall_cmds='$RANLIB $lib'
12959
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12960
test "$enable_shared" = yes && enable_static=no
12964
echo "$as_me:$LINENO: result: $enable_shared" >&5
12965
echo "${ECHO_T}$enable_shared" >&6
12967
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12968
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12969
# Make sure either enable_shared or enable_static is yes.
12970
test "$enable_shared" = yes || enable_static=yes
12971
echo "$as_me:$LINENO: result: $enable_static" >&5
12972
echo "${ECHO_T}$enable_static" >&6
12977
lt_prog_compiler_wl_F77=
12978
lt_prog_compiler_pic_F77=
12979
lt_prog_compiler_static_F77=
12981
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12982
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12984
if test "$GCC" = yes; then
12985
lt_prog_compiler_wl_F77='-Wl,'
12986
lt_prog_compiler_static_F77='-static'
12990
# All AIX code is PIC.
12991
if test "$host_cpu" = ia64; then
12992
# AIX 5 now supports IA64 processor
12993
lt_prog_compiler_static_F77='-Bstatic'
12998
# FIXME: we need at least 68020 code to build shared libraries, but
12999
# adding the `-m68020' flag to GCC prevents building anything better,
13001
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13004
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13005
# PIC is the default for these OSes.
13008
mingw* | pw32* | os2*)
13009
# This hack is so that the source file can tell whether it is being
13010
# built for inclusion in a dll (and should export symbols for example).
13011
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13014
darwin* | rhapsody*)
13015
# PIC is the default on this platform
13016
# Common symbols not allowed in MH_DYLIB files
13017
lt_prog_compiler_pic_F77='-fno-common'
13021
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13022
# Instead, we relocate shared libraries at runtime.
13026
# Just because we use GCC doesn't mean we suddenly get shared libraries
13027
# on systems that don't support them.
13028
lt_prog_compiler_can_build_shared_F77=no
13033
if test -d /usr/nec; then
13034
lt_prog_compiler_pic_F77=-Kconform_pic
13039
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13040
# not for PA HP-UX.
13046
lt_prog_compiler_pic_F77='-fPIC'
13052
lt_prog_compiler_pic_F77='-fPIC'
13056
# PORTME Check for flag to pass linker flags through the system compiler.
13059
lt_prog_compiler_wl_F77='-Wl,'
13060
if test "$host_cpu" = ia64; then
13061
# AIX 5 now supports IA64 processor
13062
lt_prog_compiler_static_F77='-Bstatic'
13064
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13068
# PIC is the default on this platform
13069
# Common symbols not allowed in MH_DYLIB files
13070
case $cc_basename in
13072
lt_prog_compiler_pic_F77='-qnocommon'
13073
lt_prog_compiler_wl_F77='-Wl,'
13078
mingw* | pw32* | os2*)
13079
# This hack is so that the source file can tell whether it is being
13080
# built for inclusion in a dll (and should export symbols for example).
13081
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13084
hpux9* | hpux10* | hpux11*)
13085
lt_prog_compiler_wl_F77='-Wl,'
13086
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13087
# not for PA HP-UX.
13093
lt_prog_compiler_pic_F77='+Z'
13096
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13097
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13100
irix5* | irix6* | nonstopux*)
13101
lt_prog_compiler_wl_F77='-Wl,'
13102
# PIC (with -KPIC) is the default.
13103
lt_prog_compiler_static_F77='-non_shared'
13107
lt_prog_compiler_pic_F77='-KPIC'
13108
lt_prog_compiler_static_F77='-Bstatic'
13112
case $cc_basename in
13114
lt_prog_compiler_wl_F77='-Wl,'
13115
lt_prog_compiler_pic_F77='-KPIC'
13116
lt_prog_compiler_static_F77='-static'
13118
pgcc* | pgf77* | pgf90* | pgf95*)
13119
# Portland Group compilers (*not* the Pentium gcc compiler,
13120
# which looks to be a dead project)
13121
lt_prog_compiler_wl_F77='-Wl,'
13122
lt_prog_compiler_pic_F77='-fpic'
13123
lt_prog_compiler_static_F77='-Bstatic'
13126
lt_prog_compiler_wl_F77='-Wl,'
13127
# All Alpha code is PIC.
13128
lt_prog_compiler_static_F77='-non_shared'
13133
osf3* | osf4* | osf5*)
13134
lt_prog_compiler_wl_F77='-Wl,'
13135
# All OSF/1 code is PIC.
13136
lt_prog_compiler_static_F77='-non_shared'
13140
lt_prog_compiler_pic_F77='-KPIC'
13141
lt_prog_compiler_static_F77='-Bstatic'
13142
case $cc_basename in
13143
f77* | f90* | f95*)
13144
lt_prog_compiler_wl_F77='-Qoption ld ';;
13146
lt_prog_compiler_wl_F77='-Wl,';;
13151
lt_prog_compiler_wl_F77='-Qoption ld '
13152
lt_prog_compiler_pic_F77='-PIC'
13153
lt_prog_compiler_static_F77='-Bstatic'
13156
sysv4 | sysv4.2uw2* | sysv4.3*)
13157
lt_prog_compiler_wl_F77='-Wl,'
13158
lt_prog_compiler_pic_F77='-KPIC'
13159
lt_prog_compiler_static_F77='-Bstatic'
13163
if test -d /usr/nec ;then
13164
lt_prog_compiler_pic_F77='-Kconform_pic'
13165
lt_prog_compiler_static_F77='-Bstatic'
13169
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13170
lt_prog_compiler_wl_F77='-Wl,'
13171
lt_prog_compiler_pic_F77='-KPIC'
13172
lt_prog_compiler_static_F77='-Bstatic'
13176
lt_prog_compiler_wl_F77='-Wl,'
13177
lt_prog_compiler_can_build_shared_F77=no
13181
lt_prog_compiler_pic_F77='-pic'
13182
lt_prog_compiler_static_F77='-Bstatic'
13186
lt_prog_compiler_can_build_shared_F77=no
13191
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13192
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13195
# Check to make sure the PIC flag actually works.
13197
if test -n "$lt_prog_compiler_pic_F77"; then
13199
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13200
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13201
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13202
echo $ECHO_N "(cached) $ECHO_C" >&6
13204
lt_prog_compiler_pic_works_F77=no
13205
ac_outfile=conftest.$ac_objext
13206
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13207
lt_compiler_flag="$lt_prog_compiler_pic_F77"
13208
# Insert the option either (1) after the last *FLAGS variable, or
13209
# (2) before a word containing "conftest.", or (3) at the end.
13210
# Note that $ac_compile itself does not contain backslashes and begins
13211
# with a dollar sign (not a hyphen), so the echo should work correctly.
13212
# The option is referenced via a variable to avoid confusing sed.
13213
lt_compile=`echo "$ac_compile" | $SED \
13214
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13215
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13216
-e 's:$: $lt_compiler_flag:'`
13217
(eval echo "\"\$as_me:13217: $lt_compile\"" >&5)
13218
(eval "$lt_compile" 2>conftest.err)
13220
cat conftest.err >&5
13221
echo "$as_me:13221: \$? = $ac_status" >&5
13222
if (exit $ac_status) && test -s "$ac_outfile"; then
13223
# The compiler can only warn and ignore the option if not recognized
13224
# So say no if there are warnings other than the usual output.
13225
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13226
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13227
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13228
lt_prog_compiler_pic_works_F77=yes
13234
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13235
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13237
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13238
case $lt_prog_compiler_pic_F77 in
13240
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13243
lt_prog_compiler_pic_F77=
13244
lt_prog_compiler_can_build_shared_F77=no
13249
# For platforms which do not support PIC, -DPIC is meaningless:
13251
lt_prog_compiler_pic_F77=
13254
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13259
# Check to make sure the static flag actually works.
13261
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13262
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13263
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13264
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13265
echo $ECHO_N "(cached) $ECHO_C" >&6
13267
lt_prog_compiler_static_works_F77=no
13268
save_LDFLAGS="$LDFLAGS"
13269
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13270
printf "$lt_simple_link_test_code" > conftest.$ac_ext
13271
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13272
# The linker can only warn and ignore the option if not recognized
13273
# So say no if there are warnings
13274
if test -s conftest.err; then
13275
# Append any errors to the config.log.
13276
cat conftest.err 1>&5
13277
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13278
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13279
if diff conftest.exp conftest.er2 >/dev/null; then
13280
lt_prog_compiler_static_works_F77=yes
13283
lt_prog_compiler_static_works_F77=yes
13287
LDFLAGS="$save_LDFLAGS"
13290
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13291
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13293
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13296
lt_prog_compiler_static_F77=
13300
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13301
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13302
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13303
echo $ECHO_N "(cached) $ECHO_C" >&6
13305
lt_cv_prog_compiler_c_o_F77=no
13306
$rm -r conftest 2>/dev/null
13310
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13312
lt_compiler_flag="-o out/conftest2.$ac_objext"
13313
# Insert the option either (1) after the last *FLAGS variable, or
13314
# (2) before a word containing "conftest.", or (3) at the end.
13315
# Note that $ac_compile itself does not contain backslashes and begins
13316
# with a dollar sign (not a hyphen), so the echo should work correctly.
13317
lt_compile=`echo "$ac_compile" | $SED \
13318
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13319
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13320
-e 's:$: $lt_compiler_flag:'`
13321
(eval echo "\"\$as_me:13321: $lt_compile\"" >&5)
13322
(eval "$lt_compile" 2>out/conftest.err)
13324
cat out/conftest.err >&5
13325
echo "$as_me:13325: \$? = $ac_status" >&5
13326
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13328
# The compiler can only warn and ignore the option if not recognized
13329
# So say no if there are warnings
13330
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13331
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13332
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13333
lt_cv_prog_compiler_c_o_F77=yes
13338
# SGI C++ compiler will create directory out/ii_files/ for
13339
# template instantiation
13340
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13341
$rm out/* && rmdir out
13347
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13348
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13351
hard_links="nottested"
13352
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13353
# do not overwrite the value of need_locks provided by the user
13354
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13355
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13358
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13360
ln conftest.a conftest.b 2>&5 || hard_links=no
13361
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13362
echo "$as_me:$LINENO: result: $hard_links" >&5
13363
echo "${ECHO_T}$hard_links" >&6
13364
if test "$hard_links" = no; then
13365
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13366
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13373
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13374
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13377
allow_undefined_flag_F77=
13378
enable_shared_with_static_runtimes_F77=no
13380
archive_expsym_cmds_F77=
13381
old_archive_From_new_cmds_F77=
13382
old_archive_from_expsyms_cmds_F77=
13383
export_dynamic_flag_spec_F77=
13384
whole_archive_flag_spec_F77=
13385
thread_safe_flag_spec_F77=
13386
hardcode_libdir_flag_spec_F77=
13387
hardcode_libdir_flag_spec_ld_F77=
13388
hardcode_libdir_separator_F77=
13389
hardcode_direct_F77=no
13390
hardcode_minus_L_F77=no
13391
hardcode_shlibpath_var_F77=unsupported
13392
link_all_deplibs_F77=unknown
13393
hardcode_automatic_F77=no
13395
module_expsym_cmds_F77=
13396
always_export_symbols_F77=no
13397
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13398
# include_expsyms should be a list of space-separated symbols to be *always*
13399
# included in the symbol list
13400
include_expsyms_F77=
13401
# exclude_expsyms can be an extended regexp of symbols to exclude
13402
# it will be wrapped by ` (' and `)$', so one must not match beginning or
13403
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13404
# as well as any symbol that contains `d'.
13405
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13406
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13407
# platforms (ab)use it in PIC code, but their linkers get confused if
13408
# the symbol is explicitly referenced. Since portable code cannot
13409
# rely on this symbol name, it's probably fine to never include it in
13410
# preloaded symbol tables.
13411
extract_expsyms_cmds=
13412
# Just being paranoid about ensuring that cc_basename is set.
13413
for cc_temp in $compiler""; do
13415
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13416
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13421
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13424
cygwin* | mingw* | pw32*)
13425
# FIXME: the MSVC++ port hasn't been tested in a loooong time
13426
# When not using gcc, we currently assume that we are using
13427
# Microsoft Visual C++.
13428
if test "$GCC" != yes; then
13433
# we just hope/assume this is gcc and not c89 (= MSVC++)
13442
if test "$with_gnu_ld" = yes; then
13443
# If archive_cmds runs LD, not CC, wlarc should be empty
13446
# Set some defaults for GNU ld with shared library support. These
13447
# are reset later if shared libraries are not supported. Putting them
13448
# here allows them to be overridden if necessary.
13449
runpath_var=LD_RUN_PATH
13450
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13451
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13452
# ancient GNU ld didn't support --whole-archive et. al.
13453
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13454
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13456
whole_archive_flag_spec_F77=
13458
supports_anon_versioning=no
13459
case `$LD -v 2>/dev/null` in
13460
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13461
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13462
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13463
*\ 2.11.*) ;; # other 2.11 versions
13464
*) supports_anon_versioning=yes ;;
13467
# See if GNU ld supports shared libraries.
13469
aix3* | aix4* | aix5*)
13470
# On AIX/PPC, the GNU linker is very broken
13471
if test "$host_cpu" != ia64; then
13475
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13476
*** to be unable to reliably create shared libraries on AIX.
13477
*** Therefore, libtool is disabling shared libraries support. If you
13478
*** really care for shared libraries, you may want to modify your PATH
13479
*** so that a non-GNU linker is found, and then restart.
13486
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)'
13487
hardcode_libdir_flag_spec_F77='-L$libdir'
13488
hardcode_minus_L_F77=yes
13490
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13491
# that the semantics of dynamic libraries on AmigaOS, at least up
13492
# to version 4, is to share data among multiple programs linked
13493
# with the same dynamic library. Since this doesn't match the
13494
# behavior of shared libraries on other platforms, we can't use
13500
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13501
allow_undefined_flag_F77=unsupported
13502
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13503
# support --undefined. This deserves some investigation. FIXME
13504
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13510
cygwin* | mingw* | pw32*)
13511
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13512
# as there is no search path for DLLs.
13513
hardcode_libdir_flag_spec_F77='-L$libdir'
13514
allow_undefined_flag_F77=unsupported
13515
always_export_symbols_F77=no
13516
enable_shared_with_static_runtimes_F77=yes
13517
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13519
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13520
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13521
# If the export-symbols file already is a .def file (1st line
13522
# is EXPORTS), use it as is; otherwise, prepend...
13523
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13524
cp $export_symbols $output_objdir/$soname.def;
13526
echo EXPORTS > $output_objdir/$soname.def;
13527
cat $export_symbols >> $output_objdir/$soname.def;
13529
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13536
hardcode_direct_F77=no
13537
hardcode_shlibpath_var_F77=no
13538
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13539
export_dynamic_flag_spec_F77='${wl}-E'
13540
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13541
# Instead, shared libraries are loaded at an image base (0x10000000 by
13542
# default) and relocated if they conflict, which is a slow very memory
13543
# consuming and fragmenting process. To avoid this, we pick a random,
13544
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13545
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
13546
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13547
archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13551
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13553
case $cc_basename,$host_cpu in
13554
pgcc*) # Portland Group C compiler
13555
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13556
tmp_addflag=' $pic_flag'
13558
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13559
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13560
tmp_addflag=' $pic_flag -Mnomain' ;;
13561
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13562
tmp_addflag=' -i_dynamic' ;;
13563
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13564
tmp_addflag=' -i_dynamic -nofor_main' ;;
13565
ifc* | ifort*) # Intel Fortran compiler
13566
tmp_addflag=' -nofor_main' ;;
13568
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13570
if test $supports_anon_versioning = yes; then
13571
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13572
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13573
$echo "local: *; };" >> $output_objdir/$libname.ver~
13574
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13576
link_all_deplibs_F77=no
13582
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13583
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13584
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13587
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13588
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13593
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13597
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13598
*** create shared libraries on Solaris systems. Therefore, libtool
13599
*** is disabling shared libraries support. We urge you to upgrade GNU
13600
*** binutils to release 2.9.1 or newer. Another option is to modify
13601
*** your PATH or compiler configuration so that the native linker is
13602
*** used, and then restart.
13605
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13606
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13607
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13613
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13614
case `$LD -v 2>&1` in
13615
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13619
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13620
*** reliably create shared libraries on SCO systems. Therefore, libtool
13621
*** is disabling shared libraries support. We urge you to upgrade GNU
13622
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13623
*** your PATH or compiler configuration so that the native linker is
13624
*** used, and then restart.
13629
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13630
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13631
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13632
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13641
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13643
hardcode_direct_F77=yes
13644
hardcode_shlibpath_var_F77=no
13648
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13649
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13650
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13657
if test "$ld_shlibs_F77" = no; then
13659
hardcode_libdir_flag_spec_F77=
13660
export_dynamic_flag_spec_F77=
13661
whole_archive_flag_spec_F77=
13664
# PORTME fill in a description of your system's linker (not GNU ld)
13667
allow_undefined_flag_F77=unsupported
13668
always_export_symbols_F77=yes
13669
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'
13670
# Note: this linker hardcodes the directories in LIBPATH if there
13671
# are no directories specified by -L.
13672
hardcode_minus_L_F77=yes
13673
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13674
# Neither direct hardcoding nor static linking is supported with a
13676
hardcode_direct_F77=unsupported
13681
if test "$host_cpu" = ia64; then
13682
# On IA64, the linker does run time linking by default, so we don't
13683
# have to do anything special.
13684
aix_use_runtimelinking=no
13685
exp_sym_flag='-Bexport'
13688
# If we're using GNU nm, then we don't want the "-C" option.
13689
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13690
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13691
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'
13693
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'
13695
aix_use_runtimelinking=no
13697
# Test if we are trying to use run time linking or normal
13698
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13699
# need to do runtime linking.
13700
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13701
for ld_flag in $LDFLAGS; do
13702
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13703
aix_use_runtimelinking=yes
13710
exp_sym_flag='-bexport'
13711
no_entry_flag='-bnoentry'
13714
# When large executables or shared objects are built, AIX ld can
13715
# have problems creating the table of contents. If linking a library
13716
# or program results in "error TOC overflow" add -mminimal-toc to
13717
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13718
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13720
archive_cmds_F77=''
13721
hardcode_direct_F77=yes
13722
hardcode_libdir_separator_F77=':'
13723
link_all_deplibs_F77=yes
13725
if test "$GCC" = yes; then
13726
case $host_os in aix4.[012]|aix4.[012].*)
13727
# We only want to do this on AIX 4.2 and lower, the check
13728
# below for broken collect2 doesn't work under 4.3+
13729
collect2name=`${CC} -print-prog-name=collect2`
13730
if test -f "$collect2name" && \
13731
strings "$collect2name" | grep resolve_lib_name >/dev/null
13733
# We have reworked collect2
13734
hardcode_direct_F77=yes
13736
# We have old collect2
13737
hardcode_direct_F77=unsupported
13738
# It fails to find uninstalled libraries when the uninstalled
13739
# path is not listed in the libpath. Setting hardcode_minus_L
13740
# to unsupported forces relinking
13741
hardcode_minus_L_F77=yes
13742
hardcode_libdir_flag_spec_F77='-L$libdir'
13743
hardcode_libdir_separator_F77=
13747
shared_flag='-shared'
13748
if test "$aix_use_runtimelinking" = yes; then
13749
shared_flag="$shared_flag "'${wl}-G'
13753
if test "$host_cpu" = ia64; then
13754
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13755
# chokes on -Wl,-G. The following line is correct:
13758
if test "$aix_use_runtimelinking" = yes; then
13759
shared_flag='${wl}-G'
13761
shared_flag='${wl}-bM:SRE'
13766
# It seems that -bexpall does not export symbols beginning with
13767
# underscore (_), so it is better to generate a list of symbols to export.
13768
always_export_symbols_F77=yes
13769
if test "$aix_use_runtimelinking" = yes; then
13770
# Warning - without using the other runtime loading flags (-brtl),
13771
# -berok will link without error, but may produce a broken library.
13772
allow_undefined_flag_F77='-berok'
13773
# Determine the default libpath from the value encoded in an empty executable.
13774
cat >conftest.$ac_ext <<_ACEOF
13779
rm -f conftest.$ac_objext conftest$ac_exeext
13780
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13781
(eval $ac_link) 2>conftest.er1
13783
grep -v '^ *+' conftest.er1 >conftest.err
13785
cat conftest.err >&5
13786
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787
(exit $ac_status); } &&
13788
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13789
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790
(eval $ac_try) 2>&5
13792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793
(exit $ac_status); }; } &&
13794
{ ac_try='test -s conftest$ac_exeext'
13795
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13796
(eval $ac_try) 2>&5
13798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799
(exit $ac_status); }; }; then
13801
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13803
# Check for a 64-bit object if we didn't find anything.
13804
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; }
13807
echo "$as_me: failed program was:" >&5
13808
sed 's/^/| /' conftest.$ac_ext >&5
13811
rm -f conftest.err conftest.$ac_objext \
13812
conftest$ac_exeext conftest.$ac_ext
13813
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13815
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13816
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13818
if test "$host_cpu" = ia64; then
13819
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13820
allow_undefined_flag_F77="-z nodefs"
13821
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13823
# Determine the default libpath from the value encoded in an empty executable.
13824
cat >conftest.$ac_ext <<_ACEOF
13829
rm -f conftest.$ac_objext conftest$ac_exeext
13830
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13831
(eval $ac_link) 2>conftest.er1
13833
grep -v '^ *+' conftest.er1 >conftest.err
13835
cat conftest.err >&5
13836
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837
(exit $ac_status); } &&
13838
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13839
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13840
(eval $ac_try) 2>&5
13842
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843
(exit $ac_status); }; } &&
13844
{ ac_try='test -s conftest$ac_exeext'
13845
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846
(eval $ac_try) 2>&5
13848
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849
(exit $ac_status); }; }; then
13851
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13853
# Check for a 64-bit object if we didn't find anything.
13854
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; }
13857
echo "$as_me: failed program was:" >&5
13858
sed 's/^/| /' conftest.$ac_ext >&5
13861
rm -f conftest.err conftest.$ac_objext \
13862
conftest$ac_exeext conftest.$ac_ext
13863
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13865
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13866
# Warning - without using the other run time loading flags,
13867
# -berok will link without error, but may produce a broken library.
13868
no_undefined_flag_F77=' ${wl}-bernotok'
13869
allow_undefined_flag_F77=' ${wl}-berok'
13870
# Exported symbols can be pulled into shared objects from archives
13871
whole_archive_flag_spec_F77='$convenience'
13872
archive_cmds_need_lc_F77=yes
13873
# This is similar to how AIX traditionally builds its shared libraries.
13874
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13880
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)'
13881
hardcode_libdir_flag_spec_F77='-L$libdir'
13882
hardcode_minus_L_F77=yes
13883
# see comment about different semantics on the GNU ld section
13888
export_dynamic_flag_spec_F77=-rdynamic
13891
cygwin* | mingw* | pw32*)
13892
# When not using gcc, we currently assume that we are using
13893
# Microsoft Visual C++.
13894
# hardcode_libdir_flag_spec is actually meaningless, as there is
13895
# no search path for DLLs.
13896
hardcode_libdir_flag_spec_F77=' '
13897
allow_undefined_flag_F77=unsupported
13898
# Tell ltmain to make .lib files, not .a files.
13900
# Tell ltmain to make .dll files, not .so files.
13902
# FIXME: Setting linknames here is a bad hack.
13903
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13904
# The linker will automatically build a .lib file if we build a DLL.
13905
old_archive_From_new_cmds_F77='true'
13906
# FIXME: Should let the user specify the lib program.
13907
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13908
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13909
enable_shared_with_static_runtimes_F77=yes
13912
darwin* | rhapsody*)
13914
rhapsody* | darwin1.[012])
13915
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13918
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13919
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13921
case ${MACOSX_DEPLOYMENT_TARGET} in
13923
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13926
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13932
archive_cmds_need_lc_F77=no
13933
hardcode_direct_F77=no
13934
hardcode_automatic_F77=yes
13935
hardcode_shlibpath_var_F77=unsupported
13936
whole_archive_flag_spec_F77=''
13937
link_all_deplibs_F77=yes
13938
if test "$GCC" = yes ; then
13939
output_verbose_link_cmd='echo'
13940
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13941
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13942
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13943
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}'
13944
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}'
13946
case $cc_basename in
13948
output_verbose_link_cmd='echo'
13949
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13950
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13951
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13952
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}'
13953
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}'
13963
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13964
hardcode_libdir_flag_spec_F77='-L$libdir'
13965
hardcode_shlibpath_var_F77=no
13972
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13973
# support. Future versions do this automatically, but an explicit c++rt0.o
13974
# does not break anything, and helps significantly (at the cost of a little
13977
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13978
hardcode_libdir_flag_spec_F77='-R$libdir'
13979
hardcode_direct_F77=yes
13980
hardcode_shlibpath_var_F77=no
13983
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
13985
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13986
hardcode_direct_F77=yes
13987
hardcode_minus_L_F77=yes
13988
hardcode_shlibpath_var_F77=no
13991
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13992
freebsd* | dragonfly*)
13993
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13994
hardcode_libdir_flag_spec_F77='-R$libdir'
13995
hardcode_direct_F77=yes
13996
hardcode_shlibpath_var_F77=no
13999
# GNU/kFreeBSD uses gcc -shared to do shared libraries.
14001
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14002
hardcode_libdir_flag_spec_F77='-R$libdir'
14003
hardcode_direct_F77=yes
14004
hardcode_shlibpath_var_F77=no
14005
link_all_deplibs_F77=no
14009
if test "$GCC" = yes; then
14010
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'
14012
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'
14014
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14015
hardcode_libdir_separator_F77=:
14016
hardcode_direct_F77=yes
14018
# hardcode_minus_L: Not really in the search PATH,
14019
# but as the default location of the library.
14020
hardcode_minus_L_F77=yes
14021
export_dynamic_flag_spec_F77='${wl}-E'
14025
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14026
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14028
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14030
if test "$with_gnu_ld" = no; then
14031
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14032
hardcode_libdir_separator_F77=:
14034
hardcode_direct_F77=yes
14035
export_dynamic_flag_spec_F77='${wl}-E'
14037
# hardcode_minus_L: Not really in the search PATH,
14038
# but as the default location of the library.
14039
hardcode_minus_L_F77=yes
14044
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14047
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14050
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14053
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14059
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14062
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14065
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14069
if test "$with_gnu_ld" = no; then
14070
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14071
hardcode_libdir_separator_F77=:
14075
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14076
hardcode_direct_F77=no
14077
hardcode_shlibpath_var_F77=no
14080
hardcode_direct_F77=yes
14081
export_dynamic_flag_spec_F77='${wl}-E'
14083
# hardcode_minus_L: Not really in the search PATH,
14084
# but as the default location of the library.
14085
hardcode_minus_L_F77=yes
14091
irix5* | irix6* | nonstopux*)
14092
if test "$GCC" = yes; then
14093
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'
14095
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'
14096
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14098
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14099
hardcode_libdir_separator_F77=:
14100
link_all_deplibs_F77=yes
14103
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14104
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14105
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14107
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14109
hardcode_libdir_flag_spec_F77='-R$libdir'
14110
hardcode_direct_F77=yes
14111
hardcode_shlibpath_var_F77=no
14115
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14116
hardcode_direct_F77=yes
14117
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14118
hardcode_libdir_separator_F77=:
14119
hardcode_shlibpath_var_F77=no
14123
hardcode_direct_F77=yes
14124
hardcode_shlibpath_var_F77=no
14125
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14126
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14127
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14128
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14129
export_dynamic_flag_spec_F77='${wl}-E'
14132
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14133
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14134
hardcode_libdir_flag_spec_F77='-R$libdir'
14137
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14138
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14145
hardcode_libdir_flag_spec_F77='-L$libdir'
14146
hardcode_minus_L_F77=yes
14147
allow_undefined_flag_F77=unsupported
14148
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'
14149
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14153
if test "$GCC" = yes; then
14154
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14155
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'
14157
allow_undefined_flag_F77=' -expect_unresolved \*'
14158
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'
14160
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14161
hardcode_libdir_separator_F77=:
14164
osf4* | osf5*) # as osf3* with the addition of -msym flag
14165
if test "$GCC" = yes; then
14166
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14167
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'
14168
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14170
allow_undefined_flag_F77=' -expect_unresolved \*'
14171
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'
14172
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~
14173
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14175
# Both c and cxx compiler support -rpath directly
14176
hardcode_libdir_flag_spec_F77='-rpath $libdir'
14178
hardcode_libdir_separator_F77=:
14182
no_undefined_flag_F77=' -z text'
14183
if test "$GCC" = yes; then
14185
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14186
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14187
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14190
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14191
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14192
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14194
hardcode_libdir_flag_spec_F77='-R$libdir'
14195
hardcode_shlibpath_var_F77=no
14197
solaris2.[0-5] | solaris2.[0-5].*) ;;
14199
# The compiler driver will combine linker options so we
14200
# cannot just pass the convience library names through
14201
# without $wl, iff we do not link with $LD.
14202
# Luckily, gcc supports the same syntax we need for Sun Studio.
14203
# Supported since Solaris 2.6 (maybe 2.5.1?)
14206
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14208
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14211
link_all_deplibs_F77=yes
14215
if test "x$host_vendor" = xsequent; then
14216
# Use $CC to link under sequent, because it throws in some extra .o
14217
# files that make .init and .fini sections work.
14218
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14220
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14222
hardcode_libdir_flag_spec_F77='-L$libdir'
14223
hardcode_direct_F77=yes
14224
hardcode_minus_L_F77=yes
14225
hardcode_shlibpath_var_F77=no
14229
case $host_vendor in
14231
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14232
hardcode_direct_F77=yes # is this really true???
14235
## LD is ld it makes a PLAMLIB
14236
## CC just makes a GrossModule.
14237
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14238
reload_cmds_F77='$CC -r -o $output$reload_objs'
14239
hardcode_direct_F77=no
14242
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14243
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14246
runpath_var='LD_RUN_PATH'
14247
hardcode_shlibpath_var_F77=no
14251
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14252
hardcode_shlibpath_var_F77=no
14253
export_dynamic_flag_spec_F77='-Bexport'
14257
if test -d /usr/nec; then
14258
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14259
hardcode_shlibpath_var_F77=no
14260
runpath_var=LD_RUN_PATH
14261
hardcode_runpath_var=yes
14266
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14267
no_undefined_flag_F77='${wl}-z,text'
14268
archive_cmds_need_lc_F77=no
14269
hardcode_shlibpath_var_F77=no
14270
runpath_var='LD_RUN_PATH'
14272
if test "$GCC" = yes; then
14273
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14274
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14276
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14277
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14281
sysv5* | sco3.2v5* | sco5v6*)
14282
# Note: We can NOT use -z defs as we might desire, because we do not
14283
# link with -lc, and that would cause any symbols used from libc to
14284
# always be unresolved, which means just about no library would
14285
# ever link correctly. If we're not using GNU ld we use -z text
14286
# though, which does catch some bad symbols but isn't as heavy-handed
14288
no_undefined_flag_F77='${wl}-z,text'
14289
allow_undefined_flag_F77='${wl}-z,nodefs'
14290
archive_cmds_need_lc_F77=no
14291
hardcode_shlibpath_var_F77=no
14292
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14293
hardcode_libdir_separator_F77=':'
14294
link_all_deplibs_F77=yes
14295
export_dynamic_flag_spec_F77='${wl}-Bexport'
14296
runpath_var='LD_RUN_PATH'
14298
if test "$GCC" = yes; then
14299
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14300
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14302
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14303
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14308
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14309
hardcode_libdir_flag_spec_F77='-L$libdir'
14310
hardcode_shlibpath_var_F77=no
14319
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14320
echo "${ECHO_T}$ld_shlibs_F77" >&6
14321
test "$ld_shlibs_F77" = no && can_build_shared=no
14324
# Do we need to explicitly link libc?
14326
case "x$archive_cmds_need_lc_F77" in
14328
# Assume -lc should be added
14329
archive_cmds_need_lc_F77=yes
14331
if test "$enable_shared" = yes && test "$GCC" = yes; then
14332
case $archive_cmds_F77 in
14334
# FIXME: we may have to deal with multi-command sequences.
14337
# Test whether the compiler implicitly links with -lc since on some
14338
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14339
# to ld, don't add -lc before -lgcc.
14340
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14341
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14343
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14345
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14346
(eval $ac_compile) 2>&5
14348
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349
(exit $ac_status); } 2>conftest.err; then
14352
libobjs=conftest.$ac_objext
14354
wl=$lt_prog_compiler_wl_F77
14355
pic_flag=$lt_prog_compiler_pic_F77
14361
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14362
allow_undefined_flag_F77=
14363
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14364
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367
(exit $ac_status); }
14369
archive_cmds_need_lc_F77=no
14371
archive_cmds_need_lc_F77=yes
14373
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14375
cat conftest.err 1>&5
14378
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14379
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14386
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14387
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14388
library_names_spec=
14389
libname_spec='lib$name'
14393
postuninstall_cmds=
14397
shlibpath_overrides_runpath=unknown
14399
dynamic_linker="$host_os ld.so"
14400
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14401
if test "$GCC" = yes; then
14402
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14403
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14404
# if the path contains ";" then we assume it to be the separator
14405
# otherwise default to the standard path separator (i.e. ":") - it is
14406
# assumed that no part of a normal pathname contains ";" but that should
14407
# okay in the real world where ";" in dirpaths is itself problematic.
14408
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14410
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14413
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14415
need_lib_prefix=unknown
14416
hardcode_into_libs=no
14418
# when you set need_version to no, make sure it does not cause -set_version
14419
# flags to be left without arguments
14420
need_version=unknown
14425
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14426
shlibpath_var=LIBPATH
14428
# AIX 3 has no versioning support, so we append a major version to the name.
14429
soname_spec='${libname}${release}${shared_ext}$major'
14436
hardcode_into_libs=yes
14437
if test "$host_cpu" = ia64; then
14438
# AIX 5 supports IA64
14439
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14440
shlibpath_var=LD_LIBRARY_PATH
14442
# With GCC up to 2.95.x, collect2 would create an import file
14443
# for dependence libraries. The import file would start with
14444
# the line `#! .'. This would cause the generated library to
14445
# depend on `.', always an invalid library. This was fixed in
14446
# development snapshots of GCC prior to 3.0.
14448
aix4 | aix4.[01] | aix4.[01].*)
14449
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14451
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14454
can_build_shared=no
14458
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14459
# soname into executable. Probably we can add versioning support to
14460
# collect2, so additional links can be useful in future.
14461
if test "$aix_use_runtimelinking" = yes; then
14462
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14463
# instead of lib<name>.a to let people know that these are not
14464
# typical AIX shared libraries.
14465
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14467
# We preserve .a as extension for shared libraries through AIX4.2
14468
# and later when we are not doing run time linking.
14469
library_names_spec='${libname}${release}.a $libname.a'
14470
soname_spec='${libname}${release}${shared_ext}$major'
14472
shlibpath_var=LIBPATH
14477
library_names_spec='$libname.ixlibrary $libname.a'
14478
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14479
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'
14483
library_names_spec='${libname}${shared_ext}'
14484
dynamic_linker="$host_os ld.so"
14485
shlibpath_var=LIBRARY_PATH
14491
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14492
soname_spec='${libname}${release}${shared_ext}$major'
14493
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14494
shlibpath_var=LD_LIBRARY_PATH
14495
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14496
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14497
# the default ld.so.conf also contains /usr/contrib/lib and
14498
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14499
# libtool to hard-code these into programs
14502
cygwin* | mingw* | pw32*)
14503
version_type=windows
14508
case $GCC,$host_os in
14509
yes,cygwin* | yes,mingw* | yes,pw32*)
14510
library_names_spec='$libname.dll.a'
14511
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14512
postinstall_cmds='base_file=`basename \${file}`~
14513
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14514
dldir=$destdir/`dirname \$dlpath`~
14515
test -d \$dldir || mkdir -p \$dldir~
14516
$install_prog $dir/$dlname \$dldir/$dlname~
14517
chmod a+x \$dldir/$dlname'
14518
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14519
dlpath=$dir/\$dldll~
14521
shlibpath_overrides_runpath=yes
14525
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14526
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14527
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14530
# MinGW DLLs use traditional 'lib' prefix
14531
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14532
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14533
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14534
# It is most probably a Windows format PATH printed by
14535
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14536
# path with ; separators, and with drive letters. We can handle the
14537
# drive letters (cygwin fileutils understands them), so leave them,
14538
# especially as we might pass files found there to a mingw objdump,
14539
# which wouldn't understand a cygwinified path. Ahh.
14540
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14542
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14546
# pw32 DLLs use 'pw' prefix rather than 'lib'
14547
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14553
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14556
dynamic_linker='Win32 ld.exe'
14557
# FIXME: first we should search . and the directory the executable is in
14561
darwin* | rhapsody*)
14562
dynamic_linker="$host_os dyld"
14563
version_type=darwin
14566
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14567
soname_spec='${libname}${release}${major}$shared_ext'
14568
shlibpath_overrides_runpath=yes
14569
shlibpath_var=DYLD_LIBRARY_PATH
14570
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14571
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14572
if test "$GCC" = yes; then
14573
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"`
14575
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14577
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14584
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14585
soname_spec='${libname}${release}${shared_ext}$major'
14586
shlibpath_var=LD_LIBRARY_PATH
14597
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14598
soname_spec='${libname}${release}${shared_ext}$major'
14599
shlibpath_var=LD_LIBRARY_PATH
14600
shlibpath_overrides_runpath=no
14601
hardcode_into_libs=yes
14602
dynamic_linker='GNU ld.so'
14605
freebsd* | dragonfly*)
14606
# DragonFly does not have aout. When/if they implement a new
14607
# versioning mechanism, adjust this.
14608
if test -x /usr/bin/objformat; then
14609
objformat=`/usr/bin/objformat`
14612
freebsd[123]*) objformat=aout ;;
14613
*) objformat=elf ;;
14616
version_type=freebsd-$objformat
14617
case $version_type in
14619
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14624
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14628
shlibpath_var=LD_LIBRARY_PATH
14631
shlibpath_overrides_runpath=yes
14633
freebsd3.[01]* | freebsdelf3.[01]*)
14634
shlibpath_overrides_runpath=yes
14635
hardcode_into_libs=yes
14637
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14638
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14639
shlibpath_overrides_runpath=no
14640
hardcode_into_libs=yes
14642
freebsd*) # from 4.6 on
14643
shlibpath_overrides_runpath=yes
14644
hardcode_into_libs=yes
14653
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14654
soname_spec='${libname}${release}${shared_ext}$major'
14655
shlibpath_var=LD_LIBRARY_PATH
14656
hardcode_into_libs=yes
14659
hpux9* | hpux10* | hpux11*)
14660
# Give a soname corresponding to the major version so that dld.sl refuses to
14661
# link against other versions.
14668
hardcode_into_libs=yes
14669
dynamic_linker="$host_os dld.so"
14670
shlibpath_var=LD_LIBRARY_PATH
14671
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14672
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14673
soname_spec='${libname}${release}${shared_ext}$major'
14674
if test "X$HPUX_IA64_MODE" = X32; then
14675
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14677
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14679
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14683
hardcode_into_libs=yes
14684
dynamic_linker="$host_os dld.sl"
14685
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14686
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14687
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14688
soname_spec='${libname}${release}${shared_ext}$major'
14689
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14690
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14694
dynamic_linker="$host_os dld.sl"
14695
shlibpath_var=SHLIB_PATH
14696
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14697
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14698
soname_spec='${libname}${release}${shared_ext}$major'
14701
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14702
postinstall_cmds='chmod 555 $lib'
14709
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14710
soname_spec='${libname}${release}${shared_ext}$major'
14711
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14712
shlibpath_var=LD_LIBRARY_PATH
14713
shlibpath_overrides_runpath=no
14714
hardcode_into_libs=yes
14717
irix5* | irix6* | nonstopux*)
14719
nonstopux*) version_type=nonstopux ;;
14721
if test "$lt_cv_prog_gnu_ld" = yes; then
14729
soname_spec='${libname}${release}${shared_ext}$major'
14730
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14732
irix5* | nonstopux*)
14733
libsuff= shlibsuff=
14736
case $LD in # libtool.m4 will add one of these switches to LD
14737
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14738
libsuff= shlibsuff= libmagic=32-bit;;
14739
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14740
libsuff=32 shlibsuff=N32 libmagic=N32;;
14741
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14742
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14743
*) libsuff= shlibsuff= libmagic=never-match;;
14747
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14748
shlibpath_overrides_runpath=no
14749
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14750
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14751
hardcode_into_libs=yes
14754
# No shared lib support for Linux oldld, aout, or coff.
14755
linux*oldld* | linux*aout* | linux*coff*)
14759
# This must be Linux ELF.
14764
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14765
soname_spec='${libname}${release}${shared_ext}$major'
14766
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14767
shlibpath_var=LD_LIBRARY_PATH
14768
shlibpath_overrides_runpath=no
14769
# This implies no fast_install, which is unacceptable.
14770
# Some rework will be needed to allow for fast_install
14771
# before this can be enabled.
14772
hardcode_into_libs=yes
14774
# Append ld.so.conf contents to the search path
14775
if test -f /etc/ld.so.conf; then
14776
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14777
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14780
# We used to test for /lib/ld.so.1 and disable shared libraries on
14781
# powerpc, because MkLinux only supported shared libraries with the
14782
# GNU dynamic linker. Since this was broken with cross compilers,
14783
# most powerpc-linux boxes support dynamic linking these days and
14784
# people can always --disable-shared, the test was removed, and we
14785
# assume the GNU/Linux dynamic linker is in use.
14786
dynamic_linker='GNU/Linux ld.so'
14793
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14794
soname_spec='${libname}${release}${shared_ext}$major'
14795
shlibpath_var=LD_LIBRARY_PATH
14796
shlibpath_overrides_runpath=no
14797
hardcode_into_libs=yes
14798
dynamic_linker='NetBSD ld.elf_so'
14805
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14806
soname_spec='${libname}${release}${shared_ext}$major'
14807
shlibpath_var=LD_LIBRARY_PATH
14808
shlibpath_overrides_runpath=no
14809
hardcode_into_libs=yes
14810
dynamic_linker='GNU ld.so'
14817
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14818
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14819
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14820
dynamic_linker='NetBSD (a.out) ld.so'
14822
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14823
soname_spec='${libname}${release}${shared_ext}$major'
14824
dynamic_linker='NetBSD ld.elf_so'
14826
shlibpath_var=LD_LIBRARY_PATH
14827
shlibpath_overrides_runpath=yes
14828
hardcode_into_libs=yes
14833
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14834
shlibpath_var=LD_LIBRARY_PATH
14835
shlibpath_overrides_runpath=yes
14842
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14843
soname_spec='${libname}${release}${shared_ext}$major'
14844
shlibpath_var=LD_LIBRARY_PATH
14845
shlibpath_overrides_runpath=yes
14850
sys_lib_dlsearch_path_spec="/usr/lib"
14852
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14854
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14855
*) need_version=no ;;
14857
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14858
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14859
shlibpath_var=LD_LIBRARY_PATH
14860
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14862
openbsd2.[89] | openbsd2.[89].*)
14863
shlibpath_overrides_runpath=no
14866
shlibpath_overrides_runpath=yes
14870
shlibpath_overrides_runpath=yes
14875
libname_spec='$name'
14878
library_names_spec='$libname${shared_ext} $libname.a'
14879
dynamic_linker='OS/2 ld.exe'
14880
shlibpath_var=LIBPATH
14883
osf3* | osf4* | osf5*)
14887
soname_spec='${libname}${release}${shared_ext}$major'
14888
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14889
shlibpath_var=LD_LIBRARY_PATH
14890
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14891
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14898
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14899
soname_spec='${libname}${release}${shared_ext}$major'
14900
shlibpath_var=LD_LIBRARY_PATH
14901
shlibpath_overrides_runpath=yes
14902
hardcode_into_libs=yes
14903
# ldd complains unless libraries are executable
14904
postinstall_cmds='chmod +x $lib'
14909
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14910
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14911
shlibpath_var=LD_LIBRARY_PATH
14912
shlibpath_overrides_runpath=yes
14913
if test "$with_gnu_ld" = yes; then
14921
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14922
soname_spec='${libname}${release}${shared_ext}$major'
14923
shlibpath_var=LD_LIBRARY_PATH
14924
case $host_vendor in
14926
shlibpath_overrides_runpath=no
14928
export_dynamic_flag_spec='${wl}-Blargedynsym'
14929
runpath_var=LD_RUN_PATH
14937
shlibpath_overrides_runpath=no
14938
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14944
if test -d /usr/nec ;then
14946
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14947
soname_spec='$libname${shared_ext}.$major'
14948
shlibpath_var=LD_LIBRARY_PATH
14952
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14953
version_type=freebsd-elf
14956
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14957
soname_spec='${libname}${release}${shared_ext}$major'
14958
shlibpath_var=LD_LIBRARY_PATH
14959
hardcode_into_libs=yes
14960
if test "$with_gnu_ld" = yes; then
14961
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14962
shlibpath_overrides_runpath=no
14964
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14965
shlibpath_overrides_runpath=yes
14968
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14972
sys_lib_dlsearch_path_spec='/usr/lib'
14977
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14978
soname_spec='${libname}${release}${shared_ext}$major'
14979
shlibpath_var=LD_LIBRARY_PATH
14986
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14987
echo "${ECHO_T}$dynamic_linker" >&6
14988
test "$dynamic_linker" = no && can_build_shared=no
14990
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14991
if test "$GCC" = yes; then
14992
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14995
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14996
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14997
hardcode_action_F77=
14998
if test -n "$hardcode_libdir_flag_spec_F77" || \
14999
test -n "$runpath_var_F77" || \
15000
test "X$hardcode_automatic_F77" = "Xyes" ; then
15002
# We can hardcode non-existant directories.
15003
if test "$hardcode_direct_F77" != no &&
15004
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15005
# have to relink, otherwise we might link with an installed library
15006
# when we should be linking with a yet-to-be-installed one
15007
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15008
test "$hardcode_minus_L_F77" != no; then
15009
# Linking always hardcodes the temporary library directory.
15010
hardcode_action_F77=relink
15012
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15013
hardcode_action_F77=immediate
15016
# We cannot hardcode anything, or else we can only hardcode existing
15018
hardcode_action_F77=unsupported
15020
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15021
echo "${ECHO_T}$hardcode_action_F77" >&6
15023
if test "$hardcode_action_F77" = relink; then
15024
# Fast installation is not supported
15025
enable_fast_install=no
15026
elif test "$shlibpath_overrides_runpath" = yes ||
15027
test "$enable_shared" = no; then
15028
# Fast installation is not necessary
15029
enable_fast_install=needless
15033
# The else clause should only fire when bootstrapping the
15034
# libtool distribution, otherwise you forgot to ship ltmain.sh
15035
# with your package, and you will get complaints that there are
15036
# no rules to generate ltmain.sh.
15037
if test -f "$ltmain"; then
15038
# See if we are running on zsh, and set the options which allow our commands through
15039
# without removal of \ escapes.
15040
if test -n "${ZSH_VERSION+set}" ; then
15041
setopt NO_GLOB_SUBST
15043
# Now quote all the things that may contain metacharacters while being
15044
# careful not to overquote the AC_SUBSTed values. We take copies of the
15045
# variables and quote the copies for generation of the libtool script.
15046
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15048
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15049
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15050
deplibs_check_method reload_flag reload_cmds need_locks \
15051
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15052
lt_cv_sys_global_symbol_to_c_name_address \
15053
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15054
old_postinstall_cmds old_postuninstall_cmds \
15058
lt_prog_compiler_wl_F77 \
15059
lt_prog_compiler_pic_F77 \
15060
lt_prog_compiler_static_F77 \
15061
lt_prog_compiler_no_builtin_flag_F77 \
15062
export_dynamic_flag_spec_F77 \
15063
thread_safe_flag_spec_F77 \
15064
whole_archive_flag_spec_F77 \
15065
enable_shared_with_static_runtimes_F77 \
15066
old_archive_cmds_F77 \
15067
old_archive_from_new_cmds_F77 \
15068
predep_objects_F77 \
15069
postdep_objects_F77 \
15072
compiler_lib_search_path_F77 \
15074
archive_expsym_cmds_F77 \
15075
postinstall_cmds_F77 \
15076
postuninstall_cmds_F77 \
15077
old_archive_from_expsyms_cmds_F77 \
15078
allow_undefined_flag_F77 \
15079
no_undefined_flag_F77 \
15080
export_symbols_cmds_F77 \
15081
hardcode_libdir_flag_spec_F77 \
15082
hardcode_libdir_flag_spec_ld_F77 \
15083
hardcode_libdir_separator_F77 \
15084
hardcode_automatic_F77 \
15086
module_expsym_cmds_F77 \
15087
lt_cv_prog_compiler_c_o_F77 \
15088
exclude_expsyms_F77 \
15089
include_expsyms_F77; do
15092
old_archive_cmds_F77 | \
15093
old_archive_from_new_cmds_F77 | \
15094
archive_cmds_F77 | \
15095
archive_expsym_cmds_F77 | \
15096
module_cmds_F77 | \
15097
module_expsym_cmds_F77 | \
15098
old_archive_from_expsyms_cmds_F77 | \
15099
export_symbols_cmds_F77 | \
15100
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15101
postinstall_cmds | postuninstall_cmds | \
15102
old_postinstall_cmds | old_postuninstall_cmds | \
15103
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15104
# Double-quote double-evaled strings.
15105
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15108
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15114
*'\$0 --fallback-echo"')
15115
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15121
cat <<__EOF__ >> "$cfgfile"
15122
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15124
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15126
# Shell to use when invoking shell scripts.
15129
# Whether or not to build shared libraries.
15130
build_libtool_libs=$enable_shared
15132
# Whether or not to build static libraries.
15133
build_old_libs=$enable_static
15135
# Whether or not to add -lc for building shared libraries.
15136
build_libtool_need_lc=$archive_cmds_need_lc_F77
15138
# Whether or not to disallow shared libs when runtime libs are static
15139
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15141
# Whether or not to optimize for fast installation.
15142
fast_install=$enable_fast_install
15145
host_alias=$host_alias
15149
# The build system.
15150
build_alias=$build_alias
15154
# An echo program that does not interpret backslashes.
15159
AR_FLAGS=$lt_AR_FLAGS
15164
# LTCC compiler flags.
15165
LTCFLAGS=$lt_LTCFLAGS
15167
# A language-specific compiler.
15168
CC=$lt_compiler_F77
15170
# Is the compiler the GNU C compiler?
15176
# The linker used to build libraries.
15179
# Whether we need hard or soft links.
15182
# A BSD-compatible nm program.
15185
# A symbol stripping program
15188
# Used to examine libraries when file_magic_cmd begins "file"
15189
MAGIC_CMD=$MAGIC_CMD
15191
# Used on cygwin: DLL creation program.
15194
# Used on cygwin: object dumper.
15197
# Used on cygwin: assembler.
15200
# The name of the directory that contains temporary libtool files.
15203
# How to create reloadable object files.
15204
reload_flag=$lt_reload_flag
15205
reload_cmds=$lt_reload_cmds
15207
# How to pass a linker flag through the compiler.
15208
wl=$lt_lt_prog_compiler_wl_F77
15210
# Object file suffix (normally "o").
15211
objext="$ac_objext"
15213
# Old archive suffix (normally "a").
15216
# Shared library suffix (normally ".so").
15217
shrext_cmds='$shrext_cmds'
15219
# Executable file suffix (normally "").
15222
# Additional compiler flags for building library objects.
15223
pic_flag=$lt_lt_prog_compiler_pic_F77
15226
# What is the maximum length of a command?
15227
max_cmd_len=$lt_cv_sys_max_cmd_len
15229
# Does compiler simultaneously support -c and -o options?
15230
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15232
# Must we lock files when doing compilation?
15233
need_locks=$lt_need_locks
15235
# Do we need the lib prefix for modules?
15236
need_lib_prefix=$need_lib_prefix
15238
# Do we need a version for libraries?
15239
need_version=$need_version
15241
# Whether dlopen is supported.
15242
dlopen_support=$enable_dlopen
15244
# Whether dlopen of programs is supported.
15245
dlopen_self=$enable_dlopen_self
15247
# Whether dlopen of statically linked programs is supported.
15248
dlopen_self_static=$enable_dlopen_self_static
15250
# Compiler flag to prevent dynamic linking.
15251
link_static_flag=$lt_lt_prog_compiler_static_F77
15253
# Compiler flag to turn off builtin functions.
15254
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15256
# Compiler flag to allow reflexive dlopens.
15257
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15259
# Compiler flag to generate shared objects directly from archives.
15260
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15262
# Compiler flag to generate thread-safe objects.
15263
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15265
# Library versioning type.
15266
version_type=$version_type
15268
# Format of library name prefix.
15269
libname_spec=$lt_libname_spec
15271
# List of archive names. First name is the real one, the rest are links.
15272
# The last name is the one that the linker finds with -lNAME.
15273
library_names_spec=$lt_library_names_spec
15275
# The coded name of the library, if different from the real name.
15276
soname_spec=$lt_soname_spec
15278
# Commands used to build and install an old-style archive.
15280
old_archive_cmds=$lt_old_archive_cmds_F77
15281
old_postinstall_cmds=$lt_old_postinstall_cmds
15282
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15284
# Create an old-style archive from a shared archive.
15285
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15287
# Create a temporary old-style archive to link instead of a shared archive.
15288
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15290
# Commands used to build and install a shared archive.
15291
archive_cmds=$lt_archive_cmds_F77
15292
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15293
postinstall_cmds=$lt_postinstall_cmds
15294
postuninstall_cmds=$lt_postuninstall_cmds
15296
# Commands used to build a loadable module (assumed same as above if empty)
15297
module_cmds=$lt_module_cmds_F77
15298
module_expsym_cmds=$lt_module_expsym_cmds_F77
15300
# Commands to strip libraries.
15301
old_striplib=$lt_old_striplib
15302
striplib=$lt_striplib
15304
# Dependencies to place before the objects being linked to create a
15306
predep_objects=$lt_predep_objects_F77
15308
# Dependencies to place after the objects being linked to create a
15310
postdep_objects=$lt_postdep_objects_F77
15312
# Dependencies to place before the objects being linked to create a
15314
predeps=$lt_predeps_F77
15316
# Dependencies to place after the objects being linked to create a
15318
postdeps=$lt_postdeps_F77
15320
# The library search path used internally by the compiler when linking
15321
# a shared library.
15322
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15324
# Method to check whether dependent libraries are shared objects.
15325
deplibs_check_method=$lt_deplibs_check_method
15327
# Command to use when deplibs_check_method == file_magic.
15328
file_magic_cmd=$lt_file_magic_cmd
15330
# Flag that allows shared libraries with undefined symbols to be built.
15331
allow_undefined_flag=$lt_allow_undefined_flag_F77
15333
# Flag that forces no undefined symbols.
15334
no_undefined_flag=$lt_no_undefined_flag_F77
15336
# Commands used to finish a libtool library installation in a directory.
15337
finish_cmds=$lt_finish_cmds
15339
# Same as above, but a single script fragment to be evaled but not shown.
15340
finish_eval=$lt_finish_eval
15342
# Take the output of nm and produce a listing of raw symbols and C names.
15343
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15345
# Transform the output of nm in a proper C declaration
15346
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15348
# Transform the output of nm in a C name address pair
15349
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15351
# This is the shared library runtime path variable.
15352
runpath_var=$runpath_var
15354
# This is the shared library path variable.
15355
shlibpath_var=$shlibpath_var
15357
# Is shlibpath searched before the hard-coded library search path?
15358
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15360
# How to hardcode a shared library path into an executable.
15361
hardcode_action=$hardcode_action_F77
15363
# Whether we should hardcode library paths into libraries.
15364
hardcode_into_libs=$hardcode_into_libs
15366
# Flag to hardcode \$libdir into a binary during linking.
15367
# This must work even if \$libdir does not exist.
15368
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15370
# If ld is used when linking, flag to hardcode \$libdir into
15371
# a binary during linking. This must work even if \$libdir does
15373
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15375
# Whether we need a single -rpath flag with a separated argument.
15376
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15378
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15379
# resulting binary.
15380
hardcode_direct=$hardcode_direct_F77
15382
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15383
# resulting binary.
15384
hardcode_minus_L=$hardcode_minus_L_F77
15386
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15387
# the resulting binary.
15388
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15390
# Set to yes if building a shared library automatically hardcodes DIR into the library
15391
# and all subsequent libraries and executables linked against it.
15392
hardcode_automatic=$hardcode_automatic_F77
15394
# Variables whose values should be saved in libtool wrapper scripts and
15395
# restored at relink time.
15396
variables_saved_for_relink="$variables_saved_for_relink"
15398
# Whether libtool must link a program against all its dependency libraries.
15399
link_all_deplibs=$link_all_deplibs_F77
15401
# Compile-time system search path for libraries
15402
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15404
# Run-time system search path for libraries
15405
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15407
# Fix the shell variable \$srcfile for the compiler.
15408
fix_srcfile_path="$fix_srcfile_path_F77"
15410
# Set to yes if exported symbols are required.
15411
always_export_symbols=$always_export_symbols_F77
15413
# The commands to list exported symbols.
15414
export_symbols_cmds=$lt_export_symbols_cmds_F77
15416
# The commands to extract the exported symbol list from a shared archive.
15417
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15419
# Symbols that should not be listed in the preloaded symbols.
15420
exclude_expsyms=$lt_exclude_expsyms_F77
15422
# Symbols that must always be exported.
15423
include_expsyms=$lt_include_expsyms_F77
15425
# ### END LIBTOOL TAG CONFIG: $tagname
15431
# If there is no Makefile yet, we rely on a make rule to execute
15432
# `config.status --recheck' to rerun these tests and create the
15433
# libtool script then.
15434
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15435
if test -f "$ltmain_in"; then
15436
test -f Makefile && make "$ltmain"
15442
ac_cpp='$CPP $CPPFLAGS'
15443
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15444
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15445
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15455
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15459
# Source file extension for Java test sources.
15462
# Object file extension for compiled Java test sources.
15466
# Code to be used in simple compile tests
15467
lt_simple_compile_test_code="class foo {}\n"
15469
# Code to be used in simple link tests
15470
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15472
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15474
# If no C compiler was specified, use CC.
15477
# If no C compiler flags were specified, use CFLAGS.
15478
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15480
# Allow CC to be a program name with arguments.
15484
# save warnings/boilerplate of simple test code
15485
ac_outfile=conftest.$ac_objext
15486
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15487
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15488
_lt_compiler_boilerplate=`cat conftest.err`
15491
ac_outfile=conftest.$ac_objext
15492
printf "$lt_simple_link_test_code" >conftest.$ac_ext
15493
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15494
_lt_linker_boilerplate=`cat conftest.err`
15498
# Allow CC to be a program name with arguments.
15503
for cc_temp in $compiler""; do
15505
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15506
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15511
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15514
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15515
archive_cmds_need_lc_GCJ=no
15517
old_archive_cmds_GCJ=$old_archive_cmds
15520
lt_prog_compiler_no_builtin_flag_GCJ=
15522
if test "$GCC" = yes; then
15523
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15526
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15527
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15528
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15529
echo $ECHO_N "(cached) $ECHO_C" >&6
15531
lt_cv_prog_compiler_rtti_exceptions=no
15532
ac_outfile=conftest.$ac_objext
15533
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15534
lt_compiler_flag="-fno-rtti -fno-exceptions"
15535
# Insert the option either (1) after the last *FLAGS variable, or
15536
# (2) before a word containing "conftest.", or (3) at the end.
15537
# Note that $ac_compile itself does not contain backslashes and begins
15538
# with a dollar sign (not a hyphen), so the echo should work correctly.
15539
# The option is referenced via a variable to avoid confusing sed.
15540
lt_compile=`echo "$ac_compile" | $SED \
15541
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15542
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15543
-e 's:$: $lt_compiler_flag:'`
15544
(eval echo "\"\$as_me:15544: $lt_compile\"" >&5)
15545
(eval "$lt_compile" 2>conftest.err)
15547
cat conftest.err >&5
15548
echo "$as_me:15548: \$? = $ac_status" >&5
15549
if (exit $ac_status) && test -s "$ac_outfile"; then
15550
# The compiler can only warn and ignore the option if not recognized
15551
# So say no if there are warnings other than the usual output.
15552
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15553
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15554
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15555
lt_cv_prog_compiler_rtti_exceptions=yes
15561
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15562
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15564
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15565
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15572
lt_prog_compiler_wl_GCJ=
15573
lt_prog_compiler_pic_GCJ=
15574
lt_prog_compiler_static_GCJ=
15576
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15577
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15579
if test "$GCC" = yes; then
15580
lt_prog_compiler_wl_GCJ='-Wl,'
15581
lt_prog_compiler_static_GCJ='-static'
15585
# All AIX code is PIC.
15586
if test "$host_cpu" = ia64; then
15587
# AIX 5 now supports IA64 processor
15588
lt_prog_compiler_static_GCJ='-Bstatic'
15593
# FIXME: we need at least 68020 code to build shared libraries, but
15594
# adding the `-m68020' flag to GCC prevents building anything better,
15596
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15599
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15600
# PIC is the default for these OSes.
15603
mingw* | pw32* | os2*)
15604
# This hack is so that the source file can tell whether it is being
15605
# built for inclusion in a dll (and should export symbols for example).
15606
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15609
darwin* | rhapsody*)
15610
# PIC is the default on this platform
15611
# Common symbols not allowed in MH_DYLIB files
15612
lt_prog_compiler_pic_GCJ='-fno-common'
15616
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
15617
# Instead, we relocate shared libraries at runtime.
15621
# Just because we use GCC doesn't mean we suddenly get shared libraries
15622
# on systems that don't support them.
15623
lt_prog_compiler_can_build_shared_GCJ=no
15628
if test -d /usr/nec; then
15629
lt_prog_compiler_pic_GCJ=-Kconform_pic
15634
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15635
# not for PA HP-UX.
15641
lt_prog_compiler_pic_GCJ='-fPIC'
15647
lt_prog_compiler_pic_GCJ='-fPIC'
15651
# PORTME Check for flag to pass linker flags through the system compiler.
15654
lt_prog_compiler_wl_GCJ='-Wl,'
15655
if test "$host_cpu" = ia64; then
15656
# AIX 5 now supports IA64 processor
15657
lt_prog_compiler_static_GCJ='-Bstatic'
15659
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15663
# PIC is the default on this platform
15664
# Common symbols not allowed in MH_DYLIB files
15665
case $cc_basename in
15667
lt_prog_compiler_pic_GCJ='-qnocommon'
15668
lt_prog_compiler_wl_GCJ='-Wl,'
15673
mingw* | pw32* | os2*)
15674
# This hack is so that the source file can tell whether it is being
15675
# built for inclusion in a dll (and should export symbols for example).
15676
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15679
hpux9* | hpux10* | hpux11*)
15680
lt_prog_compiler_wl_GCJ='-Wl,'
15681
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15682
# not for PA HP-UX.
15688
lt_prog_compiler_pic_GCJ='+Z'
15691
# Is there a better lt_prog_compiler_static that works with the bundled CC?
15692
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15695
irix5* | irix6* | nonstopux*)
15696
lt_prog_compiler_wl_GCJ='-Wl,'
15697
# PIC (with -KPIC) is the default.
15698
lt_prog_compiler_static_GCJ='-non_shared'
15702
lt_prog_compiler_pic_GCJ='-KPIC'
15703
lt_prog_compiler_static_GCJ='-Bstatic'
15707
case $cc_basename in
15709
lt_prog_compiler_wl_GCJ='-Wl,'
15710
lt_prog_compiler_pic_GCJ='-KPIC'
15711
lt_prog_compiler_static_GCJ='-static'
15713
pgcc* | pgf77* | pgf90* | pgf95*)
15714
# Portland Group compilers (*not* the Pentium gcc compiler,
15715
# which looks to be a dead project)
15716
lt_prog_compiler_wl_GCJ='-Wl,'
15717
lt_prog_compiler_pic_GCJ='-fpic'
15718
lt_prog_compiler_static_GCJ='-Bstatic'
15721
lt_prog_compiler_wl_GCJ='-Wl,'
15722
# All Alpha code is PIC.
15723
lt_prog_compiler_static_GCJ='-non_shared'
15728
osf3* | osf4* | osf5*)
15729
lt_prog_compiler_wl_GCJ='-Wl,'
15730
# All OSF/1 code is PIC.
15731
lt_prog_compiler_static_GCJ='-non_shared'
15735
lt_prog_compiler_pic_GCJ='-KPIC'
15736
lt_prog_compiler_static_GCJ='-Bstatic'
15737
case $cc_basename in
15738
f77* | f90* | f95*)
15739
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15741
lt_prog_compiler_wl_GCJ='-Wl,';;
15746
lt_prog_compiler_wl_GCJ='-Qoption ld '
15747
lt_prog_compiler_pic_GCJ='-PIC'
15748
lt_prog_compiler_static_GCJ='-Bstatic'
15751
sysv4 | sysv4.2uw2* | sysv4.3*)
15752
lt_prog_compiler_wl_GCJ='-Wl,'
15753
lt_prog_compiler_pic_GCJ='-KPIC'
15754
lt_prog_compiler_static_GCJ='-Bstatic'
15758
if test -d /usr/nec ;then
15759
lt_prog_compiler_pic_GCJ='-Kconform_pic'
15760
lt_prog_compiler_static_GCJ='-Bstatic'
15764
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15765
lt_prog_compiler_wl_GCJ='-Wl,'
15766
lt_prog_compiler_pic_GCJ='-KPIC'
15767
lt_prog_compiler_static_GCJ='-Bstatic'
15771
lt_prog_compiler_wl_GCJ='-Wl,'
15772
lt_prog_compiler_can_build_shared_GCJ=no
15776
lt_prog_compiler_pic_GCJ='-pic'
15777
lt_prog_compiler_static_GCJ='-Bstatic'
15781
lt_prog_compiler_can_build_shared_GCJ=no
15786
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15787
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15790
# Check to make sure the PIC flag actually works.
15792
if test -n "$lt_prog_compiler_pic_GCJ"; then
15794
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15795
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15796
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15797
echo $ECHO_N "(cached) $ECHO_C" >&6
15799
lt_prog_compiler_pic_works_GCJ=no
15800
ac_outfile=conftest.$ac_objext
15801
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15802
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15803
# Insert the option either (1) after the last *FLAGS variable, or
15804
# (2) before a word containing "conftest.", or (3) at the end.
15805
# Note that $ac_compile itself does not contain backslashes and begins
15806
# with a dollar sign (not a hyphen), so the echo should work correctly.
15807
# The option is referenced via a variable to avoid confusing sed.
15808
lt_compile=`echo "$ac_compile" | $SED \
15809
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15810
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15811
-e 's:$: $lt_compiler_flag:'`
15812
(eval echo "\"\$as_me:15812: $lt_compile\"" >&5)
15813
(eval "$lt_compile" 2>conftest.err)
15815
cat conftest.err >&5
15816
echo "$as_me:15816: \$? = $ac_status" >&5
15817
if (exit $ac_status) && test -s "$ac_outfile"; then
15818
# The compiler can only warn and ignore the option if not recognized
15819
# So say no if there are warnings other than the usual output.
15820
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15821
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15822
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15823
lt_prog_compiler_pic_works_GCJ=yes
15829
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15830
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15832
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15833
case $lt_prog_compiler_pic_GCJ in
15835
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15838
lt_prog_compiler_pic_GCJ=
15839
lt_prog_compiler_can_build_shared_GCJ=no
15844
# For platforms which do not support PIC, -DPIC is meaningless:
15846
lt_prog_compiler_pic_GCJ=
15849
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15854
# Check to make sure the static flag actually works.
15856
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15857
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15858
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15859
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15860
echo $ECHO_N "(cached) $ECHO_C" >&6
15862
lt_prog_compiler_static_works_GCJ=no
15863
save_LDFLAGS="$LDFLAGS"
15864
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15865
printf "$lt_simple_link_test_code" > conftest.$ac_ext
15866
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15867
# The linker can only warn and ignore the option if not recognized
15868
# So say no if there are warnings
15869
if test -s conftest.err; then
15870
# Append any errors to the config.log.
15871
cat conftest.err 1>&5
15872
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15873
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15874
if diff conftest.exp conftest.er2 >/dev/null; then
15875
lt_prog_compiler_static_works_GCJ=yes
15878
lt_prog_compiler_static_works_GCJ=yes
15882
LDFLAGS="$save_LDFLAGS"
15885
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15886
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15888
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15891
lt_prog_compiler_static_GCJ=
15895
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15896
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15897
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15898
echo $ECHO_N "(cached) $ECHO_C" >&6
15900
lt_cv_prog_compiler_c_o_GCJ=no
15901
$rm -r conftest 2>/dev/null
15905
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15907
lt_compiler_flag="-o out/conftest2.$ac_objext"
15908
# Insert the option either (1) after the last *FLAGS variable, or
15909
# (2) before a word containing "conftest.", or (3) at the end.
15910
# Note that $ac_compile itself does not contain backslashes and begins
15911
# with a dollar sign (not a hyphen), so the echo should work correctly.
15912
lt_compile=`echo "$ac_compile" | $SED \
15913
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15914
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15915
-e 's:$: $lt_compiler_flag:'`
15916
(eval echo "\"\$as_me:15916: $lt_compile\"" >&5)
15917
(eval "$lt_compile" 2>out/conftest.err)
15919
cat out/conftest.err >&5
15920
echo "$as_me:15920: \$? = $ac_status" >&5
15921
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15923
# The compiler can only warn and ignore the option if not recognized
15924
# So say no if there are warnings
15925
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15926
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15927
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15928
lt_cv_prog_compiler_c_o_GCJ=yes
15933
# SGI C++ compiler will create directory out/ii_files/ for
15934
# template instantiation
15935
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15936
$rm out/* && rmdir out
15942
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15943
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15946
hard_links="nottested"
15947
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15948
# do not overwrite the value of need_locks provided by the user
15949
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15950
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15953
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15955
ln conftest.a conftest.b 2>&5 || hard_links=no
15956
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15957
echo "$as_me:$LINENO: result: $hard_links" >&5
15958
echo "${ECHO_T}$hard_links" >&6
15959
if test "$hard_links" = no; then
15960
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15961
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15968
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15969
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15972
allow_undefined_flag_GCJ=
15973
enable_shared_with_static_runtimes_GCJ=no
15975
archive_expsym_cmds_GCJ=
15976
old_archive_From_new_cmds_GCJ=
15977
old_archive_from_expsyms_cmds_GCJ=
15978
export_dynamic_flag_spec_GCJ=
15979
whole_archive_flag_spec_GCJ=
15980
thread_safe_flag_spec_GCJ=
15981
hardcode_libdir_flag_spec_GCJ=
15982
hardcode_libdir_flag_spec_ld_GCJ=
15983
hardcode_libdir_separator_GCJ=
15984
hardcode_direct_GCJ=no
15985
hardcode_minus_L_GCJ=no
15986
hardcode_shlibpath_var_GCJ=unsupported
15987
link_all_deplibs_GCJ=unknown
15988
hardcode_automatic_GCJ=no
15990
module_expsym_cmds_GCJ=
15991
always_export_symbols_GCJ=no
15992
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15993
# include_expsyms should be a list of space-separated symbols to be *always*
15994
# included in the symbol list
15995
include_expsyms_GCJ=
15996
# exclude_expsyms can be an extended regexp of symbols to exclude
15997
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15998
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15999
# as well as any symbol that contains `d'.
16000
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16001
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16002
# platforms (ab)use it in PIC code, but their linkers get confused if
16003
# the symbol is explicitly referenced. Since portable code cannot
16004
# rely on this symbol name, it's probably fine to never include it in
16005
# preloaded symbol tables.
16006
extract_expsyms_cmds=
16007
# Just being paranoid about ensuring that cc_basename is set.
16008
for cc_temp in $compiler""; do
16010
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16011
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16016
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16019
cygwin* | mingw* | pw32*)
16020
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16021
# When not using gcc, we currently assume that we are using
16022
# Microsoft Visual C++.
16023
if test "$GCC" != yes; then
16028
# we just hope/assume this is gcc and not c89 (= MSVC++)
16037
if test "$with_gnu_ld" = yes; then
16038
# If archive_cmds runs LD, not CC, wlarc should be empty
16041
# Set some defaults for GNU ld with shared library support. These
16042
# are reset later if shared libraries are not supported. Putting them
16043
# here allows them to be overridden if necessary.
16044
runpath_var=LD_RUN_PATH
16045
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16046
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16047
# ancient GNU ld didn't support --whole-archive et. al.
16048
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16049
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16051
whole_archive_flag_spec_GCJ=
16053
supports_anon_versioning=no
16054
case `$LD -v 2>/dev/null` in
16055
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16056
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16057
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16058
*\ 2.11.*) ;; # other 2.11 versions
16059
*) supports_anon_versioning=yes ;;
16062
# See if GNU ld supports shared libraries.
16064
aix3* | aix4* | aix5*)
16065
# On AIX/PPC, the GNU linker is very broken
16066
if test "$host_cpu" != ia64; then
16070
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16071
*** to be unable to reliably create shared libraries on AIX.
16072
*** Therefore, libtool is disabling shared libraries support. If you
16073
*** really care for shared libraries, you may want to modify your PATH
16074
*** so that a non-GNU linker is found, and then restart.
16081
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)'
16082
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16083
hardcode_minus_L_GCJ=yes
16085
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16086
# that the semantics of dynamic libraries on AmigaOS, at least up
16087
# to version 4, is to share data among multiple programs linked
16088
# with the same dynamic library. Since this doesn't match the
16089
# behavior of shared libraries on other platforms, we can't use
16095
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16096
allow_undefined_flag_GCJ=unsupported
16097
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16098
# support --undefined. This deserves some investigation. FIXME
16099
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16105
cygwin* | mingw* | pw32*)
16106
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16107
# as there is no search path for DLLs.
16108
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16109
allow_undefined_flag_GCJ=unsupported
16110
always_export_symbols_GCJ=no
16111
enable_shared_with_static_runtimes_GCJ=yes
16112
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16114
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16115
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16116
# If the export-symbols file already is a .def file (1st line
16117
# is EXPORTS), use it as is; otherwise, prepend...
16118
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16119
cp $export_symbols $output_objdir/$soname.def;
16121
echo EXPORTS > $output_objdir/$soname.def;
16122
cat $export_symbols >> $output_objdir/$soname.def;
16124
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16131
hardcode_direct_GCJ=no
16132
hardcode_shlibpath_var_GCJ=no
16133
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16134
export_dynamic_flag_spec_GCJ='${wl}-E'
16135
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16136
# Instead, shared libraries are loaded at an image base (0x10000000 by
16137
# default) and relocated if they conflict, which is a slow very memory
16138
# consuming and fragmenting process. To avoid this, we pick a random,
16139
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16140
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
16141
archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16142
archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16146
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16148
case $cc_basename,$host_cpu in
16149
pgcc*) # Portland Group C compiler
16150
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16151
tmp_addflag=' $pic_flag'
16153
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16154
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16155
tmp_addflag=' $pic_flag -Mnomain' ;;
16156
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16157
tmp_addflag=' -i_dynamic' ;;
16158
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16159
tmp_addflag=' -i_dynamic -nofor_main' ;;
16160
ifc* | ifort*) # Intel Fortran compiler
16161
tmp_addflag=' -nofor_main' ;;
16163
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16165
if test $supports_anon_versioning = yes; then
16166
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16167
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16168
$echo "local: *; };" >> $output_objdir/$libname.ver~
16169
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16171
link_all_deplibs_GCJ=no
16177
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16178
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16179
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16182
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16183
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16188
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16192
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16193
*** create shared libraries on Solaris systems. Therefore, libtool
16194
*** is disabling shared libraries support. We urge you to upgrade GNU
16195
*** binutils to release 2.9.1 or newer. Another option is to modify
16196
*** your PATH or compiler configuration so that the native linker is
16197
*** used, and then restart.
16200
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16201
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16202
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16208
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16209
case `$LD -v 2>&1` in
16210
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16214
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16215
*** reliably create shared libraries on SCO systems. Therefore, libtool
16216
*** is disabling shared libraries support. We urge you to upgrade GNU
16217
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16218
*** your PATH or compiler configuration so that the native linker is
16219
*** used, and then restart.
16224
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16225
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16226
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16227
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16236
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16238
hardcode_direct_GCJ=yes
16239
hardcode_shlibpath_var_GCJ=no
16243
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16244
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16245
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16252
if test "$ld_shlibs_GCJ" = no; then
16254
hardcode_libdir_flag_spec_GCJ=
16255
export_dynamic_flag_spec_GCJ=
16256
whole_archive_flag_spec_GCJ=
16259
# PORTME fill in a description of your system's linker (not GNU ld)
16262
allow_undefined_flag_GCJ=unsupported
16263
always_export_symbols_GCJ=yes
16264
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'
16265
# Note: this linker hardcodes the directories in LIBPATH if there
16266
# are no directories specified by -L.
16267
hardcode_minus_L_GCJ=yes
16268
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16269
# Neither direct hardcoding nor static linking is supported with a
16271
hardcode_direct_GCJ=unsupported
16276
if test "$host_cpu" = ia64; then
16277
# On IA64, the linker does run time linking by default, so we don't
16278
# have to do anything special.
16279
aix_use_runtimelinking=no
16280
exp_sym_flag='-Bexport'
16283
# If we're using GNU nm, then we don't want the "-C" option.
16284
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16285
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16286
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'
16288
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'
16290
aix_use_runtimelinking=no
16292
# Test if we are trying to use run time linking or normal
16293
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16294
# need to do runtime linking.
16295
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16296
for ld_flag in $LDFLAGS; do
16297
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16298
aix_use_runtimelinking=yes
16305
exp_sym_flag='-bexport'
16306
no_entry_flag='-bnoentry'
16309
# When large executables or shared objects are built, AIX ld can
16310
# have problems creating the table of contents. If linking a library
16311
# or program results in "error TOC overflow" add -mminimal-toc to
16312
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16313
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16315
archive_cmds_GCJ=''
16316
hardcode_direct_GCJ=yes
16317
hardcode_libdir_separator_GCJ=':'
16318
link_all_deplibs_GCJ=yes
16320
if test "$GCC" = yes; then
16321
case $host_os in aix4.[012]|aix4.[012].*)
16322
# We only want to do this on AIX 4.2 and lower, the check
16323
# below for broken collect2 doesn't work under 4.3+
16324
collect2name=`${CC} -print-prog-name=collect2`
16325
if test -f "$collect2name" && \
16326
strings "$collect2name" | grep resolve_lib_name >/dev/null
16328
# We have reworked collect2
16329
hardcode_direct_GCJ=yes
16331
# We have old collect2
16332
hardcode_direct_GCJ=unsupported
16333
# It fails to find uninstalled libraries when the uninstalled
16334
# path is not listed in the libpath. Setting hardcode_minus_L
16335
# to unsupported forces relinking
16336
hardcode_minus_L_GCJ=yes
16337
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16338
hardcode_libdir_separator_GCJ=
16342
shared_flag='-shared'
16343
if test "$aix_use_runtimelinking" = yes; then
16344
shared_flag="$shared_flag "'${wl}-G'
16348
if test "$host_cpu" = ia64; then
16349
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16350
# chokes on -Wl,-G. The following line is correct:
16353
if test "$aix_use_runtimelinking" = yes; then
16354
shared_flag='${wl}-G'
16356
shared_flag='${wl}-bM:SRE'
16361
# It seems that -bexpall does not export symbols beginning with
16362
# underscore (_), so it is better to generate a list of symbols to export.
16363
always_export_symbols_GCJ=yes
16364
if test "$aix_use_runtimelinking" = yes; then
16365
# Warning - without using the other runtime loading flags (-brtl),
16366
# -berok will link without error, but may produce a broken library.
16367
allow_undefined_flag_GCJ='-berok'
16368
# Determine the default libpath from the value encoded in an empty executable.
16369
cat >conftest.$ac_ext <<_ACEOF
16372
cat confdefs.h >>conftest.$ac_ext
16373
cat >>conftest.$ac_ext <<_ACEOF
16374
/* end confdefs.h. */
16384
rm -f conftest.$ac_objext conftest$ac_exeext
16385
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16386
(eval $ac_link) 2>conftest.er1
16388
grep -v '^ *+' conftest.er1 >conftest.err
16390
cat conftest.err >&5
16391
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392
(exit $ac_status); } &&
16393
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16394
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16395
(eval $ac_try) 2>&5
16397
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398
(exit $ac_status); }; } &&
16399
{ ac_try='test -s conftest$ac_exeext'
16400
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401
(eval $ac_try) 2>&5
16403
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404
(exit $ac_status); }; }; then
16406
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16408
# Check for a 64-bit object if we didn't find anything.
16409
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; }
16412
echo "$as_me: failed program was:" >&5
16413
sed 's/^/| /' conftest.$ac_ext >&5
16416
rm -f conftest.err conftest.$ac_objext \
16417
conftest$ac_exeext conftest.$ac_ext
16418
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16420
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16421
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16423
if test "$host_cpu" = ia64; then
16424
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16425
allow_undefined_flag_GCJ="-z nodefs"
16426
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16428
# Determine the default libpath from the value encoded in an empty executable.
16429
cat >conftest.$ac_ext <<_ACEOF
16432
cat confdefs.h >>conftest.$ac_ext
16433
cat >>conftest.$ac_ext <<_ACEOF
16434
/* end confdefs.h. */
16444
rm -f conftest.$ac_objext conftest$ac_exeext
16445
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16446
(eval $ac_link) 2>conftest.er1
16448
grep -v '^ *+' conftest.er1 >conftest.err
16450
cat conftest.err >&5
16451
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452
(exit $ac_status); } &&
16453
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16454
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455
(eval $ac_try) 2>&5
16457
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458
(exit $ac_status); }; } &&
16459
{ ac_try='test -s conftest$ac_exeext'
16460
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16461
(eval $ac_try) 2>&5
16463
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464
(exit $ac_status); }; }; then
16466
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16468
# Check for a 64-bit object if we didn't find anything.
16469
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; }
16472
echo "$as_me: failed program was:" >&5
16473
sed 's/^/| /' conftest.$ac_ext >&5
16476
rm -f conftest.err conftest.$ac_objext \
16477
conftest$ac_exeext conftest.$ac_ext
16478
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16480
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16481
# Warning - without using the other run time loading flags,
16482
# -berok will link without error, but may produce a broken library.
16483
no_undefined_flag_GCJ=' ${wl}-bernotok'
16484
allow_undefined_flag_GCJ=' ${wl}-berok'
16485
# Exported symbols can be pulled into shared objects from archives
16486
whole_archive_flag_spec_GCJ='$convenience'
16487
archive_cmds_need_lc_GCJ=yes
16488
# This is similar to how AIX traditionally builds its shared libraries.
16489
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16495
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)'
16496
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16497
hardcode_minus_L_GCJ=yes
16498
# see comment about different semantics on the GNU ld section
16503
export_dynamic_flag_spec_GCJ=-rdynamic
16506
cygwin* | mingw* | pw32*)
16507
# When not using gcc, we currently assume that we are using
16508
# Microsoft Visual C++.
16509
# hardcode_libdir_flag_spec is actually meaningless, as there is
16510
# no search path for DLLs.
16511
hardcode_libdir_flag_spec_GCJ=' '
16512
allow_undefined_flag_GCJ=unsupported
16513
# Tell ltmain to make .lib files, not .a files.
16515
# Tell ltmain to make .dll files, not .so files.
16517
# FIXME: Setting linknames here is a bad hack.
16518
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16519
# The linker will automatically build a .lib file if we build a DLL.
16520
old_archive_From_new_cmds_GCJ='true'
16521
# FIXME: Should let the user specify the lib program.
16522
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16523
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16524
enable_shared_with_static_runtimes_GCJ=yes
16527
darwin* | rhapsody*)
16529
rhapsody* | darwin1.[012])
16530
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16533
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16534
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16536
case ${MACOSX_DEPLOYMENT_TARGET} in
16538
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16541
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16547
archive_cmds_need_lc_GCJ=no
16548
hardcode_direct_GCJ=no
16549
hardcode_automatic_GCJ=yes
16550
hardcode_shlibpath_var_GCJ=unsupported
16551
whole_archive_flag_spec_GCJ=''
16552
link_all_deplibs_GCJ=yes
16553
if test "$GCC" = yes ; then
16554
output_verbose_link_cmd='echo'
16555
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16556
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16557
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16558
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}'
16559
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}'
16561
case $cc_basename in
16563
output_verbose_link_cmd='echo'
16564
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16565
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16566
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16567
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}'
16568
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}'
16578
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16579
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16580
hardcode_shlibpath_var_GCJ=no
16587
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16588
# support. Future versions do this automatically, but an explicit c++rt0.o
16589
# does not break anything, and helps significantly (at the cost of a little
16592
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16593
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16594
hardcode_direct_GCJ=yes
16595
hardcode_shlibpath_var_GCJ=no
16598
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16600
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16601
hardcode_direct_GCJ=yes
16602
hardcode_minus_L_GCJ=yes
16603
hardcode_shlibpath_var_GCJ=no
16606
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16607
freebsd* | dragonfly*)
16608
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16609
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16610
hardcode_direct_GCJ=yes
16611
hardcode_shlibpath_var_GCJ=no
16614
# GNU/kFreeBSD uses gcc -shared to do shared libraries.
16616
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16617
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16618
hardcode_direct_GCJ=yes
16619
hardcode_shlibpath_var_GCJ=no
16620
link_all_deplibs_GCJ=no
16624
if test "$GCC" = yes; then
16625
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'
16627
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'
16629
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16630
hardcode_libdir_separator_GCJ=:
16631
hardcode_direct_GCJ=yes
16633
# hardcode_minus_L: Not really in the search PATH,
16634
# but as the default location of the library.
16635
hardcode_minus_L_GCJ=yes
16636
export_dynamic_flag_spec_GCJ='${wl}-E'
16640
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16641
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16643
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16645
if test "$with_gnu_ld" = no; then
16646
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16647
hardcode_libdir_separator_GCJ=:
16649
hardcode_direct_GCJ=yes
16650
export_dynamic_flag_spec_GCJ='${wl}-E'
16652
# hardcode_minus_L: Not really in the search PATH,
16653
# but as the default location of the library.
16654
hardcode_minus_L_GCJ=yes
16659
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16662
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16665
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16668
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16674
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16677
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16680
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16684
if test "$with_gnu_ld" = no; then
16685
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16686
hardcode_libdir_separator_GCJ=:
16690
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16691
hardcode_direct_GCJ=no
16692
hardcode_shlibpath_var_GCJ=no
16695
hardcode_direct_GCJ=yes
16696
export_dynamic_flag_spec_GCJ='${wl}-E'
16698
# hardcode_minus_L: Not really in the search PATH,
16699
# but as the default location of the library.
16700
hardcode_minus_L_GCJ=yes
16706
irix5* | irix6* | nonstopux*)
16707
if test "$GCC" = yes; then
16708
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'
16710
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'
16711
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16713
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16714
hardcode_libdir_separator_GCJ=:
16715
link_all_deplibs_GCJ=yes
16718
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16719
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16720
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16722
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16724
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16725
hardcode_direct_GCJ=yes
16726
hardcode_shlibpath_var_GCJ=no
16730
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16731
hardcode_direct_GCJ=yes
16732
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16733
hardcode_libdir_separator_GCJ=:
16734
hardcode_shlibpath_var_GCJ=no
16738
hardcode_direct_GCJ=yes
16739
hardcode_shlibpath_var_GCJ=no
16740
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16741
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16742
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16743
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16744
export_dynamic_flag_spec_GCJ='${wl}-E'
16747
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16748
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16749
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16752
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16753
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16760
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16761
hardcode_minus_L_GCJ=yes
16762
allow_undefined_flag_GCJ=unsupported
16763
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'
16764
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16768
if test "$GCC" = yes; then
16769
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16770
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'
16772
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16773
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'
16775
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16776
hardcode_libdir_separator_GCJ=:
16779
osf4* | osf5*) # as osf3* with the addition of -msym flag
16780
if test "$GCC" = yes; then
16781
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16782
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'
16783
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16785
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16786
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'
16787
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~
16788
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16790
# Both c and cxx compiler support -rpath directly
16791
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16793
hardcode_libdir_separator_GCJ=:
16797
no_undefined_flag_GCJ=' -z text'
16798
if test "$GCC" = yes; then
16800
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16801
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16802
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16805
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16806
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16807
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16809
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16810
hardcode_shlibpath_var_GCJ=no
16812
solaris2.[0-5] | solaris2.[0-5].*) ;;
16814
# The compiler driver will combine linker options so we
16815
# cannot just pass the convience library names through
16816
# without $wl, iff we do not link with $LD.
16817
# Luckily, gcc supports the same syntax we need for Sun Studio.
16818
# Supported since Solaris 2.6 (maybe 2.5.1?)
16821
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16823
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16826
link_all_deplibs_GCJ=yes
16830
if test "x$host_vendor" = xsequent; then
16831
# Use $CC to link under sequent, because it throws in some extra .o
16832
# files that make .init and .fini sections work.
16833
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16835
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16837
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16838
hardcode_direct_GCJ=yes
16839
hardcode_minus_L_GCJ=yes
16840
hardcode_shlibpath_var_GCJ=no
16844
case $host_vendor in
16846
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16847
hardcode_direct_GCJ=yes # is this really true???
16850
## LD is ld it makes a PLAMLIB
16851
## CC just makes a GrossModule.
16852
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16853
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16854
hardcode_direct_GCJ=no
16857
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16858
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16861
runpath_var='LD_RUN_PATH'
16862
hardcode_shlibpath_var_GCJ=no
16866
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16867
hardcode_shlibpath_var_GCJ=no
16868
export_dynamic_flag_spec_GCJ='-Bexport'
16872
if test -d /usr/nec; then
16873
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16874
hardcode_shlibpath_var_GCJ=no
16875
runpath_var=LD_RUN_PATH
16876
hardcode_runpath_var=yes
16881
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16882
no_undefined_flag_GCJ='${wl}-z,text'
16883
archive_cmds_need_lc_GCJ=no
16884
hardcode_shlibpath_var_GCJ=no
16885
runpath_var='LD_RUN_PATH'
16887
if test "$GCC" = yes; then
16888
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16889
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16891
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16892
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16896
sysv5* | sco3.2v5* | sco5v6*)
16897
# Note: We can NOT use -z defs as we might desire, because we do not
16898
# link with -lc, and that would cause any symbols used from libc to
16899
# always be unresolved, which means just about no library would
16900
# ever link correctly. If we're not using GNU ld we use -z text
16901
# though, which does catch some bad symbols but isn't as heavy-handed
16903
no_undefined_flag_GCJ='${wl}-z,text'
16904
allow_undefined_flag_GCJ='${wl}-z,nodefs'
16905
archive_cmds_need_lc_GCJ=no
16906
hardcode_shlibpath_var_GCJ=no
16907
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16908
hardcode_libdir_separator_GCJ=':'
16909
link_all_deplibs_GCJ=yes
16910
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16911
runpath_var='LD_RUN_PATH'
16913
if test "$GCC" = yes; then
16914
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16915
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16917
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16918
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16923
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16924
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16925
hardcode_shlibpath_var_GCJ=no
16934
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16935
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16936
test "$ld_shlibs_GCJ" = no && can_build_shared=no
16939
# Do we need to explicitly link libc?
16941
case "x$archive_cmds_need_lc_GCJ" in
16943
# Assume -lc should be added
16944
archive_cmds_need_lc_GCJ=yes
16946
if test "$enable_shared" = yes && test "$GCC" = yes; then
16947
case $archive_cmds_GCJ in
16949
# FIXME: we may have to deal with multi-command sequences.
16952
# Test whether the compiler implicitly links with -lc since on some
16953
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16954
# to ld, don't add -lc before -lgcc.
16955
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16956
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16958
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16960
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16961
(eval $ac_compile) 2>&5
16963
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964
(exit $ac_status); } 2>conftest.err; then
16967
libobjs=conftest.$ac_objext
16969
wl=$lt_prog_compiler_wl_GCJ
16970
pic_flag=$lt_prog_compiler_pic_GCJ
16976
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16977
allow_undefined_flag_GCJ=
16978
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16979
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982
(exit $ac_status); }
16984
archive_cmds_need_lc_GCJ=no
16986
archive_cmds_need_lc_GCJ=yes
16988
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16990
cat conftest.err 1>&5
16993
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16994
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17001
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17002
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17003
library_names_spec=
17004
libname_spec='lib$name'
17008
postuninstall_cmds=
17012
shlibpath_overrides_runpath=unknown
17014
dynamic_linker="$host_os ld.so"
17015
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17016
if test "$GCC" = yes; then
17017
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17018
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17019
# if the path contains ";" then we assume it to be the separator
17020
# otherwise default to the standard path separator (i.e. ":") - it is
17021
# assumed that no part of a normal pathname contains ";" but that should
17022
# okay in the real world where ";" in dirpaths is itself problematic.
17023
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17025
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17028
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17030
need_lib_prefix=unknown
17031
hardcode_into_libs=no
17033
# when you set need_version to no, make sure it does not cause -set_version
17034
# flags to be left without arguments
17035
need_version=unknown
17040
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17041
shlibpath_var=LIBPATH
17043
# AIX 3 has no versioning support, so we append a major version to the name.
17044
soname_spec='${libname}${release}${shared_ext}$major'
17051
hardcode_into_libs=yes
17052
if test "$host_cpu" = ia64; then
17053
# AIX 5 supports IA64
17054
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17055
shlibpath_var=LD_LIBRARY_PATH
17057
# With GCC up to 2.95.x, collect2 would create an import file
17058
# for dependence libraries. The import file would start with
17059
# the line `#! .'. This would cause the generated library to
17060
# depend on `.', always an invalid library. This was fixed in
17061
# development snapshots of GCC prior to 3.0.
17063
aix4 | aix4.[01] | aix4.[01].*)
17064
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17066
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17069
can_build_shared=no
17073
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17074
# soname into executable. Probably we can add versioning support to
17075
# collect2, so additional links can be useful in future.
17076
if test "$aix_use_runtimelinking" = yes; then
17077
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17078
# instead of lib<name>.a to let people know that these are not
17079
# typical AIX shared libraries.
17080
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17082
# We preserve .a as extension for shared libraries through AIX4.2
17083
# and later when we are not doing run time linking.
17084
library_names_spec='${libname}${release}.a $libname.a'
17085
soname_spec='${libname}${release}${shared_ext}$major'
17087
shlibpath_var=LIBPATH
17092
library_names_spec='$libname.ixlibrary $libname.a'
17093
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17094
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'
17098
library_names_spec='${libname}${shared_ext}'
17099
dynamic_linker="$host_os ld.so"
17100
shlibpath_var=LIBRARY_PATH
17106
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17107
soname_spec='${libname}${release}${shared_ext}$major'
17108
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17109
shlibpath_var=LD_LIBRARY_PATH
17110
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17111
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17112
# the default ld.so.conf also contains /usr/contrib/lib and
17113
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17114
# libtool to hard-code these into programs
17117
cygwin* | mingw* | pw32*)
17118
version_type=windows
17123
case $GCC,$host_os in
17124
yes,cygwin* | yes,mingw* | yes,pw32*)
17125
library_names_spec='$libname.dll.a'
17126
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17127
postinstall_cmds='base_file=`basename \${file}`~
17128
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17129
dldir=$destdir/`dirname \$dlpath`~
17130
test -d \$dldir || mkdir -p \$dldir~
17131
$install_prog $dir/$dlname \$dldir/$dlname~
17132
chmod a+x \$dldir/$dlname'
17133
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17134
dlpath=$dir/\$dldll~
17136
shlibpath_overrides_runpath=yes
17140
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17141
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17142
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17145
# MinGW DLLs use traditional 'lib' prefix
17146
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17147
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17148
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17149
# It is most probably a Windows format PATH printed by
17150
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17151
# path with ; separators, and with drive letters. We can handle the
17152
# drive letters (cygwin fileutils understands them), so leave them,
17153
# especially as we might pass files found there to a mingw objdump,
17154
# which wouldn't understand a cygwinified path. Ahh.
17155
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17157
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17161
# pw32 DLLs use 'pw' prefix rather than 'lib'
17162
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17168
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17171
dynamic_linker='Win32 ld.exe'
17172
# FIXME: first we should search . and the directory the executable is in
17176
darwin* | rhapsody*)
17177
dynamic_linker="$host_os dyld"
17178
version_type=darwin
17181
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17182
soname_spec='${libname}${release}${major}$shared_ext'
17183
shlibpath_overrides_runpath=yes
17184
shlibpath_var=DYLD_LIBRARY_PATH
17185
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17186
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17187
if test "$GCC" = yes; then
17188
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"`
17190
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17192
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17199
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17200
soname_spec='${libname}${release}${shared_ext}$major'
17201
shlibpath_var=LD_LIBRARY_PATH
17212
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17213
soname_spec='${libname}${release}${shared_ext}$major'
17214
shlibpath_var=LD_LIBRARY_PATH
17215
shlibpath_overrides_runpath=no
17216
hardcode_into_libs=yes
17217
dynamic_linker='GNU ld.so'
17220
freebsd* | dragonfly*)
17221
# DragonFly does not have aout. When/if they implement a new
17222
# versioning mechanism, adjust this.
17223
if test -x /usr/bin/objformat; then
17224
objformat=`/usr/bin/objformat`
17227
freebsd[123]*) objformat=aout ;;
17228
*) objformat=elf ;;
17231
version_type=freebsd-$objformat
17232
case $version_type in
17234
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17239
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17243
shlibpath_var=LD_LIBRARY_PATH
17246
shlibpath_overrides_runpath=yes
17248
freebsd3.[01]* | freebsdelf3.[01]*)
17249
shlibpath_overrides_runpath=yes
17250
hardcode_into_libs=yes
17252
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17253
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17254
shlibpath_overrides_runpath=no
17255
hardcode_into_libs=yes
17257
freebsd*) # from 4.6 on
17258
shlibpath_overrides_runpath=yes
17259
hardcode_into_libs=yes
17268
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17269
soname_spec='${libname}${release}${shared_ext}$major'
17270
shlibpath_var=LD_LIBRARY_PATH
17271
hardcode_into_libs=yes
17274
hpux9* | hpux10* | hpux11*)
17275
# Give a soname corresponding to the major version so that dld.sl refuses to
17276
# link against other versions.
17283
hardcode_into_libs=yes
17284
dynamic_linker="$host_os dld.so"
17285
shlibpath_var=LD_LIBRARY_PATH
17286
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17287
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17288
soname_spec='${libname}${release}${shared_ext}$major'
17289
if test "X$HPUX_IA64_MODE" = X32; then
17290
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17292
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17294
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17298
hardcode_into_libs=yes
17299
dynamic_linker="$host_os dld.sl"
17300
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17301
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17302
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17303
soname_spec='${libname}${release}${shared_ext}$major'
17304
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17305
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17309
dynamic_linker="$host_os dld.sl"
17310
shlibpath_var=SHLIB_PATH
17311
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17312
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17313
soname_spec='${libname}${release}${shared_ext}$major'
17316
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17317
postinstall_cmds='chmod 555 $lib'
17324
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17325
soname_spec='${libname}${release}${shared_ext}$major'
17326
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17327
shlibpath_var=LD_LIBRARY_PATH
17328
shlibpath_overrides_runpath=no
17329
hardcode_into_libs=yes
17332
irix5* | irix6* | nonstopux*)
17334
nonstopux*) version_type=nonstopux ;;
17336
if test "$lt_cv_prog_gnu_ld" = yes; then
17344
soname_spec='${libname}${release}${shared_ext}$major'
17345
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17347
irix5* | nonstopux*)
17348
libsuff= shlibsuff=
17351
case $LD in # libtool.m4 will add one of these switches to LD
17352
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17353
libsuff= shlibsuff= libmagic=32-bit;;
17354
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17355
libsuff=32 shlibsuff=N32 libmagic=N32;;
17356
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17357
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17358
*) libsuff= shlibsuff= libmagic=never-match;;
17362
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17363
shlibpath_overrides_runpath=no
17364
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17365
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17366
hardcode_into_libs=yes
17369
# No shared lib support for Linux oldld, aout, or coff.
17370
linux*oldld* | linux*aout* | linux*coff*)
17374
# This must be Linux ELF.
17379
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17380
soname_spec='${libname}${release}${shared_ext}$major'
17381
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17382
shlibpath_var=LD_LIBRARY_PATH
17383
shlibpath_overrides_runpath=no
17384
# This implies no fast_install, which is unacceptable.
17385
# Some rework will be needed to allow for fast_install
17386
# before this can be enabled.
17387
hardcode_into_libs=yes
17389
# Append ld.so.conf contents to the search path
17390
if test -f /etc/ld.so.conf; then
17391
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17392
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17395
# We used to test for /lib/ld.so.1 and disable shared libraries on
17396
# powerpc, because MkLinux only supported shared libraries with the
17397
# GNU dynamic linker. Since this was broken with cross compilers,
17398
# most powerpc-linux boxes support dynamic linking these days and
17399
# people can always --disable-shared, the test was removed, and we
17400
# assume the GNU/Linux dynamic linker is in use.
17401
dynamic_linker='GNU/Linux ld.so'
17408
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17409
soname_spec='${libname}${release}${shared_ext}$major'
17410
shlibpath_var=LD_LIBRARY_PATH
17411
shlibpath_overrides_runpath=no
17412
hardcode_into_libs=yes
17413
dynamic_linker='NetBSD ld.elf_so'
17420
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17421
soname_spec='${libname}${release}${shared_ext}$major'
17422
shlibpath_var=LD_LIBRARY_PATH
17423
shlibpath_overrides_runpath=no
17424
hardcode_into_libs=yes
17425
dynamic_linker='GNU ld.so'
17432
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17433
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17434
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17435
dynamic_linker='NetBSD (a.out) ld.so'
17437
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17438
soname_spec='${libname}${release}${shared_ext}$major'
17439
dynamic_linker='NetBSD ld.elf_so'
17441
shlibpath_var=LD_LIBRARY_PATH
17442
shlibpath_overrides_runpath=yes
17443
hardcode_into_libs=yes
17448
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17449
shlibpath_var=LD_LIBRARY_PATH
17450
shlibpath_overrides_runpath=yes
17457
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17458
soname_spec='${libname}${release}${shared_ext}$major'
17459
shlibpath_var=LD_LIBRARY_PATH
17460
shlibpath_overrides_runpath=yes
17465
sys_lib_dlsearch_path_spec="/usr/lib"
17467
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17469
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17470
*) need_version=no ;;
17472
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17473
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17474
shlibpath_var=LD_LIBRARY_PATH
17475
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17477
openbsd2.[89] | openbsd2.[89].*)
17478
shlibpath_overrides_runpath=no
17481
shlibpath_overrides_runpath=yes
17485
shlibpath_overrides_runpath=yes
17490
libname_spec='$name'
17493
library_names_spec='$libname${shared_ext} $libname.a'
17494
dynamic_linker='OS/2 ld.exe'
17495
shlibpath_var=LIBPATH
17498
osf3* | osf4* | osf5*)
17502
soname_spec='${libname}${release}${shared_ext}$major'
17503
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17504
shlibpath_var=LD_LIBRARY_PATH
17505
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17506
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17513
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17514
soname_spec='${libname}${release}${shared_ext}$major'
17515
shlibpath_var=LD_LIBRARY_PATH
17516
shlibpath_overrides_runpath=yes
17517
hardcode_into_libs=yes
17518
# ldd complains unless libraries are executable
17519
postinstall_cmds='chmod +x $lib'
17524
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17525
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17526
shlibpath_var=LD_LIBRARY_PATH
17527
shlibpath_overrides_runpath=yes
17528
if test "$with_gnu_ld" = yes; then
17536
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17537
soname_spec='${libname}${release}${shared_ext}$major'
17538
shlibpath_var=LD_LIBRARY_PATH
17539
case $host_vendor in
17541
shlibpath_overrides_runpath=no
17543
export_dynamic_flag_spec='${wl}-Blargedynsym'
17544
runpath_var=LD_RUN_PATH
17552
shlibpath_overrides_runpath=no
17553
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17559
if test -d /usr/nec ;then
17561
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17562
soname_spec='$libname${shared_ext}.$major'
17563
shlibpath_var=LD_LIBRARY_PATH
17567
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17568
version_type=freebsd-elf
17571
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17572
soname_spec='${libname}${release}${shared_ext}$major'
17573
shlibpath_var=LD_LIBRARY_PATH
17574
hardcode_into_libs=yes
17575
if test "$with_gnu_ld" = yes; then
17576
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17577
shlibpath_overrides_runpath=no
17579
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17580
shlibpath_overrides_runpath=yes
17583
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17587
sys_lib_dlsearch_path_spec='/usr/lib'
17592
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17593
soname_spec='${libname}${release}${shared_ext}$major'
17594
shlibpath_var=LD_LIBRARY_PATH
17601
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17602
echo "${ECHO_T}$dynamic_linker" >&6
17603
test "$dynamic_linker" = no && can_build_shared=no
17605
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17606
if test "$GCC" = yes; then
17607
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17610
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17611
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17612
hardcode_action_GCJ=
17613
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17614
test -n "$runpath_var_GCJ" || \
17615
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17617
# We can hardcode non-existant directories.
17618
if test "$hardcode_direct_GCJ" != no &&
17619
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17620
# have to relink, otherwise we might link with an installed library
17621
# when we should be linking with a yet-to-be-installed one
17622
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17623
test "$hardcode_minus_L_GCJ" != no; then
17624
# Linking always hardcodes the temporary library directory.
17625
hardcode_action_GCJ=relink
17627
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17628
hardcode_action_GCJ=immediate
17631
# We cannot hardcode anything, or else we can only hardcode existing
17633
hardcode_action_GCJ=unsupported
17635
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17636
echo "${ECHO_T}$hardcode_action_GCJ" >&6
17638
if test "$hardcode_action_GCJ" = relink; then
17639
# Fast installation is not supported
17640
enable_fast_install=no
17641
elif test "$shlibpath_overrides_runpath" = yes ||
17642
test "$enable_shared" = no; then
17643
# Fast installation is not necessary
17644
enable_fast_install=needless
17648
# The else clause should only fire when bootstrapping the
17649
# libtool distribution, otherwise you forgot to ship ltmain.sh
17650
# with your package, and you will get complaints that there are
17651
# no rules to generate ltmain.sh.
17652
if test -f "$ltmain"; then
17653
# See if we are running on zsh, and set the options which allow our commands through
17654
# without removal of \ escapes.
17655
if test -n "${ZSH_VERSION+set}" ; then
17656
setopt NO_GLOB_SUBST
17658
# Now quote all the things that may contain metacharacters while being
17659
# careful not to overquote the AC_SUBSTed values. We take copies of the
17660
# variables and quote the copies for generation of the libtool script.
17661
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17663
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17664
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17665
deplibs_check_method reload_flag reload_cmds need_locks \
17666
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17667
lt_cv_sys_global_symbol_to_c_name_address \
17668
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17669
old_postinstall_cmds old_postuninstall_cmds \
17673
lt_prog_compiler_wl_GCJ \
17674
lt_prog_compiler_pic_GCJ \
17675
lt_prog_compiler_static_GCJ \
17676
lt_prog_compiler_no_builtin_flag_GCJ \
17677
export_dynamic_flag_spec_GCJ \
17678
thread_safe_flag_spec_GCJ \
17679
whole_archive_flag_spec_GCJ \
17680
enable_shared_with_static_runtimes_GCJ \
17681
old_archive_cmds_GCJ \
17682
old_archive_from_new_cmds_GCJ \
17683
predep_objects_GCJ \
17684
postdep_objects_GCJ \
17687
compiler_lib_search_path_GCJ \
17689
archive_expsym_cmds_GCJ \
17690
postinstall_cmds_GCJ \
17691
postuninstall_cmds_GCJ \
17692
old_archive_from_expsyms_cmds_GCJ \
17693
allow_undefined_flag_GCJ \
17694
no_undefined_flag_GCJ \
17695
export_symbols_cmds_GCJ \
17696
hardcode_libdir_flag_spec_GCJ \
17697
hardcode_libdir_flag_spec_ld_GCJ \
17698
hardcode_libdir_separator_GCJ \
17699
hardcode_automatic_GCJ \
17701
module_expsym_cmds_GCJ \
17702
lt_cv_prog_compiler_c_o_GCJ \
17703
exclude_expsyms_GCJ \
17704
include_expsyms_GCJ; do
17707
old_archive_cmds_GCJ | \
17708
old_archive_from_new_cmds_GCJ | \
17709
archive_cmds_GCJ | \
17710
archive_expsym_cmds_GCJ | \
17711
module_cmds_GCJ | \
17712
module_expsym_cmds_GCJ | \
17713
old_archive_from_expsyms_cmds_GCJ | \
17714
export_symbols_cmds_GCJ | \
17715
extract_expsyms_cmds | reload_cmds | finish_cmds | \
17716
postinstall_cmds | postuninstall_cmds | \
17717
old_postinstall_cmds | old_postuninstall_cmds | \
17718
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17719
# Double-quote double-evaled strings.
17720
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17723
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17729
*'\$0 --fallback-echo"')
17730
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17736
cat <<__EOF__ >> "$cfgfile"
17737
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17739
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17741
# Shell to use when invoking shell scripts.
17744
# Whether or not to build shared libraries.
17745
build_libtool_libs=$enable_shared
17747
# Whether or not to build static libraries.
17748
build_old_libs=$enable_static
17750
# Whether or not to add -lc for building shared libraries.
17751
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17753
# Whether or not to disallow shared libs when runtime libs are static
17754
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17756
# Whether or not to optimize for fast installation.
17757
fast_install=$enable_fast_install
17760
host_alias=$host_alias
17764
# The build system.
17765
build_alias=$build_alias
17769
# An echo program that does not interpret backslashes.
17774
AR_FLAGS=$lt_AR_FLAGS
17779
# LTCC compiler flags.
17780
LTCFLAGS=$lt_LTCFLAGS
17782
# A language-specific compiler.
17783
CC=$lt_compiler_GCJ
17785
# Is the compiler the GNU C compiler?
17791
# The linker used to build libraries.
17794
# Whether we need hard or soft links.
17797
# A BSD-compatible nm program.
17800
# A symbol stripping program
17803
# Used to examine libraries when file_magic_cmd begins "file"
17804
MAGIC_CMD=$MAGIC_CMD
17806
# Used on cygwin: DLL creation program.
17809
# Used on cygwin: object dumper.
17812
# Used on cygwin: assembler.
17815
# The name of the directory that contains temporary libtool files.
17818
# How to create reloadable object files.
17819
reload_flag=$lt_reload_flag
17820
reload_cmds=$lt_reload_cmds
17822
# How to pass a linker flag through the compiler.
17823
wl=$lt_lt_prog_compiler_wl_GCJ
17825
# Object file suffix (normally "o").
17826
objext="$ac_objext"
17828
# Old archive suffix (normally "a").
17831
# Shared library suffix (normally ".so").
17832
shrext_cmds='$shrext_cmds'
17834
# Executable file suffix (normally "").
17837
# Additional compiler flags for building library objects.
17838
pic_flag=$lt_lt_prog_compiler_pic_GCJ
17841
# What is the maximum length of a command?
17842
max_cmd_len=$lt_cv_sys_max_cmd_len
17844
# Does compiler simultaneously support -c and -o options?
17845
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17847
# Must we lock files when doing compilation?
17848
need_locks=$lt_need_locks
17850
# Do we need the lib prefix for modules?
17851
need_lib_prefix=$need_lib_prefix
17853
# Do we need a version for libraries?
17854
need_version=$need_version
17856
# Whether dlopen is supported.
17857
dlopen_support=$enable_dlopen
17859
# Whether dlopen of programs is supported.
17860
dlopen_self=$enable_dlopen_self
17862
# Whether dlopen of statically linked programs is supported.
17863
dlopen_self_static=$enable_dlopen_self_static
17865
# Compiler flag to prevent dynamic linking.
17866
link_static_flag=$lt_lt_prog_compiler_static_GCJ
17868
# Compiler flag to turn off builtin functions.
17869
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17871
# Compiler flag to allow reflexive dlopens.
17872
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17874
# Compiler flag to generate shared objects directly from archives.
17875
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17877
# Compiler flag to generate thread-safe objects.
17878
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17880
# Library versioning type.
17881
version_type=$version_type
17883
# Format of library name prefix.
17884
libname_spec=$lt_libname_spec
17886
# List of archive names. First name is the real one, the rest are links.
17887
# The last name is the one that the linker finds with -lNAME.
17888
library_names_spec=$lt_library_names_spec
17890
# The coded name of the library, if different from the real name.
17891
soname_spec=$lt_soname_spec
17893
# Commands used to build and install an old-style archive.
17895
old_archive_cmds=$lt_old_archive_cmds_GCJ
17896
old_postinstall_cmds=$lt_old_postinstall_cmds
17897
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17899
# Create an old-style archive from a shared archive.
17900
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17902
# Create a temporary old-style archive to link instead of a shared archive.
17903
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17905
# Commands used to build and install a shared archive.
17906
archive_cmds=$lt_archive_cmds_GCJ
17907
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17908
postinstall_cmds=$lt_postinstall_cmds
17909
postuninstall_cmds=$lt_postuninstall_cmds
17911
# Commands used to build a loadable module (assumed same as above if empty)
17912
module_cmds=$lt_module_cmds_GCJ
17913
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17915
# Commands to strip libraries.
17916
old_striplib=$lt_old_striplib
17917
striplib=$lt_striplib
17919
# Dependencies to place before the objects being linked to create a
17921
predep_objects=$lt_predep_objects_GCJ
17923
# Dependencies to place after the objects being linked to create a
17925
postdep_objects=$lt_postdep_objects_GCJ
17927
# Dependencies to place before the objects being linked to create a
17929
predeps=$lt_predeps_GCJ
17931
# Dependencies to place after the objects being linked to create a
17933
postdeps=$lt_postdeps_GCJ
17935
# The library search path used internally by the compiler when linking
17936
# a shared library.
17937
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17939
# Method to check whether dependent libraries are shared objects.
17940
deplibs_check_method=$lt_deplibs_check_method
17942
# Command to use when deplibs_check_method == file_magic.
17943
file_magic_cmd=$lt_file_magic_cmd
17945
# Flag that allows shared libraries with undefined symbols to be built.
17946
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17948
# Flag that forces no undefined symbols.
17949
no_undefined_flag=$lt_no_undefined_flag_GCJ
17951
# Commands used to finish a libtool library installation in a directory.
17952
finish_cmds=$lt_finish_cmds
17954
# Same as above, but a single script fragment to be evaled but not shown.
17955
finish_eval=$lt_finish_eval
17957
# Take the output of nm and produce a listing of raw symbols and C names.
17958
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17960
# Transform the output of nm in a proper C declaration
17961
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17963
# Transform the output of nm in a C name address pair
17964
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17966
# This is the shared library runtime path variable.
17967
runpath_var=$runpath_var
17969
# This is the shared library path variable.
17970
shlibpath_var=$shlibpath_var
17972
# Is shlibpath searched before the hard-coded library search path?
17973
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17975
# How to hardcode a shared library path into an executable.
17976
hardcode_action=$hardcode_action_GCJ
17978
# Whether we should hardcode library paths into libraries.
17979
hardcode_into_libs=$hardcode_into_libs
17981
# Flag to hardcode \$libdir into a binary during linking.
17982
# This must work even if \$libdir does not exist.
17983
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17985
# If ld is used when linking, flag to hardcode \$libdir into
17986
# a binary during linking. This must work even if \$libdir does
17988
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17990
# Whether we need a single -rpath flag with a separated argument.
17991
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17993
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17994
# resulting binary.
17995
hardcode_direct=$hardcode_direct_GCJ
17997
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17998
# resulting binary.
17999
hardcode_minus_L=$hardcode_minus_L_GCJ
18001
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18002
# the resulting binary.
18003
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18005
# Set to yes if building a shared library automatically hardcodes DIR into the library
18006
# and all subsequent libraries and executables linked against it.
18007
hardcode_automatic=$hardcode_automatic_GCJ
18009
# Variables whose values should be saved in libtool wrapper scripts and
18010
# restored at relink time.
18011
variables_saved_for_relink="$variables_saved_for_relink"
18013
# Whether libtool must link a program against all its dependency libraries.
18014
link_all_deplibs=$link_all_deplibs_GCJ
18016
# Compile-time system search path for libraries
18017
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18019
# Run-time system search path for libraries
18020
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18022
# Fix the shell variable \$srcfile for the compiler.
18023
fix_srcfile_path="$fix_srcfile_path_GCJ"
18025
# Set to yes if exported symbols are required.
18026
always_export_symbols=$always_export_symbols_GCJ
18028
# The commands to list exported symbols.
18029
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18031
# The commands to extract the exported symbol list from a shared archive.
18032
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18034
# Symbols that should not be listed in the preloaded symbols.
18035
exclude_expsyms=$lt_exclude_expsyms_GCJ
18037
# Symbols that must always be exported.
18038
include_expsyms=$lt_include_expsyms_GCJ
18040
# ### END LIBTOOL TAG CONFIG: $tagname
18046
# If there is no Makefile yet, we rely on a make rule to execute
18047
# `config.status --recheck' to rerun these tests and create the
18048
# libtool script then.
18049
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18050
if test -f "$ltmain_in"; then
18051
test -f Makefile && make "$ltmain"
18057
ac_cpp='$CPP $CPPFLAGS'
18058
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18059
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18060
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18073
# Source file extension for RC test sources.
18076
# Object file extension for compiled RC test sources.
18080
# Code to be used in simple compile tests
18081
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18083
# Code to be used in simple link tests
18084
lt_simple_link_test_code="$lt_simple_compile_test_code"
18086
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18088
# If no C compiler was specified, use CC.
18091
# If no C compiler flags were specified, use CFLAGS.
18092
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18094
# Allow CC to be a program name with arguments.
18098
# save warnings/boilerplate of simple test code
18099
ac_outfile=conftest.$ac_objext
18100
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18101
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18102
_lt_compiler_boilerplate=`cat conftest.err`
18105
ac_outfile=conftest.$ac_objext
18106
printf "$lt_simple_link_test_code" >conftest.$ac_ext
18107
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18108
_lt_linker_boilerplate=`cat conftest.err`
18112
# Allow CC to be a program name with arguments.
18117
for cc_temp in $compiler""; do
18119
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18120
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18125
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18127
lt_cv_prog_compiler_c_o_RC=yes
18129
# The else clause should only fire when bootstrapping the
18130
# libtool distribution, otherwise you forgot to ship ltmain.sh
18131
# with your package, and you will get complaints that there are
18132
# no rules to generate ltmain.sh.
18133
if test -f "$ltmain"; then
18134
# See if we are running on zsh, and set the options which allow our commands through
18135
# without removal of \ escapes.
18136
if test -n "${ZSH_VERSION+set}" ; then
18137
setopt NO_GLOB_SUBST
18139
# Now quote all the things that may contain metacharacters while being
18140
# careful not to overquote the AC_SUBSTed values. We take copies of the
18141
# variables and quote the copies for generation of the libtool script.
18142
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18144
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18145
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18146
deplibs_check_method reload_flag reload_cmds need_locks \
18147
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18148
lt_cv_sys_global_symbol_to_c_name_address \
18149
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18150
old_postinstall_cmds old_postuninstall_cmds \
18154
lt_prog_compiler_wl_RC \
18155
lt_prog_compiler_pic_RC \
18156
lt_prog_compiler_static_RC \
18157
lt_prog_compiler_no_builtin_flag_RC \
18158
export_dynamic_flag_spec_RC \
18159
thread_safe_flag_spec_RC \
18160
whole_archive_flag_spec_RC \
18161
enable_shared_with_static_runtimes_RC \
18162
old_archive_cmds_RC \
18163
old_archive_from_new_cmds_RC \
18164
predep_objects_RC \
18165
postdep_objects_RC \
18168
compiler_lib_search_path_RC \
18170
archive_expsym_cmds_RC \
18171
postinstall_cmds_RC \
18172
postuninstall_cmds_RC \
18173
old_archive_from_expsyms_cmds_RC \
18174
allow_undefined_flag_RC \
18175
no_undefined_flag_RC \
18176
export_symbols_cmds_RC \
18177
hardcode_libdir_flag_spec_RC \
18178
hardcode_libdir_flag_spec_ld_RC \
18179
hardcode_libdir_separator_RC \
18180
hardcode_automatic_RC \
18182
module_expsym_cmds_RC \
18183
lt_cv_prog_compiler_c_o_RC \
18184
exclude_expsyms_RC \
18185
include_expsyms_RC; do
18188
old_archive_cmds_RC | \
18189
old_archive_from_new_cmds_RC | \
18190
archive_cmds_RC | \
18191
archive_expsym_cmds_RC | \
18193
module_expsym_cmds_RC | \
18194
old_archive_from_expsyms_cmds_RC | \
18195
export_symbols_cmds_RC | \
18196
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18197
postinstall_cmds | postuninstall_cmds | \
18198
old_postinstall_cmds | old_postuninstall_cmds | \
18199
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18200
# Double-quote double-evaled strings.
18201
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18204
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18210
*'\$0 --fallback-echo"')
18211
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18217
cat <<__EOF__ >> "$cfgfile"
18218
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18220
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18222
# Shell to use when invoking shell scripts.
18225
# Whether or not to build shared libraries.
18226
build_libtool_libs=$enable_shared
18228
# Whether or not to build static libraries.
18229
build_old_libs=$enable_static
18231
# Whether or not to add -lc for building shared libraries.
18232
build_libtool_need_lc=$archive_cmds_need_lc_RC
18234
# Whether or not to disallow shared libs when runtime libs are static
18235
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18237
# Whether or not to optimize for fast installation.
18238
fast_install=$enable_fast_install
18241
host_alias=$host_alias
18245
# The build system.
18246
build_alias=$build_alias
18250
# An echo program that does not interpret backslashes.
18255
AR_FLAGS=$lt_AR_FLAGS
18260
# LTCC compiler flags.
18261
LTCFLAGS=$lt_LTCFLAGS
18263
# A language-specific compiler.
18266
# Is the compiler the GNU C compiler?
18272
# The linker used to build libraries.
18275
# Whether we need hard or soft links.
18278
# A BSD-compatible nm program.
18281
# A symbol stripping program
18284
# Used to examine libraries when file_magic_cmd begins "file"
18285
MAGIC_CMD=$MAGIC_CMD
18287
# Used on cygwin: DLL creation program.
18290
# Used on cygwin: object dumper.
18293
# Used on cygwin: assembler.
18296
# The name of the directory that contains temporary libtool files.
18299
# How to create reloadable object files.
18300
reload_flag=$lt_reload_flag
18301
reload_cmds=$lt_reload_cmds
18303
# How to pass a linker flag through the compiler.
18304
wl=$lt_lt_prog_compiler_wl_RC
18306
# Object file suffix (normally "o").
18307
objext="$ac_objext"
18309
# Old archive suffix (normally "a").
18312
# Shared library suffix (normally ".so").
18313
shrext_cmds='$shrext_cmds'
18315
# Executable file suffix (normally "").
18318
# Additional compiler flags for building library objects.
18319
pic_flag=$lt_lt_prog_compiler_pic_RC
18322
# What is the maximum length of a command?
18323
max_cmd_len=$lt_cv_sys_max_cmd_len
18325
# Does compiler simultaneously support -c and -o options?
18326
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18328
# Must we lock files when doing compilation?
18329
need_locks=$lt_need_locks
18331
# Do we need the lib prefix for modules?
18332
need_lib_prefix=$need_lib_prefix
18334
# Do we need a version for libraries?
18335
need_version=$need_version
18337
# Whether dlopen is supported.
18338
dlopen_support=$enable_dlopen
18340
# Whether dlopen of programs is supported.
18341
dlopen_self=$enable_dlopen_self
18343
# Whether dlopen of statically linked programs is supported.
18344
dlopen_self_static=$enable_dlopen_self_static
18346
# Compiler flag to prevent dynamic linking.
18347
link_static_flag=$lt_lt_prog_compiler_static_RC
18349
# Compiler flag to turn off builtin functions.
18350
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18352
# Compiler flag to allow reflexive dlopens.
18353
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18355
# Compiler flag to generate shared objects directly from archives.
18356
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18358
# Compiler flag to generate thread-safe objects.
18359
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18361
# Library versioning type.
18362
version_type=$version_type
18364
# Format of library name prefix.
18365
libname_spec=$lt_libname_spec
18367
# List of archive names. First name is the real one, the rest are links.
18368
# The last name is the one that the linker finds with -lNAME.
18369
library_names_spec=$lt_library_names_spec
18371
# The coded name of the library, if different from the real name.
18372
soname_spec=$lt_soname_spec
18374
# Commands used to build and install an old-style archive.
18376
old_archive_cmds=$lt_old_archive_cmds_RC
18377
old_postinstall_cmds=$lt_old_postinstall_cmds
18378
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18380
# Create an old-style archive from a shared archive.
18381
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18383
# Create a temporary old-style archive to link instead of a shared archive.
18384
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18386
# Commands used to build and install a shared archive.
18387
archive_cmds=$lt_archive_cmds_RC
18388
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18389
postinstall_cmds=$lt_postinstall_cmds
18390
postuninstall_cmds=$lt_postuninstall_cmds
18392
# Commands used to build a loadable module (assumed same as above if empty)
18393
module_cmds=$lt_module_cmds_RC
18394
module_expsym_cmds=$lt_module_expsym_cmds_RC
18396
# Commands to strip libraries.
18397
old_striplib=$lt_old_striplib
18398
striplib=$lt_striplib
18400
# Dependencies to place before the objects being linked to create a
18402
predep_objects=$lt_predep_objects_RC
18404
# Dependencies to place after the objects being linked to create a
18406
postdep_objects=$lt_postdep_objects_RC
18408
# Dependencies to place before the objects being linked to create a
18410
predeps=$lt_predeps_RC
18412
# Dependencies to place after the objects being linked to create a
18414
postdeps=$lt_postdeps_RC
18416
# The library search path used internally by the compiler when linking
18417
# a shared library.
18418
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18420
# Method to check whether dependent libraries are shared objects.
18421
deplibs_check_method=$lt_deplibs_check_method
18423
# Command to use when deplibs_check_method == file_magic.
18424
file_magic_cmd=$lt_file_magic_cmd
18426
# Flag that allows shared libraries with undefined symbols to be built.
18427
allow_undefined_flag=$lt_allow_undefined_flag_RC
18429
# Flag that forces no undefined symbols.
18430
no_undefined_flag=$lt_no_undefined_flag_RC
18432
# Commands used to finish a libtool library installation in a directory.
18433
finish_cmds=$lt_finish_cmds
18435
# Same as above, but a single script fragment to be evaled but not shown.
18436
finish_eval=$lt_finish_eval
18438
# Take the output of nm and produce a listing of raw symbols and C names.
18439
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18441
# Transform the output of nm in a proper C declaration
18442
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18444
# Transform the output of nm in a C name address pair
18445
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18447
# This is the shared library runtime path variable.
18448
runpath_var=$runpath_var
18450
# This is the shared library path variable.
18451
shlibpath_var=$shlibpath_var
18453
# Is shlibpath searched before the hard-coded library search path?
18454
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18456
# How to hardcode a shared library path into an executable.
18457
hardcode_action=$hardcode_action_RC
18459
# Whether we should hardcode library paths into libraries.
18460
hardcode_into_libs=$hardcode_into_libs
18462
# Flag to hardcode \$libdir into a binary during linking.
18463
# This must work even if \$libdir does not exist.
18464
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18466
# If ld is used when linking, flag to hardcode \$libdir into
18467
# a binary during linking. This must work even if \$libdir does
18469
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18471
# Whether we need a single -rpath flag with a separated argument.
18472
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18474
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18475
# resulting binary.
18476
hardcode_direct=$hardcode_direct_RC
18478
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18479
# resulting binary.
18480
hardcode_minus_L=$hardcode_minus_L_RC
18482
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18483
# the resulting binary.
18484
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18486
# Set to yes if building a shared library automatically hardcodes DIR into the library
18487
# and all subsequent libraries and executables linked against it.
18488
hardcode_automatic=$hardcode_automatic_RC
18490
# Variables whose values should be saved in libtool wrapper scripts and
18491
# restored at relink time.
18492
variables_saved_for_relink="$variables_saved_for_relink"
18494
# Whether libtool must link a program against all its dependency libraries.
18495
link_all_deplibs=$link_all_deplibs_RC
18497
# Compile-time system search path for libraries
18498
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18500
# Run-time system search path for libraries
18501
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18503
# Fix the shell variable \$srcfile for the compiler.
18504
fix_srcfile_path="$fix_srcfile_path_RC"
18506
# Set to yes if exported symbols are required.
18507
always_export_symbols=$always_export_symbols_RC
18509
# The commands to list exported symbols.
18510
export_symbols_cmds=$lt_export_symbols_cmds_RC
18512
# The commands to extract the exported symbol list from a shared archive.
18513
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18515
# Symbols that should not be listed in the preloaded symbols.
18516
exclude_expsyms=$lt_exclude_expsyms_RC
18518
# Symbols that must always be exported.
18519
include_expsyms=$lt_include_expsyms_RC
18521
# ### END LIBTOOL TAG CONFIG: $tagname
18527
# If there is no Makefile yet, we rely on a make rule to execute
18528
# `config.status --recheck' to rerun these tests and create the
18529
# libtool script then.
18530
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18531
if test -f "$ltmain_in"; then
18532
test -f Makefile && make "$ltmain"
18538
ac_cpp='$CPP $CPPFLAGS'
18539
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18540
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18541
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18548
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18549
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18550
{ (exit 1); exit 1; }; }
18554
# Append the new tag name to the list of available tags.
18555
if test -n "$tagname" ; then
18556
available_tags="$available_tags $tagname"
18562
# Now substitute the updated list of available tags.
18563
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18564
mv "${ofile}T" "$ofile"
18568
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18569
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18570
{ (exit 1); exit 1; }; }
18576
# This can be used to rebuild libtool when needed
18577
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18579
# Always use our own libtool.
18580
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18582
# Prevent multiple expansion
18604
echo "$as_me:$LINENO: checking for library containing strerror" >&5
18605
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
18606
if test "${ac_cv_search_strerror+set}" = set; then
18607
echo $ECHO_N "(cached) $ECHO_C" >&6
18609
ac_func_search_save_LIBS=$LIBS
18610
ac_cv_search_strerror=no
18611
cat >conftest.$ac_ext <<_ACEOF
18614
cat confdefs.h >>conftest.$ac_ext
18615
cat >>conftest.$ac_ext <<_ACEOF
18616
/* end confdefs.h. */
18618
/* Override any gcc2 internal prototype to avoid an error. */
18622
/* We use char because int might match the return type of a gcc2
18623
builtin and then its argument prototype would still apply. */
18633
rm -f conftest.$ac_objext conftest$ac_exeext
18634
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18635
(eval $ac_link) 2>conftest.er1
18637
grep -v '^ *+' conftest.er1 >conftest.err
18639
cat conftest.err >&5
18640
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641
(exit $ac_status); } &&
18642
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18643
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18644
(eval $ac_try) 2>&5
18646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647
(exit $ac_status); }; } &&
18648
{ ac_try='test -s conftest$ac_exeext'
18649
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18650
(eval $ac_try) 2>&5
18652
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653
(exit $ac_status); }; }; then
18654
ac_cv_search_strerror="none required"
18656
echo "$as_me: failed program was:" >&5
18657
sed 's/^/| /' conftest.$ac_ext >&5
18660
rm -f conftest.err conftest.$ac_objext \
18661
conftest$ac_exeext conftest.$ac_ext
18662
if test "$ac_cv_search_strerror" = no; then
18663
for ac_lib in cposix; do
18664
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18665
cat >conftest.$ac_ext <<_ACEOF
18668
cat confdefs.h >>conftest.$ac_ext
18669
cat >>conftest.$ac_ext <<_ACEOF
18670
/* end confdefs.h. */
18672
/* Override any gcc2 internal prototype to avoid an error. */
18676
/* We use char because int might match the return type of a gcc2
18677
builtin and then its argument prototype would still apply. */
18687
rm -f conftest.$ac_objext conftest$ac_exeext
18688
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18689
(eval $ac_link) 2>conftest.er1
18691
grep -v '^ *+' conftest.er1 >conftest.err
18693
cat conftest.err >&5
18694
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695
(exit $ac_status); } &&
18696
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18697
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18698
(eval $ac_try) 2>&5
18700
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701
(exit $ac_status); }; } &&
18702
{ ac_try='test -s conftest$ac_exeext'
18703
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18704
(eval $ac_try) 2>&5
18706
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707
(exit $ac_status); }; }; then
18708
ac_cv_search_strerror="-l$ac_lib"
18711
echo "$as_me: failed program was:" >&5
18712
sed 's/^/| /' conftest.$ac_ext >&5
18715
rm -f conftest.err conftest.$ac_objext \
18716
conftest$ac_exeext conftest.$ac_ext
18719
LIBS=$ac_func_search_save_LIBS
18721
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
18722
echo "${ECHO_T}$ac_cv_search_strerror" >&6
18723
if test "$ac_cv_search_strerror" != no; then
18724
test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
18729
ac_cpp='$CPP $CPPFLAGS'
18730
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18731
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18732
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18733
if test -n "$ac_tool_prefix"; then
18734
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18735
set dummy ${ac_tool_prefix}gcc; ac_word=$2
18736
echo "$as_me:$LINENO: checking for $ac_word" >&5
18737
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18738
if test "${ac_cv_prog_CC+set}" = set; then
18739
echo $ECHO_N "(cached) $ECHO_C" >&6
18741
if test -n "$CC"; then
18742
ac_cv_prog_CC="$CC" # Let the user override the test.
18744
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18745
for as_dir in $PATH
18748
test -z "$as_dir" && as_dir=.
18749
for ac_exec_ext in '' $ac_executable_extensions; do
18750
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18751
ac_cv_prog_CC="${ac_tool_prefix}gcc"
18752
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18761
if test -n "$CC"; then
18762
echo "$as_me:$LINENO: result: $CC" >&5
18763
echo "${ECHO_T}$CC" >&6
18765
echo "$as_me:$LINENO: result: no" >&5
18766
echo "${ECHO_T}no" >&6
18770
if test -z "$ac_cv_prog_CC"; then
18772
# Extract the first word of "gcc", so it can be a program name with args.
18773
set dummy gcc; ac_word=$2
18774
echo "$as_me:$LINENO: checking for $ac_word" >&5
18775
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18776
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18777
echo $ECHO_N "(cached) $ECHO_C" >&6
18779
if test -n "$ac_ct_CC"; then
18780
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18782
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18783
for as_dir in $PATH
18786
test -z "$as_dir" && as_dir=.
18787
for ac_exec_ext in '' $ac_executable_extensions; do
18788
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18789
ac_cv_prog_ac_ct_CC="gcc"
18790
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18798
ac_ct_CC=$ac_cv_prog_ac_ct_CC
18799
if test -n "$ac_ct_CC"; then
18800
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18801
echo "${ECHO_T}$ac_ct_CC" >&6
18803
echo "$as_me:$LINENO: result: no" >&5
18804
echo "${ECHO_T}no" >&6
18809
CC="$ac_cv_prog_CC"
18812
if test -z "$CC"; then
18813
if test -n "$ac_tool_prefix"; then
18814
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18815
set dummy ${ac_tool_prefix}cc; ac_word=$2
18816
echo "$as_me:$LINENO: checking for $ac_word" >&5
18817
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18818
if test "${ac_cv_prog_CC+set}" = set; then
18819
echo $ECHO_N "(cached) $ECHO_C" >&6
18821
if test -n "$CC"; then
18822
ac_cv_prog_CC="$CC" # Let the user override the test.
18824
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18825
for as_dir in $PATH
18828
test -z "$as_dir" && as_dir=.
18829
for ac_exec_ext in '' $ac_executable_extensions; do
18830
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18831
ac_cv_prog_CC="${ac_tool_prefix}cc"
18832
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18841
if test -n "$CC"; then
18842
echo "$as_me:$LINENO: result: $CC" >&5
18843
echo "${ECHO_T}$CC" >&6
18845
echo "$as_me:$LINENO: result: no" >&5
18846
echo "${ECHO_T}no" >&6
18850
if test -z "$ac_cv_prog_CC"; then
18852
# Extract the first word of "cc", so it can be a program name with args.
18853
set dummy cc; ac_word=$2
18854
echo "$as_me:$LINENO: checking for $ac_word" >&5
18855
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18856
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18857
echo $ECHO_N "(cached) $ECHO_C" >&6
18859
if test -n "$ac_ct_CC"; then
18860
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18862
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18863
for as_dir in $PATH
18866
test -z "$as_dir" && as_dir=.
18867
for ac_exec_ext in '' $ac_executable_extensions; do
18868
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18869
ac_cv_prog_ac_ct_CC="cc"
18870
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18878
ac_ct_CC=$ac_cv_prog_ac_ct_CC
18879
if test -n "$ac_ct_CC"; then
18880
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18881
echo "${ECHO_T}$ac_ct_CC" >&6
18883
echo "$as_me:$LINENO: result: no" >&5
18884
echo "${ECHO_T}no" >&6
18889
CC="$ac_cv_prog_CC"
18893
if test -z "$CC"; then
18894
# Extract the first word of "cc", so it can be a program name with args.
18895
set dummy cc; ac_word=$2
18896
echo "$as_me:$LINENO: checking for $ac_word" >&5
18897
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18898
if test "${ac_cv_prog_CC+set}" = set; then
18899
echo $ECHO_N "(cached) $ECHO_C" >&6
18901
if test -n "$CC"; then
18902
ac_cv_prog_CC="$CC" # Let the user override the test.
18904
ac_prog_rejected=no
18905
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18906
for as_dir in $PATH
18909
test -z "$as_dir" && as_dir=.
18910
for ac_exec_ext in '' $ac_executable_extensions; do
18911
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18912
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18913
ac_prog_rejected=yes
18917
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18923
if test $ac_prog_rejected = yes; then
18924
# We found a bogon in the path, so make sure we never use it.
18925
set dummy $ac_cv_prog_CC
18927
if test $# != 0; then
18928
# We chose a different compiler from the bogus one.
18929
# However, it has the same basename, so the bogon will be chosen
18930
# first if we set CC to just the basename; use the full file name.
18932
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18938
if test -n "$CC"; then
18939
echo "$as_me:$LINENO: result: $CC" >&5
18940
echo "${ECHO_T}$CC" >&6
18942
echo "$as_me:$LINENO: result: no" >&5
18943
echo "${ECHO_T}no" >&6
18947
if test -z "$CC"; then
18948
if test -n "$ac_tool_prefix"; then
18951
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18952
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18953
echo "$as_me:$LINENO: checking for $ac_word" >&5
18954
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18955
if test "${ac_cv_prog_CC+set}" = set; then
18956
echo $ECHO_N "(cached) $ECHO_C" >&6
18958
if test -n "$CC"; then
18959
ac_cv_prog_CC="$CC" # Let the user override the test.
18961
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18962
for as_dir in $PATH
18965
test -z "$as_dir" && as_dir=.
18966
for ac_exec_ext in '' $ac_executable_extensions; do
18967
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18968
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18969
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18978
if test -n "$CC"; then
18979
echo "$as_me:$LINENO: result: $CC" >&5
18980
echo "${ECHO_T}$CC" >&6
18982
echo "$as_me:$LINENO: result: no" >&5
18983
echo "${ECHO_T}no" >&6
18986
test -n "$CC" && break
18989
if test -z "$CC"; then
18993
# Extract the first word of "$ac_prog", so it can be a program name with args.
18994
set dummy $ac_prog; ac_word=$2
18995
echo "$as_me:$LINENO: checking for $ac_word" >&5
18996
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18997
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18998
echo $ECHO_N "(cached) $ECHO_C" >&6
19000
if test -n "$ac_ct_CC"; then
19001
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19003
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19004
for as_dir in $PATH
19007
test -z "$as_dir" && as_dir=.
19008
for ac_exec_ext in '' $ac_executable_extensions; do
19009
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19010
ac_cv_prog_ac_ct_CC="$ac_prog"
19011
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19019
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19020
if test -n "$ac_ct_CC"; then
19021
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19022
echo "${ECHO_T}$ac_ct_CC" >&6
19024
echo "$as_me:$LINENO: result: no" >&5
19025
echo "${ECHO_T}no" >&6
19028
test -n "$ac_ct_CC" && break
19037
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19038
See \`config.log' for more details." >&5
19039
echo "$as_me: error: no acceptable C compiler found in \$PATH
19040
See \`config.log' for more details." >&2;}
19041
{ (exit 1); exit 1; }; }
19043
# Provide some information about the compiler.
19044
echo "$as_me:$LINENO:" \
19045
"checking for C compiler version" >&5
19046
ac_compiler=`set X $ac_compile; echo $2`
19047
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19048
(eval $ac_compiler --version </dev/null >&5) 2>&5
19050
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051
(exit $ac_status); }
19052
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19053
(eval $ac_compiler -v </dev/null >&5) 2>&5
19055
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056
(exit $ac_status); }
19057
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19058
(eval $ac_compiler -V </dev/null >&5) 2>&5
19060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061
(exit $ac_status); }
19063
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19064
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19065
if test "${ac_cv_c_compiler_gnu+set}" = set; then
19066
echo $ECHO_N "(cached) $ECHO_C" >&6
19068
cat >conftest.$ac_ext <<_ACEOF
19071
cat confdefs.h >>conftest.$ac_ext
19072
cat >>conftest.$ac_ext <<_ACEOF
19073
/* end confdefs.h. */
19086
rm -f conftest.$ac_objext
19087
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19088
(eval $ac_compile) 2>conftest.er1
19090
grep -v '^ *+' conftest.er1 >conftest.err
19092
cat conftest.err >&5
19093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094
(exit $ac_status); } &&
19095
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19096
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19097
(eval $ac_try) 2>&5
19099
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100
(exit $ac_status); }; } &&
19101
{ ac_try='test -s conftest.$ac_objext'
19102
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19103
(eval $ac_try) 2>&5
19105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106
(exit $ac_status); }; }; then
19107
ac_compiler_gnu=yes
19109
echo "$as_me: failed program was:" >&5
19110
sed 's/^/| /' conftest.$ac_ext >&5
19114
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19115
ac_cv_c_compiler_gnu=$ac_compiler_gnu
19118
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19119
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19120
GCC=`test $ac_compiler_gnu = yes && echo yes`
19121
ac_test_CFLAGS=${CFLAGS+set}
19122
ac_save_CFLAGS=$CFLAGS
19124
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19125
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19126
if test "${ac_cv_prog_cc_g+set}" = set; then
19127
echo $ECHO_N "(cached) $ECHO_C" >&6
19129
cat >conftest.$ac_ext <<_ACEOF
19132
cat confdefs.h >>conftest.$ac_ext
19133
cat >>conftest.$ac_ext <<_ACEOF
19134
/* end confdefs.h. */
19144
rm -f conftest.$ac_objext
19145
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19146
(eval $ac_compile) 2>conftest.er1
19148
grep -v '^ *+' conftest.er1 >conftest.err
19150
cat conftest.err >&5
19151
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152
(exit $ac_status); } &&
19153
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19154
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19155
(eval $ac_try) 2>&5
19157
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158
(exit $ac_status); }; } &&
19159
{ ac_try='test -s conftest.$ac_objext'
19160
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19161
(eval $ac_try) 2>&5
19163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164
(exit $ac_status); }; }; then
19165
ac_cv_prog_cc_g=yes
19167
echo "$as_me: failed program was:" >&5
19168
sed 's/^/| /' conftest.$ac_ext >&5
19172
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19174
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19175
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19176
if test "$ac_test_CFLAGS" = set; then
19177
CFLAGS=$ac_save_CFLAGS
19178
elif test $ac_cv_prog_cc_g = yes; then
19179
if test "$GCC" = yes; then
19185
if test "$GCC" = yes; then
19191
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19192
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19193
if test "${ac_cv_prog_cc_stdc+set}" = set; then
19194
echo $ECHO_N "(cached) $ECHO_C" >&6
19196
ac_cv_prog_cc_stdc=no
19198
cat >conftest.$ac_ext <<_ACEOF
19201
cat confdefs.h >>conftest.$ac_ext
19202
cat >>conftest.$ac_ext <<_ACEOF
19203
/* end confdefs.h. */
19204
#include <stdarg.h>
19206
#include <sys/types.h>
19207
#include <sys/stat.h>
19208
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19209
struct buf { int x; };
19210
FILE * (*rcsopen) (struct buf *, struct stat *, int);
19211
static char *e (p, i)
19217
static char *f (char * (*g) (char **, int), char **p, ...)
19222
s = g (p, va_arg (v,int));
19227
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19228
function prototypes and stuff, but not '\xHH' hex character constants.
19229
These don't provoke an error unfortunately, instead are silently treated
19230
as 'x'. The following induces an error, until -std1 is added to get
19231
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19232
array size at least. It's necessary to write '\x00'==0 to get something
19233
that's true only with -std1. */
19234
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19236
int test (int i, double x);
19237
struct s1 {int (*f) (int a);};
19238
struct s2 {int (*f) (double a);};
19239
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19245
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19250
# Don't try gcc -ansi; that turns off useful extensions and
19251
# breaks some systems' header files.
19252
# AIX -qlanglvl=ansi
19253
# Ultrix and OSF/1 -std1
19254
# HP-UX 10.20 and later -Ae
19255
# HP-UX older versions -Aa -D_HPUX_SOURCE
19256
# SVR4 -Xc -D__EXTENSIONS__
19257
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19259
CC="$ac_save_CC $ac_arg"
19260
rm -f conftest.$ac_objext
19261
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19262
(eval $ac_compile) 2>conftest.er1
19264
grep -v '^ *+' conftest.er1 >conftest.err
19266
cat conftest.err >&5
19267
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268
(exit $ac_status); } &&
19269
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19270
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19271
(eval $ac_try) 2>&5
19273
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274
(exit $ac_status); }; } &&
19275
{ ac_try='test -s conftest.$ac_objext'
19276
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19277
(eval $ac_try) 2>&5
19279
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280
(exit $ac_status); }; }; then
19281
ac_cv_prog_cc_stdc=$ac_arg
19284
echo "$as_me: failed program was:" >&5
19285
sed 's/^/| /' conftest.$ac_ext >&5
19288
rm -f conftest.err conftest.$ac_objext
19290
rm -f conftest.$ac_ext conftest.$ac_objext
19295
case "x$ac_cv_prog_cc_stdc" in
19297
echo "$as_me:$LINENO: result: none needed" >&5
19298
echo "${ECHO_T}none needed" >&6 ;;
19300
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19301
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19302
CC="$CC $ac_cv_prog_cc_stdc" ;;
19305
# Some people use a C++ compiler to compile C. Since we use `exit',
19306
# in C++ we need to declare it. In case someone uses the same compiler
19307
# for both compiling C and C++ we need to have the C++ compiler decide
19308
# the declaration of exit, since it's the most demanding environment.
19309
cat >conftest.$ac_ext <<_ACEOF
19310
#ifndef __cplusplus
19314
rm -f conftest.$ac_objext
19315
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19316
(eval $ac_compile) 2>conftest.er1
19318
grep -v '^ *+' conftest.er1 >conftest.err
19320
cat conftest.err >&5
19321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322
(exit $ac_status); } &&
19323
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19324
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325
(eval $ac_try) 2>&5
19327
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328
(exit $ac_status); }; } &&
19329
{ ac_try='test -s conftest.$ac_objext'
19330
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19331
(eval $ac_try) 2>&5
19333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334
(exit $ac_status); }; }; then
19335
for ac_declaration in \
19337
'extern "C" void std::exit (int) throw (); using std::exit;' \
19338
'extern "C" void std::exit (int); using std::exit;' \
19339
'extern "C" void exit (int) throw ();' \
19340
'extern "C" void exit (int);' \
19343
cat >conftest.$ac_ext <<_ACEOF
19346
cat confdefs.h >>conftest.$ac_ext
19347
cat >>conftest.$ac_ext <<_ACEOF
19348
/* end confdefs.h. */
19350
#include <stdlib.h>
19359
rm -f conftest.$ac_objext
19360
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19361
(eval $ac_compile) 2>conftest.er1
19363
grep -v '^ *+' conftest.er1 >conftest.err
19365
cat conftest.err >&5
19366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367
(exit $ac_status); } &&
19368
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19369
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370
(eval $ac_try) 2>&5
19372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373
(exit $ac_status); }; } &&
19374
{ ac_try='test -s conftest.$ac_objext'
19375
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19376
(eval $ac_try) 2>&5
19378
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379
(exit $ac_status); }; }; then
19382
echo "$as_me: failed program was:" >&5
19383
sed 's/^/| /' conftest.$ac_ext >&5
19387
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19388
cat >conftest.$ac_ext <<_ACEOF
19391
cat confdefs.h >>conftest.$ac_ext
19392
cat >>conftest.$ac_ext <<_ACEOF
19393
/* end confdefs.h. */
19403
rm -f conftest.$ac_objext
19404
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19405
(eval $ac_compile) 2>conftest.er1
19407
grep -v '^ *+' conftest.er1 >conftest.err
19409
cat conftest.err >&5
19410
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411
(exit $ac_status); } &&
19412
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19413
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19414
(eval $ac_try) 2>&5
19416
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417
(exit $ac_status); }; } &&
19418
{ ac_try='test -s conftest.$ac_objext'
19419
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19420
(eval $ac_try) 2>&5
19422
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423
(exit $ac_status); }; }; then
19426
echo "$as_me: failed program was:" >&5
19427
sed 's/^/| /' conftest.$ac_ext >&5
19430
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19433
if test -n "$ac_declaration"; then
19434
echo '#ifdef __cplusplus' >>confdefs.h
19435
echo $ac_declaration >>confdefs.h
19436
echo '#endif' >>confdefs.h
19440
echo "$as_me: failed program was:" >&5
19441
sed 's/^/| /' conftest.$ac_ext >&5
19444
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19446
ac_cpp='$CPP $CPPFLAGS'
19447
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19448
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19449
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19451
depcc="$CC" am_compiler_list=
19453
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19454
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19455
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19456
echo $ECHO_N "(cached) $ECHO_C" >&6
19458
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19459
# We make a subdir and do the tests there. Otherwise we can end up
19460
# making bogus files that we don't know about and never remove. For
19461
# instance it was reported that on HP-UX the gcc test will end up
19462
# making a dummy file named `D' -- because `-MD' means `put the output
19465
# Copy depcomp to subdir because otherwise we won't find it if we're
19466
# using a relative directory.
19467
cp "$am_depcomp" conftest.dir
19469
# We will build objects and dependencies in a subdirectory because
19470
# it helps to detect inapplicable dependency modes. For instance
19471
# both Tru64's cc and ICC support -MD to output dependencies as a
19472
# side effect of compilation, but ICC will put the dependencies in
19473
# the current directory while Tru64 will put them in the object
19477
am_cv_CC_dependencies_compiler_type=none
19478
if test "$am_compiler_list" = ""; then
19479
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19481
for depmode in $am_compiler_list; do
19482
# Setup a source with many dependencies, because some compilers
19483
# like to wrap large dependency lists on column 80 (with \), and
19484
# we should not choose a depcomp mode which is confused by this.
19486
# We need to recreate these files for each test, as the compiler may
19487
# overwrite some of them when testing with obscure command lines.
19488
# This happens at least with the AIX C compiler.
19490
for i in 1 2 3 4 5 6; do
19491
echo '#include "conftst'$i'.h"' >> sub/conftest.c
19492
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19493
# Solaris 8's {/usr,}/bin/sh.
19494
touch sub/conftst$i.h
19496
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19500
# after this tag, mechanisms are not by side-effect, so they'll
19501
# only be used when explicitly requested
19502
if test "x$enable_dependency_tracking" = xyes; then
19510
# We check with `-c' and `-o' for the sake of the "dashmstdout"
19511
# mode. It turns out that the SunPro C++ compiler does not properly
19512
# handle `-M -o', and we need to detect this.
19513
if depmode=$depmode \
19514
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19515
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19516
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19517
>/dev/null 2>conftest.err &&
19518
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19519
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19520
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19521
# icc doesn't choke on unknown options, it will just issue warnings
19522
# or remarks (even with -Werror). So we grep stderr for any message
19523
# that says an option was ignored or not supported.
19524
# When given -MP, icc 7.0 and 7.1 complain thusly:
19525
# icc: Command line warning: ignoring option '-M'; no argument required
19526
# The diagnosis changed in icc 8.0:
19527
# icc: Command line remark: option '-MP' not supported
19528
if (grep 'ignoring option' conftest.err ||
19529
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19530
am_cv_CC_dependencies_compiler_type=$depmode
19537
rm -rf conftest.dir
19539
am_cv_CC_dependencies_compiler_type=none
19543
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19544
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19545
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19550
test "x$enable_dependency_tracking" != xno \
19551
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19552
am__fastdepCC_TRUE=
19553
am__fastdepCC_FALSE='#'
19555
am__fastdepCC_TRUE='#'
19556
am__fastdepCC_FALSE=
19560
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19561
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19562
if test "${ac_cv_header_stdc+set}" = set; then
19563
echo $ECHO_N "(cached) $ECHO_C" >&6
19565
cat >conftest.$ac_ext <<_ACEOF
19568
cat confdefs.h >>conftest.$ac_ext
19569
cat >>conftest.$ac_ext <<_ACEOF
19570
/* end confdefs.h. */
19571
#include <stdlib.h>
19572
#include <stdarg.h>
19573
#include <string.h>
19584
rm -f conftest.$ac_objext
19585
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19586
(eval $ac_compile) 2>conftest.er1
19588
grep -v '^ *+' conftest.er1 >conftest.err
19590
cat conftest.err >&5
19591
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592
(exit $ac_status); } &&
19593
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19594
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19595
(eval $ac_try) 2>&5
19597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598
(exit $ac_status); }; } &&
19599
{ ac_try='test -s conftest.$ac_objext'
19600
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19601
(eval $ac_try) 2>&5
19603
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604
(exit $ac_status); }; }; then
19605
ac_cv_header_stdc=yes
19607
echo "$as_me: failed program was:" >&5
19608
sed 's/^/| /' conftest.$ac_ext >&5
19610
ac_cv_header_stdc=no
19612
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19614
if test $ac_cv_header_stdc = yes; then
19615
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19616
cat >conftest.$ac_ext <<_ACEOF
19619
cat confdefs.h >>conftest.$ac_ext
19620
cat >>conftest.$ac_ext <<_ACEOF
19621
/* end confdefs.h. */
19622
#include <string.h>
19625
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19626
$EGREP "memchr" >/dev/null 2>&1; then
19629
ac_cv_header_stdc=no
19635
if test $ac_cv_header_stdc = yes; then
19636
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19637
cat >conftest.$ac_ext <<_ACEOF
19640
cat confdefs.h >>conftest.$ac_ext
19641
cat >>conftest.$ac_ext <<_ACEOF
19642
/* end confdefs.h. */
19643
#include <stdlib.h>
19646
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19647
$EGREP "free" >/dev/null 2>&1; then
19650
ac_cv_header_stdc=no
19656
if test $ac_cv_header_stdc = yes; then
19657
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19658
if test "$cross_compiling" = yes; then
19661
cat >conftest.$ac_ext <<_ACEOF
19664
cat confdefs.h >>conftest.$ac_ext
19665
cat >>conftest.$ac_ext <<_ACEOF
19666
/* end confdefs.h. */
19668
#if ((' ' & 0x0FF) == 0x020)
19669
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19670
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19672
# define ISLOWER(c) \
19673
(('a' <= (c) && (c) <= 'i') \
19674
|| ('j' <= (c) && (c) <= 'r') \
19675
|| ('s' <= (c) && (c) <= 'z'))
19676
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19679
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19684
for (i = 0; i < 256; i++)
19685
if (XOR (islower (i), ISLOWER (i))
19686
|| toupper (i) != TOUPPER (i))
19691
rm -f conftest$ac_exeext
19692
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19693
(eval $ac_link) 2>&5
19695
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19697
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698
(eval $ac_try) 2>&5
19700
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701
(exit $ac_status); }; }; then
19704
echo "$as_me: program exited with status $ac_status" >&5
19705
echo "$as_me: failed program was:" >&5
19706
sed 's/^/| /' conftest.$ac_ext >&5
19708
( exit $ac_status )
19709
ac_cv_header_stdc=no
19711
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19715
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19716
echo "${ECHO_T}$ac_cv_header_stdc" >&6
19717
if test $ac_cv_header_stdc = yes; then
19719
cat >>confdefs.h <<\_ACEOF
19720
#define STDC_HEADERS 1
19725
# Find a good install program. We prefer a C program (faster),
19726
# so one script is as good as another. But avoid the broken or
19727
# incompatible versions:
19728
# SysV /etc/install, /usr/sbin/install
19729
# SunOS /usr/etc/install
19730
# IRIX /sbin/install
19732
# AmigaOS /C/install, which installs bootblocks on floppy discs
19733
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19734
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
19735
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19736
# OS/2's system install, which has a completely different semantic
19737
# ./install, which can be erroneously created by make from ./install.sh.
19738
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19739
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
19740
if test -z "$INSTALL"; then
19741
if test "${ac_cv_path_install+set}" = set; then
19742
echo $ECHO_N "(cached) $ECHO_C" >&6
19744
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19745
for as_dir in $PATH
19748
test -z "$as_dir" && as_dir=.
19749
# Account for people who put trailing slashes in PATH elements.
19751
./ | .// | /cC/* | \
19752
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19753
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19756
# OSF1 and SCO ODT 3.0 have their own names for install.
19757
# Don't use installbsd from OSF since it installs stuff as root
19759
for ac_prog in ginstall scoinst install; do
19760
for ac_exec_ext in '' $ac_executable_extensions; do
19761
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
19762
if test $ac_prog = install &&
19763
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19764
# AIX install. It has an incompatible calling convention.
19766
elif test $ac_prog = install &&
19767
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19768
# program-specific install script used by HP pwplus--don't use.
19771
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19783
if test "${ac_cv_path_install+set}" = set; then
19784
INSTALL=$ac_cv_path_install
19786
# As a last resort, use the slow shell script. We don't cache a
19787
# path for INSTALL within a source directory, because that will
19788
# break other packages using the cache if that directory is
19789
# removed, or if the path is relative.
19790
INSTALL=$ac_install_sh
19793
echo "$as_me:$LINENO: result: $INSTALL" >&5
19794
echo "${ECHO_T}$INSTALL" >&6
19796
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19797
# It thinks the first close brace ends the variable substitution.
19798
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19800
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19802
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19804
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19805
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19806
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19807
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19808
echo $ECHO_N "(cached) $ECHO_C" >&6
19810
cat >conftest.make <<\_ACEOF
19812
@echo 'ac_maketemp="$(MAKE)"'
19814
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19815
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19816
if test -n "$ac_maketemp"; then
19817
eval ac_cv_prog_make_${ac_make}_set=yes
19819
eval ac_cv_prog_make_${ac_make}_set=no
19821
rm -f conftest.make
19823
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19824
echo "$as_me:$LINENO: result: yes" >&5
19825
echo "${ECHO_T}yes" >&6
19828
echo "$as_me:$LINENO: result: no" >&5
19829
echo "${ECHO_T}no" >&6
19830
SET_MAKE="MAKE=${MAKE-make}"
19834
# Extract the first word of "glib-genmarshal", so it can be a program name with args.
19835
set dummy glib-genmarshal; ac_word=$2
19836
echo "$as_me:$LINENO: checking for $ac_word" >&5
19837
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19838
if test "${ac_cv_path_GLIB_GENMARSHAL+set}" = set; then
19839
echo $ECHO_N "(cached) $ECHO_C" >&6
19841
case $GLIB_GENMARSHAL in
19843
ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path.
19846
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19847
for as_dir in $PATH
19850
test -z "$as_dir" && as_dir=.
19851
for ac_exec_ext in '' $ac_executable_extensions; do
19852
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19853
ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext"
19854
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19863
GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL
19865
if test -n "$GLIB_GENMARSHAL"; then
19866
echo "$as_me:$LINENO: result: $GLIB_GENMARSHAL" >&5
19867
echo "${ECHO_T}$GLIB_GENMARSHAL" >&6
19869
echo "$as_me:$LINENO: result: no" >&5
19870
echo "${ECHO_T}no" >&6
19876
# Check whether --enable-gtktest or --disable-gtktest was given.
19877
if test "${enable_gtktest+set}" = set; then
19878
enableval="$enable_gtktest"
19884
pkg_config_args=gtk+-2.0
19889
pkg_config_args="$pkg_config_args gthread-2.0"
19896
# Extract the first word of "pkg-config", so it can be a program name with args.
19897
set dummy pkg-config; ac_word=$2
19898
echo "$as_me:$LINENO: checking for $ac_word" >&5
19899
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19900
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19901
echo $ECHO_N "(cached) $ECHO_C" >&6
19903
case $PKG_CONFIG in
19905
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19908
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19909
for as_dir in $PATH
19912
test -z "$as_dir" && as_dir=.
19913
for ac_exec_ext in '' $ac_executable_extensions; do
19914
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19915
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19916
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19922
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19926
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19928
if test -n "$PKG_CONFIG"; then
19929
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19930
echo "${ECHO_T}$PKG_CONFIG" >&6
19932
echo "$as_me:$LINENO: result: no" >&5
19933
echo "${ECHO_T}no" >&6
19937
if test x$PKG_CONFIG != xno ; then
19938
if pkg-config --atleast-pkgconfig-version 0.7 ; then
19941
echo "*** pkg-config too old; version 0.7 or better required."
19949
min_gtk_version=$GTK_REQUIRED
19950
echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
19951
echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
19953
if test x$PKG_CONFIG != xno ; then
19954
## don't try to run the test against uninstalled libtool libs
19955
if $PKG_CONFIG --uninstalled $pkg_config_args; then
19956
echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
19960
if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
19967
if test x"$no_gtk" = x ; then
19968
GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
19969
GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
19970
gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19971
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
19972
gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19973
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
19974
gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19975
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
19976
if test "x$enable_gtktest" = "xyes" ; then
19977
ac_save_CFLAGS="$CFLAGS"
19978
ac_save_LIBS="$LIBS"
19979
CFLAGS="$CFLAGS $GTK_CFLAGS"
19980
LIBS="$GTK_LIBS $LIBS"
19982
if test "$cross_compiling" = yes; then
19983
echo $ac_n "cross compiling; assumed OK... $ac_c"
19985
cat >conftest.$ac_ext <<_ACEOF
19988
cat confdefs.h >>conftest.$ac_ext
19989
cat >>conftest.$ac_ext <<_ACEOF
19990
/* end confdefs.h. */
19992
#include <gtk/gtk.h>
19994
#include <stdlib.h>
19999
int major, minor, micro;
20002
system ("touch conf.gtktest");
20004
/* HP/UX 9 (%@#!) writes to sscanf strings */
20005
tmp_version = g_strdup("$min_gtk_version");
20006
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
20007
printf("%s, bad version string\n", "$min_gtk_version");
20011
if ((gtk_major_version != $gtk_config_major_version) ||
20012
(gtk_minor_version != $gtk_config_minor_version) ||
20013
(gtk_micro_version != $gtk_config_micro_version))
20015
printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
20016
$gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20017
gtk_major_version, gtk_minor_version, gtk_micro_version);
20018
printf ("*** was found! If pkg-config was correct, then it is best\n");
20019
printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20020
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20021
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20022
printf("*** required on your system.\n");
20023
printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
20024
printf("*** to point to the correct configuration files\n");
20026
else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20027
(gtk_minor_version != GTK_MINOR_VERSION) ||
20028
(gtk_micro_version != GTK_MICRO_VERSION))
20030
printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20031
GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20032
printf("*** library (version %d.%d.%d)\n",
20033
gtk_major_version, gtk_minor_version, gtk_micro_version);
20037
if ((gtk_major_version > major) ||
20038
((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20039
((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20045
printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20046
gtk_major_version, gtk_minor_version, gtk_micro_version);
20047
printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20048
major, minor, micro);
20049
printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20051
printf("*** If you have already installed a sufficiently new version, this error\n");
20052
printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
20053
printf("*** being found. The easiest way to fix this is to remove the old version\n");
20054
printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
20055
printf("*** correct copy of pkg-config. (In this case, you will have to\n");
20056
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20057
printf("*** so that the correct libraries are found at run-time))\n");
20064
rm -f conftest$ac_exeext
20065
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20066
(eval $ac_link) 2>&5
20068
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20070
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20071
(eval $ac_try) 2>&5
20073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074
(exit $ac_status); }; }; then
20077
echo "$as_me: program exited with status $ac_status" >&5
20078
echo "$as_me: failed program was:" >&5
20079
sed 's/^/| /' conftest.$ac_ext >&5
20081
( exit $ac_status )
20084
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20086
CFLAGS="$ac_save_CFLAGS"
20087
LIBS="$ac_save_LIBS"
20090
if test "x$no_gtk" = x ; then
20091
echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
20092
echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
20095
echo "$as_me:$LINENO: result: no" >&5
20096
echo "${ECHO_T}no" >&6
20097
if test "$PKG_CONFIG" = "no" ; then
20098
echo "*** A new enough version of pkg-config was not found."
20099
echo "*** See http://pkgconfig.sourceforge.net"
20101
if test -f conf.gtktest ; then
20104
echo "*** Could not run GTK+ test program, checking why..."
20105
ac_save_CFLAGS="$CFLAGS"
20106
ac_save_LIBS="$LIBS"
20107
CFLAGS="$CFLAGS $GTK_CFLAGS"
20108
LIBS="$LIBS $GTK_LIBS"
20109
cat >conftest.$ac_ext <<_ACEOF
20112
cat confdefs.h >>conftest.$ac_ext
20113
cat >>conftest.$ac_ext <<_ACEOF
20114
/* end confdefs.h. */
20116
#include <gtk/gtk.h>
20122
return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20127
rm -f conftest.$ac_objext conftest$ac_exeext
20128
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20129
(eval $ac_link) 2>conftest.er1
20131
grep -v '^ *+' conftest.er1 >conftest.err
20133
cat conftest.err >&5
20134
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135
(exit $ac_status); } &&
20136
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20137
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20138
(eval $ac_try) 2>&5
20140
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141
(exit $ac_status); }; } &&
20142
{ ac_try='test -s conftest$ac_exeext'
20143
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144
(eval $ac_try) 2>&5
20146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147
(exit $ac_status); }; }; then
20148
echo "*** The test program compiled, but did not run. This usually means"
20149
echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
20150
echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
20151
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20152
echo "*** to the installed location Also, make sure you have run ldconfig if that"
20153
echo "*** is required on your system"
20155
echo "*** If you have an old version installed, it is best to remove it, although"
20156
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20158
echo "$as_me: failed program was:" >&5
20159
sed 's/^/| /' conftest.$ac_ext >&5
20161
echo "*** The test program failed to compile or link. See the file config.log for the"
20162
echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
20164
rm -f conftest.err conftest.$ac_objext \
20165
conftest$ac_exeext conftest.$ac_ext
20166
CFLAGS="$ac_save_CFLAGS"
20167
LIBS="$ac_save_LIBS"
20182
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20183
if test -n "$ac_tool_prefix"; then
20184
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20185
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20186
echo "$as_me:$LINENO: checking for $ac_word" >&5
20187
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20188
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20189
echo $ECHO_N "(cached) $ECHO_C" >&6
20191
case $PKG_CONFIG in
20193
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20196
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20197
for as_dir in $PATH
20200
test -z "$as_dir" && as_dir=.
20201
for ac_exec_ext in '' $ac_executable_extensions; do
20202
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20203
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20204
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20213
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20215
if test -n "$PKG_CONFIG"; then
20216
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20217
echo "${ECHO_T}$PKG_CONFIG" >&6
20219
echo "$as_me:$LINENO: result: no" >&5
20220
echo "${ECHO_T}no" >&6
20224
if test -z "$ac_cv_path_PKG_CONFIG"; then
20225
ac_pt_PKG_CONFIG=$PKG_CONFIG
20226
# Extract the first word of "pkg-config", so it can be a program name with args.
20227
set dummy pkg-config; ac_word=$2
20228
echo "$as_me:$LINENO: checking for $ac_word" >&5
20229
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20230
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20231
echo $ECHO_N "(cached) $ECHO_C" >&6
20233
case $ac_pt_PKG_CONFIG in
20235
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20238
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20239
for as_dir in $PATH
20242
test -z "$as_dir" && as_dir=.
20243
for ac_exec_ext in '' $ac_executable_extensions; do
20244
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20245
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20246
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20255
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20257
if test -n "$ac_pt_PKG_CONFIG"; then
20258
echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20259
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
20261
echo "$as_me:$LINENO: result: no" >&5
20262
echo "${ECHO_T}no" >&6
20265
PKG_CONFIG=$ac_pt_PKG_CONFIG
20267
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20271
if test -n "$PKG_CONFIG"; then
20272
_pkg_min_version=0.9.0
20273
echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20274
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
20275
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20276
echo "$as_me:$LINENO: result: yes" >&5
20277
echo "${ECHO_T}yes" >&6
20279
echo "$as_me:$LINENO: result: no" >&5
20280
echo "${ECHO_T}no" >&6
20287
echo "$as_me:$LINENO: checking for ESPRESSO_DEPENDS" >&5
20288
echo $ECHO_N "checking for ESPRESSO_DEPENDS... $ECHO_C" >&6
20290
if test -n "$PKG_CONFIG"; then
20291
if test -n "$ESPRESSO_DEPENDS_CFLAGS"; then
20292
pkg_cv_ESPRESSO_DEPENDS_CFLAGS="$ESPRESSO_DEPENDS_CFLAGS"
20294
if test -n "$PKG_CONFIG" && \
20295
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"
20296
gtk+-2.0 >= \$GTK_REQUIRED
20299
($PKG_CONFIG --exists --print-errors "
20300
gtk+-2.0 >= $GTK_REQUIRED
20304
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305
(exit $ac_status); }; then
20306
pkg_cv_ESPRESSO_DEPENDS_CFLAGS=`$PKG_CONFIG --cflags "
20307
gtk+-2.0 >= $GTK_REQUIRED
20317
if test -n "$PKG_CONFIG"; then
20318
if test -n "$ESPRESSO_DEPENDS_LIBS"; then
20319
pkg_cv_ESPRESSO_DEPENDS_LIBS="$ESPRESSO_DEPENDS_LIBS"
20321
if test -n "$PKG_CONFIG" && \
20322
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"
20323
gtk+-2.0 >= \$GTK_REQUIRED
20326
($PKG_CONFIG --exists --print-errors "
20327
gtk+-2.0 >= $GTK_REQUIRED
20331
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332
(exit $ac_status); }; then
20333
pkg_cv_ESPRESSO_DEPENDS_LIBS=`$PKG_CONFIG --libs "
20334
gtk+-2.0 >= $GTK_REQUIRED
20347
if test $pkg_failed = yes; then
20349
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20350
_pkg_short_errors_supported=yes
20352
_pkg_short_errors_supported=no
20354
if test $_pkg_short_errors_supported = yes; then
20355
ESPRESSO_DEPENDS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "
20356
gtk+-2.0 >= $GTK_REQUIRED
20360
ESPRESSO_DEPENDS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "
20361
gtk+-2.0 >= $GTK_REQUIRED
20365
# Put the nasty error message in config.log where it belongs
20366
echo "$ESPRESSO_DEPENDS_PKG_ERRORS" >&5
20368
{ { echo "$as_me:$LINENO: error: Package requirements (
20369
gtk+-2.0 >= $GTK_REQUIRED
20373
$ESPRESSO_DEPENDS_PKG_ERRORS
20375
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20376
installed software in a non-standard prefix.
20378
Alternatively, you may set the environment variables ESPRESSO_DEPENDS_CFLAGS
20379
and ESPRESSO_DEPENDS_LIBS to avoid the need to call pkg-config.
20380
See the pkg-config man page for more details.
20382
echo "$as_me: error: Package requirements (
20383
gtk+-2.0 >= $GTK_REQUIRED
20387
$ESPRESSO_DEPENDS_PKG_ERRORS
20389
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20390
installed software in a non-standard prefix.
20392
Alternatively, you may set the environment variables ESPRESSO_DEPENDS_CFLAGS
20393
and ESPRESSO_DEPENDS_LIBS to avoid the need to call pkg-config.
20394
See the pkg-config man page for more details.
20396
{ (exit 1); exit 1; }; }
20397
elif test $pkg_failed = untried; then
20398
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20399
is in your PATH or set the PKG_CONFIG environment variable to the full
20400
path to pkg-config.
20402
Alternatively, you may set the environment variables ESPRESSO_DEPENDS_CFLAGS
20403
and ESPRESSO_DEPENDS_LIBS to avoid the need to call pkg-config.
20404
See the pkg-config man page for more details.
20406
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20407
See \`config.log' for more details." >&5
20408
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20409
is in your PATH or set the PKG_CONFIG environment variable to the full
20410
path to pkg-config.
20412
Alternatively, you may set the environment variables ESPRESSO_DEPENDS_CFLAGS
20413
and ESPRESSO_DEPENDS_LIBS to avoid the need to call pkg-config.
20414
See the pkg-config man page for more details.
20416
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20417
See \`config.log' for more details." >&2;}
20418
{ (exit 1); exit 1; }; }
20420
ESPRESSO_DEPENDS_CFLAGS=$pkg_cv_ESPRESSO_DEPENDS_CFLAGS
20421
ESPRESSO_DEPENDS_LIBS=$pkg_cv_ESPRESSO_DEPENDS_LIBS
20422
echo "$as_me:$LINENO: result: yes" >&5
20423
echo "${ECHO_T}yes" >&6
20429
if test "x${prefix}" = "xNONE"; then
20431
cat >>confdefs.h <<_ACEOF
20432
#define PIXMAPS_DIR "${ac_default_prefix}/${DATADIRNAME}/${PACKAGE}/pixmaps"
20435
pixmapsdir="${ac_default_prefix}/${DATADIRNAME}/${PACKAGE}/pixmaps"
20438
cat >>confdefs.h <<_ACEOF
20439
#define PIXMAPS_DIR "${prefix}/${DATADIRNAME}/${PACKAGE}/pixmaps"
20442
pixmapsdir="${prefix}/${DATADIRNAME}/${PACKAGE}/pixmaps"
20449
ac_config_files="$ac_config_files Makefile src/Makefile src/cut-and-paste/Makefile src/cut-and-paste/e-map/Makefile"
20450
cat >confcache <<\_ACEOF
20451
# This file is a shell script that caches the results of configure
20452
# tests run on this system so they can be shared between configure
20453
# scripts and configure runs, see configure's option --config-cache.
20454
# It is not useful on other systems. If it contains results you don't
20455
# want to keep, you may remove or edit it.
20457
# config.status only pays attention to the cache file if you give it
20458
# the --recheck option to rerun configure.
20460
# `ac_cv_env_foo' variables (set or unset) will be overridden when
20461
# loading this file, other *unset* `ac_cv_foo' will be assigned the
20462
# following values.
20466
# The following way of writing the cache mishandles newlines in values,
20467
# but we know of no workaround that is simple, portable, and efficient.
20468
# So, don't put newlines in cache variables' values.
20469
# Ultrix sh set writes to stderr and can't be redirected directly,
20470
# and sets the high bit in the cache file unless we assign to the vars.
20473
case `(ac_space=' '; set | grep ac_space) 2>&1` in
20475
# `set' does not quote correctly, so add quotes (double-quote
20476
# substitution turns \\\\ into \\, and sed turns \\ into \).
20479
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20482
# `set' quotes correctly as required by POSIX, so do not add quotes.
20484
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20491
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20493
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20495
if diff $cache_file confcache >/dev/null 2>&1; then :; else
20496
if test -w $cache_file; then
20497
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20498
cat confcache >$cache_file
20500
echo "not updating unwritable cache $cache_file"
20505
test "x$prefix" = xNONE && prefix=$ac_default_prefix
20506
# Let make expand exec_prefix.
20507
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20509
# VPATH may cause trouble with some makes, so we remove $(srcdir),
20510
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20511
# trailing colons and then remove the whole line if VPATH becomes empty
20512
# (actually we leave an empty line to preserve line numbers).
20513
if test "x$srcdir" = x.; then
20514
ac_vpsub='/^[ ]*VPATH[ ]*=/{
20515
s/:*\$(srcdir):*/:/;
20516
s/:*\${srcdir}:*/:/;
20518
s/^\([^=]*=[ ]*\):*/\1/;
20524
DEFS=-DHAVE_CONFIG_H
20528
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20529
# 1. Remove the extension, and $U if already installed.
20530
ac_i=`echo "$ac_i" |
20531
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20533
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20534
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20536
LIBOBJS=$ac_libobjs
20538
LTLIBOBJS=$ac_ltlibobjs
20541
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20542
{ { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20543
Usually this means the macro was only invoked conditionally." >&5
20544
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20545
Usually this means the macro was only invoked conditionally." >&2;}
20546
{ (exit 1); exit 1; }; }
20548
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20549
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20550
Usually this means the macro was only invoked conditionally." >&5
20551
echo "$as_me: error: conditional \"AMDEP\" was never defined.
20552
Usually this means the macro was only invoked conditionally." >&2;}
20553
{ (exit 1); exit 1; }; }
20555
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20556
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20557
Usually this means the macro was only invoked conditionally." >&5
20558
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20559
Usually this means the macro was only invoked conditionally." >&2;}
20560
{ (exit 1); exit 1; }; }
20562
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20563
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20564
Usually this means the macro was only invoked conditionally." >&5
20565
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20566
Usually this means the macro was only invoked conditionally." >&2;}
20567
{ (exit 1); exit 1; }; }
20569
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20570
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20571
Usually this means the macro was only invoked conditionally." >&5
20572
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20573
Usually this means the macro was only invoked conditionally." >&2;}
20574
{ (exit 1); exit 1; }; }
20577
: ${CONFIG_STATUS=./config.status}
20578
ac_clean_files_save=$ac_clean_files
20579
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20580
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20581
echo "$as_me: creating $CONFIG_STATUS" >&6;}
20582
cat >$CONFIG_STATUS <<_ACEOF
20584
# Generated by $as_me.
20585
# Run this file to recreate the current configuration.
20586
# Compiler output produced by configure, useful for debugging
20587
# configure, is in config.log if it exists.
20590
ac_cs_recheck=false
20592
SHELL=\${CONFIG_SHELL-$SHELL}
20595
cat >>$CONFIG_STATUS <<\_ACEOF
20596
## --------------------- ##
20597
## M4sh Initialization. ##
20598
## --------------------- ##
20600
# Be Bourne compatible
20601
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20604
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20605
# is contrary to our usage. Disable this feature.
20606
alias -g '${1+"$@"}'='"$@"'
20607
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20610
DUALCASE=1; export DUALCASE # for MKS sh
20612
# Support unset when possible.
20613
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20620
# Work around bugs in pre-3.0 UWIN ksh.
20621
$as_unset ENV MAIL MAILPATH
20628
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20629
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20630
LC_TELEPHONE LC_TIME
20632
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20633
eval $as_var=C; export $as_var
20639
# Required to use basename.
20640
if expr a : '\(a\)' >/dev/null 2>&1; then
20646
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20647
as_basename=basename
20653
# Name of the executable.
20654
as_me=`$as_basename "$0" ||
20655
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20656
X"$0" : 'X\(//\)$' \| \
20657
X"$0" : 'X\(/\)$' \| \
20658
. : '\(.\)' 2>/dev/null ||
20660
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20661
/^X\/\(\/\/\)$/{ s//\1/; q; }
20662
/^X\/\(\/\).*/{ s//\1/; q; }
20666
# PATH needs CR, and LINENO needs CR and PATH.
20667
# Avoid depending upon Character Ranges.
20668
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20669
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20670
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20671
as_cr_digits='0123456789'
20672
as_cr_alnum=$as_cr_Letters$as_cr_digits
20674
# The user is always right.
20675
if test "${PATH_SEPARATOR+set}" != set; then
20676
echo "#! /bin/sh" >conf$$.sh
20677
echo "exit 0" >>conf$$.sh
20679
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20688
as_lineno_1=$LINENO
20689
as_lineno_2=$LINENO
20690
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20691
test "x$as_lineno_1" != "x$as_lineno_2" &&
20692
test "x$as_lineno_3" = "x$as_lineno_2" || {
20693
# Find who we are. Look in the path if we contain no path at all
20696
*[\\/]* ) as_myself=$0 ;;
20697
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20698
for as_dir in $PATH
20701
test -z "$as_dir" && as_dir=.
20702
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20707
# We did not find ourselves, most probably we were run as `sh COMMAND'
20708
# in which case we are not to be found in the path.
20709
if test "x$as_myself" = x; then
20712
if test ! -f "$as_myself"; then
20713
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20714
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20715
{ (exit 1); exit 1; }; }
20717
case $CONFIG_SHELL in
20719
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20720
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20723
test -z "$as_dir" && as_dir=.
20724
for as_base in sh bash ksh sh5; do
20727
if ("$as_dir/$as_base" -c '
20728
as_lineno_1=$LINENO
20729
as_lineno_2=$LINENO
20730
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20731
test "x$as_lineno_1" != "x$as_lineno_2" &&
20732
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20733
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20734
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20735
CONFIG_SHELL=$as_dir/$as_base
20736
export CONFIG_SHELL
20737
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20745
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20746
# uniformly replaced by the line number. The first 'sed' inserts a
20747
# line-number line before each line; the second 'sed' does the real
20748
# work. The second script uses 'N' to pair each line-number line
20749
# with the numbered line, and appends trailing '-' during
20750
# substitution so that $LINENO is not a special case at line end.
20751
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20752
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20753
sed '=' <$as_myself |
20758
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20761
s,^['$as_cr_digits']*\n,,
20762
' >$as_me.lineno &&
20763
chmod +x $as_me.lineno ||
20764
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20765
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20766
{ (exit 1); exit 1; }; }
20768
# Don't try to exec as it changes $[0], causing all sort of problems
20769
# (the dirname of $[0] is not the place where we might find the
20770
# original and so on. Autoconf is especially sensible to this).
20772
# Exit status is that of the last command.
20777
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20778
*c*,-n*) ECHO_N= ECHO_C='
20780
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20781
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20784
if expr a : '\(a\)' >/dev/null 2>&1; then
20790
rm -f conf$$ conf$$.exe conf$$.file
20792
if ln -s conf$$.file conf$$ 2>/dev/null; then
20793
# We could just check for DJGPP; but this test a) works b) is more generic
20794
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20795
if test -f conf$$.exe; then
20796
# Don't use ln at all; we don't have any links
20801
elif ln conf$$.file conf$$ 2>/dev/null; then
20806
rm -f conf$$ conf$$.exe conf$$.file
20808
if mkdir -p . 2>/dev/null; then
20811
test -d ./-p && rmdir ./-p
20815
as_executable_p="test -f"
20817
# Sed expression to map a string onto a valid CPP name.
20818
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20820
# Sed expression to map a string onto a valid variable name.
20821
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20825
# We need space, tab and new line, in precisely that order.
20835
# Open the log real soon, to keep \$[0] and so on meaningful, and to
20836
# report actual input values of CONFIG_FILES etc. instead of their
20837
# values after options handling. Logging --version etc. is OK.
20841
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20842
## Running $as_me. ##
20847
This file was extended by espresso $as_me 0.99.16, which was
20848
generated by GNU Autoconf 2.59. Invocation command line was
20850
CONFIG_FILES = $CONFIG_FILES
20851
CONFIG_HEADERS = $CONFIG_HEADERS
20852
CONFIG_LINKS = $CONFIG_LINKS
20853
CONFIG_COMMANDS = $CONFIG_COMMANDS
20857
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20861
# Files that config.status was made for.
20862
if test -n "$ac_config_files"; then
20863
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20866
if test -n "$ac_config_headers"; then
20867
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20870
if test -n "$ac_config_links"; then
20871
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20874
if test -n "$ac_config_commands"; then
20875
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20878
cat >>$CONFIG_STATUS <<\_ACEOF
20881
\`$as_me' instantiates files from templates according to the
20882
current configuration.
20884
Usage: $0 [OPTIONS] [FILE]...
20886
-h, --help print this help, then exit
20887
-V, --version print version number, then exit
20888
-q, --quiet do not print progress messages
20889
-d, --debug don't remove temporary files
20890
--recheck update $as_me by reconfiguring in the same conditions
20891
--file=FILE[:TEMPLATE]
20892
instantiate the configuration file FILE
20893
--header=FILE[:TEMPLATE]
20894
instantiate the configuration header FILE
20896
Configuration files:
20899
Configuration headers:
20902
Configuration commands:
20905
Report bugs to <bug-autoconf@gnu.org>."
20908
cat >>$CONFIG_STATUS <<_ACEOF
20910
espresso config.status 0.99.16
20911
configured by $0, generated by GNU Autoconf 2.59,
20912
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20914
Copyright (C) 2003 Free Software Foundation, Inc.
20915
This config.status script is free software; the Free Software Foundation
20916
gives unlimited permission to copy, distribute and modify it."
20921
cat >>$CONFIG_STATUS <<\_ACEOF
20922
# If no file are specified by the user, then we need to provide default
20923
# value. By we need to know if files were specified by the user.
20929
ac_option=`expr "x$1" : 'x\([^=]*\)='`
20930
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20938
*) # This is not an option, so the user has probably given explicit
20941
ac_need_defaults=false;;
20945
# Handling of the options.
20947
cat >>$CONFIG_STATUS <<\_ACEOF
20948
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20950
--version | --vers* | -V )
20951
echo "$ac_cs_version"; exit 0 ;;
20953
# Conflict between --help and --header
20954
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
20955
Try \`$0 --help' for more information." >&5
20956
echo "$as_me: error: ambiguous option: $1
20957
Try \`$0 --help' for more information." >&2;}
20958
{ (exit 1); exit 1; }; };;
20959
--help | --hel | -h )
20960
echo "$ac_cs_usage"; exit 0 ;;
20961
--debug | --d* | -d )
20963
--file | --fil | --fi | --f )
20965
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20966
ac_need_defaults=false;;
20967
--header | --heade | --head | --hea )
20969
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20970
ac_need_defaults=false;;
20971
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
20972
| -silent | --silent | --silen | --sile | --sil | --si | --s)
20975
# This is an error.
20976
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20977
Try \`$0 --help' for more information." >&5
20978
echo "$as_me: error: unrecognized option: $1
20979
Try \`$0 --help' for more information." >&2;}
20980
{ (exit 1); exit 1; }; } ;;
20982
*) ac_config_targets="$ac_config_targets $1" ;;
20988
ac_configure_extra_args=
20990
if $ac_cs_silent; then
20992
ac_configure_extra_args="$ac_configure_extra_args --silent"
20996
cat >>$CONFIG_STATUS <<_ACEOF
20997
if \$ac_cs_recheck; then
20998
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20999
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21004
cat >>$CONFIG_STATUS <<_ACEOF
21006
# INIT-COMMANDS section.
21009
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21015
cat >>$CONFIG_STATUS <<\_ACEOF
21016
for ac_config_target in $ac_config_targets
21018
case "$ac_config_target" in
21019
# Handling of arguments.
21020
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21021
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21022
"src/cut-and-paste/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cut-and-paste/Makefile" ;;
21023
"src/cut-and-paste/e-map/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cut-and-paste/e-map/Makefile" ;;
21024
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21025
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21026
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21027
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21028
{ (exit 1); exit 1; }; };;
21032
# If the user did not use the arguments to specify the items to instantiate,
21033
# then the envvar interface is used. Set only those that are not.
21034
# We use the long form for the default assignment because of an extremely
21035
# bizarre bug on SunOS 4.1.3.
21036
if $ac_need_defaults; then
21037
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21038
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21039
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21042
# Have a temporary directory for convenience. Make it in the build tree
21043
# simply because there is no reason to put it here, and in addition,
21044
# creating and moving files from /tmp can sometimes cause problems.
21045
# Create a temporary directory, and hook for its removal unless debugging.
21048
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21049
trap '{ (exit 1); exit 1; }' 1 2 13 15
21052
# Create a (secure) tmp directory for tmp files.
21055
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21056
test -n "$tmp" && test -d "$tmp"
21059
tmp=./confstat$$-$RANDOM
21060
(umask 077 && mkdir $tmp)
21063
echo "$me: cannot create a temporary directory in ." >&2
21064
{ (exit 1); exit 1; }
21069
cat >>$CONFIG_STATUS <<_ACEOF
21072
# CONFIG_FILES section.
21075
# No need to generate the scripts if there are no CONFIG_FILES.
21076
# This happens for instance when ./config.status config.h
21077
if test -n "\$CONFIG_FILES"; then
21078
# Protect against being on the right side of a sed subst in config.status.
21079
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21080
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21081
s,@SHELL@,$SHELL,;t t
21082
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21083
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21084
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21085
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21086
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21087
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21088
s,@exec_prefix@,$exec_prefix,;t t
21089
s,@prefix@,$prefix,;t t
21090
s,@program_transform_name@,$program_transform_name,;t t
21091
s,@bindir@,$bindir,;t t
21092
s,@sbindir@,$sbindir,;t t
21093
s,@libexecdir@,$libexecdir,;t t
21094
s,@datadir@,$datadir,;t t
21095
s,@sysconfdir@,$sysconfdir,;t t
21096
s,@sharedstatedir@,$sharedstatedir,;t t
21097
s,@localstatedir@,$localstatedir,;t t
21098
s,@libdir@,$libdir,;t t
21099
s,@includedir@,$includedir,;t t
21100
s,@oldincludedir@,$oldincludedir,;t t
21101
s,@infodir@,$infodir,;t t
21102
s,@mandir@,$mandir,;t t
21103
s,@build_alias@,$build_alias,;t t
21104
s,@host_alias@,$host_alias,;t t
21105
s,@target_alias@,$target_alias,;t t
21106
s,@DEFS@,$DEFS,;t t
21107
s,@ECHO_C@,$ECHO_C,;t t
21108
s,@ECHO_N@,$ECHO_N,;t t
21109
s,@ECHO_T@,$ECHO_T,;t t
21110
s,@LIBS@,$LIBS,;t t
21111
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21112
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21113
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21114
s,@CYGPATH_W@,$CYGPATH_W,;t t
21115
s,@PACKAGE@,$PACKAGE,;t t
21116
s,@VERSION@,$VERSION,;t t
21117
s,@ACLOCAL@,$ACLOCAL,;t t
21118
s,@AUTOCONF@,$AUTOCONF,;t t
21119
s,@AUTOMAKE@,$AUTOMAKE,;t t
21120
s,@AUTOHEADER@,$AUTOHEADER,;t t
21121
s,@MAKEINFO@,$MAKEINFO,;t t
21122
s,@AMTAR@,$AMTAR,;t t
21123
s,@install_sh@,$install_sh,;t t
21124
s,@STRIP@,$STRIP,;t t
21125
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21126
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21127
s,@mkdir_p@,$mkdir_p,;t t
21129
s,@SET_MAKE@,$SET_MAKE,;t t
21130
s,@am__leading_dot@,$am__leading_dot,;t t
21131
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21132
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21133
s,@MAINT@,$MAINT,;t t
21134
s,@build@,$build,;t t
21135
s,@build_cpu@,$build_cpu,;t t
21136
s,@build_vendor@,$build_vendor,;t t
21137
s,@build_os@,$build_os,;t t
21138
s,@host@,$host,;t t
21139
s,@host_cpu@,$host_cpu,;t t
21140
s,@host_vendor@,$host_vendor,;t t
21141
s,@host_os@,$host_os,;t t
21143
s,@CFLAGS@,$CFLAGS,;t t
21144
s,@LDFLAGS@,$LDFLAGS,;t t
21145
s,@CPPFLAGS@,$CPPFLAGS,;t t
21146
s,@ac_ct_CC@,$ac_ct_CC,;t t
21147
s,@EXEEXT@,$EXEEXT,;t t
21148
s,@OBJEXT@,$OBJEXT,;t t
21149
s,@DEPDIR@,$DEPDIR,;t t
21150
s,@am__include@,$am__include,;t t
21151
s,@am__quote@,$am__quote,;t t
21152
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21153
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21154
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21155
s,@CCDEPMODE@,$CCDEPMODE,;t t
21156
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21157
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21158
s,@EGREP@,$EGREP,;t t
21159
s,@LN_S@,$LN_S,;t t
21160
s,@ECHO@,$ECHO,;t t
21162
s,@ac_ct_AR@,$ac_ct_AR,;t t
21163
s,@RANLIB@,$RANLIB,;t t
21164
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21167
s,@CXXFLAGS@,$CXXFLAGS,;t t
21168
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21169
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21170
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21171
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21172
s,@CXXCPP@,$CXXCPP,;t t
21174
s,@FFLAGS@,$FFLAGS,;t t
21175
s,@ac_ct_F77@,$ac_ct_F77,;t t
21176
s,@LIBTOOL@,$LIBTOOL,;t t
21177
s,@GLIB_GENMARSHAL@,$GLIB_GENMARSHAL,;t t
21178
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21179
s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
21180
s,@GTK_LIBS@,$GTK_LIBS,;t t
21181
s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
21182
s,@ESPRESSO_DEPENDS_CFLAGS@,$ESPRESSO_DEPENDS_CFLAGS,;t t
21183
s,@ESPRESSO_DEPENDS_LIBS@,$ESPRESSO_DEPENDS_LIBS,;t t
21184
s,@scriptsdir@,$scriptsdir,;t t
21185
s,@pixmapsdir@,$pixmapsdir,;t t
21186
s,@LIBOBJS@,$LIBOBJS,;t t
21187
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21192
cat >>$CONFIG_STATUS <<\_ACEOF
21193
# Split the substitutions into bite-sized pieces for seds with
21194
# small command number limits, like on Digital OSF/1 and HP-UX.
21195
ac_max_sed_lines=48
21196
ac_sed_frag=1 # Number of current file.
21197
ac_beg=1 # First line for current file.
21198
ac_end=$ac_max_sed_lines # Line after last line for current file.
21201
while $ac_more_lines; do
21202
if test $ac_beg -gt 1; then
21203
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21205
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21207
if test ! -s $tmp/subs.frag; then
21208
ac_more_lines=false
21210
# The purpose of the label and of the branching condition is to
21211
# speed up the sed processing (if there are no `@' at all, there
21212
# is no need to browse any of the substitutions).
21213
# These are the two extra sed commands mentioned above.
21215
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21216
if test -z "$ac_sed_cmds"; then
21217
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21219
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21221
ac_sed_frag=`expr $ac_sed_frag + 1`
21223
ac_end=`expr $ac_end + $ac_max_sed_lines`
21226
if test -z "$ac_sed_cmds"; then
21229
fi # test -n "$CONFIG_FILES"
21232
cat >>$CONFIG_STATUS <<\_ACEOF
21233
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21234
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21236
- | *:- | *:-:* ) # input from stdin
21238
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21239
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21240
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21241
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21242
* ) ac_file_in=$ac_file.in ;;
21245
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21246
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21247
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21248
X"$ac_file" : 'X\(//\)[^/]' \| \
21249
X"$ac_file" : 'X\(//\)$' \| \
21250
X"$ac_file" : 'X\(/\)' \| \
21251
. : '\(.\)' 2>/dev/null ||
21253
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21254
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21255
/^X\(\/\/\)$/{ s//\1/; q; }
21256
/^X\(\/\).*/{ s//\1/; q; }
21258
{ if $as_mkdir_p; then
21263
while test ! -d "$as_dir"; do
21264
as_dirs="$as_dir $as_dirs"
21265
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21266
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21267
X"$as_dir" : 'X\(//\)[^/]' \| \
21268
X"$as_dir" : 'X\(//\)$' \| \
21269
X"$as_dir" : 'X\(/\)' \| \
21270
. : '\(.\)' 2>/dev/null ||
21272
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21273
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21274
/^X\(\/\/\)$/{ s//\1/; q; }
21275
/^X\(\/\).*/{ s//\1/; q; }
21278
test ! -n "$as_dirs" || mkdir $as_dirs
21279
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21280
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21281
{ (exit 1); exit 1; }; }; }
21285
if test "$ac_dir" != .; then
21286
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21287
# A "../" for each directory in $ac_dir_suffix.
21288
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21290
ac_dir_suffix= ac_top_builddir=
21294
.) # No --srcdir option. We are building in place.
21296
if test -z "$ac_top_builddir"; then
21299
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21301
[\\/]* | ?:[\\/]* ) # Absolute path.
21302
ac_srcdir=$srcdir$ac_dir_suffix;
21303
ac_top_srcdir=$srcdir ;;
21304
*) # Relative path.
21305
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21306
ac_top_srcdir=$ac_top_builddir$srcdir ;;
21309
# Do not use `cd foo && pwd` to compute absolute paths, because
21310
# the directories may not exist.
21312
.) ac_abs_builddir="$ac_dir";;
21315
.) ac_abs_builddir=`pwd`;;
21316
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21317
*) ac_abs_builddir=`pwd`/"$ac_dir";;
21320
case $ac_abs_builddir in
21321
.) ac_abs_top_builddir=${ac_top_builddir}.;;
21323
case ${ac_top_builddir}. in
21324
.) ac_abs_top_builddir=$ac_abs_builddir;;
21325
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21326
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21329
case $ac_abs_builddir in
21330
.) ac_abs_srcdir=$ac_srcdir;;
21333
.) ac_abs_srcdir=$ac_abs_builddir;;
21334
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21335
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21338
case $ac_abs_builddir in
21339
.) ac_abs_top_srcdir=$ac_top_srcdir;;
21341
case $ac_top_srcdir in
21342
.) ac_abs_top_srcdir=$ac_abs_builddir;;
21343
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21344
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21350
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21351
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21354
# Let's still pretend it is `configure' which instantiates (i.e., don't
21355
# use $as_me), people would be surprised to read:
21356
# /* config.h. Generated by config.status. */
21357
if test x"$ac_file" = x-; then
21360
configure_input="$ac_file. "
21362
configure_input=$configure_input"Generated from `echo $ac_file_in |
21363
sed 's,.*/,,'` by configure."
21365
# First look for the input files in the build tree, otherwise in the
21367
ac_file_inputs=`IFS=:
21368
for f in $ac_file_in; do
21370
-) echo $tmp/stdin ;;
21372
# Absolute (can't be DOS-style, as IFS=:)
21373
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21374
echo "$as_me: error: cannot find input file: $f" >&2;}
21375
{ (exit 1); exit 1; }; }
21378
if test -f "$f"; then
21381
elif test -f "$srcdir/$f"; then
21386
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21387
echo "$as_me: error: cannot find input file: $f" >&2;}
21388
{ (exit 1); exit 1; }; }
21391
done` || { (exit 1); exit 1; }
21393
if test x"$ac_file" != x-; then
21394
{ echo "$as_me:$LINENO: creating $ac_file" >&5
21395
echo "$as_me: creating $ac_file" >&6;}
21399
cat >>$CONFIG_STATUS <<_ACEOF
21403
cat >>$CONFIG_STATUS <<\_ACEOF
21405
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21406
s,@configure_input@,$configure_input,;t t
21407
s,@srcdir@,$ac_srcdir,;t t
21408
s,@abs_srcdir@,$ac_abs_srcdir,;t t
21409
s,@top_srcdir@,$ac_top_srcdir,;t t
21410
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21411
s,@builddir@,$ac_builddir,;t t
21412
s,@abs_builddir@,$ac_abs_builddir,;t t
21413
s,@top_builddir@,$ac_top_builddir,;t t
21414
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21415
s,@INSTALL@,$ac_INSTALL,;t t
21416
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21418
if test x"$ac_file" != x-; then
21419
mv $tmp/out $ac_file
21427
cat >>$CONFIG_STATUS <<\_ACEOF
21430
# CONFIG_HEADER section.
21433
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21434
# NAME is the cpp macro being defined and VALUE is the value it is being given.
21436
# ac_d sets the value in "#define NAME VALUE" lines.
21437
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21438
ac_dB='[ ].*$,\1#\2'
21441
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21442
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21443
ac_uB='$,\1#\2define\3'
21447
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21448
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21450
- | *:- | *:-:* ) # input from stdin
21452
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21453
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21454
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21455
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21456
* ) ac_file_in=$ac_file.in ;;
21459
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21460
echo "$as_me: creating $ac_file" >&6;}
21462
# First look for the input files in the build tree, otherwise in the
21464
ac_file_inputs=`IFS=:
21465
for f in $ac_file_in; do
21467
-) echo $tmp/stdin ;;
21469
# Absolute (can't be DOS-style, as IFS=:)
21470
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21471
echo "$as_me: error: cannot find input file: $f" >&2;}
21472
{ (exit 1); exit 1; }; }
21473
# Do quote $f, to prevent DOS paths from being IFS'd.
21476
if test -f "$f"; then
21479
elif test -f "$srcdir/$f"; then
21484
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21485
echo "$as_me: error: cannot find input file: $f" >&2;}
21486
{ (exit 1); exit 1; }; }
21489
done` || { (exit 1); exit 1; }
21490
# Remove the trailing spaces.
21491
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21495
# Transform confdefs.h into two sed scripts, `conftest.defines' and
21496
# `conftest.undefs', that substitutes the proper values into
21497
# config.h.in to produce config.h. The first handles `#define'
21498
# templates, and the second `#undef' templates.
21499
# And first: Protect against being on the right side of a sed subst in
21500
# config.status. Protect against being in an unquoted here document
21501
# in config.status.
21502
rm -f conftest.defines conftest.undefs
21503
# Using a here document instead of a string reduces the quoting nightmare.
21504
# Putting comments in sed scripts is not portable.
21506
# `end' is used to avoid that the second main sed command (meant for
21507
# 0-ary CPP macros) applies to n-ary macro definitions.
21508
# See the Autoconf documentation for `clear'.
21509
cat >confdef2sed.sed <<\_ACEOF
21514
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21516
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21519
# If some macros were called several times there might be several times
21520
# the same #defines, which is useless. Nevertheless, we may not want to
21521
# sort them, since we want the *last* AC-DEFINE to be honored.
21522
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21523
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21524
rm -f confdef2sed.sed
21526
# This sed command replaces #undef with comments. This is necessary, for
21527
# example, in the case of _POSIX_SOURCE, which is predefined and required
21528
# on some systems where configure will not decide to define it.
21529
cat >>conftest.undefs <<\_ACEOF
21530
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21533
# Break up conftest.defines because some shells have a limit on the size
21534
# of here documents, and old seds have small limits too (100 cmds).
21535
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21536
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21537
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21538
echo ' :' >>$CONFIG_STATUS
21539
rm -f conftest.tail
21540
while grep . conftest.defines >/dev/null
21542
# Write a limited-size here document to $tmp/defines.sed.
21543
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21544
# Speed up: don't consider the non `#define' lines.
21545
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21546
# Work around the forget-to-reset-the-flag bug.
21547
echo 't clr' >>$CONFIG_STATUS
21548
echo ': clr' >>$CONFIG_STATUS
21549
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21551
sed -f $tmp/defines.sed $tmp/in >$tmp/out
21553
mv $tmp/out $tmp/in
21555
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21556
rm -f conftest.defines
21557
mv conftest.tail conftest.defines
21559
rm -f conftest.defines
21560
echo ' fi # grep' >>$CONFIG_STATUS
21561
echo >>$CONFIG_STATUS
21563
# Break up conftest.undefs because some shells have a limit on the size
21564
# of here documents, and old seds have small limits too (100 cmds).
21565
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21566
rm -f conftest.tail
21567
while grep . conftest.undefs >/dev/null
21569
# Write a limited-size here document to $tmp/undefs.sed.
21570
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21571
# Speed up: don't consider the non `#undef'
21572
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21573
# Work around the forget-to-reset-the-flag bug.
21574
echo 't clr' >>$CONFIG_STATUS
21575
echo ': clr' >>$CONFIG_STATUS
21576
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21578
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21580
mv $tmp/out $tmp/in
21582
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21583
rm -f conftest.undefs
21584
mv conftest.tail conftest.undefs
21586
rm -f conftest.undefs
21588
cat >>$CONFIG_STATUS <<\_ACEOF
21589
# Let's still pretend it is `configure' which instantiates (i.e., don't
21590
# use $as_me), people would be surprised to read:
21591
# /* config.h. Generated by config.status. */
21592
if test x"$ac_file" = x-; then
21593
echo "/* Generated by configure. */" >$tmp/config.h
21595
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21597
cat $tmp/in >>$tmp/config.h
21599
if test x"$ac_file" != x-; then
21600
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21601
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21602
echo "$as_me: $ac_file is unchanged" >&6;}
21604
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21605
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21606
X"$ac_file" : 'X\(//\)[^/]' \| \
21607
X"$ac_file" : 'X\(//\)$' \| \
21608
X"$ac_file" : 'X\(/\)' \| \
21609
. : '\(.\)' 2>/dev/null ||
21611
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21612
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21613
/^X\(\/\/\)$/{ s//\1/; q; }
21614
/^X\(\/\).*/{ s//\1/; q; }
21616
{ if $as_mkdir_p; then
21621
while test ! -d "$as_dir"; do
21622
as_dirs="$as_dir $as_dirs"
21623
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21624
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21625
X"$as_dir" : 'X\(//\)[^/]' \| \
21626
X"$as_dir" : 'X\(//\)$' \| \
21627
X"$as_dir" : 'X\(/\)' \| \
21628
. : '\(.\)' 2>/dev/null ||
21630
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21631
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21632
/^X\(\/\/\)$/{ s//\1/; q; }
21633
/^X\(\/\).*/{ s//\1/; q; }
21636
test ! -n "$as_dirs" || mkdir $as_dirs
21637
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21638
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21639
{ (exit 1); exit 1; }; }; }
21642
mv $tmp/config.h $ac_file
21646
rm -f $tmp/config.h
21648
# Compute $ac_file's index in $config_headers.
21650
for _am_header in $config_headers :; do
21651
case $_am_header in
21652
$ac_file | $ac_file:* )
21655
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
21658
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21659
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21660
X$ac_file : 'X\(//\)[^/]' \| \
21661
X$ac_file : 'X\(//\)$' \| \
21662
X$ac_file : 'X\(/\)' \| \
21663
. : '\(.\)' 2>/dev/null ||
21665
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21666
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21667
/^X\(\/\/\)$/{ s//\1/; q; }
21668
/^X\(\/\).*/{ s//\1/; q; }
21669
s/.*/./; q'`/stamp-h$_am_stamp_count
21672
cat >>$CONFIG_STATUS <<\_ACEOF
21675
# CONFIG_COMMANDS section.
21677
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21678
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21679
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21680
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21681
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21682
X"$ac_dest" : 'X\(//\)[^/]' \| \
21683
X"$ac_dest" : 'X\(//\)$' \| \
21684
X"$ac_dest" : 'X\(/\)' \| \
21685
. : '\(.\)' 2>/dev/null ||
21687
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21688
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21689
/^X\(\/\/\)$/{ s//\1/; q; }
21690
/^X\(\/\).*/{ s//\1/; q; }
21692
{ if $as_mkdir_p; then
21697
while test ! -d "$as_dir"; do
21698
as_dirs="$as_dir $as_dirs"
21699
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21700
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21701
X"$as_dir" : 'X\(//\)[^/]' \| \
21702
X"$as_dir" : 'X\(//\)$' \| \
21703
X"$as_dir" : 'X\(/\)' \| \
21704
. : '\(.\)' 2>/dev/null ||
21706
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21707
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21708
/^X\(\/\/\)$/{ s//\1/; q; }
21709
/^X\(\/\).*/{ s//\1/; q; }
21712
test ! -n "$as_dirs" || mkdir $as_dirs
21713
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21714
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21715
{ (exit 1); exit 1; }; }; }
21719
if test "$ac_dir" != .; then
21720
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21721
# A "../" for each directory in $ac_dir_suffix.
21722
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21724
ac_dir_suffix= ac_top_builddir=
21728
.) # No --srcdir option. We are building in place.
21730
if test -z "$ac_top_builddir"; then
21733
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21735
[\\/]* | ?:[\\/]* ) # Absolute path.
21736
ac_srcdir=$srcdir$ac_dir_suffix;
21737
ac_top_srcdir=$srcdir ;;
21738
*) # Relative path.
21739
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21740
ac_top_srcdir=$ac_top_builddir$srcdir ;;
21743
# Do not use `cd foo && pwd` to compute absolute paths, because
21744
# the directories may not exist.
21746
.) ac_abs_builddir="$ac_dir";;
21749
.) ac_abs_builddir=`pwd`;;
21750
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21751
*) ac_abs_builddir=`pwd`/"$ac_dir";;
21754
case $ac_abs_builddir in
21755
.) ac_abs_top_builddir=${ac_top_builddir}.;;
21757
case ${ac_top_builddir}. in
21758
.) ac_abs_top_builddir=$ac_abs_builddir;;
21759
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21760
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21763
case $ac_abs_builddir in
21764
.) ac_abs_srcdir=$ac_srcdir;;
21767
.) ac_abs_srcdir=$ac_abs_builddir;;
21768
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21769
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21772
case $ac_abs_builddir in
21773
.) ac_abs_top_srcdir=$ac_top_srcdir;;
21775
case $ac_top_srcdir in
21776
.) ac_abs_top_srcdir=$ac_abs_builddir;;
21777
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21778
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21783
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21784
echo "$as_me: executing $ac_dest commands" >&6;}
21786
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21787
# Strip MF so we end up with the name of the file.
21788
mf=`echo "$mf" | sed -e 's/:.*$//'`
21789
# Check whether this is an Automake generated Makefile or not.
21790
# We used to match only the files named `Makefile.in', but
21791
# some people rename them; so instead we look at the file content.
21792
# Grep'ing the first line is not enough: some people post-process
21793
# each Makefile.in and add a new line on top of each file to say so.
21794
# So let's grep whole file.
21795
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21796
dirpart=`(dirname "$mf") 2>/dev/null ||
21797
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21798
X"$mf" : 'X\(//\)[^/]' \| \
21799
X"$mf" : 'X\(//\)$' \| \
21800
X"$mf" : 'X\(/\)' \| \
21801
. : '\(.\)' 2>/dev/null ||
21803
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21804
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21805
/^X\(\/\/\)$/{ s//\1/; q; }
21806
/^X\(\/\).*/{ s//\1/; q; }
21811
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21812
# Extract the definition of DEP_FILES from the Makefile without
21814
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21815
test -z "$DEPDIR" && continue
21816
# When using ansi2knr, U may be empty or an underscore; expand it
21817
U=`sed -n 's/^U = //p' < "$mf"`
21818
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21819
# We invoke sed twice because it is the simplest approach to
21820
# changing $(DEPDIR) to its actual value in the expansion.
21821
for file in `sed -n '
21822
/^DEP_FILES = .*\\\\$/ {
21831
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21832
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21833
# Make sure the directory exists.
21834
test -f "$dirpart/$file" && continue
21835
fdir=`(dirname "$file") 2>/dev/null ||
21836
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21837
X"$file" : 'X\(//\)[^/]' \| \
21838
X"$file" : 'X\(//\)$' \| \
21839
X"$file" : 'X\(/\)' \| \
21840
. : '\(.\)' 2>/dev/null ||
21842
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21843
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21844
/^X\(\/\/\)$/{ s//\1/; q; }
21845
/^X\(\/\).*/{ s//\1/; q; }
21847
{ if $as_mkdir_p; then
21848
mkdir -p $dirpart/$fdir
21850
as_dir=$dirpart/$fdir
21852
while test ! -d "$as_dir"; do
21853
as_dirs="$as_dir $as_dirs"
21854
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21855
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21856
X"$as_dir" : 'X\(//\)[^/]' \| \
21857
X"$as_dir" : 'X\(//\)$' \| \
21858
X"$as_dir" : 'X\(/\)' \| \
21859
. : '\(.\)' 2>/dev/null ||
21861
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21862
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21863
/^X\(\/\/\)$/{ s//\1/; q; }
21864
/^X\(\/\).*/{ s//\1/; q; }
21867
test ! -n "$as_dirs" || mkdir $as_dirs
21868
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21869
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21870
{ (exit 1); exit 1; }; }; }
21872
# echo "creating $dirpart/$file"
21873
echo '# dummy' > "$dirpart/$file"
21881
cat >>$CONFIG_STATUS <<\_ACEOF
21883
{ (exit 0); exit 0; }
21885
chmod +x $CONFIG_STATUS
21886
ac_clean_files=$ac_clean_files_save
21889
# configure is writing to config.log, and then calls config.status.
21890
# config.status does its own redirection, appending to config.log.
21891
# Unfortunately, on DOS this fails, as config.log is still kept open
21892
# by configure, so config.status won't be able to write to it; its
21893
# output is simply discarded. So we exec the FD to /dev/null,
21894
# effectively closing config.log, so it can be properly (re)opened and
21895
# appended to by config.status. When coming back to configure, we
21896
# need to make the FD available again.
21897
if test "$no_create" != yes; then
21899
ac_config_status_args=
21900
test "$silent" = yes &&
21901
ac_config_status_args="$ac_config_status_args --quiet"
21903
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21905
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
21906
# would make configure fail if this is the last instruction.
21907
$ac_cs_success || { (exit 1); exit 1; }