2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59 for libgnomecanvas 2.8.0.
5
# Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=libgnomecanvas>.
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='libgnomecanvas'
425
PACKAGE_TARNAME='libgnomecanvas'
426
PACKAGE_VERSION='2.8.0'
427
PACKAGE_STRING='libgnomecanvas 2.8.0'
428
PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=libgnomecanvas'
430
ac_unique_file="libgnomecanvas/libgnomecanvas.h"
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 LIBGNOMECANVAS_CURRENT LIBGNOMECANVAS_REVISION LIBGNOMECANVAS_AGE 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 AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT ACLOCAL_AMFLAGS 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 CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL WARN_CFLAGS GETTEXT_PACKAGE USE_NLS MSGFMT GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS PKG_CONFIG LIBGNOMECANVAS_CFLAGS LIBGNOMECANVAS_LIBS CANVAS_GLADE_CFLAGS CANVAS_GLADE_LIBS OS_WIN32_TRUE OS_WIN32_FALSE PLATFORM_WIN32_TRUE PLATFORM_WIN32_FALSE PERL GLIB_GENMARSHAL HTML_DIR ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE GTK_DOC_USE_LIBTOOL_TRUE GTK_DOC_USE_LIBTOOL_FALSE REBUILD 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
951
# Report the --help message.
953
if test "$ac_init_help" = "long"; then
954
# Omit some internal or obsolete options to make the list less imposing.
955
# This message is too long to be a string in the A/UX 3.1 sh.
957
\`configure' configures libgnomecanvas 2.8.0 to adapt to many kinds of systems.
959
Usage: $0 [OPTION]... [VAR=VALUE]...
961
To assign environment variables (e.g., CC, CFLAGS...), specify them as
962
VAR=VALUE. See below for descriptions of some of the useful variables.
964
Defaults for the options are specified in brackets.
967
-h, --help display this help and exit
968
--help=short display options specific to this package
969
--help=recursive display the short help of all the included packages
970
-V, --version display version information and exit
971
-q, --quiet, --silent do not print \`checking...' messages
972
--cache-file=FILE cache test results in FILE [disabled]
973
-C, --config-cache alias for \`--cache-file=config.cache'
974
-n, --no-create do not create output files
975
--srcdir=DIR find the sources in DIR [configure dir or \`..']
980
Installation directories:
981
--prefix=PREFIX install architecture-independent files in PREFIX
983
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986
By default, \`make install' will install all the files in
987
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989
for instance \`--prefix=\$HOME'.
991
For better control, use the options below.
993
Fine tuning of the installation directories:
994
--bindir=DIR user executables [EPREFIX/bin]
995
--sbindir=DIR system admin executables [EPREFIX/sbin]
996
--libexecdir=DIR program executables [EPREFIX/libexec]
997
--datadir=DIR read-only architecture-independent data [PREFIX/share]
998
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001
--libdir=DIR object code libraries [EPREFIX/lib]
1002
--includedir=DIR C header files [PREFIX/include]
1003
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1004
--infodir=DIR info documentation [PREFIX/info]
1005
--mandir=DIR man documentation [PREFIX/man]
1011
--program-prefix=PREFIX prepend PREFIX to installed program names
1012
--program-suffix=SUFFIX append SUFFIX to installed program names
1013
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1016
--build=BUILD configure for building on BUILD [guessed]
1017
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1021
if test -n "$ac_init_help"; then
1022
case $ac_init_help in
1023
short | recursive ) echo "Configuration of libgnomecanvas 2.8.0:";;
1028
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030
--enable-maintainer-mode enable make rules and dependencies not useful
1031
(and sometimes confusing) to the casual installer
1032
--disable-dependency-tracking Speeds up one-time builds
1033
--enable-dependency-tracking Do not reject slow dependency extractors
1034
--enable-shared[=PKGS]
1035
build shared libraries [default=yes]
1036
--enable-static[=PKGS]
1037
build static libraries [default=yes]
1038
--enable-fast-install[=PKGS]
1039
optimize for fast installation [default=yes]
1040
--disable-libtool-lock avoid locking (might break parallel builds)
1041
--enable-compile-warnings=[no/minimum/yes/maximum/error]
1042
Turn on compiler warnings
1043
--enable-iso-c Try to warn if code is not ISO C
1044
--enable-gtk-doc use gtk-doc to build documentation default=no
1045
--disable-rebuilds disable all source autogeneration rules
1048
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1049
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1050
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1051
--with-pic try to use only PIC/non-PIC objects [default=use
1054
include additional configurations [automatic]
1055
--with-html-dir=PATH path to installed docs
1057
Some influential environment variables:
1058
CC C compiler command
1059
CFLAGS C compiler flags
1060
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1061
nonstandard directory <lib dir>
1062
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1063
headers in a nonstandard directory <include dir>
1065
CXX C++ compiler command
1066
CXXFLAGS C++ compiler flags
1067
CXXCPP C++ preprocessor
1068
F77 Fortran 77 compiler command
1069
FFLAGS Fortran 77 compiler flags
1071
Use these variables to override the choices made by `configure' or to help
1072
it to find libraries and programs with nonstandard names/locations.
1074
Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=libgnomecanvas>.
1078
if test "$ac_init_help" = "recursive"; then
1079
# If there are subdirs, report their specific --help.
1081
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1082
test -d $ac_dir || continue
1085
if test "$ac_dir" != .; then
1086
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1087
# A "../" for each directory in $ac_dir_suffix.
1088
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1090
ac_dir_suffix= ac_top_builddir=
1094
.) # No --srcdir option. We are building in place.
1096
if test -z "$ac_top_builddir"; then
1099
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1101
[\\/]* | ?:[\\/]* ) # Absolute path.
1102
ac_srcdir=$srcdir$ac_dir_suffix;
1103
ac_top_srcdir=$srcdir ;;
1105
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1106
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1109
# Do not use `cd foo && pwd` to compute absolute paths, because
1110
# the directories may not exist.
1112
.) ac_abs_builddir="$ac_dir";;
1115
.) ac_abs_builddir=`pwd`;;
1116
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1117
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1120
case $ac_abs_builddir in
1121
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1123
case ${ac_top_builddir}. in
1124
.) ac_abs_top_builddir=$ac_abs_builddir;;
1125
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1126
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1129
case $ac_abs_builddir in
1130
.) ac_abs_srcdir=$ac_srcdir;;
1133
.) ac_abs_srcdir=$ac_abs_builddir;;
1134
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1135
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1138
case $ac_abs_builddir in
1139
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1141
case $ac_top_srcdir in
1142
.) ac_abs_top_srcdir=$ac_abs_builddir;;
1143
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1144
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1149
# Check for guested configure; otherwise get Cygnus style configure.
1150
if test -f $ac_srcdir/configure.gnu; then
1152
$SHELL $ac_srcdir/configure.gnu --help=recursive
1153
elif test -f $ac_srcdir/configure; then
1155
$SHELL $ac_srcdir/configure --help=recursive
1156
elif test -f $ac_srcdir/configure.ac ||
1157
test -f $ac_srcdir/configure.in; then
1159
$ac_configure --help
1161
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1167
test -n "$ac_init_help" && exit 0
1168
if $ac_init_version; then
1170
libgnomecanvas configure 2.8.0
1171
generated by GNU Autoconf 2.59
1173
Copyright (C) 2003 Free Software Foundation, Inc.
1174
This configure script is free software; the Free Software Foundation
1175
gives unlimited permission to copy, distribute and modify it.
1181
This file contains any messages produced by compilers while
1182
running configure, to aid debugging if configure makes a mistake.
1184
It was created by libgnomecanvas $as_me 2.8.0, which was
1185
generated by GNU Autoconf 2.59. Invocation command line was
1196
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1197
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1198
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1199
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1200
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1202
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1203
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1205
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1206
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1207
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1208
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1209
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1210
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1211
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1215
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1219
test -z "$as_dir" && as_dir=.
1220
echo "PATH: $as_dir"
1235
# Keep a trace of the command line.
1236
# Strip out --no-create and --no-recursion so they do not pile up.
1237
# Strip out --silent because we don't want to record it for future runs.
1238
# Also quote any args containing shell meta-characters.
1239
# Make two passes to allow for proper duplicate-argument suppression.
1244
ac_must_keep_next=false
1250
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1251
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1252
| -silent | --silent | --silen | --sile | --sil)
1254
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1255
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1258
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1260
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1261
if test $ac_must_keep_next = true; then
1262
ac_must_keep_next=false # Got value, back to normal.
1265
*=* | --config-cache | -C | -disable-* | --disable-* \
1266
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1267
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1268
| -with-* | --with-* | -without-* | --without-* | --x)
1269
case "$ac_configure_args0 " in
1270
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1273
-* ) ac_must_keep_next=true ;;
1276
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1277
# Get rid of the leading space.
1283
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1284
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1286
# When interrupted or exit'd, cleanup temporary files, and complete
1287
# config.log. We remove comments because anyway the quotes in there
1288
# would cause problems or look ugly.
1289
# WARNING: Be sure not to use single quotes in there, as some shells,
1290
# such as our DU 5.0 friend, will then `close' the trap.
1291
trap 'exit_status=$?
1292
# Save into config.log some information that might help in debugging.
1297
## ---------------- ##
1298
## Cache variables. ##
1299
## ---------------- ##
1302
# The following way of writing the cache mishandles newlines in values,
1305
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1308
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1309
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1313
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1320
## ----------------- ##
1321
## Output variables. ##
1322
## ----------------- ##
1325
for ac_var in $ac_subst_vars
1327
eval ac_val=$`echo $ac_var`
1328
echo "$ac_var='"'"'$ac_val'"'"'"
1332
if test -n "$ac_subst_files"; then
1339
for ac_var in $ac_subst_files
1341
eval ac_val=$`echo $ac_var`
1342
echo "$ac_var='"'"'$ac_val'"'"'"
1347
if test -s confdefs.h; then
1354
sed "/^$/d" confdefs.h | sort
1357
test "$ac_signal" != 0 &&
1358
echo "$as_me: caught signal $ac_signal"
1359
echo "$as_me: exit $exit_status"
1361
rm -f core *.core &&
1362
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1365
for ac_signal in 1 2 13 15; do
1366
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1370
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1371
rm -rf conftest* confdefs.h
1372
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1375
# Predefined preprocessor variables.
1377
cat >>confdefs.h <<_ACEOF
1378
#define PACKAGE_NAME "$PACKAGE_NAME"
1382
cat >>confdefs.h <<_ACEOF
1383
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1387
cat >>confdefs.h <<_ACEOF
1388
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1392
cat >>confdefs.h <<_ACEOF
1393
#define PACKAGE_STRING "$PACKAGE_STRING"
1397
cat >>confdefs.h <<_ACEOF
1398
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1402
# Let the site file select an alternate cache file if it wants to.
1403
# Prefer explicitly selected file to automatically selected ones.
1404
if test -z "$CONFIG_SITE"; then
1405
if test "x$prefix" != xNONE; then
1406
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1408
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1411
for ac_site_file in $CONFIG_SITE; do
1412
if test -r "$ac_site_file"; then
1413
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1414
echo "$as_me: loading site script $ac_site_file" >&6;}
1415
sed 's/^/| /' "$ac_site_file" >&5
1420
if test -r "$cache_file"; then
1421
# Some versions of bash will fail to source /dev/null (special
1422
# files actually), so we avoid doing that.
1423
if test -f "$cache_file"; then
1424
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1425
echo "$as_me: loading cache $cache_file" >&6;}
1427
[\\/]* | ?:[\\/]* ) . $cache_file;;
1428
*) . ./$cache_file;;
1432
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1433
echo "$as_me: creating cache $cache_file" >&6;}
1437
# Check that the precious variables saved in the cache have kept the same
1439
ac_cache_corrupted=false
1440
for ac_var in `(set) 2>&1 |
1441
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1442
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1443
eval ac_new_set=\$ac_env_${ac_var}_set
1444
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1445
eval ac_new_val="\$ac_env_${ac_var}_value"
1446
case $ac_old_set,$ac_new_set in
1448
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1449
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1450
ac_cache_corrupted=: ;;
1452
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1453
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1454
ac_cache_corrupted=: ;;
1457
if test "x$ac_old_val" != "x$ac_new_val"; then
1458
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1459
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1460
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1461
echo "$as_me: former value: $ac_old_val" >&2;}
1462
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1463
echo "$as_me: current value: $ac_new_val" >&2;}
1464
ac_cache_corrupted=:
1467
# Pass precious variables to config.status.
1468
if test "$ac_new_set" = set; then
1470
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1471
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1472
*) ac_arg=$ac_var=$ac_new_val ;;
1474
case " $ac_configure_args " in
1475
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1476
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1480
if $ac_cache_corrupted; then
1481
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1482
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1483
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1484
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1485
{ (exit 1); exit 1; }; }
1489
ac_cpp='$CPP $CPPFLAGS'
1490
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1491
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1492
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1522
LIBGNOMECANVAS_MAJOR_VERSION=2
1523
LIBGNOMECANVAS_MINOR_VERSION=8
1524
LIBGNOMECANVAS_MICRO_VERSION=0
1525
LIBGNOMECANVAS_INTERFACE_AGE=0
1528
LIBGNOMECANVAS_CURRENT=800
1529
LIBGNOMECANVAS_REVISION=0
1530
LIBGNOMECANVAS_AGE=800
1536
am__api_version="1.7"
1538
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1539
if test -f $ac_dir/install-sh; then
1541
ac_install_sh="$ac_aux_dir/install-sh -c"
1543
elif test -f $ac_dir/install.sh; then
1545
ac_install_sh="$ac_aux_dir/install.sh -c"
1547
elif test -f $ac_dir/shtool; then
1549
ac_install_sh="$ac_aux_dir/shtool install -c"
1553
if test -z "$ac_aux_dir"; then
1554
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1555
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1556
{ (exit 1); exit 1; }; }
1558
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1559
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1560
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1562
# Find a good install program. We prefer a C program (faster),
1563
# so one script is as good as another. But avoid the broken or
1564
# incompatible versions:
1565
# SysV /etc/install, /usr/sbin/install
1566
# SunOS /usr/etc/install
1567
# IRIX /sbin/install
1569
# AmigaOS /C/install, which installs bootblocks on floppy discs
1570
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1571
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1572
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1573
# OS/2's system install, which has a completely different semantic
1574
# ./install, which can be erroneously created by make from ./install.sh.
1575
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1576
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1577
if test -z "$INSTALL"; then
1578
if test "${ac_cv_path_install+set}" = set; then
1579
echo $ECHO_N "(cached) $ECHO_C" >&6
1581
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585
test -z "$as_dir" && as_dir=.
1586
# Account for people who put trailing slashes in PATH elements.
1588
./ | .// | /cC/* | \
1589
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1590
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1593
# OSF1 and SCO ODT 3.0 have their own names for install.
1594
# Don't use installbsd from OSF since it installs stuff as root
1596
for ac_prog in ginstall scoinst install; do
1597
for ac_exec_ext in '' $ac_executable_extensions; do
1598
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1599
if test $ac_prog = install &&
1600
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1601
# AIX install. It has an incompatible calling convention.
1603
elif test $ac_prog = install &&
1604
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1605
# program-specific install script used by HP pwplus--don't use.
1608
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1620
if test "${ac_cv_path_install+set}" = set; then
1621
INSTALL=$ac_cv_path_install
1623
# As a last resort, use the slow shell script. We don't cache a
1624
# path for INSTALL within a source directory, because that will
1625
# break other packages using the cache if that directory is
1626
# removed, or if the path is relative.
1627
INSTALL=$ac_install_sh
1630
echo "$as_me:$LINENO: result: $INSTALL" >&5
1631
echo "${ECHO_T}$INSTALL" >&6
1633
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1634
# It thinks the first close brace ends the variable substitution.
1635
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1637
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1639
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1641
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1642
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1645
echo timestamp > conftest.file
1646
# Do `set' in a subshell so we don't clobber the current shell's
1647
# arguments. Must try -L first in case configure is actually a
1648
# symlink; some systems play weird games with the mod time of symlinks
1649
# (eg FreeBSD returns the mod time of the symlink's containing
1652
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1653
if test "$*" = "X"; then
1655
set X `ls -t $srcdir/configure conftest.file`
1658
if test "$*" != "X $srcdir/configure conftest.file" \
1659
&& test "$*" != "X conftest.file $srcdir/configure"; then
1661
# If neither matched, then we have a broken ls. This can happen
1662
# if, for instance, CONFIG_SHELL is bash and it inherits a
1663
# broken ls alias from the environment. This has actually
1664
# happened. Such a system could not be considered "sane".
1665
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1666
alias in your environment" >&5
1667
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1668
alias in your environment" >&2;}
1669
{ (exit 1); exit 1; }; }
1672
test "$2" = conftest.file
1678
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1679
Check your system clock" >&5
1680
echo "$as_me: error: newly created file is older than distributed files!
1681
Check your system clock" >&2;}
1682
{ (exit 1); exit 1; }; }
1684
echo "$as_me:$LINENO: result: yes" >&5
1685
echo "${ECHO_T}yes" >&6
1686
test "$program_prefix" != NONE &&
1687
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1688
# Use a double $ so make ignores it.
1689
test "$program_suffix" != NONE &&
1690
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1691
# Double any \ or $. echo might interpret backslashes.
1692
# By default was `s,x,x', remove it if useless.
1693
cat <<\_ACEOF >conftest.sed
1694
s/[\\$]/&&/g;s/;s,x,x,$//
1696
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1700
# expand $ac_aux_dir to an absolute path
1701
am_aux_dir=`cd $ac_aux_dir && pwd`
1703
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1704
# Use eval to expand $SHELL
1705
if eval "$MISSING --run true"; then
1706
am_missing_run="$MISSING --run "
1709
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1710
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1713
for ac_prog in gawk mawk nawk awk
1715
# Extract the first word of "$ac_prog", so it can be a program name with args.
1716
set dummy $ac_prog; ac_word=$2
1717
echo "$as_me:$LINENO: checking for $ac_word" >&5
1718
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719
if test "${ac_cv_prog_AWK+set}" = set; then
1720
echo $ECHO_N "(cached) $ECHO_C" >&6
1722
if test -n "$AWK"; then
1723
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1725
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729
test -z "$as_dir" && as_dir=.
1730
for ac_exec_ext in '' $ac_executable_extensions; do
1731
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732
ac_cv_prog_AWK="$ac_prog"
1733
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742
if test -n "$AWK"; then
1743
echo "$as_me:$LINENO: result: $AWK" >&5
1744
echo "${ECHO_T}$AWK" >&6
1746
echo "$as_me:$LINENO: result: no" >&5
1747
echo "${ECHO_T}no" >&6
1750
test -n "$AWK" && break
1753
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1754
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1755
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1756
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1757
echo $ECHO_N "(cached) $ECHO_C" >&6
1759
cat >conftest.make <<\_ACEOF
1761
@echo 'ac_maketemp="$(MAKE)"'
1763
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1764
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1765
if test -n "$ac_maketemp"; then
1766
eval ac_cv_prog_make_${ac_make}_set=yes
1768
eval ac_cv_prog_make_${ac_make}_set=no
1772
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1773
echo "$as_me:$LINENO: result: yes" >&5
1774
echo "${ECHO_T}yes" >&6
1777
echo "$as_me:$LINENO: result: no" >&5
1778
echo "${ECHO_T}no" >&6
1779
SET_MAKE="MAKE=${MAKE-make}"
1782
rm -rf .tst 2>/dev/null
1783
mkdir .tst 2>/dev/null
1784
if test -d .tst; then
1789
rmdir .tst 2>/dev/null
1791
# test to see if srcdir already configured
1792
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1793
test -f $srcdir/config.status; then
1794
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1795
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1796
{ (exit 1); exit 1; }; }
1799
# test whether we have cygpath
1800
if test -z "$CYGPATH_W"; then
1801
if (cygpath --version) >/dev/null 2>/dev/null; then
1802
CYGPATH_W='cygpath -w'
1809
# Define the identity of the package.
1810
PACKAGE='libgnomecanvas'
1814
cat >>confdefs.h <<_ACEOF
1815
#define PACKAGE "$PACKAGE"
1819
cat >>confdefs.h <<_ACEOF
1820
#define VERSION "$VERSION"
1823
# Some tools Automake needs.
1825
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1828
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1831
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1834
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1837
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1840
AMTAR=${AMTAR-"${am_missing_run}tar"}
1842
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1844
# Installed binaries are usually stripped using `strip' when the user
1845
# run `make install-strip'. However `strip' might not be the right
1846
# tool to use in cross-compilation environments, therefore Automake
1847
# will honor the `STRIP' environment variable to overrule this program.
1848
if test "$cross_compiling" != no; then
1849
if test -n "$ac_tool_prefix"; then
1850
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1851
set dummy ${ac_tool_prefix}strip; ac_word=$2
1852
echo "$as_me:$LINENO: checking for $ac_word" >&5
1853
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854
if test "${ac_cv_prog_STRIP+set}" = set; then
1855
echo $ECHO_N "(cached) $ECHO_C" >&6
1857
if test -n "$STRIP"; then
1858
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1860
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864
test -z "$as_dir" && as_dir=.
1865
for ac_exec_ext in '' $ac_executable_extensions; do
1866
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1868
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876
STRIP=$ac_cv_prog_STRIP
1877
if test -n "$STRIP"; then
1878
echo "$as_me:$LINENO: result: $STRIP" >&5
1879
echo "${ECHO_T}$STRIP" >&6
1881
echo "$as_me:$LINENO: result: no" >&5
1882
echo "${ECHO_T}no" >&6
1886
if test -z "$ac_cv_prog_STRIP"; then
1888
# Extract the first word of "strip", so it can be a program name with args.
1889
set dummy strip; ac_word=$2
1890
echo "$as_me:$LINENO: checking for $ac_word" >&5
1891
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1893
echo $ECHO_N "(cached) $ECHO_C" >&6
1895
if test -n "$ac_ct_STRIP"; then
1896
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1898
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902
test -z "$as_dir" && as_dir=.
1903
for ac_exec_ext in '' $ac_executable_extensions; do
1904
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905
ac_cv_prog_ac_ct_STRIP="strip"
1906
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1915
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1916
if test -n "$ac_ct_STRIP"; then
1917
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1918
echo "${ECHO_T}$ac_ct_STRIP" >&6
1920
echo "$as_me:$LINENO: result: no" >&5
1921
echo "${ECHO_T}no" >&6
1926
STRIP="$ac_cv_prog_STRIP"
1930
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1932
# We need awk for the "check" target. The system "awk" is bad on
1937
ac_config_headers="$ac_config_headers config.h"
1940
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1941
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1942
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1943
if test "${enable_maintainer_mode+set}" = set; then
1944
enableval="$enable_maintainer_mode"
1945
USE_MAINTAINER_MODE=$enableval
1947
USE_MAINTAINER_MODE=no
1949
echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1950
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1953
if test $USE_MAINTAINER_MODE = yes; then
1954
MAINTAINER_MODE_TRUE=
1955
MAINTAINER_MODE_FALSE='#'
1957
MAINTAINER_MODE_TRUE='#'
1958
MAINTAINER_MODE_FALSE=
1961
MAINT=$MAINTAINER_MODE_TRUE
1965
ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
1968
DEPDIR="${am__leading_dot}deps"
1970
ac_config_commands="$ac_config_commands depfiles"
1973
am_make=${MAKE-make}
1974
cat > confinc << 'END'
1979
# If we don't find an include directive, just comment out the code.
1980
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1981
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1985
# First try GNU make style include.
1986
echo "include confinc" > confmf
1987
# We grep out `Entering directory' and `Leaving directory'
1988
# messages which can occur if `w' ends up in MAKEFLAGS.
1989
# In particular we don't look at `^make:' because GNU make might
1990
# be invoked under some other name (usually "gmake"), in which
1991
# case it prints its new name instead of `make'.
1992
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1997
# Now try BSD make style include.
1998
if test "$am__include" = "#"; then
1999
echo '.include "confinc"' > confmf
2000
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2001
am__include=.include
2008
echo "$as_me:$LINENO: result: $_am_result" >&5
2009
echo "${ECHO_T}$_am_result" >&6
2010
rm -f confinc confmf
2012
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2013
if test "${enable_dependency_tracking+set}" = set; then
2014
enableval="$enable_dependency_tracking"
2017
if test "x$enable_dependency_tracking" != xno; then
2018
am_depcomp="$ac_aux_dir/depcomp"
2023
if test "x$enable_dependency_tracking" != xno; then
2034
ac_cpp='$CPP $CPPFLAGS'
2035
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2036
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2037
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2038
if test -n "$ac_tool_prefix"; then
2039
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2040
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2041
echo "$as_me:$LINENO: checking for $ac_word" >&5
2042
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043
if test "${ac_cv_prog_CC+set}" = set; then
2044
echo $ECHO_N "(cached) $ECHO_C" >&6
2046
if test -n "$CC"; then
2047
ac_cv_prog_CC="$CC" # Let the user override the test.
2049
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053
test -z "$as_dir" && as_dir=.
2054
for ac_exec_ext in '' $ac_executable_extensions; do
2055
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2057
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066
if test -n "$CC"; then
2067
echo "$as_me:$LINENO: result: $CC" >&5
2068
echo "${ECHO_T}$CC" >&6
2070
echo "$as_me:$LINENO: result: no" >&5
2071
echo "${ECHO_T}no" >&6
2075
if test -z "$ac_cv_prog_CC"; then
2077
# Extract the first word of "gcc", so it can be a program name with args.
2078
set dummy gcc; ac_word=$2
2079
echo "$as_me:$LINENO: checking for $ac_word" >&5
2080
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2081
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2082
echo $ECHO_N "(cached) $ECHO_C" >&6
2084
if test -n "$ac_ct_CC"; then
2085
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2087
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091
test -z "$as_dir" && as_dir=.
2092
for ac_exec_ext in '' $ac_executable_extensions; do
2093
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2094
ac_cv_prog_ac_ct_CC="gcc"
2095
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2104
if test -n "$ac_ct_CC"; then
2105
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2106
echo "${ECHO_T}$ac_ct_CC" >&6
2108
echo "$as_me:$LINENO: result: no" >&5
2109
echo "${ECHO_T}no" >&6
2117
if test -z "$CC"; then
2118
if test -n "$ac_tool_prefix"; then
2119
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2120
set dummy ${ac_tool_prefix}cc; ac_word=$2
2121
echo "$as_me:$LINENO: checking for $ac_word" >&5
2122
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2123
if test "${ac_cv_prog_CC+set}" = set; then
2124
echo $ECHO_N "(cached) $ECHO_C" >&6
2126
if test -n "$CC"; then
2127
ac_cv_prog_CC="$CC" # Let the user override the test.
2129
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133
test -z "$as_dir" && as_dir=.
2134
for ac_exec_ext in '' $ac_executable_extensions; do
2135
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2136
ac_cv_prog_CC="${ac_tool_prefix}cc"
2137
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2146
if test -n "$CC"; then
2147
echo "$as_me:$LINENO: result: $CC" >&5
2148
echo "${ECHO_T}$CC" >&6
2150
echo "$as_me:$LINENO: result: no" >&5
2151
echo "${ECHO_T}no" >&6
2155
if test -z "$ac_cv_prog_CC"; then
2157
# Extract the first word of "cc", so it can be a program name with args.
2158
set dummy cc; ac_word=$2
2159
echo "$as_me:$LINENO: checking for $ac_word" >&5
2160
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2161
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2162
echo $ECHO_N "(cached) $ECHO_C" >&6
2164
if test -n "$ac_ct_CC"; then
2165
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2167
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171
test -z "$as_dir" && as_dir=.
2172
for ac_exec_ext in '' $ac_executable_extensions; do
2173
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2174
ac_cv_prog_ac_ct_CC="cc"
2175
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2183
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2184
if test -n "$ac_ct_CC"; then
2185
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2186
echo "${ECHO_T}$ac_ct_CC" >&6
2188
echo "$as_me:$LINENO: result: no" >&5
2189
echo "${ECHO_T}no" >&6
2198
if test -z "$CC"; then
2199
# Extract the first word of "cc", so it can be a program name with args.
2200
set dummy cc; ac_word=$2
2201
echo "$as_me:$LINENO: checking for $ac_word" >&5
2202
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2203
if test "${ac_cv_prog_CC+set}" = set; then
2204
echo $ECHO_N "(cached) $ECHO_C" >&6
2206
if test -n "$CC"; then
2207
ac_cv_prog_CC="$CC" # Let the user override the test.
2210
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2214
test -z "$as_dir" && as_dir=.
2215
for ac_exec_ext in '' $ac_executable_extensions; do
2216
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2217
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2218
ac_prog_rejected=yes
2222
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2228
if test $ac_prog_rejected = yes; then
2229
# We found a bogon in the path, so make sure we never use it.
2230
set dummy $ac_cv_prog_CC
2232
if test $# != 0; then
2233
# We chose a different compiler from the bogus one.
2234
# However, it has the same basename, so the bogon will be chosen
2235
# first if we set CC to just the basename; use the full file name.
2237
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2243
if test -n "$CC"; then
2244
echo "$as_me:$LINENO: result: $CC" >&5
2245
echo "${ECHO_T}$CC" >&6
2247
echo "$as_me:$LINENO: result: no" >&5
2248
echo "${ECHO_T}no" >&6
2252
if test -z "$CC"; then
2253
if test -n "$ac_tool_prefix"; then
2256
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2257
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2258
echo "$as_me:$LINENO: checking for $ac_word" >&5
2259
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2260
if test "${ac_cv_prog_CC+set}" = set; then
2261
echo $ECHO_N "(cached) $ECHO_C" >&6
2263
if test -n "$CC"; then
2264
ac_cv_prog_CC="$CC" # Let the user override the test.
2266
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270
test -z "$as_dir" && as_dir=.
2271
for ac_exec_ext in '' $ac_executable_extensions; do
2272
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2273
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2274
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2283
if test -n "$CC"; then
2284
echo "$as_me:$LINENO: result: $CC" >&5
2285
echo "${ECHO_T}$CC" >&6
2287
echo "$as_me:$LINENO: result: no" >&5
2288
echo "${ECHO_T}no" >&6
2291
test -n "$CC" && break
2294
if test -z "$CC"; then
2298
# Extract the first word of "$ac_prog", so it can be a program name with args.
2299
set dummy $ac_prog; ac_word=$2
2300
echo "$as_me:$LINENO: checking for $ac_word" >&5
2301
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2302
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2303
echo $ECHO_N "(cached) $ECHO_C" >&6
2305
if test -n "$ac_ct_CC"; then
2306
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2308
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312
test -z "$as_dir" && as_dir=.
2313
for ac_exec_ext in '' $ac_executable_extensions; do
2314
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2315
ac_cv_prog_ac_ct_CC="$ac_prog"
2316
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2324
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2325
if test -n "$ac_ct_CC"; then
2326
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2327
echo "${ECHO_T}$ac_ct_CC" >&6
2329
echo "$as_me:$LINENO: result: no" >&5
2330
echo "${ECHO_T}no" >&6
2333
test -n "$ac_ct_CC" && break
2342
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2343
See \`config.log' for more details." >&5
2344
echo "$as_me: error: no acceptable C compiler found in \$PATH
2345
See \`config.log' for more details." >&2;}
2346
{ (exit 1); exit 1; }; }
2348
# Provide some information about the compiler.
2349
echo "$as_me:$LINENO:" \
2350
"checking for C compiler version" >&5
2351
ac_compiler=`set X $ac_compile; echo $2`
2352
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2353
(eval $ac_compiler --version </dev/null >&5) 2>&5
2355
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356
(exit $ac_status); }
2357
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2358
(eval $ac_compiler -v </dev/null >&5) 2>&5
2360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361
(exit $ac_status); }
2362
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2363
(eval $ac_compiler -V </dev/null >&5) 2>&5
2365
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366
(exit $ac_status); }
2368
cat >conftest.$ac_ext <<_ACEOF
2371
cat confdefs.h >>conftest.$ac_ext
2372
cat >>conftest.$ac_ext <<_ACEOF
2373
/* end confdefs.h. */
2383
ac_clean_files_save=$ac_clean_files
2384
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2385
# Try to create an executable without -o first, disregard a.out.
2386
# It will help us diagnose broken compilers, and finding out an intuition
2388
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2389
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2390
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2391
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2392
(eval $ac_link_default) 2>&5
2394
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395
(exit $ac_status); }; then
2396
# Find the output, starting from the most likely. This scheme is
2397
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2400
# Be careful to initialize this variable, since it used to be cached.
2401
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2403
# b.out is created by i960 compilers.
2404
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2406
test -f "$ac_file" || continue
2408
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2411
# This is the source file.
2414
# We found the default executable, but exeext='' is most
2418
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2419
# FIXME: I believe we export ac_cv_exeext for Libtool,
2420
# but it would be cool to find out if it's true. Does anybody
2421
# maintain Libtool? --akim.
2429
echo "$as_me: failed program was:" >&5
2430
sed 's/^/| /' conftest.$ac_ext >&5
2432
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2433
See \`config.log' for more details." >&5
2434
echo "$as_me: error: C compiler cannot create executables
2435
See \`config.log' for more details." >&2;}
2436
{ (exit 77); exit 77; }; }
2439
ac_exeext=$ac_cv_exeext
2440
echo "$as_me:$LINENO: result: $ac_file" >&5
2441
echo "${ECHO_T}$ac_file" >&6
2443
# Check the compiler produces executables we can run. If not, either
2444
# the compiler is broken, or we cross compile.
2445
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2446
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2447
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2448
# If not cross compiling, check that we can run a simple program.
2449
if test "$cross_compiling" != yes; then
2450
if { ac_try='./$ac_file'
2451
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455
(exit $ac_status); }; }; then
2458
if test "$cross_compiling" = maybe; then
2461
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2462
If you meant to cross compile, use \`--host'.
2463
See \`config.log' for more details." >&5
2464
echo "$as_me: error: cannot run C compiled programs.
2465
If you meant to cross compile, use \`--host'.
2466
See \`config.log' for more details." >&2;}
2467
{ (exit 1); exit 1; }; }
2471
echo "$as_me:$LINENO: result: yes" >&5
2472
echo "${ECHO_T}yes" >&6
2474
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2475
ac_clean_files=$ac_clean_files_save
2476
# Check the compiler produces executables we can run. If not, either
2477
# the compiler is broken, or we cross compile.
2478
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2479
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2480
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2481
echo "${ECHO_T}$cross_compiling" >&6
2483
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2484
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2485
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2486
(eval $ac_link) 2>&5
2488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489
(exit $ac_status); }; then
2490
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2491
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2492
# work properly (i.e., refer to `conftest.exe'), while it won't with
2494
for ac_file in conftest.exe conftest conftest.*; do
2495
test -f "$ac_file" || continue
2497
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2498
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2505
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2506
See \`config.log' for more details." >&5
2507
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2508
See \`config.log' for more details." >&2;}
2509
{ (exit 1); exit 1; }; }
2512
rm -f conftest$ac_cv_exeext
2513
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2514
echo "${ECHO_T}$ac_cv_exeext" >&6
2516
rm -f conftest.$ac_ext
2517
EXEEXT=$ac_cv_exeext
2519
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2520
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2521
if test "${ac_cv_objext+set}" = set; then
2522
echo $ECHO_N "(cached) $ECHO_C" >&6
2524
cat >conftest.$ac_ext <<_ACEOF
2527
cat confdefs.h >>conftest.$ac_ext
2528
cat >>conftest.$ac_ext <<_ACEOF
2529
/* end confdefs.h. */
2539
rm -f conftest.o conftest.obj
2540
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2541
(eval $ac_compile) 2>&5
2543
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544
(exit $ac_status); }; then
2545
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2547
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2548
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2553
echo "$as_me: failed program was:" >&5
2554
sed 's/^/| /' conftest.$ac_ext >&5
2556
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2557
See \`config.log' for more details." >&5
2558
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2559
See \`config.log' for more details." >&2;}
2560
{ (exit 1); exit 1; }; }
2563
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2565
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2566
echo "${ECHO_T}$ac_cv_objext" >&6
2567
OBJEXT=$ac_cv_objext
2569
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2570
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2571
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2572
echo $ECHO_N "(cached) $ECHO_C" >&6
2574
cat >conftest.$ac_ext <<_ACEOF
2577
cat confdefs.h >>conftest.$ac_ext
2578
cat >>conftest.$ac_ext <<_ACEOF
2579
/* end confdefs.h. */
2592
rm -f conftest.$ac_objext
2593
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2594
(eval $ac_compile) 2>conftest.er1
2596
grep -v '^ *+' conftest.er1 >conftest.err
2598
cat conftest.err >&5
2599
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600
(exit $ac_status); } &&
2601
{ ac_try='test -z "$ac_c_werror_flag"
2602
|| test ! -s conftest.err'
2603
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607
(exit $ac_status); }; } &&
2608
{ ac_try='test -s conftest.$ac_objext'
2609
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613
(exit $ac_status); }; }; then
2616
echo "$as_me: failed program was:" >&5
2617
sed 's/^/| /' conftest.$ac_ext >&5
2621
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2622
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2625
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2626
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2627
GCC=`test $ac_compiler_gnu = yes && echo yes`
2628
ac_test_CFLAGS=${CFLAGS+set}
2629
ac_save_CFLAGS=$CFLAGS
2631
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2632
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2633
if test "${ac_cv_prog_cc_g+set}" = set; then
2634
echo $ECHO_N "(cached) $ECHO_C" >&6
2636
cat >conftest.$ac_ext <<_ACEOF
2639
cat confdefs.h >>conftest.$ac_ext
2640
cat >>conftest.$ac_ext <<_ACEOF
2641
/* end confdefs.h. */
2651
rm -f conftest.$ac_objext
2652
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2653
(eval $ac_compile) 2>conftest.er1
2655
grep -v '^ *+' conftest.er1 >conftest.err
2657
cat conftest.err >&5
2658
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659
(exit $ac_status); } &&
2660
{ ac_try='test -z "$ac_c_werror_flag"
2661
|| test ! -s conftest.err'
2662
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666
(exit $ac_status); }; } &&
2667
{ ac_try='test -s conftest.$ac_objext'
2668
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672
(exit $ac_status); }; }; then
2675
echo "$as_me: failed program was:" >&5
2676
sed 's/^/| /' conftest.$ac_ext >&5
2680
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2682
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2683
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2684
if test "$ac_test_CFLAGS" = set; then
2685
CFLAGS=$ac_save_CFLAGS
2686
elif test $ac_cv_prog_cc_g = yes; then
2687
if test "$GCC" = yes; then
2693
if test "$GCC" = yes; then
2699
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2700
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2701
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2702
echo $ECHO_N "(cached) $ECHO_C" >&6
2704
ac_cv_prog_cc_stdc=no
2706
cat >conftest.$ac_ext <<_ACEOF
2709
cat confdefs.h >>conftest.$ac_ext
2710
cat >>conftest.$ac_ext <<_ACEOF
2711
/* end confdefs.h. */
2714
#include <sys/types.h>
2715
#include <sys/stat.h>
2716
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2717
struct buf { int x; };
2718
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2719
static char *e (p, i)
2725
static char *f (char * (*g) (char **, int), char **p, ...)
2730
s = g (p, va_arg (v,int));
2735
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2736
function prototypes and stuff, but not '\xHH' hex character constants.
2737
These don't provoke an error unfortunately, instead are silently treated
2738
as 'x'. The following induces an error, until -std1 is added to get
2739
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2740
array size at least. It's necessary to write '\x00'==0 to get something
2741
that's true only with -std1. */
2742
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2744
int test (int i, double x);
2745
struct s1 {int (*f) (int a);};
2746
struct s2 {int (*f) (double a);};
2747
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2753
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2758
# Don't try gcc -ansi; that turns off useful extensions and
2759
# breaks some systems' header files.
2760
# AIX -qlanglvl=ansi
2761
# Ultrix and OSF/1 -std1
2762
# HP-UX 10.20 and later -Ae
2763
# HP-UX older versions -Aa -D_HPUX_SOURCE
2764
# SVR4 -Xc -D__EXTENSIONS__
2765
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2767
CC="$ac_save_CC $ac_arg"
2768
rm -f conftest.$ac_objext
2769
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770
(eval $ac_compile) 2>conftest.er1
2772
grep -v '^ *+' conftest.er1 >conftest.err
2774
cat conftest.err >&5
2775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776
(exit $ac_status); } &&
2777
{ ac_try='test -z "$ac_c_werror_flag"
2778
|| test ! -s conftest.err'
2779
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783
(exit $ac_status); }; } &&
2784
{ ac_try='test -s conftest.$ac_objext'
2785
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789
(exit $ac_status); }; }; then
2790
ac_cv_prog_cc_stdc=$ac_arg
2793
echo "$as_me: failed program was:" >&5
2794
sed 's/^/| /' conftest.$ac_ext >&5
2797
rm -f conftest.err conftest.$ac_objext
2799
rm -f conftest.$ac_ext conftest.$ac_objext
2804
case "x$ac_cv_prog_cc_stdc" in
2806
echo "$as_me:$LINENO: result: none needed" >&5
2807
echo "${ECHO_T}none needed" >&6 ;;
2809
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2810
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2811
CC="$CC $ac_cv_prog_cc_stdc" ;;
2814
# Some people use a C++ compiler to compile C. Since we use `exit',
2815
# in C++ we need to declare it. In case someone uses the same compiler
2816
# for both compiling C and C++ we need to have the C++ compiler decide
2817
# the declaration of exit, since it's the most demanding environment.
2818
cat >conftest.$ac_ext <<_ACEOF
2823
rm -f conftest.$ac_objext
2824
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2825
(eval $ac_compile) 2>conftest.er1
2827
grep -v '^ *+' conftest.er1 >conftest.err
2829
cat conftest.err >&5
2830
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831
(exit $ac_status); } &&
2832
{ ac_try='test -z "$ac_c_werror_flag"
2833
|| test ! -s conftest.err'
2834
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838
(exit $ac_status); }; } &&
2839
{ ac_try='test -s conftest.$ac_objext'
2840
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844
(exit $ac_status); }; }; then
2845
for ac_declaration in \
2847
'extern "C" void std::exit (int) throw (); using std::exit;' \
2848
'extern "C" void std::exit (int); using std::exit;' \
2849
'extern "C" void exit (int) throw ();' \
2850
'extern "C" void exit (int);' \
2853
cat >conftest.$ac_ext <<_ACEOF
2856
cat confdefs.h >>conftest.$ac_ext
2857
cat >>conftest.$ac_ext <<_ACEOF
2858
/* end confdefs.h. */
2869
rm -f conftest.$ac_objext
2870
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2871
(eval $ac_compile) 2>conftest.er1
2873
grep -v '^ *+' conftest.er1 >conftest.err
2875
cat conftest.err >&5
2876
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877
(exit $ac_status); } &&
2878
{ ac_try='test -z "$ac_c_werror_flag"
2879
|| test ! -s conftest.err'
2880
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884
(exit $ac_status); }; } &&
2885
{ ac_try='test -s conftest.$ac_objext'
2886
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890
(exit $ac_status); }; }; then
2893
echo "$as_me: failed program was:" >&5
2894
sed 's/^/| /' conftest.$ac_ext >&5
2898
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2899
cat >conftest.$ac_ext <<_ACEOF
2902
cat confdefs.h >>conftest.$ac_ext
2903
cat >>conftest.$ac_ext <<_ACEOF
2904
/* end confdefs.h. */
2914
rm -f conftest.$ac_objext
2915
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2916
(eval $ac_compile) 2>conftest.er1
2918
grep -v '^ *+' conftest.er1 >conftest.err
2920
cat conftest.err >&5
2921
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922
(exit $ac_status); } &&
2923
{ ac_try='test -z "$ac_c_werror_flag"
2924
|| test ! -s conftest.err'
2925
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929
(exit $ac_status); }; } &&
2930
{ ac_try='test -s conftest.$ac_objext'
2931
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935
(exit $ac_status); }; }; then
2938
echo "$as_me: failed program was:" >&5
2939
sed 's/^/| /' conftest.$ac_ext >&5
2942
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2945
if test -n "$ac_declaration"; then
2946
echo '#ifdef __cplusplus' >>confdefs.h
2947
echo $ac_declaration >>confdefs.h
2948
echo '#endif' >>confdefs.h
2952
echo "$as_me: failed program was:" >&5
2953
sed 's/^/| /' conftest.$ac_ext >&5
2956
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2958
ac_cpp='$CPP $CPPFLAGS'
2959
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2963
depcc="$CC" am_compiler_list=
2965
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2966
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2967
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2968
echo $ECHO_N "(cached) $ECHO_C" >&6
2970
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2971
# We make a subdir and do the tests there. Otherwise we can end up
2972
# making bogus files that we don't know about and never remove. For
2973
# instance it was reported that on HP-UX the gcc test will end up
2974
# making a dummy file named `D' -- because `-MD' means `put the output
2977
# Copy depcomp to subdir because otherwise we won't find it if we're
2978
# using a relative directory.
2979
cp "$am_depcomp" conftest.dir
2981
# We will build objects and dependencies in a subdirectory because
2982
# it helps to detect inapplicable dependency modes. For instance
2983
# both Tru64's cc and ICC support -MD to output dependencies as a
2984
# side effect of compilation, but ICC will put the dependencies in
2985
# the current directory while Tru64 will put them in the object
2989
am_cv_CC_dependencies_compiler_type=none
2990
if test "$am_compiler_list" = ""; then
2991
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2993
for depmode in $am_compiler_list; do
2994
# Setup a source with many dependencies, because some compilers
2995
# like to wrap large dependency lists on column 80 (with \), and
2996
# we should not choose a depcomp mode which is confused by this.
2998
# We need to recreate these files for each test, as the compiler may
2999
# overwrite some of them when testing with obscure command lines.
3000
# This happens at least with the AIX C compiler.
3002
for i in 1 2 3 4 5 6; do
3003
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3006
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3010
# after this tag, mechanisms are not by side-effect, so they'll
3011
# only be used when explicitly requested
3012
if test "x$enable_dependency_tracking" = xyes; then
3020
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3021
# mode. It turns out that the SunPro C++ compiler does not properly
3022
# handle `-M -o', and we need to detect this.
3023
if depmode=$depmode \
3024
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3025
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3026
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3027
>/dev/null 2>conftest.err &&
3028
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3029
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3030
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3031
# icc doesn't choke on unknown options, it will just issue warnings
3032
# (even with -Werror). So we grep stderr for any message
3033
# that says an option was ignored.
3034
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3035
am_cv_CC_dependencies_compiler_type=$depmode
3044
am_cv_CC_dependencies_compiler_type=none
3048
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3049
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3050
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3055
test "x$enable_dependency_tracking" != xno \
3056
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3058
am__fastdepCC_FALSE='#'
3060
am__fastdepCC_TRUE='#'
3061
am__fastdepCC_FALSE=
3067
echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3068
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3069
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3070
echo $ECHO_N "(cached) $ECHO_C" >&6
3072
ac_check_lib_save_LIBS=$LIBS
3073
LIBS="-lcposix $LIBS"
3074
cat >conftest.$ac_ext <<_ACEOF
3077
cat confdefs.h >>conftest.$ac_ext
3078
cat >>conftest.$ac_ext <<_ACEOF
3079
/* end confdefs.h. */
3081
/* Override any gcc2 internal prototype to avoid an error. */
3085
/* We use char because int might match the return type of a gcc2
3086
builtin and then its argument prototype would still apply. */
3096
rm -f conftest.$ac_objext conftest$ac_exeext
3097
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3098
(eval $ac_link) 2>conftest.er1
3100
grep -v '^ *+' conftest.er1 >conftest.err
3102
cat conftest.err >&5
3103
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104
(exit $ac_status); } &&
3105
{ ac_try='test -z "$ac_c_werror_flag"
3106
|| test ! -s conftest.err'
3107
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3110
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111
(exit $ac_status); }; } &&
3112
{ ac_try='test -s conftest$ac_exeext'
3113
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117
(exit $ac_status); }; }; then
3118
ac_cv_lib_cposix_strerror=yes
3120
echo "$as_me: failed program was:" >&5
3121
sed 's/^/| /' conftest.$ac_ext >&5
3123
ac_cv_lib_cposix_strerror=no
3125
rm -f conftest.err conftest.$ac_objext \
3126
conftest$ac_exeext conftest.$ac_ext
3127
LIBS=$ac_check_lib_save_LIBS
3129
echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3130
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3131
if test $ac_cv_lib_cposix_strerror = yes; then
3132
LIBS="$LIBS -lcposix"
3138
ac_cpp='$CPP $CPPFLAGS'
3139
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142
if test -n "$ac_tool_prefix"; then
3143
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3144
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3145
echo "$as_me:$LINENO: checking for $ac_word" >&5
3146
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3147
if test "${ac_cv_prog_CC+set}" = set; then
3148
echo $ECHO_N "(cached) $ECHO_C" >&6
3150
if test -n "$CC"; then
3151
ac_cv_prog_CC="$CC" # Let the user override the test.
3153
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157
test -z "$as_dir" && as_dir=.
3158
for ac_exec_ext in '' $ac_executable_extensions; do
3159
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3160
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3161
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3170
if test -n "$CC"; then
3171
echo "$as_me:$LINENO: result: $CC" >&5
3172
echo "${ECHO_T}$CC" >&6
3174
echo "$as_me:$LINENO: result: no" >&5
3175
echo "${ECHO_T}no" >&6
3179
if test -z "$ac_cv_prog_CC"; then
3181
# Extract the first word of "gcc", so it can be a program name with args.
3182
set dummy gcc; ac_word=$2
3183
echo "$as_me:$LINENO: checking for $ac_word" >&5
3184
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3185
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3186
echo $ECHO_N "(cached) $ECHO_C" >&6
3188
if test -n "$ac_ct_CC"; then
3189
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3191
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195
test -z "$as_dir" && as_dir=.
3196
for ac_exec_ext in '' $ac_executable_extensions; do
3197
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3198
ac_cv_prog_ac_ct_CC="gcc"
3199
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3207
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3208
if test -n "$ac_ct_CC"; then
3209
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3210
echo "${ECHO_T}$ac_ct_CC" >&6
3212
echo "$as_me:$LINENO: result: no" >&5
3213
echo "${ECHO_T}no" >&6
3221
if test -z "$CC"; then
3222
if test -n "$ac_tool_prefix"; then
3223
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3224
set dummy ${ac_tool_prefix}cc; ac_word=$2
3225
echo "$as_me:$LINENO: checking for $ac_word" >&5
3226
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3227
if test "${ac_cv_prog_CC+set}" = set; then
3228
echo $ECHO_N "(cached) $ECHO_C" >&6
3230
if test -n "$CC"; then
3231
ac_cv_prog_CC="$CC" # Let the user override the test.
3233
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237
test -z "$as_dir" && as_dir=.
3238
for ac_exec_ext in '' $ac_executable_extensions; do
3239
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3240
ac_cv_prog_CC="${ac_tool_prefix}cc"
3241
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3250
if test -n "$CC"; then
3251
echo "$as_me:$LINENO: result: $CC" >&5
3252
echo "${ECHO_T}$CC" >&6
3254
echo "$as_me:$LINENO: result: no" >&5
3255
echo "${ECHO_T}no" >&6
3259
if test -z "$ac_cv_prog_CC"; then
3261
# Extract the first word of "cc", so it can be a program name with args.
3262
set dummy cc; ac_word=$2
3263
echo "$as_me:$LINENO: checking for $ac_word" >&5
3264
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3265
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3266
echo $ECHO_N "(cached) $ECHO_C" >&6
3268
if test -n "$ac_ct_CC"; then
3269
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3271
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275
test -z "$as_dir" && as_dir=.
3276
for ac_exec_ext in '' $ac_executable_extensions; do
3277
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3278
ac_cv_prog_ac_ct_CC="cc"
3279
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3287
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3288
if test -n "$ac_ct_CC"; then
3289
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3290
echo "${ECHO_T}$ac_ct_CC" >&6
3292
echo "$as_me:$LINENO: result: no" >&5
3293
echo "${ECHO_T}no" >&6
3302
if test -z "$CC"; then
3303
# Extract the first word of "cc", so it can be a program name with args.
3304
set dummy cc; ac_word=$2
3305
echo "$as_me:$LINENO: checking for $ac_word" >&5
3306
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3307
if test "${ac_cv_prog_CC+set}" = set; then
3308
echo $ECHO_N "(cached) $ECHO_C" >&6
3310
if test -n "$CC"; then
3311
ac_cv_prog_CC="$CC" # Let the user override the test.
3314
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318
test -z "$as_dir" && as_dir=.
3319
for ac_exec_ext in '' $ac_executable_extensions; do
3320
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3322
ac_prog_rejected=yes
3326
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332
if test $ac_prog_rejected = yes; then
3333
# We found a bogon in the path, so make sure we never use it.
3334
set dummy $ac_cv_prog_CC
3336
if test $# != 0; then
3337
# We chose a different compiler from the bogus one.
3338
# However, it has the same basename, so the bogon will be chosen
3339
# first if we set CC to just the basename; use the full file name.
3341
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3347
if test -n "$CC"; then
3348
echo "$as_me:$LINENO: result: $CC" >&5
3349
echo "${ECHO_T}$CC" >&6
3351
echo "$as_me:$LINENO: result: no" >&5
3352
echo "${ECHO_T}no" >&6
3356
if test -z "$CC"; then
3357
if test -n "$ac_tool_prefix"; then
3360
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3361
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3362
echo "$as_me:$LINENO: checking for $ac_word" >&5
3363
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3364
if test "${ac_cv_prog_CC+set}" = set; then
3365
echo $ECHO_N "(cached) $ECHO_C" >&6
3367
if test -n "$CC"; then
3368
ac_cv_prog_CC="$CC" # Let the user override the test.
3370
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374
test -z "$as_dir" && as_dir=.
3375
for ac_exec_ext in '' $ac_executable_extensions; do
3376
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3377
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3378
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3387
if test -n "$CC"; then
3388
echo "$as_me:$LINENO: result: $CC" >&5
3389
echo "${ECHO_T}$CC" >&6
3391
echo "$as_me:$LINENO: result: no" >&5
3392
echo "${ECHO_T}no" >&6
3395
test -n "$CC" && break
3398
if test -z "$CC"; then
3402
# Extract the first word of "$ac_prog", so it can be a program name with args.
3403
set dummy $ac_prog; ac_word=$2
3404
echo "$as_me:$LINENO: checking for $ac_word" >&5
3405
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3406
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3407
echo $ECHO_N "(cached) $ECHO_C" >&6
3409
if test -n "$ac_ct_CC"; then
3410
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3412
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416
test -z "$as_dir" && as_dir=.
3417
for ac_exec_ext in '' $ac_executable_extensions; do
3418
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3419
ac_cv_prog_ac_ct_CC="$ac_prog"
3420
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3428
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3429
if test -n "$ac_ct_CC"; then
3430
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3431
echo "${ECHO_T}$ac_ct_CC" >&6
3433
echo "$as_me:$LINENO: result: no" >&5
3434
echo "${ECHO_T}no" >&6
3437
test -n "$ac_ct_CC" && break
3446
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3447
See \`config.log' for more details." >&5
3448
echo "$as_me: error: no acceptable C compiler found in \$PATH
3449
See \`config.log' for more details." >&2;}
3450
{ (exit 1); exit 1; }; }
3452
# Provide some information about the compiler.
3453
echo "$as_me:$LINENO:" \
3454
"checking for C compiler version" >&5
3455
ac_compiler=`set X $ac_compile; echo $2`
3456
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3457
(eval $ac_compiler --version </dev/null >&5) 2>&5
3459
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460
(exit $ac_status); }
3461
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3462
(eval $ac_compiler -v </dev/null >&5) 2>&5
3464
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465
(exit $ac_status); }
3466
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3467
(eval $ac_compiler -V </dev/null >&5) 2>&5
3469
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470
(exit $ac_status); }
3472
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3473
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3474
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3475
echo $ECHO_N "(cached) $ECHO_C" >&6
3477
cat >conftest.$ac_ext <<_ACEOF
3480
cat confdefs.h >>conftest.$ac_ext
3481
cat >>conftest.$ac_ext <<_ACEOF
3482
/* end confdefs.h. */
3495
rm -f conftest.$ac_objext
3496
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3497
(eval $ac_compile) 2>conftest.er1
3499
grep -v '^ *+' conftest.er1 >conftest.err
3501
cat conftest.err >&5
3502
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503
(exit $ac_status); } &&
3504
{ ac_try='test -z "$ac_c_werror_flag"
3505
|| test ! -s conftest.err'
3506
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3509
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510
(exit $ac_status); }; } &&
3511
{ ac_try='test -s conftest.$ac_objext'
3512
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516
(exit $ac_status); }; }; then
3519
echo "$as_me: failed program was:" >&5
3520
sed 's/^/| /' conftest.$ac_ext >&5
3524
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3525
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3528
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3529
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3530
GCC=`test $ac_compiler_gnu = yes && echo yes`
3531
ac_test_CFLAGS=${CFLAGS+set}
3532
ac_save_CFLAGS=$CFLAGS
3534
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3535
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3536
if test "${ac_cv_prog_cc_g+set}" = set; then
3537
echo $ECHO_N "(cached) $ECHO_C" >&6
3539
cat >conftest.$ac_ext <<_ACEOF
3542
cat confdefs.h >>conftest.$ac_ext
3543
cat >>conftest.$ac_ext <<_ACEOF
3544
/* end confdefs.h. */
3554
rm -f conftest.$ac_objext
3555
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3556
(eval $ac_compile) 2>conftest.er1
3558
grep -v '^ *+' conftest.er1 >conftest.err
3560
cat conftest.err >&5
3561
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562
(exit $ac_status); } &&
3563
{ ac_try='test -z "$ac_c_werror_flag"
3564
|| test ! -s conftest.err'
3565
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569
(exit $ac_status); }; } &&
3570
{ ac_try='test -s conftest.$ac_objext'
3571
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575
(exit $ac_status); }; }; then
3578
echo "$as_me: failed program was:" >&5
3579
sed 's/^/| /' conftest.$ac_ext >&5
3583
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3585
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3586
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3587
if test "$ac_test_CFLAGS" = set; then
3588
CFLAGS=$ac_save_CFLAGS
3589
elif test $ac_cv_prog_cc_g = yes; then
3590
if test "$GCC" = yes; then
3596
if test "$GCC" = yes; then
3602
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3603
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3604
if test "${ac_cv_prog_cc_stdc+set}" = set; then
3605
echo $ECHO_N "(cached) $ECHO_C" >&6
3607
ac_cv_prog_cc_stdc=no
3609
cat >conftest.$ac_ext <<_ACEOF
3612
cat confdefs.h >>conftest.$ac_ext
3613
cat >>conftest.$ac_ext <<_ACEOF
3614
/* end confdefs.h. */
3617
#include <sys/types.h>
3618
#include <sys/stat.h>
3619
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3620
struct buf { int x; };
3621
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3622
static char *e (p, i)
3628
static char *f (char * (*g) (char **, int), char **p, ...)
3633
s = g (p, va_arg (v,int));
3638
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3639
function prototypes and stuff, but not '\xHH' hex character constants.
3640
These don't provoke an error unfortunately, instead are silently treated
3641
as 'x'. The following induces an error, until -std1 is added to get
3642
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3643
array size at least. It's necessary to write '\x00'==0 to get something
3644
that's true only with -std1. */
3645
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3647
int test (int i, double x);
3648
struct s1 {int (*f) (int a);};
3649
struct s2 {int (*f) (double a);};
3650
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3656
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3661
# Don't try gcc -ansi; that turns off useful extensions and
3662
# breaks some systems' header files.
3663
# AIX -qlanglvl=ansi
3664
# Ultrix and OSF/1 -std1
3665
# HP-UX 10.20 and later -Ae
3666
# HP-UX older versions -Aa -D_HPUX_SOURCE
3667
# SVR4 -Xc -D__EXTENSIONS__
3668
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3670
CC="$ac_save_CC $ac_arg"
3671
rm -f conftest.$ac_objext
3672
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3673
(eval $ac_compile) 2>conftest.er1
3675
grep -v '^ *+' conftest.er1 >conftest.err
3677
cat conftest.err >&5
3678
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679
(exit $ac_status); } &&
3680
{ ac_try='test -z "$ac_c_werror_flag"
3681
|| test ! -s conftest.err'
3682
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686
(exit $ac_status); }; } &&
3687
{ ac_try='test -s conftest.$ac_objext'
3688
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692
(exit $ac_status); }; }; then
3693
ac_cv_prog_cc_stdc=$ac_arg
3696
echo "$as_me: failed program was:" >&5
3697
sed 's/^/| /' conftest.$ac_ext >&5
3700
rm -f conftest.err conftest.$ac_objext
3702
rm -f conftest.$ac_ext conftest.$ac_objext
3707
case "x$ac_cv_prog_cc_stdc" in
3709
echo "$as_me:$LINENO: result: none needed" >&5
3710
echo "${ECHO_T}none needed" >&6 ;;
3712
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3713
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3714
CC="$CC $ac_cv_prog_cc_stdc" ;;
3717
# Some people use a C++ compiler to compile C. Since we use `exit',
3718
# in C++ we need to declare it. In case someone uses the same compiler
3719
# for both compiling C and C++ we need to have the C++ compiler decide
3720
# the declaration of exit, since it's the most demanding environment.
3721
cat >conftest.$ac_ext <<_ACEOF
3726
rm -f conftest.$ac_objext
3727
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3728
(eval $ac_compile) 2>conftest.er1
3730
grep -v '^ *+' conftest.er1 >conftest.err
3732
cat conftest.err >&5
3733
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734
(exit $ac_status); } &&
3735
{ ac_try='test -z "$ac_c_werror_flag"
3736
|| test ! -s conftest.err'
3737
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741
(exit $ac_status); }; } &&
3742
{ ac_try='test -s conftest.$ac_objext'
3743
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747
(exit $ac_status); }; }; then
3748
for ac_declaration in \
3750
'extern "C" void std::exit (int) throw (); using std::exit;' \
3751
'extern "C" void std::exit (int); using std::exit;' \
3752
'extern "C" void exit (int) throw ();' \
3753
'extern "C" void exit (int);' \
3756
cat >conftest.$ac_ext <<_ACEOF
3759
cat confdefs.h >>conftest.$ac_ext
3760
cat >>conftest.$ac_ext <<_ACEOF
3761
/* end confdefs.h. */
3772
rm -f conftest.$ac_objext
3773
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3774
(eval $ac_compile) 2>conftest.er1
3776
grep -v '^ *+' conftest.er1 >conftest.err
3778
cat conftest.err >&5
3779
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780
(exit $ac_status); } &&
3781
{ ac_try='test -z "$ac_c_werror_flag"
3782
|| test ! -s conftest.err'
3783
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787
(exit $ac_status); }; } &&
3788
{ ac_try='test -s conftest.$ac_objext'
3789
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793
(exit $ac_status); }; }; then
3796
echo "$as_me: failed program was:" >&5
3797
sed 's/^/| /' conftest.$ac_ext >&5
3801
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3802
cat >conftest.$ac_ext <<_ACEOF
3805
cat confdefs.h >>conftest.$ac_ext
3806
cat >>conftest.$ac_ext <<_ACEOF
3807
/* end confdefs.h. */
3817
rm -f conftest.$ac_objext
3818
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3819
(eval $ac_compile) 2>conftest.er1
3821
grep -v '^ *+' conftest.er1 >conftest.err
3823
cat conftest.err >&5
3824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825
(exit $ac_status); } &&
3826
{ ac_try='test -z "$ac_c_werror_flag"
3827
|| test ! -s conftest.err'
3828
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3831
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832
(exit $ac_status); }; } &&
3833
{ ac_try='test -s conftest.$ac_objext'
3834
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838
(exit $ac_status); }; }; then
3841
echo "$as_me: failed program was:" >&5
3842
sed 's/^/| /' conftest.$ac_ext >&5
3845
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3848
if test -n "$ac_declaration"; then
3849
echo '#ifdef __cplusplus' >>confdefs.h
3850
echo $ac_declaration >>confdefs.h
3851
echo '#endif' >>confdefs.h
3855
echo "$as_me: failed program was:" >&5
3856
sed 's/^/| /' conftest.$ac_ext >&5
3859
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3861
ac_cpp='$CPP $CPPFLAGS'
3862
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3866
depcc="$CC" am_compiler_list=
3868
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3869
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3870
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3871
echo $ECHO_N "(cached) $ECHO_C" >&6
3873
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3874
# We make a subdir and do the tests there. Otherwise we can end up
3875
# making bogus files that we don't know about and never remove. For
3876
# instance it was reported that on HP-UX the gcc test will end up
3877
# making a dummy file named `D' -- because `-MD' means `put the output
3880
# Copy depcomp to subdir because otherwise we won't find it if we're
3881
# using a relative directory.
3882
cp "$am_depcomp" conftest.dir
3884
# We will build objects and dependencies in a subdirectory because
3885
# it helps to detect inapplicable dependency modes. For instance
3886
# both Tru64's cc and ICC support -MD to output dependencies as a
3887
# side effect of compilation, but ICC will put the dependencies in
3888
# the current directory while Tru64 will put them in the object
3892
am_cv_CC_dependencies_compiler_type=none
3893
if test "$am_compiler_list" = ""; then
3894
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3896
for depmode in $am_compiler_list; do
3897
# Setup a source with many dependencies, because some compilers
3898
# like to wrap large dependency lists on column 80 (with \), and
3899
# we should not choose a depcomp mode which is confused by this.
3901
# We need to recreate these files for each test, as the compiler may
3902
# overwrite some of them when testing with obscure command lines.
3903
# This happens at least with the AIX C compiler.
3905
for i in 1 2 3 4 5 6; do
3906
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3909
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3913
# after this tag, mechanisms are not by side-effect, so they'll
3914
# only be used when explicitly requested
3915
if test "x$enable_dependency_tracking" = xyes; then
3923
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3924
# mode. It turns out that the SunPro C++ compiler does not properly
3925
# handle `-M -o', and we need to detect this.
3926
if depmode=$depmode \
3927
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3928
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3929
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3930
>/dev/null 2>conftest.err &&
3931
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3932
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3933
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3934
# icc doesn't choke on unknown options, it will just issue warnings
3935
# (even with -Werror). So we grep stderr for any message
3936
# that says an option was ignored.
3937
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3938
am_cv_CC_dependencies_compiler_type=$depmode
3947
am_cv_CC_dependencies_compiler_type=none
3951
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3952
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3953
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3958
test "x$enable_dependency_tracking" != xno \
3959
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3961
am__fastdepCC_FALSE='#'
3963
am__fastdepCC_TRUE='#'
3964
am__fastdepCC_FALSE=
3969
ac_cpp='$CPP $CPPFLAGS'
3970
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3971
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3972
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3973
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3974
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3975
# On Suns, sometimes $CPP names a directory.
3976
if test -n "$CPP" && test -d "$CPP"; then
3979
if test -z "$CPP"; then
3980
if test "${ac_cv_prog_CPP+set}" = set; then
3981
echo $ECHO_N "(cached) $ECHO_C" >&6
3983
# Double quotes because CPP needs to be expanded
3984
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3987
for ac_c_preproc_warn_flag in '' yes
3989
# Use a header file that comes with gcc, so configuring glibc
3990
# with a fresh cross-compiler works.
3991
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3992
# <limits.h> exists even on freestanding compilers.
3993
# On the NeXT, cc -E runs the code through the compiler's parser,
3994
# not just through cpp. "Syntax error" is here to catch this case.
3995
cat >conftest.$ac_ext <<_ACEOF
3998
cat confdefs.h >>conftest.$ac_ext
3999
cat >>conftest.$ac_ext <<_ACEOF
4000
/* end confdefs.h. */
4002
# include <limits.h>
4004
# include <assert.h>
4008
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4009
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4011
grep -v '^ *+' conftest.er1 >conftest.err
4013
cat conftest.err >&5
4014
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015
(exit $ac_status); } >/dev/null; then
4016
if test -s conftest.err; then
4017
ac_cpp_err=$ac_c_preproc_warn_flag
4018
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4025
if test -z "$ac_cpp_err"; then
4028
echo "$as_me: failed program was:" >&5
4029
sed 's/^/| /' conftest.$ac_ext >&5
4031
# Broken: fails on valid input.
4034
rm -f conftest.err conftest.$ac_ext
4036
# OK, works on sane cases. Now check whether non-existent headers
4037
# can be detected and how.
4038
cat >conftest.$ac_ext <<_ACEOF
4041
cat confdefs.h >>conftest.$ac_ext
4042
cat >>conftest.$ac_ext <<_ACEOF
4043
/* end confdefs.h. */
4044
#include <ac_nonexistent.h>
4046
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4047
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4049
grep -v '^ *+' conftest.er1 >conftest.err
4051
cat conftest.err >&5
4052
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053
(exit $ac_status); } >/dev/null; then
4054
if test -s conftest.err; then
4055
ac_cpp_err=$ac_c_preproc_warn_flag
4056
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4063
if test -z "$ac_cpp_err"; then
4064
# Broken: success on invalid input.
4067
echo "$as_me: failed program was:" >&5
4068
sed 's/^/| /' conftest.$ac_ext >&5
4070
# Passes both tests.
4074
rm -f conftest.err conftest.$ac_ext
4077
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4078
rm -f conftest.err conftest.$ac_ext
4079
if $ac_preproc_ok; then
4091
echo "$as_me:$LINENO: result: $CPP" >&5
4092
echo "${ECHO_T}$CPP" >&6
4094
for ac_c_preproc_warn_flag in '' yes
4096
# Use a header file that comes with gcc, so configuring glibc
4097
# with a fresh cross-compiler works.
4098
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4099
# <limits.h> exists even on freestanding compilers.
4100
# On the NeXT, cc -E runs the code through the compiler's parser,
4101
# not just through cpp. "Syntax error" is here to catch this case.
4102
cat >conftest.$ac_ext <<_ACEOF
4105
cat confdefs.h >>conftest.$ac_ext
4106
cat >>conftest.$ac_ext <<_ACEOF
4107
/* end confdefs.h. */
4109
# include <limits.h>
4111
# include <assert.h>
4115
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4116
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4118
grep -v '^ *+' conftest.er1 >conftest.err
4120
cat conftest.err >&5
4121
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122
(exit $ac_status); } >/dev/null; then
4123
if test -s conftest.err; then
4124
ac_cpp_err=$ac_c_preproc_warn_flag
4125
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4132
if test -z "$ac_cpp_err"; then
4135
echo "$as_me: failed program was:" >&5
4136
sed 's/^/| /' conftest.$ac_ext >&5
4138
# Broken: fails on valid input.
4141
rm -f conftest.err conftest.$ac_ext
4143
# OK, works on sane cases. Now check whether non-existent headers
4144
# can be detected and how.
4145
cat >conftest.$ac_ext <<_ACEOF
4148
cat confdefs.h >>conftest.$ac_ext
4149
cat >>conftest.$ac_ext <<_ACEOF
4150
/* end confdefs.h. */
4151
#include <ac_nonexistent.h>
4153
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4154
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4156
grep -v '^ *+' conftest.er1 >conftest.err
4158
cat conftest.err >&5
4159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160
(exit $ac_status); } >/dev/null; then
4161
if test -s conftest.err; then
4162
ac_cpp_err=$ac_c_preproc_warn_flag
4163
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4170
if test -z "$ac_cpp_err"; then
4171
# Broken: success on invalid input.
4174
echo "$as_me: failed program was:" >&5
4175
sed 's/^/| /' conftest.$ac_ext >&5
4177
# Passes both tests.
4181
rm -f conftest.err conftest.$ac_ext
4184
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4185
rm -f conftest.err conftest.$ac_ext
4186
if $ac_preproc_ok; then
4189
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4190
See \`config.log' for more details." >&5
4191
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4192
See \`config.log' for more details." >&2;}
4193
{ (exit 1); exit 1; }; }
4197
ac_cpp='$CPP $CPPFLAGS'
4198
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4203
echo "$as_me:$LINENO: checking for egrep" >&5
4204
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4205
if test "${ac_cv_prog_egrep+set}" = set; then
4206
echo $ECHO_N "(cached) $ECHO_C" >&6
4208
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4209
then ac_cv_prog_egrep='grep -E'
4210
else ac_cv_prog_egrep='egrep'
4213
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4214
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4215
EGREP=$ac_cv_prog_egrep
4218
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4219
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4220
if test "${ac_cv_header_stdc+set}" = set; then
4221
echo $ECHO_N "(cached) $ECHO_C" >&6
4223
cat >conftest.$ac_ext <<_ACEOF
4226
cat confdefs.h >>conftest.$ac_ext
4227
cat >>conftest.$ac_ext <<_ACEOF
4228
/* end confdefs.h. */
4242
rm -f conftest.$ac_objext
4243
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4244
(eval $ac_compile) 2>conftest.er1
4246
grep -v '^ *+' conftest.er1 >conftest.err
4248
cat conftest.err >&5
4249
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250
(exit $ac_status); } &&
4251
{ ac_try='test -z "$ac_c_werror_flag"
4252
|| test ! -s conftest.err'
4253
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257
(exit $ac_status); }; } &&
4258
{ ac_try='test -s conftest.$ac_objext'
4259
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263
(exit $ac_status); }; }; then
4264
ac_cv_header_stdc=yes
4266
echo "$as_me: failed program was:" >&5
4267
sed 's/^/| /' conftest.$ac_ext >&5
4269
ac_cv_header_stdc=no
4271
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4273
if test $ac_cv_header_stdc = yes; then
4274
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4275
cat >conftest.$ac_ext <<_ACEOF
4278
cat confdefs.h >>conftest.$ac_ext
4279
cat >>conftest.$ac_ext <<_ACEOF
4280
/* end confdefs.h. */
4284
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4285
$EGREP "memchr" >/dev/null 2>&1; then
4288
ac_cv_header_stdc=no
4294
if test $ac_cv_header_stdc = yes; then
4295
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4296
cat >conftest.$ac_ext <<_ACEOF
4299
cat confdefs.h >>conftest.$ac_ext
4300
cat >>conftest.$ac_ext <<_ACEOF
4301
/* end confdefs.h. */
4305
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4306
$EGREP "free" >/dev/null 2>&1; then
4309
ac_cv_header_stdc=no
4315
if test $ac_cv_header_stdc = yes; then
4316
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4317
if test "$cross_compiling" = yes; then
4320
cat >conftest.$ac_ext <<_ACEOF
4323
cat confdefs.h >>conftest.$ac_ext
4324
cat >>conftest.$ac_ext <<_ACEOF
4325
/* end confdefs.h. */
4327
#if ((' ' & 0x0FF) == 0x020)
4328
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4329
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4331
# define ISLOWER(c) \
4332
(('a' <= (c) && (c) <= 'i') \
4333
|| ('j' <= (c) && (c) <= 'r') \
4334
|| ('s' <= (c) && (c) <= 'z'))
4335
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4338
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4343
for (i = 0; i < 256; i++)
4344
if (XOR (islower (i), ISLOWER (i))
4345
|| toupper (i) != TOUPPER (i))
4350
rm -f conftest$ac_exeext
4351
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4352
(eval $ac_link) 2>&5
4354
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4356
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360
(exit $ac_status); }; }; then
4363
echo "$as_me: program exited with status $ac_status" >&5
4364
echo "$as_me: failed program was:" >&5
4365
sed 's/^/| /' conftest.$ac_ext >&5
4368
ac_cv_header_stdc=no
4370
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4374
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4375
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4376
if test $ac_cv_header_stdc = yes; then
4378
cat >>confdefs.h <<\_ACEOF
4379
#define STDC_HEADERS 1
4386
# Check whether --enable-shared or --disable-shared was given.
4387
if test "${enable_shared+set}" = set; then
4388
enableval="$enable_shared"
4389
p=${PACKAGE-default}
4391
yes) enable_shared=yes ;;
4392
no) enable_shared=no ;;
4395
# Look at the argument we got. We use all the common list separators.
4396
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4397
for pkg in $enableval; do
4399
if test "X$pkg" = "X$p"; then
4410
# Check whether --enable-static or --disable-static was given.
4411
if test "${enable_static+set}" = set; then
4412
enableval="$enable_static"
4413
p=${PACKAGE-default}
4415
yes) enable_static=yes ;;
4416
no) enable_static=no ;;
4419
# Look at the argument we got. We use all the common list separators.
4420
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4421
for pkg in $enableval; do
4423
if test "X$pkg" = "X$p"; then
4434
# Check whether --enable-fast-install or --disable-fast-install was given.
4435
if test "${enable_fast_install+set}" = set; then
4436
enableval="$enable_fast_install"
4437
p=${PACKAGE-default}
4439
yes) enable_fast_install=yes ;;
4440
no) enable_fast_install=no ;;
4442
enable_fast_install=no
4443
# Look at the argument we got. We use all the common list separators.
4444
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4445
for pkg in $enableval; do
4447
if test "X$pkg" = "X$p"; then
4448
enable_fast_install=yes
4455
enable_fast_install=yes
4458
# Make sure we can run config.sub.
4459
$ac_config_sub sun4 >/dev/null 2>&1 ||
4460
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4461
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4462
{ (exit 1); exit 1; }; }
4464
echo "$as_me:$LINENO: checking build system type" >&5
4465
echo $ECHO_N "checking build system type... $ECHO_C" >&6
4466
if test "${ac_cv_build+set}" = set; then
4467
echo $ECHO_N "(cached) $ECHO_C" >&6
4469
ac_cv_build_alias=$build_alias
4470
test -z "$ac_cv_build_alias" &&
4471
ac_cv_build_alias=`$ac_config_guess`
4472
test -z "$ac_cv_build_alias" &&
4473
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4474
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4475
{ (exit 1); exit 1; }; }
4476
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4477
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4478
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4479
{ (exit 1); exit 1; }; }
4482
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4483
echo "${ECHO_T}$ac_cv_build" >&6
4485
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4486
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4487
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4490
echo "$as_me:$LINENO: checking host system type" >&5
4491
echo $ECHO_N "checking host system type... $ECHO_C" >&6
4492
if test "${ac_cv_host+set}" = set; then
4493
echo $ECHO_N "(cached) $ECHO_C" >&6
4495
ac_cv_host_alias=$host_alias
4496
test -z "$ac_cv_host_alias" &&
4497
ac_cv_host_alias=$ac_cv_build_alias
4498
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4499
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4500
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4501
{ (exit 1); exit 1; }; }
4504
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4505
echo "${ECHO_T}$ac_cv_host" >&6
4507
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4508
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4509
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4512
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4513
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4514
if test "${lt_cv_path_SED+set}" = set; then
4515
echo $ECHO_N "(cached) $ECHO_C" >&6
4517
# Loop through the user's path and test for sed and gsed.
4518
# Then use that list of sed's as ones to test for truncation.
4519
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523
test -z "$as_dir" && as_dir=.
4524
for lt_ac_prog in sed gsed; do
4525
for ac_exec_ext in '' $ac_executable_extensions; do
4526
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4527
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4534
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4535
# along with /bin/sed that truncates output.
4536
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4537
test ! -f $lt_ac_sed && break
4538
cat /dev/null > conftest.in
4540
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4541
# Check for GNU sed and select it if it is found.
4542
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4543
lt_cv_path_SED=$lt_ac_sed
4547
cat conftest.in conftest.in >conftest.tmp
4548
mv conftest.tmp conftest.in
4549
cp conftest.in conftest.nl
4551
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4552
cmp -s conftest.out conftest.nl || break
4553
# 10000 chars as input seems more than enough
4554
test $lt_ac_count -gt 10 && break
4555
lt_ac_count=`expr $lt_ac_count + 1`
4556
if test $lt_ac_count -gt $lt_ac_max; then
4557
lt_ac_max=$lt_ac_count
4558
lt_cv_path_SED=$lt_ac_sed
4566
echo "$as_me:$LINENO: result: $SED" >&5
4567
echo "${ECHO_T}$SED" >&6
4570
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4571
if test "${with_gnu_ld+set}" = set; then
4572
withval="$with_gnu_ld"
4573
test "$withval" = no || with_gnu_ld=yes
4578
if test "$GCC" = yes; then
4579
# Check if gcc -print-prog-name=ld gives a path.
4580
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4581
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4584
# gcc leaves a trailing carriage return which upsets mingw
4585
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4587
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4590
# Accept absolute paths.
4592
re_direlt='/[^/][^/]*/\.\./'
4593
# Canonicalize the pathname of ld
4594
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4595
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4596
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4598
test -z "$LD" && LD="$ac_prog"
4601
# If it fails, then pretend we aren't using GCC.
4605
# If it is relative, then search for the first ld in PATH.
4609
elif test "$with_gnu_ld" = yes; then
4610
echo "$as_me:$LINENO: checking for GNU ld" >&5
4611
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4613
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4614
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4616
if test "${lt_cv_path_LD+set}" = set; then
4617
echo $ECHO_N "(cached) $ECHO_C" >&6
4619
if test -z "$LD"; then
4620
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4621
for ac_dir in $PATH; do
4623
test -z "$ac_dir" && ac_dir=.
4624
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4625
lt_cv_path_LD="$ac_dir/$ac_prog"
4626
# Check to see if the program is GNU ld. I'd rather use --version,
4627
# but apparently some GNU ld's only accept -v.
4628
# Break only if it was the GNU/non-GNU ld that we prefer.
4629
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4630
*GNU* | *'with BFD'*)
4631
test "$with_gnu_ld" != no && break
4634
test "$with_gnu_ld" != yes && break
4641
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4646
if test -n "$LD"; then
4647
echo "$as_me:$LINENO: result: $LD" >&5
4648
echo "${ECHO_T}$LD" >&6
4650
echo "$as_me:$LINENO: result: no" >&5
4651
echo "${ECHO_T}no" >&6
4653
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4654
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4655
{ (exit 1); exit 1; }; }
4656
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4657
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4658
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4659
echo $ECHO_N "(cached) $ECHO_C" >&6
4661
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
4662
case `$LD -v 2>&1 </dev/null` in
4663
*GNU* | *'with BFD'*)
4664
lt_cv_prog_gnu_ld=yes
4667
lt_cv_prog_gnu_ld=no
4671
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4672
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4673
with_gnu_ld=$lt_cv_prog_gnu_ld
4676
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4677
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4678
if test "${lt_cv_ld_reload_flag+set}" = set; then
4679
echo $ECHO_N "(cached) $ECHO_C" >&6
4681
lt_cv_ld_reload_flag='-r'
4683
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4684
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4685
reload_flag=$lt_cv_ld_reload_flag
4686
case $reload_flag in
4688
*) reload_flag=" $reload_flag" ;;
4690
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4693
if test "$GCC" = yes; then
4694
reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4696
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4701
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4702
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4703
if test "${lt_cv_path_NM+set}" = set; then
4704
echo $ECHO_N "(cached) $ECHO_C" >&6
4706
if test -n "$NM"; then
4707
# Let the user override the test.
4710
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4711
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4713
test -z "$ac_dir" && ac_dir=.
4714
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4715
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4716
# Check to see if the nm accepts a BSD-compat flag.
4717
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4718
# nm: unknown option "B" ignored
4719
# Tru64's nm complains that /dev/null is an invalid object file
4720
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4721
*/dev/null* | *'Invalid file or object type'*)
4722
lt_cv_path_NM="$tmp_nm -B"
4726
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4728
lt_cv_path_NM="$tmp_nm -p"
4732
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4733
continue # so that we can try to find one that supports BSD flags
4740
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4743
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4744
echo "${ECHO_T}$lt_cv_path_NM" >&6
4747
echo "$as_me:$LINENO: checking whether ln -s works" >&5
4748
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4750
if test "$LN_S" = "ln -s"; then
4751
echo "$as_me:$LINENO: result: yes" >&5
4752
echo "${ECHO_T}yes" >&6
4754
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4755
echo "${ECHO_T}no, using $LN_S" >&6
4758
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4759
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4760
if test "${lt_cv_deplibs_check_method+set}" = set; then
4761
echo $ECHO_N "(cached) $ECHO_C" >&6
4763
lt_cv_file_magic_cmd='$MAGIC_CMD'
4764
lt_cv_file_magic_test_file=
4765
lt_cv_deplibs_check_method='unknown'
4766
# Need to set the preceding variable on all platforms that support
4767
# interlibrary dependencies.
4768
# 'none' -- dependencies not supported.
4769
# `unknown' -- same as none, but documents that we really don't know.
4770
# 'pass_all' -- all dependencies passed with no checks.
4771
# 'test_compile' -- check by making test program.
4772
# 'file_magic [[regex]]' -- check by looking for files in library path
4773
# which responds to the $file_magic_cmd with a given extended regex.
4774
# If you have `file' or equivalent on your system and you're not sure
4775
# whether `pass_all' will *always* work, you probably want this one.
4779
lt_cv_deplibs_check_method=pass_all
4783
lt_cv_deplibs_check_method=pass_all
4787
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4788
lt_cv_file_magic_cmd='/usr/bin/file -L'
4789
lt_cv_file_magic_test_file=/shlib/libc.so
4793
# func_win32_libid is a shell function defined in ltmain.sh
4794
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4795
lt_cv_file_magic_cmd='func_win32_libid'
4799
# Base MSYS/MinGW do not provide the 'file' command needed by
4800
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
4801
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4802
lt_cv_file_magic_cmd='$OBJDUMP -f'
4805
darwin* | rhapsody*)
4806
lt_cv_deplibs_check_method=pass_all
4809
freebsd* | kfreebsd*-gnu)
4810
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4813
# Not sure whether the presence of OpenBSD here was a mistake.
4814
# Let's accept both of them until this is cleared up.
4815
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4816
lt_cv_file_magic_cmd=/usr/bin/file
4817
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4821
lt_cv_deplibs_check_method=pass_all
4826
lt_cv_deplibs_check_method=pass_all
4829
hpux10.20* | hpux11*)
4830
lt_cv_file_magic_cmd=/usr/bin/file
4833
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4834
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4837
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]'
4838
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4841
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4842
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4847
irix5* | irix6* | nonstopux*)
4849
*-32|*"-32 ") libmagic=32-bit;;
4850
*-n32|*"-n32 ") libmagic=N32;;
4851
*-64|*"-64 ") libmagic=64-bit;;
4852
*) libmagic=never-match;;
4854
lt_cv_deplibs_check_method=pass_all
4857
# This must be Linux ELF.
4860
alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
4861
lt_cv_deplibs_check_method=pass_all ;;
4863
# glibc up to 2.1.1 does not perform some relocations on ARM
4864
# this will be overridden with pass_all, but let us keep it just in case
4865
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4867
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4868
lt_cv_deplibs_check_method=pass_all
4872
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4873
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4875
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4880
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4881
lt_cv_file_magic_cmd=/usr/bin/file
4882
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4886
lt_cv_deplibs_check_method=unknown
4890
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4891
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4893
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4897
osf3* | osf4* | osf5*)
4898
lt_cv_deplibs_check_method=pass_all
4902
lt_cv_deplibs_check_method=pass_all
4906
lt_cv_deplibs_check_method=pass_all
4909
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4910
case $host_vendor in
4912
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]'
4913
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4916
lt_cv_deplibs_check_method=pass_all
4919
lt_cv_file_magic_cmd='/bin/file'
4920
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4923
lt_cv_file_magic_cmd='/bin/file'
4924
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4925
lt_cv_file_magic_test_file=/lib/libc.so
4928
lt_cv_deplibs_check_method=pass_all
4933
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4934
lt_cv_deplibs_check_method=pass_all
4939
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4940
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4941
file_magic_cmd=$lt_cv_file_magic_cmd
4942
deplibs_check_method=$lt_cv_deplibs_check_method
4943
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4948
# If no C compiler was specified, use CC.
4951
# Allow CC to be a program name with arguments.
4954
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4955
if test "${enable_libtool_lock+set}" = set; then
4956
enableval="$enable_libtool_lock"
4959
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4961
# Some flags need to be propagated to the compiler or linker for good
4965
# Find out which ABI we are using.
4966
echo 'int i;' > conftest.$ac_ext
4967
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4968
(eval $ac_compile) 2>&5
4970
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971
(exit $ac_status); }; then
4972
case `/usr/bin/file conftest.$ac_objext` in
4984
# Find out which ABI we are using.
4985
echo '#line 4985 "configure"' > conftest.$ac_ext
4986
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4987
(eval $ac_compile) 2>&5
4989
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990
(exit $ac_status); }; then
4991
if test "$lt_cv_prog_gnu_ld" = yes; then
4992
case `/usr/bin/file conftest.$ac_objext` in
4994
LD="${LD-ld} -melf32bsmip"
4997
LD="${LD-ld} -melf32bmipn32"
5000
LD="${LD-ld} -melf64bmip"
5004
case `/usr/bin/file conftest.$ac_objext` in
5020
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5021
# Find out which ABI we are using.
5022
echo 'int i;' > conftest.$ac_ext
5023
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5024
(eval $ac_compile) 2>&5
5026
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027
(exit $ac_status); }; then
5028
case "`/usr/bin/file conftest.o`" in
5032
LD="${LD-ld} -m elf_i386"
5034
ppc64-*linux*|powerpc64-*linux*)
5035
LD="${LD-ld} -m elf32ppclinux"
5038
LD="${LD-ld} -m elf_s390"
5041
LD="${LD-ld} -m elf32_sparc"
5048
LD="${LD-ld} -m elf_x86_64"
5050
ppc*-*linux*|powerpc*-*linux*)
5051
LD="${LD-ld} -m elf64ppc"
5054
LD="${LD-ld} -m elf64_s390"
5057
LD="${LD-ld} -m elf64_sparc"
5067
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
5068
SAVE_CFLAGS="$CFLAGS"
5069
CFLAGS="$CFLAGS -belf"
5070
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5071
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5072
if test "${lt_cv_cc_needs_belf+set}" = set; then
5073
echo $ECHO_N "(cached) $ECHO_C" >&6
5076
ac_cpp='$CPP $CPPFLAGS'
5077
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5078
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5079
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5081
cat >conftest.$ac_ext <<_ACEOF
5084
cat confdefs.h >>conftest.$ac_ext
5085
cat >>conftest.$ac_ext <<_ACEOF
5086
/* end confdefs.h. */
5096
rm -f conftest.$ac_objext conftest$ac_exeext
5097
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5098
(eval $ac_link) 2>conftest.er1
5100
grep -v '^ *+' conftest.er1 >conftest.err
5102
cat conftest.err >&5
5103
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104
(exit $ac_status); } &&
5105
{ ac_try='test -z "$ac_c_werror_flag"
5106
|| test ! -s conftest.err'
5107
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111
(exit $ac_status); }; } &&
5112
{ ac_try='test -s conftest$ac_exeext'
5113
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117
(exit $ac_status); }; }; then
5118
lt_cv_cc_needs_belf=yes
5120
echo "$as_me: failed program was:" >&5
5121
sed 's/^/| /' conftest.$ac_ext >&5
5123
lt_cv_cc_needs_belf=no
5125
rm -f conftest.err conftest.$ac_objext \
5126
conftest$ac_exeext conftest.$ac_ext
5128
ac_cpp='$CPP $CPPFLAGS'
5129
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5130
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5131
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5134
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5135
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5136
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5137
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5138
CFLAGS="$SAVE_CFLAGS"
5141
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
5142
if test -n "$ac_tool_prefix"; then
5143
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5144
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5145
echo "$as_me:$LINENO: checking for $ac_word" >&5
5146
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5147
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5148
echo $ECHO_N "(cached) $ECHO_C" >&6
5150
if test -n "$DLLTOOL"; then
5151
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5153
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157
test -z "$as_dir" && as_dir=.
5158
for ac_exec_ext in '' $ac_executable_extensions; do
5159
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5160
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5161
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5169
DLLTOOL=$ac_cv_prog_DLLTOOL
5170
if test -n "$DLLTOOL"; then
5171
echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5172
echo "${ECHO_T}$DLLTOOL" >&6
5174
echo "$as_me:$LINENO: result: no" >&5
5175
echo "${ECHO_T}no" >&6
5179
if test -z "$ac_cv_prog_DLLTOOL"; then
5180
ac_ct_DLLTOOL=$DLLTOOL
5181
# Extract the first word of "dlltool", so it can be a program name with args.
5182
set dummy dlltool; ac_word=$2
5183
echo "$as_me:$LINENO: checking for $ac_word" >&5
5184
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5185
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5186
echo $ECHO_N "(cached) $ECHO_C" >&6
5188
if test -n "$ac_ct_DLLTOOL"; then
5189
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5191
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195
test -z "$as_dir" && as_dir=.
5196
for ac_exec_ext in '' $ac_executable_extensions; do
5197
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5198
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5199
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5205
test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5208
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5209
if test -n "$ac_ct_DLLTOOL"; then
5210
echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5211
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5213
echo "$as_me:$LINENO: result: no" >&5
5214
echo "${ECHO_T}no" >&6
5217
DLLTOOL=$ac_ct_DLLTOOL
5219
DLLTOOL="$ac_cv_prog_DLLTOOL"
5222
if test -n "$ac_tool_prefix"; then
5223
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5224
set dummy ${ac_tool_prefix}as; ac_word=$2
5225
echo "$as_me:$LINENO: checking for $ac_word" >&5
5226
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5227
if test "${ac_cv_prog_AS+set}" = set; then
5228
echo $ECHO_N "(cached) $ECHO_C" >&6
5230
if test -n "$AS"; then
5231
ac_cv_prog_AS="$AS" # Let the user override the test.
5233
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237
test -z "$as_dir" && as_dir=.
5238
for ac_exec_ext in '' $ac_executable_extensions; do
5239
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5240
ac_cv_prog_AS="${ac_tool_prefix}as"
5241
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5250
if test -n "$AS"; then
5251
echo "$as_me:$LINENO: result: $AS" >&5
5252
echo "${ECHO_T}$AS" >&6
5254
echo "$as_me:$LINENO: result: no" >&5
5255
echo "${ECHO_T}no" >&6
5259
if test -z "$ac_cv_prog_AS"; then
5261
# Extract the first word of "as", so it can be a program name with args.
5262
set dummy as; ac_word=$2
5263
echo "$as_me:$LINENO: checking for $ac_word" >&5
5264
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5265
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5266
echo $ECHO_N "(cached) $ECHO_C" >&6
5268
if test -n "$ac_ct_AS"; then
5269
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5271
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275
test -z "$as_dir" && as_dir=.
5276
for ac_exec_ext in '' $ac_executable_extensions; do
5277
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5278
ac_cv_prog_ac_ct_AS="as"
5279
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285
test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5288
ac_ct_AS=$ac_cv_prog_ac_ct_AS
5289
if test -n "$ac_ct_AS"; then
5290
echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5291
echo "${ECHO_T}$ac_ct_AS" >&6
5293
echo "$as_me:$LINENO: result: no" >&5
5294
echo "${ECHO_T}no" >&6
5302
if test -n "$ac_tool_prefix"; then
5303
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5304
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5305
echo "$as_me:$LINENO: checking for $ac_word" >&5
5306
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5307
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5308
echo $ECHO_N "(cached) $ECHO_C" >&6
5310
if test -n "$OBJDUMP"; then
5311
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5313
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317
test -z "$as_dir" && as_dir=.
5318
for ac_exec_ext in '' $ac_executable_extensions; do
5319
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5320
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5321
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5329
OBJDUMP=$ac_cv_prog_OBJDUMP
5330
if test -n "$OBJDUMP"; then
5331
echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5332
echo "${ECHO_T}$OBJDUMP" >&6
5334
echo "$as_me:$LINENO: result: no" >&5
5335
echo "${ECHO_T}no" >&6
5339
if test -z "$ac_cv_prog_OBJDUMP"; then
5340
ac_ct_OBJDUMP=$OBJDUMP
5341
# Extract the first word of "objdump", so it can be a program name with args.
5342
set dummy objdump; ac_word=$2
5343
echo "$as_me:$LINENO: checking for $ac_word" >&5
5344
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5345
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5346
echo $ECHO_N "(cached) $ECHO_C" >&6
5348
if test -n "$ac_ct_OBJDUMP"; then
5349
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5351
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355
test -z "$as_dir" && as_dir=.
5356
for ac_exec_ext in '' $ac_executable_extensions; do
5357
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5358
ac_cv_prog_ac_ct_OBJDUMP="objdump"
5359
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5365
test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5368
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5369
if test -n "$ac_ct_OBJDUMP"; then
5370
echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5371
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5373
echo "$as_me:$LINENO: result: no" >&5
5374
echo "${ECHO_T}no" >&6
5377
OBJDUMP=$ac_ct_OBJDUMP
5379
OBJDUMP="$ac_cv_prog_OBJDUMP"
5386
need_locks="$enable_libtool_lock"
5389
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5399
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5400
inttypes.h stdint.h unistd.h
5402
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5403
echo "$as_me:$LINENO: checking for $ac_header" >&5
5404
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5405
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5406
echo $ECHO_N "(cached) $ECHO_C" >&6
5408
cat >conftest.$ac_ext <<_ACEOF
5411
cat confdefs.h >>conftest.$ac_ext
5412
cat >>conftest.$ac_ext <<_ACEOF
5413
/* end confdefs.h. */
5414
$ac_includes_default
5416
#include <$ac_header>
5418
rm -f conftest.$ac_objext
5419
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5420
(eval $ac_compile) 2>conftest.er1
5422
grep -v '^ *+' conftest.er1 >conftest.err
5424
cat conftest.err >&5
5425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426
(exit $ac_status); } &&
5427
{ ac_try='test -z "$ac_c_werror_flag"
5428
|| test ! -s conftest.err'
5429
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433
(exit $ac_status); }; } &&
5434
{ ac_try='test -s conftest.$ac_objext'
5435
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439
(exit $ac_status); }; }; then
5440
eval "$as_ac_Header=yes"
5442
echo "$as_me: failed program was:" >&5
5443
sed 's/^/| /' conftest.$ac_ext >&5
5445
eval "$as_ac_Header=no"
5447
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5449
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5450
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5451
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5452
cat >>confdefs.h <<_ACEOF
5453
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5462
for ac_header in dlfcn.h
5464
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5465
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5466
echo "$as_me:$LINENO: checking for $ac_header" >&5
5467
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5468
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5469
echo $ECHO_N "(cached) $ECHO_C" >&6
5471
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5472
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5474
# Is the header compilable?
5475
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5476
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5477
cat >conftest.$ac_ext <<_ACEOF
5480
cat confdefs.h >>conftest.$ac_ext
5481
cat >>conftest.$ac_ext <<_ACEOF
5482
/* end confdefs.h. */
5483
$ac_includes_default
5484
#include <$ac_header>
5486
rm -f conftest.$ac_objext
5487
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5488
(eval $ac_compile) 2>conftest.er1
5490
grep -v '^ *+' conftest.er1 >conftest.err
5492
cat conftest.err >&5
5493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494
(exit $ac_status); } &&
5495
{ ac_try='test -z "$ac_c_werror_flag"
5496
|| test ! -s conftest.err'
5497
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501
(exit $ac_status); }; } &&
5502
{ ac_try='test -s conftest.$ac_objext'
5503
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507
(exit $ac_status); }; }; then
5508
ac_header_compiler=yes
5510
echo "$as_me: failed program was:" >&5
5511
sed 's/^/| /' conftest.$ac_ext >&5
5513
ac_header_compiler=no
5515
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5516
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5517
echo "${ECHO_T}$ac_header_compiler" >&6
5519
# Is the header present?
5520
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5521
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5522
cat >conftest.$ac_ext <<_ACEOF
5525
cat confdefs.h >>conftest.$ac_ext
5526
cat >>conftest.$ac_ext <<_ACEOF
5527
/* end confdefs.h. */
5528
#include <$ac_header>
5530
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5531
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5533
grep -v '^ *+' conftest.er1 >conftest.err
5535
cat conftest.err >&5
5536
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537
(exit $ac_status); } >/dev/null; then
5538
if test -s conftest.err; then
5539
ac_cpp_err=$ac_c_preproc_warn_flag
5540
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5547
if test -z "$ac_cpp_err"; then
5548
ac_header_preproc=yes
5550
echo "$as_me: failed program was:" >&5
5551
sed 's/^/| /' conftest.$ac_ext >&5
5553
ac_header_preproc=no
5555
rm -f conftest.err conftest.$ac_ext
5556
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5557
echo "${ECHO_T}$ac_header_preproc" >&6
5559
# So? What about this header?
5560
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5562
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5563
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5564
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5565
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5566
ac_header_preproc=yes
5569
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5570
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5571
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5572
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5573
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5574
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5575
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5576
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5577
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5578
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5579
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5580
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5583
## ----------------------------------------------------------------------------- ##
5584
## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=libgnomecanvas ##
5585
## ----------------------------------------------------------------------------- ##
5588
sed "s/^/$as_me: WARNING: /" >&2
5591
echo "$as_me:$LINENO: checking for $ac_header" >&5
5592
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5593
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5594
echo $ECHO_N "(cached) $ECHO_C" >&6
5596
eval "$as_ac_Header=\$ac_header_preproc"
5598
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5599
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5602
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5603
cat >>confdefs.h <<_ACEOF
5604
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5612
ac_cpp='$CXXCPP $CPPFLAGS'
5613
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5614
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5615
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5616
if test -n "$ac_tool_prefix"; then
5617
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5619
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5620
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5621
echo "$as_me:$LINENO: checking for $ac_word" >&5
5622
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5623
if test "${ac_cv_prog_CXX+set}" = set; then
5624
echo $ECHO_N "(cached) $ECHO_C" >&6
5626
if test -n "$CXX"; then
5627
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5629
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633
test -z "$as_dir" && as_dir=.
5634
for ac_exec_ext in '' $ac_executable_extensions; do
5635
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5636
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5637
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5646
if test -n "$CXX"; then
5647
echo "$as_me:$LINENO: result: $CXX" >&5
5648
echo "${ECHO_T}$CXX" >&6
5650
echo "$as_me:$LINENO: result: no" >&5
5651
echo "${ECHO_T}no" >&6
5654
test -n "$CXX" && break
5657
if test -z "$CXX"; then
5659
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5661
# Extract the first word of "$ac_prog", so it can be a program name with args.
5662
set dummy $ac_prog; ac_word=$2
5663
echo "$as_me:$LINENO: checking for $ac_word" >&5
5664
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5665
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5666
echo $ECHO_N "(cached) $ECHO_C" >&6
5668
if test -n "$ac_ct_CXX"; then
5669
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5671
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675
test -z "$as_dir" && as_dir=.
5676
for ac_exec_ext in '' $ac_executable_extensions; do
5677
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5678
ac_cv_prog_ac_ct_CXX="$ac_prog"
5679
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5687
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5688
if test -n "$ac_ct_CXX"; then
5689
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5690
echo "${ECHO_T}$ac_ct_CXX" >&6
5692
echo "$as_me:$LINENO: result: no" >&5
5693
echo "${ECHO_T}no" >&6
5696
test -n "$ac_ct_CXX" && break
5698
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5704
# Provide some information about the compiler.
5705
echo "$as_me:$LINENO:" \
5706
"checking for C++ compiler version" >&5
5707
ac_compiler=`set X $ac_compile; echo $2`
5708
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5709
(eval $ac_compiler --version </dev/null >&5) 2>&5
5711
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712
(exit $ac_status); }
5713
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5714
(eval $ac_compiler -v </dev/null >&5) 2>&5
5716
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717
(exit $ac_status); }
5718
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5719
(eval $ac_compiler -V </dev/null >&5) 2>&5
5721
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722
(exit $ac_status); }
5724
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5725
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5726
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5727
echo $ECHO_N "(cached) $ECHO_C" >&6
5729
cat >conftest.$ac_ext <<_ACEOF
5732
cat confdefs.h >>conftest.$ac_ext
5733
cat >>conftest.$ac_ext <<_ACEOF
5734
/* end confdefs.h. */
5747
rm -f conftest.$ac_objext
5748
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5749
(eval $ac_compile) 2>conftest.er1
5751
grep -v '^ *+' conftest.er1 >conftest.err
5753
cat conftest.err >&5
5754
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755
(exit $ac_status); } &&
5756
{ ac_try='test -z "$ac_cxx_werror_flag"
5757
|| test ! -s conftest.err'
5758
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5761
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762
(exit $ac_status); }; } &&
5763
{ ac_try='test -s conftest.$ac_objext'
5764
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5767
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768
(exit $ac_status); }; }; then
5771
echo "$as_me: failed program was:" >&5
5772
sed 's/^/| /' conftest.$ac_ext >&5
5776
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5777
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5780
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5781
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5782
GXX=`test $ac_compiler_gnu = yes && echo yes`
5783
ac_test_CXXFLAGS=${CXXFLAGS+set}
5784
ac_save_CXXFLAGS=$CXXFLAGS
5786
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5787
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5788
if test "${ac_cv_prog_cxx_g+set}" = set; then
5789
echo $ECHO_N "(cached) $ECHO_C" >&6
5791
cat >conftest.$ac_ext <<_ACEOF
5794
cat confdefs.h >>conftest.$ac_ext
5795
cat >>conftest.$ac_ext <<_ACEOF
5796
/* end confdefs.h. */
5806
rm -f conftest.$ac_objext
5807
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5808
(eval $ac_compile) 2>conftest.er1
5810
grep -v '^ *+' conftest.er1 >conftest.err
5812
cat conftest.err >&5
5813
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814
(exit $ac_status); } &&
5815
{ ac_try='test -z "$ac_cxx_werror_flag"
5816
|| test ! -s conftest.err'
5817
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821
(exit $ac_status); }; } &&
5822
{ ac_try='test -s conftest.$ac_objext'
5823
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827
(exit $ac_status); }; }; then
5828
ac_cv_prog_cxx_g=yes
5830
echo "$as_me: failed program was:" >&5
5831
sed 's/^/| /' conftest.$ac_ext >&5
5835
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5837
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5838
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5839
if test "$ac_test_CXXFLAGS" = set; then
5840
CXXFLAGS=$ac_save_CXXFLAGS
5841
elif test $ac_cv_prog_cxx_g = yes; then
5842
if test "$GXX" = yes; then
5848
if test "$GXX" = yes; then
5854
for ac_declaration in \
5856
'extern "C" void std::exit (int) throw (); using std::exit;' \
5857
'extern "C" void std::exit (int); using std::exit;' \
5858
'extern "C" void exit (int) throw ();' \
5859
'extern "C" void exit (int);' \
5862
cat >conftest.$ac_ext <<_ACEOF
5865
cat confdefs.h >>conftest.$ac_ext
5866
cat >>conftest.$ac_ext <<_ACEOF
5867
/* end confdefs.h. */
5878
rm -f conftest.$ac_objext
5879
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5880
(eval $ac_compile) 2>conftest.er1
5882
grep -v '^ *+' conftest.er1 >conftest.err
5884
cat conftest.err >&5
5885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886
(exit $ac_status); } &&
5887
{ ac_try='test -z "$ac_cxx_werror_flag"
5888
|| test ! -s conftest.err'
5889
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893
(exit $ac_status); }; } &&
5894
{ ac_try='test -s conftest.$ac_objext'
5895
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899
(exit $ac_status); }; }; then
5902
echo "$as_me: failed program was:" >&5
5903
sed 's/^/| /' conftest.$ac_ext >&5
5907
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5908
cat >conftest.$ac_ext <<_ACEOF
5911
cat confdefs.h >>conftest.$ac_ext
5912
cat >>conftest.$ac_ext <<_ACEOF
5913
/* end confdefs.h. */
5923
rm -f conftest.$ac_objext
5924
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5925
(eval $ac_compile) 2>conftest.er1
5927
grep -v '^ *+' conftest.er1 >conftest.err
5929
cat conftest.err >&5
5930
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931
(exit $ac_status); } &&
5932
{ ac_try='test -z "$ac_cxx_werror_flag"
5933
|| test ! -s conftest.err'
5934
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938
(exit $ac_status); }; } &&
5939
{ ac_try='test -s conftest.$ac_objext'
5940
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944
(exit $ac_status); }; }; then
5947
echo "$as_me: failed program was:" >&5
5948
sed 's/^/| /' conftest.$ac_ext >&5
5951
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5954
if test -n "$ac_declaration"; then
5955
echo '#ifdef __cplusplus' >>confdefs.h
5956
echo $ac_declaration >>confdefs.h
5957
echo '#endif' >>confdefs.h
5961
ac_cpp='$CXXCPP $CPPFLAGS'
5962
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5963
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5964
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5966
depcc="$CXX" am_compiler_list=
5968
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5969
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5970
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5971
echo $ECHO_N "(cached) $ECHO_C" >&6
5973
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5974
# We make a subdir and do the tests there. Otherwise we can end up
5975
# making bogus files that we don't know about and never remove. For
5976
# instance it was reported that on HP-UX the gcc test will end up
5977
# making a dummy file named `D' -- because `-MD' means `put the output
5980
# Copy depcomp to subdir because otherwise we won't find it if we're
5981
# using a relative directory.
5982
cp "$am_depcomp" conftest.dir
5984
# We will build objects and dependencies in a subdirectory because
5985
# it helps to detect inapplicable dependency modes. For instance
5986
# both Tru64's cc and ICC support -MD to output dependencies as a
5987
# side effect of compilation, but ICC will put the dependencies in
5988
# the current directory while Tru64 will put them in the object
5992
am_cv_CXX_dependencies_compiler_type=none
5993
if test "$am_compiler_list" = ""; then
5994
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5996
for depmode in $am_compiler_list; do
5997
# Setup a source with many dependencies, because some compilers
5998
# like to wrap large dependency lists on column 80 (with \), and
5999
# we should not choose a depcomp mode which is confused by this.
6001
# We need to recreate these files for each test, as the compiler may
6002
# overwrite some of them when testing with obscure command lines.
6003
# This happens at least with the AIX C compiler.
6005
for i in 1 2 3 4 5 6; do
6006
echo '#include "conftst'$i'.h"' >> sub/conftest.c
6009
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6013
# after this tag, mechanisms are not by side-effect, so they'll
6014
# only be used when explicitly requested
6015
if test "x$enable_dependency_tracking" = xyes; then
6023
# We check with `-c' and `-o' for the sake of the "dashmstdout"
6024
# mode. It turns out that the SunPro C++ compiler does not properly
6025
# handle `-M -o', and we need to detect this.
6026
if depmode=$depmode \
6027
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6028
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6029
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6030
>/dev/null 2>conftest.err &&
6031
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6032
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6033
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6034
# icc doesn't choke on unknown options, it will just issue warnings
6035
# (even with -Werror). So we grep stderr for any message
6036
# that says an option was ignored.
6037
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
6038
am_cv_CXX_dependencies_compiler_type=$depmode
6047
am_cv_CXX_dependencies_compiler_type=none
6051
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6052
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6053
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6058
test "x$enable_dependency_tracking" != xno \
6059
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6060
am__fastdepCXX_TRUE=
6061
am__fastdepCXX_FALSE='#'
6063
am__fastdepCXX_TRUE='#'
6064
am__fastdepCXX_FALSE=
6069
ac_cpp='$CXXCPP $CPPFLAGS'
6070
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6071
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6072
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6073
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6074
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6075
if test -z "$CXXCPP"; then
6076
if test "${ac_cv_prog_CXXCPP+set}" = set; then
6077
echo $ECHO_N "(cached) $ECHO_C" >&6
6079
# Double quotes because CXXCPP needs to be expanded
6080
for CXXCPP in "$CXX -E" "/lib/cpp"
6083
for ac_cxx_preproc_warn_flag in '' yes
6085
# Use a header file that comes with gcc, so configuring glibc
6086
# with a fresh cross-compiler works.
6087
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6088
# <limits.h> exists even on freestanding compilers.
6089
# On the NeXT, cc -E runs the code through the compiler's parser,
6090
# not just through cpp. "Syntax error" is here to catch this case.
6091
cat >conftest.$ac_ext <<_ACEOF
6094
cat confdefs.h >>conftest.$ac_ext
6095
cat >>conftest.$ac_ext <<_ACEOF
6096
/* end confdefs.h. */
6098
# include <limits.h>
6100
# include <assert.h>
6104
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6105
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6107
grep -v '^ *+' conftest.er1 >conftest.err
6109
cat conftest.err >&5
6110
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111
(exit $ac_status); } >/dev/null; then
6112
if test -s conftest.err; then
6113
ac_cpp_err=$ac_cxx_preproc_warn_flag
6114
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6121
if test -z "$ac_cpp_err"; then
6124
echo "$as_me: failed program was:" >&5
6125
sed 's/^/| /' conftest.$ac_ext >&5
6127
# Broken: fails on valid input.
6130
rm -f conftest.err conftest.$ac_ext
6132
# OK, works on sane cases. Now check whether non-existent headers
6133
# can be detected and how.
6134
cat >conftest.$ac_ext <<_ACEOF
6137
cat confdefs.h >>conftest.$ac_ext
6138
cat >>conftest.$ac_ext <<_ACEOF
6139
/* end confdefs.h. */
6140
#include <ac_nonexistent.h>
6142
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6143
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6145
grep -v '^ *+' conftest.er1 >conftest.err
6147
cat conftest.err >&5
6148
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149
(exit $ac_status); } >/dev/null; then
6150
if test -s conftest.err; then
6151
ac_cpp_err=$ac_cxx_preproc_warn_flag
6152
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6159
if test -z "$ac_cpp_err"; then
6160
# Broken: success on invalid input.
6163
echo "$as_me: failed program was:" >&5
6164
sed 's/^/| /' conftest.$ac_ext >&5
6166
# Passes both tests.
6170
rm -f conftest.err conftest.$ac_ext
6173
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6174
rm -f conftest.err conftest.$ac_ext
6175
if $ac_preproc_ok; then
6180
ac_cv_prog_CXXCPP=$CXXCPP
6183
CXXCPP=$ac_cv_prog_CXXCPP
6185
ac_cv_prog_CXXCPP=$CXXCPP
6187
echo "$as_me:$LINENO: result: $CXXCPP" >&5
6188
echo "${ECHO_T}$CXXCPP" >&6
6190
for ac_cxx_preproc_warn_flag in '' yes
6192
# Use a header file that comes with gcc, so configuring glibc
6193
# with a fresh cross-compiler works.
6194
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6195
# <limits.h> exists even on freestanding compilers.
6196
# On the NeXT, cc -E runs the code through the compiler's parser,
6197
# not just through cpp. "Syntax error" is here to catch this case.
6198
cat >conftest.$ac_ext <<_ACEOF
6201
cat confdefs.h >>conftest.$ac_ext
6202
cat >>conftest.$ac_ext <<_ACEOF
6203
/* end confdefs.h. */
6205
# include <limits.h>
6207
# include <assert.h>
6211
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6212
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6214
grep -v '^ *+' conftest.er1 >conftest.err
6216
cat conftest.err >&5
6217
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218
(exit $ac_status); } >/dev/null; then
6219
if test -s conftest.err; then
6220
ac_cpp_err=$ac_cxx_preproc_warn_flag
6221
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6228
if test -z "$ac_cpp_err"; then
6231
echo "$as_me: failed program was:" >&5
6232
sed 's/^/| /' conftest.$ac_ext >&5
6234
# Broken: fails on valid input.
6237
rm -f conftest.err conftest.$ac_ext
6239
# OK, works on sane cases. Now check whether non-existent headers
6240
# can be detected and how.
6241
cat >conftest.$ac_ext <<_ACEOF
6244
cat confdefs.h >>conftest.$ac_ext
6245
cat >>conftest.$ac_ext <<_ACEOF
6246
/* end confdefs.h. */
6247
#include <ac_nonexistent.h>
6249
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6250
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6252
grep -v '^ *+' conftest.er1 >conftest.err
6254
cat conftest.err >&5
6255
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256
(exit $ac_status); } >/dev/null; then
6257
if test -s conftest.err; then
6258
ac_cpp_err=$ac_cxx_preproc_warn_flag
6259
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6266
if test -z "$ac_cpp_err"; then
6267
# Broken: success on invalid input.
6270
echo "$as_me: failed program was:" >&5
6271
sed 's/^/| /' conftest.$ac_ext >&5
6273
# Passes both tests.
6277
rm -f conftest.err conftest.$ac_ext
6280
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6281
rm -f conftest.err conftest.$ac_ext
6282
if $ac_preproc_ok; then
6285
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6286
See \`config.log' for more details." >&5
6287
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6288
See \`config.log' for more details." >&2;}
6289
{ (exit 1); exit 1; }; }
6293
ac_cpp='$CXXCPP $CPPFLAGS'
6294
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6295
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6296
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6300
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6301
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6302
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6303
if test -n "$ac_tool_prefix"; then
6304
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6306
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6307
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6308
echo "$as_me:$LINENO: checking for $ac_word" >&5
6309
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6310
if test "${ac_cv_prog_F77+set}" = set; then
6311
echo $ECHO_N "(cached) $ECHO_C" >&6
6313
if test -n "$F77"; then
6314
ac_cv_prog_F77="$F77" # Let the user override the test.
6316
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320
test -z "$as_dir" && as_dir=.
6321
for ac_exec_ext in '' $ac_executable_extensions; do
6322
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6323
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6324
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6333
if test -n "$F77"; then
6334
echo "$as_me:$LINENO: result: $F77" >&5
6335
echo "${ECHO_T}$F77" >&6
6337
echo "$as_me:$LINENO: result: no" >&5
6338
echo "${ECHO_T}no" >&6
6341
test -n "$F77" && break
6344
if test -z "$F77"; then
6346
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6348
# Extract the first word of "$ac_prog", so it can be a program name with args.
6349
set dummy $ac_prog; ac_word=$2
6350
echo "$as_me:$LINENO: checking for $ac_word" >&5
6351
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6352
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6353
echo $ECHO_N "(cached) $ECHO_C" >&6
6355
if test -n "$ac_ct_F77"; then
6356
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6358
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362
test -z "$as_dir" && as_dir=.
6363
for ac_exec_ext in '' $ac_executable_extensions; do
6364
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6365
ac_cv_prog_ac_ct_F77="$ac_prog"
6366
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6374
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6375
if test -n "$ac_ct_F77"; then
6376
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6377
echo "${ECHO_T}$ac_ct_F77" >&6
6379
echo "$as_me:$LINENO: result: no" >&5
6380
echo "${ECHO_T}no" >&6
6383
test -n "$ac_ct_F77" && break
6390
# Provide some information about the compiler.
6391
echo "$as_me:6391:" \
6392
"checking for Fortran 77 compiler version" >&5
6393
ac_compiler=`set X $ac_compile; echo $2`
6394
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6395
(eval $ac_compiler --version </dev/null >&5) 2>&5
6397
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398
(exit $ac_status); }
6399
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6400
(eval $ac_compiler -v </dev/null >&5) 2>&5
6402
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403
(exit $ac_status); }
6404
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6405
(eval $ac_compiler -V </dev/null >&5) 2>&5
6407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408
(exit $ac_status); }
6411
# If we don't use `.F' as extension, the preprocessor is not run on the
6412
# input file. (Note that this only needs to work for GNU compilers.)
6415
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6416
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6417
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6418
echo $ECHO_N "(cached) $ECHO_C" >&6
6420
cat >conftest.$ac_ext <<_ACEOF
6428
rm -f conftest.$ac_objext
6429
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430
(eval $ac_compile) 2>conftest.er1
6432
grep -v '^ *+' conftest.er1 >conftest.err
6434
cat conftest.err >&5
6435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436
(exit $ac_status); } &&
6437
{ ac_try='test -z "$ac_f77_werror_flag"
6438
|| test ! -s conftest.err'
6439
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443
(exit $ac_status); }; } &&
6444
{ ac_try='test -s conftest.$ac_objext'
6445
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449
(exit $ac_status); }; }; then
6452
echo "$as_me: failed program was:" >&5
6453
sed 's/^/| /' conftest.$ac_ext >&5
6457
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6458
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6461
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6462
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6464
ac_test_FFLAGS=${FFLAGS+set}
6465
ac_save_FFLAGS=$FFLAGS
6467
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6468
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6469
if test "${ac_cv_prog_f77_g+set}" = set; then
6470
echo $ECHO_N "(cached) $ECHO_C" >&6
6473
cat >conftest.$ac_ext <<_ACEOF
6478
rm -f conftest.$ac_objext
6479
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6480
(eval $ac_compile) 2>conftest.er1
6482
grep -v '^ *+' conftest.er1 >conftest.err
6484
cat conftest.err >&5
6485
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486
(exit $ac_status); } &&
6487
{ ac_try='test -z "$ac_f77_werror_flag"
6488
|| test ! -s conftest.err'
6489
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493
(exit $ac_status); }; } &&
6494
{ ac_try='test -s conftest.$ac_objext'
6495
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499
(exit $ac_status); }; }; then
6500
ac_cv_prog_f77_g=yes
6502
echo "$as_me: failed program was:" >&5
6503
sed 's/^/| /' conftest.$ac_ext >&5
6507
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6510
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6511
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6512
if test "$ac_test_FFLAGS" = set; then
6513
FFLAGS=$ac_save_FFLAGS
6514
elif test $ac_cv_prog_f77_g = yes; then
6515
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6521
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6528
G77=`test $ac_compiler_gnu = yes && echo yes`
6530
ac_cpp='$CPP $CPPFLAGS'
6531
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6532
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6533
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6537
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6539
# find the maximum length of command line arguments
6540
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6541
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6542
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6543
echo $ECHO_N "(cached) $ECHO_C" >&6
6550
# On DJGPP, this test can blow up pretty badly due to problems in libc
6551
# (any single argument exceeding 2000 bytes causes a buffer overrun
6552
# during glob expansion). Even if it were fixed, the result of this
6553
# check would be larger than it should be.
6554
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6558
# Under GNU Hurd, this test is not required because there is
6559
# no limit to the length of command line arguments.
6560
# Libtool will interpret -1 as no limit whatsoever
6561
lt_cv_sys_max_cmd_len=-1;
6565
# On Win9x/ME, this test blows up -- it succeeds, but takes
6566
# about 5 minutes as the teststring grows exponentially.
6567
# Worse, since 9x/ME are not pre-emptively multitasking,
6568
# you end up with a "frozen" computer, even though with patience
6569
# the test eventually succeeds (with a max line length of 256k).
6570
# Instead, let's just punt: use the minimum linelength reported by
6571
# all of the supported platforms: 8192 (on NT/2K/XP).
6572
lt_cv_sys_max_cmd_len=8192;
6576
# On AmigaOS with pdksh, this test takes hours, literally.
6577
# So we just punt and use a minimum line length of 8192.
6578
lt_cv_sys_max_cmd_len=8192;
6581
netbsd* | freebsd* | openbsd* | darwin* )
6582
# This has been around since 386BSD, at least. Likely further.
6583
if test -x /sbin/sysctl; then
6584
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6585
elif test -x /usr/sbin/sysctl; then
6586
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6588
lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6590
# And add a safety zone
6591
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6595
# If test is not a shell built-in, we'll probably end up computing a
6596
# maximum length that is only half of the actual maximum length, but
6598
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6599
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6600
= "XX$teststring") >/dev/null 2>&1 &&
6601
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6602
lt_cv_sys_max_cmd_len=$new_result &&
6603
test $i != 17 # 1/2 MB should be enough
6606
teststring=$teststring$teststring
6609
# Add a significant safety factor because C++ compilers can tack on massive
6610
# amounts of additional arguments before passing them to the linker.
6611
# It appears as though 1/2 is a usable value.
6612
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6618
if test -n $lt_cv_sys_max_cmd_len ; then
6619
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6620
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6622
echo "$as_me:$LINENO: result: none" >&5
6623
echo "${ECHO_T}none" >&6
6629
# Check for command to grab the raw symbol name followed by C symbol from nm.
6630
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6631
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6632
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6633
echo $ECHO_N "(cached) $ECHO_C" >&6
6636
# These are sane defaults that work on at least a few old systems.
6637
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6639
# Character class describing NM global symbol codes.
6640
symcode='[BCDEGRST]'
6642
# Regexp to match symbols that can be accessed directly from C.
6643
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6645
# Transform the above into a raw symbol and a C symbol.
6646
symxfrm='\1 \2\3 \3'
6648
# Transform an extracted symbol line into a proper C declaration
6649
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6651
# Transform an extracted symbol line into symbol name and symbol address
6652
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'"
6654
# Define system-specific variables.
6659
cygwin* | mingw* | pw32*)
6660
symcode='[ABCDGISTW]'
6662
hpux*) # Its linker distinguishes data from code symbols
6663
if test "$host_cpu" = ia64; then
6664
symcode='[ABCDEGRST]'
6666
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6667
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'"
6670
symcode='[BCDEGRST]'
6673
symcode='[BCDEGQRST]'
6683
# Handle CRLF in mingw tool chain
6687
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6691
# If we're using GNU nm, then use its standard symbol codes.
6692
case `$NM -V 2>&1` in
6693
*GNU* | *'with BFD'*)
6694
symcode='[ABCDGIRSTW]' ;;
6697
# Try without a prefix undercore, then with it.
6698
for ac_symprfx in "" "_"; do
6700
# Write the raw and C identifiers.
6701
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6703
# Check to see that the pipe works correctly.
6707
cat > conftest.$ac_ext <<EOF
6712
void nm_test_func(){}
6716
int main(){nm_test_var='a';nm_test_func();return(0);}
6719
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6720
(eval $ac_compile) 2>&5
6722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723
(exit $ac_status); }; then
6724
# Now try to grab the symbols.
6726
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6727
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6729
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730
(exit $ac_status); } && test -s "$nlist"; then
6731
# Try sorting and uniquifying the output.
6732
if sort "$nlist" | uniq > "$nlist"T; then
6733
mv -f "$nlist"T "$nlist"
6738
# Make sure that we snagged all the symbols we need.
6739
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6740
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6741
cat <<EOF > conftest.$ac_ext
6747
# Now generate the symbol file.
6748
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6750
cat <<EOF >> conftest.$ac_ext
6751
#if defined (__STDC__) && __STDC__
6752
# define lt_ptr_t void *
6754
# define lt_ptr_t char *
6758
/* The mapping between symbol names and symbols. */
6763
lt_preloaded_symbols[] =
6766
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6767
cat <<\EOF >> conftest.$ac_ext
6775
# Now try linking the two files.
6776
mv conftest.$ac_objext conftstm.$ac_objext
6777
lt_save_LIBS="$LIBS"
6778
lt_save_CFLAGS="$CFLAGS"
6779
LIBS="conftstm.$ac_objext"
6780
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6781
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6782
(eval $ac_link) 2>&5
6784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785
(exit $ac_status); } && test -s conftest${ac_exeext}; then
6788
LIBS="$lt_save_LIBS"
6789
CFLAGS="$lt_save_CFLAGS"
6791
echo "cannot find nm_test_func in $nlist" >&5
6794
echo "cannot find nm_test_var in $nlist" >&5
6797
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6800
echo "$progname: failed program was:" >&5
6801
cat conftest.$ac_ext >&5
6803
rm -f conftest* conftst*
6805
# Do not use the global_symbol_pipe unless it works.
6806
if test "$pipe_works" = yes; then
6809
lt_cv_sys_global_symbol_pipe=
6815
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6816
lt_cv_sys_global_symbol_to_cdecl=
6818
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6819
echo "$as_me:$LINENO: result: failed" >&5
6820
echo "${ECHO_T}failed" >&6
6822
echo "$as_me:$LINENO: result: ok" >&5
6823
echo "${ECHO_T}ok" >&6
6826
echo "$as_me:$LINENO: checking for objdir" >&5
6827
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6828
if test "${lt_cv_objdir+set}" = set; then
6829
echo $ECHO_N "(cached) $ECHO_C" >&6
6831
rm -f .libs 2>/dev/null
6832
mkdir .libs 2>/dev/null
6833
if test -d .libs; then
6836
# MS-DOS does not allow filenames that begin with a dot.
6839
rmdir .libs 2>/dev/null
6841
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6842
echo "${ECHO_T}$lt_cv_objdir" >&6
6843
objdir=$lt_cv_objdir
6851
# AIX sometimes has problems with the GCC collect2 program. For some
6852
# reason, if we set the COLLECT_NAMES environment variable, the problems
6853
# vanish in a puff of smoke.
6854
if test "X${COLLECT_NAMES+set}" != Xset; then
6856
export COLLECT_NAMES
6861
# Sed substitution that helps us do robust quoting. It backslashifies
6862
# metacharacters that are still active within double-quoted strings.
6863
Xsed='sed -e s/^X//'
6864
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6866
# Same as above, but do not quote variable references.
6867
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6869
# Sed substitution to delay expansion of an escaped shell variable in a
6870
# double_quote_subst'ed string.
6871
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6873
# Sed substitution to avoid accidental globbing in evaled expressions
6874
no_glob_subst='s/\*/\\\*/g'
6880
default_ofile=libtool
6881
can_build_shared=yes
6883
# All known linkers require a `.a' archive for static linking (except M$VC,
6884
# which needs '.lib').
6886
ltmain="$ac_aux_dir/ltmain.sh"
6887
ofile="$default_ofile"
6888
with_gnu_ld="$lt_cv_prog_gnu_ld"
6890
if test -n "$ac_tool_prefix"; then
6891
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6892
set dummy ${ac_tool_prefix}ar; ac_word=$2
6893
echo "$as_me:$LINENO: checking for $ac_word" >&5
6894
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6895
if test "${ac_cv_prog_AR+set}" = set; then
6896
echo $ECHO_N "(cached) $ECHO_C" >&6
6898
if test -n "$AR"; then
6899
ac_cv_prog_AR="$AR" # Let the user override the test.
6901
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905
test -z "$as_dir" && as_dir=.
6906
for ac_exec_ext in '' $ac_executable_extensions; do
6907
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6908
ac_cv_prog_AR="${ac_tool_prefix}ar"
6909
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6918
if test -n "$AR"; then
6919
echo "$as_me:$LINENO: result: $AR" >&5
6920
echo "${ECHO_T}$AR" >&6
6922
echo "$as_me:$LINENO: result: no" >&5
6923
echo "${ECHO_T}no" >&6
6927
if test -z "$ac_cv_prog_AR"; then
6929
# Extract the first word of "ar", so it can be a program name with args.
6930
set dummy ar; ac_word=$2
6931
echo "$as_me:$LINENO: checking for $ac_word" >&5
6932
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6933
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6934
echo $ECHO_N "(cached) $ECHO_C" >&6
6936
if test -n "$ac_ct_AR"; then
6937
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6939
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943
test -z "$as_dir" && as_dir=.
6944
for ac_exec_ext in '' $ac_executable_extensions; do
6945
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6946
ac_cv_prog_ac_ct_AR="ar"
6947
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6953
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6956
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6957
if test -n "$ac_ct_AR"; then
6958
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6959
echo "${ECHO_T}$ac_ct_AR" >&6
6961
echo "$as_me:$LINENO: result: no" >&5
6962
echo "${ECHO_T}no" >&6
6970
if test -n "$ac_tool_prefix"; then
6971
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6972
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6973
echo "$as_me:$LINENO: checking for $ac_word" >&5
6974
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6975
if test "${ac_cv_prog_RANLIB+set}" = set; then
6976
echo $ECHO_N "(cached) $ECHO_C" >&6
6978
if test -n "$RANLIB"; then
6979
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6981
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985
test -z "$as_dir" && as_dir=.
6986
for ac_exec_ext in '' $ac_executable_extensions; do
6987
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6988
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6989
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997
RANLIB=$ac_cv_prog_RANLIB
6998
if test -n "$RANLIB"; then
6999
echo "$as_me:$LINENO: result: $RANLIB" >&5
7000
echo "${ECHO_T}$RANLIB" >&6
7002
echo "$as_me:$LINENO: result: no" >&5
7003
echo "${ECHO_T}no" >&6
7007
if test -z "$ac_cv_prog_RANLIB"; then
7008
ac_ct_RANLIB=$RANLIB
7009
# Extract the first word of "ranlib", so it can be a program name with args.
7010
set dummy ranlib; ac_word=$2
7011
echo "$as_me:$LINENO: checking for $ac_word" >&5
7012
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7013
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7014
echo $ECHO_N "(cached) $ECHO_C" >&6
7016
if test -n "$ac_ct_RANLIB"; then
7017
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7019
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023
test -z "$as_dir" && as_dir=.
7024
for ac_exec_ext in '' $ac_executable_extensions; do
7025
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7026
ac_cv_prog_ac_ct_RANLIB="ranlib"
7027
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7033
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7036
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7037
if test -n "$ac_ct_RANLIB"; then
7038
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7039
echo "${ECHO_T}$ac_ct_RANLIB" >&6
7041
echo "$as_me:$LINENO: result: no" >&5
7042
echo "${ECHO_T}no" >&6
7045
RANLIB=$ac_ct_RANLIB
7047
RANLIB="$ac_cv_prog_RANLIB"
7050
if test -n "$ac_tool_prefix"; then
7051
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7052
set dummy ${ac_tool_prefix}strip; ac_word=$2
7053
echo "$as_me:$LINENO: checking for $ac_word" >&5
7054
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7055
if test "${ac_cv_prog_STRIP+set}" = set; then
7056
echo $ECHO_N "(cached) $ECHO_C" >&6
7058
if test -n "$STRIP"; then
7059
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7061
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065
test -z "$as_dir" && as_dir=.
7066
for ac_exec_ext in '' $ac_executable_extensions; do
7067
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7068
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7069
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7077
STRIP=$ac_cv_prog_STRIP
7078
if test -n "$STRIP"; then
7079
echo "$as_me:$LINENO: result: $STRIP" >&5
7080
echo "${ECHO_T}$STRIP" >&6
7082
echo "$as_me:$LINENO: result: no" >&5
7083
echo "${ECHO_T}no" >&6
7087
if test -z "$ac_cv_prog_STRIP"; then
7089
# Extract the first word of "strip", so it can be a program name with args.
7090
set dummy strip; ac_word=$2
7091
echo "$as_me:$LINENO: checking for $ac_word" >&5
7092
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7093
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7094
echo $ECHO_N "(cached) $ECHO_C" >&6
7096
if test -n "$ac_ct_STRIP"; then
7097
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7099
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103
test -z "$as_dir" && as_dir=.
7104
for ac_exec_ext in '' $ac_executable_extensions; do
7105
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7106
ac_cv_prog_ac_ct_STRIP="strip"
7107
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7113
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7116
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7117
if test -n "$ac_ct_STRIP"; then
7118
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7119
echo "${ECHO_T}$ac_ct_STRIP" >&6
7121
echo "$as_me:$LINENO: result: no" >&5
7122
echo "${ECHO_T}no" >&6
7127
STRIP="$ac_cv_prog_STRIP"
7132
old_CFLAGS="$CFLAGS"
7134
# Set sane defaults for various variables
7135
test -z "$AR" && AR=ar
7136
test -z "$AR_FLAGS" && AR_FLAGS=cru
7137
test -z "$AS" && AS=as
7138
test -z "$CC" && CC=cc
7139
test -z "$LTCC" && LTCC=$CC
7140
test -z "$DLLTOOL" && DLLTOOL=dlltool
7141
test -z "$LD" && LD=ld
7142
test -z "$LN_S" && LN_S="ln -s"
7143
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7144
test -z "$NM" && NM=nm
7145
test -z "$SED" && SED=sed
7146
test -z "$OBJDUMP" && OBJDUMP=objdump
7147
test -z "$RANLIB" && RANLIB=:
7148
test -z "$STRIP" && STRIP=:
7149
test -z "$ac_objext" && ac_objext=o
7151
# Determine commands to create old-style static archives.
7152
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7153
old_postinstall_cmds='chmod 644 $oldlib'
7154
old_postuninstall_cmds=
7156
if test -n "$RANLIB"; then
7159
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7162
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7165
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7168
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
7170
# Only perform the check for file, if the check method requires it
7171
case $deplibs_check_method in
7173
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7174
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7175
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7176
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7177
echo $ECHO_N "(cached) $ECHO_C" >&6
7181
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7184
lt_save_MAGIC_CMD="$MAGIC_CMD"
7185
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7186
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7187
for ac_dir in $ac_dummy; do
7189
test -z "$ac_dir" && ac_dir=.
7190
if test -f $ac_dir/${ac_tool_prefix}file; then
7191
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7192
if test -n "$file_magic_test_file"; then
7193
case $deplibs_check_method in
7195
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7196
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7197
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7198
$EGREP "$file_magic_regex" > /dev/null; then
7203
*** Warning: the command libtool uses to detect shared libraries,
7204
*** $file_magic_cmd, produces output that libtool cannot recognize.
7205
*** The result is that libtool may fail to recognize shared libraries
7206
*** as such. This will affect the creation of libtool libraries that
7207
*** depend on shared libraries, but programs linked with such libtool
7208
*** libraries will work regardless of this problem. Nevertheless, you
7209
*** may want to report the problem to your system manager and/or to
7210
*** bug-libtool@gnu.org
7220
MAGIC_CMD="$lt_save_MAGIC_CMD"
7225
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7226
if test -n "$MAGIC_CMD"; then
7227
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7228
echo "${ECHO_T}$MAGIC_CMD" >&6
7230
echo "$as_me:$LINENO: result: no" >&5
7231
echo "${ECHO_T}no" >&6
7234
if test -z "$lt_cv_path_MAGIC_CMD"; then
7235
if test -n "$ac_tool_prefix"; then
7236
echo "$as_me:$LINENO: checking for file" >&5
7237
echo $ECHO_N "checking for file... $ECHO_C" >&6
7238
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7239
echo $ECHO_N "(cached) $ECHO_C" >&6
7243
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7246
lt_save_MAGIC_CMD="$MAGIC_CMD"
7247
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7248
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7249
for ac_dir in $ac_dummy; do
7251
test -z "$ac_dir" && ac_dir=.
7252
if test -f $ac_dir/file; then
7253
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7254
if test -n "$file_magic_test_file"; then
7255
case $deplibs_check_method in
7257
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7258
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7259
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7260
$EGREP "$file_magic_regex" > /dev/null; then
7265
*** Warning: the command libtool uses to detect shared libraries,
7266
*** $file_magic_cmd, produces output that libtool cannot recognize.
7267
*** The result is that libtool may fail to recognize shared libraries
7268
*** as such. This will affect the creation of libtool libraries that
7269
*** depend on shared libraries, but programs linked with such libtool
7270
*** libraries will work regardless of this problem. Nevertheless, you
7271
*** may want to report the problem to your system manager and/or to
7272
*** bug-libtool@gnu.org
7282
MAGIC_CMD="$lt_save_MAGIC_CMD"
7287
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7288
if test -n "$MAGIC_CMD"; then
7289
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7290
echo "${ECHO_T}$MAGIC_CMD" >&6
7292
echo "$as_me:$LINENO: result: no" >&5
7293
echo "${ECHO_T}no" >&6
7306
enable_win32_dll=yes
7308
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7309
if test "${enable_libtool_lock+set}" = set; then
7310
enableval="$enable_libtool_lock"
7313
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7316
# Check whether --with-pic or --without-pic was given.
7317
if test "${with_pic+set}" = set; then
7323
test -z "$pic_mode" && pic_mode=default
7325
# Use C for the default configuration in the libtool script
7329
ac_cpp='$CPP $CPPFLAGS'
7330
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7331
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7332
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7335
# Source file extension for C test sources.
7338
# Object file extension for compiled C test sources.
7342
# Code to be used in simple compile tests
7343
lt_simple_compile_test_code="int some_variable = 0;\n"
7345
# Code to be used in simple link tests
7346
lt_simple_link_test_code='int main(){return(0);}\n'
7349
# If no C compiler was specified, use CC.
7352
# Allow CC to be a program name with arguments.
7357
# Check for any special shared library compilation flags.
7360
if test "$GCC" = no; then
7363
lt_prog_cc_shlib='-belf'
7367
if test -n "$lt_prog_cc_shlib"; then
7368
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7369
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7370
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7372
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7373
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7374
lt_cv_prog_cc_can_build_shared=no
7380
# Check to make sure the static flag actually works.
7382
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7383
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7384
if test "${lt_prog_compiler_static_works+set}" = set; then
7385
echo $ECHO_N "(cached) $ECHO_C" >&6
7387
lt_prog_compiler_static_works=no
7388
save_LDFLAGS="$LDFLAGS"
7389
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7390
printf "$lt_simple_link_test_code" > conftest.$ac_ext
7391
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7392
# The compiler can only warn and ignore the option if not recognized
7393
# So say no if there are warnings
7394
if test -s conftest.err; then
7395
# Append any errors to the config.log.
7396
cat conftest.err 1>&5
7398
lt_prog_compiler_static_works=yes
7402
LDFLAGS="$save_LDFLAGS"
7405
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7406
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7408
if test x"$lt_prog_compiler_static_works" = xyes; then
7411
lt_prog_compiler_static=
7417
lt_prog_compiler_no_builtin_flag=
7419
if test "$GCC" = yes; then
7420
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7423
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7424
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7425
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7426
echo $ECHO_N "(cached) $ECHO_C" >&6
7428
lt_cv_prog_compiler_rtti_exceptions=no
7429
ac_outfile=conftest.$ac_objext
7430
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7431
lt_compiler_flag="-fno-rtti -fno-exceptions"
7432
# Insert the option either (1) after the last *FLAGS variable, or
7433
# (2) before a word containing "conftest.", or (3) at the end.
7434
# Note that $ac_compile itself does not contain backslashes and begins
7435
# with a dollar sign (not a hyphen), so the echo should work correctly.
7436
# The option is referenced via a variable to avoid confusing sed.
7437
lt_compile=`echo "$ac_compile" | $SED \
7438
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7439
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7440
-e 's:$: $lt_compiler_flag:'`
7441
(eval echo "\"\$as_me:7441: $lt_compile\"" >&5)
7442
(eval "$lt_compile" 2>conftest.err)
7444
cat conftest.err >&5
7445
echo "$as_me:7445: \$? = $ac_status" >&5
7446
if (exit $ac_status) && test -s "$ac_outfile"; then
7447
# The compiler can only warn and ignore the option if not recognized
7448
# So say no if there are warnings
7449
if test ! -s conftest.err; then
7450
lt_cv_prog_compiler_rtti_exceptions=yes
7456
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7457
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7459
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7460
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7467
lt_prog_compiler_wl=
7468
lt_prog_compiler_pic=
7469
lt_prog_compiler_static=
7471
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7472
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7474
if test "$GCC" = yes; then
7475
lt_prog_compiler_wl='-Wl,'
7476
lt_prog_compiler_static='-static'
7480
# All AIX code is PIC.
7481
if test "$host_cpu" = ia64; then
7482
# AIX 5 now supports IA64 processor
7483
lt_prog_compiler_static='-Bstatic'
7488
# FIXME: we need at least 68020 code to build shared libraries, but
7489
# adding the `-m68020' flag to GCC prevents building anything better,
7491
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7494
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7495
# PIC is the default for these OSes.
7498
mingw* | pw32* | os2*)
7499
# This hack is so that the source file can tell whether it is being
7500
# built for inclusion in a dll (and should export symbols for example).
7501
lt_prog_compiler_pic='-DDLL_EXPORT'
7504
darwin* | rhapsody*)
7505
# PIC is the default on this platform
7506
# Common symbols not allowed in MH_DYLIB files
7507
lt_prog_compiler_pic='-fno-common'
7511
# Just because we use GCC doesn't mean we suddenly get shared libraries
7512
# on systems that don't support them.
7513
lt_prog_compiler_can_build_shared=no
7518
if test -d /usr/nec; then
7519
lt_prog_compiler_pic=-Kconform_pic
7524
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7531
lt_prog_compiler_pic='-fPIC'
7537
lt_prog_compiler_pic='-fPIC'
7541
# PORTME Check for flag to pass linker flags through the system compiler.
7544
lt_prog_compiler_wl='-Wl,'
7545
if test "$host_cpu" = ia64; then
7546
# AIX 5 now supports IA64 processor
7547
lt_prog_compiler_static='-Bstatic'
7549
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7553
# PIC is the default on this platform
7554
# Common symbols not allowed in MH_DYLIB files
7555
case "$cc_basename" in
7557
lt_prog_compiler_pic='-qnocommon'
7558
lt_prog_compiler_wl='-Wl,'
7563
mingw* | pw32* | os2*)
7564
# This hack is so that the source file can tell whether it is being
7565
# built for inclusion in a dll (and should export symbols for example).
7566
lt_prog_compiler_pic='-DDLL_EXPORT'
7569
hpux9* | hpux10* | hpux11*)
7570
lt_prog_compiler_wl='-Wl,'
7571
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7578
lt_prog_compiler_pic='+Z'
7581
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7582
lt_prog_compiler_static='${wl}-a ${wl}archive'
7585
irix5* | irix6* | nonstopux*)
7586
lt_prog_compiler_wl='-Wl,'
7587
# PIC (with -KPIC) is the default.
7588
lt_prog_compiler_static='-non_shared'
7592
lt_prog_compiler_pic='-KPIC'
7593
lt_prog_compiler_static='-Bstatic'
7599
lt_prog_compiler_wl='-Wl,'
7600
lt_prog_compiler_pic='-KPIC'
7601
lt_prog_compiler_static='-static'
7604
lt_prog_compiler_wl='-Wl,'
7605
# All Alpha code is PIC.
7606
lt_prog_compiler_static='-non_shared'
7611
osf3* | osf4* | osf5*)
7612
lt_prog_compiler_wl='-Wl,'
7613
# All OSF/1 code is PIC.
7614
lt_prog_compiler_static='-non_shared'
7618
lt_prog_compiler_pic='-Kpic'
7619
lt_prog_compiler_static='-dn'
7623
lt_prog_compiler_wl='-Wl,'
7624
lt_prog_compiler_pic='-KPIC'
7625
lt_prog_compiler_static='-Bstatic'
7629
lt_prog_compiler_wl='-Qoption ld '
7630
lt_prog_compiler_pic='-PIC'
7631
lt_prog_compiler_static='-Bstatic'
7634
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7635
lt_prog_compiler_wl='-Wl,'
7636
lt_prog_compiler_pic='-KPIC'
7637
lt_prog_compiler_static='-Bstatic'
7641
if test -d /usr/nec ;then
7642
lt_prog_compiler_pic='-Kconform_pic'
7643
lt_prog_compiler_static='-Bstatic'
7648
lt_prog_compiler_pic='-pic'
7649
lt_prog_compiler_static='-Bstatic'
7653
lt_prog_compiler_can_build_shared=no
7658
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7659
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7662
# Check to make sure the PIC flag actually works.
7664
if test -n "$lt_prog_compiler_pic"; then
7666
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7667
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7668
if test "${lt_prog_compiler_pic_works+set}" = set; then
7669
echo $ECHO_N "(cached) $ECHO_C" >&6
7671
lt_prog_compiler_pic_works=no
7672
ac_outfile=conftest.$ac_objext
7673
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7674
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7675
# Insert the option either (1) after the last *FLAGS variable, or
7676
# (2) before a word containing "conftest.", or (3) at the end.
7677
# Note that $ac_compile itself does not contain backslashes and begins
7678
# with a dollar sign (not a hyphen), so the echo should work correctly.
7679
# The option is referenced via a variable to avoid confusing sed.
7680
lt_compile=`echo "$ac_compile" | $SED \
7681
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7682
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7683
-e 's:$: $lt_compiler_flag:'`
7684
(eval echo "\"\$as_me:7684: $lt_compile\"" >&5)
7685
(eval "$lt_compile" 2>conftest.err)
7687
cat conftest.err >&5
7688
echo "$as_me:7688: \$? = $ac_status" >&5
7689
if (exit $ac_status) && test -s "$ac_outfile"; then
7690
# The compiler can only warn and ignore the option if not recognized
7691
# So say no if there are warnings
7692
if test ! -s conftest.err; then
7693
lt_prog_compiler_pic_works=yes
7699
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7700
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7702
if test x"$lt_prog_compiler_pic_works" = xyes; then
7703
case $lt_prog_compiler_pic in
7705
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7708
lt_prog_compiler_pic=
7709
lt_prog_compiler_can_build_shared=no
7714
# For platforms which do not support PIC, -DPIC is meaningless:
7716
lt_prog_compiler_pic=
7719
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7723
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7724
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7725
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7726
echo $ECHO_N "(cached) $ECHO_C" >&6
7728
lt_cv_prog_compiler_c_o=no
7729
$rm -r conftest 2>/dev/null
7733
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7735
lt_compiler_flag="-o out/conftest2.$ac_objext"
7736
# Insert the option either (1) after the last *FLAGS variable, or
7737
# (2) before a word containing "conftest.", or (3) at the end.
7738
# Note that $ac_compile itself does not contain backslashes and begins
7739
# with a dollar sign (not a hyphen), so the echo should work correctly.
7740
lt_compile=`echo "$ac_compile" | $SED \
7741
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7742
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7743
-e 's:$: $lt_compiler_flag:'`
7744
(eval echo "\"\$as_me:7744: $lt_compile\"" >&5)
7745
(eval "$lt_compile" 2>out/conftest.err)
7747
cat out/conftest.err >&5
7748
echo "$as_me:7748: \$? = $ac_status" >&5
7749
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7751
# The compiler can only warn and ignore the option if not recognized
7752
# So say no if there are warnings
7753
if test ! -s out/conftest.err; then
7754
lt_cv_prog_compiler_c_o=yes
7759
# SGI C++ compiler will create directory out/ii_files/ for
7760
# template instantiation
7761
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7762
$rm out/* && rmdir out
7768
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7769
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7772
hard_links="nottested"
7773
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7774
# do not overwrite the value of need_locks provided by the user
7775
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7776
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7779
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7781
ln conftest.a conftest.b 2>&5 || hard_links=no
7782
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7783
echo "$as_me:$LINENO: result: $hard_links" >&5
7784
echo "${ECHO_T}$hard_links" >&6
7785
if test "$hard_links" = no; then
7786
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7787
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7794
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7795
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7798
allow_undefined_flag=
7799
enable_shared_with_static_runtimes=no
7801
archive_expsym_cmds=
7802
old_archive_From_new_cmds=
7803
old_archive_from_expsyms_cmds=
7804
export_dynamic_flag_spec=
7805
whole_archive_flag_spec=
7806
thread_safe_flag_spec=
7807
hardcode_libdir_flag_spec=
7808
hardcode_libdir_flag_spec_ld=
7809
hardcode_libdir_separator=
7812
hardcode_shlibpath_var=unsupported
7813
link_all_deplibs=unknown
7814
hardcode_automatic=no
7817
always_export_symbols=no
7818
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7819
# include_expsyms should be a list of space-separated symbols to be *always*
7820
# included in the symbol list
7822
# exclude_expsyms can be an extended regexp of symbols to exclude
7823
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7824
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7825
# as well as any symbol that contains `d'.
7826
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7827
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7828
# platforms (ab)use it in PIC code, but their linkers get confused if
7829
# the symbol is explicitly referenced. Since portable code cannot
7830
# rely on this symbol name, it's probably fine to never include it in
7831
# preloaded symbol tables.
7832
extract_expsyms_cmds=
7835
cygwin* | mingw* | pw32*)
7836
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7837
# When not using gcc, we currently assume that we are using
7838
# Microsoft Visual C++.
7839
if test "$GCC" != yes; then
7849
if test "$with_gnu_ld" = yes; then
7850
# If archive_cmds runs LD, not CC, wlarc should be empty
7853
# See if GNU ld supports shared libraries.
7855
aix3* | aix4* | aix5*)
7856
# On AIX/PPC, the GNU linker is very broken
7857
if test "$host_cpu" != ia64; then
7861
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7862
*** to be unable to reliably create shared libraries on AIX.
7863
*** Therefore, libtool is disabling shared libraries support. If you
7864
*** really care for shared libraries, you may want to modify your PATH
7865
*** so that a non-GNU linker is found, and then restart.
7872
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)'
7873
hardcode_libdir_flag_spec='-L$libdir'
7874
hardcode_minus_L=yes
7876
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7877
# that the semantics of dynamic libraries on AmigaOS, at least up
7878
# to version 4, is to share data among multiple programs linked
7879
# with the same dynamic library. Since this doesn't match the
7880
# behavior of shared libraries on other platforms, we can't use
7886
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7887
allow_undefined_flag=unsupported
7888
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7889
# support --undefined. This deserves some investigation. FIXME
7890
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7896
cygwin* | mingw* | pw32*)
7897
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7898
# as there is no search path for DLLs.
7899
hardcode_libdir_flag_spec='-L$libdir'
7900
allow_undefined_flag=unsupported
7901
always_export_symbols=no
7902
enable_shared_with_static_runtimes=yes
7903
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7905
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7906
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7907
# If the export-symbols file already is a .def file (1st line
7908
# is EXPORTS), use it as is; otherwise, prepend...
7909
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7910
cp $export_symbols $output_objdir/$soname.def;
7912
echo EXPORTS > $output_objdir/$soname.def;
7913
cat $export_symbols >> $output_objdir/$soname.def;
7915
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7922
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7923
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7926
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7927
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7932
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7936
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7937
*** create shared libraries on Solaris systems. Therefore, libtool
7938
*** is disabling shared libraries support. We urge you to upgrade GNU
7939
*** binutils to release 2.9.1 or newer. Another option is to modify
7940
*** your PATH or compiler configuration so that the native linker is
7941
*** used, and then restart.
7944
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7945
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7946
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7953
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7956
hardcode_shlibpath_var=no
7960
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7961
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7962
archive_cmds="$tmp_archive_cmds"
7963
supports_anon_versioning=no
7964
case `$LD -v 2>/dev/null` in
7965
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7966
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7967
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7968
*\ 2.11.*) ;; # other 2.11 versions
7969
*) supports_anon_versioning=yes ;;
7971
if test $supports_anon_versioning = yes; then
7972
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7973
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7974
$echo "local: *; };" >> $output_objdir/$libname.ver~
7975
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7977
archive_expsym_cmds="$tmp_archive_cmds"
7985
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7986
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7987
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7994
if test "$ld_shlibs" = yes; then
7995
runpath_var=LD_RUN_PATH
7996
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7997
export_dynamic_flag_spec='${wl}--export-dynamic'
7998
# ancient GNU ld didn't support --whole-archive et. al.
7999
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8000
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8002
whole_archive_flag_spec=
8006
# PORTME fill in a description of your system's linker (not GNU ld)
8009
allow_undefined_flag=unsupported
8010
always_export_symbols=yes
8011
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'
8012
# Note: this linker hardcodes the directories in LIBPATH if there
8013
# are no directories specified by -L.
8014
hardcode_minus_L=yes
8015
if test "$GCC" = yes && test -z "$link_static_flag"; then
8016
# Neither direct hardcoding nor static linking is supported with a
8018
hardcode_direct=unsupported
8023
if test "$host_cpu" = ia64; then
8024
# On IA64, the linker does run time linking by default, so we don't
8025
# have to do anything special.
8026
aix_use_runtimelinking=no
8027
exp_sym_flag='-Bexport'
8030
# If we're using GNU nm, then we don't want the "-C" option.
8031
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8032
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8033
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'
8035
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'
8037
aix_use_runtimelinking=no
8039
# Test if we are trying to use run time linking or normal
8040
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8041
# need to do runtime linking.
8042
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8043
for ld_flag in $LDFLAGS; do
8044
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8045
aix_use_runtimelinking=yes
8051
exp_sym_flag='-bexport'
8052
no_entry_flag='-bnoentry'
8055
# When large executables or shared objects are built, AIX ld can
8056
# have problems creating the table of contents. If linking a library
8057
# or program results in "error TOC overflow" add -mminimal-toc to
8058
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8059
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8063
hardcode_libdir_separator=':'
8064
link_all_deplibs=yes
8066
if test "$GCC" = yes; then
8067
case $host_os in aix4.012|aix4.012.*)
8068
# We only want to do this on AIX 4.2 and lower, the check
8069
# below for broken collect2 doesn't work under 4.3+
8070
collect2name=`${CC} -print-prog-name=collect2`
8071
if test -f "$collect2name" && \
8072
strings "$collect2name" | grep resolve_lib_name >/dev/null
8074
# We have reworked collect2
8077
# We have old collect2
8078
hardcode_direct=unsupported
8079
# It fails to find uninstalled libraries when the uninstalled
8080
# path is not listed in the libpath. Setting hardcode_minus_L
8081
# to unsupported forces relinking
8082
hardcode_minus_L=yes
8083
hardcode_libdir_flag_spec='-L$libdir'
8084
hardcode_libdir_separator=
8087
shared_flag='-shared'
8090
if test "$host_cpu" = ia64; then
8091
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8092
# chokes on -Wl,-G. The following line is correct:
8095
if test "$aix_use_runtimelinking" = yes; then
8096
shared_flag='${wl}-G'
8098
shared_flag='${wl}-bM:SRE'
8103
# It seems that -bexpall does not export symbols beginning with
8104
# underscore (_), so it is better to generate a list of symbols to export.
8105
always_export_symbols=yes
8106
if test "$aix_use_runtimelinking" = yes; then
8107
# Warning - without using the other runtime loading flags (-brtl),
8108
# -berok will link without error, but may produce a broken library.
8109
allow_undefined_flag='-berok'
8110
# Determine the default libpath from the value encoded in an empty executable.
8111
cat >conftest.$ac_ext <<_ACEOF
8114
cat confdefs.h >>conftest.$ac_ext
8115
cat >>conftest.$ac_ext <<_ACEOF
8116
/* end confdefs.h. */
8126
rm -f conftest.$ac_objext conftest$ac_exeext
8127
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8128
(eval $ac_link) 2>conftest.er1
8130
grep -v '^ *+' conftest.er1 >conftest.err
8132
cat conftest.err >&5
8133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134
(exit $ac_status); } &&
8135
{ ac_try='test -z "$ac_c_werror_flag"
8136
|| test ! -s conftest.err'
8137
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141
(exit $ac_status); }; } &&
8142
{ ac_try='test -s conftest$ac_exeext'
8143
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147
(exit $ac_status); }; }; then
8149
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8151
# Check for a 64-bit object if we didn't find anything.
8152
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; }
8155
echo "$as_me: failed program was:" >&5
8156
sed 's/^/| /' conftest.$ac_ext >&5
8159
rm -f conftest.err conftest.$ac_objext \
8160
conftest$ac_exeext conftest.$ac_ext
8161
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8163
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8164
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8166
if test "$host_cpu" = ia64; then
8167
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8168
allow_undefined_flag="-z nodefs"
8169
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8171
# Determine the default libpath from the value encoded in an empty executable.
8172
cat >conftest.$ac_ext <<_ACEOF
8175
cat confdefs.h >>conftest.$ac_ext
8176
cat >>conftest.$ac_ext <<_ACEOF
8177
/* end confdefs.h. */
8187
rm -f conftest.$ac_objext conftest$ac_exeext
8188
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8189
(eval $ac_link) 2>conftest.er1
8191
grep -v '^ *+' conftest.er1 >conftest.err
8193
cat conftest.err >&5
8194
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195
(exit $ac_status); } &&
8196
{ ac_try='test -z "$ac_c_werror_flag"
8197
|| test ! -s conftest.err'
8198
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8201
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202
(exit $ac_status); }; } &&
8203
{ ac_try='test -s conftest$ac_exeext'
8204
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208
(exit $ac_status); }; }; then
8210
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8212
# Check for a 64-bit object if we didn't find anything.
8213
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; }
8216
echo "$as_me: failed program was:" >&5
8217
sed 's/^/| /' conftest.$ac_ext >&5
8220
rm -f conftest.err conftest.$ac_objext \
8221
conftest$ac_exeext conftest.$ac_ext
8222
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8224
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8225
# Warning - without using the other run time loading flags,
8226
# -berok will link without error, but may produce a broken library.
8227
no_undefined_flag=' ${wl}-bernotok'
8228
allow_undefined_flag=' ${wl}-berok'
8229
# -bexpall does not export symbols beginning with underscore (_)
8230
always_export_symbols=yes
8231
# Exported symbols can be pulled into shared objects from archives
8232
whole_archive_flag_spec=' '
8233
archive_cmds_need_lc=yes
8234
# This is similar to how AIX traditionally builds it's shared libraries.
8235
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8241
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)'
8242
hardcode_libdir_flag_spec='-L$libdir'
8243
hardcode_minus_L=yes
8244
# see comment about different semantics on the GNU ld section
8249
export_dynamic_flag_spec=-rdynamic
8252
cygwin* | mingw* | pw32*)
8253
# When not using gcc, we currently assume that we are using
8254
# Microsoft Visual C++.
8255
# hardcode_libdir_flag_spec is actually meaningless, as there is
8256
# no search path for DLLs.
8257
hardcode_libdir_flag_spec=' '
8258
allow_undefined_flag=unsupported
8259
# Tell ltmain to make .lib files, not .a files.
8261
# Tell ltmain to make .dll files, not .so files.
8263
# FIXME: Setting linknames here is a bad hack.
8264
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8265
# The linker will automatically build a .lib file if we build a DLL.
8266
old_archive_From_new_cmds='true'
8267
# FIXME: Should let the user specify the lib program.
8268
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8269
fix_srcfile_path='`cygpath -w "$srcfile"`'
8270
enable_shared_with_static_runtimes=yes
8273
darwin* | rhapsody*)
8275
rhapsody* | darwin1.[012])
8276
allow_undefined_flag='${wl}-undefined ${wl}suppress'
8279
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8280
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8282
case ${MACOSX_DEPLOYMENT_TARGET} in
8284
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8287
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8293
archive_cmds_need_lc=no
8295
hardcode_automatic=yes
8296
hardcode_shlibpath_var=unsupported
8297
whole_archive_flag_spec=''
8298
link_all_deplibs=yes
8299
if test "$GCC" = yes ; then
8300
output_verbose_link_cmd='echo'
8301
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8302
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8303
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8304
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}'
8305
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}'
8307
case "$cc_basename" in
8309
output_verbose_link_cmd='echo'
8310
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8311
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8312
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8313
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}'
8314
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}'
8324
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8325
hardcode_libdir_flag_spec='-L$libdir'
8326
hardcode_shlibpath_var=no
8333
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8334
# support. Future versions do this automatically, but an explicit c++rt0.o
8335
# does not break anything, and helps significantly (at the cost of a little
8338
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8339
hardcode_libdir_flag_spec='-R$libdir'
8341
hardcode_shlibpath_var=no
8344
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8346
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8348
hardcode_minus_L=yes
8349
hardcode_shlibpath_var=no
8352
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8353
freebsd* | kfreebsd*-gnu)
8354
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8355
hardcode_libdir_flag_spec='-R$libdir'
8357
hardcode_shlibpath_var=no
8361
if test "$GCC" = yes; then
8362
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'
8364
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'
8366
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8367
hardcode_libdir_separator=:
8370
# hardcode_minus_L: Not really in the search PATH,
8371
# but as the default location of the library.
8372
hardcode_minus_L=yes
8373
export_dynamic_flag_spec='${wl}-E'
8377
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8380
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8383
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8389
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8392
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8396
if test "$with_gnu_ld" = no; then
8399
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8400
hardcode_libdir_flag_spec_ld='+b $libdir'
8401
hardcode_libdir_separator=:
8403
hardcode_shlibpath_var=no
8406
hardcode_libdir_flag_spec='-L$libdir'
8408
hardcode_shlibpath_var=no
8410
# hardcode_minus_L: Not really in the search PATH,
8411
# but as the default location of the library.
8412
hardcode_minus_L=yes
8415
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8416
hardcode_libdir_separator=:
8418
export_dynamic_flag_spec='${wl}-E'
8420
# hardcode_minus_L: Not really in the search PATH,
8421
# but as the default location of the library.
8422
hardcode_minus_L=yes
8428
irix5* | irix6* | nonstopux*)
8429
if test "$GCC" = yes; then
8430
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'
8432
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'
8433
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8435
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8436
hardcode_libdir_separator=:
8437
link_all_deplibs=yes
8441
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8442
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8444
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8446
hardcode_libdir_flag_spec='-R$libdir'
8448
hardcode_shlibpath_var=no
8452
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8454
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8455
hardcode_libdir_separator=:
8456
hardcode_shlibpath_var=no
8461
hardcode_shlibpath_var=no
8462
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8463
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8464
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8465
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8466
export_dynamic_flag_spec='${wl}-E'
8469
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8470
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8471
hardcode_libdir_flag_spec='-R$libdir'
8474
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8475
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8482
hardcode_libdir_flag_spec='-L$libdir'
8483
hardcode_minus_L=yes
8484
allow_undefined_flag=unsupported
8485
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'
8486
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8490
if test "$GCC" = yes; then
8491
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8492
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'
8494
allow_undefined_flag=' -expect_unresolved \*'
8495
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'
8497
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8498
hardcode_libdir_separator=:
8501
osf4* | osf5*) # as osf3* with the addition of -msym flag
8502
if test "$GCC" = yes; then
8503
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8504
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'
8505
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8507
allow_undefined_flag=' -expect_unresolved \*'
8508
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'
8509
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8510
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
8512
# Both c and cxx compiler support -rpath directly
8513
hardcode_libdir_flag_spec='-rpath $libdir'
8515
hardcode_libdir_separator=:
8519
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8520
hardcode_shlibpath_var=no
8521
export_dynamic_flag_spec='${wl}-Bexport'
8522
runpath_var=LD_RUN_PATH
8523
hardcode_runpath_var=yes
8527
no_undefined_flag=' -z text'
8528
if test "$GCC" = yes; then
8529
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8530
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8531
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8533
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8534
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8535
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8537
hardcode_libdir_flag_spec='-R$libdir'
8538
hardcode_shlibpath_var=no
8540
solaris2.[0-5] | solaris2.[0-5].*) ;;
8541
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
8542
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8544
link_all_deplibs=yes
8548
if test "x$host_vendor" = xsequent; then
8549
# Use $CC to link under sequent, because it throws in some extra .o
8550
# files that make .init and .fini sections work.
8551
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8553
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8555
hardcode_libdir_flag_spec='-L$libdir'
8557
hardcode_minus_L=yes
8558
hardcode_shlibpath_var=no
8562
case $host_vendor in
8564
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8565
hardcode_direct=yes # is this really true???
8568
## LD is ld it makes a PLAMLIB
8569
## CC just makes a GrossModule.
8570
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8571
reload_cmds='$CC -r -o $output$reload_objs'
8575
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8576
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8579
runpath_var='LD_RUN_PATH'
8580
hardcode_shlibpath_var=no
8584
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8585
hardcode_shlibpath_var=no
8586
export_dynamic_flag_spec='-Bexport'
8590
if test -d /usr/nec; then
8591
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8592
hardcode_shlibpath_var=no
8593
runpath_var=LD_RUN_PATH
8594
hardcode_runpath_var=yes
8600
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8603
hardcode_shlibpath_var=no
8604
hardcode_runpath_var=yes
8605
runpath_var=LD_RUN_PATH
8608
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8609
no_undefined_flag='${wl}-z ${wl}text'
8610
if test "$GCC" = yes; then
8611
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8613
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8615
runpath_var='LD_RUN_PATH'
8616
hardcode_shlibpath_var=no
8620
no_undefined_flag=' -z text'
8621
# $CC -shared without GNU ld will not create a library from C++
8622
# object files and a static libstdc++, better avoid it by now
8623
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8624
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8625
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8626
hardcode_libdir_flag_spec=
8627
hardcode_shlibpath_var=no
8628
runpath_var='LD_RUN_PATH'
8632
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8633
hardcode_libdir_flag_spec='-L$libdir'
8634
hardcode_shlibpath_var=no
8643
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8644
echo "${ECHO_T}$ld_shlibs" >&6
8645
test "$ld_shlibs" = no && can_build_shared=no
8647
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8648
if test "$GCC" = yes; then
8649
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8653
# Do we need to explicitly link libc?
8655
case "x$archive_cmds_need_lc" in
8657
# Assume -lc should be added
8658
archive_cmds_need_lc=yes
8660
if test "$enable_shared" = yes && test "$GCC" = yes; then
8661
case $archive_cmds in
8663
# FIXME: we may have to deal with multi-command sequences.
8666
# Test whether the compiler implicitly links with -lc since on some
8667
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8668
# to ld, don't add -lc before -lgcc.
8669
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8670
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8672
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8674
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8675
(eval $ac_compile) 2>&5
8677
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678
(exit $ac_status); } 2>conftest.err; then
8681
libobjs=conftest.$ac_objext
8683
wl=$lt_prog_compiler_wl
8689
lt_save_allow_undefined_flag=$allow_undefined_flag
8690
allow_undefined_flag=
8691
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8692
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8694
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695
(exit $ac_status); }
8697
archive_cmds_need_lc=no
8699
archive_cmds_need_lc=yes
8701
allow_undefined_flag=$lt_save_allow_undefined_flag
8703
cat conftest.err 1>&5
8706
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8707
echo "${ECHO_T}$archive_cmds_need_lc" >&6
8714
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8715
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8717
libname_spec='lib$name'
8725
shlibpath_overrides_runpath=unknown
8727
dynamic_linker="$host_os ld.so"
8728
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8729
if test "$GCC" = yes; then
8730
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8731
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8732
# if the path contains ";" then we assume it to be the separator
8733
# otherwise default to the standard path separator (i.e. ":") - it is
8734
# assumed that no part of a normal pathname contains ";" but that should
8735
# okay in the real world where ";" in dirpaths is itself problematic.
8736
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8738
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8741
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8743
need_lib_prefix=unknown
8744
hardcode_into_libs=no
8746
# when you set need_version to no, make sure it does not cause -set_version
8747
# flags to be left without arguments
8748
need_version=unknown
8753
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8754
shlibpath_var=LIBPATH
8756
# AIX 3 has no versioning support, so we append a major version to the name.
8757
soname_spec='${libname}${release}${shared_ext}$major'
8764
hardcode_into_libs=yes
8765
if test "$host_cpu" = ia64; then
8766
# AIX 5 supports IA64
8767
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8768
shlibpath_var=LD_LIBRARY_PATH
8770
# With GCC up to 2.95.x, collect2 would create an import file
8771
# for dependence libraries. The import file would start with
8772
# the line `#! .'. This would cause the generated library to
8773
# depend on `.', always an invalid library. This was fixed in
8774
# development snapshots of GCC prior to 3.0.
8776
aix4 | aix4.[01] | aix4.[01].*)
8777
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8779
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8786
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8787
# soname into executable. Probably we can add versioning support to
8788
# collect2, so additional links can be useful in future.
8789
if test "$aix_use_runtimelinking" = yes; then
8790
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
8791
# instead of lib<name>.a to let people know that these are not
8792
# typical AIX shared libraries.
8793
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8795
# We preserve .a as extension for shared libraries through AIX4.2
8796
# and later when we are not doing run time linking.
8797
library_names_spec='${libname}${release}.a $libname.a'
8798
soname_spec='${libname}${release}${shared_ext}$major'
8800
shlibpath_var=LIBPATH
8805
library_names_spec='$libname.ixlibrary $libname.a'
8806
# Create ${libname}_ixlibrary.a entries in /sys/libs.
8807
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'
8811
library_names_spec='${libname}${shared_ext}'
8812
dynamic_linker="$host_os ld.so"
8813
shlibpath_var=LIBRARY_PATH
8819
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8820
soname_spec='${libname}${release}${shared_ext}$major'
8821
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8822
shlibpath_var=LD_LIBRARY_PATH
8823
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8824
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8825
# the default ld.so.conf also contains /usr/contrib/lib and
8826
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8827
# libtool to hard-code these into programs
8830
cygwin* | mingw* | pw32*)
8831
version_type=windows
8836
case $GCC,$host_os in
8837
yes,cygwin* | yes,mingw* | yes,pw32*)
8838
library_names_spec='$libname.dll.a'
8839
# DLL is installed to $(libdir)/../bin by postinstall_cmds
8840
postinstall_cmds='base_file=`basename \${file}`~
8841
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8842
dldir=$destdir/`dirname \$dlpath`~
8843
test -d \$dldir || mkdir -p \$dldir~
8844
$install_prog $dir/$dlname \$dldir/$dlname'
8845
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8846
dlpath=$dir/\$dldll~
8848
shlibpath_overrides_runpath=yes
8852
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
8853
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8854
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8857
# MinGW DLLs use traditional 'lib' prefix
8858
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8859
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8860
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8861
# It is most probably a Windows format PATH printed by
8862
# mingw gcc, but we are running on Cygwin. Gcc prints its search
8863
# path with ; separators, and with drive letters. We can handle the
8864
# drive letters (cygwin fileutils understands them), so leave them,
8865
# especially as we might pass files found there to a mingw objdump,
8866
# which wouldn't understand a cygwinified path. Ahh.
8867
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8869
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8873
# pw32 DLLs use 'pw' prefix rather than 'lib'
8874
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8880
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8883
dynamic_linker='Win32 ld.exe'
8884
# FIXME: first we should search . and the directory the executable is in
8888
darwin* | rhapsody*)
8889
dynamic_linker="$host_os dyld"
8893
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8894
soname_spec='${libname}${release}${major}$shared_ext'
8895
shlibpath_overrides_runpath=yes
8896
shlibpath_var=DYLD_LIBRARY_PATH
8897
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8898
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8899
if test "$GCC" = yes; then
8900
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"`
8902
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8904
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8911
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8912
soname_spec='${libname}${release}${shared_ext}$major'
8913
shlibpath_var=LD_LIBRARY_PATH
8924
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8925
soname_spec='${libname}${release}${shared_ext}$major'
8926
shlibpath_var=LD_LIBRARY_PATH
8927
shlibpath_overrides_runpath=no
8928
hardcode_into_libs=yes
8929
dynamic_linker='GNU ld.so'
8933
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8934
version_type=freebsd-$objformat
8935
case $version_type in
8937
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8942
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8946
shlibpath_var=LD_LIBRARY_PATH
8949
shlibpath_overrides_runpath=yes
8951
freebsd3.01* | freebsdelf3.01*)
8952
shlibpath_overrides_runpath=yes
8953
hardcode_into_libs=yes
8956
shlibpath_overrides_runpath=no
8957
hardcode_into_libs=yes
8966
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8967
soname_spec='${libname}${release}${shared_ext}$major'
8968
shlibpath_var=LD_LIBRARY_PATH
8969
hardcode_into_libs=yes
8972
hpux9* | hpux10* | hpux11*)
8973
# Give a soname corresponding to the major version so that dld.sl refuses to
8974
# link against other versions.
8981
hardcode_into_libs=yes
8982
dynamic_linker="$host_os dld.so"
8983
shlibpath_var=LD_LIBRARY_PATH
8984
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8985
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8986
soname_spec='${libname}${release}${shared_ext}$major'
8987
if test "X$HPUX_IA64_MODE" = X32; then
8988
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8990
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8992
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8996
hardcode_into_libs=yes
8997
dynamic_linker="$host_os dld.sl"
8998
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8999
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9000
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9001
soname_spec='${libname}${release}${shared_ext}$major'
9002
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9003
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9007
dynamic_linker="$host_os dld.sl"
9008
shlibpath_var=SHLIB_PATH
9009
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9010
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9011
soname_spec='${libname}${release}${shared_ext}$major'
9014
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9015
postinstall_cmds='chmod 555 $lib'
9018
irix5* | irix6* | nonstopux*)
9020
nonstopux*) version_type=nonstopux ;;
9022
if test "$lt_cv_prog_gnu_ld" = yes; then
9030
soname_spec='${libname}${release}${shared_ext}$major'
9031
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9033
irix5* | nonstopux*)
9037
case $LD in # libtool.m4 will add one of these switches to LD
9038
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9039
libsuff= shlibsuff= libmagic=32-bit;;
9040
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9041
libsuff=32 shlibsuff=N32 libmagic=N32;;
9042
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9043
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9044
*) libsuff= shlibsuff= libmagic=never-match;;
9048
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9049
shlibpath_overrides_runpath=no
9050
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9051
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9052
hardcode_into_libs=yes
9055
# No shared lib support for Linux oldld, aout, or coff.
9056
linux*oldld* | linux*aout* | linux*coff*)
9060
# This must be Linux ELF.
9065
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9066
soname_spec='${libname}${release}${shared_ext}$major'
9067
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9068
shlibpath_var=LD_LIBRARY_PATH
9069
shlibpath_overrides_runpath=no
9070
# This implies no fast_install, which is unacceptable.
9071
# Some rework will be needed to allow for fast_install
9072
# before this can be enabled.
9073
hardcode_into_libs=yes
9075
# find out which ABI we are using
9078
x86_64*|s390x*|powerpc64*)
9079
echo '#line 9079 "configure"' > conftest.$ac_ext
9080
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9081
(eval $ac_compile) 2>&5
9083
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084
(exit $ac_status); }; then
9085
case `/usr/bin/file conftest.$ac_objext` in
9088
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9096
# Append ld.so.conf contents to the search path
9097
if test -f /etc/ld.so.conf; then
9098
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9099
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9102
# We used to test for /lib/ld.so.1 and disable shared libraries on
9103
# powerpc, because MkLinux only supported shared libraries with the
9104
# GNU dynamic linker. Since this was broken with cross compilers,
9105
# most powerpc-linux boxes support dynamic linking these days and
9106
# people can always --disable-shared, the test was removed, and we
9107
# assume the GNU/Linux dynamic linker is in use.
9108
dynamic_linker='GNU/Linux ld.so'
9115
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9116
soname_spec='${libname}${release}${shared_ext}$major'
9117
shlibpath_var=LD_LIBRARY_PATH
9118
shlibpath_overrides_runpath=no
9119
hardcode_into_libs=yes
9120
dynamic_linker='GNU ld.so'
9127
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9128
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9129
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9130
dynamic_linker='NetBSD (a.out) ld.so'
9132
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9133
soname_spec='${libname}${release}${shared_ext}$major'
9134
dynamic_linker='NetBSD ld.elf_so'
9136
shlibpath_var=LD_LIBRARY_PATH
9137
shlibpath_overrides_runpath=yes
9138
hardcode_into_libs=yes
9143
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9144
shlibpath_var=LD_LIBRARY_PATH
9145
shlibpath_overrides_runpath=yes
9152
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9153
soname_spec='${libname}${release}${shared_ext}$major'
9154
shlibpath_var=LD_LIBRARY_PATH
9155
shlibpath_overrides_runpath=yes
9162
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9163
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9164
shlibpath_var=LD_LIBRARY_PATH
9165
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9167
openbsd2.[89] | openbsd2.[89].*)
9168
shlibpath_overrides_runpath=no
9171
shlibpath_overrides_runpath=yes
9175
shlibpath_overrides_runpath=yes
9180
libname_spec='$name'
9183
library_names_spec='$libname${shared_ext} $libname.a'
9184
dynamic_linker='OS/2 ld.exe'
9185
shlibpath_var=LIBPATH
9188
osf3* | osf4* | osf5*)
9192
soname_spec='${libname}${release}${shared_ext}$major'
9193
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9194
shlibpath_var=LD_LIBRARY_PATH
9195
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9196
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9201
soname_spec='${libname}${release}${shared_ext}$major'
9202
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9203
shlibpath_var=LD_LIBRARY_PATH
9210
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9211
soname_spec='${libname}${release}${shared_ext}$major'
9212
shlibpath_var=LD_LIBRARY_PATH
9213
shlibpath_overrides_runpath=yes
9214
hardcode_into_libs=yes
9215
# ldd complains unless libraries are executable
9216
postinstall_cmds='chmod +x $lib'
9221
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9222
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9223
shlibpath_var=LD_LIBRARY_PATH
9224
shlibpath_overrides_runpath=yes
9225
if test "$with_gnu_ld" = yes; then
9231
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9233
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234
soname_spec='${libname}${release}${shared_ext}$major'
9235
shlibpath_var=LD_LIBRARY_PATH
9236
case $host_vendor in
9238
shlibpath_overrides_runpath=no
9240
export_dynamic_flag_spec='${wl}-Blargedynsym'
9241
runpath_var=LD_RUN_PATH
9249
shlibpath_overrides_runpath=no
9250
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9256
if test -d /usr/nec ;then
9258
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9259
soname_spec='$libname${shared_ext}.$major'
9260
shlibpath_var=LD_LIBRARY_PATH
9266
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9267
soname_spec='${libname}${release}${shared_ext}$major'
9268
shlibpath_var=LD_LIBRARY_PATH
9275
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9276
echo "${ECHO_T}$dynamic_linker" >&6
9277
test "$dynamic_linker" = no && can_build_shared=no
9279
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9280
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9282
if test -n "$hardcode_libdir_flag_spec" || \
9283
test -n "$runpath_var" || \
9284
test "X$hardcode_automatic" = "Xyes" ; then
9286
# We can hardcode non-existant directories.
9287
if test "$hardcode_direct" != no &&
9288
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9289
# have to relink, otherwise we might link with an installed library
9290
# when we should be linking with a yet-to-be-installed one
9291
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9292
test "$hardcode_minus_L" != no; then
9293
# Linking always hardcodes the temporary library directory.
9294
hardcode_action=relink
9296
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9297
hardcode_action=immediate
9300
# We cannot hardcode anything, or else we can only hardcode existing
9302
hardcode_action=unsupported
9304
echo "$as_me:$LINENO: result: $hardcode_action" >&5
9305
echo "${ECHO_T}$hardcode_action" >&6
9307
if test "$hardcode_action" = relink; then
9308
# Fast installation is not supported
9309
enable_fast_install=no
9310
elif test "$shlibpath_overrides_runpath" = yes ||
9311
test "$enable_shared" = no; then
9312
# Fast installation is not necessary
9313
enable_fast_install=needless
9318
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9319
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9320
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9321
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9322
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9323
echo "$as_me:$LINENO: result: yes" >&5
9324
echo "${ECHO_T}yes" >&6
9326
# FIXME - insert some real tests, host_os isn't really good enough
9329
if test -n "$STRIP" ; then
9330
striplib="$STRIP -x"
9331
echo "$as_me:$LINENO: result: yes" >&5
9332
echo "${ECHO_T}yes" >&6
9334
echo "$as_me:$LINENO: result: no" >&5
9335
echo "${ECHO_T}no" >&6
9339
echo "$as_me:$LINENO: result: no" >&5
9340
echo "${ECHO_T}no" >&6
9345
if test "x$enable_dlopen" != xyes; then
9346
enable_dlopen=unknown
9347
enable_dlopen_self=unknown
9348
enable_dlopen_self_static=unknown
9355
lt_cv_dlopen="load_add_on"
9357
lt_cv_dlopen_self=yes
9361
lt_cv_dlopen="LoadLibrary"
9366
lt_cv_dlopen="dlopen"
9371
# if libdl is installed we need to link against it
9372
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9373
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9374
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9375
echo $ECHO_N "(cached) $ECHO_C" >&6
9377
ac_check_lib_save_LIBS=$LIBS
9379
cat >conftest.$ac_ext <<_ACEOF
9382
cat confdefs.h >>conftest.$ac_ext
9383
cat >>conftest.$ac_ext <<_ACEOF
9384
/* end confdefs.h. */
9386
/* Override any gcc2 internal prototype to avoid an error. */
9390
/* We use char because int might match the return type of a gcc2
9391
builtin and then its argument prototype would still apply. */
9401
rm -f conftest.$ac_objext conftest$ac_exeext
9402
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9403
(eval $ac_link) 2>conftest.er1
9405
grep -v '^ *+' conftest.er1 >conftest.err
9407
cat conftest.err >&5
9408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409
(exit $ac_status); } &&
9410
{ ac_try='test -z "$ac_c_werror_flag"
9411
|| test ! -s conftest.err'
9412
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416
(exit $ac_status); }; } &&
9417
{ ac_try='test -s conftest$ac_exeext'
9418
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9421
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422
(exit $ac_status); }; }; then
9423
ac_cv_lib_dl_dlopen=yes
9425
echo "$as_me: failed program was:" >&5
9426
sed 's/^/| /' conftest.$ac_ext >&5
9428
ac_cv_lib_dl_dlopen=no
9430
rm -f conftest.err conftest.$ac_objext \
9431
conftest$ac_exeext conftest.$ac_ext
9432
LIBS=$ac_check_lib_save_LIBS
9434
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9435
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9436
if test $ac_cv_lib_dl_dlopen = yes; then
9437
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9442
lt_cv_dlopen_self=yes
9449
echo "$as_me:$LINENO: checking for shl_load" >&5
9450
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9451
if test "${ac_cv_func_shl_load+set}" = set; then
9452
echo $ECHO_N "(cached) $ECHO_C" >&6
9454
cat >conftest.$ac_ext <<_ACEOF
9457
cat confdefs.h >>conftest.$ac_ext
9458
cat >>conftest.$ac_ext <<_ACEOF
9459
/* end confdefs.h. */
9460
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9461
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9462
#define shl_load innocuous_shl_load
9464
/* System header to define __stub macros and hopefully few prototypes,
9465
which can conflict with char shl_load (); below.
9466
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9467
<limits.h> exists even on freestanding compilers. */
9470
# include <limits.h>
9472
# include <assert.h>
9477
/* Override any gcc2 internal prototype to avoid an error. */
9482
/* We use char because int might match the return type of a gcc2
9483
builtin and then its argument prototype would still apply. */
9485
/* The GNU C library defines this for functions which it implements
9486
to always fail with ENOSYS. Some functions are actually named
9487
something starting with __ and the normal name is an alias. */
9488
#if defined (__stub_shl_load) || defined (__stub___shl_load)
9491
char (*f) () = shl_load;
9500
return f != shl_load;
9505
rm -f conftest.$ac_objext conftest$ac_exeext
9506
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9507
(eval $ac_link) 2>conftest.er1
9509
grep -v '^ *+' conftest.er1 >conftest.err
9511
cat conftest.err >&5
9512
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513
(exit $ac_status); } &&
9514
{ ac_try='test -z "$ac_c_werror_flag"
9515
|| test ! -s conftest.err'
9516
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9519
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520
(exit $ac_status); }; } &&
9521
{ ac_try='test -s conftest$ac_exeext'
9522
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9525
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526
(exit $ac_status); }; }; then
9527
ac_cv_func_shl_load=yes
9529
echo "$as_me: failed program was:" >&5
9530
sed 's/^/| /' conftest.$ac_ext >&5
9532
ac_cv_func_shl_load=no
9534
rm -f conftest.err conftest.$ac_objext \
9535
conftest$ac_exeext conftest.$ac_ext
9537
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9538
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9539
if test $ac_cv_func_shl_load = yes; then
9540
lt_cv_dlopen="shl_load"
9542
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9543
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9544
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9545
echo $ECHO_N "(cached) $ECHO_C" >&6
9547
ac_check_lib_save_LIBS=$LIBS
9549
cat >conftest.$ac_ext <<_ACEOF
9552
cat confdefs.h >>conftest.$ac_ext
9553
cat >>conftest.$ac_ext <<_ACEOF
9554
/* end confdefs.h. */
9556
/* Override any gcc2 internal prototype to avoid an error. */
9560
/* We use char because int might match the return type of a gcc2
9561
builtin and then its argument prototype would still apply. */
9571
rm -f conftest.$ac_objext conftest$ac_exeext
9572
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9573
(eval $ac_link) 2>conftest.er1
9575
grep -v '^ *+' conftest.er1 >conftest.err
9577
cat conftest.err >&5
9578
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579
(exit $ac_status); } &&
9580
{ ac_try='test -z "$ac_c_werror_flag"
9581
|| test ! -s conftest.err'
9582
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586
(exit $ac_status); }; } &&
9587
{ ac_try='test -s conftest$ac_exeext'
9588
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592
(exit $ac_status); }; }; then
9593
ac_cv_lib_dld_shl_load=yes
9595
echo "$as_me: failed program was:" >&5
9596
sed 's/^/| /' conftest.$ac_ext >&5
9598
ac_cv_lib_dld_shl_load=no
9600
rm -f conftest.err conftest.$ac_objext \
9601
conftest$ac_exeext conftest.$ac_ext
9602
LIBS=$ac_check_lib_save_LIBS
9604
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9605
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9606
if test $ac_cv_lib_dld_shl_load = yes; then
9607
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9609
echo "$as_me:$LINENO: checking for dlopen" >&5
9610
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9611
if test "${ac_cv_func_dlopen+set}" = set; then
9612
echo $ECHO_N "(cached) $ECHO_C" >&6
9614
cat >conftest.$ac_ext <<_ACEOF
9617
cat confdefs.h >>conftest.$ac_ext
9618
cat >>conftest.$ac_ext <<_ACEOF
9619
/* end confdefs.h. */
9620
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9621
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9622
#define dlopen innocuous_dlopen
9624
/* System header to define __stub macros and hopefully few prototypes,
9625
which can conflict with char dlopen (); below.
9626
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9627
<limits.h> exists even on freestanding compilers. */
9630
# include <limits.h>
9632
# include <assert.h>
9637
/* Override any gcc2 internal prototype to avoid an error. */
9642
/* We use char because int might match the return type of a gcc2
9643
builtin and then its argument prototype would still apply. */
9645
/* The GNU C library defines this for functions which it implements
9646
to always fail with ENOSYS. Some functions are actually named
9647
something starting with __ and the normal name is an alias. */
9648
#if defined (__stub_dlopen) || defined (__stub___dlopen)
9651
char (*f) () = dlopen;
9665
rm -f conftest.$ac_objext conftest$ac_exeext
9666
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9667
(eval $ac_link) 2>conftest.er1
9669
grep -v '^ *+' conftest.er1 >conftest.err
9671
cat conftest.err >&5
9672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673
(exit $ac_status); } &&
9674
{ ac_try='test -z "$ac_c_werror_flag"
9675
|| test ! -s conftest.err'
9676
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680
(exit $ac_status); }; } &&
9681
{ ac_try='test -s conftest$ac_exeext'
9682
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686
(exit $ac_status); }; }; then
9687
ac_cv_func_dlopen=yes
9689
echo "$as_me: failed program was:" >&5
9690
sed 's/^/| /' conftest.$ac_ext >&5
9692
ac_cv_func_dlopen=no
9694
rm -f conftest.err conftest.$ac_objext \
9695
conftest$ac_exeext conftest.$ac_ext
9697
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9698
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9699
if test $ac_cv_func_dlopen = yes; then
9700
lt_cv_dlopen="dlopen"
9702
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9703
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9704
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9705
echo $ECHO_N "(cached) $ECHO_C" >&6
9707
ac_check_lib_save_LIBS=$LIBS
9709
cat >conftest.$ac_ext <<_ACEOF
9712
cat confdefs.h >>conftest.$ac_ext
9713
cat >>conftest.$ac_ext <<_ACEOF
9714
/* end confdefs.h. */
9716
/* Override any gcc2 internal prototype to avoid an error. */
9720
/* We use char because int might match the return type of a gcc2
9721
builtin and then its argument prototype would still apply. */
9731
rm -f conftest.$ac_objext conftest$ac_exeext
9732
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9733
(eval $ac_link) 2>conftest.er1
9735
grep -v '^ *+' conftest.er1 >conftest.err
9737
cat conftest.err >&5
9738
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739
(exit $ac_status); } &&
9740
{ ac_try='test -z "$ac_c_werror_flag"
9741
|| test ! -s conftest.err'
9742
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746
(exit $ac_status); }; } &&
9747
{ ac_try='test -s conftest$ac_exeext'
9748
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752
(exit $ac_status); }; }; then
9753
ac_cv_lib_dl_dlopen=yes
9755
echo "$as_me: failed program was:" >&5
9756
sed 's/^/| /' conftest.$ac_ext >&5
9758
ac_cv_lib_dl_dlopen=no
9760
rm -f conftest.err conftest.$ac_objext \
9761
conftest$ac_exeext conftest.$ac_ext
9762
LIBS=$ac_check_lib_save_LIBS
9764
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9765
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9766
if test $ac_cv_lib_dl_dlopen = yes; then
9767
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9769
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9770
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9771
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9772
echo $ECHO_N "(cached) $ECHO_C" >&6
9774
ac_check_lib_save_LIBS=$LIBS
9776
cat >conftest.$ac_ext <<_ACEOF
9779
cat confdefs.h >>conftest.$ac_ext
9780
cat >>conftest.$ac_ext <<_ACEOF
9781
/* end confdefs.h. */
9783
/* Override any gcc2 internal prototype to avoid an error. */
9787
/* We use char because int might match the return type of a gcc2
9788
builtin and then its argument prototype would still apply. */
9798
rm -f conftest.$ac_objext conftest$ac_exeext
9799
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9800
(eval $ac_link) 2>conftest.er1
9802
grep -v '^ *+' conftest.er1 >conftest.err
9804
cat conftest.err >&5
9805
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806
(exit $ac_status); } &&
9807
{ ac_try='test -z "$ac_c_werror_flag"
9808
|| test ! -s conftest.err'
9809
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9812
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813
(exit $ac_status); }; } &&
9814
{ ac_try='test -s conftest$ac_exeext'
9815
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819
(exit $ac_status); }; }; then
9820
ac_cv_lib_svld_dlopen=yes
9822
echo "$as_me: failed program was:" >&5
9823
sed 's/^/| /' conftest.$ac_ext >&5
9825
ac_cv_lib_svld_dlopen=no
9827
rm -f conftest.err conftest.$ac_objext \
9828
conftest$ac_exeext conftest.$ac_ext
9829
LIBS=$ac_check_lib_save_LIBS
9831
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9832
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9833
if test $ac_cv_lib_svld_dlopen = yes; then
9834
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9836
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9837
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9838
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9839
echo $ECHO_N "(cached) $ECHO_C" >&6
9841
ac_check_lib_save_LIBS=$LIBS
9843
cat >conftest.$ac_ext <<_ACEOF
9846
cat confdefs.h >>conftest.$ac_ext
9847
cat >>conftest.$ac_ext <<_ACEOF
9848
/* end confdefs.h. */
9850
/* Override any gcc2 internal prototype to avoid an error. */
9854
/* We use char because int might match the return type of a gcc2
9855
builtin and then its argument prototype would still apply. */
9865
rm -f conftest.$ac_objext conftest$ac_exeext
9866
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9867
(eval $ac_link) 2>conftest.er1
9869
grep -v '^ *+' conftest.er1 >conftest.err
9871
cat conftest.err >&5
9872
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873
(exit $ac_status); } &&
9874
{ ac_try='test -z "$ac_c_werror_flag"
9875
|| test ! -s conftest.err'
9876
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880
(exit $ac_status); }; } &&
9881
{ ac_try='test -s conftest$ac_exeext'
9882
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886
(exit $ac_status); }; }; then
9887
ac_cv_lib_dld_dld_link=yes
9889
echo "$as_me: failed program was:" >&5
9890
sed 's/^/| /' conftest.$ac_ext >&5
9892
ac_cv_lib_dld_dld_link=no
9894
rm -f conftest.err conftest.$ac_objext \
9895
conftest$ac_exeext conftest.$ac_ext
9896
LIBS=$ac_check_lib_save_LIBS
9898
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9899
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9900
if test $ac_cv_lib_dld_dld_link = yes; then
9901
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9922
if test "x$lt_cv_dlopen" != xno; then
9928
case $lt_cv_dlopen in
9930
save_CPPFLAGS="$CPPFLAGS"
9931
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9933
save_LDFLAGS="$LDFLAGS"
9934
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9937
LIBS="$lt_cv_dlopen_libs $LIBS"
9939
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9940
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9941
if test "${lt_cv_dlopen_self+set}" = set; then
9942
echo $ECHO_N "(cached) $ECHO_C" >&6
9944
if test "$cross_compiling" = yes; then :
9945
lt_cv_dlopen_self=cross
9947
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9948
lt_status=$lt_dlunknown
9949
cat > conftest.$ac_ext <<EOF
9950
#line 9950 "configure"
9951
#include "confdefs.h"
9960
# define LT_DLGLOBAL RTLD_GLOBAL
9963
# define LT_DLGLOBAL DL_GLOBAL
9965
# define LT_DLGLOBAL 0
9969
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9970
find out it does not work in some platform. */
9971
#ifndef LT_DLLAZY_OR_NOW
9973
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9976
# define LT_DLLAZY_OR_NOW DL_LAZY
9979
# define LT_DLLAZY_OR_NOW RTLD_NOW
9982
# define LT_DLLAZY_OR_NOW DL_NOW
9984
# define LT_DLLAZY_OR_NOW 0
9992
extern "C" void exit (int);
9995
void fnord() { int i=42;}
9998
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9999
int status = $lt_dlunknown;
10003
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10004
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10005
/* dlclose (self); */
10011
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10012
(eval $ac_link) 2>&5
10014
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10016
(./conftest; exit; ) 2>/dev/null
10018
case x$lt_status in
10019
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10020
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10021
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10024
# compilation failed
10025
lt_cv_dlopen_self=no
10032
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10033
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10035
if test "x$lt_cv_dlopen_self" = xyes; then
10036
LDFLAGS="$LDFLAGS $link_static_flag"
10037
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10038
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10039
if test "${lt_cv_dlopen_self_static+set}" = set; then
10040
echo $ECHO_N "(cached) $ECHO_C" >&6
10042
if test "$cross_compiling" = yes; then :
10043
lt_cv_dlopen_self_static=cross
10045
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10046
lt_status=$lt_dlunknown
10047
cat > conftest.$ac_ext <<EOF
10048
#line 10048 "configure"
10049
#include "confdefs.h"
10058
# define LT_DLGLOBAL RTLD_GLOBAL
10061
# define LT_DLGLOBAL DL_GLOBAL
10063
# define LT_DLGLOBAL 0
10067
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10068
find out it does not work in some platform. */
10069
#ifndef LT_DLLAZY_OR_NOW
10071
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10074
# define LT_DLLAZY_OR_NOW DL_LAZY
10077
# define LT_DLLAZY_OR_NOW RTLD_NOW
10080
# define LT_DLLAZY_OR_NOW DL_NOW
10082
# define LT_DLLAZY_OR_NOW 0
10090
extern "C" void exit (int);
10093
void fnord() { int i=42;}
10096
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10097
int status = $lt_dlunknown;
10101
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10102
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10103
/* dlclose (self); */
10109
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10110
(eval $ac_link) 2>&5
10112
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10114
(./conftest; exit; ) 2>/dev/null
10116
case x$lt_status in
10117
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10118
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10119
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10122
# compilation failed
10123
lt_cv_dlopen_self_static=no
10130
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10131
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10134
CPPFLAGS="$save_CPPFLAGS"
10135
LDFLAGS="$save_LDFLAGS"
10140
case $lt_cv_dlopen_self in
10141
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10142
*) enable_dlopen_self=unknown ;;
10145
case $lt_cv_dlopen_self_static in
10146
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10147
*) enable_dlopen_self_static=unknown ;;
10152
# Report which librarie types wil actually be built
10153
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10154
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10155
echo "$as_me:$LINENO: result: $can_build_shared" >&5
10156
echo "${ECHO_T}$can_build_shared" >&6
10158
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10159
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10160
test "$can_build_shared" = "no" && enable_shared=no
10162
# On AIX, shared libraries and static libraries use the same namespace, and
10163
# are all built from PIC.
10166
test "$enable_shared" = yes && enable_static=no
10167
if test -n "$RANLIB"; then
10168
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10169
postinstall_cmds='$RANLIB $lib'
10174
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10175
test "$enable_shared" = yes && enable_static=no
10179
echo "$as_me:$LINENO: result: $enable_shared" >&5
10180
echo "${ECHO_T}$enable_shared" >&6
10182
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10183
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10184
# Make sure either enable_shared or enable_static is yes.
10185
test "$enable_shared" = yes || enable_static=yes
10186
echo "$as_me:$LINENO: result: $enable_static" >&5
10187
echo "${ECHO_T}$enable_static" >&6
10189
# The else clause should only fire when bootstrapping the
10190
# libtool distribution, otherwise you forgot to ship ltmain.sh
10191
# with your package, and you will get complaints that there are
10192
# no rules to generate ltmain.sh.
10193
if test -f "$ltmain"; then
10194
# See if we are running on zsh, and set the options which allow our commands through
10195
# without removal of \ escapes.
10196
if test -n "${ZSH_VERSION+set}" ; then
10197
setopt NO_GLOB_SUBST
10199
# Now quote all the things that may contain metacharacters while being
10200
# careful not to overquote the AC_SUBSTed values. We take copies of the
10201
# variables and quote the copies for generation of the libtool script.
10202
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10204
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10205
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10206
deplibs_check_method reload_flag reload_cmds need_locks \
10207
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10208
lt_cv_sys_global_symbol_to_c_name_address \
10209
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10210
old_postinstall_cmds old_postuninstall_cmds \
10214
lt_prog_compiler_wl \
10215
lt_prog_compiler_pic \
10216
lt_prog_compiler_static \
10217
lt_prog_compiler_no_builtin_flag \
10218
export_dynamic_flag_spec \
10219
thread_safe_flag_spec \
10220
whole_archive_flag_spec \
10221
enable_shared_with_static_runtimes \
10223
old_archive_from_new_cmds \
10228
compiler_lib_search_path \
10230
archive_expsym_cmds \
10232
postuninstall_cmds \
10233
old_archive_from_expsyms_cmds \
10234
allow_undefined_flag \
10235
no_undefined_flag \
10236
export_symbols_cmds \
10237
hardcode_libdir_flag_spec \
10238
hardcode_libdir_flag_spec_ld \
10239
hardcode_libdir_separator \
10240
hardcode_automatic \
10242
module_expsym_cmds \
10243
lt_cv_prog_compiler_c_o \
10245
include_expsyms; do
10248
old_archive_cmds | \
10249
old_archive_from_new_cmds | \
10251
archive_expsym_cmds | \
10253
module_expsym_cmds | \
10254
old_archive_from_expsyms_cmds | \
10255
export_symbols_cmds | \
10256
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10257
postinstall_cmds | postuninstall_cmds | \
10258
old_postinstall_cmds | old_postuninstall_cmds | \
10259
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10260
# Double-quote double-evaled strings.
10261
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10264
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10270
*'\$0 --fallback-echo"')
10271
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10275
cfgfile="${ofile}T"
10276
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10278
{ echo "$as_me:$LINENO: creating $ofile" >&5
10279
echo "$as_me: creating $ofile" >&6;}
10281
cat <<__EOF__ >> "$cfgfile"
10284
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10285
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10286
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10288
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10289
# Free Software Foundation, Inc.
10291
# This file is part of GNU Libtool:
10292
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10294
# This program is free software; you can redistribute it and/or modify
10295
# it under the terms of the GNU General Public License as published by
10296
# the Free Software Foundation; either version 2 of the License, or
10297
# (at your option) any later version.
10299
# This program is distributed in the hope that it will be useful, but
10300
# WITHOUT ANY WARRANTY; without even the implied warranty of
10301
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10302
# General Public License for more details.
10304
# You should have received a copy of the GNU General Public License
10305
# along with this program; if not, write to the Free Software
10306
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10308
# As a special exception to the GNU General Public License, if you
10309
# distribute this file as part of a program that contains a
10310
# configuration script generated by Autoconf, you may include it under
10311
# the same distribution terms that you use for the rest of that program.
10313
# A sed program that does not truncate output.
10316
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10317
Xsed="$SED -e s/^X//"
10319
# The HP-UX ksh and POSIX shell print the target directory to stdout
10320
# if CDPATH is set.
10321
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10323
# The names of the tagged configurations supported by this script.
10326
# ### BEGIN LIBTOOL CONFIG
10328
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10330
# Shell to use when invoking shell scripts.
10333
# Whether or not to build shared libraries.
10334
build_libtool_libs=$enable_shared
10336
# Whether or not to build static libraries.
10337
build_old_libs=$enable_static
10339
# Whether or not to add -lc for building shared libraries.
10340
build_libtool_need_lc=$archive_cmds_need_lc
10342
# Whether or not to disallow shared libs when runtime libs are static
10343
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10345
# Whether or not to optimize for fast installation.
10346
fast_install=$enable_fast_install
10349
host_alias=$host_alias
10352
# An echo program that does not interpret backslashes.
10357
AR_FLAGS=$lt_AR_FLAGS
10362
# A language-specific compiler.
10365
# Is the compiler the GNU C compiler?
10371
# The linker used to build libraries.
10374
# Whether we need hard or soft links.
10377
# A BSD-compatible nm program.
10380
# A symbol stripping program
10383
# Used to examine libraries when file_magic_cmd begins "file"
10384
MAGIC_CMD=$MAGIC_CMD
10386
# Used on cygwin: DLL creation program.
10389
# Used on cygwin: object dumper.
10392
# Used on cygwin: assembler.
10395
# The name of the directory that contains temporary libtool files.
10398
# How to create reloadable object files.
10399
reload_flag=$lt_reload_flag
10400
reload_cmds=$lt_reload_cmds
10402
# How to pass a linker flag through the compiler.
10403
wl=$lt_lt_prog_compiler_wl
10405
# Object file suffix (normally "o").
10406
objext="$ac_objext"
10408
# Old archive suffix (normally "a").
10411
# Shared library suffix (normally ".so").
10412
shrext_cmds='$shrext_cmds'
10414
# Executable file suffix (normally "").
10417
# Additional compiler flags for building library objects.
10418
pic_flag=$lt_lt_prog_compiler_pic
10421
# What is the maximum length of a command?
10422
max_cmd_len=$lt_cv_sys_max_cmd_len
10424
# Does compiler simultaneously support -c and -o options?
10425
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10427
# Must we lock files when doing compilation ?
10428
need_locks=$lt_need_locks
10430
# Do we need the lib prefix for modules?
10431
need_lib_prefix=$need_lib_prefix
10433
# Do we need a version for libraries?
10434
need_version=$need_version
10436
# Whether dlopen is supported.
10437
dlopen_support=$enable_dlopen
10439
# Whether dlopen of programs is supported.
10440
dlopen_self=$enable_dlopen_self
10442
# Whether dlopen of statically linked programs is supported.
10443
dlopen_self_static=$enable_dlopen_self_static
10445
# Compiler flag to prevent dynamic linking.
10446
link_static_flag=$lt_lt_prog_compiler_static
10448
# Compiler flag to turn off builtin functions.
10449
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10451
# Compiler flag to allow reflexive dlopens.
10452
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10454
# Compiler flag to generate shared objects directly from archives.
10455
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10457
# Compiler flag to generate thread-safe objects.
10458
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10460
# Library versioning type.
10461
version_type=$version_type
10463
# Format of library name prefix.
10464
libname_spec=$lt_libname_spec
10466
# List of archive names. First name is the real one, the rest are links.
10467
# The last name is the one that the linker finds with -lNAME.
10468
library_names_spec=$lt_library_names_spec
10470
# The coded name of the library, if different from the real name.
10471
soname_spec=$lt_soname_spec
10473
# Commands used to build and install an old-style archive.
10475
old_archive_cmds=$lt_old_archive_cmds
10476
old_postinstall_cmds=$lt_old_postinstall_cmds
10477
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10479
# Create an old-style archive from a shared archive.
10480
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10482
# Create a temporary old-style archive to link instead of a shared archive.
10483
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10485
# Commands used to build and install a shared archive.
10486
archive_cmds=$lt_archive_cmds
10487
archive_expsym_cmds=$lt_archive_expsym_cmds
10488
postinstall_cmds=$lt_postinstall_cmds
10489
postuninstall_cmds=$lt_postuninstall_cmds
10491
# Commands used to build a loadable module (assumed same as above if empty)
10492
module_cmds=$lt_module_cmds
10493
module_expsym_cmds=$lt_module_expsym_cmds
10495
# Commands to strip libraries.
10496
old_striplib=$lt_old_striplib
10497
striplib=$lt_striplib
10499
# Dependencies to place before the objects being linked to create a
10501
predep_objects=$lt_predep_objects
10503
# Dependencies to place after the objects being linked to create a
10505
postdep_objects=$lt_postdep_objects
10507
# Dependencies to place before the objects being linked to create a
10509
predeps=$lt_predeps
10511
# Dependencies to place after the objects being linked to create a
10513
postdeps=$lt_postdeps
10515
# The library search path used internally by the compiler when linking
10516
# a shared library.
10517
compiler_lib_search_path=$lt_compiler_lib_search_path
10519
# Method to check whether dependent libraries are shared objects.
10520
deplibs_check_method=$lt_deplibs_check_method
10522
# Command to use when deplibs_check_method == file_magic.
10523
file_magic_cmd=$lt_file_magic_cmd
10525
# Flag that allows shared libraries with undefined symbols to be built.
10526
allow_undefined_flag=$lt_allow_undefined_flag
10528
# Flag that forces no undefined symbols.
10529
no_undefined_flag=$lt_no_undefined_flag
10531
# Commands used to finish a libtool library installation in a directory.
10532
finish_cmds=$lt_finish_cmds
10534
# Same as above, but a single script fragment to be evaled but not shown.
10535
finish_eval=$lt_finish_eval
10537
# Take the output of nm and produce a listing of raw symbols and C names.
10538
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10540
# Transform the output of nm in a proper C declaration
10541
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10543
# Transform the output of nm in a C name address pair
10544
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10546
# This is the shared library runtime path variable.
10547
runpath_var=$runpath_var
10549
# This is the shared library path variable.
10550
shlibpath_var=$shlibpath_var
10552
# Is shlibpath searched before the hard-coded library search path?
10553
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10555
# How to hardcode a shared library path into an executable.
10556
hardcode_action=$hardcode_action
10558
# Whether we should hardcode library paths into libraries.
10559
hardcode_into_libs=$hardcode_into_libs
10561
# Flag to hardcode \$libdir into a binary during linking.
10562
# This must work even if \$libdir does not exist.
10563
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10565
# If ld is used when linking, flag to hardcode \$libdir into
10566
# a binary during linking. This must work even if \$libdir does
10568
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10570
# Whether we need a single -rpath flag with a separated argument.
10571
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10573
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10574
# resulting binary.
10575
hardcode_direct=$hardcode_direct
10577
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10578
# resulting binary.
10579
hardcode_minus_L=$hardcode_minus_L
10581
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10582
# the resulting binary.
10583
hardcode_shlibpath_var=$hardcode_shlibpath_var
10585
# Set to yes if building a shared library automatically hardcodes DIR into the library
10586
# and all subsequent libraries and executables linked against it.
10587
hardcode_automatic=$hardcode_automatic
10589
# Variables whose values should be saved in libtool wrapper scripts and
10590
# restored at relink time.
10591
variables_saved_for_relink="$variables_saved_for_relink"
10593
# Whether libtool must link a program against all its dependency libraries.
10594
link_all_deplibs=$link_all_deplibs
10596
# Compile-time system search path for libraries
10597
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10599
# Run-time system search path for libraries
10600
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10602
# Fix the shell variable \$srcfile for the compiler.
10603
fix_srcfile_path="$fix_srcfile_path"
10605
# Set to yes if exported symbols are required.
10606
always_export_symbols=$always_export_symbols
10608
# The commands to list exported symbols.
10609
export_symbols_cmds=$lt_export_symbols_cmds
10611
# The commands to extract the exported symbol list from a shared archive.
10612
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10614
# Symbols that should not be listed in the preloaded symbols.
10615
exclude_expsyms=$lt_exclude_expsyms
10617
# Symbols that must always be exported.
10618
include_expsyms=$lt_include_expsyms
10620
# ### END LIBTOOL CONFIG
10627
cat <<\EOF >> "$cfgfile"
10629
# AIX sometimes has problems with the GCC collect2 program. For some
10630
# reason, if we set the COLLECT_NAMES environment variable, the problems
10631
# vanish in a puff of smoke.
10632
if test "X${COLLECT_NAMES+set}" != Xset; then
10634
export COLLECT_NAMES
10640
# We use sed instead of cat because bash on DJGPP gets confused if
10641
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10642
# text mode, it properly converts lines to CR/LF. This bash problem
10643
# is reportedly fixed, but why not run on old versions too?
10644
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10646
mv -f "$cfgfile" "$ofile" || \
10647
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10651
# If there is no Makefile yet, we rely on a make rule to execute
10652
# `config.status --recheck' to rerun these tests and create the
10653
# libtool script then.
10654
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10655
if test -f "$ltmain_in"; then
10656
test -f Makefile && make "$ltmain"
10662
ac_cpp='$CPP $CPPFLAGS'
10663
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10664
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10665
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10670
# Check whether --with-tags or --without-tags was given.
10671
if test "${with_tags+set}" = set; then
10672
withval="$with_tags"
10673
tagnames="$withval"
10676
if test -f "$ltmain" && test -n "$tagnames"; then
10677
if test ! -f "${ofile}"; then
10678
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10679
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10682
if test -z "$LTCC"; then
10683
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10684
if test -z "$LTCC"; then
10685
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10686
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10688
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10689
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10693
# Extract list of available tagged configurations in $ofile.
10694
# Note that this assumes the entire list is on one line.
10695
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10697
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10698
for tagname in $tagnames; do
10700
# Check whether tagname contains only valid characters
10701
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10703
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10704
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10705
{ (exit 1); exit 1; }; }
10709
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10711
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10712
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10713
{ (exit 1); exit 1; }; }
10716
# Update the list of available tags.
10717
if test -n "$tagname"; then
10718
echo appending configuration tag \"$tagname\" to $ofile
10722
if test -n "$CXX" && test "X$CXX" != "Xno"; then
10724
ac_cpp='$CXXCPP $CPPFLAGS'
10725
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10726
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10727
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10732
archive_cmds_need_lc_CXX=no
10733
allow_undefined_flag_CXX=
10734
always_export_symbols_CXX=no
10735
archive_expsym_cmds_CXX=
10736
export_dynamic_flag_spec_CXX=
10737
hardcode_direct_CXX=no
10738
hardcode_libdir_flag_spec_CXX=
10739
hardcode_libdir_flag_spec_ld_CXX=
10740
hardcode_libdir_separator_CXX=
10741
hardcode_minus_L_CXX=no
10742
hardcode_automatic_CXX=no
10744
module_expsym_cmds_CXX=
10745
link_all_deplibs_CXX=unknown
10746
old_archive_cmds_CXX=$old_archive_cmds
10747
no_undefined_flag_CXX=
10748
whole_archive_flag_spec_CXX=
10749
enable_shared_with_static_runtimes_CXX=no
10751
# Dependencies to place before and after the object being linked:
10752
predep_objects_CXX=
10753
postdep_objects_CXX=
10756
compiler_lib_search_path_CXX=
10758
# Source file extension for C++ test sources.
10761
# Object file extension for compiled C++ test sources.
10765
# Code to be used in simple compile tests
10766
lt_simple_compile_test_code="int some_variable = 0;\n"
10768
# Code to be used in simple link tests
10769
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10771
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10773
# If no C compiler was specified, use CC.
10776
# Allow CC to be a program name with arguments.
10780
# Allow CC to be a program name with arguments.
10785
lt_save_with_gnu_ld=$with_gnu_ld
10786
lt_save_path_LD=$lt_cv_path_LD
10787
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10788
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10790
unset lt_cv_prog_gnu_ld
10792
if test -n "${lt_cv_path_LDCXX+set}"; then
10793
lt_cv_path_LD=$lt_cv_path_LDCXX
10795
unset lt_cv_path_LD
10797
test -z "${LDCXX+set}" || LD=$LDCXX
10801
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10803
# We don't want -fno-exception wen compiling C++ code, so set the
10804
# no_builtin_flag separately
10805
if test "$GXX" = yes; then
10806
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10808
lt_prog_compiler_no_builtin_flag_CXX=
10811
if test "$GXX" = yes; then
10812
# Set up default GNU C++ configuration
10815
# Check whether --with-gnu-ld or --without-gnu-ld was given.
10816
if test "${with_gnu_ld+set}" = set; then
10817
withval="$with_gnu_ld"
10818
test "$withval" = no || with_gnu_ld=yes
10823
if test "$GCC" = yes; then
10824
# Check if gcc -print-prog-name=ld gives a path.
10825
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10826
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10829
# gcc leaves a trailing carriage return which upsets mingw
10830
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10832
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10835
# Accept absolute paths.
10837
re_direlt='/[^/][^/]*/\.\./'
10838
# Canonicalize the pathname of ld
10839
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10840
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10841
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10843
test -z "$LD" && LD="$ac_prog"
10846
# If it fails, then pretend we aren't using GCC.
10850
# If it is relative, then search for the first ld in PATH.
10851
with_gnu_ld=unknown
10854
elif test "$with_gnu_ld" = yes; then
10855
echo "$as_me:$LINENO: checking for GNU ld" >&5
10856
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10858
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10859
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10861
if test "${lt_cv_path_LD+set}" = set; then
10862
echo $ECHO_N "(cached) $ECHO_C" >&6
10864
if test -z "$LD"; then
10865
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10866
for ac_dir in $PATH; do
10868
test -z "$ac_dir" && ac_dir=.
10869
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10870
lt_cv_path_LD="$ac_dir/$ac_prog"
10871
# Check to see if the program is GNU ld. I'd rather use --version,
10872
# but apparently some GNU ld's only accept -v.
10873
# Break only if it was the GNU/non-GNU ld that we prefer.
10874
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10875
*GNU* | *'with BFD'*)
10876
test "$with_gnu_ld" != no && break
10879
test "$with_gnu_ld" != yes && break
10886
lt_cv_path_LD="$LD" # Let the user override the test with a path.
10890
LD="$lt_cv_path_LD"
10891
if test -n "$LD"; then
10892
echo "$as_me:$LINENO: result: $LD" >&5
10893
echo "${ECHO_T}$LD" >&6
10895
echo "$as_me:$LINENO: result: no" >&5
10896
echo "${ECHO_T}no" >&6
10898
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10899
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10900
{ (exit 1); exit 1; }; }
10901
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10902
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10903
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10904
echo $ECHO_N "(cached) $ECHO_C" >&6
10906
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
10907
case `$LD -v 2>&1 </dev/null` in
10908
*GNU* | *'with BFD'*)
10909
lt_cv_prog_gnu_ld=yes
10912
lt_cv_prog_gnu_ld=no
10916
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10917
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10918
with_gnu_ld=$lt_cv_prog_gnu_ld
10922
# Check if GNU C++ uses GNU ld as the underlying linker, since the
10923
# archiving commands below assume that GNU ld is being used.
10924
if test "$with_gnu_ld" = yes; then
10925
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10926
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'
10928
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10929
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10931
# If archive_cmds runs LD, not CC, wlarc should be empty
10932
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10933
# investigate it a little bit more. (MM)
10936
# ancient GNU ld didn't support --whole-archive et. al.
10937
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10938
grep 'no-whole-archive' > /dev/null; then
10939
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10941
whole_archive_flag_spec_CXX=
10947
# A generic and very simple default shared library creation
10948
# command for GNU C++ for the case where it uses the native
10949
# linker, instead of GNU ld. If possible, this setting should
10950
# overridden to take advantage of the native linker features on
10951
# the platform it is being used on.
10952
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10955
# Commands to make compiler produce verbose output that lists
10956
# what "hidden" libraries, object files and flags are used when
10957
# linking a shared library.
10958
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10966
# PORTME: fill in a description of your system's C++ link characteristics
10967
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10968
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10972
# FIXME: insert proper C++ library support
10976
if test "$host_cpu" = ia64; then
10977
# On IA64, the linker does run time linking by default, so we don't
10978
# have to do anything special.
10979
aix_use_runtimelinking=no
10980
exp_sym_flag='-Bexport'
10983
aix_use_runtimelinking=no
10985
# Test if we are trying to use run time linking or normal
10986
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10987
# need to do runtime linking.
10988
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10989
for ld_flag in $LDFLAGS; do
10992
aix_use_runtimelinking=yes
10999
exp_sym_flag='-bexport'
11000
no_entry_flag='-bnoentry'
11003
# When large executables or shared objects are built, AIX ld can
11004
# have problems creating the table of contents. If linking a library
11005
# or program results in "error TOC overflow" add -mminimal-toc to
11006
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11007
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11009
archive_cmds_CXX=''
11010
hardcode_direct_CXX=yes
11011
hardcode_libdir_separator_CXX=':'
11012
link_all_deplibs_CXX=yes
11014
if test "$GXX" = yes; then
11015
case $host_os in aix4.012|aix4.012.*)
11016
# We only want to do this on AIX 4.2 and lower, the check
11017
# below for broken collect2 doesn't work under 4.3+
11018
collect2name=`${CC} -print-prog-name=collect2`
11019
if test -f "$collect2name" && \
11020
strings "$collect2name" | grep resolve_lib_name >/dev/null
11022
# We have reworked collect2
11023
hardcode_direct_CXX=yes
11025
# We have old collect2
11026
hardcode_direct_CXX=unsupported
11027
# It fails to find uninstalled libraries when the uninstalled
11028
# path is not listed in the libpath. Setting hardcode_minus_L
11029
# to unsupported forces relinking
11030
hardcode_minus_L_CXX=yes
11031
hardcode_libdir_flag_spec_CXX='-L$libdir'
11032
hardcode_libdir_separator_CXX=
11035
shared_flag='-shared'
11038
if test "$host_cpu" = ia64; then
11039
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11040
# chokes on -Wl,-G. The following line is correct:
11043
if test "$aix_use_runtimelinking" = yes; then
11044
shared_flag='${wl}-G'
11046
shared_flag='${wl}-bM:SRE'
11051
# It seems that -bexpall does not export symbols beginning with
11052
# underscore (_), so it is better to generate a list of symbols to export.
11053
always_export_symbols_CXX=yes
11054
if test "$aix_use_runtimelinking" = yes; then
11055
# Warning - without using the other runtime loading flags (-brtl),
11056
# -berok will link without error, but may produce a broken library.
11057
allow_undefined_flag_CXX='-berok'
11058
# Determine the default libpath from the value encoded in an empty executable.
11059
cat >conftest.$ac_ext <<_ACEOF
11062
cat confdefs.h >>conftest.$ac_ext
11063
cat >>conftest.$ac_ext <<_ACEOF
11064
/* end confdefs.h. */
11074
rm -f conftest.$ac_objext conftest$ac_exeext
11075
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11076
(eval $ac_link) 2>conftest.er1
11078
grep -v '^ *+' conftest.er1 >conftest.err
11080
cat conftest.err >&5
11081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082
(exit $ac_status); } &&
11083
{ ac_try='test -z "$ac_cxx_werror_flag"
11084
|| test ! -s conftest.err'
11085
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11086
(eval $ac_try) 2>&5
11088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089
(exit $ac_status); }; } &&
11090
{ ac_try='test -s conftest$ac_exeext'
11091
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11092
(eval $ac_try) 2>&5
11094
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095
(exit $ac_status); }; }; then
11097
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11099
# Check for a 64-bit object if we didn't find anything.
11100
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; }
11103
echo "$as_me: failed program was:" >&5
11104
sed 's/^/| /' conftest.$ac_ext >&5
11107
rm -f conftest.err conftest.$ac_objext \
11108
conftest$ac_exeext conftest.$ac_ext
11109
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11111
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11113
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11115
if test "$host_cpu" = ia64; then
11116
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11117
allow_undefined_flag_CXX="-z nodefs"
11118
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11120
# Determine the default libpath from the value encoded in an empty executable.
11121
cat >conftest.$ac_ext <<_ACEOF
11124
cat confdefs.h >>conftest.$ac_ext
11125
cat >>conftest.$ac_ext <<_ACEOF
11126
/* end confdefs.h. */
11136
rm -f conftest.$ac_objext conftest$ac_exeext
11137
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11138
(eval $ac_link) 2>conftest.er1
11140
grep -v '^ *+' conftest.er1 >conftest.err
11142
cat conftest.err >&5
11143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144
(exit $ac_status); } &&
11145
{ ac_try='test -z "$ac_cxx_werror_flag"
11146
|| test ! -s conftest.err'
11147
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148
(eval $ac_try) 2>&5
11150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151
(exit $ac_status); }; } &&
11152
{ ac_try='test -s conftest$ac_exeext'
11153
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11154
(eval $ac_try) 2>&5
11156
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157
(exit $ac_status); }; }; then
11159
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11161
# Check for a 64-bit object if we didn't find anything.
11162
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; }
11165
echo "$as_me: failed program was:" >&5
11166
sed 's/^/| /' conftest.$ac_ext >&5
11169
rm -f conftest.err conftest.$ac_objext \
11170
conftest$ac_exeext conftest.$ac_ext
11171
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11173
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11174
# Warning - without using the other run time loading flags,
11175
# -berok will link without error, but may produce a broken library.
11176
no_undefined_flag_CXX=' ${wl}-bernotok'
11177
allow_undefined_flag_CXX=' ${wl}-berok'
11178
# -bexpall does not export symbols beginning with underscore (_)
11179
always_export_symbols_CXX=yes
11180
# Exported symbols can be pulled into shared objects from archives
11181
whole_archive_flag_spec_CXX=' '
11182
archive_cmds_need_lc_CXX=yes
11183
# This is similar to how AIX traditionally builds it's shared libraries.
11184
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11189
case $cc_basename in
11191
# FIXME: insert proper C++ library support
11198
cygwin* | mingw* | pw32*)
11199
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11200
# as there is no search path for DLLs.
11201
hardcode_libdir_flag_spec_CXX='-L$libdir'
11202
allow_undefined_flag_CXX=unsupported
11203
always_export_symbols_CXX=no
11204
enable_shared_with_static_runtimes_CXX=yes
11206
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11207
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11208
# If the export-symbols file already is a .def file (1st line
11209
# is EXPORTS), use it as is; otherwise, prepend...
11210
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11211
cp $export_symbols $output_objdir/$soname.def;
11213
echo EXPORTS > $output_objdir/$soname.def;
11214
cat $export_symbols >> $output_objdir/$soname.def;
11216
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11221
darwin* | rhapsody*)
11223
rhapsody* | darwin1.[012])
11224
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11227
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11228
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11230
case ${MACOSX_DEPLOYMENT_TARGET} in
11232
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11235
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11241
archive_cmds_need_lc_CXX=no
11242
hardcode_direct_CXX=no
11243
hardcode_automatic_CXX=yes
11244
hardcode_shlibpath_var_CXX=unsupported
11245
whole_archive_flag_spec_CXX=''
11246
link_all_deplibs_CXX=yes
11248
if test "$GXX" = yes ; then
11249
lt_int_apple_cc_single_mod=no
11250
output_verbose_link_cmd='echo'
11251
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11252
lt_int_apple_cc_single_mod=yes
11254
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11255
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11257
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'
11259
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11260
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11261
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11262
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}'
11264
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}'
11266
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}'
11268
case "$cc_basename" in
11270
output_verbose_link_cmd='echo'
11271
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'
11272
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11273
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11274
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}'
11275
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}'
11285
case $cc_basename in
11287
# FIXME: insert proper C++ library support
11291
# Green Hills C++ Compiler
11292
# FIXME: insert proper C++ library support
11296
# FIXME: insert proper C++ library support
11302
# C++ shared libraries reported to be fairly broken before switch to ELF
11306
archive_cmds_need_lc_CXX=no
11308
freebsd* | kfreebsd*-gnu)
11309
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11316
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11317
hardcode_libdir_separator_CXX=:
11318
export_dynamic_flag_spec_CXX='${wl}-E'
11319
hardcode_direct_CXX=yes
11320
hardcode_minus_L_CXX=yes # Not in the search PATH,
11321
# but as the default
11322
# location of the library.
11324
case $cc_basename in
11326
# FIXME: insert proper C++ library support
11330
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'
11331
# Commands to make compiler produce verbose output that lists
11332
# what "hidden" libraries, object files and flags are used when
11333
# linking a shared library.
11335
# There doesn't appear to be a way to prevent this compiler from
11336
# explicitly linking system object files so we need to strip them
11337
# from the output so that they don't get included in the library
11339
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'
11342
if test "$GXX" = yes; then
11343
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'
11345
# FIXME: insert proper C++ library support
11352
if test $with_gnu_ld = no; then
11353
case "$host_cpu" in
11355
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11356
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11357
hardcode_libdir_separator_CXX=:
11360
hardcode_libdir_flag_spec_CXX='-L$libdir'
11363
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11364
hardcode_libdir_separator_CXX=:
11365
export_dynamic_flag_spec_CXX='${wl}-E'
11369
case "$host_cpu" in
11371
hardcode_direct_CXX=no
11372
hardcode_shlibpath_var_CXX=no
11375
hardcode_direct_CXX=no
11376
hardcode_shlibpath_var_CXX=no
11377
hardcode_minus_L_CXX=yes # Not in the search PATH,
11378
# but as the default
11379
# location of the library.
11382
hardcode_direct_CXX=yes
11383
hardcode_minus_L_CXX=yes # Not in the search PATH,
11384
# but as the default
11385
# location of the library.
11389
case $cc_basename in
11391
# FIXME: insert proper C++ library support
11395
case "$host_cpu" in
11397
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11400
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11403
# Commands to make compiler produce verbose output that lists
11404
# what "hidden" libraries, object files and flags are used when
11405
# linking a shared library.
11407
# There doesn't appear to be a way to prevent this compiler from
11408
# explicitly linking system object files so we need to strip them
11409
# from the output so that they don't get included in the library
11411
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'
11414
if test "$GXX" = yes; then
11415
if test $with_gnu_ld = no; then
11416
case "$host_cpu" in
11418
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11421
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'
11426
# FIXME: insert proper C++ library support
11433
case $cc_basename in
11436
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11438
# Archives containing C++ object files must be created using
11439
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11440
# necessary to make sure instantiated templates are included
11442
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11445
if test "$GXX" = yes; then
11446
if test "$with_gnu_ld" = no; then
11447
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11449
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'
11452
link_all_deplibs_CXX=yes
11455
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11456
hardcode_libdir_separator_CXX=:
11459
case $cc_basename in
11461
# Kuck and Associates, Inc. (KAI) C++ Compiler
11463
# KCC will only create a shared library if the output file
11464
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11465
# to its proper name (with version) after linking.
11466
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'
11467
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'
11468
# Commands to make compiler produce verbose output that lists
11469
# what "hidden" libraries, object files and flags are used when
11470
# linking a shared library.
11472
# There doesn't appear to be a way to prevent this compiler from
11473
# explicitly linking system object files so we need to strip them
11474
# from the output so that they don't get included in the library
11476
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'
11478
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11479
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11481
# Archives containing C++ object files must be created using
11482
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11483
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11488
# version 8.0 and above of icpc choke on multiply defined symbols
11489
# if we add $predep_objects and $postdep_objects, however 7.1 and
11490
# earlier do not add the objects themselves.
11491
case `$CC -V 2>&1` in
11493
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11494
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'
11496
*) # Version 8.0 or newer
11497
archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11498
archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11501
archive_cmds_need_lc_CXX=no
11502
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11503
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11504
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11508
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11509
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'
11511
runpath_var=LD_RUN_PATH
11512
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11513
hardcode_libdir_separator_CXX=:
11515
# Commands to make compiler produce verbose output that lists
11516
# what "hidden" libraries, object files and flags are used when
11517
# linking a shared library.
11519
# There doesn't appear to be a way to prevent this compiler from
11520
# explicitly linking system object files so we need to strip them
11521
# from the output so that they don't get included in the library
11523
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'
11528
# FIXME: insert proper C++ library support
11532
# FIXME: insert proper C++ library support
11536
case $cc_basename in
11538
# FIXME: insert proper C++ library support
11542
# FIXME: insert proper C++ library support
11548
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11549
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11551
hardcode_libdir_flag_spec_CXX='-R$libdir'
11552
hardcode_direct_CXX=yes
11553
hardcode_shlibpath_var_CXX=no
11555
# Workaround some broken pre-1.5 toolchains
11556
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11559
# C++ shared libraries are fairly broken
11563
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11564
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11565
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11566
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11567
export_dynamic_flag_spec_CXX='${wl}-E'
11568
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11570
output_verbose_link_cmd='echo'
11573
case $cc_basename in
11575
# Kuck and Associates, Inc. (KAI) C++ Compiler
11577
# KCC will only create a shared library if the output file
11578
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11579
# to its proper name (with version) after linking.
11580
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'
11582
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11583
hardcode_libdir_separator_CXX=:
11585
# Archives containing C++ object files must be created using
11586
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11587
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11591
# Rational C++ 2.4.1
11592
# FIXME: insert proper C++ library support
11596
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11597
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11599
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11600
hardcode_libdir_separator_CXX=:
11602
# Commands to make compiler produce verbose output that lists
11603
# what "hidden" libraries, object files and flags are used when
11604
# linking a shared library.
11606
# There doesn't appear to be a way to prevent this compiler from
11607
# explicitly linking system object files so we need to strip them
11608
# from the output so that they don't get included in the library
11610
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'
11613
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11614
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11615
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11617
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11618
hardcode_libdir_separator_CXX=:
11620
# Commands to make compiler produce verbose output that lists
11621
# what "hidden" libraries, object files and flags are used when
11622
# linking a shared library.
11623
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11626
# FIXME: insert proper C++ library support
11633
case $cc_basename in
11635
# Kuck and Associates, Inc. (KAI) C++ Compiler
11637
# KCC will only create a shared library if the output file
11638
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11639
# to its proper name (with version) after linking.
11640
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'
11642
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11643
hardcode_libdir_separator_CXX=:
11645
# Archives containing C++ object files must be created using
11646
# the KAI C++ compiler.
11647
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11650
# Rational C++ 2.4.1
11651
# FIXME: insert proper C++ library support
11655
allow_undefined_flag_CXX=' -expect_unresolved \*'
11656
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11657
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11658
echo "-hidden">> $lib.exp~
11659
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
11662
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11663
hardcode_libdir_separator_CXX=:
11665
# Commands to make compiler produce verbose output that lists
11666
# what "hidden" libraries, object files and flags are used when
11667
# linking a shared library.
11669
# There doesn't appear to be a way to prevent this compiler from
11670
# explicitly linking system object files so we need to strip them
11671
# from the output so that they don't get included in the library
11673
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'
11676
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11677
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11678
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11680
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11681
hardcode_libdir_separator_CXX=:
11683
# Commands to make compiler produce verbose output that lists
11684
# what "hidden" libraries, object files and flags are used when
11685
# linking a shared library.
11686
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11689
# FIXME: insert proper C++ library support
11696
# FIXME: insert proper C++ library support
11700
archive_cmds_need_lc_CXX=no
11701
case $cc_basename in
11703
# FIXME: insert proper C++ library support
11707
# FIXME: insert proper C++ library support
11713
case $cc_basename in
11716
# FIXME: insert proper C++ library support
11721
# FIXME: insert proper C++ library support
11725
# FIXME: insert proper C++ library support
11731
case $cc_basename in
11733
# Sun C++ 4.2, 5.x and Centerline C++
11734
no_undefined_flag_CXX=' -zdefs'
11735
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11736
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11737
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11739
hardcode_libdir_flag_spec_CXX='-R$libdir'
11740
hardcode_shlibpath_var_CXX=no
11742
solaris2.0-5 | solaris2.0-5.*) ;;
11744
# The C++ compiler is used as linker so we must use $wl
11745
# flag to pass the commands to the underlying system
11747
# Supported since Solaris 2.6 (maybe 2.5.1?)
11748
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11751
link_all_deplibs_CXX=yes
11753
# Commands to make compiler produce verbose output that lists
11754
# what "hidden" libraries, object files and flags are used when
11755
# linking a shared library.
11757
# There doesn't appear to be a way to prevent this compiler from
11758
# explicitly linking system object files so we need to strip them
11759
# from the output so that they don't get included in the library
11761
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11763
# Archives containing C++ object files must be created using
11764
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11765
# necessary to make sure instantiated templates are included
11767
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11770
# Green Hills C++ Compiler
11771
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11773
# The C++ compiler must be used to create the archive.
11774
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11777
# GNU C++ compiler with Solaris linker
11778
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11779
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11780
if $CC --version | grep -v '^2\.7' > /dev/null; then
11781
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11782
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11783
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11785
# Commands to make compiler produce verbose output that lists
11786
# what "hidden" libraries, object files and flags are used when
11787
# linking a shared library.
11788
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11790
# g++ 2.7 appears to require `-G' NOT `-shared' on this
11792
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11793
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11794
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11796
# Commands to make compiler produce verbose output that lists
11797
# what "hidden" libraries, object files and flags are used when
11798
# linking a shared library.
11799
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11802
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11807
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11808
archive_cmds_need_lc_CXX=no
11811
case $cc_basename in
11813
# NonStop-UX NCC 3.20
11814
# FIXME: insert proper C++ library support
11818
# FIXME: insert proper C++ library support
11824
# FIXME: insert proper C++ library support
11828
# FIXME: insert proper C++ library support
11832
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11833
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11834
test "$ld_shlibs_CXX" = no && can_build_shared=no
11840
cat > conftest.$ac_ext <<EOF
11844
Foo (void) { a = 0; }
11850
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11851
(eval $ac_compile) 2>&5
11853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854
(exit $ac_status); }; then
11855
# Parse the compiler output and extract the necessary
11856
# objects, libraries and library flags.
11858
# Sentinel used to keep track of whether or not we are before
11859
# the conftest object file.
11860
pre_test_object_deps_done=no
11862
# The `*' in the case matches for architectures that use `case' in
11863
# $output_verbose_cmd can trigger glob expansion during the loop
11864
# eval without this substitution.
11865
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11867
for p in `eval $output_verbose_link_cmd`; do
11871
# Some compilers place space between "-{L,R}" and the path.
11872
# Remove the space.
11873
if test $p = "-L" \
11874
|| test $p = "-R"; then
11881
if test "$pre_test_object_deps_done" = no; then
11884
# Internal compiler library paths should come after those
11885
# provided the user. The postdeps already come after the
11886
# user supplied libs so there is no need to process them.
11887
if test -z "$compiler_lib_search_path_CXX"; then
11888
compiler_lib_search_path_CXX="${prev}${p}"
11890
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11893
# The "-l" case would never come before the object being
11894
# linked, so don't bother handling this case.
11897
if test -z "$postdeps_CXX"; then
11898
postdeps_CXX="${prev}${p}"
11900
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11906
# This assumes that the test object file only shows up
11907
# once in the compiler output.
11908
if test "$p" = "conftest.$objext"; then
11909
pre_test_object_deps_done=yes
11913
if test "$pre_test_object_deps_done" = no; then
11914
if test -z "$predep_objects_CXX"; then
11915
predep_objects_CXX="$p"
11917
predep_objects_CXX="$predep_objects_CXX $p"
11920
if test -z "$postdep_objects_CXX"; then
11921
postdep_objects_CXX="$p"
11923
postdep_objects_CXX="$postdep_objects_CXX $p"
11928
*) ;; # Ignore the rest.
11936
echo "libtool.m4: error: problem compiling CXX test program"
11939
$rm -f confest.$objext
11941
case " $postdeps_CXX " in
11942
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11945
lt_prog_compiler_wl_CXX=
11946
lt_prog_compiler_pic_CXX=
11947
lt_prog_compiler_static_CXX=
11949
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11950
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11952
# C++ specific cases for pic, static, wl, etc.
11953
if test "$GXX" = yes; then
11954
lt_prog_compiler_wl_CXX='-Wl,'
11955
lt_prog_compiler_static_CXX='-static'
11959
# All AIX code is PIC.
11960
if test "$host_cpu" = ia64; then
11961
# AIX 5 now supports IA64 processor
11962
lt_prog_compiler_static_CXX='-Bstatic'
11966
# FIXME: we need at least 68020 code to build shared libraries, but
11967
# adding the `-m68020' flag to GCC prevents building anything better,
11969
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11971
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11972
# PIC is the default for these OSes.
11974
mingw* | os2* | pw32*)
11975
# This hack is so that the source file can tell whether it is being
11976
# built for inclusion in a dll (and should export symbols for example).
11977
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11979
darwin* | rhapsody*)
11980
# PIC is the default on this platform
11981
# Common symbols not allowed in MH_DYLIB files
11982
lt_prog_compiler_pic_CXX='-fno-common'
11985
# DJGPP does not support shared libraries at all
11986
lt_prog_compiler_pic_CXX=
11989
if test -d /usr/nec; then
11990
lt_prog_compiler_pic_CXX=-Kconform_pic
11994
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11995
# not for PA HP-UX.
11996
case "$host_cpu" in
12000
lt_prog_compiler_pic_CXX='-fPIC'
12005
lt_prog_compiler_pic_CXX='-fPIC'
12011
# All AIX code is PIC.
12012
if test "$host_cpu" = ia64; then
12013
# AIX 5 now supports IA64 processor
12014
lt_prog_compiler_static_CXX='-Bstatic'
12016
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12020
case $cc_basename in
12022
# Green Hills C++ Compiler
12023
# _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"
12028
# PIC is the default on this platform
12029
# Common symbols not allowed in MH_DYLIB files
12030
case "$cc_basename" in
12032
lt_prog_compiler_pic_CXX='-qnocommon'
12033
lt_prog_compiler_wl_CXX='-Wl,'
12038
case $cc_basename in
12040
lt_prog_compiler_pic_CXX='-KPIC'
12043
# Green Hills C++ Compiler
12044
lt_prog_compiler_pic_CXX='-pic'
12050
freebsd* | kfreebsd*-gnu)
12051
# FreeBSD uses GNU C++
12053
hpux9* | hpux10* | hpux11*)
12054
case $cc_basename in
12056
lt_prog_compiler_wl_CXX='-Wl,'
12057
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12058
if test "$host_cpu" != ia64; then
12059
lt_prog_compiler_pic_CXX='+Z'
12063
lt_prog_compiler_wl_CXX='-Wl,'
12064
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12065
case "$host_cpu" in
12070
lt_prog_compiler_pic_CXX='+Z'
12078
irix5* | irix6* | nonstopux*)
12079
case $cc_basename in
12081
lt_prog_compiler_wl_CXX='-Wl,'
12082
lt_prog_compiler_static_CXX='-non_shared'
12083
# CC pic flag -KPIC is the default.
12090
case $cc_basename in
12093
lt_prog_compiler_wl_CXX='--backend -Wl,'
12094
lt_prog_compiler_pic_CXX='-fPIC'
12098
lt_prog_compiler_wl_CXX='-Wl,'
12099
lt_prog_compiler_pic_CXX='-KPIC'
12100
lt_prog_compiler_static_CXX='-static'
12104
# Make sure the PIC flag is empty. It appears that all Alpha
12105
# Linux and Compaq Tru64 Unix objects are PIC.
12106
lt_prog_compiler_pic_CXX=
12107
lt_prog_compiler_static_CXX='-non_shared'
12118
case $cc_basename in
12120
lt_prog_compiler_pic_CXX='-W c,exportall'
12128
osf3* | osf4* | osf5*)
12129
case $cc_basename in
12131
lt_prog_compiler_wl_CXX='--backend -Wl,'
12134
# Rational C++ 2.4.1
12135
lt_prog_compiler_pic_CXX='-pic'
12138
# Digital/Compaq C++
12139
lt_prog_compiler_wl_CXX='-Wl,'
12140
# Make sure the PIC flag is empty. It appears that all Alpha
12141
# Linux and Compaq Tru64 Unix objects are PIC.
12142
lt_prog_compiler_pic_CXX=
12143
lt_prog_compiler_static_CXX='-non_shared'
12152
case $cc_basename in
12154
lt_prog_compiler_pic_CXX='-fPIC'
12161
case $cc_basename in
12163
# Sun C++ 4.2, 5.x and Centerline C++
12164
lt_prog_compiler_pic_CXX='-KPIC'
12165
lt_prog_compiler_static_CXX='-Bstatic'
12166
lt_prog_compiler_wl_CXX='-Qoption ld '
12169
# Green Hills C++ Compiler
12170
lt_prog_compiler_pic_CXX='-PIC'
12177
case $cc_basename in
12180
lt_prog_compiler_pic_CXX='-pic'
12181
lt_prog_compiler_static_CXX='-Bstatic'
12185
lt_prog_compiler_pic_CXX='-pic'
12192
case $cc_basename in
12194
# NonStop-UX NCC 3.20
12195
lt_prog_compiler_pic_CXX='-KPIC'
12206
lt_prog_compiler_can_build_shared_CXX=no
12211
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12212
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12215
# Check to make sure the PIC flag actually works.
12217
if test -n "$lt_prog_compiler_pic_CXX"; then
12219
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12220
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12221
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12222
echo $ECHO_N "(cached) $ECHO_C" >&6
12224
lt_prog_compiler_pic_works_CXX=no
12225
ac_outfile=conftest.$ac_objext
12226
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12227
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12228
# Insert the option either (1) after the last *FLAGS variable, or
12229
# (2) before a word containing "conftest.", or (3) at the end.
12230
# Note that $ac_compile itself does not contain backslashes and begins
12231
# with a dollar sign (not a hyphen), so the echo should work correctly.
12232
# The option is referenced via a variable to avoid confusing sed.
12233
lt_compile=`echo "$ac_compile" | $SED \
12234
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12235
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12236
-e 's:$: $lt_compiler_flag:'`
12237
(eval echo "\"\$as_me:12237: $lt_compile\"" >&5)
12238
(eval "$lt_compile" 2>conftest.err)
12240
cat conftest.err >&5
12241
echo "$as_me:12241: \$? = $ac_status" >&5
12242
if (exit $ac_status) && test -s "$ac_outfile"; then
12243
# The compiler can only warn and ignore the option if not recognized
12244
# So say no if there are warnings
12245
if test ! -s conftest.err; then
12246
lt_prog_compiler_pic_works_CXX=yes
12252
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12253
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12255
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12256
case $lt_prog_compiler_pic_CXX in
12258
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12261
lt_prog_compiler_pic_CXX=
12262
lt_prog_compiler_can_build_shared_CXX=no
12267
# For platforms which do not support PIC, -DPIC is meaningless:
12269
lt_prog_compiler_pic_CXX=
12272
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12276
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12277
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12278
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12279
echo $ECHO_N "(cached) $ECHO_C" >&6
12281
lt_cv_prog_compiler_c_o_CXX=no
12282
$rm -r conftest 2>/dev/null
12286
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12288
lt_compiler_flag="-o out/conftest2.$ac_objext"
12289
# Insert the option either (1) after the last *FLAGS variable, or
12290
# (2) before a word containing "conftest.", or (3) at the end.
12291
# Note that $ac_compile itself does not contain backslashes and begins
12292
# with a dollar sign (not a hyphen), so the echo should work correctly.
12293
lt_compile=`echo "$ac_compile" | $SED \
12294
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12295
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12296
-e 's:$: $lt_compiler_flag:'`
12297
(eval echo "\"\$as_me:12297: $lt_compile\"" >&5)
12298
(eval "$lt_compile" 2>out/conftest.err)
12300
cat out/conftest.err >&5
12301
echo "$as_me:12301: \$? = $ac_status" >&5
12302
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12304
# The compiler can only warn and ignore the option if not recognized
12305
# So say no if there are warnings
12306
if test ! -s out/conftest.err; then
12307
lt_cv_prog_compiler_c_o_CXX=yes
12312
# SGI C++ compiler will create directory out/ii_files/ for
12313
# template instantiation
12314
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12315
$rm out/* && rmdir out
12321
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12322
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12325
hard_links="nottested"
12326
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12327
# do not overwrite the value of need_locks provided by the user
12328
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12329
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12332
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12334
ln conftest.a conftest.b 2>&5 || hard_links=no
12335
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12336
echo "$as_me:$LINENO: result: $hard_links" >&5
12337
echo "${ECHO_T}$hard_links" >&6
12338
if test "$hard_links" = no; then
12339
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12340
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12347
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12348
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12350
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12353
# If we're using GNU nm, then we don't want the "-C" option.
12354
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12355
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12356
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'
12358
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'
12362
export_symbols_cmds_CXX="$ltdll_cmds"
12365
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12368
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12372
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12373
echo "${ECHO_T}$ld_shlibs_CXX" >&6
12374
test "$ld_shlibs_CXX" = no && can_build_shared=no
12376
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12377
if test "$GCC" = yes; then
12378
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12382
# Do we need to explicitly link libc?
12384
case "x$archive_cmds_need_lc_CXX" in
12386
# Assume -lc should be added
12387
archive_cmds_need_lc_CXX=yes
12389
if test "$enable_shared" = yes && test "$GCC" = yes; then
12390
case $archive_cmds_CXX in
12392
# FIXME: we may have to deal with multi-command sequences.
12395
# Test whether the compiler implicitly links with -lc since on some
12396
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12397
# to ld, don't add -lc before -lgcc.
12398
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12399
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12401
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12403
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12404
(eval $ac_compile) 2>&5
12406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407
(exit $ac_status); } 2>conftest.err; then
12410
libobjs=conftest.$ac_objext
12412
wl=$lt_prog_compiler_wl_CXX
12418
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12419
allow_undefined_flag_CXX=
12420
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12421
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12423
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424
(exit $ac_status); }
12426
archive_cmds_need_lc_CXX=no
12428
archive_cmds_need_lc_CXX=yes
12430
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12432
cat conftest.err 1>&5
12435
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12436
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12443
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12444
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12445
library_names_spec=
12446
libname_spec='lib$name'
12450
postuninstall_cmds=
12454
shlibpath_overrides_runpath=unknown
12456
dynamic_linker="$host_os ld.so"
12457
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12458
if test "$GCC" = yes; then
12459
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12460
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12461
# if the path contains ";" then we assume it to be the separator
12462
# otherwise default to the standard path separator (i.e. ":") - it is
12463
# assumed that no part of a normal pathname contains ";" but that should
12464
# okay in the real world where ";" in dirpaths is itself problematic.
12465
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12467
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12470
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12472
need_lib_prefix=unknown
12473
hardcode_into_libs=no
12475
# when you set need_version to no, make sure it does not cause -set_version
12476
# flags to be left without arguments
12477
need_version=unknown
12482
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12483
shlibpath_var=LIBPATH
12485
# AIX 3 has no versioning support, so we append a major version to the name.
12486
soname_spec='${libname}${release}${shared_ext}$major'
12493
hardcode_into_libs=yes
12494
if test "$host_cpu" = ia64; then
12495
# AIX 5 supports IA64
12496
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12497
shlibpath_var=LD_LIBRARY_PATH
12499
# With GCC up to 2.95.x, collect2 would create an import file
12500
# for dependence libraries. The import file would start with
12501
# the line `#! .'. This would cause the generated library to
12502
# depend on `.', always an invalid library. This was fixed in
12503
# development snapshots of GCC prior to 3.0.
12505
aix4 | aix4.[01] | aix4.[01].*)
12506
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12508
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12511
can_build_shared=no
12515
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12516
# soname into executable. Probably we can add versioning support to
12517
# collect2, so additional links can be useful in future.
12518
if test "$aix_use_runtimelinking" = yes; then
12519
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12520
# instead of lib<name>.a to let people know that these are not
12521
# typical AIX shared libraries.
12522
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12524
# We preserve .a as extension for shared libraries through AIX4.2
12525
# and later when we are not doing run time linking.
12526
library_names_spec='${libname}${release}.a $libname.a'
12527
soname_spec='${libname}${release}${shared_ext}$major'
12529
shlibpath_var=LIBPATH
12534
library_names_spec='$libname.ixlibrary $libname.a'
12535
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12536
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'
12540
library_names_spec='${libname}${shared_ext}'
12541
dynamic_linker="$host_os ld.so"
12542
shlibpath_var=LIBRARY_PATH
12548
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12549
soname_spec='${libname}${release}${shared_ext}$major'
12550
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12551
shlibpath_var=LD_LIBRARY_PATH
12552
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12553
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12554
# the default ld.so.conf also contains /usr/contrib/lib and
12555
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12556
# libtool to hard-code these into programs
12559
cygwin* | mingw* | pw32*)
12560
version_type=windows
12565
case $GCC,$host_os in
12566
yes,cygwin* | yes,mingw* | yes,pw32*)
12567
library_names_spec='$libname.dll.a'
12568
# DLL is installed to $(libdir)/../bin by postinstall_cmds
12569
postinstall_cmds='base_file=`basename \${file}`~
12570
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12571
dldir=$destdir/`dirname \$dlpath`~
12572
test -d \$dldir || mkdir -p \$dldir~
12573
$install_prog $dir/$dlname \$dldir/$dlname'
12574
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12575
dlpath=$dir/\$dldll~
12577
shlibpath_overrides_runpath=yes
12581
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
12582
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12583
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12586
# MinGW DLLs use traditional 'lib' prefix
12587
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12588
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12589
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12590
# It is most probably a Windows format PATH printed by
12591
# mingw gcc, but we are running on Cygwin. Gcc prints its search
12592
# path with ; separators, and with drive letters. We can handle the
12593
# drive letters (cygwin fileutils understands them), so leave them,
12594
# especially as we might pass files found there to a mingw objdump,
12595
# which wouldn't understand a cygwinified path. Ahh.
12596
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12598
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12602
# pw32 DLLs use 'pw' prefix rather than 'lib'
12603
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12609
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12612
dynamic_linker='Win32 ld.exe'
12613
# FIXME: first we should search . and the directory the executable is in
12617
darwin* | rhapsody*)
12618
dynamic_linker="$host_os dyld"
12619
version_type=darwin
12622
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12623
soname_spec='${libname}${release}${major}$shared_ext'
12624
shlibpath_overrides_runpath=yes
12625
shlibpath_var=DYLD_LIBRARY_PATH
12626
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12627
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12628
if test "$GCC" = yes; then
12629
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"`
12631
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12633
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12640
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12641
soname_spec='${libname}${release}${shared_ext}$major'
12642
shlibpath_var=LD_LIBRARY_PATH
12653
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12654
soname_spec='${libname}${release}${shared_ext}$major'
12655
shlibpath_var=LD_LIBRARY_PATH
12656
shlibpath_overrides_runpath=no
12657
hardcode_into_libs=yes
12658
dynamic_linker='GNU ld.so'
12662
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12663
version_type=freebsd-$objformat
12664
case $version_type in
12666
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12671
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12675
shlibpath_var=LD_LIBRARY_PATH
12678
shlibpath_overrides_runpath=yes
12680
freebsd3.01* | freebsdelf3.01*)
12681
shlibpath_overrides_runpath=yes
12682
hardcode_into_libs=yes
12685
shlibpath_overrides_runpath=no
12686
hardcode_into_libs=yes
12695
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12696
soname_spec='${libname}${release}${shared_ext}$major'
12697
shlibpath_var=LD_LIBRARY_PATH
12698
hardcode_into_libs=yes
12701
hpux9* | hpux10* | hpux11*)
12702
# Give a soname corresponding to the major version so that dld.sl refuses to
12703
# link against other versions.
12707
case "$host_cpu" in
12710
hardcode_into_libs=yes
12711
dynamic_linker="$host_os dld.so"
12712
shlibpath_var=LD_LIBRARY_PATH
12713
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12714
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12715
soname_spec='${libname}${release}${shared_ext}$major'
12716
if test "X$HPUX_IA64_MODE" = X32; then
12717
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12719
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12721
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12725
hardcode_into_libs=yes
12726
dynamic_linker="$host_os dld.sl"
12727
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12728
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12729
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12730
soname_spec='${libname}${release}${shared_ext}$major'
12731
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12732
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12736
dynamic_linker="$host_os dld.sl"
12737
shlibpath_var=SHLIB_PATH
12738
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12739
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12740
soname_spec='${libname}${release}${shared_ext}$major'
12743
# HP-UX runs *really* slowly unless shared libraries are mode 555.
12744
postinstall_cmds='chmod 555 $lib'
12747
irix5* | irix6* | nonstopux*)
12749
nonstopux*) version_type=nonstopux ;;
12751
if test "$lt_cv_prog_gnu_ld" = yes; then
12759
soname_spec='${libname}${release}${shared_ext}$major'
12760
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12762
irix5* | nonstopux*)
12763
libsuff= shlibsuff=
12766
case $LD in # libtool.m4 will add one of these switches to LD
12767
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12768
libsuff= shlibsuff= libmagic=32-bit;;
12769
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12770
libsuff=32 shlibsuff=N32 libmagic=N32;;
12771
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12772
libsuff=64 shlibsuff=64 libmagic=64-bit;;
12773
*) libsuff= shlibsuff= libmagic=never-match;;
12777
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12778
shlibpath_overrides_runpath=no
12779
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12780
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12781
hardcode_into_libs=yes
12784
# No shared lib support for Linux oldld, aout, or coff.
12785
linux*oldld* | linux*aout* | linux*coff*)
12789
# This must be Linux ELF.
12794
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12795
soname_spec='${libname}${release}${shared_ext}$major'
12796
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12797
shlibpath_var=LD_LIBRARY_PATH
12798
shlibpath_overrides_runpath=no
12799
# This implies no fast_install, which is unacceptable.
12800
# Some rework will be needed to allow for fast_install
12801
# before this can be enabled.
12802
hardcode_into_libs=yes
12804
# find out which ABI we are using
12806
case "$host_cpu" in
12807
x86_64*|s390x*|powerpc64*)
12808
echo '#line 12808 "configure"' > conftest.$ac_ext
12809
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12810
(eval $ac_compile) 2>&5
12812
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813
(exit $ac_status); }; then
12814
case `/usr/bin/file conftest.$ac_objext` in
12817
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12825
# Append ld.so.conf contents to the search path
12826
if test -f /etc/ld.so.conf; then
12827
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12828
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12831
# We used to test for /lib/ld.so.1 and disable shared libraries on
12832
# powerpc, because MkLinux only supported shared libraries with the
12833
# GNU dynamic linker. Since this was broken with cross compilers,
12834
# most powerpc-linux boxes support dynamic linking these days and
12835
# people can always --disable-shared, the test was removed, and we
12836
# assume the GNU/Linux dynamic linker is in use.
12837
dynamic_linker='GNU/Linux ld.so'
12844
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12845
soname_spec='${libname}${release}${shared_ext}$major'
12846
shlibpath_var=LD_LIBRARY_PATH
12847
shlibpath_overrides_runpath=no
12848
hardcode_into_libs=yes
12849
dynamic_linker='GNU ld.so'
12856
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12857
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12858
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12859
dynamic_linker='NetBSD (a.out) ld.so'
12861
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12862
soname_spec='${libname}${release}${shared_ext}$major'
12863
dynamic_linker='NetBSD ld.elf_so'
12865
shlibpath_var=LD_LIBRARY_PATH
12866
shlibpath_overrides_runpath=yes
12867
hardcode_into_libs=yes
12872
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12873
shlibpath_var=LD_LIBRARY_PATH
12874
shlibpath_overrides_runpath=yes
12881
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12882
soname_spec='${libname}${release}${shared_ext}$major'
12883
shlibpath_var=LD_LIBRARY_PATH
12884
shlibpath_overrides_runpath=yes
12891
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12892
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12893
shlibpath_var=LD_LIBRARY_PATH
12894
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12896
openbsd2.[89] | openbsd2.[89].*)
12897
shlibpath_overrides_runpath=no
12900
shlibpath_overrides_runpath=yes
12904
shlibpath_overrides_runpath=yes
12909
libname_spec='$name'
12912
library_names_spec='$libname${shared_ext} $libname.a'
12913
dynamic_linker='OS/2 ld.exe'
12914
shlibpath_var=LIBPATH
12917
osf3* | osf4* | osf5*)
12921
soname_spec='${libname}${release}${shared_ext}$major'
12922
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12923
shlibpath_var=LD_LIBRARY_PATH
12924
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12925
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12930
soname_spec='${libname}${release}${shared_ext}$major'
12931
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12932
shlibpath_var=LD_LIBRARY_PATH
12939
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12940
soname_spec='${libname}${release}${shared_ext}$major'
12941
shlibpath_var=LD_LIBRARY_PATH
12942
shlibpath_overrides_runpath=yes
12943
hardcode_into_libs=yes
12944
# ldd complains unless libraries are executable
12945
postinstall_cmds='chmod +x $lib'
12950
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12951
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12952
shlibpath_var=LD_LIBRARY_PATH
12953
shlibpath_overrides_runpath=yes
12954
if test "$with_gnu_ld" = yes; then
12960
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12962
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12963
soname_spec='${libname}${release}${shared_ext}$major'
12964
shlibpath_var=LD_LIBRARY_PATH
12965
case $host_vendor in
12967
shlibpath_overrides_runpath=no
12969
export_dynamic_flag_spec='${wl}-Blargedynsym'
12970
runpath_var=LD_RUN_PATH
12978
shlibpath_overrides_runpath=no
12979
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12985
if test -d /usr/nec ;then
12987
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12988
soname_spec='$libname${shared_ext}.$major'
12989
shlibpath_var=LD_LIBRARY_PATH
12995
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12996
soname_spec='${libname}${release}${shared_ext}$major'
12997
shlibpath_var=LD_LIBRARY_PATH
13004
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13005
echo "${ECHO_T}$dynamic_linker" >&6
13006
test "$dynamic_linker" = no && can_build_shared=no
13008
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13009
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13010
hardcode_action_CXX=
13011
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13012
test -n "$runpath_var_CXX" || \
13013
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13015
# We can hardcode non-existant directories.
13016
if test "$hardcode_direct_CXX" != no &&
13017
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13018
# have to relink, otherwise we might link with an installed library
13019
# when we should be linking with a yet-to-be-installed one
13020
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13021
test "$hardcode_minus_L_CXX" != no; then
13022
# Linking always hardcodes the temporary library directory.
13023
hardcode_action_CXX=relink
13025
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13026
hardcode_action_CXX=immediate
13029
# We cannot hardcode anything, or else we can only hardcode existing
13031
hardcode_action_CXX=unsupported
13033
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13034
echo "${ECHO_T}$hardcode_action_CXX" >&6
13036
if test "$hardcode_action_CXX" = relink; then
13037
# Fast installation is not supported
13038
enable_fast_install=no
13039
elif test "$shlibpath_overrides_runpath" = yes ||
13040
test "$enable_shared" = no; then
13041
# Fast installation is not necessary
13042
enable_fast_install=needless
13047
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13048
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13049
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13050
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13051
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13052
echo "$as_me:$LINENO: result: yes" >&5
13053
echo "${ECHO_T}yes" >&6
13055
# FIXME - insert some real tests, host_os isn't really good enough
13058
if test -n "$STRIP" ; then
13059
striplib="$STRIP -x"
13060
echo "$as_me:$LINENO: result: yes" >&5
13061
echo "${ECHO_T}yes" >&6
13063
echo "$as_me:$LINENO: result: no" >&5
13064
echo "${ECHO_T}no" >&6
13068
echo "$as_me:$LINENO: result: no" >&5
13069
echo "${ECHO_T}no" >&6
13074
if test "x$enable_dlopen" != xyes; then
13075
enable_dlopen=unknown
13076
enable_dlopen_self=unknown
13077
enable_dlopen_self_static=unknown
13084
lt_cv_dlopen="load_add_on"
13086
lt_cv_dlopen_self=yes
13090
lt_cv_dlopen="LoadLibrary"
13095
lt_cv_dlopen="dlopen"
13100
# if libdl is installed we need to link against it
13101
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13102
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13103
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13104
echo $ECHO_N "(cached) $ECHO_C" >&6
13106
ac_check_lib_save_LIBS=$LIBS
13108
cat >conftest.$ac_ext <<_ACEOF
13111
cat confdefs.h >>conftest.$ac_ext
13112
cat >>conftest.$ac_ext <<_ACEOF
13113
/* end confdefs.h. */
13115
/* Override any gcc2 internal prototype to avoid an error. */
13119
/* We use char because int might match the return type of a gcc2
13120
builtin and then its argument prototype would still apply. */
13130
rm -f conftest.$ac_objext conftest$ac_exeext
13131
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13132
(eval $ac_link) 2>conftest.er1
13134
grep -v '^ *+' conftest.er1 >conftest.err
13136
cat conftest.err >&5
13137
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138
(exit $ac_status); } &&
13139
{ ac_try='test -z "$ac_cxx_werror_flag"
13140
|| test ! -s conftest.err'
13141
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13142
(eval $ac_try) 2>&5
13144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145
(exit $ac_status); }; } &&
13146
{ ac_try='test -s conftest$ac_exeext'
13147
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148
(eval $ac_try) 2>&5
13150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151
(exit $ac_status); }; }; then
13152
ac_cv_lib_dl_dlopen=yes
13154
echo "$as_me: failed program was:" >&5
13155
sed 's/^/| /' conftest.$ac_ext >&5
13157
ac_cv_lib_dl_dlopen=no
13159
rm -f conftest.err conftest.$ac_objext \
13160
conftest$ac_exeext conftest.$ac_ext
13161
LIBS=$ac_check_lib_save_LIBS
13163
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13164
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13165
if test $ac_cv_lib_dl_dlopen = yes; then
13166
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13169
lt_cv_dlopen="dyld"
13171
lt_cv_dlopen_self=yes
13178
echo "$as_me:$LINENO: checking for shl_load" >&5
13179
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13180
if test "${ac_cv_func_shl_load+set}" = set; then
13181
echo $ECHO_N "(cached) $ECHO_C" >&6
13183
cat >conftest.$ac_ext <<_ACEOF
13186
cat confdefs.h >>conftest.$ac_ext
13187
cat >>conftest.$ac_ext <<_ACEOF
13188
/* end confdefs.h. */
13189
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13190
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13191
#define shl_load innocuous_shl_load
13193
/* System header to define __stub macros and hopefully few prototypes,
13194
which can conflict with char shl_load (); below.
13195
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13196
<limits.h> exists even on freestanding compilers. */
13199
# include <limits.h>
13201
# include <assert.h>
13206
/* Override any gcc2 internal prototype to avoid an error. */
13211
/* We use char because int might match the return type of a gcc2
13212
builtin and then its argument prototype would still apply. */
13214
/* The GNU C library defines this for functions which it implements
13215
to always fail with ENOSYS. Some functions are actually named
13216
something starting with __ and the normal name is an alias. */
13217
#if defined (__stub_shl_load) || defined (__stub___shl_load)
13220
char (*f) () = shl_load;
13229
return f != shl_load;
13234
rm -f conftest.$ac_objext conftest$ac_exeext
13235
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13236
(eval $ac_link) 2>conftest.er1
13238
grep -v '^ *+' conftest.er1 >conftest.err
13240
cat conftest.err >&5
13241
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242
(exit $ac_status); } &&
13243
{ ac_try='test -z "$ac_cxx_werror_flag"
13244
|| test ! -s conftest.err'
13245
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246
(eval $ac_try) 2>&5
13248
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249
(exit $ac_status); }; } &&
13250
{ ac_try='test -s conftest$ac_exeext'
13251
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252
(eval $ac_try) 2>&5
13254
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255
(exit $ac_status); }; }; then
13256
ac_cv_func_shl_load=yes
13258
echo "$as_me: failed program was:" >&5
13259
sed 's/^/| /' conftest.$ac_ext >&5
13261
ac_cv_func_shl_load=no
13263
rm -f conftest.err conftest.$ac_objext \
13264
conftest$ac_exeext conftest.$ac_ext
13266
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13267
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13268
if test $ac_cv_func_shl_load = yes; then
13269
lt_cv_dlopen="shl_load"
13271
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13272
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13273
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13274
echo $ECHO_N "(cached) $ECHO_C" >&6
13276
ac_check_lib_save_LIBS=$LIBS
13278
cat >conftest.$ac_ext <<_ACEOF
13281
cat confdefs.h >>conftest.$ac_ext
13282
cat >>conftest.$ac_ext <<_ACEOF
13283
/* end confdefs.h. */
13285
/* Override any gcc2 internal prototype to avoid an error. */
13289
/* We use char because int might match the return type of a gcc2
13290
builtin and then its argument prototype would still apply. */
13300
rm -f conftest.$ac_objext conftest$ac_exeext
13301
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13302
(eval $ac_link) 2>conftest.er1
13304
grep -v '^ *+' conftest.er1 >conftest.err
13306
cat conftest.err >&5
13307
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308
(exit $ac_status); } &&
13309
{ ac_try='test -z "$ac_cxx_werror_flag"
13310
|| test ! -s conftest.err'
13311
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13312
(eval $ac_try) 2>&5
13314
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315
(exit $ac_status); }; } &&
13316
{ ac_try='test -s conftest$ac_exeext'
13317
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13318
(eval $ac_try) 2>&5
13320
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321
(exit $ac_status); }; }; then
13322
ac_cv_lib_dld_shl_load=yes
13324
echo "$as_me: failed program was:" >&5
13325
sed 's/^/| /' conftest.$ac_ext >&5
13327
ac_cv_lib_dld_shl_load=no
13329
rm -f conftest.err conftest.$ac_objext \
13330
conftest$ac_exeext conftest.$ac_ext
13331
LIBS=$ac_check_lib_save_LIBS
13333
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13334
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13335
if test $ac_cv_lib_dld_shl_load = yes; then
13336
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13338
echo "$as_me:$LINENO: checking for dlopen" >&5
13339
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13340
if test "${ac_cv_func_dlopen+set}" = set; then
13341
echo $ECHO_N "(cached) $ECHO_C" >&6
13343
cat >conftest.$ac_ext <<_ACEOF
13346
cat confdefs.h >>conftest.$ac_ext
13347
cat >>conftest.$ac_ext <<_ACEOF
13348
/* end confdefs.h. */
13349
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13350
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13351
#define dlopen innocuous_dlopen
13353
/* System header to define __stub macros and hopefully few prototypes,
13354
which can conflict with char dlopen (); below.
13355
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13356
<limits.h> exists even on freestanding compilers. */
13359
# include <limits.h>
13361
# include <assert.h>
13366
/* Override any gcc2 internal prototype to avoid an error. */
13371
/* We use char because int might match the return type of a gcc2
13372
builtin and then its argument prototype would still apply. */
13374
/* The GNU C library defines this for functions which it implements
13375
to always fail with ENOSYS. Some functions are actually named
13376
something starting with __ and the normal name is an alias. */
13377
#if defined (__stub_dlopen) || defined (__stub___dlopen)
13380
char (*f) () = dlopen;
13389
return f != dlopen;
13394
rm -f conftest.$ac_objext conftest$ac_exeext
13395
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13396
(eval $ac_link) 2>conftest.er1
13398
grep -v '^ *+' conftest.er1 >conftest.err
13400
cat conftest.err >&5
13401
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402
(exit $ac_status); } &&
13403
{ ac_try='test -z "$ac_cxx_werror_flag"
13404
|| test ! -s conftest.err'
13405
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13406
(eval $ac_try) 2>&5
13408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409
(exit $ac_status); }; } &&
13410
{ ac_try='test -s conftest$ac_exeext'
13411
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13412
(eval $ac_try) 2>&5
13414
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415
(exit $ac_status); }; }; then
13416
ac_cv_func_dlopen=yes
13418
echo "$as_me: failed program was:" >&5
13419
sed 's/^/| /' conftest.$ac_ext >&5
13421
ac_cv_func_dlopen=no
13423
rm -f conftest.err conftest.$ac_objext \
13424
conftest$ac_exeext conftest.$ac_ext
13426
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13427
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13428
if test $ac_cv_func_dlopen = yes; then
13429
lt_cv_dlopen="dlopen"
13431
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13432
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13433
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13434
echo $ECHO_N "(cached) $ECHO_C" >&6
13436
ac_check_lib_save_LIBS=$LIBS
13438
cat >conftest.$ac_ext <<_ACEOF
13441
cat confdefs.h >>conftest.$ac_ext
13442
cat >>conftest.$ac_ext <<_ACEOF
13443
/* end confdefs.h. */
13445
/* Override any gcc2 internal prototype to avoid an error. */
13449
/* We use char because int might match the return type of a gcc2
13450
builtin and then its argument prototype would still apply. */
13460
rm -f conftest.$ac_objext conftest$ac_exeext
13461
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13462
(eval $ac_link) 2>conftest.er1
13464
grep -v '^ *+' conftest.er1 >conftest.err
13466
cat conftest.err >&5
13467
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468
(exit $ac_status); } &&
13469
{ ac_try='test -z "$ac_cxx_werror_flag"
13470
|| test ! -s conftest.err'
13471
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13472
(eval $ac_try) 2>&5
13474
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475
(exit $ac_status); }; } &&
13476
{ ac_try='test -s conftest$ac_exeext'
13477
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13478
(eval $ac_try) 2>&5
13480
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481
(exit $ac_status); }; }; then
13482
ac_cv_lib_dl_dlopen=yes
13484
echo "$as_me: failed program was:" >&5
13485
sed 's/^/| /' conftest.$ac_ext >&5
13487
ac_cv_lib_dl_dlopen=no
13489
rm -f conftest.err conftest.$ac_objext \
13490
conftest$ac_exeext conftest.$ac_ext
13491
LIBS=$ac_check_lib_save_LIBS
13493
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13494
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13495
if test $ac_cv_lib_dl_dlopen = yes; then
13496
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13498
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13499
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13500
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13501
echo $ECHO_N "(cached) $ECHO_C" >&6
13503
ac_check_lib_save_LIBS=$LIBS
13504
LIBS="-lsvld $LIBS"
13505
cat >conftest.$ac_ext <<_ACEOF
13508
cat confdefs.h >>conftest.$ac_ext
13509
cat >>conftest.$ac_ext <<_ACEOF
13510
/* end confdefs.h. */
13512
/* Override any gcc2 internal prototype to avoid an error. */
13516
/* We use char because int might match the return type of a gcc2
13517
builtin and then its argument prototype would still apply. */
13527
rm -f conftest.$ac_objext conftest$ac_exeext
13528
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13529
(eval $ac_link) 2>conftest.er1
13531
grep -v '^ *+' conftest.er1 >conftest.err
13533
cat conftest.err >&5
13534
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535
(exit $ac_status); } &&
13536
{ ac_try='test -z "$ac_cxx_werror_flag"
13537
|| test ! -s conftest.err'
13538
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539
(eval $ac_try) 2>&5
13541
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542
(exit $ac_status); }; } &&
13543
{ ac_try='test -s conftest$ac_exeext'
13544
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545
(eval $ac_try) 2>&5
13547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548
(exit $ac_status); }; }; then
13549
ac_cv_lib_svld_dlopen=yes
13551
echo "$as_me: failed program was:" >&5
13552
sed 's/^/| /' conftest.$ac_ext >&5
13554
ac_cv_lib_svld_dlopen=no
13556
rm -f conftest.err conftest.$ac_objext \
13557
conftest$ac_exeext conftest.$ac_ext
13558
LIBS=$ac_check_lib_save_LIBS
13560
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13561
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13562
if test $ac_cv_lib_svld_dlopen = yes; then
13563
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13565
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13566
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13567
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13568
echo $ECHO_N "(cached) $ECHO_C" >&6
13570
ac_check_lib_save_LIBS=$LIBS
13572
cat >conftest.$ac_ext <<_ACEOF
13575
cat confdefs.h >>conftest.$ac_ext
13576
cat >>conftest.$ac_ext <<_ACEOF
13577
/* end confdefs.h. */
13579
/* Override any gcc2 internal prototype to avoid an error. */
13583
/* We use char because int might match the return type of a gcc2
13584
builtin and then its argument prototype would still apply. */
13594
rm -f conftest.$ac_objext conftest$ac_exeext
13595
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13596
(eval $ac_link) 2>conftest.er1
13598
grep -v '^ *+' conftest.er1 >conftest.err
13600
cat conftest.err >&5
13601
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602
(exit $ac_status); } &&
13603
{ ac_try='test -z "$ac_cxx_werror_flag"
13604
|| test ! -s conftest.err'
13605
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606
(eval $ac_try) 2>&5
13608
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609
(exit $ac_status); }; } &&
13610
{ ac_try='test -s conftest$ac_exeext'
13611
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612
(eval $ac_try) 2>&5
13614
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615
(exit $ac_status); }; }; then
13616
ac_cv_lib_dld_dld_link=yes
13618
echo "$as_me: failed program was:" >&5
13619
sed 's/^/| /' conftest.$ac_ext >&5
13621
ac_cv_lib_dld_dld_link=no
13623
rm -f conftest.err conftest.$ac_objext \
13624
conftest$ac_exeext conftest.$ac_ext
13625
LIBS=$ac_check_lib_save_LIBS
13627
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13628
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13629
if test $ac_cv_lib_dld_dld_link = yes; then
13630
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13651
if test "x$lt_cv_dlopen" != xno; then
13657
case $lt_cv_dlopen in
13659
save_CPPFLAGS="$CPPFLAGS"
13660
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13662
save_LDFLAGS="$LDFLAGS"
13663
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13666
LIBS="$lt_cv_dlopen_libs $LIBS"
13668
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13669
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13670
if test "${lt_cv_dlopen_self+set}" = set; then
13671
echo $ECHO_N "(cached) $ECHO_C" >&6
13673
if test "$cross_compiling" = yes; then :
13674
lt_cv_dlopen_self=cross
13676
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13677
lt_status=$lt_dlunknown
13678
cat > conftest.$ac_ext <<EOF
13679
#line 13679 "configure"
13680
#include "confdefs.h"
13689
# define LT_DLGLOBAL RTLD_GLOBAL
13692
# define LT_DLGLOBAL DL_GLOBAL
13694
# define LT_DLGLOBAL 0
13698
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13699
find out it does not work in some platform. */
13700
#ifndef LT_DLLAZY_OR_NOW
13702
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13705
# define LT_DLLAZY_OR_NOW DL_LAZY
13708
# define LT_DLLAZY_OR_NOW RTLD_NOW
13711
# define LT_DLLAZY_OR_NOW DL_NOW
13713
# define LT_DLLAZY_OR_NOW 0
13721
extern "C" void exit (int);
13724
void fnord() { int i=42;}
13727
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13728
int status = $lt_dlunknown;
13732
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13733
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13734
/* dlclose (self); */
13740
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13741
(eval $ac_link) 2>&5
13743
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13745
(./conftest; exit; ) 2>/dev/null
13747
case x$lt_status in
13748
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13749
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13750
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13753
# compilation failed
13754
lt_cv_dlopen_self=no
13761
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13762
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13764
if test "x$lt_cv_dlopen_self" = xyes; then
13765
LDFLAGS="$LDFLAGS $link_static_flag"
13766
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13767
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13768
if test "${lt_cv_dlopen_self_static+set}" = set; then
13769
echo $ECHO_N "(cached) $ECHO_C" >&6
13771
if test "$cross_compiling" = yes; then :
13772
lt_cv_dlopen_self_static=cross
13774
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13775
lt_status=$lt_dlunknown
13776
cat > conftest.$ac_ext <<EOF
13777
#line 13777 "configure"
13778
#include "confdefs.h"
13787
# define LT_DLGLOBAL RTLD_GLOBAL
13790
# define LT_DLGLOBAL DL_GLOBAL
13792
# define LT_DLGLOBAL 0
13796
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13797
find out it does not work in some platform. */
13798
#ifndef LT_DLLAZY_OR_NOW
13800
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13803
# define LT_DLLAZY_OR_NOW DL_LAZY
13806
# define LT_DLLAZY_OR_NOW RTLD_NOW
13809
# define LT_DLLAZY_OR_NOW DL_NOW
13811
# define LT_DLLAZY_OR_NOW 0
13819
extern "C" void exit (int);
13822
void fnord() { int i=42;}
13825
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13826
int status = $lt_dlunknown;
13830
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13831
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13832
/* dlclose (self); */
13838
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13839
(eval $ac_link) 2>&5
13841
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13843
(./conftest; exit; ) 2>/dev/null
13845
case x$lt_status in
13846
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13847
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13848
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13851
# compilation failed
13852
lt_cv_dlopen_self_static=no
13859
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13860
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13863
CPPFLAGS="$save_CPPFLAGS"
13864
LDFLAGS="$save_LDFLAGS"
13869
case $lt_cv_dlopen_self in
13870
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13871
*) enable_dlopen_self=unknown ;;
13874
case $lt_cv_dlopen_self_static in
13875
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13876
*) enable_dlopen_self_static=unknown ;;
13881
# The else clause should only fire when bootstrapping the
13882
# libtool distribution, otherwise you forgot to ship ltmain.sh
13883
# with your package, and you will get complaints that there are
13884
# no rules to generate ltmain.sh.
13885
if test -f "$ltmain"; then
13886
# See if we are running on zsh, and set the options which allow our commands through
13887
# without removal of \ escapes.
13888
if test -n "${ZSH_VERSION+set}" ; then
13889
setopt NO_GLOB_SUBST
13891
# Now quote all the things that may contain metacharacters while being
13892
# careful not to overquote the AC_SUBSTed values. We take copies of the
13893
# variables and quote the copies for generation of the libtool script.
13894
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13896
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13897
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13898
deplibs_check_method reload_flag reload_cmds need_locks \
13899
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13900
lt_cv_sys_global_symbol_to_c_name_address \
13901
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13902
old_postinstall_cmds old_postuninstall_cmds \
13906
lt_prog_compiler_wl_CXX \
13907
lt_prog_compiler_pic_CXX \
13908
lt_prog_compiler_static_CXX \
13909
lt_prog_compiler_no_builtin_flag_CXX \
13910
export_dynamic_flag_spec_CXX \
13911
thread_safe_flag_spec_CXX \
13912
whole_archive_flag_spec_CXX \
13913
enable_shared_with_static_runtimes_CXX \
13914
old_archive_cmds_CXX \
13915
old_archive_from_new_cmds_CXX \
13916
predep_objects_CXX \
13917
postdep_objects_CXX \
13920
compiler_lib_search_path_CXX \
13922
archive_expsym_cmds_CXX \
13923
postinstall_cmds_CXX \
13924
postuninstall_cmds_CXX \
13925
old_archive_from_expsyms_cmds_CXX \
13926
allow_undefined_flag_CXX \
13927
no_undefined_flag_CXX \
13928
export_symbols_cmds_CXX \
13929
hardcode_libdir_flag_spec_CXX \
13930
hardcode_libdir_flag_spec_ld_CXX \
13931
hardcode_libdir_separator_CXX \
13932
hardcode_automatic_CXX \
13934
module_expsym_cmds_CXX \
13935
lt_cv_prog_compiler_c_o_CXX \
13936
exclude_expsyms_CXX \
13937
include_expsyms_CXX; do
13940
old_archive_cmds_CXX | \
13941
old_archive_from_new_cmds_CXX | \
13942
archive_cmds_CXX | \
13943
archive_expsym_cmds_CXX | \
13944
module_cmds_CXX | \
13945
module_expsym_cmds_CXX | \
13946
old_archive_from_expsyms_cmds_CXX | \
13947
export_symbols_cmds_CXX | \
13948
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13949
postinstall_cmds | postuninstall_cmds | \
13950
old_postinstall_cmds | old_postuninstall_cmds | \
13951
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13952
# Double-quote double-evaled strings.
13953
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13956
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13962
*'\$0 --fallback-echo"')
13963
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13969
cat <<__EOF__ >> "$cfgfile"
13970
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13972
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13974
# Shell to use when invoking shell scripts.
13977
# Whether or not to build shared libraries.
13978
build_libtool_libs=$enable_shared
13980
# Whether or not to build static libraries.
13981
build_old_libs=$enable_static
13983
# Whether or not to add -lc for building shared libraries.
13984
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13986
# Whether or not to disallow shared libs when runtime libs are static
13987
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13989
# Whether or not to optimize for fast installation.
13990
fast_install=$enable_fast_install
13993
host_alias=$host_alias
13996
# An echo program that does not interpret backslashes.
14001
AR_FLAGS=$lt_AR_FLAGS
14006
# A language-specific compiler.
14007
CC=$lt_compiler_CXX
14009
# Is the compiler the GNU C compiler?
14015
# The linker used to build libraries.
14018
# Whether we need hard or soft links.
14021
# A BSD-compatible nm program.
14024
# A symbol stripping program
14027
# Used to examine libraries when file_magic_cmd begins "file"
14028
MAGIC_CMD=$MAGIC_CMD
14030
# Used on cygwin: DLL creation program.
14033
# Used on cygwin: object dumper.
14036
# Used on cygwin: assembler.
14039
# The name of the directory that contains temporary libtool files.
14042
# How to create reloadable object files.
14043
reload_flag=$lt_reload_flag
14044
reload_cmds=$lt_reload_cmds
14046
# How to pass a linker flag through the compiler.
14047
wl=$lt_lt_prog_compiler_wl_CXX
14049
# Object file suffix (normally "o").
14050
objext="$ac_objext"
14052
# Old archive suffix (normally "a").
14055
# Shared library suffix (normally ".so").
14056
shrext_cmds='$shrext_cmds'
14058
# Executable file suffix (normally "").
14061
# Additional compiler flags for building library objects.
14062
pic_flag=$lt_lt_prog_compiler_pic_CXX
14065
# What is the maximum length of a command?
14066
max_cmd_len=$lt_cv_sys_max_cmd_len
14068
# Does compiler simultaneously support -c and -o options?
14069
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14071
# Must we lock files when doing compilation ?
14072
need_locks=$lt_need_locks
14074
# Do we need the lib prefix for modules?
14075
need_lib_prefix=$need_lib_prefix
14077
# Do we need a version for libraries?
14078
need_version=$need_version
14080
# Whether dlopen is supported.
14081
dlopen_support=$enable_dlopen
14083
# Whether dlopen of programs is supported.
14084
dlopen_self=$enable_dlopen_self
14086
# Whether dlopen of statically linked programs is supported.
14087
dlopen_self_static=$enable_dlopen_self_static
14089
# Compiler flag to prevent dynamic linking.
14090
link_static_flag=$lt_lt_prog_compiler_static_CXX
14092
# Compiler flag to turn off builtin functions.
14093
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14095
# Compiler flag to allow reflexive dlopens.
14096
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14098
# Compiler flag to generate shared objects directly from archives.
14099
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14101
# Compiler flag to generate thread-safe objects.
14102
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14104
# Library versioning type.
14105
version_type=$version_type
14107
# Format of library name prefix.
14108
libname_spec=$lt_libname_spec
14110
# List of archive names. First name is the real one, the rest are links.
14111
# The last name is the one that the linker finds with -lNAME.
14112
library_names_spec=$lt_library_names_spec
14114
# The coded name of the library, if different from the real name.
14115
soname_spec=$lt_soname_spec
14117
# Commands used to build and install an old-style archive.
14119
old_archive_cmds=$lt_old_archive_cmds_CXX
14120
old_postinstall_cmds=$lt_old_postinstall_cmds
14121
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14123
# Create an old-style archive from a shared archive.
14124
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14126
# Create a temporary old-style archive to link instead of a shared archive.
14127
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14129
# Commands used to build and install a shared archive.
14130
archive_cmds=$lt_archive_cmds_CXX
14131
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14132
postinstall_cmds=$lt_postinstall_cmds
14133
postuninstall_cmds=$lt_postuninstall_cmds
14135
# Commands used to build a loadable module (assumed same as above if empty)
14136
module_cmds=$lt_module_cmds_CXX
14137
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14139
# Commands to strip libraries.
14140
old_striplib=$lt_old_striplib
14141
striplib=$lt_striplib
14143
# Dependencies to place before the objects being linked to create a
14145
predep_objects=$lt_predep_objects_CXX
14147
# Dependencies to place after the objects being linked to create a
14149
postdep_objects=$lt_postdep_objects_CXX
14151
# Dependencies to place before the objects being linked to create a
14153
predeps=$lt_predeps_CXX
14155
# Dependencies to place after the objects being linked to create a
14157
postdeps=$lt_postdeps_CXX
14159
# The library search path used internally by the compiler when linking
14160
# a shared library.
14161
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14163
# Method to check whether dependent libraries are shared objects.
14164
deplibs_check_method=$lt_deplibs_check_method
14166
# Command to use when deplibs_check_method == file_magic.
14167
file_magic_cmd=$lt_file_magic_cmd
14169
# Flag that allows shared libraries with undefined symbols to be built.
14170
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14172
# Flag that forces no undefined symbols.
14173
no_undefined_flag=$lt_no_undefined_flag_CXX
14175
# Commands used to finish a libtool library installation in a directory.
14176
finish_cmds=$lt_finish_cmds
14178
# Same as above, but a single script fragment to be evaled but not shown.
14179
finish_eval=$lt_finish_eval
14181
# Take the output of nm and produce a listing of raw symbols and C names.
14182
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14184
# Transform the output of nm in a proper C declaration
14185
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14187
# Transform the output of nm in a C name address pair
14188
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14190
# This is the shared library runtime path variable.
14191
runpath_var=$runpath_var
14193
# This is the shared library path variable.
14194
shlibpath_var=$shlibpath_var
14196
# Is shlibpath searched before the hard-coded library search path?
14197
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14199
# How to hardcode a shared library path into an executable.
14200
hardcode_action=$hardcode_action_CXX
14202
# Whether we should hardcode library paths into libraries.
14203
hardcode_into_libs=$hardcode_into_libs
14205
# Flag to hardcode \$libdir into a binary during linking.
14206
# This must work even if \$libdir does not exist.
14207
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14209
# If ld is used when linking, flag to hardcode \$libdir into
14210
# a binary during linking. This must work even if \$libdir does
14212
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14214
# Whether we need a single -rpath flag with a separated argument.
14215
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14217
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14218
# resulting binary.
14219
hardcode_direct=$hardcode_direct_CXX
14221
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14222
# resulting binary.
14223
hardcode_minus_L=$hardcode_minus_L_CXX
14225
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14226
# the resulting binary.
14227
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14229
# Set to yes if building a shared library automatically hardcodes DIR into the library
14230
# and all subsequent libraries and executables linked against it.
14231
hardcode_automatic=$hardcode_automatic_CXX
14233
# Variables whose values should be saved in libtool wrapper scripts and
14234
# restored at relink time.
14235
variables_saved_for_relink="$variables_saved_for_relink"
14237
# Whether libtool must link a program against all its dependency libraries.
14238
link_all_deplibs=$link_all_deplibs_CXX
14240
# Compile-time system search path for libraries
14241
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14243
# Run-time system search path for libraries
14244
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14246
# Fix the shell variable \$srcfile for the compiler.
14247
fix_srcfile_path="$fix_srcfile_path_CXX"
14249
# Set to yes if exported symbols are required.
14250
always_export_symbols=$always_export_symbols_CXX
14252
# The commands to list exported symbols.
14253
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14255
# The commands to extract the exported symbol list from a shared archive.
14256
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14258
# Symbols that should not be listed in the preloaded symbols.
14259
exclude_expsyms=$lt_exclude_expsyms_CXX
14261
# Symbols that must always be exported.
14262
include_expsyms=$lt_include_expsyms_CXX
14264
# ### END LIBTOOL TAG CONFIG: $tagname
14270
# If there is no Makefile yet, we rely on a make rule to execute
14271
# `config.status --recheck' to rerun these tests and create the
14272
# libtool script then.
14273
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14274
if test -f "$ltmain_in"; then
14275
test -f Makefile && make "$ltmain"
14281
ac_cpp='$CPP $CPPFLAGS'
14282
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14283
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14284
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14290
with_gnu_ldcxx=$with_gnu_ld
14291
with_gnu_ld=$lt_save_with_gnu_ld
14292
lt_cv_path_LDCXX=$lt_cv_path_LD
14293
lt_cv_path_LD=$lt_save_path_LD
14294
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14295
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14303
if test -n "$F77" && test "X$F77" != "Xno"; then
14306
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14307
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14308
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14311
archive_cmds_need_lc_F77=no
14312
allow_undefined_flag_F77=
14313
always_export_symbols_F77=no
14314
archive_expsym_cmds_F77=
14315
export_dynamic_flag_spec_F77=
14316
hardcode_direct_F77=no
14317
hardcode_libdir_flag_spec_F77=
14318
hardcode_libdir_flag_spec_ld_F77=
14319
hardcode_libdir_separator_F77=
14320
hardcode_minus_L_F77=no
14321
hardcode_automatic_F77=no
14323
module_expsym_cmds_F77=
14324
link_all_deplibs_F77=unknown
14325
old_archive_cmds_F77=$old_archive_cmds
14326
no_undefined_flag_F77=
14327
whole_archive_flag_spec_F77=
14328
enable_shared_with_static_runtimes_F77=no
14330
# Source file extension for f77 test sources.
14333
# Object file extension for compiled f77 test sources.
14337
# Code to be used in simple compile tests
14338
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14340
# Code to be used in simple link tests
14341
lt_simple_link_test_code=" program t\n end\n"
14343
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14345
# If no C compiler was specified, use CC.
14348
# Allow CC to be a program name with arguments.
14352
# Allow CC to be a program name with arguments.
14357
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14359
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14360
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14361
echo "$as_me:$LINENO: result: $can_build_shared" >&5
14362
echo "${ECHO_T}$can_build_shared" >&6
14364
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14365
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14366
test "$can_build_shared" = "no" && enable_shared=no
14368
# On AIX, shared libraries and static libraries use the same namespace, and
14369
# are all built from PIC.
14372
test "$enable_shared" = yes && enable_static=no
14373
if test -n "$RANLIB"; then
14374
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14375
postinstall_cmds='$RANLIB $lib'
14379
test "$enable_shared" = yes && enable_static=no
14382
echo "$as_me:$LINENO: result: $enable_shared" >&5
14383
echo "${ECHO_T}$enable_shared" >&6
14385
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14386
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14387
# Make sure either enable_shared or enable_static is yes.
14388
test "$enable_shared" = yes || enable_static=yes
14389
echo "$as_me:$LINENO: result: $enable_static" >&5
14390
echo "${ECHO_T}$enable_static" >&6
14392
test "$ld_shlibs_F77" = no && can_build_shared=no
14397
lt_prog_compiler_wl_F77=
14398
lt_prog_compiler_pic_F77=
14399
lt_prog_compiler_static_F77=
14401
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14402
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14404
if test "$GCC" = yes; then
14405
lt_prog_compiler_wl_F77='-Wl,'
14406
lt_prog_compiler_static_F77='-static'
14410
# All AIX code is PIC.
14411
if test "$host_cpu" = ia64; then
14412
# AIX 5 now supports IA64 processor
14413
lt_prog_compiler_static_F77='-Bstatic'
14418
# FIXME: we need at least 68020 code to build shared libraries, but
14419
# adding the `-m68020' flag to GCC prevents building anything better,
14421
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14424
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14425
# PIC is the default for these OSes.
14428
mingw* | pw32* | os2*)
14429
# This hack is so that the source file can tell whether it is being
14430
# built for inclusion in a dll (and should export symbols for example).
14431
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14434
darwin* | rhapsody*)
14435
# PIC is the default on this platform
14436
# Common symbols not allowed in MH_DYLIB files
14437
lt_prog_compiler_pic_F77='-fno-common'
14441
# Just because we use GCC doesn't mean we suddenly get shared libraries
14442
# on systems that don't support them.
14443
lt_prog_compiler_can_build_shared_F77=no
14448
if test -d /usr/nec; then
14449
lt_prog_compiler_pic_F77=-Kconform_pic
14454
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14455
# not for PA HP-UX.
14456
case "$host_cpu" in
14461
lt_prog_compiler_pic_F77='-fPIC'
14467
lt_prog_compiler_pic_F77='-fPIC'
14471
# PORTME Check for flag to pass linker flags through the system compiler.
14474
lt_prog_compiler_wl_F77='-Wl,'
14475
if test "$host_cpu" = ia64; then
14476
# AIX 5 now supports IA64 processor
14477
lt_prog_compiler_static_F77='-Bstatic'
14479
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14483
# PIC is the default on this platform
14484
# Common symbols not allowed in MH_DYLIB files
14485
case "$cc_basename" in
14487
lt_prog_compiler_pic_F77='-qnocommon'
14488
lt_prog_compiler_wl_F77='-Wl,'
14493
mingw* | pw32* | os2*)
14494
# This hack is so that the source file can tell whether it is being
14495
# built for inclusion in a dll (and should export symbols for example).
14496
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14499
hpux9* | hpux10* | hpux11*)
14500
lt_prog_compiler_wl_F77='-Wl,'
14501
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14502
# not for PA HP-UX.
14503
case "$host_cpu" in
14508
lt_prog_compiler_pic_F77='+Z'
14511
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14512
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14515
irix5* | irix6* | nonstopux*)
14516
lt_prog_compiler_wl_F77='-Wl,'
14517
# PIC (with -KPIC) is the default.
14518
lt_prog_compiler_static_F77='-non_shared'
14522
lt_prog_compiler_pic_F77='-KPIC'
14523
lt_prog_compiler_static_F77='-Bstatic'
14529
lt_prog_compiler_wl_F77='-Wl,'
14530
lt_prog_compiler_pic_F77='-KPIC'
14531
lt_prog_compiler_static_F77='-static'
14534
lt_prog_compiler_wl_F77='-Wl,'
14535
# All Alpha code is PIC.
14536
lt_prog_compiler_static_F77='-non_shared'
14541
osf3* | osf4* | osf5*)
14542
lt_prog_compiler_wl_F77='-Wl,'
14543
# All OSF/1 code is PIC.
14544
lt_prog_compiler_static_F77='-non_shared'
14548
lt_prog_compiler_pic_F77='-Kpic'
14549
lt_prog_compiler_static_F77='-dn'
14553
lt_prog_compiler_wl_F77='-Wl,'
14554
lt_prog_compiler_pic_F77='-KPIC'
14555
lt_prog_compiler_static_F77='-Bstatic'
14559
lt_prog_compiler_wl_F77='-Qoption ld '
14560
lt_prog_compiler_pic_F77='-PIC'
14561
lt_prog_compiler_static_F77='-Bstatic'
14564
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14565
lt_prog_compiler_wl_F77='-Wl,'
14566
lt_prog_compiler_pic_F77='-KPIC'
14567
lt_prog_compiler_static_F77='-Bstatic'
14571
if test -d /usr/nec ;then
14572
lt_prog_compiler_pic_F77='-Kconform_pic'
14573
lt_prog_compiler_static_F77='-Bstatic'
14578
lt_prog_compiler_pic_F77='-pic'
14579
lt_prog_compiler_static_F77='-Bstatic'
14583
lt_prog_compiler_can_build_shared_F77=no
14588
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14589
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14592
# Check to make sure the PIC flag actually works.
14594
if test -n "$lt_prog_compiler_pic_F77"; then
14596
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14597
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14598
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14599
echo $ECHO_N "(cached) $ECHO_C" >&6
14601
lt_prog_compiler_pic_works_F77=no
14602
ac_outfile=conftest.$ac_objext
14603
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14604
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14605
# Insert the option either (1) after the last *FLAGS variable, or
14606
# (2) before a word containing "conftest.", or (3) at the end.
14607
# Note that $ac_compile itself does not contain backslashes and begins
14608
# with a dollar sign (not a hyphen), so the echo should work correctly.
14609
# The option is referenced via a variable to avoid confusing sed.
14610
lt_compile=`echo "$ac_compile" | $SED \
14611
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14612
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14613
-e 's:$: $lt_compiler_flag:'`
14614
(eval echo "\"\$as_me:14614: $lt_compile\"" >&5)
14615
(eval "$lt_compile" 2>conftest.err)
14617
cat conftest.err >&5
14618
echo "$as_me:14618: \$? = $ac_status" >&5
14619
if (exit $ac_status) && test -s "$ac_outfile"; then
14620
# The compiler can only warn and ignore the option if not recognized
14621
# So say no if there are warnings
14622
if test ! -s conftest.err; then
14623
lt_prog_compiler_pic_works_F77=yes
14629
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14630
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14632
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14633
case $lt_prog_compiler_pic_F77 in
14635
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14638
lt_prog_compiler_pic_F77=
14639
lt_prog_compiler_can_build_shared_F77=no
14644
# For platforms which do not support PIC, -DPIC is meaningless:
14646
lt_prog_compiler_pic_F77=
14649
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14653
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14654
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14655
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14656
echo $ECHO_N "(cached) $ECHO_C" >&6
14658
lt_cv_prog_compiler_c_o_F77=no
14659
$rm -r conftest 2>/dev/null
14663
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14665
lt_compiler_flag="-o out/conftest2.$ac_objext"
14666
# Insert the option either (1) after the last *FLAGS variable, or
14667
# (2) before a word containing "conftest.", or (3) at the end.
14668
# Note that $ac_compile itself does not contain backslashes and begins
14669
# with a dollar sign (not a hyphen), so the echo should work correctly.
14670
lt_compile=`echo "$ac_compile" | $SED \
14671
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14672
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14673
-e 's:$: $lt_compiler_flag:'`
14674
(eval echo "\"\$as_me:14674: $lt_compile\"" >&5)
14675
(eval "$lt_compile" 2>out/conftest.err)
14677
cat out/conftest.err >&5
14678
echo "$as_me:14678: \$? = $ac_status" >&5
14679
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14681
# The compiler can only warn and ignore the option if not recognized
14682
# So say no if there are warnings
14683
if test ! -s out/conftest.err; then
14684
lt_cv_prog_compiler_c_o_F77=yes
14689
# SGI C++ compiler will create directory out/ii_files/ for
14690
# template instantiation
14691
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14692
$rm out/* && rmdir out
14698
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14699
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14702
hard_links="nottested"
14703
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14704
# do not overwrite the value of need_locks provided by the user
14705
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14706
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14709
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14711
ln conftest.a conftest.b 2>&5 || hard_links=no
14712
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14713
echo "$as_me:$LINENO: result: $hard_links" >&5
14714
echo "${ECHO_T}$hard_links" >&6
14715
if test "$hard_links" = no; then
14716
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14717
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14724
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14725
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14728
allow_undefined_flag_F77=
14729
enable_shared_with_static_runtimes_F77=no
14731
archive_expsym_cmds_F77=
14732
old_archive_From_new_cmds_F77=
14733
old_archive_from_expsyms_cmds_F77=
14734
export_dynamic_flag_spec_F77=
14735
whole_archive_flag_spec_F77=
14736
thread_safe_flag_spec_F77=
14737
hardcode_libdir_flag_spec_F77=
14738
hardcode_libdir_flag_spec_ld_F77=
14739
hardcode_libdir_separator_F77=
14740
hardcode_direct_F77=no
14741
hardcode_minus_L_F77=no
14742
hardcode_shlibpath_var_F77=unsupported
14743
link_all_deplibs_F77=unknown
14744
hardcode_automatic_F77=no
14746
module_expsym_cmds_F77=
14747
always_export_symbols_F77=no
14748
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14749
# include_expsyms should be a list of space-separated symbols to be *always*
14750
# included in the symbol list
14751
include_expsyms_F77=
14752
# exclude_expsyms can be an extended regexp of symbols to exclude
14753
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14754
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14755
# as well as any symbol that contains `d'.
14756
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14757
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14758
# platforms (ab)use it in PIC code, but their linkers get confused if
14759
# the symbol is explicitly referenced. Since portable code cannot
14760
# rely on this symbol name, it's probably fine to never include it in
14761
# preloaded symbol tables.
14762
extract_expsyms_cmds=
14765
cygwin* | mingw* | pw32*)
14766
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14767
# When not using gcc, we currently assume that we are using
14768
# Microsoft Visual C++.
14769
if test "$GCC" != yes; then
14779
if test "$with_gnu_ld" = yes; then
14780
# If archive_cmds runs LD, not CC, wlarc should be empty
14783
# See if GNU ld supports shared libraries.
14785
aix3* | aix4* | aix5*)
14786
# On AIX/PPC, the GNU linker is very broken
14787
if test "$host_cpu" != ia64; then
14791
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14792
*** to be unable to reliably create shared libraries on AIX.
14793
*** Therefore, libtool is disabling shared libraries support. If you
14794
*** really care for shared libraries, you may want to modify your PATH
14795
*** so that a non-GNU linker is found, and then restart.
14802
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)'
14803
hardcode_libdir_flag_spec_F77='-L$libdir'
14804
hardcode_minus_L_F77=yes
14806
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14807
# that the semantics of dynamic libraries on AmigaOS, at least up
14808
# to version 4, is to share data among multiple programs linked
14809
# with the same dynamic library. Since this doesn't match the
14810
# behavior of shared libraries on other platforms, we can't use
14816
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14817
allow_undefined_flag_F77=unsupported
14818
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14819
# support --undefined. This deserves some investigation. FIXME
14820
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14826
cygwin* | mingw* | pw32*)
14827
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14828
# as there is no search path for DLLs.
14829
hardcode_libdir_flag_spec_F77='-L$libdir'
14830
allow_undefined_flag_F77=unsupported
14831
always_export_symbols_F77=no
14832
enable_shared_with_static_runtimes_F77=yes
14833
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14835
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14836
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14837
# If the export-symbols file already is a .def file (1st line
14838
# is EXPORTS), use it as is; otherwise, prepend...
14839
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14840
cp $export_symbols $output_objdir/$soname.def;
14842
echo EXPORTS > $output_objdir/$soname.def;
14843
cat $export_symbols >> $output_objdir/$soname.def;
14845
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14852
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14853
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14856
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14857
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14862
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14866
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14867
*** create shared libraries on Solaris systems. Therefore, libtool
14868
*** is disabling shared libraries support. We urge you to upgrade GNU
14869
*** binutils to release 2.9.1 or newer. Another option is to modify
14870
*** your PATH or compiler configuration so that the native linker is
14871
*** used, and then restart.
14874
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14875
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14876
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14883
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14885
hardcode_direct_F77=yes
14886
hardcode_shlibpath_var_F77=no
14890
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14891
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14892
archive_cmds_F77="$tmp_archive_cmds"
14893
supports_anon_versioning=no
14894
case `$LD -v 2>/dev/null` in
14895
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14896
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14897
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14898
*\ 2.11.*) ;; # other 2.11 versions
14899
*) supports_anon_versioning=yes ;;
14901
if test $supports_anon_versioning = yes; then
14902
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14903
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14904
$echo "local: *; };" >> $output_objdir/$libname.ver~
14905
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14907
archive_expsym_cmds_F77="$tmp_archive_cmds"
14915
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14916
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14917
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14924
if test "$ld_shlibs_F77" = yes; then
14925
runpath_var=LD_RUN_PATH
14926
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14927
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14928
# ancient GNU ld didn't support --whole-archive et. al.
14929
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14930
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14932
whole_archive_flag_spec_F77=
14936
# PORTME fill in a description of your system's linker (not GNU ld)
14939
allow_undefined_flag_F77=unsupported
14940
always_export_symbols_F77=yes
14941
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'
14942
# Note: this linker hardcodes the directories in LIBPATH if there
14943
# are no directories specified by -L.
14944
hardcode_minus_L_F77=yes
14945
if test "$GCC" = yes && test -z "$link_static_flag"; then
14946
# Neither direct hardcoding nor static linking is supported with a
14948
hardcode_direct_F77=unsupported
14953
if test "$host_cpu" = ia64; then
14954
# On IA64, the linker does run time linking by default, so we don't
14955
# have to do anything special.
14956
aix_use_runtimelinking=no
14957
exp_sym_flag='-Bexport'
14960
# If we're using GNU nm, then we don't want the "-C" option.
14961
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14962
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14963
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'
14965
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'
14967
aix_use_runtimelinking=no
14969
# Test if we are trying to use run time linking or normal
14970
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14971
# need to do runtime linking.
14972
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14973
for ld_flag in $LDFLAGS; do
14974
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14975
aix_use_runtimelinking=yes
14981
exp_sym_flag='-bexport'
14982
no_entry_flag='-bnoentry'
14985
# When large executables or shared objects are built, AIX ld can
14986
# have problems creating the table of contents. If linking a library
14987
# or program results in "error TOC overflow" add -mminimal-toc to
14988
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14989
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14991
archive_cmds_F77=''
14992
hardcode_direct_F77=yes
14993
hardcode_libdir_separator_F77=':'
14994
link_all_deplibs_F77=yes
14996
if test "$GCC" = yes; then
14997
case $host_os in aix4.012|aix4.012.*)
14998
# We only want to do this on AIX 4.2 and lower, the check
14999
# below for broken collect2 doesn't work under 4.3+
15000
collect2name=`${CC} -print-prog-name=collect2`
15001
if test -f "$collect2name" && \
15002
strings "$collect2name" | grep resolve_lib_name >/dev/null
15004
# We have reworked collect2
15005
hardcode_direct_F77=yes
15007
# We have old collect2
15008
hardcode_direct_F77=unsupported
15009
# It fails to find uninstalled libraries when the uninstalled
15010
# path is not listed in the libpath. Setting hardcode_minus_L
15011
# to unsupported forces relinking
15012
hardcode_minus_L_F77=yes
15013
hardcode_libdir_flag_spec_F77='-L$libdir'
15014
hardcode_libdir_separator_F77=
15017
shared_flag='-shared'
15020
if test "$host_cpu" = ia64; then
15021
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15022
# chokes on -Wl,-G. The following line is correct:
15025
if test "$aix_use_runtimelinking" = yes; then
15026
shared_flag='${wl}-G'
15028
shared_flag='${wl}-bM:SRE'
15033
# It seems that -bexpall does not export symbols beginning with
15034
# underscore (_), so it is better to generate a list of symbols to export.
15035
always_export_symbols_F77=yes
15036
if test "$aix_use_runtimelinking" = yes; then
15037
# Warning - without using the other runtime loading flags (-brtl),
15038
# -berok will link without error, but may produce a broken library.
15039
allow_undefined_flag_F77='-berok'
15040
# Determine the default libpath from the value encoded in an empty executable.
15041
cat >conftest.$ac_ext <<_ACEOF
15046
rm -f conftest.$ac_objext conftest$ac_exeext
15047
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15048
(eval $ac_link) 2>conftest.er1
15050
grep -v '^ *+' conftest.er1 >conftest.err
15052
cat conftest.err >&5
15053
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054
(exit $ac_status); } &&
15055
{ ac_try='test -z "$ac_f77_werror_flag"
15056
|| test ! -s conftest.err'
15057
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058
(eval $ac_try) 2>&5
15060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061
(exit $ac_status); }; } &&
15062
{ ac_try='test -s conftest$ac_exeext'
15063
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064
(eval $ac_try) 2>&5
15066
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067
(exit $ac_status); }; }; then
15069
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15071
# Check for a 64-bit object if we didn't find anything.
15072
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; }
15075
echo "$as_me: failed program was:" >&5
15076
sed 's/^/| /' conftest.$ac_ext >&5
15079
rm -f conftest.err conftest.$ac_objext \
15080
conftest$ac_exeext conftest.$ac_ext
15081
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15083
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15084
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15086
if test "$host_cpu" = ia64; then
15087
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15088
allow_undefined_flag_F77="-z nodefs"
15089
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15091
# Determine the default libpath from the value encoded in an empty executable.
15092
cat >conftest.$ac_ext <<_ACEOF
15097
rm -f conftest.$ac_objext conftest$ac_exeext
15098
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15099
(eval $ac_link) 2>conftest.er1
15101
grep -v '^ *+' conftest.er1 >conftest.err
15103
cat conftest.err >&5
15104
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105
(exit $ac_status); } &&
15106
{ ac_try='test -z "$ac_f77_werror_flag"
15107
|| test ! -s conftest.err'
15108
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109
(eval $ac_try) 2>&5
15111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112
(exit $ac_status); }; } &&
15113
{ ac_try='test -s conftest$ac_exeext'
15114
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115
(eval $ac_try) 2>&5
15117
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118
(exit $ac_status); }; }; then
15120
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15122
# Check for a 64-bit object if we didn't find anything.
15123
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; }
15126
echo "$as_me: failed program was:" >&5
15127
sed 's/^/| /' conftest.$ac_ext >&5
15130
rm -f conftest.err conftest.$ac_objext \
15131
conftest$ac_exeext conftest.$ac_ext
15132
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15134
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15135
# Warning - without using the other run time loading flags,
15136
# -berok will link without error, but may produce a broken library.
15137
no_undefined_flag_F77=' ${wl}-bernotok'
15138
allow_undefined_flag_F77=' ${wl}-berok'
15139
# -bexpall does not export symbols beginning with underscore (_)
15140
always_export_symbols_F77=yes
15141
# Exported symbols can be pulled into shared objects from archives
15142
whole_archive_flag_spec_F77=' '
15143
archive_cmds_need_lc_F77=yes
15144
# This is similar to how AIX traditionally builds it's shared libraries.
15145
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15151
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)'
15152
hardcode_libdir_flag_spec_F77='-L$libdir'
15153
hardcode_minus_L_F77=yes
15154
# see comment about different semantics on the GNU ld section
15159
export_dynamic_flag_spec_F77=-rdynamic
15162
cygwin* | mingw* | pw32*)
15163
# When not using gcc, we currently assume that we are using
15164
# Microsoft Visual C++.
15165
# hardcode_libdir_flag_spec is actually meaningless, as there is
15166
# no search path for DLLs.
15167
hardcode_libdir_flag_spec_F77=' '
15168
allow_undefined_flag_F77=unsupported
15169
# Tell ltmain to make .lib files, not .a files.
15171
# Tell ltmain to make .dll files, not .so files.
15173
# FIXME: Setting linknames here is a bad hack.
15174
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15175
# The linker will automatically build a .lib file if we build a DLL.
15176
old_archive_From_new_cmds_F77='true'
15177
# FIXME: Should let the user specify the lib program.
15178
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15179
fix_srcfile_path='`cygpath -w "$srcfile"`'
15180
enable_shared_with_static_runtimes_F77=yes
15183
darwin* | rhapsody*)
15185
rhapsody* | darwin1.[012])
15186
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15189
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15190
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15192
case ${MACOSX_DEPLOYMENT_TARGET} in
15194
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15197
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15203
archive_cmds_need_lc_F77=no
15204
hardcode_direct_F77=no
15205
hardcode_automatic_F77=yes
15206
hardcode_shlibpath_var_F77=unsupported
15207
whole_archive_flag_spec_F77=''
15208
link_all_deplibs_F77=yes
15209
if test "$GCC" = yes ; then
15210
output_verbose_link_cmd='echo'
15211
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15212
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15213
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15214
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}'
15215
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}'
15217
case "$cc_basename" in
15219
output_verbose_link_cmd='echo'
15220
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15221
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15222
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15223
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}'
15224
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}'
15234
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15235
hardcode_libdir_flag_spec_F77='-L$libdir'
15236
hardcode_shlibpath_var_F77=no
15243
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15244
# support. Future versions do this automatically, but an explicit c++rt0.o
15245
# does not break anything, and helps significantly (at the cost of a little
15248
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15249
hardcode_libdir_flag_spec_F77='-R$libdir'
15250
hardcode_direct_F77=yes
15251
hardcode_shlibpath_var_F77=no
15254
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15256
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15257
hardcode_direct_F77=yes
15258
hardcode_minus_L_F77=yes
15259
hardcode_shlibpath_var_F77=no
15262
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15263
freebsd* | kfreebsd*-gnu)
15264
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15265
hardcode_libdir_flag_spec_F77='-R$libdir'
15266
hardcode_direct_F77=yes
15267
hardcode_shlibpath_var_F77=no
15271
if test "$GCC" = yes; then
15272
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'
15274
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'
15276
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15277
hardcode_libdir_separator_F77=:
15278
hardcode_direct_F77=yes
15280
# hardcode_minus_L: Not really in the search PATH,
15281
# but as the default location of the library.
15282
hardcode_minus_L_F77=yes
15283
export_dynamic_flag_spec_F77='${wl}-E'
15287
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15288
case "$host_cpu" in
15290
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15293
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15297
case "$host_cpu" in
15299
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15302
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15306
if test "$with_gnu_ld" = no; then
15307
case "$host_cpu" in
15309
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15310
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15311
hardcode_libdir_separator_F77=:
15312
hardcode_direct_F77=no
15313
hardcode_shlibpath_var_F77=no
15316
hardcode_libdir_flag_spec_F77='-L$libdir'
15317
hardcode_direct_F77=no
15318
hardcode_shlibpath_var_F77=no
15320
# hardcode_minus_L: Not really in the search PATH,
15321
# but as the default location of the library.
15322
hardcode_minus_L_F77=yes
15325
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15326
hardcode_libdir_separator_F77=:
15327
hardcode_direct_F77=yes
15328
export_dynamic_flag_spec_F77='${wl}-E'
15330
# hardcode_minus_L: Not really in the search PATH,
15331
# but as the default location of the library.
15332
hardcode_minus_L_F77=yes
15338
irix5* | irix6* | nonstopux*)
15339
if test "$GCC" = yes; then
15340
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'
15342
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'
15343
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15345
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15346
hardcode_libdir_separator_F77=:
15347
link_all_deplibs_F77=yes
15351
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15352
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15354
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15356
hardcode_libdir_flag_spec_F77='-R$libdir'
15357
hardcode_direct_F77=yes
15358
hardcode_shlibpath_var_F77=no
15362
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15363
hardcode_direct_F77=yes
15364
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15365
hardcode_libdir_separator_F77=:
15366
hardcode_shlibpath_var_F77=no
15370
hardcode_direct_F77=yes
15371
hardcode_shlibpath_var_F77=no
15372
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15373
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15374
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15375
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15376
export_dynamic_flag_spec_F77='${wl}-E'
15379
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15380
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15381
hardcode_libdir_flag_spec_F77='-R$libdir'
15384
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15385
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15392
hardcode_libdir_flag_spec_F77='-L$libdir'
15393
hardcode_minus_L_F77=yes
15394
allow_undefined_flag_F77=unsupported
15395
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'
15396
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15400
if test "$GCC" = yes; then
15401
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15402
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'
15404
allow_undefined_flag_F77=' -expect_unresolved \*'
15405
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'
15407
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15408
hardcode_libdir_separator_F77=:
15411
osf4* | osf5*) # as osf3* with the addition of -msym flag
15412
if test "$GCC" = yes; then
15413
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15414
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'
15415
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15417
allow_undefined_flag_F77=' -expect_unresolved \*'
15418
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'
15419
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~
15420
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15422
# Both c and cxx compiler support -rpath directly
15423
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15425
hardcode_libdir_separator_F77=:
15429
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15430
hardcode_shlibpath_var_F77=no
15431
export_dynamic_flag_spec_F77='${wl}-Bexport'
15432
runpath_var=LD_RUN_PATH
15433
hardcode_runpath_var=yes
15437
no_undefined_flag_F77=' -z text'
15438
if test "$GCC" = yes; then
15439
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15440
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15441
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15443
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15444
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15445
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15447
hardcode_libdir_flag_spec_F77='-R$libdir'
15448
hardcode_shlibpath_var_F77=no
15450
solaris2.[0-5] | solaris2.[0-5].*) ;;
15451
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
15452
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15454
link_all_deplibs_F77=yes
15458
if test "x$host_vendor" = xsequent; then
15459
# Use $CC to link under sequent, because it throws in some extra .o
15460
# files that make .init and .fini sections work.
15461
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15463
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15465
hardcode_libdir_flag_spec_F77='-L$libdir'
15466
hardcode_direct_F77=yes
15467
hardcode_minus_L_F77=yes
15468
hardcode_shlibpath_var_F77=no
15472
case $host_vendor in
15474
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15475
hardcode_direct_F77=yes # is this really true???
15478
## LD is ld it makes a PLAMLIB
15479
## CC just makes a GrossModule.
15480
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15481
reload_cmds_F77='$CC -r -o $output$reload_objs'
15482
hardcode_direct_F77=no
15485
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15486
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15489
runpath_var='LD_RUN_PATH'
15490
hardcode_shlibpath_var_F77=no
15494
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15495
hardcode_shlibpath_var_F77=no
15496
export_dynamic_flag_spec_F77='-Bexport'
15500
if test -d /usr/nec; then
15501
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15502
hardcode_shlibpath_var_F77=no
15503
runpath_var=LD_RUN_PATH
15504
hardcode_runpath_var=yes
15510
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15511
hardcode_direct_F77=yes
15512
hardcode_minus_L_F77=no
15513
hardcode_shlibpath_var_F77=no
15514
hardcode_runpath_var=yes
15515
runpath_var=LD_RUN_PATH
15518
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15519
no_undefined_flag_F77='${wl}-z ${wl}text'
15520
if test "$GCC" = yes; then
15521
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15523
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15525
runpath_var='LD_RUN_PATH'
15526
hardcode_shlibpath_var_F77=no
15530
no_undefined_flag_F77=' -z text'
15531
# $CC -shared without GNU ld will not create a library from C++
15532
# object files and a static libstdc++, better avoid it by now
15533
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15534
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15535
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15536
hardcode_libdir_flag_spec_F77=
15537
hardcode_shlibpath_var_F77=no
15538
runpath_var='LD_RUN_PATH'
15542
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15543
hardcode_libdir_flag_spec_F77='-L$libdir'
15544
hardcode_shlibpath_var_F77=no
15553
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15554
echo "${ECHO_T}$ld_shlibs_F77" >&6
15555
test "$ld_shlibs_F77" = no && can_build_shared=no
15557
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15558
if test "$GCC" = yes; then
15559
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15563
# Do we need to explicitly link libc?
15565
case "x$archive_cmds_need_lc_F77" in
15567
# Assume -lc should be added
15568
archive_cmds_need_lc_F77=yes
15570
if test "$enable_shared" = yes && test "$GCC" = yes; then
15571
case $archive_cmds_F77 in
15573
# FIXME: we may have to deal with multi-command sequences.
15576
# Test whether the compiler implicitly links with -lc since on some
15577
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15578
# to ld, don't add -lc before -lgcc.
15579
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15580
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15582
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15584
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15585
(eval $ac_compile) 2>&5
15587
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588
(exit $ac_status); } 2>conftest.err; then
15591
libobjs=conftest.$ac_objext
15593
wl=$lt_prog_compiler_wl_F77
15599
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15600
allow_undefined_flag_F77=
15601
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15602
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15604
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605
(exit $ac_status); }
15607
archive_cmds_need_lc_F77=no
15609
archive_cmds_need_lc_F77=yes
15611
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15613
cat conftest.err 1>&5
15616
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15617
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15624
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15625
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15626
library_names_spec=
15627
libname_spec='lib$name'
15631
postuninstall_cmds=
15635
shlibpath_overrides_runpath=unknown
15637
dynamic_linker="$host_os ld.so"
15638
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15639
if test "$GCC" = yes; then
15640
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15641
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15642
# if the path contains ";" then we assume it to be the separator
15643
# otherwise default to the standard path separator (i.e. ":") - it is
15644
# assumed that no part of a normal pathname contains ";" but that should
15645
# okay in the real world where ";" in dirpaths is itself problematic.
15646
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15648
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15651
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15653
need_lib_prefix=unknown
15654
hardcode_into_libs=no
15656
# when you set need_version to no, make sure it does not cause -set_version
15657
# flags to be left without arguments
15658
need_version=unknown
15663
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15664
shlibpath_var=LIBPATH
15666
# AIX 3 has no versioning support, so we append a major version to the name.
15667
soname_spec='${libname}${release}${shared_ext}$major'
15674
hardcode_into_libs=yes
15675
if test "$host_cpu" = ia64; then
15676
# AIX 5 supports IA64
15677
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15678
shlibpath_var=LD_LIBRARY_PATH
15680
# With GCC up to 2.95.x, collect2 would create an import file
15681
# for dependence libraries. The import file would start with
15682
# the line `#! .'. This would cause the generated library to
15683
# depend on `.', always an invalid library. This was fixed in
15684
# development snapshots of GCC prior to 3.0.
15686
aix4 | aix4.[01] | aix4.[01].*)
15687
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15689
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15692
can_build_shared=no
15696
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15697
# soname into executable. Probably we can add versioning support to
15698
# collect2, so additional links can be useful in future.
15699
if test "$aix_use_runtimelinking" = yes; then
15700
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15701
# instead of lib<name>.a to let people know that these are not
15702
# typical AIX shared libraries.
15703
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15705
# We preserve .a as extension for shared libraries through AIX4.2
15706
# and later when we are not doing run time linking.
15707
library_names_spec='${libname}${release}.a $libname.a'
15708
soname_spec='${libname}${release}${shared_ext}$major'
15710
shlibpath_var=LIBPATH
15715
library_names_spec='$libname.ixlibrary $libname.a'
15716
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15717
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'
15721
library_names_spec='${libname}${shared_ext}'
15722
dynamic_linker="$host_os ld.so"
15723
shlibpath_var=LIBRARY_PATH
15729
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15730
soname_spec='${libname}${release}${shared_ext}$major'
15731
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15732
shlibpath_var=LD_LIBRARY_PATH
15733
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15734
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15735
# the default ld.so.conf also contains /usr/contrib/lib and
15736
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15737
# libtool to hard-code these into programs
15740
cygwin* | mingw* | pw32*)
15741
version_type=windows
15746
case $GCC,$host_os in
15747
yes,cygwin* | yes,mingw* | yes,pw32*)
15748
library_names_spec='$libname.dll.a'
15749
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15750
postinstall_cmds='base_file=`basename \${file}`~
15751
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15752
dldir=$destdir/`dirname \$dlpath`~
15753
test -d \$dldir || mkdir -p \$dldir~
15754
$install_prog $dir/$dlname \$dldir/$dlname'
15755
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15756
dlpath=$dir/\$dldll~
15758
shlibpath_overrides_runpath=yes
15762
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15763
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15764
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15767
# MinGW DLLs use traditional 'lib' prefix
15768
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15769
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15770
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15771
# It is most probably a Windows format PATH printed by
15772
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15773
# path with ; separators, and with drive letters. We can handle the
15774
# drive letters (cygwin fileutils understands them), so leave them,
15775
# especially as we might pass files found there to a mingw objdump,
15776
# which wouldn't understand a cygwinified path. Ahh.
15777
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15779
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15783
# pw32 DLLs use 'pw' prefix rather than 'lib'
15784
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15790
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15793
dynamic_linker='Win32 ld.exe'
15794
# FIXME: first we should search . and the directory the executable is in
15798
darwin* | rhapsody*)
15799
dynamic_linker="$host_os dyld"
15800
version_type=darwin
15803
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15804
soname_spec='${libname}${release}${major}$shared_ext'
15805
shlibpath_overrides_runpath=yes
15806
shlibpath_var=DYLD_LIBRARY_PATH
15807
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15808
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15809
if test "$GCC" = yes; then
15810
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"`
15812
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15814
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15821
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15822
soname_spec='${libname}${release}${shared_ext}$major'
15823
shlibpath_var=LD_LIBRARY_PATH
15834
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15835
soname_spec='${libname}${release}${shared_ext}$major'
15836
shlibpath_var=LD_LIBRARY_PATH
15837
shlibpath_overrides_runpath=no
15838
hardcode_into_libs=yes
15839
dynamic_linker='GNU ld.so'
15843
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15844
version_type=freebsd-$objformat
15845
case $version_type in
15847
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15852
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15856
shlibpath_var=LD_LIBRARY_PATH
15859
shlibpath_overrides_runpath=yes
15861
freebsd3.01* | freebsdelf3.01*)
15862
shlibpath_overrides_runpath=yes
15863
hardcode_into_libs=yes
15866
shlibpath_overrides_runpath=no
15867
hardcode_into_libs=yes
15876
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15877
soname_spec='${libname}${release}${shared_ext}$major'
15878
shlibpath_var=LD_LIBRARY_PATH
15879
hardcode_into_libs=yes
15882
hpux9* | hpux10* | hpux11*)
15883
# Give a soname corresponding to the major version so that dld.sl refuses to
15884
# link against other versions.
15888
case "$host_cpu" in
15891
hardcode_into_libs=yes
15892
dynamic_linker="$host_os dld.so"
15893
shlibpath_var=LD_LIBRARY_PATH
15894
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15895
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15896
soname_spec='${libname}${release}${shared_ext}$major'
15897
if test "X$HPUX_IA64_MODE" = X32; then
15898
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15900
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15902
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15906
hardcode_into_libs=yes
15907
dynamic_linker="$host_os dld.sl"
15908
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15909
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15910
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15911
soname_spec='${libname}${release}${shared_ext}$major'
15912
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15913
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15917
dynamic_linker="$host_os dld.sl"
15918
shlibpath_var=SHLIB_PATH
15919
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15920
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15921
soname_spec='${libname}${release}${shared_ext}$major'
15924
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15925
postinstall_cmds='chmod 555 $lib'
15928
irix5* | irix6* | nonstopux*)
15930
nonstopux*) version_type=nonstopux ;;
15932
if test "$lt_cv_prog_gnu_ld" = yes; then
15940
soname_spec='${libname}${release}${shared_ext}$major'
15941
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15943
irix5* | nonstopux*)
15944
libsuff= shlibsuff=
15947
case $LD in # libtool.m4 will add one of these switches to LD
15948
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15949
libsuff= shlibsuff= libmagic=32-bit;;
15950
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15951
libsuff=32 shlibsuff=N32 libmagic=N32;;
15952
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15953
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15954
*) libsuff= shlibsuff= libmagic=never-match;;
15958
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15959
shlibpath_overrides_runpath=no
15960
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15961
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15962
hardcode_into_libs=yes
15965
# No shared lib support for Linux oldld, aout, or coff.
15966
linux*oldld* | linux*aout* | linux*coff*)
15970
# This must be Linux ELF.
15975
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15976
soname_spec='${libname}${release}${shared_ext}$major'
15977
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15978
shlibpath_var=LD_LIBRARY_PATH
15979
shlibpath_overrides_runpath=no
15980
# This implies no fast_install, which is unacceptable.
15981
# Some rework will be needed to allow for fast_install
15982
# before this can be enabled.
15983
hardcode_into_libs=yes
15985
# find out which ABI we are using
15987
case "$host_cpu" in
15988
x86_64*|s390x*|powerpc64*)
15989
echo '#line 15989 "configure"' > conftest.$ac_ext
15990
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15991
(eval $ac_compile) 2>&5
15993
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994
(exit $ac_status); }; then
15995
case `/usr/bin/file conftest.$ac_objext` in
15998
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16006
# Append ld.so.conf contents to the search path
16007
if test -f /etc/ld.so.conf; then
16008
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16009
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16012
# We used to test for /lib/ld.so.1 and disable shared libraries on
16013
# powerpc, because MkLinux only supported shared libraries with the
16014
# GNU dynamic linker. Since this was broken with cross compilers,
16015
# most powerpc-linux boxes support dynamic linking these days and
16016
# people can always --disable-shared, the test was removed, and we
16017
# assume the GNU/Linux dynamic linker is in use.
16018
dynamic_linker='GNU/Linux ld.so'
16025
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16026
soname_spec='${libname}${release}${shared_ext}$major'
16027
shlibpath_var=LD_LIBRARY_PATH
16028
shlibpath_overrides_runpath=no
16029
hardcode_into_libs=yes
16030
dynamic_linker='GNU ld.so'
16037
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16038
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16039
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16040
dynamic_linker='NetBSD (a.out) ld.so'
16042
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16043
soname_spec='${libname}${release}${shared_ext}$major'
16044
dynamic_linker='NetBSD ld.elf_so'
16046
shlibpath_var=LD_LIBRARY_PATH
16047
shlibpath_overrides_runpath=yes
16048
hardcode_into_libs=yes
16053
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16054
shlibpath_var=LD_LIBRARY_PATH
16055
shlibpath_overrides_runpath=yes
16062
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16063
soname_spec='${libname}${release}${shared_ext}$major'
16064
shlibpath_var=LD_LIBRARY_PATH
16065
shlibpath_overrides_runpath=yes
16072
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16073
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16074
shlibpath_var=LD_LIBRARY_PATH
16075
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16077
openbsd2.[89] | openbsd2.[89].*)
16078
shlibpath_overrides_runpath=no
16081
shlibpath_overrides_runpath=yes
16085
shlibpath_overrides_runpath=yes
16090
libname_spec='$name'
16093
library_names_spec='$libname${shared_ext} $libname.a'
16094
dynamic_linker='OS/2 ld.exe'
16095
shlibpath_var=LIBPATH
16098
osf3* | osf4* | osf5*)
16102
soname_spec='${libname}${release}${shared_ext}$major'
16103
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16104
shlibpath_var=LD_LIBRARY_PATH
16105
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16106
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16111
soname_spec='${libname}${release}${shared_ext}$major'
16112
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16113
shlibpath_var=LD_LIBRARY_PATH
16120
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16121
soname_spec='${libname}${release}${shared_ext}$major'
16122
shlibpath_var=LD_LIBRARY_PATH
16123
shlibpath_overrides_runpath=yes
16124
hardcode_into_libs=yes
16125
# ldd complains unless libraries are executable
16126
postinstall_cmds='chmod +x $lib'
16131
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16132
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16133
shlibpath_var=LD_LIBRARY_PATH
16134
shlibpath_overrides_runpath=yes
16135
if test "$with_gnu_ld" = yes; then
16141
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16143
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16144
soname_spec='${libname}${release}${shared_ext}$major'
16145
shlibpath_var=LD_LIBRARY_PATH
16146
case $host_vendor in
16148
shlibpath_overrides_runpath=no
16150
export_dynamic_flag_spec='${wl}-Blargedynsym'
16151
runpath_var=LD_RUN_PATH
16159
shlibpath_overrides_runpath=no
16160
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16166
if test -d /usr/nec ;then
16168
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16169
soname_spec='$libname${shared_ext}.$major'
16170
shlibpath_var=LD_LIBRARY_PATH
16176
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16177
soname_spec='${libname}${release}${shared_ext}$major'
16178
shlibpath_var=LD_LIBRARY_PATH
16185
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16186
echo "${ECHO_T}$dynamic_linker" >&6
16187
test "$dynamic_linker" = no && can_build_shared=no
16189
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16190
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16191
hardcode_action_F77=
16192
if test -n "$hardcode_libdir_flag_spec_F77" || \
16193
test -n "$runpath_var_F77" || \
16194
test "X$hardcode_automatic_F77" = "Xyes" ; then
16196
# We can hardcode non-existant directories.
16197
if test "$hardcode_direct_F77" != no &&
16198
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16199
# have to relink, otherwise we might link with an installed library
16200
# when we should be linking with a yet-to-be-installed one
16201
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16202
test "$hardcode_minus_L_F77" != no; then
16203
# Linking always hardcodes the temporary library directory.
16204
hardcode_action_F77=relink
16206
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16207
hardcode_action_F77=immediate
16210
# We cannot hardcode anything, or else we can only hardcode existing
16212
hardcode_action_F77=unsupported
16214
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16215
echo "${ECHO_T}$hardcode_action_F77" >&6
16217
if test "$hardcode_action_F77" = relink; then
16218
# Fast installation is not supported
16219
enable_fast_install=no
16220
elif test "$shlibpath_overrides_runpath" = yes ||
16221
test "$enable_shared" = no; then
16222
# Fast installation is not necessary
16223
enable_fast_install=needless
16228
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16229
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16230
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16231
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16232
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16233
echo "$as_me:$LINENO: result: yes" >&5
16234
echo "${ECHO_T}yes" >&6
16236
# FIXME - insert some real tests, host_os isn't really good enough
16239
if test -n "$STRIP" ; then
16240
striplib="$STRIP -x"
16241
echo "$as_me:$LINENO: result: yes" >&5
16242
echo "${ECHO_T}yes" >&6
16244
echo "$as_me:$LINENO: result: no" >&5
16245
echo "${ECHO_T}no" >&6
16249
echo "$as_me:$LINENO: result: no" >&5
16250
echo "${ECHO_T}no" >&6
16257
# The else clause should only fire when bootstrapping the
16258
# libtool distribution, otherwise you forgot to ship ltmain.sh
16259
# with your package, and you will get complaints that there are
16260
# no rules to generate ltmain.sh.
16261
if test -f "$ltmain"; then
16262
# See if we are running on zsh, and set the options which allow our commands through
16263
# without removal of \ escapes.
16264
if test -n "${ZSH_VERSION+set}" ; then
16265
setopt NO_GLOB_SUBST
16267
# Now quote all the things that may contain metacharacters while being
16268
# careful not to overquote the AC_SUBSTed values. We take copies of the
16269
# variables and quote the copies for generation of the libtool script.
16270
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16272
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16273
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16274
deplibs_check_method reload_flag reload_cmds need_locks \
16275
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16276
lt_cv_sys_global_symbol_to_c_name_address \
16277
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16278
old_postinstall_cmds old_postuninstall_cmds \
16282
lt_prog_compiler_wl_F77 \
16283
lt_prog_compiler_pic_F77 \
16284
lt_prog_compiler_static_F77 \
16285
lt_prog_compiler_no_builtin_flag_F77 \
16286
export_dynamic_flag_spec_F77 \
16287
thread_safe_flag_spec_F77 \
16288
whole_archive_flag_spec_F77 \
16289
enable_shared_with_static_runtimes_F77 \
16290
old_archive_cmds_F77 \
16291
old_archive_from_new_cmds_F77 \
16292
predep_objects_F77 \
16293
postdep_objects_F77 \
16296
compiler_lib_search_path_F77 \
16298
archive_expsym_cmds_F77 \
16299
postinstall_cmds_F77 \
16300
postuninstall_cmds_F77 \
16301
old_archive_from_expsyms_cmds_F77 \
16302
allow_undefined_flag_F77 \
16303
no_undefined_flag_F77 \
16304
export_symbols_cmds_F77 \
16305
hardcode_libdir_flag_spec_F77 \
16306
hardcode_libdir_flag_spec_ld_F77 \
16307
hardcode_libdir_separator_F77 \
16308
hardcode_automatic_F77 \
16310
module_expsym_cmds_F77 \
16311
lt_cv_prog_compiler_c_o_F77 \
16312
exclude_expsyms_F77 \
16313
include_expsyms_F77; do
16316
old_archive_cmds_F77 | \
16317
old_archive_from_new_cmds_F77 | \
16318
archive_cmds_F77 | \
16319
archive_expsym_cmds_F77 | \
16320
module_cmds_F77 | \
16321
module_expsym_cmds_F77 | \
16322
old_archive_from_expsyms_cmds_F77 | \
16323
export_symbols_cmds_F77 | \
16324
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16325
postinstall_cmds | postuninstall_cmds | \
16326
old_postinstall_cmds | old_postuninstall_cmds | \
16327
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16328
# Double-quote double-evaled strings.
16329
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16332
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16338
*'\$0 --fallback-echo"')
16339
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16345
cat <<__EOF__ >> "$cfgfile"
16346
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16348
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16350
# Shell to use when invoking shell scripts.
16353
# Whether or not to build shared libraries.
16354
build_libtool_libs=$enable_shared
16356
# Whether or not to build static libraries.
16357
build_old_libs=$enable_static
16359
# Whether or not to add -lc for building shared libraries.
16360
build_libtool_need_lc=$archive_cmds_need_lc_F77
16362
# Whether or not to disallow shared libs when runtime libs are static
16363
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16365
# Whether or not to optimize for fast installation.
16366
fast_install=$enable_fast_install
16369
host_alias=$host_alias
16372
# An echo program that does not interpret backslashes.
16377
AR_FLAGS=$lt_AR_FLAGS
16382
# A language-specific compiler.
16383
CC=$lt_compiler_F77
16385
# Is the compiler the GNU C compiler?
16391
# The linker used to build libraries.
16394
# Whether we need hard or soft links.
16397
# A BSD-compatible nm program.
16400
# A symbol stripping program
16403
# Used to examine libraries when file_magic_cmd begins "file"
16404
MAGIC_CMD=$MAGIC_CMD
16406
# Used on cygwin: DLL creation program.
16409
# Used on cygwin: object dumper.
16412
# Used on cygwin: assembler.
16415
# The name of the directory that contains temporary libtool files.
16418
# How to create reloadable object files.
16419
reload_flag=$lt_reload_flag
16420
reload_cmds=$lt_reload_cmds
16422
# How to pass a linker flag through the compiler.
16423
wl=$lt_lt_prog_compiler_wl_F77
16425
# Object file suffix (normally "o").
16426
objext="$ac_objext"
16428
# Old archive suffix (normally "a").
16431
# Shared library suffix (normally ".so").
16432
shrext_cmds='$shrext_cmds'
16434
# Executable file suffix (normally "").
16437
# Additional compiler flags for building library objects.
16438
pic_flag=$lt_lt_prog_compiler_pic_F77
16441
# What is the maximum length of a command?
16442
max_cmd_len=$lt_cv_sys_max_cmd_len
16444
# Does compiler simultaneously support -c and -o options?
16445
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16447
# Must we lock files when doing compilation ?
16448
need_locks=$lt_need_locks
16450
# Do we need the lib prefix for modules?
16451
need_lib_prefix=$need_lib_prefix
16453
# Do we need a version for libraries?
16454
need_version=$need_version
16456
# Whether dlopen is supported.
16457
dlopen_support=$enable_dlopen
16459
# Whether dlopen of programs is supported.
16460
dlopen_self=$enable_dlopen_self
16462
# Whether dlopen of statically linked programs is supported.
16463
dlopen_self_static=$enable_dlopen_self_static
16465
# Compiler flag to prevent dynamic linking.
16466
link_static_flag=$lt_lt_prog_compiler_static_F77
16468
# Compiler flag to turn off builtin functions.
16469
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16471
# Compiler flag to allow reflexive dlopens.
16472
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16474
# Compiler flag to generate shared objects directly from archives.
16475
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16477
# Compiler flag to generate thread-safe objects.
16478
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16480
# Library versioning type.
16481
version_type=$version_type
16483
# Format of library name prefix.
16484
libname_spec=$lt_libname_spec
16486
# List of archive names. First name is the real one, the rest are links.
16487
# The last name is the one that the linker finds with -lNAME.
16488
library_names_spec=$lt_library_names_spec
16490
# The coded name of the library, if different from the real name.
16491
soname_spec=$lt_soname_spec
16493
# Commands used to build and install an old-style archive.
16495
old_archive_cmds=$lt_old_archive_cmds_F77
16496
old_postinstall_cmds=$lt_old_postinstall_cmds
16497
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16499
# Create an old-style archive from a shared archive.
16500
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16502
# Create a temporary old-style archive to link instead of a shared archive.
16503
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16505
# Commands used to build and install a shared archive.
16506
archive_cmds=$lt_archive_cmds_F77
16507
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16508
postinstall_cmds=$lt_postinstall_cmds
16509
postuninstall_cmds=$lt_postuninstall_cmds
16511
# Commands used to build a loadable module (assumed same as above if empty)
16512
module_cmds=$lt_module_cmds_F77
16513
module_expsym_cmds=$lt_module_expsym_cmds_F77
16515
# Commands to strip libraries.
16516
old_striplib=$lt_old_striplib
16517
striplib=$lt_striplib
16519
# Dependencies to place before the objects being linked to create a
16521
predep_objects=$lt_predep_objects_F77
16523
# Dependencies to place after the objects being linked to create a
16525
postdep_objects=$lt_postdep_objects_F77
16527
# Dependencies to place before the objects being linked to create a
16529
predeps=$lt_predeps_F77
16531
# Dependencies to place after the objects being linked to create a
16533
postdeps=$lt_postdeps_F77
16535
# The library search path used internally by the compiler when linking
16536
# a shared library.
16537
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16539
# Method to check whether dependent libraries are shared objects.
16540
deplibs_check_method=$lt_deplibs_check_method
16542
# Command to use when deplibs_check_method == file_magic.
16543
file_magic_cmd=$lt_file_magic_cmd
16545
# Flag that allows shared libraries with undefined symbols to be built.
16546
allow_undefined_flag=$lt_allow_undefined_flag_F77
16548
# Flag that forces no undefined symbols.
16549
no_undefined_flag=$lt_no_undefined_flag_F77
16551
# Commands used to finish a libtool library installation in a directory.
16552
finish_cmds=$lt_finish_cmds
16554
# Same as above, but a single script fragment to be evaled but not shown.
16555
finish_eval=$lt_finish_eval
16557
# Take the output of nm and produce a listing of raw symbols and C names.
16558
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16560
# Transform the output of nm in a proper C declaration
16561
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16563
# Transform the output of nm in a C name address pair
16564
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16566
# This is the shared library runtime path variable.
16567
runpath_var=$runpath_var
16569
# This is the shared library path variable.
16570
shlibpath_var=$shlibpath_var
16572
# Is shlibpath searched before the hard-coded library search path?
16573
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16575
# How to hardcode a shared library path into an executable.
16576
hardcode_action=$hardcode_action_F77
16578
# Whether we should hardcode library paths into libraries.
16579
hardcode_into_libs=$hardcode_into_libs
16581
# Flag to hardcode \$libdir into a binary during linking.
16582
# This must work even if \$libdir does not exist.
16583
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16585
# If ld is used when linking, flag to hardcode \$libdir into
16586
# a binary during linking. This must work even if \$libdir does
16588
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16590
# Whether we need a single -rpath flag with a separated argument.
16591
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16593
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16594
# resulting binary.
16595
hardcode_direct=$hardcode_direct_F77
16597
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16598
# resulting binary.
16599
hardcode_minus_L=$hardcode_minus_L_F77
16601
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16602
# the resulting binary.
16603
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16605
# Set to yes if building a shared library automatically hardcodes DIR into the library
16606
# and all subsequent libraries and executables linked against it.
16607
hardcode_automatic=$hardcode_automatic_F77
16609
# Variables whose values should be saved in libtool wrapper scripts and
16610
# restored at relink time.
16611
variables_saved_for_relink="$variables_saved_for_relink"
16613
# Whether libtool must link a program against all its dependency libraries.
16614
link_all_deplibs=$link_all_deplibs_F77
16616
# Compile-time system search path for libraries
16617
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16619
# Run-time system search path for libraries
16620
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16622
# Fix the shell variable \$srcfile for the compiler.
16623
fix_srcfile_path="$fix_srcfile_path_F77"
16625
# Set to yes if exported symbols are required.
16626
always_export_symbols=$always_export_symbols_F77
16628
# The commands to list exported symbols.
16629
export_symbols_cmds=$lt_export_symbols_cmds_F77
16631
# The commands to extract the exported symbol list from a shared archive.
16632
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16634
# Symbols that should not be listed in the preloaded symbols.
16635
exclude_expsyms=$lt_exclude_expsyms_F77
16637
# Symbols that must always be exported.
16638
include_expsyms=$lt_include_expsyms_F77
16640
# ### END LIBTOOL TAG CONFIG: $tagname
16646
# If there is no Makefile yet, we rely on a make rule to execute
16647
# `config.status --recheck' to rerun these tests and create the
16648
# libtool script then.
16649
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16650
if test -f "$ltmain_in"; then
16651
test -f Makefile && make "$ltmain"
16657
ac_cpp='$CPP $CPPFLAGS'
16658
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16659
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16660
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16670
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16674
# Source file extension for Java test sources.
16677
# Object file extension for compiled Java test sources.
16681
# Code to be used in simple compile tests
16682
lt_simple_compile_test_code="class foo {}\n"
16684
# Code to be used in simple link tests
16685
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16687
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16689
# If no C compiler was specified, use CC.
16692
# Allow CC to be a program name with arguments.
16696
# Allow CC to be a program name with arguments.
16702
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16703
archive_cmds_need_lc_GCJ=no
16706
lt_prog_compiler_no_builtin_flag_GCJ=
16708
if test "$GCC" = yes; then
16709
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16712
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16713
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16714
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16715
echo $ECHO_N "(cached) $ECHO_C" >&6
16717
lt_cv_prog_compiler_rtti_exceptions=no
16718
ac_outfile=conftest.$ac_objext
16719
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16720
lt_compiler_flag="-fno-rtti -fno-exceptions"
16721
# Insert the option either (1) after the last *FLAGS variable, or
16722
# (2) before a word containing "conftest.", or (3) at the end.
16723
# Note that $ac_compile itself does not contain backslashes and begins
16724
# with a dollar sign (not a hyphen), so the echo should work correctly.
16725
# The option is referenced via a variable to avoid confusing sed.
16726
lt_compile=`echo "$ac_compile" | $SED \
16727
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16728
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16729
-e 's:$: $lt_compiler_flag:'`
16730
(eval echo "\"\$as_me:16730: $lt_compile\"" >&5)
16731
(eval "$lt_compile" 2>conftest.err)
16733
cat conftest.err >&5
16734
echo "$as_me:16734: \$? = $ac_status" >&5
16735
if (exit $ac_status) && test -s "$ac_outfile"; then
16736
# The compiler can only warn and ignore the option if not recognized
16737
# So say no if there are warnings
16738
if test ! -s conftest.err; then
16739
lt_cv_prog_compiler_rtti_exceptions=yes
16745
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16746
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16748
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16749
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16756
lt_prog_compiler_wl_GCJ=
16757
lt_prog_compiler_pic_GCJ=
16758
lt_prog_compiler_static_GCJ=
16760
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16761
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16763
if test "$GCC" = yes; then
16764
lt_prog_compiler_wl_GCJ='-Wl,'
16765
lt_prog_compiler_static_GCJ='-static'
16769
# All AIX code is PIC.
16770
if test "$host_cpu" = ia64; then
16771
# AIX 5 now supports IA64 processor
16772
lt_prog_compiler_static_GCJ='-Bstatic'
16777
# FIXME: we need at least 68020 code to build shared libraries, but
16778
# adding the `-m68020' flag to GCC prevents building anything better,
16780
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16783
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16784
# PIC is the default for these OSes.
16787
mingw* | pw32* | os2*)
16788
# This hack is so that the source file can tell whether it is being
16789
# built for inclusion in a dll (and should export symbols for example).
16790
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16793
darwin* | rhapsody*)
16794
# PIC is the default on this platform
16795
# Common symbols not allowed in MH_DYLIB files
16796
lt_prog_compiler_pic_GCJ='-fno-common'
16800
# Just because we use GCC doesn't mean we suddenly get shared libraries
16801
# on systems that don't support them.
16802
lt_prog_compiler_can_build_shared_GCJ=no
16807
if test -d /usr/nec; then
16808
lt_prog_compiler_pic_GCJ=-Kconform_pic
16813
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16814
# not for PA HP-UX.
16815
case "$host_cpu" in
16820
lt_prog_compiler_pic_GCJ='-fPIC'
16826
lt_prog_compiler_pic_GCJ='-fPIC'
16830
# PORTME Check for flag to pass linker flags through the system compiler.
16833
lt_prog_compiler_wl_GCJ='-Wl,'
16834
if test "$host_cpu" = ia64; then
16835
# AIX 5 now supports IA64 processor
16836
lt_prog_compiler_static_GCJ='-Bstatic'
16838
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16842
# PIC is the default on this platform
16843
# Common symbols not allowed in MH_DYLIB files
16844
case "$cc_basename" in
16846
lt_prog_compiler_pic_GCJ='-qnocommon'
16847
lt_prog_compiler_wl_GCJ='-Wl,'
16852
mingw* | pw32* | os2*)
16853
# This hack is so that the source file can tell whether it is being
16854
# built for inclusion in a dll (and should export symbols for example).
16855
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16858
hpux9* | hpux10* | hpux11*)
16859
lt_prog_compiler_wl_GCJ='-Wl,'
16860
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16861
# not for PA HP-UX.
16862
case "$host_cpu" in
16867
lt_prog_compiler_pic_GCJ='+Z'
16870
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16871
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16874
irix5* | irix6* | nonstopux*)
16875
lt_prog_compiler_wl_GCJ='-Wl,'
16876
# PIC (with -KPIC) is the default.
16877
lt_prog_compiler_static_GCJ='-non_shared'
16881
lt_prog_compiler_pic_GCJ='-KPIC'
16882
lt_prog_compiler_static_GCJ='-Bstatic'
16888
lt_prog_compiler_wl_GCJ='-Wl,'
16889
lt_prog_compiler_pic_GCJ='-KPIC'
16890
lt_prog_compiler_static_GCJ='-static'
16893
lt_prog_compiler_wl_GCJ='-Wl,'
16894
# All Alpha code is PIC.
16895
lt_prog_compiler_static_GCJ='-non_shared'
16900
osf3* | osf4* | osf5*)
16901
lt_prog_compiler_wl_GCJ='-Wl,'
16902
# All OSF/1 code is PIC.
16903
lt_prog_compiler_static_GCJ='-non_shared'
16907
lt_prog_compiler_pic_GCJ='-Kpic'
16908
lt_prog_compiler_static_GCJ='-dn'
16912
lt_prog_compiler_wl_GCJ='-Wl,'
16913
lt_prog_compiler_pic_GCJ='-KPIC'
16914
lt_prog_compiler_static_GCJ='-Bstatic'
16918
lt_prog_compiler_wl_GCJ='-Qoption ld '
16919
lt_prog_compiler_pic_GCJ='-PIC'
16920
lt_prog_compiler_static_GCJ='-Bstatic'
16923
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16924
lt_prog_compiler_wl_GCJ='-Wl,'
16925
lt_prog_compiler_pic_GCJ='-KPIC'
16926
lt_prog_compiler_static_GCJ='-Bstatic'
16930
if test -d /usr/nec ;then
16931
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16932
lt_prog_compiler_static_GCJ='-Bstatic'
16937
lt_prog_compiler_pic_GCJ='-pic'
16938
lt_prog_compiler_static_GCJ='-Bstatic'
16942
lt_prog_compiler_can_build_shared_GCJ=no
16947
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16948
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16951
# Check to make sure the PIC flag actually works.
16953
if test -n "$lt_prog_compiler_pic_GCJ"; then
16955
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16956
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16957
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16958
echo $ECHO_N "(cached) $ECHO_C" >&6
16960
lt_prog_compiler_pic_works_GCJ=no
16961
ac_outfile=conftest.$ac_objext
16962
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16963
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16964
# Insert the option either (1) after the last *FLAGS variable, or
16965
# (2) before a word containing "conftest.", or (3) at the end.
16966
# Note that $ac_compile itself does not contain backslashes and begins
16967
# with a dollar sign (not a hyphen), so the echo should work correctly.
16968
# The option is referenced via a variable to avoid confusing sed.
16969
lt_compile=`echo "$ac_compile" | $SED \
16970
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16971
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16972
-e 's:$: $lt_compiler_flag:'`
16973
(eval echo "\"\$as_me:16973: $lt_compile\"" >&5)
16974
(eval "$lt_compile" 2>conftest.err)
16976
cat conftest.err >&5
16977
echo "$as_me:16977: \$? = $ac_status" >&5
16978
if (exit $ac_status) && test -s "$ac_outfile"; then
16979
# The compiler can only warn and ignore the option if not recognized
16980
# So say no if there are warnings
16981
if test ! -s conftest.err; then
16982
lt_prog_compiler_pic_works_GCJ=yes
16988
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16989
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16991
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16992
case $lt_prog_compiler_pic_GCJ in
16994
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16997
lt_prog_compiler_pic_GCJ=
16998
lt_prog_compiler_can_build_shared_GCJ=no
17003
# For platforms which do not support PIC, -DPIC is meaningless:
17005
lt_prog_compiler_pic_GCJ=
17008
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17012
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17013
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17014
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17015
echo $ECHO_N "(cached) $ECHO_C" >&6
17017
lt_cv_prog_compiler_c_o_GCJ=no
17018
$rm -r conftest 2>/dev/null
17022
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17024
lt_compiler_flag="-o out/conftest2.$ac_objext"
17025
# Insert the option either (1) after the last *FLAGS variable, or
17026
# (2) before a word containing "conftest.", or (3) at the end.
17027
# Note that $ac_compile itself does not contain backslashes and begins
17028
# with a dollar sign (not a hyphen), so the echo should work correctly.
17029
lt_compile=`echo "$ac_compile" | $SED \
17030
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17031
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17032
-e 's:$: $lt_compiler_flag:'`
17033
(eval echo "\"\$as_me:17033: $lt_compile\"" >&5)
17034
(eval "$lt_compile" 2>out/conftest.err)
17036
cat out/conftest.err >&5
17037
echo "$as_me:17037: \$? = $ac_status" >&5
17038
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17040
# The compiler can only warn and ignore the option if not recognized
17041
# So say no if there are warnings
17042
if test ! -s out/conftest.err; then
17043
lt_cv_prog_compiler_c_o_GCJ=yes
17048
# SGI C++ compiler will create directory out/ii_files/ for
17049
# template instantiation
17050
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17051
$rm out/* && rmdir out
17057
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17058
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17061
hard_links="nottested"
17062
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17063
# do not overwrite the value of need_locks provided by the user
17064
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17065
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17068
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17070
ln conftest.a conftest.b 2>&5 || hard_links=no
17071
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17072
echo "$as_me:$LINENO: result: $hard_links" >&5
17073
echo "${ECHO_T}$hard_links" >&6
17074
if test "$hard_links" = no; then
17075
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17076
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17083
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17084
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17087
allow_undefined_flag_GCJ=
17088
enable_shared_with_static_runtimes_GCJ=no
17090
archive_expsym_cmds_GCJ=
17091
old_archive_From_new_cmds_GCJ=
17092
old_archive_from_expsyms_cmds_GCJ=
17093
export_dynamic_flag_spec_GCJ=
17094
whole_archive_flag_spec_GCJ=
17095
thread_safe_flag_spec_GCJ=
17096
hardcode_libdir_flag_spec_GCJ=
17097
hardcode_libdir_flag_spec_ld_GCJ=
17098
hardcode_libdir_separator_GCJ=
17099
hardcode_direct_GCJ=no
17100
hardcode_minus_L_GCJ=no
17101
hardcode_shlibpath_var_GCJ=unsupported
17102
link_all_deplibs_GCJ=unknown
17103
hardcode_automatic_GCJ=no
17105
module_expsym_cmds_GCJ=
17106
always_export_symbols_GCJ=no
17107
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17108
# include_expsyms should be a list of space-separated symbols to be *always*
17109
# included in the symbol list
17110
include_expsyms_GCJ=
17111
# exclude_expsyms can be an extended regexp of symbols to exclude
17112
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17113
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17114
# as well as any symbol that contains `d'.
17115
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17116
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17117
# platforms (ab)use it in PIC code, but their linkers get confused if
17118
# the symbol is explicitly referenced. Since portable code cannot
17119
# rely on this symbol name, it's probably fine to never include it in
17120
# preloaded symbol tables.
17121
extract_expsyms_cmds=
17124
cygwin* | mingw* | pw32*)
17125
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17126
# When not using gcc, we currently assume that we are using
17127
# Microsoft Visual C++.
17128
if test "$GCC" != yes; then
17138
if test "$with_gnu_ld" = yes; then
17139
# If archive_cmds runs LD, not CC, wlarc should be empty
17142
# See if GNU ld supports shared libraries.
17144
aix3* | aix4* | aix5*)
17145
# On AIX/PPC, the GNU linker is very broken
17146
if test "$host_cpu" != ia64; then
17150
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17151
*** to be unable to reliably create shared libraries on AIX.
17152
*** Therefore, libtool is disabling shared libraries support. If you
17153
*** really care for shared libraries, you may want to modify your PATH
17154
*** so that a non-GNU linker is found, and then restart.
17161
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)'
17162
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17163
hardcode_minus_L_GCJ=yes
17165
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17166
# that the semantics of dynamic libraries on AmigaOS, at least up
17167
# to version 4, is to share data among multiple programs linked
17168
# with the same dynamic library. Since this doesn't match the
17169
# behavior of shared libraries on other platforms, we can't use
17175
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17176
allow_undefined_flag_GCJ=unsupported
17177
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17178
# support --undefined. This deserves some investigation. FIXME
17179
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17185
cygwin* | mingw* | pw32*)
17186
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17187
# as there is no search path for DLLs.
17188
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17189
allow_undefined_flag_GCJ=unsupported
17190
always_export_symbols_GCJ=no
17191
enable_shared_with_static_runtimes_GCJ=yes
17192
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17194
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17195
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17196
# If the export-symbols file already is a .def file (1st line
17197
# is EXPORTS), use it as is; otherwise, prepend...
17198
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17199
cp $export_symbols $output_objdir/$soname.def;
17201
echo EXPORTS > $output_objdir/$soname.def;
17202
cat $export_symbols >> $output_objdir/$soname.def;
17204
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17211
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17212
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17215
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17216
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17221
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17225
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17226
*** create shared libraries on Solaris systems. Therefore, libtool
17227
*** is disabling shared libraries support. We urge you to upgrade GNU
17228
*** binutils to release 2.9.1 or newer. Another option is to modify
17229
*** your PATH or compiler configuration so that the native linker is
17230
*** used, and then restart.
17233
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17234
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17235
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17242
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17244
hardcode_direct_GCJ=yes
17245
hardcode_shlibpath_var_GCJ=no
17249
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17250
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17251
archive_cmds_GCJ="$tmp_archive_cmds"
17252
supports_anon_versioning=no
17253
case `$LD -v 2>/dev/null` in
17254
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17255
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17256
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17257
*\ 2.11.*) ;; # other 2.11 versions
17258
*) supports_anon_versioning=yes ;;
17260
if test $supports_anon_versioning = yes; then
17261
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17262
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17263
$echo "local: *; };" >> $output_objdir/$libname.ver~
17264
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17266
archive_expsym_cmds_GCJ="$tmp_archive_cmds"
17274
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17275
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17276
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17283
if test "$ld_shlibs_GCJ" = yes; then
17284
runpath_var=LD_RUN_PATH
17285
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17286
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17287
# ancient GNU ld didn't support --whole-archive et. al.
17288
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17289
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17291
whole_archive_flag_spec_GCJ=
17295
# PORTME fill in a description of your system's linker (not GNU ld)
17298
allow_undefined_flag_GCJ=unsupported
17299
always_export_symbols_GCJ=yes
17300
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'
17301
# Note: this linker hardcodes the directories in LIBPATH if there
17302
# are no directories specified by -L.
17303
hardcode_minus_L_GCJ=yes
17304
if test "$GCC" = yes && test -z "$link_static_flag"; then
17305
# Neither direct hardcoding nor static linking is supported with a
17307
hardcode_direct_GCJ=unsupported
17312
if test "$host_cpu" = ia64; then
17313
# On IA64, the linker does run time linking by default, so we don't
17314
# have to do anything special.
17315
aix_use_runtimelinking=no
17316
exp_sym_flag='-Bexport'
17319
# If we're using GNU nm, then we don't want the "-C" option.
17320
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17321
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17322
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'
17324
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'
17326
aix_use_runtimelinking=no
17328
# Test if we are trying to use run time linking or normal
17329
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17330
# need to do runtime linking.
17331
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17332
for ld_flag in $LDFLAGS; do
17333
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17334
aix_use_runtimelinking=yes
17340
exp_sym_flag='-bexport'
17341
no_entry_flag='-bnoentry'
17344
# When large executables or shared objects are built, AIX ld can
17345
# have problems creating the table of contents. If linking a library
17346
# or program results in "error TOC overflow" add -mminimal-toc to
17347
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17348
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17350
archive_cmds_GCJ=''
17351
hardcode_direct_GCJ=yes
17352
hardcode_libdir_separator_GCJ=':'
17353
link_all_deplibs_GCJ=yes
17355
if test "$GCC" = yes; then
17356
case $host_os in aix4.012|aix4.012.*)
17357
# We only want to do this on AIX 4.2 and lower, the check
17358
# below for broken collect2 doesn't work under 4.3+
17359
collect2name=`${CC} -print-prog-name=collect2`
17360
if test -f "$collect2name" && \
17361
strings "$collect2name" | grep resolve_lib_name >/dev/null
17363
# We have reworked collect2
17364
hardcode_direct_GCJ=yes
17366
# We have old collect2
17367
hardcode_direct_GCJ=unsupported
17368
# It fails to find uninstalled libraries when the uninstalled
17369
# path is not listed in the libpath. Setting hardcode_minus_L
17370
# to unsupported forces relinking
17371
hardcode_minus_L_GCJ=yes
17372
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17373
hardcode_libdir_separator_GCJ=
17376
shared_flag='-shared'
17379
if test "$host_cpu" = ia64; then
17380
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17381
# chokes on -Wl,-G. The following line is correct:
17384
if test "$aix_use_runtimelinking" = yes; then
17385
shared_flag='${wl}-G'
17387
shared_flag='${wl}-bM:SRE'
17392
# It seems that -bexpall does not export symbols beginning with
17393
# underscore (_), so it is better to generate a list of symbols to export.
17394
always_export_symbols_GCJ=yes
17395
if test "$aix_use_runtimelinking" = yes; then
17396
# Warning - without using the other runtime loading flags (-brtl),
17397
# -berok will link without error, but may produce a broken library.
17398
allow_undefined_flag_GCJ='-berok'
17399
# Determine the default libpath from the value encoded in an empty executable.
17400
cat >conftest.$ac_ext <<_ACEOF
17403
cat confdefs.h >>conftest.$ac_ext
17404
cat >>conftest.$ac_ext <<_ACEOF
17405
/* end confdefs.h. */
17415
rm -f conftest.$ac_objext conftest$ac_exeext
17416
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17417
(eval $ac_link) 2>conftest.er1
17419
grep -v '^ *+' conftest.er1 >conftest.err
17421
cat conftest.err >&5
17422
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423
(exit $ac_status); } &&
17424
{ ac_try='test -z "$ac_c_werror_flag"
17425
|| test ! -s conftest.err'
17426
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17427
(eval $ac_try) 2>&5
17429
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430
(exit $ac_status); }; } &&
17431
{ ac_try='test -s conftest$ac_exeext'
17432
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433
(eval $ac_try) 2>&5
17435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436
(exit $ac_status); }; }; then
17438
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17440
# Check for a 64-bit object if we didn't find anything.
17441
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; }
17444
echo "$as_me: failed program was:" >&5
17445
sed 's/^/| /' conftest.$ac_ext >&5
17448
rm -f conftest.err conftest.$ac_objext \
17449
conftest$ac_exeext conftest.$ac_ext
17450
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17452
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17453
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17455
if test "$host_cpu" = ia64; then
17456
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17457
allow_undefined_flag_GCJ="-z nodefs"
17458
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17460
# Determine the default libpath from the value encoded in an empty executable.
17461
cat >conftest.$ac_ext <<_ACEOF
17464
cat confdefs.h >>conftest.$ac_ext
17465
cat >>conftest.$ac_ext <<_ACEOF
17466
/* end confdefs.h. */
17476
rm -f conftest.$ac_objext conftest$ac_exeext
17477
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17478
(eval $ac_link) 2>conftest.er1
17480
grep -v '^ *+' conftest.er1 >conftest.err
17482
cat conftest.err >&5
17483
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484
(exit $ac_status); } &&
17485
{ ac_try='test -z "$ac_c_werror_flag"
17486
|| test ! -s conftest.err'
17487
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17488
(eval $ac_try) 2>&5
17490
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491
(exit $ac_status); }; } &&
17492
{ ac_try='test -s conftest$ac_exeext'
17493
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494
(eval $ac_try) 2>&5
17496
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497
(exit $ac_status); }; }; then
17499
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17501
# Check for a 64-bit object if we didn't find anything.
17502
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; }
17505
echo "$as_me: failed program was:" >&5
17506
sed 's/^/| /' conftest.$ac_ext >&5
17509
rm -f conftest.err conftest.$ac_objext \
17510
conftest$ac_exeext conftest.$ac_ext
17511
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17513
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17514
# Warning - without using the other run time loading flags,
17515
# -berok will link without error, but may produce a broken library.
17516
no_undefined_flag_GCJ=' ${wl}-bernotok'
17517
allow_undefined_flag_GCJ=' ${wl}-berok'
17518
# -bexpall does not export symbols beginning with underscore (_)
17519
always_export_symbols_GCJ=yes
17520
# Exported symbols can be pulled into shared objects from archives
17521
whole_archive_flag_spec_GCJ=' '
17522
archive_cmds_need_lc_GCJ=yes
17523
# This is similar to how AIX traditionally builds it's shared libraries.
17524
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17530
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)'
17531
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17532
hardcode_minus_L_GCJ=yes
17533
# see comment about different semantics on the GNU ld section
17538
export_dynamic_flag_spec_GCJ=-rdynamic
17541
cygwin* | mingw* | pw32*)
17542
# When not using gcc, we currently assume that we are using
17543
# Microsoft Visual C++.
17544
# hardcode_libdir_flag_spec is actually meaningless, as there is
17545
# no search path for DLLs.
17546
hardcode_libdir_flag_spec_GCJ=' '
17547
allow_undefined_flag_GCJ=unsupported
17548
# Tell ltmain to make .lib files, not .a files.
17550
# Tell ltmain to make .dll files, not .so files.
17552
# FIXME: Setting linknames here is a bad hack.
17553
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17554
# The linker will automatically build a .lib file if we build a DLL.
17555
old_archive_From_new_cmds_GCJ='true'
17556
# FIXME: Should let the user specify the lib program.
17557
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17558
fix_srcfile_path='`cygpath -w "$srcfile"`'
17559
enable_shared_with_static_runtimes_GCJ=yes
17562
darwin* | rhapsody*)
17564
rhapsody* | darwin1.[012])
17565
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17568
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17569
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17571
case ${MACOSX_DEPLOYMENT_TARGET} in
17573
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17576
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17582
archive_cmds_need_lc_GCJ=no
17583
hardcode_direct_GCJ=no
17584
hardcode_automatic_GCJ=yes
17585
hardcode_shlibpath_var_GCJ=unsupported
17586
whole_archive_flag_spec_GCJ=''
17587
link_all_deplibs_GCJ=yes
17588
if test "$GCC" = yes ; then
17589
output_verbose_link_cmd='echo'
17590
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17591
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17592
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17593
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}'
17594
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}'
17596
case "$cc_basename" in
17598
output_verbose_link_cmd='echo'
17599
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17600
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17601
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17602
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}'
17603
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}'
17613
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17614
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17615
hardcode_shlibpath_var_GCJ=no
17622
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17623
# support. Future versions do this automatically, but an explicit c++rt0.o
17624
# does not break anything, and helps significantly (at the cost of a little
17627
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17628
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17629
hardcode_direct_GCJ=yes
17630
hardcode_shlibpath_var_GCJ=no
17633
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17635
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17636
hardcode_direct_GCJ=yes
17637
hardcode_minus_L_GCJ=yes
17638
hardcode_shlibpath_var_GCJ=no
17641
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17642
freebsd* | kfreebsd*-gnu)
17643
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17644
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17645
hardcode_direct_GCJ=yes
17646
hardcode_shlibpath_var_GCJ=no
17650
if test "$GCC" = yes; then
17651
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'
17653
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'
17655
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17656
hardcode_libdir_separator_GCJ=:
17657
hardcode_direct_GCJ=yes
17659
# hardcode_minus_L: Not really in the search PATH,
17660
# but as the default location of the library.
17661
hardcode_minus_L_GCJ=yes
17662
export_dynamic_flag_spec_GCJ='${wl}-E'
17666
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17667
case "$host_cpu" in
17669
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17672
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17676
case "$host_cpu" in
17678
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17681
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17685
if test "$with_gnu_ld" = no; then
17686
case "$host_cpu" in
17688
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17689
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17690
hardcode_libdir_separator_GCJ=:
17691
hardcode_direct_GCJ=no
17692
hardcode_shlibpath_var_GCJ=no
17695
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17696
hardcode_direct_GCJ=no
17697
hardcode_shlibpath_var_GCJ=no
17699
# hardcode_minus_L: Not really in the search PATH,
17700
# but as the default location of the library.
17701
hardcode_minus_L_GCJ=yes
17704
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17705
hardcode_libdir_separator_GCJ=:
17706
hardcode_direct_GCJ=yes
17707
export_dynamic_flag_spec_GCJ='${wl}-E'
17709
# hardcode_minus_L: Not really in the search PATH,
17710
# but as the default location of the library.
17711
hardcode_minus_L_GCJ=yes
17717
irix5* | irix6* | nonstopux*)
17718
if test "$GCC" = yes; then
17719
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'
17721
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'
17722
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17724
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17725
hardcode_libdir_separator_GCJ=:
17726
link_all_deplibs_GCJ=yes
17730
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17731
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17733
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17735
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17736
hardcode_direct_GCJ=yes
17737
hardcode_shlibpath_var_GCJ=no
17741
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17742
hardcode_direct_GCJ=yes
17743
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17744
hardcode_libdir_separator_GCJ=:
17745
hardcode_shlibpath_var_GCJ=no
17749
hardcode_direct_GCJ=yes
17750
hardcode_shlibpath_var_GCJ=no
17751
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17752
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17753
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17754
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17755
export_dynamic_flag_spec_GCJ='${wl}-E'
17758
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17759
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17760
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17763
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17764
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17771
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17772
hardcode_minus_L_GCJ=yes
17773
allow_undefined_flag_GCJ=unsupported
17774
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'
17775
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17779
if test "$GCC" = yes; then
17780
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17781
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'
17783
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17784
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'
17786
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17787
hardcode_libdir_separator_GCJ=:
17790
osf4* | osf5*) # as osf3* with the addition of -msym flag
17791
if test "$GCC" = yes; then
17792
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17793
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'
17794
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17796
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17797
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'
17798
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~
17799
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17801
# Both c and cxx compiler support -rpath directly
17802
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17804
hardcode_libdir_separator_GCJ=:
17808
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17809
hardcode_shlibpath_var_GCJ=no
17810
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17811
runpath_var=LD_RUN_PATH
17812
hardcode_runpath_var=yes
17816
no_undefined_flag_GCJ=' -z text'
17817
if test "$GCC" = yes; then
17818
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17819
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17820
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17822
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17823
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17824
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17826
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17827
hardcode_shlibpath_var_GCJ=no
17829
solaris2.[0-5] | solaris2.[0-5].*) ;;
17830
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
17831
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17833
link_all_deplibs_GCJ=yes
17837
if test "x$host_vendor" = xsequent; then
17838
# Use $CC to link under sequent, because it throws in some extra .o
17839
# files that make .init and .fini sections work.
17840
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17842
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17844
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17845
hardcode_direct_GCJ=yes
17846
hardcode_minus_L_GCJ=yes
17847
hardcode_shlibpath_var_GCJ=no
17851
case $host_vendor in
17853
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17854
hardcode_direct_GCJ=yes # is this really true???
17857
## LD is ld it makes a PLAMLIB
17858
## CC just makes a GrossModule.
17859
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17860
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17861
hardcode_direct_GCJ=no
17864
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17865
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17868
runpath_var='LD_RUN_PATH'
17869
hardcode_shlibpath_var_GCJ=no
17873
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17874
hardcode_shlibpath_var_GCJ=no
17875
export_dynamic_flag_spec_GCJ='-Bexport'
17879
if test -d /usr/nec; then
17880
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17881
hardcode_shlibpath_var_GCJ=no
17882
runpath_var=LD_RUN_PATH
17883
hardcode_runpath_var=yes
17889
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17890
hardcode_direct_GCJ=yes
17891
hardcode_minus_L_GCJ=no
17892
hardcode_shlibpath_var_GCJ=no
17893
hardcode_runpath_var=yes
17894
runpath_var=LD_RUN_PATH
17897
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17898
no_undefined_flag_GCJ='${wl}-z ${wl}text'
17899
if test "$GCC" = yes; then
17900
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17902
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17904
runpath_var='LD_RUN_PATH'
17905
hardcode_shlibpath_var_GCJ=no
17909
no_undefined_flag_GCJ=' -z text'
17910
# $CC -shared without GNU ld will not create a library from C++
17911
# object files and a static libstdc++, better avoid it by now
17912
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17913
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17914
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17915
hardcode_libdir_flag_spec_GCJ=
17916
hardcode_shlibpath_var_GCJ=no
17917
runpath_var='LD_RUN_PATH'
17921
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17922
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17923
hardcode_shlibpath_var_GCJ=no
17932
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17933
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17934
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17936
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17937
if test "$GCC" = yes; then
17938
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17942
# Do we need to explicitly link libc?
17944
case "x$archive_cmds_need_lc_GCJ" in
17946
# Assume -lc should be added
17947
archive_cmds_need_lc_GCJ=yes
17949
if test "$enable_shared" = yes && test "$GCC" = yes; then
17950
case $archive_cmds_GCJ in
17952
# FIXME: we may have to deal with multi-command sequences.
17955
# Test whether the compiler implicitly links with -lc since on some
17956
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17957
# to ld, don't add -lc before -lgcc.
17958
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17959
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17961
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17963
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17964
(eval $ac_compile) 2>&5
17966
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967
(exit $ac_status); } 2>conftest.err; then
17970
libobjs=conftest.$ac_objext
17972
wl=$lt_prog_compiler_wl_GCJ
17978
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17979
allow_undefined_flag_GCJ=
17980
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17981
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17983
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984
(exit $ac_status); }
17986
archive_cmds_need_lc_GCJ=no
17988
archive_cmds_need_lc_GCJ=yes
17990
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17992
cat conftest.err 1>&5
17995
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17996
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18003
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18004
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18005
library_names_spec=
18006
libname_spec='lib$name'
18010
postuninstall_cmds=
18014
shlibpath_overrides_runpath=unknown
18016
dynamic_linker="$host_os ld.so"
18017
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18018
if test "$GCC" = yes; then
18019
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18020
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18021
# if the path contains ";" then we assume it to be the separator
18022
# otherwise default to the standard path separator (i.e. ":") - it is
18023
# assumed that no part of a normal pathname contains ";" but that should
18024
# okay in the real world where ";" in dirpaths is itself problematic.
18025
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18027
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18030
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18032
need_lib_prefix=unknown
18033
hardcode_into_libs=no
18035
# when you set need_version to no, make sure it does not cause -set_version
18036
# flags to be left without arguments
18037
need_version=unknown
18042
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18043
shlibpath_var=LIBPATH
18045
# AIX 3 has no versioning support, so we append a major version to the name.
18046
soname_spec='${libname}${release}${shared_ext}$major'
18053
hardcode_into_libs=yes
18054
if test "$host_cpu" = ia64; then
18055
# AIX 5 supports IA64
18056
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18057
shlibpath_var=LD_LIBRARY_PATH
18059
# With GCC up to 2.95.x, collect2 would create an import file
18060
# for dependence libraries. The import file would start with
18061
# the line `#! .'. This would cause the generated library to
18062
# depend on `.', always an invalid library. This was fixed in
18063
# development snapshots of GCC prior to 3.0.
18065
aix4 | aix4.[01] | aix4.[01].*)
18066
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18068
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18071
can_build_shared=no
18075
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18076
# soname into executable. Probably we can add versioning support to
18077
# collect2, so additional links can be useful in future.
18078
if test "$aix_use_runtimelinking" = yes; then
18079
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18080
# instead of lib<name>.a to let people know that these are not
18081
# typical AIX shared libraries.
18082
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18084
# We preserve .a as extension for shared libraries through AIX4.2
18085
# and later when we are not doing run time linking.
18086
library_names_spec='${libname}${release}.a $libname.a'
18087
soname_spec='${libname}${release}${shared_ext}$major'
18089
shlibpath_var=LIBPATH
18094
library_names_spec='$libname.ixlibrary $libname.a'
18095
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18096
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'
18100
library_names_spec='${libname}${shared_ext}'
18101
dynamic_linker="$host_os ld.so"
18102
shlibpath_var=LIBRARY_PATH
18108
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18109
soname_spec='${libname}${release}${shared_ext}$major'
18110
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18111
shlibpath_var=LD_LIBRARY_PATH
18112
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18113
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18114
# the default ld.so.conf also contains /usr/contrib/lib and
18115
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18116
# libtool to hard-code these into programs
18119
cygwin* | mingw* | pw32*)
18120
version_type=windows
18125
case $GCC,$host_os in
18126
yes,cygwin* | yes,mingw* | yes,pw32*)
18127
library_names_spec='$libname.dll.a'
18128
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18129
postinstall_cmds='base_file=`basename \${file}`~
18130
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18131
dldir=$destdir/`dirname \$dlpath`~
18132
test -d \$dldir || mkdir -p \$dldir~
18133
$install_prog $dir/$dlname \$dldir/$dlname'
18134
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18135
dlpath=$dir/\$dldll~
18137
shlibpath_overrides_runpath=yes
18141
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18142
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18143
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18146
# MinGW DLLs use traditional 'lib' prefix
18147
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18148
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18149
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18150
# It is most probably a Windows format PATH printed by
18151
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18152
# path with ; separators, and with drive letters. We can handle the
18153
# drive letters (cygwin fileutils understands them), so leave them,
18154
# especially as we might pass files found there to a mingw objdump,
18155
# which wouldn't understand a cygwinified path. Ahh.
18156
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18158
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18162
# pw32 DLLs use 'pw' prefix rather than 'lib'
18163
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18169
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18172
dynamic_linker='Win32 ld.exe'
18173
# FIXME: first we should search . and the directory the executable is in
18177
darwin* | rhapsody*)
18178
dynamic_linker="$host_os dyld"
18179
version_type=darwin
18182
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18183
soname_spec='${libname}${release}${major}$shared_ext'
18184
shlibpath_overrides_runpath=yes
18185
shlibpath_var=DYLD_LIBRARY_PATH
18186
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18187
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18188
if test "$GCC" = yes; then
18189
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"`
18191
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18193
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18200
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18201
soname_spec='${libname}${release}${shared_ext}$major'
18202
shlibpath_var=LD_LIBRARY_PATH
18213
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18214
soname_spec='${libname}${release}${shared_ext}$major'
18215
shlibpath_var=LD_LIBRARY_PATH
18216
shlibpath_overrides_runpath=no
18217
hardcode_into_libs=yes
18218
dynamic_linker='GNU ld.so'
18222
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18223
version_type=freebsd-$objformat
18224
case $version_type in
18226
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18231
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18235
shlibpath_var=LD_LIBRARY_PATH
18238
shlibpath_overrides_runpath=yes
18240
freebsd3.01* | freebsdelf3.01*)
18241
shlibpath_overrides_runpath=yes
18242
hardcode_into_libs=yes
18245
shlibpath_overrides_runpath=no
18246
hardcode_into_libs=yes
18255
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18256
soname_spec='${libname}${release}${shared_ext}$major'
18257
shlibpath_var=LD_LIBRARY_PATH
18258
hardcode_into_libs=yes
18261
hpux9* | hpux10* | hpux11*)
18262
# Give a soname corresponding to the major version so that dld.sl refuses to
18263
# link against other versions.
18267
case "$host_cpu" in
18270
hardcode_into_libs=yes
18271
dynamic_linker="$host_os dld.so"
18272
shlibpath_var=LD_LIBRARY_PATH
18273
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18274
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18275
soname_spec='${libname}${release}${shared_ext}$major'
18276
if test "X$HPUX_IA64_MODE" = X32; then
18277
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18279
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18281
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18285
hardcode_into_libs=yes
18286
dynamic_linker="$host_os dld.sl"
18287
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18288
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18289
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18290
soname_spec='${libname}${release}${shared_ext}$major'
18291
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18292
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18296
dynamic_linker="$host_os dld.sl"
18297
shlibpath_var=SHLIB_PATH
18298
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18299
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18300
soname_spec='${libname}${release}${shared_ext}$major'
18303
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18304
postinstall_cmds='chmod 555 $lib'
18307
irix5* | irix6* | nonstopux*)
18309
nonstopux*) version_type=nonstopux ;;
18311
if test "$lt_cv_prog_gnu_ld" = yes; then
18319
soname_spec='${libname}${release}${shared_ext}$major'
18320
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18322
irix5* | nonstopux*)
18323
libsuff= shlibsuff=
18326
case $LD in # libtool.m4 will add one of these switches to LD
18327
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18328
libsuff= shlibsuff= libmagic=32-bit;;
18329
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18330
libsuff=32 shlibsuff=N32 libmagic=N32;;
18331
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18332
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18333
*) libsuff= shlibsuff= libmagic=never-match;;
18337
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18338
shlibpath_overrides_runpath=no
18339
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18340
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18341
hardcode_into_libs=yes
18344
# No shared lib support for Linux oldld, aout, or coff.
18345
linux*oldld* | linux*aout* | linux*coff*)
18349
# This must be Linux ELF.
18354
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18355
soname_spec='${libname}${release}${shared_ext}$major'
18356
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18357
shlibpath_var=LD_LIBRARY_PATH
18358
shlibpath_overrides_runpath=no
18359
# This implies no fast_install, which is unacceptable.
18360
# Some rework will be needed to allow for fast_install
18361
# before this can be enabled.
18362
hardcode_into_libs=yes
18364
# find out which ABI we are using
18366
case "$host_cpu" in
18367
x86_64*|s390x*|powerpc64*)
18368
echo '#line 18368 "configure"' > conftest.$ac_ext
18369
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18370
(eval $ac_compile) 2>&5
18372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373
(exit $ac_status); }; then
18374
case `/usr/bin/file conftest.$ac_objext` in
18377
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18385
# Append ld.so.conf contents to the search path
18386
if test -f /etc/ld.so.conf; then
18387
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18388
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18391
# We used to test for /lib/ld.so.1 and disable shared libraries on
18392
# powerpc, because MkLinux only supported shared libraries with the
18393
# GNU dynamic linker. Since this was broken with cross compilers,
18394
# most powerpc-linux boxes support dynamic linking these days and
18395
# people can always --disable-shared, the test was removed, and we
18396
# assume the GNU/Linux dynamic linker is in use.
18397
dynamic_linker='GNU/Linux ld.so'
18404
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18405
soname_spec='${libname}${release}${shared_ext}$major'
18406
shlibpath_var=LD_LIBRARY_PATH
18407
shlibpath_overrides_runpath=no
18408
hardcode_into_libs=yes
18409
dynamic_linker='GNU ld.so'
18416
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18417
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18418
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18419
dynamic_linker='NetBSD (a.out) ld.so'
18421
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18422
soname_spec='${libname}${release}${shared_ext}$major'
18423
dynamic_linker='NetBSD ld.elf_so'
18425
shlibpath_var=LD_LIBRARY_PATH
18426
shlibpath_overrides_runpath=yes
18427
hardcode_into_libs=yes
18432
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18433
shlibpath_var=LD_LIBRARY_PATH
18434
shlibpath_overrides_runpath=yes
18441
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18442
soname_spec='${libname}${release}${shared_ext}$major'
18443
shlibpath_var=LD_LIBRARY_PATH
18444
shlibpath_overrides_runpath=yes
18451
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18452
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18453
shlibpath_var=LD_LIBRARY_PATH
18454
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18456
openbsd2.[89] | openbsd2.[89].*)
18457
shlibpath_overrides_runpath=no
18460
shlibpath_overrides_runpath=yes
18464
shlibpath_overrides_runpath=yes
18469
libname_spec='$name'
18472
library_names_spec='$libname${shared_ext} $libname.a'
18473
dynamic_linker='OS/2 ld.exe'
18474
shlibpath_var=LIBPATH
18477
osf3* | osf4* | osf5*)
18481
soname_spec='${libname}${release}${shared_ext}$major'
18482
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18483
shlibpath_var=LD_LIBRARY_PATH
18484
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18485
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18490
soname_spec='${libname}${release}${shared_ext}$major'
18491
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18492
shlibpath_var=LD_LIBRARY_PATH
18499
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18500
soname_spec='${libname}${release}${shared_ext}$major'
18501
shlibpath_var=LD_LIBRARY_PATH
18502
shlibpath_overrides_runpath=yes
18503
hardcode_into_libs=yes
18504
# ldd complains unless libraries are executable
18505
postinstall_cmds='chmod +x $lib'
18510
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18511
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18512
shlibpath_var=LD_LIBRARY_PATH
18513
shlibpath_overrides_runpath=yes
18514
if test "$with_gnu_ld" = yes; then
18520
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18522
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18523
soname_spec='${libname}${release}${shared_ext}$major'
18524
shlibpath_var=LD_LIBRARY_PATH
18525
case $host_vendor in
18527
shlibpath_overrides_runpath=no
18529
export_dynamic_flag_spec='${wl}-Blargedynsym'
18530
runpath_var=LD_RUN_PATH
18538
shlibpath_overrides_runpath=no
18539
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18545
if test -d /usr/nec ;then
18547
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18548
soname_spec='$libname${shared_ext}.$major'
18549
shlibpath_var=LD_LIBRARY_PATH
18555
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18556
soname_spec='${libname}${release}${shared_ext}$major'
18557
shlibpath_var=LD_LIBRARY_PATH
18564
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18565
echo "${ECHO_T}$dynamic_linker" >&6
18566
test "$dynamic_linker" = no && can_build_shared=no
18568
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18569
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18570
hardcode_action_GCJ=
18571
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18572
test -n "$runpath_var_GCJ" || \
18573
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18575
# We can hardcode non-existant directories.
18576
if test "$hardcode_direct_GCJ" != no &&
18577
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18578
# have to relink, otherwise we might link with an installed library
18579
# when we should be linking with a yet-to-be-installed one
18580
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18581
test "$hardcode_minus_L_GCJ" != no; then
18582
# Linking always hardcodes the temporary library directory.
18583
hardcode_action_GCJ=relink
18585
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18586
hardcode_action_GCJ=immediate
18589
# We cannot hardcode anything, or else we can only hardcode existing
18591
hardcode_action_GCJ=unsupported
18593
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18594
echo "${ECHO_T}$hardcode_action_GCJ" >&6
18596
if test "$hardcode_action_GCJ" = relink; then
18597
# Fast installation is not supported
18598
enable_fast_install=no
18599
elif test "$shlibpath_overrides_runpath" = yes ||
18600
test "$enable_shared" = no; then
18601
# Fast installation is not necessary
18602
enable_fast_install=needless
18607
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18608
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18609
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18610
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18611
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18612
echo "$as_me:$LINENO: result: yes" >&5
18613
echo "${ECHO_T}yes" >&6
18615
# FIXME - insert some real tests, host_os isn't really good enough
18618
if test -n "$STRIP" ; then
18619
striplib="$STRIP -x"
18620
echo "$as_me:$LINENO: result: yes" >&5
18621
echo "${ECHO_T}yes" >&6
18623
echo "$as_me:$LINENO: result: no" >&5
18624
echo "${ECHO_T}no" >&6
18628
echo "$as_me:$LINENO: result: no" >&5
18629
echo "${ECHO_T}no" >&6
18634
if test "x$enable_dlopen" != xyes; then
18635
enable_dlopen=unknown
18636
enable_dlopen_self=unknown
18637
enable_dlopen_self_static=unknown
18644
lt_cv_dlopen="load_add_on"
18646
lt_cv_dlopen_self=yes
18650
lt_cv_dlopen="LoadLibrary"
18655
lt_cv_dlopen="dlopen"
18660
# if libdl is installed we need to link against it
18661
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18662
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18663
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18664
echo $ECHO_N "(cached) $ECHO_C" >&6
18666
ac_check_lib_save_LIBS=$LIBS
18668
cat >conftest.$ac_ext <<_ACEOF
18671
cat confdefs.h >>conftest.$ac_ext
18672
cat >>conftest.$ac_ext <<_ACEOF
18673
/* end confdefs.h. */
18675
/* Override any gcc2 internal prototype to avoid an error. */
18679
/* We use char because int might match the return type of a gcc2
18680
builtin and then its argument prototype would still apply. */
18690
rm -f conftest.$ac_objext conftest$ac_exeext
18691
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18692
(eval $ac_link) 2>conftest.er1
18694
grep -v '^ *+' conftest.er1 >conftest.err
18696
cat conftest.err >&5
18697
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698
(exit $ac_status); } &&
18699
{ ac_try='test -z "$ac_c_werror_flag"
18700
|| test ! -s conftest.err'
18701
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18702
(eval $ac_try) 2>&5
18704
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705
(exit $ac_status); }; } &&
18706
{ ac_try='test -s conftest$ac_exeext'
18707
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18708
(eval $ac_try) 2>&5
18710
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711
(exit $ac_status); }; }; then
18712
ac_cv_lib_dl_dlopen=yes
18714
echo "$as_me: failed program was:" >&5
18715
sed 's/^/| /' conftest.$ac_ext >&5
18717
ac_cv_lib_dl_dlopen=no
18719
rm -f conftest.err conftest.$ac_objext \
18720
conftest$ac_exeext conftest.$ac_ext
18721
LIBS=$ac_check_lib_save_LIBS
18723
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18724
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18725
if test $ac_cv_lib_dl_dlopen = yes; then
18726
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18729
lt_cv_dlopen="dyld"
18731
lt_cv_dlopen_self=yes
18738
echo "$as_me:$LINENO: checking for shl_load" >&5
18739
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18740
if test "${ac_cv_func_shl_load+set}" = set; then
18741
echo $ECHO_N "(cached) $ECHO_C" >&6
18743
cat >conftest.$ac_ext <<_ACEOF
18746
cat confdefs.h >>conftest.$ac_ext
18747
cat >>conftest.$ac_ext <<_ACEOF
18748
/* end confdefs.h. */
18749
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18750
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18751
#define shl_load innocuous_shl_load
18753
/* System header to define __stub macros and hopefully few prototypes,
18754
which can conflict with char shl_load (); below.
18755
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18756
<limits.h> exists even on freestanding compilers. */
18759
# include <limits.h>
18761
# include <assert.h>
18766
/* Override any gcc2 internal prototype to avoid an error. */
18771
/* We use char because int might match the return type of a gcc2
18772
builtin and then its argument prototype would still apply. */
18774
/* The GNU C library defines this for functions which it implements
18775
to always fail with ENOSYS. Some functions are actually named
18776
something starting with __ and the normal name is an alias. */
18777
#if defined (__stub_shl_load) || defined (__stub___shl_load)
18780
char (*f) () = shl_load;
18789
return f != shl_load;
18794
rm -f conftest.$ac_objext conftest$ac_exeext
18795
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18796
(eval $ac_link) 2>conftest.er1
18798
grep -v '^ *+' conftest.er1 >conftest.err
18800
cat conftest.err >&5
18801
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802
(exit $ac_status); } &&
18803
{ ac_try='test -z "$ac_c_werror_flag"
18804
|| test ! -s conftest.err'
18805
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18806
(eval $ac_try) 2>&5
18808
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809
(exit $ac_status); }; } &&
18810
{ ac_try='test -s conftest$ac_exeext'
18811
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18812
(eval $ac_try) 2>&5
18814
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815
(exit $ac_status); }; }; then
18816
ac_cv_func_shl_load=yes
18818
echo "$as_me: failed program was:" >&5
18819
sed 's/^/| /' conftest.$ac_ext >&5
18821
ac_cv_func_shl_load=no
18823
rm -f conftest.err conftest.$ac_objext \
18824
conftest$ac_exeext conftest.$ac_ext
18826
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18827
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18828
if test $ac_cv_func_shl_load = yes; then
18829
lt_cv_dlopen="shl_load"
18831
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18832
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18833
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18834
echo $ECHO_N "(cached) $ECHO_C" >&6
18836
ac_check_lib_save_LIBS=$LIBS
18838
cat >conftest.$ac_ext <<_ACEOF
18841
cat confdefs.h >>conftest.$ac_ext
18842
cat >>conftest.$ac_ext <<_ACEOF
18843
/* end confdefs.h. */
18845
/* Override any gcc2 internal prototype to avoid an error. */
18849
/* We use char because int might match the return type of a gcc2
18850
builtin and then its argument prototype would still apply. */
18860
rm -f conftest.$ac_objext conftest$ac_exeext
18861
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18862
(eval $ac_link) 2>conftest.er1
18864
grep -v '^ *+' conftest.er1 >conftest.err
18866
cat conftest.err >&5
18867
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868
(exit $ac_status); } &&
18869
{ ac_try='test -z "$ac_c_werror_flag"
18870
|| test ! -s conftest.err'
18871
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18872
(eval $ac_try) 2>&5
18874
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875
(exit $ac_status); }; } &&
18876
{ ac_try='test -s conftest$ac_exeext'
18877
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18878
(eval $ac_try) 2>&5
18880
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881
(exit $ac_status); }; }; then
18882
ac_cv_lib_dld_shl_load=yes
18884
echo "$as_me: failed program was:" >&5
18885
sed 's/^/| /' conftest.$ac_ext >&5
18887
ac_cv_lib_dld_shl_load=no
18889
rm -f conftest.err conftest.$ac_objext \
18890
conftest$ac_exeext conftest.$ac_ext
18891
LIBS=$ac_check_lib_save_LIBS
18893
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18894
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18895
if test $ac_cv_lib_dld_shl_load = yes; then
18896
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18898
echo "$as_me:$LINENO: checking for dlopen" >&5
18899
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18900
if test "${ac_cv_func_dlopen+set}" = set; then
18901
echo $ECHO_N "(cached) $ECHO_C" >&6
18903
cat >conftest.$ac_ext <<_ACEOF
18906
cat confdefs.h >>conftest.$ac_ext
18907
cat >>conftest.$ac_ext <<_ACEOF
18908
/* end confdefs.h. */
18909
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18910
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18911
#define dlopen innocuous_dlopen
18913
/* System header to define __stub macros and hopefully few prototypes,
18914
which can conflict with char dlopen (); below.
18915
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18916
<limits.h> exists even on freestanding compilers. */
18919
# include <limits.h>
18921
# include <assert.h>
18926
/* Override any gcc2 internal prototype to avoid an error. */
18931
/* We use char because int might match the return type of a gcc2
18932
builtin and then its argument prototype would still apply. */
18934
/* The GNU C library defines this for functions which it implements
18935
to always fail with ENOSYS. Some functions are actually named
18936
something starting with __ and the normal name is an alias. */
18937
#if defined (__stub_dlopen) || defined (__stub___dlopen)
18940
char (*f) () = dlopen;
18949
return f != dlopen;
18954
rm -f conftest.$ac_objext conftest$ac_exeext
18955
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18956
(eval $ac_link) 2>conftest.er1
18958
grep -v '^ *+' conftest.er1 >conftest.err
18960
cat conftest.err >&5
18961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962
(exit $ac_status); } &&
18963
{ ac_try='test -z "$ac_c_werror_flag"
18964
|| test ! -s conftest.err'
18965
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18966
(eval $ac_try) 2>&5
18968
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969
(exit $ac_status); }; } &&
18970
{ ac_try='test -s conftest$ac_exeext'
18971
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18972
(eval $ac_try) 2>&5
18974
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975
(exit $ac_status); }; }; then
18976
ac_cv_func_dlopen=yes
18978
echo "$as_me: failed program was:" >&5
18979
sed 's/^/| /' conftest.$ac_ext >&5
18981
ac_cv_func_dlopen=no
18983
rm -f conftest.err conftest.$ac_objext \
18984
conftest$ac_exeext conftest.$ac_ext
18986
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18987
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18988
if test $ac_cv_func_dlopen = yes; then
18989
lt_cv_dlopen="dlopen"
18991
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18992
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18993
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18994
echo $ECHO_N "(cached) $ECHO_C" >&6
18996
ac_check_lib_save_LIBS=$LIBS
18998
cat >conftest.$ac_ext <<_ACEOF
19001
cat confdefs.h >>conftest.$ac_ext
19002
cat >>conftest.$ac_ext <<_ACEOF
19003
/* end confdefs.h. */
19005
/* Override any gcc2 internal prototype to avoid an error. */
19009
/* We use char because int might match the return type of a gcc2
19010
builtin and then its argument prototype would still apply. */
19020
rm -f conftest.$ac_objext conftest$ac_exeext
19021
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19022
(eval $ac_link) 2>conftest.er1
19024
grep -v '^ *+' conftest.er1 >conftest.err
19026
cat conftest.err >&5
19027
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028
(exit $ac_status); } &&
19029
{ ac_try='test -z "$ac_c_werror_flag"
19030
|| test ! -s conftest.err'
19031
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19032
(eval $ac_try) 2>&5
19034
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035
(exit $ac_status); }; } &&
19036
{ ac_try='test -s conftest$ac_exeext'
19037
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19038
(eval $ac_try) 2>&5
19040
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041
(exit $ac_status); }; }; then
19042
ac_cv_lib_dl_dlopen=yes
19044
echo "$as_me: failed program was:" >&5
19045
sed 's/^/| /' conftest.$ac_ext >&5
19047
ac_cv_lib_dl_dlopen=no
19049
rm -f conftest.err conftest.$ac_objext \
19050
conftest$ac_exeext conftest.$ac_ext
19051
LIBS=$ac_check_lib_save_LIBS
19053
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19054
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19055
if test $ac_cv_lib_dl_dlopen = yes; then
19056
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19058
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19059
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19060
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19061
echo $ECHO_N "(cached) $ECHO_C" >&6
19063
ac_check_lib_save_LIBS=$LIBS
19064
LIBS="-lsvld $LIBS"
19065
cat >conftest.$ac_ext <<_ACEOF
19068
cat confdefs.h >>conftest.$ac_ext
19069
cat >>conftest.$ac_ext <<_ACEOF
19070
/* end confdefs.h. */
19072
/* Override any gcc2 internal prototype to avoid an error. */
19076
/* We use char because int might match the return type of a gcc2
19077
builtin and then its argument prototype would still apply. */
19087
rm -f conftest.$ac_objext conftest$ac_exeext
19088
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19089
(eval $ac_link) 2>conftest.er1
19091
grep -v '^ *+' conftest.er1 >conftest.err
19093
cat conftest.err >&5
19094
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095
(exit $ac_status); } &&
19096
{ ac_try='test -z "$ac_c_werror_flag"
19097
|| test ! -s conftest.err'
19098
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19099
(eval $ac_try) 2>&5
19101
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102
(exit $ac_status); }; } &&
19103
{ ac_try='test -s conftest$ac_exeext'
19104
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19105
(eval $ac_try) 2>&5
19107
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108
(exit $ac_status); }; }; then
19109
ac_cv_lib_svld_dlopen=yes
19111
echo "$as_me: failed program was:" >&5
19112
sed 's/^/| /' conftest.$ac_ext >&5
19114
ac_cv_lib_svld_dlopen=no
19116
rm -f conftest.err conftest.$ac_objext \
19117
conftest$ac_exeext conftest.$ac_ext
19118
LIBS=$ac_check_lib_save_LIBS
19120
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19121
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19122
if test $ac_cv_lib_svld_dlopen = yes; then
19123
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19125
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19126
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19127
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19128
echo $ECHO_N "(cached) $ECHO_C" >&6
19130
ac_check_lib_save_LIBS=$LIBS
19132
cat >conftest.$ac_ext <<_ACEOF
19135
cat confdefs.h >>conftest.$ac_ext
19136
cat >>conftest.$ac_ext <<_ACEOF
19137
/* end confdefs.h. */
19139
/* Override any gcc2 internal prototype to avoid an error. */
19143
/* We use char because int might match the return type of a gcc2
19144
builtin and then its argument prototype would still apply. */
19154
rm -f conftest.$ac_objext conftest$ac_exeext
19155
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19156
(eval $ac_link) 2>conftest.er1
19158
grep -v '^ *+' conftest.er1 >conftest.err
19160
cat conftest.err >&5
19161
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162
(exit $ac_status); } &&
19163
{ ac_try='test -z "$ac_c_werror_flag"
19164
|| test ! -s conftest.err'
19165
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19166
(eval $ac_try) 2>&5
19168
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169
(exit $ac_status); }; } &&
19170
{ ac_try='test -s conftest$ac_exeext'
19171
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19172
(eval $ac_try) 2>&5
19174
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175
(exit $ac_status); }; }; then
19176
ac_cv_lib_dld_dld_link=yes
19178
echo "$as_me: failed program was:" >&5
19179
sed 's/^/| /' conftest.$ac_ext >&5
19181
ac_cv_lib_dld_dld_link=no
19183
rm -f conftest.err conftest.$ac_objext \
19184
conftest$ac_exeext conftest.$ac_ext
19185
LIBS=$ac_check_lib_save_LIBS
19187
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19188
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19189
if test $ac_cv_lib_dld_dld_link = yes; then
19190
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19211
if test "x$lt_cv_dlopen" != xno; then
19217
case $lt_cv_dlopen in
19219
save_CPPFLAGS="$CPPFLAGS"
19220
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19222
save_LDFLAGS="$LDFLAGS"
19223
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19226
LIBS="$lt_cv_dlopen_libs $LIBS"
19228
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19229
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19230
if test "${lt_cv_dlopen_self+set}" = set; then
19231
echo $ECHO_N "(cached) $ECHO_C" >&6
19233
if test "$cross_compiling" = yes; then :
19234
lt_cv_dlopen_self=cross
19236
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19237
lt_status=$lt_dlunknown
19238
cat > conftest.$ac_ext <<EOF
19239
#line 19239 "configure"
19240
#include "confdefs.h"
19249
# define LT_DLGLOBAL RTLD_GLOBAL
19252
# define LT_DLGLOBAL DL_GLOBAL
19254
# define LT_DLGLOBAL 0
19258
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19259
find out it does not work in some platform. */
19260
#ifndef LT_DLLAZY_OR_NOW
19262
# define LT_DLLAZY_OR_NOW RTLD_LAZY
19265
# define LT_DLLAZY_OR_NOW DL_LAZY
19268
# define LT_DLLAZY_OR_NOW RTLD_NOW
19271
# define LT_DLLAZY_OR_NOW DL_NOW
19273
# define LT_DLLAZY_OR_NOW 0
19281
extern "C" void exit (int);
19284
void fnord() { int i=42;}
19287
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19288
int status = $lt_dlunknown;
19292
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19293
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19294
/* dlclose (self); */
19300
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19301
(eval $ac_link) 2>&5
19303
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19305
(./conftest; exit; ) 2>/dev/null
19307
case x$lt_status in
19308
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19309
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19310
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19313
# compilation failed
19314
lt_cv_dlopen_self=no
19321
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19322
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19324
if test "x$lt_cv_dlopen_self" = xyes; then
19325
LDFLAGS="$LDFLAGS $link_static_flag"
19326
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19327
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19328
if test "${lt_cv_dlopen_self_static+set}" = set; then
19329
echo $ECHO_N "(cached) $ECHO_C" >&6
19331
if test "$cross_compiling" = yes; then :
19332
lt_cv_dlopen_self_static=cross
19334
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19335
lt_status=$lt_dlunknown
19336
cat > conftest.$ac_ext <<EOF
19337
#line 19337 "configure"
19338
#include "confdefs.h"
19347
# define LT_DLGLOBAL RTLD_GLOBAL
19350
# define LT_DLGLOBAL DL_GLOBAL
19352
# define LT_DLGLOBAL 0
19356
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19357
find out it does not work in some platform. */
19358
#ifndef LT_DLLAZY_OR_NOW
19360
# define LT_DLLAZY_OR_NOW RTLD_LAZY
19363
# define LT_DLLAZY_OR_NOW DL_LAZY
19366
# define LT_DLLAZY_OR_NOW RTLD_NOW
19369
# define LT_DLLAZY_OR_NOW DL_NOW
19371
# define LT_DLLAZY_OR_NOW 0
19379
extern "C" void exit (int);
19382
void fnord() { int i=42;}
19385
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19386
int status = $lt_dlunknown;
19390
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19391
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19392
/* dlclose (self); */
19398
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19399
(eval $ac_link) 2>&5
19401
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19403
(./conftest; exit; ) 2>/dev/null
19405
case x$lt_status in
19406
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19407
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19408
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19411
# compilation failed
19412
lt_cv_dlopen_self_static=no
19419
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19420
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19423
CPPFLAGS="$save_CPPFLAGS"
19424
LDFLAGS="$save_LDFLAGS"
19429
case $lt_cv_dlopen_self in
19430
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19431
*) enable_dlopen_self=unknown ;;
19434
case $lt_cv_dlopen_self_static in
19435
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19436
*) enable_dlopen_self_static=unknown ;;
19441
# The else clause should only fire when bootstrapping the
19442
# libtool distribution, otherwise you forgot to ship ltmain.sh
19443
# with your package, and you will get complaints that there are
19444
# no rules to generate ltmain.sh.
19445
if test -f "$ltmain"; then
19446
# See if we are running on zsh, and set the options which allow our commands through
19447
# without removal of \ escapes.
19448
if test -n "${ZSH_VERSION+set}" ; then
19449
setopt NO_GLOB_SUBST
19451
# Now quote all the things that may contain metacharacters while being
19452
# careful not to overquote the AC_SUBSTed values. We take copies of the
19453
# variables and quote the copies for generation of the libtool script.
19454
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19456
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19457
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19458
deplibs_check_method reload_flag reload_cmds need_locks \
19459
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19460
lt_cv_sys_global_symbol_to_c_name_address \
19461
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19462
old_postinstall_cmds old_postuninstall_cmds \
19466
lt_prog_compiler_wl_GCJ \
19467
lt_prog_compiler_pic_GCJ \
19468
lt_prog_compiler_static_GCJ \
19469
lt_prog_compiler_no_builtin_flag_GCJ \
19470
export_dynamic_flag_spec_GCJ \
19471
thread_safe_flag_spec_GCJ \
19472
whole_archive_flag_spec_GCJ \
19473
enable_shared_with_static_runtimes_GCJ \
19474
old_archive_cmds_GCJ \
19475
old_archive_from_new_cmds_GCJ \
19476
predep_objects_GCJ \
19477
postdep_objects_GCJ \
19480
compiler_lib_search_path_GCJ \
19482
archive_expsym_cmds_GCJ \
19483
postinstall_cmds_GCJ \
19484
postuninstall_cmds_GCJ \
19485
old_archive_from_expsyms_cmds_GCJ \
19486
allow_undefined_flag_GCJ \
19487
no_undefined_flag_GCJ \
19488
export_symbols_cmds_GCJ \
19489
hardcode_libdir_flag_spec_GCJ \
19490
hardcode_libdir_flag_spec_ld_GCJ \
19491
hardcode_libdir_separator_GCJ \
19492
hardcode_automatic_GCJ \
19494
module_expsym_cmds_GCJ \
19495
lt_cv_prog_compiler_c_o_GCJ \
19496
exclude_expsyms_GCJ \
19497
include_expsyms_GCJ; do
19500
old_archive_cmds_GCJ | \
19501
old_archive_from_new_cmds_GCJ | \
19502
archive_cmds_GCJ | \
19503
archive_expsym_cmds_GCJ | \
19504
module_cmds_GCJ | \
19505
module_expsym_cmds_GCJ | \
19506
old_archive_from_expsyms_cmds_GCJ | \
19507
export_symbols_cmds_GCJ | \
19508
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19509
postinstall_cmds | postuninstall_cmds | \
19510
old_postinstall_cmds | old_postuninstall_cmds | \
19511
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19512
# Double-quote double-evaled strings.
19513
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19516
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19522
*'\$0 --fallback-echo"')
19523
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19529
cat <<__EOF__ >> "$cfgfile"
19530
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19532
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19534
# Shell to use when invoking shell scripts.
19537
# Whether or not to build shared libraries.
19538
build_libtool_libs=$enable_shared
19540
# Whether or not to build static libraries.
19541
build_old_libs=$enable_static
19543
# Whether or not to add -lc for building shared libraries.
19544
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19546
# Whether or not to disallow shared libs when runtime libs are static
19547
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19549
# Whether or not to optimize for fast installation.
19550
fast_install=$enable_fast_install
19553
host_alias=$host_alias
19556
# An echo program that does not interpret backslashes.
19561
AR_FLAGS=$lt_AR_FLAGS
19566
# A language-specific compiler.
19567
CC=$lt_compiler_GCJ
19569
# Is the compiler the GNU C compiler?
19575
# The linker used to build libraries.
19578
# Whether we need hard or soft links.
19581
# A BSD-compatible nm program.
19584
# A symbol stripping program
19587
# Used to examine libraries when file_magic_cmd begins "file"
19588
MAGIC_CMD=$MAGIC_CMD
19590
# Used on cygwin: DLL creation program.
19593
# Used on cygwin: object dumper.
19596
# Used on cygwin: assembler.
19599
# The name of the directory that contains temporary libtool files.
19602
# How to create reloadable object files.
19603
reload_flag=$lt_reload_flag
19604
reload_cmds=$lt_reload_cmds
19606
# How to pass a linker flag through the compiler.
19607
wl=$lt_lt_prog_compiler_wl_GCJ
19609
# Object file suffix (normally "o").
19610
objext="$ac_objext"
19612
# Old archive suffix (normally "a").
19615
# Shared library suffix (normally ".so").
19616
shrext_cmds='$shrext_cmds'
19618
# Executable file suffix (normally "").
19621
# Additional compiler flags for building library objects.
19622
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19625
# What is the maximum length of a command?
19626
max_cmd_len=$lt_cv_sys_max_cmd_len
19628
# Does compiler simultaneously support -c and -o options?
19629
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19631
# Must we lock files when doing compilation ?
19632
need_locks=$lt_need_locks
19634
# Do we need the lib prefix for modules?
19635
need_lib_prefix=$need_lib_prefix
19637
# Do we need a version for libraries?
19638
need_version=$need_version
19640
# Whether dlopen is supported.
19641
dlopen_support=$enable_dlopen
19643
# Whether dlopen of programs is supported.
19644
dlopen_self=$enable_dlopen_self
19646
# Whether dlopen of statically linked programs is supported.
19647
dlopen_self_static=$enable_dlopen_self_static
19649
# Compiler flag to prevent dynamic linking.
19650
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19652
# Compiler flag to turn off builtin functions.
19653
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19655
# Compiler flag to allow reflexive dlopens.
19656
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19658
# Compiler flag to generate shared objects directly from archives.
19659
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19661
# Compiler flag to generate thread-safe objects.
19662
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19664
# Library versioning type.
19665
version_type=$version_type
19667
# Format of library name prefix.
19668
libname_spec=$lt_libname_spec
19670
# List of archive names. First name is the real one, the rest are links.
19671
# The last name is the one that the linker finds with -lNAME.
19672
library_names_spec=$lt_library_names_spec
19674
# The coded name of the library, if different from the real name.
19675
soname_spec=$lt_soname_spec
19677
# Commands used to build and install an old-style archive.
19679
old_archive_cmds=$lt_old_archive_cmds_GCJ
19680
old_postinstall_cmds=$lt_old_postinstall_cmds
19681
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19683
# Create an old-style archive from a shared archive.
19684
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19686
# Create a temporary old-style archive to link instead of a shared archive.
19687
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19689
# Commands used to build and install a shared archive.
19690
archive_cmds=$lt_archive_cmds_GCJ
19691
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19692
postinstall_cmds=$lt_postinstall_cmds
19693
postuninstall_cmds=$lt_postuninstall_cmds
19695
# Commands used to build a loadable module (assumed same as above if empty)
19696
module_cmds=$lt_module_cmds_GCJ
19697
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19699
# Commands to strip libraries.
19700
old_striplib=$lt_old_striplib
19701
striplib=$lt_striplib
19703
# Dependencies to place before the objects being linked to create a
19705
predep_objects=$lt_predep_objects_GCJ
19707
# Dependencies to place after the objects being linked to create a
19709
postdep_objects=$lt_postdep_objects_GCJ
19711
# Dependencies to place before the objects being linked to create a
19713
predeps=$lt_predeps_GCJ
19715
# Dependencies to place after the objects being linked to create a
19717
postdeps=$lt_postdeps_GCJ
19719
# The library search path used internally by the compiler when linking
19720
# a shared library.
19721
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19723
# Method to check whether dependent libraries are shared objects.
19724
deplibs_check_method=$lt_deplibs_check_method
19726
# Command to use when deplibs_check_method == file_magic.
19727
file_magic_cmd=$lt_file_magic_cmd
19729
# Flag that allows shared libraries with undefined symbols to be built.
19730
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19732
# Flag that forces no undefined symbols.
19733
no_undefined_flag=$lt_no_undefined_flag_GCJ
19735
# Commands used to finish a libtool library installation in a directory.
19736
finish_cmds=$lt_finish_cmds
19738
# Same as above, but a single script fragment to be evaled but not shown.
19739
finish_eval=$lt_finish_eval
19741
# Take the output of nm and produce a listing of raw symbols and C names.
19742
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19744
# Transform the output of nm in a proper C declaration
19745
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19747
# Transform the output of nm in a C name address pair
19748
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19750
# This is the shared library runtime path variable.
19751
runpath_var=$runpath_var
19753
# This is the shared library path variable.
19754
shlibpath_var=$shlibpath_var
19756
# Is shlibpath searched before the hard-coded library search path?
19757
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19759
# How to hardcode a shared library path into an executable.
19760
hardcode_action=$hardcode_action_GCJ
19762
# Whether we should hardcode library paths into libraries.
19763
hardcode_into_libs=$hardcode_into_libs
19765
# Flag to hardcode \$libdir into a binary during linking.
19766
# This must work even if \$libdir does not exist.
19767
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19769
# If ld is used when linking, flag to hardcode \$libdir into
19770
# a binary during linking. This must work even if \$libdir does
19772
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19774
# Whether we need a single -rpath flag with a separated argument.
19775
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19777
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19778
# resulting binary.
19779
hardcode_direct=$hardcode_direct_GCJ
19781
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19782
# resulting binary.
19783
hardcode_minus_L=$hardcode_minus_L_GCJ
19785
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19786
# the resulting binary.
19787
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19789
# Set to yes if building a shared library automatically hardcodes DIR into the library
19790
# and all subsequent libraries and executables linked against it.
19791
hardcode_automatic=$hardcode_automatic_GCJ
19793
# Variables whose values should be saved in libtool wrapper scripts and
19794
# restored at relink time.
19795
variables_saved_for_relink="$variables_saved_for_relink"
19797
# Whether libtool must link a program against all its dependency libraries.
19798
link_all_deplibs=$link_all_deplibs_GCJ
19800
# Compile-time system search path for libraries
19801
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19803
# Run-time system search path for libraries
19804
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19806
# Fix the shell variable \$srcfile for the compiler.
19807
fix_srcfile_path="$fix_srcfile_path_GCJ"
19809
# Set to yes if exported symbols are required.
19810
always_export_symbols=$always_export_symbols_GCJ
19812
# The commands to list exported symbols.
19813
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19815
# The commands to extract the exported symbol list from a shared archive.
19816
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19818
# Symbols that should not be listed in the preloaded symbols.
19819
exclude_expsyms=$lt_exclude_expsyms_GCJ
19821
# Symbols that must always be exported.
19822
include_expsyms=$lt_include_expsyms_GCJ
19824
# ### END LIBTOOL TAG CONFIG: $tagname
19830
# If there is no Makefile yet, we rely on a make rule to execute
19831
# `config.status --recheck' to rerun these tests and create the
19832
# libtool script then.
19833
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19834
if test -f "$ltmain_in"; then
19835
test -f Makefile && make "$ltmain"
19841
ac_cpp='$CPP $CPPFLAGS'
19842
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19843
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19844
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19857
# Source file extension for RC test sources.
19860
# Object file extension for compiled RC test sources.
19864
# Code to be used in simple compile tests
19865
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19867
# Code to be used in simple link tests
19868
lt_simple_link_test_code="$lt_simple_compile_test_code"
19870
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19872
# If no C compiler was specified, use CC.
19875
# Allow CC to be a program name with arguments.
19879
# Allow CC to be a program name with arguments.
19884
lt_cv_prog_compiler_c_o_RC=yes
19886
# The else clause should only fire when bootstrapping the
19887
# libtool distribution, otherwise you forgot to ship ltmain.sh
19888
# with your package, and you will get complaints that there are
19889
# no rules to generate ltmain.sh.
19890
if test -f "$ltmain"; then
19891
# See if we are running on zsh, and set the options which allow our commands through
19892
# without removal of \ escapes.
19893
if test -n "${ZSH_VERSION+set}" ; then
19894
setopt NO_GLOB_SUBST
19896
# Now quote all the things that may contain metacharacters while being
19897
# careful not to overquote the AC_SUBSTed values. We take copies of the
19898
# variables and quote the copies for generation of the libtool script.
19899
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19901
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19902
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19903
deplibs_check_method reload_flag reload_cmds need_locks \
19904
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19905
lt_cv_sys_global_symbol_to_c_name_address \
19906
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19907
old_postinstall_cmds old_postuninstall_cmds \
19911
lt_prog_compiler_wl_RC \
19912
lt_prog_compiler_pic_RC \
19913
lt_prog_compiler_static_RC \
19914
lt_prog_compiler_no_builtin_flag_RC \
19915
export_dynamic_flag_spec_RC \
19916
thread_safe_flag_spec_RC \
19917
whole_archive_flag_spec_RC \
19918
enable_shared_with_static_runtimes_RC \
19919
old_archive_cmds_RC \
19920
old_archive_from_new_cmds_RC \
19921
predep_objects_RC \
19922
postdep_objects_RC \
19925
compiler_lib_search_path_RC \
19927
archive_expsym_cmds_RC \
19928
postinstall_cmds_RC \
19929
postuninstall_cmds_RC \
19930
old_archive_from_expsyms_cmds_RC \
19931
allow_undefined_flag_RC \
19932
no_undefined_flag_RC \
19933
export_symbols_cmds_RC \
19934
hardcode_libdir_flag_spec_RC \
19935
hardcode_libdir_flag_spec_ld_RC \
19936
hardcode_libdir_separator_RC \
19937
hardcode_automatic_RC \
19939
module_expsym_cmds_RC \
19940
lt_cv_prog_compiler_c_o_RC \
19941
exclude_expsyms_RC \
19942
include_expsyms_RC; do
19945
old_archive_cmds_RC | \
19946
old_archive_from_new_cmds_RC | \
19947
archive_cmds_RC | \
19948
archive_expsym_cmds_RC | \
19950
module_expsym_cmds_RC | \
19951
old_archive_from_expsyms_cmds_RC | \
19952
export_symbols_cmds_RC | \
19953
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19954
postinstall_cmds | postuninstall_cmds | \
19955
old_postinstall_cmds | old_postuninstall_cmds | \
19956
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19957
# Double-quote double-evaled strings.
19958
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19961
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19967
*'\$0 --fallback-echo"')
19968
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19974
cat <<__EOF__ >> "$cfgfile"
19975
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19977
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19979
# Shell to use when invoking shell scripts.
19982
# Whether or not to build shared libraries.
19983
build_libtool_libs=$enable_shared
19985
# Whether or not to build static libraries.
19986
build_old_libs=$enable_static
19988
# Whether or not to add -lc for building shared libraries.
19989
build_libtool_need_lc=$archive_cmds_need_lc_RC
19991
# Whether or not to disallow shared libs when runtime libs are static
19992
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19994
# Whether or not to optimize for fast installation.
19995
fast_install=$enable_fast_install
19998
host_alias=$host_alias
20001
# An echo program that does not interpret backslashes.
20006
AR_FLAGS=$lt_AR_FLAGS
20011
# A language-specific compiler.
20014
# Is the compiler the GNU C compiler?
20020
# The linker used to build libraries.
20023
# Whether we need hard or soft links.
20026
# A BSD-compatible nm program.
20029
# A symbol stripping program
20032
# Used to examine libraries when file_magic_cmd begins "file"
20033
MAGIC_CMD=$MAGIC_CMD
20035
# Used on cygwin: DLL creation program.
20038
# Used on cygwin: object dumper.
20041
# Used on cygwin: assembler.
20044
# The name of the directory that contains temporary libtool files.
20047
# How to create reloadable object files.
20048
reload_flag=$lt_reload_flag
20049
reload_cmds=$lt_reload_cmds
20051
# How to pass a linker flag through the compiler.
20052
wl=$lt_lt_prog_compiler_wl_RC
20054
# Object file suffix (normally "o").
20055
objext="$ac_objext"
20057
# Old archive suffix (normally "a").
20060
# Shared library suffix (normally ".so").
20061
shrext_cmds='$shrext_cmds'
20063
# Executable file suffix (normally "").
20066
# Additional compiler flags for building library objects.
20067
pic_flag=$lt_lt_prog_compiler_pic_RC
20070
# What is the maximum length of a command?
20071
max_cmd_len=$lt_cv_sys_max_cmd_len
20073
# Does compiler simultaneously support -c and -o options?
20074
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20076
# Must we lock files when doing compilation ?
20077
need_locks=$lt_need_locks
20079
# Do we need the lib prefix for modules?
20080
need_lib_prefix=$need_lib_prefix
20082
# Do we need a version for libraries?
20083
need_version=$need_version
20085
# Whether dlopen is supported.
20086
dlopen_support=$enable_dlopen
20088
# Whether dlopen of programs is supported.
20089
dlopen_self=$enable_dlopen_self
20091
# Whether dlopen of statically linked programs is supported.
20092
dlopen_self_static=$enable_dlopen_self_static
20094
# Compiler flag to prevent dynamic linking.
20095
link_static_flag=$lt_lt_prog_compiler_static_RC
20097
# Compiler flag to turn off builtin functions.
20098
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20100
# Compiler flag to allow reflexive dlopens.
20101
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20103
# Compiler flag to generate shared objects directly from archives.
20104
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20106
# Compiler flag to generate thread-safe objects.
20107
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20109
# Library versioning type.
20110
version_type=$version_type
20112
# Format of library name prefix.
20113
libname_spec=$lt_libname_spec
20115
# List of archive names. First name is the real one, the rest are links.
20116
# The last name is the one that the linker finds with -lNAME.
20117
library_names_spec=$lt_library_names_spec
20119
# The coded name of the library, if different from the real name.
20120
soname_spec=$lt_soname_spec
20122
# Commands used to build and install an old-style archive.
20124
old_archive_cmds=$lt_old_archive_cmds_RC
20125
old_postinstall_cmds=$lt_old_postinstall_cmds
20126
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20128
# Create an old-style archive from a shared archive.
20129
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20131
# Create a temporary old-style archive to link instead of a shared archive.
20132
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20134
# Commands used to build and install a shared archive.
20135
archive_cmds=$lt_archive_cmds_RC
20136
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20137
postinstall_cmds=$lt_postinstall_cmds
20138
postuninstall_cmds=$lt_postuninstall_cmds
20140
# Commands used to build a loadable module (assumed same as above if empty)
20141
module_cmds=$lt_module_cmds_RC
20142
module_expsym_cmds=$lt_module_expsym_cmds_RC
20144
# Commands to strip libraries.
20145
old_striplib=$lt_old_striplib
20146
striplib=$lt_striplib
20148
# Dependencies to place before the objects being linked to create a
20150
predep_objects=$lt_predep_objects_RC
20152
# Dependencies to place after the objects being linked to create a
20154
postdep_objects=$lt_postdep_objects_RC
20156
# Dependencies to place before the objects being linked to create a
20158
predeps=$lt_predeps_RC
20160
# Dependencies to place after the objects being linked to create a
20162
postdeps=$lt_postdeps_RC
20164
# The library search path used internally by the compiler when linking
20165
# a shared library.
20166
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20168
# Method to check whether dependent libraries are shared objects.
20169
deplibs_check_method=$lt_deplibs_check_method
20171
# Command to use when deplibs_check_method == file_magic.
20172
file_magic_cmd=$lt_file_magic_cmd
20174
# Flag that allows shared libraries with undefined symbols to be built.
20175
allow_undefined_flag=$lt_allow_undefined_flag_RC
20177
# Flag that forces no undefined symbols.
20178
no_undefined_flag=$lt_no_undefined_flag_RC
20180
# Commands used to finish a libtool library installation in a directory.
20181
finish_cmds=$lt_finish_cmds
20183
# Same as above, but a single script fragment to be evaled but not shown.
20184
finish_eval=$lt_finish_eval
20186
# Take the output of nm and produce a listing of raw symbols and C names.
20187
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20189
# Transform the output of nm in a proper C declaration
20190
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20192
# Transform the output of nm in a C name address pair
20193
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20195
# This is the shared library runtime path variable.
20196
runpath_var=$runpath_var
20198
# This is the shared library path variable.
20199
shlibpath_var=$shlibpath_var
20201
# Is shlibpath searched before the hard-coded library search path?
20202
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20204
# How to hardcode a shared library path into an executable.
20205
hardcode_action=$hardcode_action_RC
20207
# Whether we should hardcode library paths into libraries.
20208
hardcode_into_libs=$hardcode_into_libs
20210
# Flag to hardcode \$libdir into a binary during linking.
20211
# This must work even if \$libdir does not exist.
20212
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20214
# If ld is used when linking, flag to hardcode \$libdir into
20215
# a binary during linking. This must work even if \$libdir does
20217
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20219
# Whether we need a single -rpath flag with a separated argument.
20220
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20222
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20223
# resulting binary.
20224
hardcode_direct=$hardcode_direct_RC
20226
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20227
# resulting binary.
20228
hardcode_minus_L=$hardcode_minus_L_RC
20230
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20231
# the resulting binary.
20232
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20234
# Set to yes if building a shared library automatically hardcodes DIR into the library
20235
# and all subsequent libraries and executables linked against it.
20236
hardcode_automatic=$hardcode_automatic_RC
20238
# Variables whose values should be saved in libtool wrapper scripts and
20239
# restored at relink time.
20240
variables_saved_for_relink="$variables_saved_for_relink"
20242
# Whether libtool must link a program against all its dependency libraries.
20243
link_all_deplibs=$link_all_deplibs_RC
20245
# Compile-time system search path for libraries
20246
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20248
# Run-time system search path for libraries
20249
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20251
# Fix the shell variable \$srcfile for the compiler.
20252
fix_srcfile_path="$fix_srcfile_path_RC"
20254
# Set to yes if exported symbols are required.
20255
always_export_symbols=$always_export_symbols_RC
20257
# The commands to list exported symbols.
20258
export_symbols_cmds=$lt_export_symbols_cmds_RC
20260
# The commands to extract the exported symbol list from a shared archive.
20261
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20263
# Symbols that should not be listed in the preloaded symbols.
20264
exclude_expsyms=$lt_exclude_expsyms_RC
20266
# Symbols that must always be exported.
20267
include_expsyms=$lt_include_expsyms_RC
20269
# ### END LIBTOOL TAG CONFIG: $tagname
20275
# If there is no Makefile yet, we rely on a make rule to execute
20276
# `config.status --recheck' to rerun these tests and create the
20277
# libtool script then.
20278
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20279
if test -f "$ltmain_in"; then
20280
test -f Makefile && make "$ltmain"
20286
ac_cpp='$CPP $CPPFLAGS'
20287
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20288
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20289
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20296
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20297
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20298
{ (exit 1); exit 1; }; }
20302
# Append the new tag name to the list of available tags.
20303
if test -n "$tagname" ; then
20304
available_tags="$available_tags $tagname"
20310
# Now substitute the updated list of available tags.
20311
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20312
mv "${ofile}T" "$ofile"
20316
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20317
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20318
{ (exit 1); exit 1; }; }
20324
# This can be used to rebuild libtool when needed
20325
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20327
# Always use our own libtool.
20328
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20330
# Prevent multiple expansion
20354
# Check whether --enable-compile-warnings or --disable-compile-warnings was given.
20355
if test "${enable_compile_warnings+set}" = set; then
20356
enableval="$enable_compile_warnings"
20359
enable_compile_warnings="yes"
20363
if test "x$GCC" != xyes; then
20364
enable_compile_warnings=no
20368
realsave_CFLAGS="$CFLAGS"
20370
case "$enable_compile_warnings" in
20375
warning_flags="-Wall"
20378
warning_flags="-Wall -Wmissing-prototypes"
20381
warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
20382
CFLAGS="$warning_flags $CFLAGS"
20383
for option in -Wno-sign-compare; do
20384
SAVE_CFLAGS="$CFLAGS"
20385
CFLAGS="$CFLAGS $option"
20386
echo "$as_me:$LINENO: checking whether gcc understands $option" >&5
20387
echo $ECHO_N "checking whether gcc understands $option... $ECHO_C" >&6
20388
cat >conftest.$ac_ext <<_ACEOF
20391
cat confdefs.h >>conftest.$ac_ext
20392
cat >>conftest.$ac_ext <<_ACEOF
20393
/* end confdefs.h. */
20403
rm -f conftest.$ac_objext
20404
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20405
(eval $ac_compile) 2>conftest.er1
20407
grep -v '^ *+' conftest.er1 >conftest.err
20409
cat conftest.err >&5
20410
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411
(exit $ac_status); } &&
20412
{ ac_try='test -z "$ac_c_werror_flag"
20413
|| test ! -s conftest.err'
20414
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20415
(eval $ac_try) 2>&5
20417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418
(exit $ac_status); }; } &&
20419
{ ac_try='test -s conftest.$ac_objext'
20420
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20421
(eval $ac_try) 2>&5
20423
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424
(exit $ac_status); }; }; then
20427
echo "$as_me: failed program was:" >&5
20428
sed 's/^/| /' conftest.$ac_ext >&5
20432
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20433
CFLAGS="$SAVE_CFLAGS"
20434
echo "$as_me:$LINENO: result: $has_option" >&5
20435
echo "${ECHO_T}$has_option" >&6
20436
if test $has_option = yes; then
20437
warning_flags="$warning_flags $option"
20443
if test "$enable_compile_warnings" = "error" ; then
20444
warning_flags="$warning_flags -Werror"
20448
{ { echo "$as_me:$LINENO: error: Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" >&5
20449
echo "$as_me: error: Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" >&2;}
20450
{ (exit 1); exit 1; }; }
20453
CFLAGS="$realsave_CFLAGS"
20454
echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5
20455
echo $ECHO_N "checking what warning flags to pass to the C compiler... $ECHO_C" >&6
20456
echo "$as_me:$LINENO: result: $warning_flags" >&5
20457
echo "${ECHO_T}$warning_flags" >&6
20459
# Check whether --enable-iso-c or --disable-iso-c was given.
20460
if test "${enable_iso_c+set}" = set; then
20461
enableval="$enable_iso_c"
20467
echo "$as_me:$LINENO: checking what language compliance flags to pass to the C compiler" >&5
20468
echo $ECHO_N "checking what language compliance flags to pass to the C compiler... $ECHO_C" >&6
20470
if test "x$enable_iso_c" != "xno"; then
20471
if test "x$GCC" = "xyes"; then
20472
case " $CFLAGS " in
20473
*\ \ -ansi\ \ *) ;;
20474
*) complCFLAGS="$complCFLAGS -ansi" ;;
20476
case " $CFLAGS " in
20477
*\ \ -pedantic\ \ *) ;;
20478
*) complCFLAGS="$complCFLAGS -pedantic" ;;
20482
echo "$as_me:$LINENO: result: $complCFLAGS" >&5
20483
echo "${ECHO_T}$complCFLAGS" >&6
20485
WARN_CFLAGS="$warning_flags $complCFLAGS"
20489
GETTEXT_PACKAGE=libgnomecanvas-2.0
20492
cat >>confdefs.h <<_ACEOF
20493
#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
20497
ALL_LINGUAS="am ar az be bg bn bs ca cs cy da de el en_CA en_GB eo es et eu fa fi fr ga gu he hi hr hu id is it ja kn ko li lt lv mk ml mn ms nb ne nl nn no pa pl pt pt_BR ro ru sk sl sq sr sr@ije sr@Latn sv ta tr uk vi wa yi zh_CN zh_TW"
20500
for ac_header in locale.h
20502
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20503
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20504
echo "$as_me:$LINENO: checking for $ac_header" >&5
20505
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20506
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20507
echo $ECHO_N "(cached) $ECHO_C" >&6
20509
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20510
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20512
# Is the header compilable?
20513
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20514
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20515
cat >conftest.$ac_ext <<_ACEOF
20518
cat confdefs.h >>conftest.$ac_ext
20519
cat >>conftest.$ac_ext <<_ACEOF
20520
/* end confdefs.h. */
20521
$ac_includes_default
20522
#include <$ac_header>
20524
rm -f conftest.$ac_objext
20525
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20526
(eval $ac_compile) 2>conftest.er1
20528
grep -v '^ *+' conftest.er1 >conftest.err
20530
cat conftest.err >&5
20531
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532
(exit $ac_status); } &&
20533
{ ac_try='test -z "$ac_c_werror_flag"
20534
|| test ! -s conftest.err'
20535
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20536
(eval $ac_try) 2>&5
20538
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539
(exit $ac_status); }; } &&
20540
{ ac_try='test -s conftest.$ac_objext'
20541
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20542
(eval $ac_try) 2>&5
20544
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545
(exit $ac_status); }; }; then
20546
ac_header_compiler=yes
20548
echo "$as_me: failed program was:" >&5
20549
sed 's/^/| /' conftest.$ac_ext >&5
20551
ac_header_compiler=no
20553
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20554
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20555
echo "${ECHO_T}$ac_header_compiler" >&6
20557
# Is the header present?
20558
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20559
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20560
cat >conftest.$ac_ext <<_ACEOF
20563
cat confdefs.h >>conftest.$ac_ext
20564
cat >>conftest.$ac_ext <<_ACEOF
20565
/* end confdefs.h. */
20566
#include <$ac_header>
20568
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20569
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20571
grep -v '^ *+' conftest.er1 >conftest.err
20573
cat conftest.err >&5
20574
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575
(exit $ac_status); } >/dev/null; then
20576
if test -s conftest.err; then
20577
ac_cpp_err=$ac_c_preproc_warn_flag
20578
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20585
if test -z "$ac_cpp_err"; then
20586
ac_header_preproc=yes
20588
echo "$as_me: failed program was:" >&5
20589
sed 's/^/| /' conftest.$ac_ext >&5
20591
ac_header_preproc=no
20593
rm -f conftest.err conftest.$ac_ext
20594
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20595
echo "${ECHO_T}$ac_header_preproc" >&6
20597
# So? What about this header?
20598
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20600
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20601
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20602
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20603
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20604
ac_header_preproc=yes
20607
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20608
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20609
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20610
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20611
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20612
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20613
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20614
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20615
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20616
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20617
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20618
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20621
## ----------------------------------------------------------------------------- ##
20622
## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=libgnomecanvas ##
20623
## ----------------------------------------------------------------------------- ##
20626
sed "s/^/$as_me: WARNING: /" >&2
20629
echo "$as_me:$LINENO: checking for $ac_header" >&5
20630
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20631
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20632
echo $ECHO_N "(cached) $ECHO_C" >&6
20634
eval "$as_ac_Header=\$ac_header_preproc"
20636
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20637
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20640
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20641
cat >>confdefs.h <<_ACEOF
20642
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20649
if test $ac_cv_header_locale_h = yes; then
20650
echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
20651
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
20652
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
20653
echo $ECHO_N "(cached) $ECHO_C" >&6
20655
cat >conftest.$ac_ext <<_ACEOF
20658
cat confdefs.h >>conftest.$ac_ext
20659
cat >>conftest.$ac_ext <<_ACEOF
20660
/* end confdefs.h. */
20661
#include <locale.h>
20670
rm -f conftest.$ac_objext conftest$ac_exeext
20671
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20672
(eval $ac_link) 2>conftest.er1
20674
grep -v '^ *+' conftest.er1 >conftest.err
20676
cat conftest.err >&5
20677
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678
(exit $ac_status); } &&
20679
{ ac_try='test -z "$ac_c_werror_flag"
20680
|| test ! -s conftest.err'
20681
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20682
(eval $ac_try) 2>&5
20684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685
(exit $ac_status); }; } &&
20686
{ ac_try='test -s conftest$ac_exeext'
20687
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20688
(eval $ac_try) 2>&5
20690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691
(exit $ac_status); }; }; then
20692
am_cv_val_LC_MESSAGES=yes
20694
echo "$as_me: failed program was:" >&5
20695
sed 's/^/| /' conftest.$ac_ext >&5
20697
am_cv_val_LC_MESSAGES=no
20699
rm -f conftest.err conftest.$ac_objext \
20700
conftest$ac_exeext conftest.$ac_ext
20702
echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
20703
echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
20704
if test $am_cv_val_LC_MESSAGES = yes; then
20706
cat >>confdefs.h <<\_ACEOF
20707
#define HAVE_LC_MESSAGES 1
20715
gt_cv_have_gettext=no
20721
if test "${ac_cv_header_libintl_h+set}" = set; then
20722
echo "$as_me:$LINENO: checking for libintl.h" >&5
20723
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
20724
if test "${ac_cv_header_libintl_h+set}" = set; then
20725
echo $ECHO_N "(cached) $ECHO_C" >&6
20727
echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
20728
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
20730
# Is the header compilable?
20731
echo "$as_me:$LINENO: checking libintl.h usability" >&5
20732
echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
20733
cat >conftest.$ac_ext <<_ACEOF
20736
cat confdefs.h >>conftest.$ac_ext
20737
cat >>conftest.$ac_ext <<_ACEOF
20738
/* end confdefs.h. */
20739
$ac_includes_default
20740
#include <libintl.h>
20742
rm -f conftest.$ac_objext
20743
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20744
(eval $ac_compile) 2>conftest.er1
20746
grep -v '^ *+' conftest.er1 >conftest.err
20748
cat conftest.err >&5
20749
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750
(exit $ac_status); } &&
20751
{ ac_try='test -z "$ac_c_werror_flag"
20752
|| test ! -s conftest.err'
20753
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20754
(eval $ac_try) 2>&5
20756
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757
(exit $ac_status); }; } &&
20758
{ ac_try='test -s conftest.$ac_objext'
20759
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20760
(eval $ac_try) 2>&5
20762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763
(exit $ac_status); }; }; then
20764
ac_header_compiler=yes
20766
echo "$as_me: failed program was:" >&5
20767
sed 's/^/| /' conftest.$ac_ext >&5
20769
ac_header_compiler=no
20771
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20772
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20773
echo "${ECHO_T}$ac_header_compiler" >&6
20775
# Is the header present?
20776
echo "$as_me:$LINENO: checking libintl.h presence" >&5
20777
echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
20778
cat >conftest.$ac_ext <<_ACEOF
20781
cat confdefs.h >>conftest.$ac_ext
20782
cat >>conftest.$ac_ext <<_ACEOF
20783
/* end confdefs.h. */
20784
#include <libintl.h>
20786
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20787
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20789
grep -v '^ *+' conftest.er1 >conftest.err
20791
cat conftest.err >&5
20792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793
(exit $ac_status); } >/dev/null; then
20794
if test -s conftest.err; then
20795
ac_cpp_err=$ac_c_preproc_warn_flag
20796
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20803
if test -z "$ac_cpp_err"; then
20804
ac_header_preproc=yes
20806
echo "$as_me: failed program was:" >&5
20807
sed 's/^/| /' conftest.$ac_ext >&5
20809
ac_header_preproc=no
20811
rm -f conftest.err conftest.$ac_ext
20812
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20813
echo "${ECHO_T}$ac_header_preproc" >&6
20815
# So? What about this header?
20816
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20818
{ echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20819
echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20820
{ echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
20821
echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
20822
ac_header_preproc=yes
20825
{ echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
20826
echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
20827
{ echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
20828
echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
20829
{ echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
20830
echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
20831
{ echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
20832
echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20833
{ echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
20834
echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
20835
{ echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
20836
echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
20839
## ----------------------------------------------------------------------------- ##
20840
## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=libgnomecanvas ##
20841
## ----------------------------------------------------------------------------- ##
20844
sed "s/^/$as_me: WARNING: /" >&2
20847
echo "$as_me:$LINENO: checking for libintl.h" >&5
20848
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
20849
if test "${ac_cv_header_libintl_h+set}" = set; then
20850
echo $ECHO_N "(cached) $ECHO_C" >&6
20852
ac_cv_header_libintl_h=$ac_header_preproc
20854
echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
20855
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
20858
if test $ac_cv_header_libintl_h = yes; then
20859
gt_cv_func_dgettext_libintl="no"
20860
libintl_extra_libs=""
20863
# First check in libc
20865
echo "$as_me:$LINENO: checking for ngettext in libc" >&5
20866
echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6
20867
if test "${gt_cv_func_ngettext_libc+set}" = set; then
20868
echo $ECHO_N "(cached) $ECHO_C" >&6
20870
cat >conftest.$ac_ext <<_ACEOF
20873
cat confdefs.h >>conftest.$ac_ext
20874
cat >>conftest.$ac_ext <<_ACEOF
20875
/* end confdefs.h. */
20877
#include <libintl.h>
20882
return (int) ngettext ("","", 1)
20887
rm -f conftest.$ac_objext conftest$ac_exeext
20888
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20889
(eval $ac_link) 2>conftest.er1
20891
grep -v '^ *+' conftest.er1 >conftest.err
20893
cat conftest.err >&5
20894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895
(exit $ac_status); } &&
20896
{ ac_try='test -z "$ac_c_werror_flag"
20897
|| test ! -s conftest.err'
20898
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20899
(eval $ac_try) 2>&5
20901
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902
(exit $ac_status); }; } &&
20903
{ ac_try='test -s conftest$ac_exeext'
20904
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20905
(eval $ac_try) 2>&5
20907
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908
(exit $ac_status); }; }; then
20909
gt_cv_func_ngettext_libc=yes
20911
echo "$as_me: failed program was:" >&5
20912
sed 's/^/| /' conftest.$ac_ext >&5
20914
gt_cv_func_ngettext_libc=no
20916
rm -f conftest.err conftest.$ac_objext \
20917
conftest$ac_exeext conftest.$ac_ext
20920
echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
20921
echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6
20923
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
20924
echo "$as_me:$LINENO: checking for dgettext in libc" >&5
20925
echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
20926
if test "${gt_cv_func_dgettext_libc+set}" = set; then
20927
echo $ECHO_N "(cached) $ECHO_C" >&6
20929
cat >conftest.$ac_ext <<_ACEOF
20932
cat confdefs.h >>conftest.$ac_ext
20933
cat >>conftest.$ac_ext <<_ACEOF
20934
/* end confdefs.h. */
20936
#include <libintl.h>
20941
return (int) dgettext ("","")
20946
rm -f conftest.$ac_objext conftest$ac_exeext
20947
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20948
(eval $ac_link) 2>conftest.er1
20950
grep -v '^ *+' conftest.er1 >conftest.err
20952
cat conftest.err >&5
20953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954
(exit $ac_status); } &&
20955
{ ac_try='test -z "$ac_c_werror_flag"
20956
|| test ! -s conftest.err'
20957
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20958
(eval $ac_try) 2>&5
20960
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961
(exit $ac_status); }; } &&
20962
{ ac_try='test -s conftest$ac_exeext'
20963
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20964
(eval $ac_try) 2>&5
20966
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967
(exit $ac_status); }; }; then
20968
gt_cv_func_dgettext_libc=yes
20970
echo "$as_me: failed program was:" >&5
20971
sed 's/^/| /' conftest.$ac_ext >&5
20973
gt_cv_func_dgettext_libc=no
20975
rm -f conftest.err conftest.$ac_objext \
20976
conftest$ac_exeext conftest.$ac_ext
20979
echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
20980
echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
20983
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
20985
for ac_func in bind_textdomain_codeset
20987
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20988
echo "$as_me:$LINENO: checking for $ac_func" >&5
20989
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20990
if eval "test \"\${$as_ac_var+set}\" = set"; then
20991
echo $ECHO_N "(cached) $ECHO_C" >&6
20993
cat >conftest.$ac_ext <<_ACEOF
20996
cat confdefs.h >>conftest.$ac_ext
20997
cat >>conftest.$ac_ext <<_ACEOF
20998
/* end confdefs.h. */
20999
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21000
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21001
#define $ac_func innocuous_$ac_func
21003
/* System header to define __stub macros and hopefully few prototypes,
21004
which can conflict with char $ac_func (); below.
21005
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21006
<limits.h> exists even on freestanding compilers. */
21009
# include <limits.h>
21011
# include <assert.h>
21016
/* Override any gcc2 internal prototype to avoid an error. */
21021
/* We use char because int might match the return type of a gcc2
21022
builtin and then its argument prototype would still apply. */
21024
/* The GNU C library defines this for functions which it implements
21025
to always fail with ENOSYS. Some functions are actually named
21026
something starting with __ and the normal name is an alias. */
21027
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21030
char (*f) () = $ac_func;
21039
return f != $ac_func;
21044
rm -f conftest.$ac_objext conftest$ac_exeext
21045
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21046
(eval $ac_link) 2>conftest.er1
21048
grep -v '^ *+' conftest.er1 >conftest.err
21050
cat conftest.err >&5
21051
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052
(exit $ac_status); } &&
21053
{ ac_try='test -z "$ac_c_werror_flag"
21054
|| test ! -s conftest.err'
21055
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21056
(eval $ac_try) 2>&5
21058
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059
(exit $ac_status); }; } &&
21060
{ ac_try='test -s conftest$ac_exeext'
21061
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21062
(eval $ac_try) 2>&5
21064
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065
(exit $ac_status); }; }; then
21066
eval "$as_ac_var=yes"
21068
echo "$as_me: failed program was:" >&5
21069
sed 's/^/| /' conftest.$ac_ext >&5
21071
eval "$as_ac_var=no"
21073
rm -f conftest.err conftest.$ac_objext \
21074
conftest$ac_exeext conftest.$ac_ext
21076
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21077
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21078
if test `eval echo '${'$as_ac_var'}'` = yes; then
21079
cat >>confdefs.h <<_ACEOF
21080
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21089
# If we don't have everything we want, check in libintl
21091
if test "$gt_cv_func_dgettext_libc" != "yes" \
21092
|| test "$gt_cv_func_ngettext_libc" != "yes" \
21093
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
21095
echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
21096
echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
21097
if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
21098
echo $ECHO_N "(cached) $ECHO_C" >&6
21100
ac_check_lib_save_LIBS=$LIBS
21101
LIBS="-lintl $LIBS"
21102
cat >conftest.$ac_ext <<_ACEOF
21105
cat confdefs.h >>conftest.$ac_ext
21106
cat >>conftest.$ac_ext <<_ACEOF
21107
/* end confdefs.h. */
21109
/* Override any gcc2 internal prototype to avoid an error. */
21113
/* We use char because int might match the return type of a gcc2
21114
builtin and then its argument prototype would still apply. */
21115
char bindtextdomain ();
21124
rm -f conftest.$ac_objext conftest$ac_exeext
21125
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21126
(eval $ac_link) 2>conftest.er1
21128
grep -v '^ *+' conftest.er1 >conftest.err
21130
cat conftest.err >&5
21131
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132
(exit $ac_status); } &&
21133
{ ac_try='test -z "$ac_c_werror_flag"
21134
|| test ! -s conftest.err'
21135
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21136
(eval $ac_try) 2>&5
21138
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139
(exit $ac_status); }; } &&
21140
{ ac_try='test -s conftest$ac_exeext'
21141
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21142
(eval $ac_try) 2>&5
21144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145
(exit $ac_status); }; }; then
21146
ac_cv_lib_intl_bindtextdomain=yes
21148
echo "$as_me: failed program was:" >&5
21149
sed 's/^/| /' conftest.$ac_ext >&5
21151
ac_cv_lib_intl_bindtextdomain=no
21153
rm -f conftest.err conftest.$ac_objext \
21154
conftest$ac_exeext conftest.$ac_ext
21155
LIBS=$ac_check_lib_save_LIBS
21157
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
21158
echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
21159
if test $ac_cv_lib_intl_bindtextdomain = yes; then
21160
echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
21161
echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
21162
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
21163
echo $ECHO_N "(cached) $ECHO_C" >&6
21165
ac_check_lib_save_LIBS=$LIBS
21166
LIBS="-lintl $LIBS"
21167
cat >conftest.$ac_ext <<_ACEOF
21170
cat confdefs.h >>conftest.$ac_ext
21171
cat >>conftest.$ac_ext <<_ACEOF
21172
/* end confdefs.h. */
21174
/* Override any gcc2 internal prototype to avoid an error. */
21178
/* We use char because int might match the return type of a gcc2
21179
builtin and then its argument prototype would still apply. */
21189
rm -f conftest.$ac_objext conftest$ac_exeext
21190
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21191
(eval $ac_link) 2>conftest.er1
21193
grep -v '^ *+' conftest.er1 >conftest.err
21195
cat conftest.err >&5
21196
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197
(exit $ac_status); } &&
21198
{ ac_try='test -z "$ac_c_werror_flag"
21199
|| test ! -s conftest.err'
21200
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21201
(eval $ac_try) 2>&5
21203
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204
(exit $ac_status); }; } &&
21205
{ ac_try='test -s conftest$ac_exeext'
21206
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21207
(eval $ac_try) 2>&5
21209
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210
(exit $ac_status); }; }; then
21211
ac_cv_lib_intl_ngettext=yes
21213
echo "$as_me: failed program was:" >&5
21214
sed 's/^/| /' conftest.$ac_ext >&5
21216
ac_cv_lib_intl_ngettext=no
21218
rm -f conftest.err conftest.$ac_objext \
21219
conftest$ac_exeext conftest.$ac_ext
21220
LIBS=$ac_check_lib_save_LIBS
21222
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
21223
echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
21224
if test $ac_cv_lib_intl_ngettext = yes; then
21225
echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21226
echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
21227
if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21228
echo $ECHO_N "(cached) $ECHO_C" >&6
21230
ac_check_lib_save_LIBS=$LIBS
21231
LIBS="-lintl $LIBS"
21232
cat >conftest.$ac_ext <<_ACEOF
21235
cat confdefs.h >>conftest.$ac_ext
21236
cat >>conftest.$ac_ext <<_ACEOF
21237
/* end confdefs.h. */
21239
/* Override any gcc2 internal prototype to avoid an error. */
21243
/* We use char because int might match the return type of a gcc2
21244
builtin and then its argument prototype would still apply. */
21254
rm -f conftest.$ac_objext conftest$ac_exeext
21255
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21256
(eval $ac_link) 2>conftest.er1
21258
grep -v '^ *+' conftest.er1 >conftest.err
21260
cat conftest.err >&5
21261
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262
(exit $ac_status); } &&
21263
{ ac_try='test -z "$ac_c_werror_flag"
21264
|| test ! -s conftest.err'
21265
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21266
(eval $ac_try) 2>&5
21268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269
(exit $ac_status); }; } &&
21270
{ ac_try='test -s conftest$ac_exeext'
21271
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21272
(eval $ac_try) 2>&5
21274
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275
(exit $ac_status); }; }; then
21276
ac_cv_lib_intl_dgettext=yes
21278
echo "$as_me: failed program was:" >&5
21279
sed 's/^/| /' conftest.$ac_ext >&5
21281
ac_cv_lib_intl_dgettext=no
21283
rm -f conftest.err conftest.$ac_objext \
21284
conftest$ac_exeext conftest.$ac_ext
21285
LIBS=$ac_check_lib_save_LIBS
21287
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21288
echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
21289
if test $ac_cv_lib_intl_dgettext = yes; then
21290
gt_cv_func_dgettext_libintl=yes
21298
if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
21299
echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
21300
echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6
21301
echo "$as_me:$LINENO: result: " >&5
21302
echo "${ECHO_T}" >&6
21303
echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
21304
echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
21305
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
21306
echo $ECHO_N "(cached) $ECHO_C" >&6
21308
ac_check_lib_save_LIBS=$LIBS
21309
LIBS="-lintl -liconv $LIBS"
21310
cat >conftest.$ac_ext <<_ACEOF
21313
cat confdefs.h >>conftest.$ac_ext
21314
cat >>conftest.$ac_ext <<_ACEOF
21315
/* end confdefs.h. */
21317
/* Override any gcc2 internal prototype to avoid an error. */
21321
/* We use char because int might match the return type of a gcc2
21322
builtin and then its argument prototype would still apply. */
21332
rm -f conftest.$ac_objext conftest$ac_exeext
21333
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21334
(eval $ac_link) 2>conftest.er1
21336
grep -v '^ *+' conftest.er1 >conftest.err
21338
cat conftest.err >&5
21339
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340
(exit $ac_status); } &&
21341
{ ac_try='test -z "$ac_c_werror_flag"
21342
|| test ! -s conftest.err'
21343
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21344
(eval $ac_try) 2>&5
21346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347
(exit $ac_status); }; } &&
21348
{ ac_try='test -s conftest$ac_exeext'
21349
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21350
(eval $ac_try) 2>&5
21352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353
(exit $ac_status); }; }; then
21354
ac_cv_lib_intl_ngettext=yes
21356
echo "$as_me: failed program was:" >&5
21357
sed 's/^/| /' conftest.$ac_ext >&5
21359
ac_cv_lib_intl_ngettext=no
21361
rm -f conftest.err conftest.$ac_objext \
21362
conftest$ac_exeext conftest.$ac_ext
21363
LIBS=$ac_check_lib_save_LIBS
21365
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
21366
echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
21367
if test $ac_cv_lib_intl_ngettext = yes; then
21368
echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
21369
echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6
21370
if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
21371
echo $ECHO_N "(cached) $ECHO_C" >&6
21373
ac_check_lib_save_LIBS=$LIBS
21374
LIBS="-lintl -liconv $LIBS"
21375
cat >conftest.$ac_ext <<_ACEOF
21378
cat confdefs.h >>conftest.$ac_ext
21379
cat >>conftest.$ac_ext <<_ACEOF
21380
/* end confdefs.h. */
21382
/* Override any gcc2 internal prototype to avoid an error. */
21386
/* We use char because int might match the return type of a gcc2
21387
builtin and then its argument prototype would still apply. */
21397
rm -f conftest.$ac_objext conftest$ac_exeext
21398
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21399
(eval $ac_link) 2>conftest.er1
21401
grep -v '^ *+' conftest.er1 >conftest.err
21403
cat conftest.err >&5
21404
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405
(exit $ac_status); } &&
21406
{ ac_try='test -z "$ac_c_werror_flag"
21407
|| test ! -s conftest.err'
21408
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21409
(eval $ac_try) 2>&5
21411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412
(exit $ac_status); }; } &&
21413
{ ac_try='test -s conftest$ac_exeext'
21414
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21415
(eval $ac_try) 2>&5
21417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418
(exit $ac_status); }; }; then
21419
ac_cv_lib_intl_dcgettext=yes
21421
echo "$as_me: failed program was:" >&5
21422
sed 's/^/| /' conftest.$ac_ext >&5
21424
ac_cv_lib_intl_dcgettext=no
21426
rm -f conftest.err conftest.$ac_objext \
21427
conftest$ac_exeext conftest.$ac_ext
21428
LIBS=$ac_check_lib_save_LIBS
21430
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
21431
echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6
21432
if test $ac_cv_lib_intl_dcgettext = yes; then
21433
gt_cv_func_dgettext_libintl=yes
21434
libintl_extra_libs=-liconv
21446
# If we found libintl, then check in it for bind_textdomain_codeset();
21447
# we'll prefer libc if neither have bind_textdomain_codeset(),
21448
# and both have dgettext and ngettext
21450
if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
21451
glib_save_LIBS="$LIBS"
21452
LIBS="$LIBS -lintl $libintl_extra_libs"
21453
unset ac_cv_func_bind_textdomain_codeset
21455
for ac_func in bind_textdomain_codeset
21457
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21458
echo "$as_me:$LINENO: checking for $ac_func" >&5
21459
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21460
if eval "test \"\${$as_ac_var+set}\" = set"; then
21461
echo $ECHO_N "(cached) $ECHO_C" >&6
21463
cat >conftest.$ac_ext <<_ACEOF
21466
cat confdefs.h >>conftest.$ac_ext
21467
cat >>conftest.$ac_ext <<_ACEOF
21468
/* end confdefs.h. */
21469
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21470
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21471
#define $ac_func innocuous_$ac_func
21473
/* System header to define __stub macros and hopefully few prototypes,
21474
which can conflict with char $ac_func (); below.
21475
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21476
<limits.h> exists even on freestanding compilers. */
21479
# include <limits.h>
21481
# include <assert.h>
21486
/* Override any gcc2 internal prototype to avoid an error. */
21491
/* We use char because int might match the return type of a gcc2
21492
builtin and then its argument prototype would still apply. */
21494
/* The GNU C library defines this for functions which it implements
21495
to always fail with ENOSYS. Some functions are actually named
21496
something starting with __ and the normal name is an alias. */
21497
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21500
char (*f) () = $ac_func;
21509
return f != $ac_func;
21514
rm -f conftest.$ac_objext conftest$ac_exeext
21515
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21516
(eval $ac_link) 2>conftest.er1
21518
grep -v '^ *+' conftest.er1 >conftest.err
21520
cat conftest.err >&5
21521
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522
(exit $ac_status); } &&
21523
{ ac_try='test -z "$ac_c_werror_flag"
21524
|| test ! -s conftest.err'
21525
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21526
(eval $ac_try) 2>&5
21528
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529
(exit $ac_status); }; } &&
21530
{ ac_try='test -s conftest$ac_exeext'
21531
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21532
(eval $ac_try) 2>&5
21534
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535
(exit $ac_status); }; }; then
21536
eval "$as_ac_var=yes"
21538
echo "$as_me: failed program was:" >&5
21539
sed 's/^/| /' conftest.$ac_ext >&5
21541
eval "$as_ac_var=no"
21543
rm -f conftest.err conftest.$ac_objext \
21544
conftest$ac_exeext conftest.$ac_ext
21546
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21547
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21548
if test `eval echo '${'$as_ac_var'}'` = yes; then
21549
cat >>confdefs.h <<_ACEOF
21550
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21556
LIBS="$glib_save_LIBS"
21558
if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
21559
gt_cv_func_dgettext_libc=no
21561
if test "$gt_cv_func_dgettext_libc" = "yes" \
21562
&& test "$gt_cv_func_ngettext_libc" = "yes"; then
21563
gt_cv_func_dgettext_libintl=no
21569
if test "$gt_cv_func_dgettext_libc" = "yes" \
21570
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
21571
gt_cv_have_gettext=yes
21574
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
21575
INTLLIBS="-lintl $libintl_extra_libs"
21578
if test "$gt_cv_have_gettext" = "yes"; then
21580
cat >>confdefs.h <<\_ACEOF
21581
#define HAVE_GETTEXT 1
21584
# Extract the first word of "msgfmt", so it can be a program name with args.
21585
set dummy msgfmt; ac_word=$2
21586
echo "$as_me:$LINENO: checking for $ac_word" >&5
21587
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21588
if test "${ac_cv_path_MSGFMT+set}" = set; then
21589
echo $ECHO_N "(cached) $ECHO_C" >&6
21593
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
21596
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
21597
for ac_dir in $PATH; do
21598
test -z "$ac_dir" && ac_dir=.
21599
if test -f $ac_dir/$ac_word; then
21600
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
21601
ac_cv_path_MSGFMT="$ac_dir/$ac_word"
21607
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
21611
MSGFMT="$ac_cv_path_MSGFMT"
21612
if test "$MSGFMT" != "no"; then
21613
echo "$as_me:$LINENO: result: $MSGFMT" >&5
21614
echo "${ECHO_T}$MSGFMT" >&6
21616
echo "$as_me:$LINENO: result: no" >&5
21617
echo "${ECHO_T}no" >&6
21619
if test "$MSGFMT" != "no"; then
21620
glib_save_LIBS="$LIBS"
21621
LIBS="$LIBS $INTLLIBS"
21623
for ac_func in dcgettext
21625
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21626
echo "$as_me:$LINENO: checking for $ac_func" >&5
21627
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21628
if eval "test \"\${$as_ac_var+set}\" = set"; then
21629
echo $ECHO_N "(cached) $ECHO_C" >&6
21631
cat >conftest.$ac_ext <<_ACEOF
21634
cat confdefs.h >>conftest.$ac_ext
21635
cat >>conftest.$ac_ext <<_ACEOF
21636
/* end confdefs.h. */
21637
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21638
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21639
#define $ac_func innocuous_$ac_func
21641
/* System header to define __stub macros and hopefully few prototypes,
21642
which can conflict with char $ac_func (); below.
21643
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21644
<limits.h> exists even on freestanding compilers. */
21647
# include <limits.h>
21649
# include <assert.h>
21654
/* Override any gcc2 internal prototype to avoid an error. */
21659
/* We use char because int might match the return type of a gcc2
21660
builtin and then its argument prototype would still apply. */
21662
/* The GNU C library defines this for functions which it implements
21663
to always fail with ENOSYS. Some functions are actually named
21664
something starting with __ and the normal name is an alias. */
21665
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21668
char (*f) () = $ac_func;
21677
return f != $ac_func;
21682
rm -f conftest.$ac_objext conftest$ac_exeext
21683
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21684
(eval $ac_link) 2>conftest.er1
21686
grep -v '^ *+' conftest.er1 >conftest.err
21688
cat conftest.err >&5
21689
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690
(exit $ac_status); } &&
21691
{ ac_try='test -z "$ac_c_werror_flag"
21692
|| test ! -s conftest.err'
21693
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21694
(eval $ac_try) 2>&5
21696
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697
(exit $ac_status); }; } &&
21698
{ ac_try='test -s conftest$ac_exeext'
21699
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21700
(eval $ac_try) 2>&5
21702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703
(exit $ac_status); }; }; then
21704
eval "$as_ac_var=yes"
21706
echo "$as_me: failed program was:" >&5
21707
sed 's/^/| /' conftest.$ac_ext >&5
21709
eval "$as_ac_var=no"
21711
rm -f conftest.err conftest.$ac_objext \
21712
conftest$ac_exeext conftest.$ac_ext
21714
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21715
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21716
if test `eval echo '${'$as_ac_var'}'` = yes; then
21717
cat >>confdefs.h <<_ACEOF
21718
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21724
# Extract the first word of "gmsgfmt", so it can be a program name with args.
21725
set dummy gmsgfmt; ac_word=$2
21726
echo "$as_me:$LINENO: checking for $ac_word" >&5
21727
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21728
if test "${ac_cv_path_GMSGFMT+set}" = set; then
21729
echo $ECHO_N "(cached) $ECHO_C" >&6
21733
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
21736
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21737
for as_dir in $PATH
21740
test -z "$as_dir" && as_dir=.
21741
for ac_exec_ext in '' $ac_executable_extensions; do
21742
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21743
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
21744
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21750
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
21754
GMSGFMT=$ac_cv_path_GMSGFMT
21756
if test -n "$GMSGFMT"; then
21757
echo "$as_me:$LINENO: result: $GMSGFMT" >&5
21758
echo "${ECHO_T}$GMSGFMT" >&6
21760
echo "$as_me:$LINENO: result: no" >&5
21761
echo "${ECHO_T}no" >&6
21764
# Extract the first word of "xgettext", so it can be a program name with args.
21765
set dummy xgettext; ac_word=$2
21766
echo "$as_me:$LINENO: checking for $ac_word" >&5
21767
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21768
if test "${ac_cv_path_XGETTEXT+set}" = set; then
21769
echo $ECHO_N "(cached) $ECHO_C" >&6
21771
case "$XGETTEXT" in
21773
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
21776
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
21777
for ac_dir in $PATH; do
21778
test -z "$ac_dir" && ac_dir=.
21779
if test -f $ac_dir/$ac_word; then
21780
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
21781
ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
21787
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
21791
XGETTEXT="$ac_cv_path_XGETTEXT"
21792
if test "$XGETTEXT" != ":"; then
21793
echo "$as_me:$LINENO: result: $XGETTEXT" >&5
21794
echo "${ECHO_T}$XGETTEXT" >&6
21796
echo "$as_me:$LINENO: result: no" >&5
21797
echo "${ECHO_T}no" >&6
21800
cat >conftest.$ac_ext <<_ACEOF
21803
cat confdefs.h >>conftest.$ac_ext
21804
cat >>conftest.$ac_ext <<_ACEOF
21805
/* end confdefs.h. */
21810
extern int _nl_msg_cat_cntr;
21811
return _nl_msg_cat_cntr
21816
rm -f conftest.$ac_objext conftest$ac_exeext
21817
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21818
(eval $ac_link) 2>conftest.er1
21820
grep -v '^ *+' conftest.er1 >conftest.err
21822
cat conftest.err >&5
21823
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824
(exit $ac_status); } &&
21825
{ ac_try='test -z "$ac_c_werror_flag"
21826
|| test ! -s conftest.err'
21827
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21828
(eval $ac_try) 2>&5
21830
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831
(exit $ac_status); }; } &&
21832
{ ac_try='test -s conftest$ac_exeext'
21833
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21834
(eval $ac_try) 2>&5
21836
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837
(exit $ac_status); }; }; then
21841
echo "$as_me: failed program was:" >&5
21842
sed 's/^/| /' conftest.$ac_ext >&5
21846
echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
21847
echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6
21848
if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
21849
echo $ECHO_N "(cached) $ECHO_C" >&6
21851
cat >conftest.$ac_ext <<_ACEOF
21854
cat confdefs.h >>conftest.$ac_ext
21855
cat >>conftest.$ac_ext <<_ACEOF
21856
/* end confdefs.h. */
21857
/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
21858
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21859
#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
21861
/* System header to define __stub macros and hopefully few prototypes,
21862
which can conflict with char bind_textdomain_codeset (); below.
21863
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21864
<limits.h> exists even on freestanding compilers. */
21867
# include <limits.h>
21869
# include <assert.h>
21872
#undef bind_textdomain_codeset
21874
/* Override any gcc2 internal prototype to avoid an error. */
21879
/* We use char because int might match the return type of a gcc2
21880
builtin and then its argument prototype would still apply. */
21881
char bind_textdomain_codeset ();
21882
/* The GNU C library defines this for functions which it implements
21883
to always fail with ENOSYS. Some functions are actually named
21884
something starting with __ and the normal name is an alias. */
21885
#if defined (__stub_bind_textdomain_codeset) || defined (__stub___bind_textdomain_codeset)
21888
char (*f) () = bind_textdomain_codeset;
21897
return f != bind_textdomain_codeset;
21902
rm -f conftest.$ac_objext conftest$ac_exeext
21903
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21904
(eval $ac_link) 2>conftest.er1
21906
grep -v '^ *+' conftest.er1 >conftest.err
21908
cat conftest.err >&5
21909
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910
(exit $ac_status); } &&
21911
{ ac_try='test -z "$ac_c_werror_flag"
21912
|| test ! -s conftest.err'
21913
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21914
(eval $ac_try) 2>&5
21916
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917
(exit $ac_status); }; } &&
21918
{ ac_try='test -s conftest$ac_exeext'
21919
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21920
(eval $ac_try) 2>&5
21922
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923
(exit $ac_status); }; }; then
21924
ac_cv_func_bind_textdomain_codeset=yes
21926
echo "$as_me: failed program was:" >&5
21927
sed 's/^/| /' conftest.$ac_ext >&5
21929
ac_cv_func_bind_textdomain_codeset=no
21931
rm -f conftest.err conftest.$ac_objext \
21932
conftest$ac_exeext conftest.$ac_ext
21934
echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
21935
echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6
21936
if test $ac_cv_func_bind_textdomain_codeset = yes; then
21951
rm -f conftest.err conftest.$ac_objext \
21952
conftest$ac_exeext conftest.$ac_ext
21953
LIBS="$glib_save_LIBS"
21956
gt_cv_have_gettext=no
21964
if test "$gt_cv_have_gettext" = "yes" ; then
21966
cat >>confdefs.h <<\_ACEOF
21967
#define ENABLE_NLS 1
21972
if test "$XGETTEXT" != ":"; then
21973
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
21976
echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
21977
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
21982
# We need to process the po/ directory.
21985
ac_config_commands="$ac_config_commands default-1"
21988
for lang in $ALL_LINGUAS; do
21989
GMOFILES="$GMOFILES $lang.gmo"
21990
POFILES="$POFILES $lang.po"
22005
if test "$gt_cv_have_gettext" = "yes"; then
22006
if test "x$ALL_LINGUAS" = "x"; then
22009
echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
22010
echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
22012
for presentlang in $ALL_LINGUAS; do
22014
if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
22015
desiredlanguages="$LINGUAS"
22017
desiredlanguages="$ALL_LINGUAS"
22019
for desiredlang in $desiredlanguages; do
22020
# Use the presentlang catalog if desiredlang is
22021
# a. equal to presentlang, or
22022
# b. a variant of presentlang (because in this case,
22023
# presentlang can be used as a fallback for messages
22024
# which are not translated in the desiredlang catalog).
22025
case "$desiredlang" in
22026
"$presentlang"*) useit=yes;;
22029
if test $useit = yes; then
22030
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
22033
LINGUAS=$NEW_LINGUAS
22034
echo "$as_me:$LINENO: result: $LINGUAS" >&5
22035
echo "${ECHO_T}$LINGUAS" >&6
22038
if test -n "$LINGUAS"; then
22039
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
22044
if test -n "$ac_aux_dir"; then
22045
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
22047
if test -z "$MKINSTALLDIRS"; then
22048
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
22052
test -d po || mkdir po
22053
if test "x$srcdir" != "x."; then
22054
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
22055
posrcprefix="$srcdir/"
22057
posrcprefix="../$srcdir/"
22063
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
22064
< $srcdir/po/POTFILES.in > po/POTFILES
22066
glib_save_prefix="$prefix"
22067
glib_save_exec_prefix="$exec_prefix"
22068
test "x$prefix" = xNONE && prefix=$ac_default_prefix
22069
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
22070
if test "x$CATOBJEXT" = "x.mo" ; then
22071
localedir=`eval echo "${libdir}/locale"`
22073
localedir=`eval echo "${datadir}/locale"`
22075
prefix="$glib_save_prefix"
22076
exec_prefix="$glib_save_exec_prefix"
22078
cat >>confdefs.h <<_ACEOF
22079
#define GNOMECANVASLOCALEDIR "$localedir"
22084
CANVAS_MODULES=" gtk+-2.0 >= 2.0.3 libart-2.0 >= 2.3.8 pango >= 1.0.1 pangoft2 >= 1.0.1"
22088
if test -z "$PKG_CONFIG"; then
22089
# Extract the first word of "pkg-config", so it can be a program name with args.
22090
set dummy pkg-config; ac_word=$2
22091
echo "$as_me:$LINENO: checking for $ac_word" >&5
22092
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22093
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22094
echo $ECHO_N "(cached) $ECHO_C" >&6
22096
case $PKG_CONFIG in
22098
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22101
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22102
for as_dir in $PATH
22105
test -z "$as_dir" && as_dir=.
22106
for ac_exec_ext in '' $ac_executable_extensions; do
22107
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22108
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22109
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22115
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22119
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22121
if test -n "$PKG_CONFIG"; then
22122
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22123
echo "${ECHO_T}$PKG_CONFIG" >&6
22125
echo "$as_me:$LINENO: result: no" >&5
22126
echo "${ECHO_T}no" >&6
22131
if test "$PKG_CONFIG" = "no" ; then
22132
echo "*** The pkg-config script could not be found. Make sure it is"
22133
echo "*** in your path, or set the PKG_CONFIG environment variable"
22134
echo "*** to the full path to pkg-config."
22135
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22137
PKG_CONFIG_MIN_VERSION=0.9.0
22138
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22139
echo "$as_me:$LINENO: checking for $CANVAS_MODULES" >&5
22140
echo $ECHO_N "checking for $CANVAS_MODULES... $ECHO_C" >&6
22142
if $PKG_CONFIG --exists "$CANVAS_MODULES" ; then
22143
echo "$as_me:$LINENO: result: yes" >&5
22144
echo "${ECHO_T}yes" >&6
22147
echo "$as_me:$LINENO: checking LIBGNOMECANVAS_CFLAGS" >&5
22148
echo $ECHO_N "checking LIBGNOMECANVAS_CFLAGS... $ECHO_C" >&6
22149
LIBGNOMECANVAS_CFLAGS=`$PKG_CONFIG --cflags "$CANVAS_MODULES"`
22150
echo "$as_me:$LINENO: result: $LIBGNOMECANVAS_CFLAGS" >&5
22151
echo "${ECHO_T}$LIBGNOMECANVAS_CFLAGS" >&6
22153
echo "$as_me:$LINENO: checking LIBGNOMECANVAS_LIBS" >&5
22154
echo $ECHO_N "checking LIBGNOMECANVAS_LIBS... $ECHO_C" >&6
22155
LIBGNOMECANVAS_LIBS=`$PKG_CONFIG --libs "$CANVAS_MODULES"`
22156
echo "$as_me:$LINENO: result: $LIBGNOMECANVAS_LIBS" >&5
22157
echo "${ECHO_T}$LIBGNOMECANVAS_LIBS" >&6
22159
LIBGNOMECANVAS_CFLAGS=""
22160
LIBGNOMECANVAS_LIBS=""
22161
## If we have a custom action on failure, don't print errors, but
22162
## do set a variable so people can do so.
22163
LIBGNOMECANVAS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$CANVAS_MODULES"`
22164
echo $LIBGNOMECANVAS_PKG_ERRORS
22170
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22171
echo "*** See http://www.freedesktop.org/software/pkgconfig"
22175
if test $succeeded = yes; then
22178
{ { echo "$as_me:$LINENO: error: Library requirements ($CANVAS_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
22179
echo "$as_me: error: Library requirements ($CANVAS_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
22180
{ (exit 1); exit 1; }; }
22187
if test -z "$PKG_CONFIG"; then
22188
# Extract the first word of "pkg-config", so it can be a program name with args.
22189
set dummy pkg-config; ac_word=$2
22190
echo "$as_me:$LINENO: checking for $ac_word" >&5
22191
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22192
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22193
echo $ECHO_N "(cached) $ECHO_C" >&6
22195
case $PKG_CONFIG in
22197
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22200
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22201
for as_dir in $PATH
22204
test -z "$as_dir" && as_dir=.
22205
for ac_exec_ext in '' $ac_executable_extensions; do
22206
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22207
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22208
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22214
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22218
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22220
if test -n "$PKG_CONFIG"; then
22221
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22222
echo "${ECHO_T}$PKG_CONFIG" >&6
22224
echo "$as_me:$LINENO: result: no" >&5
22225
echo "${ECHO_T}no" >&6
22230
if test "$PKG_CONFIG" = "no" ; then
22231
echo "*** The pkg-config script could not be found. Make sure it is"
22232
echo "*** in your path, or set the PKG_CONFIG environment variable"
22233
echo "*** to the full path to pkg-config."
22234
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22236
PKG_CONFIG_MIN_VERSION=0.9.0
22237
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22238
echo "$as_me:$LINENO: checking for $CANVAS_MODULES libglade-2.0 >= 2.0.0" >&5
22239
echo $ECHO_N "checking for $CANVAS_MODULES libglade-2.0 >= 2.0.0... $ECHO_C" >&6
22241
if $PKG_CONFIG --exists "$CANVAS_MODULES libglade-2.0 >= 2.0.0" ; then
22242
echo "$as_me:$LINENO: result: yes" >&5
22243
echo "${ECHO_T}yes" >&6
22246
echo "$as_me:$LINENO: checking CANVAS_GLADE_CFLAGS" >&5
22247
echo $ECHO_N "checking CANVAS_GLADE_CFLAGS... $ECHO_C" >&6
22248
CANVAS_GLADE_CFLAGS=`$PKG_CONFIG --cflags "$CANVAS_MODULES libglade-2.0 >= 2.0.0"`
22249
echo "$as_me:$LINENO: result: $CANVAS_GLADE_CFLAGS" >&5
22250
echo "${ECHO_T}$CANVAS_GLADE_CFLAGS" >&6
22252
echo "$as_me:$LINENO: checking CANVAS_GLADE_LIBS" >&5
22253
echo $ECHO_N "checking CANVAS_GLADE_LIBS... $ECHO_C" >&6
22254
CANVAS_GLADE_LIBS=`$PKG_CONFIG --libs "$CANVAS_MODULES libglade-2.0 >= 2.0.0"`
22255
echo "$as_me:$LINENO: result: $CANVAS_GLADE_LIBS" >&5
22256
echo "${ECHO_T}$CANVAS_GLADE_LIBS" >&6
22258
CANVAS_GLADE_CFLAGS=""
22259
CANVAS_GLADE_LIBS=""
22260
## If we have a custom action on failure, don't print errors, but
22261
## do set a variable so people can do so.
22262
CANVAS_GLADE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$CANVAS_MODULES libglade-2.0 >= 2.0.0"`
22263
echo $CANVAS_GLADE_PKG_ERRORS
22269
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22270
echo "*** See http://www.freedesktop.org/software/pkgconfig"
22274
if test $succeeded = yes; then
22277
{ { echo "$as_me:$LINENO: error: Library requirements ($CANVAS_MODULES libglade-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
22278
echo "$as_me: error: Library requirements ($CANVAS_MODULES libglade-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
22279
{ (exit 1); exit 1; }; }
22283
echo "$as_me:$LINENO: checking for native Win32" >&5
22284
echo $ECHO_N "checking for native Win32... $ECHO_C" >&6
22293
echo "$as_me:$LINENO: result: $native_win32" >&5
22294
echo "${ECHO_T}$native_win32" >&6
22297
if test "$native_win32" = yes; then
22306
echo "$as_me:$LINENO: checking for Win32 platform in general" >&5
22307
echo $ECHO_N "checking for Win32 platform in general... $ECHO_C" >&6
22309
*-*-mingw*|*-*-cygwin*)
22316
echo "$as_me:$LINENO: result: $platform_win32" >&5
22317
echo "${ECHO_T}$platform_win32" >&6
22320
if test "$platform_win32" = yes; then
22321
PLATFORM_WIN32_TRUE=
22322
PLATFORM_WIN32_FALSE='#'
22324
PLATFORM_WIN32_TRUE='#'
22325
PLATFORM_WIN32_FALSE=
22329
# Ensure MSVC-compatible struct packing convention is used when
22330
# compiling for Win32 with gcc. GTK+ uses this convention, so we must, too.
22331
# What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while
22332
# gcc2 uses "-fnative-struct".
22333
if test x"$native_win32" = xyes; then
22334
if test x"$GCC" = xyes; then
22336
echo "$as_me:$LINENO: checking how to get MSVC-compatible struct packing" >&5
22337
echo $ECHO_N "checking how to get MSVC-compatible struct packing... $ECHO_C" >&6
22338
if test -z "$ac_cv_prog_CC"; then
22341
our_gcc="$ac_cv_prog_CC"
22343
case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
22345
if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
22346
msnative_struct='-fnative-struct'
22350
if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
22351
msnative_struct='-mms-bitfields'
22355
if test x"$msnative_struct" = x ; then
22356
echo "$as_me:$LINENO: result: no way" >&5
22357
echo "${ECHO_T}no way" >&6
22358
{ echo "$as_me:$LINENO: WARNING: produced libraries will be incompatible with prebuilt GTK+ DLLs" >&5
22359
echo "$as_me: WARNING: produced libraries will be incompatible with prebuilt GTK+ DLLs" >&2;}
22361
CFLAGS="$CFLAGS $msnative_struct"
22362
echo "$as_me:$LINENO: result: ${msnative_struct}" >&5
22363
echo "${ECHO_T}${msnative_struct}" >&6
22368
for ac_prog in mawk gawk nawk awk
22370
# Extract the first word of "$ac_prog", so it can be a program name with args.
22371
set dummy $ac_prog; ac_word=$2
22372
echo "$as_me:$LINENO: checking for $ac_word" >&5
22373
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22374
if test "${ac_cv_path_AWK+set}" = set; then
22375
echo $ECHO_N "(cached) $ECHO_C" >&6
22379
ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
22382
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22383
for as_dir in $PATH
22386
test -z "$as_dir" && as_dir=.
22387
for ac_exec_ext in '' $ac_executable_extensions; do
22388
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22389
ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
22390
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22399
AWK=$ac_cv_path_AWK
22401
if test -n "$AWK"; then
22402
echo "$as_me:$LINENO: result: $AWK" >&5
22403
echo "${ECHO_T}$AWK" >&6
22405
echo "$as_me:$LINENO: result: no" >&5
22406
echo "${ECHO_T}no" >&6
22409
test -n "$AWK" && break
22412
for ac_prog in perl5 perl
22414
# Extract the first word of "$ac_prog", so it can be a program name with args.
22415
set dummy $ac_prog; ac_word=$2
22416
echo "$as_me:$LINENO: checking for $ac_word" >&5
22417
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22418
if test "${ac_cv_path_PERL+set}" = set; then
22419
echo $ECHO_N "(cached) $ECHO_C" >&6
22423
ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
22426
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22427
for as_dir in $PATH
22430
test -z "$as_dir" && as_dir=.
22431
for ac_exec_ext in '' $ac_executable_extensions; do
22432
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22433
ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
22434
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22443
PERL=$ac_cv_path_PERL
22445
if test -n "$PERL"; then
22446
echo "$as_me:$LINENO: result: $PERL" >&5
22447
echo "${ECHO_T}$PERL" >&6
22449
echo "$as_me:$LINENO: result: no" >&5
22450
echo "${ECHO_T}no" >&6
22453
test -n "$PERL" && break
22458
# Extract the first word of "glib-genmarshal", so it can be a program name with args.
22459
set dummy glib-genmarshal; ac_word=$2
22460
echo "$as_me:$LINENO: checking for $ac_word" >&5
22461
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22462
if test "${ac_cv_path_GLIB_GENMARSHAL+set}" = set; then
22463
echo $ECHO_N "(cached) $ECHO_C" >&6
22465
case $GLIB_GENMARSHAL in
22467
ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path.
22470
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22471
for as_dir in $PATH
22474
test -z "$as_dir" && as_dir=.
22475
for ac_exec_ext in '' $ac_executable_extensions; do
22476
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22477
ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext"
22478
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22487
GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL
22489
if test -n "$GLIB_GENMARSHAL"; then
22490
echo "$as_me:$LINENO: result: $GLIB_GENMARSHAL" >&5
22491
echo "${ECHO_T}$GLIB_GENMARSHAL" >&6
22493
echo "$as_me:$LINENO: result: no" >&5
22494
echo "${ECHO_T}no" >&6
22500
# Check whether --with-html-dir or --without-html-dir was given.
22501
if test "${with_html_dir+set}" = set; then
22502
withval="$with_html_dir"
22505
with_html_dir='${datadir}/gtk-doc/html'
22507
HTML_DIR="$with_html_dir"
22510
# Check whether --enable-gtk-doc or --disable-gtk-doc was given.
22511
if test "${enable_gtk_doc+set}" = set; then
22512
enableval="$enable_gtk_doc"
22519
if test x$enable_gtk_doc = xyes; then
22520
if test -z "$PKG_CONFIG"; then
22521
# Extract the first word of "pkg-config", so it can be a program name with args.
22522
set dummy pkg-config; ac_word=$2
22523
echo "$as_me:$LINENO: checking for $ac_word" >&5
22524
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22525
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22526
echo $ECHO_N "(cached) $ECHO_C" >&6
22528
case $PKG_CONFIG in
22530
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22533
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22534
for as_dir in $PATH
22537
test -z "$as_dir" && as_dir=.
22538
for ac_exec_ext in '' $ac_executable_extensions; do
22539
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22540
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22541
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22547
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22551
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22553
if test -n "$PKG_CONFIG"; then
22554
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22555
echo "${ECHO_T}$PKG_CONFIG" >&6
22557
echo "$as_me:$LINENO: result: no" >&5
22558
echo "${ECHO_T}no" >&6
22562
if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
22566
gtk_doc_min_version=1.0
22567
if test "$have_gtk_doc" = yes; then
22568
echo "$as_me:$LINENO: checking gtk-doc version >= $gtk_doc_min_version" >&5
22569
echo $ECHO_N "checking gtk-doc version >= $gtk_doc_min_version... $ECHO_C" >&6
22570
if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then
22571
echo "$as_me:$LINENO: result: yes" >&5
22572
echo "${ECHO_T}yes" >&6
22574
echo "$as_me:$LINENO: result: no" >&5
22575
echo "${ECHO_T}no" >&6
22580
if test "$have_gtk_doc" != yes; then
22587
if test x$enable_gtk_doc = xyes; then
22588
ENABLE_GTK_DOC_TRUE=
22589
ENABLE_GTK_DOC_FALSE='#'
22591
ENABLE_GTK_DOC_TRUE='#'
22592
ENABLE_GTK_DOC_FALSE=
22597
if test -n "$LIBTOOL"; then
22598
GTK_DOC_USE_LIBTOOL_TRUE=
22599
GTK_DOC_USE_LIBTOOL_FALSE='#'
22601
GTK_DOC_USE_LIBTOOL_TRUE='#'
22602
GTK_DOC_USE_LIBTOOL_FALSE=
22607
# define a MAINT-like variable REBUILD which is set if Perl
22608
# and awk are found, so autogenerated sources can be rebuilt
22609
# Check whether --enable-rebuilds or --disable-rebuilds was given.
22610
if test "${enable_rebuilds+set}" = set; then
22611
enableval="$enable_rebuilds"
22614
enable_rebuilds=yes
22617
if test "x$enable_rebuilds" = "xyes" && \
22618
test -n "$PERL" && \
22619
$PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \
22620
test -n "$AWK" ; then
22625
ac_config_files="$ac_config_files Makefile po/Makefile.in libgnomecanvas/Makefile libgnomecanvas/libgnomecanvas-2.0.pc libgnomecanvas/libgnomecanvas-2.0-uninstalled.pc glade/Makefile demos/Makefile tests/Makefile docs/Makefile docs/reference/Makefile"
22628
cat >confcache <<\_ACEOF
22629
# This file is a shell script that caches the results of configure
22630
# tests run on this system so they can be shared between configure
22631
# scripts and configure runs, see configure's option --config-cache.
22632
# It is not useful on other systems. If it contains results you don't
22633
# want to keep, you may remove or edit it.
22635
# config.status only pays attention to the cache file if you give it
22636
# the --recheck option to rerun configure.
22638
# `ac_cv_env_foo' variables (set or unset) will be overridden when
22639
# loading this file, other *unset* `ac_cv_foo' will be assigned the
22640
# following values.
22644
# The following way of writing the cache mishandles newlines in values,
22645
# but we know of no workaround that is simple, portable, and efficient.
22646
# So, don't put newlines in cache variables' values.
22647
# Ultrix sh set writes to stderr and can't be redirected directly,
22648
# and sets the high bit in the cache file unless we assign to the vars.
22651
case `(ac_space=' '; set | grep ac_space) 2>&1` in
22653
# `set' does not quote correctly, so add quotes (double-quote
22654
# substitution turns \\\\ into \\, and sed turns \\ into \).
22657
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22660
# `set' quotes correctly as required by POSIX, so do not add quotes.
22662
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22669
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22671
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22673
if diff $cache_file confcache >/dev/null 2>&1; then :; else
22674
if test -w $cache_file; then
22675
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22676
cat confcache >$cache_file
22678
echo "not updating unwritable cache $cache_file"
22683
test "x$prefix" = xNONE && prefix=$ac_default_prefix
22684
# Let make expand exec_prefix.
22685
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22687
# VPATH may cause trouble with some makes, so we remove $(srcdir),
22688
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22689
# trailing colons and then remove the whole line if VPATH becomes empty
22690
# (actually we leave an empty line to preserve line numbers).
22691
if test "x$srcdir" = x.; then
22692
ac_vpsub='/^[ ]*VPATH[ ]*=/{
22693
s/:*\$(srcdir):*/:/;
22694
s/:*\${srcdir}:*/:/;
22696
s/^\([^=]*=[ ]*\):*/\1/;
22702
DEFS=-DHAVE_CONFIG_H
22706
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22707
# 1. Remove the extension, and $U if already installed.
22708
ac_i=`echo "$ac_i" |
22709
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22711
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22712
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22714
LIBOBJS=$ac_libobjs
22716
LTLIBOBJS=$ac_ltlibobjs
22719
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22720
{ { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22721
Usually this means the macro was only invoked conditionally." >&5
22722
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22723
Usually this means the macro was only invoked conditionally." >&2;}
22724
{ (exit 1); exit 1; }; }
22726
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22727
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22728
Usually this means the macro was only invoked conditionally." >&5
22729
echo "$as_me: error: conditional \"AMDEP\" was never defined.
22730
Usually this means the macro was only invoked conditionally." >&2;}
22731
{ (exit 1); exit 1; }; }
22733
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22734
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22735
Usually this means the macro was only invoked conditionally." >&5
22736
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22737
Usually this means the macro was only invoked conditionally." >&2;}
22738
{ (exit 1); exit 1; }; }
22740
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22741
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22742
Usually this means the macro was only invoked conditionally." >&5
22743
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22744
Usually this means the macro was only invoked conditionally." >&2;}
22745
{ (exit 1); exit 1; }; }
22747
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22748
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22749
Usually this means the macro was only invoked conditionally." >&5
22750
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22751
Usually this means the macro was only invoked conditionally." >&2;}
22752
{ (exit 1); exit 1; }; }
22754
if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
22755
{ { echo "$as_me:$LINENO: error: conditional \"OS_WIN32\" was never defined.
22756
Usually this means the macro was only invoked conditionally." >&5
22757
echo "$as_me: error: conditional \"OS_WIN32\" was never defined.
22758
Usually this means the macro was only invoked conditionally." >&2;}
22759
{ (exit 1); exit 1; }; }
22761
if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
22762
{ { echo "$as_me:$LINENO: error: conditional \"PLATFORM_WIN32\" was never defined.
22763
Usually this means the macro was only invoked conditionally." >&5
22764
echo "$as_me: error: conditional \"PLATFORM_WIN32\" was never defined.
22765
Usually this means the macro was only invoked conditionally." >&2;}
22766
{ (exit 1); exit 1; }; }
22768
if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
22769
{ { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
22770
Usually this means the macro was only invoked conditionally." >&5
22771
echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
22772
Usually this means the macro was only invoked conditionally." >&2;}
22773
{ (exit 1); exit 1; }; }
22775
if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
22776
{ { echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
22777
Usually this means the macro was only invoked conditionally." >&5
22778
echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
22779
Usually this means the macro was only invoked conditionally." >&2;}
22780
{ (exit 1); exit 1; }; }
22783
: ${CONFIG_STATUS=./config.status}
22784
ac_clean_files_save=$ac_clean_files
22785
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22786
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22787
echo "$as_me: creating $CONFIG_STATUS" >&6;}
22788
cat >$CONFIG_STATUS <<_ACEOF
22790
# Generated by $as_me.
22791
# Run this file to recreate the current configuration.
22792
# Compiler output produced by configure, useful for debugging
22793
# configure, is in config.log if it exists.
22796
ac_cs_recheck=false
22798
SHELL=\${CONFIG_SHELL-$SHELL}
22801
cat >>$CONFIG_STATUS <<\_ACEOF
22802
## --------------------- ##
22803
## M4sh Initialization. ##
22804
## --------------------- ##
22806
# Be Bourne compatible
22807
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22810
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22811
# is contrary to our usage. Disable this feature.
22812
alias -g '${1+"$@"}'='"$@"'
22813
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22816
DUALCASE=1; export DUALCASE # for MKS sh
22818
# Support unset when possible.
22819
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22826
# Work around bugs in pre-3.0 UWIN ksh.
22827
$as_unset ENV MAIL MAILPATH
22834
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22835
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22836
LC_TELEPHONE LC_TIME
22838
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22839
eval $as_var=C; export $as_var
22845
# Required to use basename.
22846
if expr a : '\(a\)' >/dev/null 2>&1; then
22852
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22853
as_basename=basename
22859
# Name of the executable.
22860
as_me=`$as_basename "$0" ||
22861
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22862
X"$0" : 'X\(//\)$' \| \
22863
X"$0" : 'X\(/\)$' \| \
22864
. : '\(.\)' 2>/dev/null ||
22866
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22867
/^X\/\(\/\/\)$/{ s//\1/; q; }
22868
/^X\/\(\/\).*/{ s//\1/; q; }
22872
# PATH needs CR, and LINENO needs CR and PATH.
22873
# Avoid depending upon Character Ranges.
22874
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22875
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22876
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22877
as_cr_digits='0123456789'
22878
as_cr_alnum=$as_cr_Letters$as_cr_digits
22880
# The user is always right.
22881
if test "${PATH_SEPARATOR+set}" != set; then
22882
echo "#! /bin/sh" >conf$$.sh
22883
echo "exit 0" >>conf$$.sh
22885
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22894
as_lineno_1=$LINENO
22895
as_lineno_2=$LINENO
22896
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22897
test "x$as_lineno_1" != "x$as_lineno_2" &&
22898
test "x$as_lineno_3" = "x$as_lineno_2" || {
22899
# Find who we are. Look in the path if we contain no path at all
22902
*[\\/]* ) as_myself=$0 ;;
22903
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22904
for as_dir in $PATH
22907
test -z "$as_dir" && as_dir=.
22908
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22913
# We did not find ourselves, most probably we were run as `sh COMMAND'
22914
# in which case we are not to be found in the path.
22915
if test "x$as_myself" = x; then
22918
if test ! -f "$as_myself"; then
22919
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22920
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22921
{ (exit 1); exit 1; }; }
22923
case $CONFIG_SHELL in
22925
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22926
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22929
test -z "$as_dir" && as_dir=.
22930
for as_base in sh bash ksh sh5; do
22933
if ("$as_dir/$as_base" -c '
22934
as_lineno_1=$LINENO
22935
as_lineno_2=$LINENO
22936
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22937
test "x$as_lineno_1" != "x$as_lineno_2" &&
22938
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22939
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22940
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22941
CONFIG_SHELL=$as_dir/$as_base
22942
export CONFIG_SHELL
22943
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22951
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22952
# uniformly replaced by the line number. The first 'sed' inserts a
22953
# line-number line before each line; the second 'sed' does the real
22954
# work. The second script uses 'N' to pair each line-number line
22955
# with the numbered line, and appends trailing '-' during
22956
# substitution so that $LINENO is not a special case at line end.
22957
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22958
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22959
sed '=' <$as_myself |
22964
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22967
s,^['$as_cr_digits']*\n,,
22968
' >$as_me.lineno &&
22969
chmod +x $as_me.lineno ||
22970
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22971
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22972
{ (exit 1); exit 1; }; }
22974
# Don't try to exec as it changes $[0], causing all sort of problems
22975
# (the dirname of $[0] is not the place where we might find the
22976
# original and so on. Autoconf is especially sensible to this).
22978
# Exit status is that of the last command.
22983
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22984
*c*,-n*) ECHO_N= ECHO_C='
22986
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22987
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22990
if expr a : '\(a\)' >/dev/null 2>&1; then
22996
rm -f conf$$ conf$$.exe conf$$.file
22998
if ln -s conf$$.file conf$$ 2>/dev/null; then
22999
# We could just check for DJGPP; but this test a) works b) is more generic
23000
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23001
if test -f conf$$.exe; then
23002
# Don't use ln at all; we don't have any links
23007
elif ln conf$$.file conf$$ 2>/dev/null; then
23012
rm -f conf$$ conf$$.exe conf$$.file
23014
if mkdir -p . 2>/dev/null; then
23017
test -d ./-p && rmdir ./-p
23021
as_executable_p="test -f"
23023
# Sed expression to map a string onto a valid CPP name.
23024
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23026
# Sed expression to map a string onto a valid variable name.
23027
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23031
# We need space, tab and new line, in precisely that order.
23041
# Open the log real soon, to keep \$[0] and so on meaningful, and to
23042
# report actual input values of CONFIG_FILES etc. instead of their
23043
# values after options handling. Logging --version etc. is OK.
23047
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23048
## Running $as_me. ##
23053
This file was extended by libgnomecanvas $as_me 2.8.0, which was
23054
generated by GNU Autoconf 2.59. Invocation command line was
23056
CONFIG_FILES = $CONFIG_FILES
23057
CONFIG_HEADERS = $CONFIG_HEADERS
23058
CONFIG_LINKS = $CONFIG_LINKS
23059
CONFIG_COMMANDS = $CONFIG_COMMANDS
23063
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23067
# Files that config.status was made for.
23068
if test -n "$ac_config_files"; then
23069
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23072
if test -n "$ac_config_headers"; then
23073
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23076
if test -n "$ac_config_links"; then
23077
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23080
if test -n "$ac_config_commands"; then
23081
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23084
cat >>$CONFIG_STATUS <<\_ACEOF
23087
\`$as_me' instantiates files from templates according to the
23088
current configuration.
23090
Usage: $0 [OPTIONS] [FILE]...
23092
-h, --help print this help, then exit
23093
-V, --version print version number, then exit
23094
-q, --quiet do not print progress messages
23095
-d, --debug don't remove temporary files
23096
--recheck update $as_me by reconfiguring in the same conditions
23097
--file=FILE[:TEMPLATE]
23098
instantiate the configuration file FILE
23099
--header=FILE[:TEMPLATE]
23100
instantiate the configuration header FILE
23102
Configuration files:
23105
Configuration headers:
23108
Configuration commands:
23111
Report bugs to <bug-autoconf@gnu.org>."
23114
cat >>$CONFIG_STATUS <<_ACEOF
23116
libgnomecanvas config.status 2.8.0
23117
configured by $0, generated by GNU Autoconf 2.59,
23118
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23120
Copyright (C) 2003 Free Software Foundation, Inc.
23121
This config.status script is free software; the Free Software Foundation
23122
gives unlimited permission to copy, distribute and modify it."
23127
cat >>$CONFIG_STATUS <<\_ACEOF
23128
# If no file are specified by the user, then we need to provide default
23129
# value. By we need to know if files were specified by the user.
23135
ac_option=`expr "x$1" : 'x\([^=]*\)='`
23136
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23144
*) # This is not an option, so the user has probably given explicit
23147
ac_need_defaults=false;;
23151
# Handling of the options.
23153
cat >>$CONFIG_STATUS <<\_ACEOF
23154
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23156
--version | --vers* | -V )
23157
echo "$ac_cs_version"; exit 0 ;;
23159
# Conflict between --help and --header
23160
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
23161
Try \`$0 --help' for more information." >&5
23162
echo "$as_me: error: ambiguous option: $1
23163
Try \`$0 --help' for more information." >&2;}
23164
{ (exit 1); exit 1; }; };;
23165
--help | --hel | -h )
23166
echo "$ac_cs_usage"; exit 0 ;;
23167
--debug | --d* | -d )
23169
--file | --fil | --fi | --f )
23171
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23172
ac_need_defaults=false;;
23173
--header | --heade | --head | --hea )
23175
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23176
ac_need_defaults=false;;
23177
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
23178
| -silent | --silent | --silen | --sile | --sil | --si | --s)
23181
# This is an error.
23182
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23183
Try \`$0 --help' for more information." >&5
23184
echo "$as_me: error: unrecognized option: $1
23185
Try \`$0 --help' for more information." >&2;}
23186
{ (exit 1); exit 1; }; } ;;
23188
*) ac_config_targets="$ac_config_targets $1" ;;
23194
ac_configure_extra_args=
23196
if $ac_cs_silent; then
23198
ac_configure_extra_args="$ac_configure_extra_args --silent"
23202
cat >>$CONFIG_STATUS <<_ACEOF
23203
if \$ac_cs_recheck; then
23204
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23205
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23210
cat >>$CONFIG_STATUS <<_ACEOF
23212
# INIT-COMMANDS section.
23215
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23222
cat >>$CONFIG_STATUS <<\_ACEOF
23223
for ac_config_target in $ac_config_targets
23225
case "$ac_config_target" in
23226
# Handling of arguments.
23227
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23228
"po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
23229
"libgnomecanvas/Makefile" ) CONFIG_FILES="$CONFIG_FILES libgnomecanvas/Makefile" ;;
23230
"libgnomecanvas/libgnomecanvas-2.0.pc" ) CONFIG_FILES="$CONFIG_FILES libgnomecanvas/libgnomecanvas-2.0.pc" ;;
23231
"libgnomecanvas/libgnomecanvas-2.0-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES libgnomecanvas/libgnomecanvas-2.0-uninstalled.pc" ;;
23232
"glade/Makefile" ) CONFIG_FILES="$CONFIG_FILES glade/Makefile" ;;
23233
"demos/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/Makefile" ;;
23234
"tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
23235
"docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
23236
"docs/reference/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
23237
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23238
"default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23239
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23240
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23241
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23242
{ (exit 1); exit 1; }; };;
23246
# If the user did not use the arguments to specify the items to instantiate,
23247
# then the envvar interface is used. Set only those that are not.
23248
# We use the long form for the default assignment because of an extremely
23249
# bizarre bug on SunOS 4.1.3.
23250
if $ac_need_defaults; then
23251
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23252
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23253
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23256
# Have a temporary directory for convenience. Make it in the build tree
23257
# simply because there is no reason to put it here, and in addition,
23258
# creating and moving files from /tmp can sometimes cause problems.
23259
# Create a temporary directory, and hook for its removal unless debugging.
23262
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23263
trap '{ (exit 1); exit 1; }' 1 2 13 15
23266
# Create a (secure) tmp directory for tmp files.
23269
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23270
test -n "$tmp" && test -d "$tmp"
23273
tmp=./confstat$$-$RANDOM
23274
(umask 077 && mkdir $tmp)
23277
echo "$me: cannot create a temporary directory in ." >&2
23278
{ (exit 1); exit 1; }
23283
cat >>$CONFIG_STATUS <<_ACEOF
23286
# CONFIG_FILES section.
23289
# No need to generate the scripts if there are no CONFIG_FILES.
23290
# This happens for instance when ./config.status config.h
23291
if test -n "\$CONFIG_FILES"; then
23292
# Protect against being on the right side of a sed subst in config.status.
23293
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23294
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23295
s,@SHELL@,$SHELL,;t t
23296
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23297
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23298
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23299
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23300
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23301
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23302
s,@exec_prefix@,$exec_prefix,;t t
23303
s,@prefix@,$prefix,;t t
23304
s,@program_transform_name@,$program_transform_name,;t t
23305
s,@bindir@,$bindir,;t t
23306
s,@sbindir@,$sbindir,;t t
23307
s,@libexecdir@,$libexecdir,;t t
23308
s,@datadir@,$datadir,;t t
23309
s,@sysconfdir@,$sysconfdir,;t t
23310
s,@sharedstatedir@,$sharedstatedir,;t t
23311
s,@localstatedir@,$localstatedir,;t t
23312
s,@libdir@,$libdir,;t t
23313
s,@includedir@,$includedir,;t t
23314
s,@oldincludedir@,$oldincludedir,;t t
23315
s,@infodir@,$infodir,;t t
23316
s,@mandir@,$mandir,;t t
23317
s,@build_alias@,$build_alias,;t t
23318
s,@host_alias@,$host_alias,;t t
23319
s,@target_alias@,$target_alias,;t t
23320
s,@DEFS@,$DEFS,;t t
23321
s,@ECHO_C@,$ECHO_C,;t t
23322
s,@ECHO_N@,$ECHO_N,;t t
23323
s,@ECHO_T@,$ECHO_T,;t t
23324
s,@LIBS@,$LIBS,;t t
23325
s,@LIBGNOMECANVAS_CURRENT@,$LIBGNOMECANVAS_CURRENT,;t t
23326
s,@LIBGNOMECANVAS_REVISION@,$LIBGNOMECANVAS_REVISION,;t t
23327
s,@LIBGNOMECANVAS_AGE@,$LIBGNOMECANVAS_AGE,;t t
23328
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23329
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23330
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23331
s,@CYGPATH_W@,$CYGPATH_W,;t t
23332
s,@PACKAGE@,$PACKAGE,;t t
23333
s,@VERSION@,$VERSION,;t t
23334
s,@ACLOCAL@,$ACLOCAL,;t t
23335
s,@AUTOCONF@,$AUTOCONF,;t t
23336
s,@AUTOMAKE@,$AUTOMAKE,;t t
23337
s,@AUTOHEADER@,$AUTOHEADER,;t t
23338
s,@MAKEINFO@,$MAKEINFO,;t t
23339
s,@AMTAR@,$AMTAR,;t t
23340
s,@install_sh@,$install_sh,;t t
23341
s,@STRIP@,$STRIP,;t t
23342
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23343
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23345
s,@SET_MAKE@,$SET_MAKE,;t t
23346
s,@am__leading_dot@,$am__leading_dot,;t t
23347
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23348
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23349
s,@MAINT@,$MAINT,;t t
23350
s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t
23352
s,@CFLAGS@,$CFLAGS,;t t
23353
s,@LDFLAGS@,$LDFLAGS,;t t
23354
s,@CPPFLAGS@,$CPPFLAGS,;t t
23355
s,@ac_ct_CC@,$ac_ct_CC,;t t
23356
s,@EXEEXT@,$EXEEXT,;t t
23357
s,@OBJEXT@,$OBJEXT,;t t
23358
s,@DEPDIR@,$DEPDIR,;t t
23359
s,@am__include@,$am__include,;t t
23360
s,@am__quote@,$am__quote,;t t
23361
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23362
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23363
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23364
s,@CCDEPMODE@,$CCDEPMODE,;t t
23365
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23366
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23368
s,@EGREP@,$EGREP,;t t
23369
s,@build@,$build,;t t
23370
s,@build_cpu@,$build_cpu,;t t
23371
s,@build_vendor@,$build_vendor,;t t
23372
s,@build_os@,$build_os,;t t
23373
s,@host@,$host,;t t
23374
s,@host_cpu@,$host_cpu,;t t
23375
s,@host_vendor@,$host_vendor,;t t
23376
s,@host_os@,$host_os,;t t
23377
s,@LN_S@,$LN_S,;t t
23378
s,@ECHO@,$ECHO,;t t
23380
s,@ac_ct_AR@,$ac_ct_AR,;t t
23381
s,@RANLIB@,$RANLIB,;t t
23382
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23383
s,@DLLTOOL@,$DLLTOOL,;t t
23384
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
23386
s,@ac_ct_AS@,$ac_ct_AS,;t t
23387
s,@OBJDUMP@,$OBJDUMP,;t t
23388
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
23390
s,@CXXFLAGS@,$CXXFLAGS,;t t
23391
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23392
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23393
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23394
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23395
s,@CXXCPP@,$CXXCPP,;t t
23397
s,@FFLAGS@,$FFLAGS,;t t
23398
s,@ac_ct_F77@,$ac_ct_F77,;t t
23399
s,@LIBTOOL@,$LIBTOOL,;t t
23400
s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
23401
s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
23402
s,@USE_NLS@,$USE_NLS,;t t
23403
s,@MSGFMT@,$MSGFMT,;t t
23404
s,@GMSGFMT@,$GMSGFMT,;t t
23405
s,@XGETTEXT@,$XGETTEXT,;t t
23406
s,@CATALOGS@,$CATALOGS,;t t
23407
s,@CATOBJEXT@,$CATOBJEXT,;t t
23408
s,@DATADIRNAME@,$DATADIRNAME,;t t
23409
s,@GMOFILES@,$GMOFILES,;t t
23410
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
23411
s,@INTLLIBS@,$INTLLIBS,;t t
23412
s,@PO_IN_DATADIR_TRUE@,$PO_IN_DATADIR_TRUE,;t t
23413
s,@PO_IN_DATADIR_FALSE@,$PO_IN_DATADIR_FALSE,;t t
23414
s,@POFILES@,$POFILES,;t t
23415
s,@POSUB@,$POSUB,;t t
23416
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
23417
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23418
s,@LIBGNOMECANVAS_CFLAGS@,$LIBGNOMECANVAS_CFLAGS,;t t
23419
s,@LIBGNOMECANVAS_LIBS@,$LIBGNOMECANVAS_LIBS,;t t
23420
s,@CANVAS_GLADE_CFLAGS@,$CANVAS_GLADE_CFLAGS,;t t
23421
s,@CANVAS_GLADE_LIBS@,$CANVAS_GLADE_LIBS,;t t
23422
s,@OS_WIN32_TRUE@,$OS_WIN32_TRUE,;t t
23423
s,@OS_WIN32_FALSE@,$OS_WIN32_FALSE,;t t
23424
s,@PLATFORM_WIN32_TRUE@,$PLATFORM_WIN32_TRUE,;t t
23425
s,@PLATFORM_WIN32_FALSE@,$PLATFORM_WIN32_FALSE,;t t
23426
s,@PERL@,$PERL,;t t
23427
s,@GLIB_GENMARSHAL@,$GLIB_GENMARSHAL,;t t
23428
s,@HTML_DIR@,$HTML_DIR,;t t
23429
s,@ENABLE_GTK_DOC_TRUE@,$ENABLE_GTK_DOC_TRUE,;t t
23430
s,@ENABLE_GTK_DOC_FALSE@,$ENABLE_GTK_DOC_FALSE,;t t
23431
s,@GTK_DOC_USE_LIBTOOL_TRUE@,$GTK_DOC_USE_LIBTOOL_TRUE,;t t
23432
s,@GTK_DOC_USE_LIBTOOL_FALSE@,$GTK_DOC_USE_LIBTOOL_FALSE,;t t
23433
s,@REBUILD@,$REBUILD,;t t
23434
s,@LIBOBJS@,$LIBOBJS,;t t
23435
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23440
cat >>$CONFIG_STATUS <<\_ACEOF
23441
# Split the substitutions into bite-sized pieces for seds with
23442
# small command number limits, like on Digital OSF/1 and HP-UX.
23443
ac_max_sed_lines=48
23444
ac_sed_frag=1 # Number of current file.
23445
ac_beg=1 # First line for current file.
23446
ac_end=$ac_max_sed_lines # Line after last line for current file.
23449
while $ac_more_lines; do
23450
if test $ac_beg -gt 1; then
23451
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23453
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23455
if test ! -s $tmp/subs.frag; then
23456
ac_more_lines=false
23458
# The purpose of the label and of the branching condition is to
23459
# speed up the sed processing (if there are no `@' at all, there
23460
# is no need to browse any of the substitutions).
23461
# These are the two extra sed commands mentioned above.
23463
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23464
if test -z "$ac_sed_cmds"; then
23465
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23467
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23469
ac_sed_frag=`expr $ac_sed_frag + 1`
23471
ac_end=`expr $ac_end + $ac_max_sed_lines`
23474
if test -z "$ac_sed_cmds"; then
23477
fi # test -n "$CONFIG_FILES"
23480
cat >>$CONFIG_STATUS <<\_ACEOF
23481
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23482
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23484
- | *:- | *:-:* ) # input from stdin
23486
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23487
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23488
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23489
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23490
* ) ac_file_in=$ac_file.in ;;
23493
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23494
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23495
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23496
X"$ac_file" : 'X\(//\)[^/]' \| \
23497
X"$ac_file" : 'X\(//\)$' \| \
23498
X"$ac_file" : 'X\(/\)' \| \
23499
. : '\(.\)' 2>/dev/null ||
23501
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23502
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23503
/^X\(\/\/\)$/{ s//\1/; q; }
23504
/^X\(\/\).*/{ s//\1/; q; }
23506
{ if $as_mkdir_p; then
23511
while test ! -d "$as_dir"; do
23512
as_dirs="$as_dir $as_dirs"
23513
as_dir=`(dirname "$as_dir") 2>/dev/null ||
23514
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23515
X"$as_dir" : 'X\(//\)[^/]' \| \
23516
X"$as_dir" : 'X\(//\)$' \| \
23517
X"$as_dir" : 'X\(/\)' \| \
23518
. : '\(.\)' 2>/dev/null ||
23520
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23521
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23522
/^X\(\/\/\)$/{ s//\1/; q; }
23523
/^X\(\/\).*/{ s//\1/; q; }
23526
test ! -n "$as_dirs" || mkdir $as_dirs
23527
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23528
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23529
{ (exit 1); exit 1; }; }; }
23533
if test "$ac_dir" != .; then
23534
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23535
# A "../" for each directory in $ac_dir_suffix.
23536
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23538
ac_dir_suffix= ac_top_builddir=
23542
.) # No --srcdir option. We are building in place.
23544
if test -z "$ac_top_builddir"; then
23547
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23549
[\\/]* | ?:[\\/]* ) # Absolute path.
23550
ac_srcdir=$srcdir$ac_dir_suffix;
23551
ac_top_srcdir=$srcdir ;;
23552
*) # Relative path.
23553
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23554
ac_top_srcdir=$ac_top_builddir$srcdir ;;
23557
# Do not use `cd foo && pwd` to compute absolute paths, because
23558
# the directories may not exist.
23560
.) ac_abs_builddir="$ac_dir";;
23563
.) ac_abs_builddir=`pwd`;;
23564
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23565
*) ac_abs_builddir=`pwd`/"$ac_dir";;
23568
case $ac_abs_builddir in
23569
.) ac_abs_top_builddir=${ac_top_builddir}.;;
23571
case ${ac_top_builddir}. in
23572
.) ac_abs_top_builddir=$ac_abs_builddir;;
23573
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23574
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23577
case $ac_abs_builddir in
23578
.) ac_abs_srcdir=$ac_srcdir;;
23581
.) ac_abs_srcdir=$ac_abs_builddir;;
23582
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23583
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23586
case $ac_abs_builddir in
23587
.) ac_abs_top_srcdir=$ac_top_srcdir;;
23589
case $ac_top_srcdir in
23590
.) ac_abs_top_srcdir=$ac_abs_builddir;;
23591
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23592
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23598
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23599
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23602
if test x"$ac_file" != x-; then
23603
{ echo "$as_me:$LINENO: creating $ac_file" >&5
23604
echo "$as_me: creating $ac_file" >&6;}
23607
# Let's still pretend it is `configure' which instantiates (i.e., don't
23608
# use $as_me), people would be surprised to read:
23609
# /* config.h. Generated by config.status. */
23610
if test x"$ac_file" = x-; then
23613
configure_input="$ac_file. "
23615
configure_input=$configure_input"Generated from `echo $ac_file_in |
23616
sed 's,.*/,,'` by configure."
23618
# First look for the input files in the build tree, otherwise in the
23620
ac_file_inputs=`IFS=:
23621
for f in $ac_file_in; do
23623
-) echo $tmp/stdin ;;
23625
# Absolute (can't be DOS-style, as IFS=:)
23626
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23627
echo "$as_me: error: cannot find input file: $f" >&2;}
23628
{ (exit 1); exit 1; }; }
23631
if test -f "$f"; then
23634
elif test -f "$srcdir/$f"; then
23639
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23640
echo "$as_me: error: cannot find input file: $f" >&2;}
23641
{ (exit 1); exit 1; }; }
23644
done` || { (exit 1); exit 1; }
23646
cat >>$CONFIG_STATUS <<_ACEOF
23650
cat >>$CONFIG_STATUS <<\_ACEOF
23652
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23653
s,@configure_input@,$configure_input,;t t
23654
s,@srcdir@,$ac_srcdir,;t t
23655
s,@abs_srcdir@,$ac_abs_srcdir,;t t
23656
s,@top_srcdir@,$ac_top_srcdir,;t t
23657
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23658
s,@builddir@,$ac_builddir,;t t
23659
s,@abs_builddir@,$ac_abs_builddir,;t t
23660
s,@top_builddir@,$ac_top_builddir,;t t
23661
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23662
s,@INSTALL@,$ac_INSTALL,;t t
23663
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23665
if test x"$ac_file" != x-; then
23666
mv $tmp/out $ac_file
23674
cat >>$CONFIG_STATUS <<\_ACEOF
23677
# CONFIG_HEADER section.
23680
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23681
# NAME is the cpp macro being defined and VALUE is the value it is being given.
23683
# ac_d sets the value in "#define NAME VALUE" lines.
23684
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23685
ac_dB='[ ].*$,\1#\2'
23688
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23689
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23690
ac_uB='$,\1#\2define\3'
23694
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23695
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23697
- | *:- | *:-:* ) # input from stdin
23699
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23700
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23701
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23702
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23703
* ) ac_file_in=$ac_file.in ;;
23706
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23707
echo "$as_me: creating $ac_file" >&6;}
23709
# First look for the input files in the build tree, otherwise in the
23711
ac_file_inputs=`IFS=:
23712
for f in $ac_file_in; do
23714
-) echo $tmp/stdin ;;
23716
# Absolute (can't be DOS-style, as IFS=:)
23717
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23718
echo "$as_me: error: cannot find input file: $f" >&2;}
23719
{ (exit 1); exit 1; }; }
23720
# Do quote $f, to prevent DOS paths from being IFS'd.
23723
if test -f "$f"; then
23726
elif test -f "$srcdir/$f"; then
23731
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23732
echo "$as_me: error: cannot find input file: $f" >&2;}
23733
{ (exit 1); exit 1; }; }
23736
done` || { (exit 1); exit 1; }
23737
# Remove the trailing spaces.
23738
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23742
# Transform confdefs.h into two sed scripts, `conftest.defines' and
23743
# `conftest.undefs', that substitutes the proper values into
23744
# config.h.in to produce config.h. The first handles `#define'
23745
# templates, and the second `#undef' templates.
23746
# And first: Protect against being on the right side of a sed subst in
23747
# config.status. Protect against being in an unquoted here document
23748
# in config.status.
23749
rm -f conftest.defines conftest.undefs
23750
# Using a here document instead of a string reduces the quoting nightmare.
23751
# Putting comments in sed scripts is not portable.
23753
# `end' is used to avoid that the second main sed command (meant for
23754
# 0-ary CPP macros) applies to n-ary macro definitions.
23755
# See the Autoconf documentation for `clear'.
23756
cat >confdef2sed.sed <<\_ACEOF
23761
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23763
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23766
# If some macros were called several times there might be several times
23767
# the same #defines, which is useless. Nevertheless, we may not want to
23768
# sort them, since we want the *last* AC-DEFINE to be honored.
23769
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23770
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23771
rm -f confdef2sed.sed
23773
# This sed command replaces #undef with comments. This is necessary, for
23774
# example, in the case of _POSIX_SOURCE, which is predefined and required
23775
# on some systems where configure will not decide to define it.
23776
cat >>conftest.undefs <<\_ACEOF
23777
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23780
# Break up conftest.defines because some shells have a limit on the size
23781
# of here documents, and old seds have small limits too (100 cmds).
23782
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23783
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23784
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23785
echo ' :' >>$CONFIG_STATUS
23786
rm -f conftest.tail
23787
while grep . conftest.defines >/dev/null
23789
# Write a limited-size here document to $tmp/defines.sed.
23790
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23791
# Speed up: don't consider the non `#define' lines.
23792
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23793
# Work around the forget-to-reset-the-flag bug.
23794
echo 't clr' >>$CONFIG_STATUS
23795
echo ': clr' >>$CONFIG_STATUS
23796
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23798
sed -f $tmp/defines.sed $tmp/in >$tmp/out
23800
mv $tmp/out $tmp/in
23802
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23803
rm -f conftest.defines
23804
mv conftest.tail conftest.defines
23806
rm -f conftest.defines
23807
echo ' fi # grep' >>$CONFIG_STATUS
23808
echo >>$CONFIG_STATUS
23810
# Break up conftest.undefs because some shells have a limit on the size
23811
# of here documents, and old seds have small limits too (100 cmds).
23812
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23813
rm -f conftest.tail
23814
while grep . conftest.undefs >/dev/null
23816
# Write a limited-size here document to $tmp/undefs.sed.
23817
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23818
# Speed up: don't consider the non `#undef'
23819
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23820
# Work around the forget-to-reset-the-flag bug.
23821
echo 't clr' >>$CONFIG_STATUS
23822
echo ': clr' >>$CONFIG_STATUS
23823
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23825
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23827
mv $tmp/out $tmp/in
23829
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23830
rm -f conftest.undefs
23831
mv conftest.tail conftest.undefs
23833
rm -f conftest.undefs
23835
cat >>$CONFIG_STATUS <<\_ACEOF
23836
# Let's still pretend it is `configure' which instantiates (i.e., don't
23837
# use $as_me), people would be surprised to read:
23838
# /* config.h. Generated by config.status. */
23839
if test x"$ac_file" = x-; then
23840
echo "/* Generated by configure. */" >$tmp/config.h
23842
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23844
cat $tmp/in >>$tmp/config.h
23846
if test x"$ac_file" != x-; then
23847
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23848
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23849
echo "$as_me: $ac_file is unchanged" >&6;}
23851
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23852
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23853
X"$ac_file" : 'X\(//\)[^/]' \| \
23854
X"$ac_file" : 'X\(//\)$' \| \
23855
X"$ac_file" : 'X\(/\)' \| \
23856
. : '\(.\)' 2>/dev/null ||
23858
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23859
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23860
/^X\(\/\/\)$/{ s//\1/; q; }
23861
/^X\(\/\).*/{ s//\1/; q; }
23863
{ if $as_mkdir_p; then
23868
while test ! -d "$as_dir"; do
23869
as_dirs="$as_dir $as_dirs"
23870
as_dir=`(dirname "$as_dir") 2>/dev/null ||
23871
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23872
X"$as_dir" : 'X\(//\)[^/]' \| \
23873
X"$as_dir" : 'X\(//\)$' \| \
23874
X"$as_dir" : 'X\(/\)' \| \
23875
. : '\(.\)' 2>/dev/null ||
23877
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23878
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23879
/^X\(\/\/\)$/{ s//\1/; q; }
23880
/^X\(\/\).*/{ s//\1/; q; }
23883
test ! -n "$as_dirs" || mkdir $as_dirs
23884
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23885
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23886
{ (exit 1); exit 1; }; }; }
23889
mv $tmp/config.h $ac_file
23893
rm -f $tmp/config.h
23895
# Compute $ac_file's index in $config_headers.
23897
for _am_header in $config_headers :; do
23898
case $_am_header in
23899
$ac_file | $ac_file:* )
23902
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
23905
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23906
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23907
X$ac_file : 'X\(//\)[^/]' \| \
23908
X$ac_file : 'X\(//\)$' \| \
23909
X$ac_file : 'X\(/\)' \| \
23910
. : '\(.\)' 2>/dev/null ||
23912
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23913
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23914
/^X\(\/\/\)$/{ s//\1/; q; }
23915
/^X\(\/\).*/{ s//\1/; q; }
23916
s/.*/./; q'`/stamp-h$_am_stamp_count
23919
cat >>$CONFIG_STATUS <<\_ACEOF
23922
# CONFIG_COMMANDS section.
23924
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23925
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23926
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23927
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23928
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23929
X"$ac_dest" : 'X\(//\)[^/]' \| \
23930
X"$ac_dest" : 'X\(//\)$' \| \
23931
X"$ac_dest" : 'X\(/\)' \| \
23932
. : '\(.\)' 2>/dev/null ||
23934
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23935
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23936
/^X\(\/\/\)$/{ s//\1/; q; }
23937
/^X\(\/\).*/{ s//\1/; q; }
23939
{ if $as_mkdir_p; then
23944
while test ! -d "$as_dir"; do
23945
as_dirs="$as_dir $as_dirs"
23946
as_dir=`(dirname "$as_dir") 2>/dev/null ||
23947
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23948
X"$as_dir" : 'X\(//\)[^/]' \| \
23949
X"$as_dir" : 'X\(//\)$' \| \
23950
X"$as_dir" : 'X\(/\)' \| \
23951
. : '\(.\)' 2>/dev/null ||
23953
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23954
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23955
/^X\(\/\/\)$/{ s//\1/; q; }
23956
/^X\(\/\).*/{ s//\1/; q; }
23959
test ! -n "$as_dirs" || mkdir $as_dirs
23960
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23961
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23962
{ (exit 1); exit 1; }; }; }
23966
if test "$ac_dir" != .; then
23967
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23968
# A "../" for each directory in $ac_dir_suffix.
23969
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23971
ac_dir_suffix= ac_top_builddir=
23975
.) # No --srcdir option. We are building in place.
23977
if test -z "$ac_top_builddir"; then
23980
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23982
[\\/]* | ?:[\\/]* ) # Absolute path.
23983
ac_srcdir=$srcdir$ac_dir_suffix;
23984
ac_top_srcdir=$srcdir ;;
23985
*) # Relative path.
23986
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23987
ac_top_srcdir=$ac_top_builddir$srcdir ;;
23990
# Do not use `cd foo && pwd` to compute absolute paths, because
23991
# the directories may not exist.
23993
.) ac_abs_builddir="$ac_dir";;
23996
.) ac_abs_builddir=`pwd`;;
23997
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23998
*) ac_abs_builddir=`pwd`/"$ac_dir";;
24001
case $ac_abs_builddir in
24002
.) ac_abs_top_builddir=${ac_top_builddir}.;;
24004
case ${ac_top_builddir}. in
24005
.) ac_abs_top_builddir=$ac_abs_builddir;;
24006
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24007
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24010
case $ac_abs_builddir in
24011
.) ac_abs_srcdir=$ac_srcdir;;
24014
.) ac_abs_srcdir=$ac_abs_builddir;;
24015
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24016
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24019
case $ac_abs_builddir in
24020
.) ac_abs_top_srcdir=$ac_top_srcdir;;
24022
case $ac_top_srcdir in
24023
.) ac_abs_top_srcdir=$ac_abs_builddir;;
24024
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24025
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24030
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24031
echo "$as_me: executing $ac_dest commands" >&6;}
24033
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24034
# Strip MF so we end up with the name of the file.
24035
mf=`echo "$mf" | sed -e 's/:.*$//'`
24036
# Check whether this is an Automake generated Makefile or not.
24037
# We used to match only the files named `Makefile.in', but
24038
# some people rename them; so instead we look at the file content.
24039
# Grep'ing the first line is not enough: some people post-process
24040
# each Makefile.in and add a new line on top of each file to say so.
24041
# So let's grep whole file.
24042
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24043
dirpart=`(dirname "$mf") 2>/dev/null ||
24044
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24045
X"$mf" : 'X\(//\)[^/]' \| \
24046
X"$mf" : 'X\(//\)$' \| \
24047
X"$mf" : 'X\(/\)' \| \
24048
. : '\(.\)' 2>/dev/null ||
24050
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24051
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24052
/^X\(\/\/\)$/{ s//\1/; q; }
24053
/^X\(\/\).*/{ s//\1/; q; }
24058
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
24059
# Extract the definition of DEP_FILES from the Makefile without
24061
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
24062
test -z "$DEPDIR" && continue
24063
# When using ansi2knr, U may be empty or an underscore; expand it
24064
U=`sed -n -e '/^U = / s///p' < "$mf"`
24065
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
24066
# We invoke sed twice because it is the simplest approach to
24067
# changing $(DEPDIR) to its actual value in the expansion.
24068
for file in `sed -n -e '
24069
/^DEP_FILES = .*\\\\$/ {
24078
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
24079
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24080
# Make sure the directory exists.
24081
test -f "$dirpart/$file" && continue
24082
fdir=`(dirname "$file") 2>/dev/null ||
24083
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24084
X"$file" : 'X\(//\)[^/]' \| \
24085
X"$file" : 'X\(//\)$' \| \
24086
X"$file" : 'X\(/\)' \| \
24087
. : '\(.\)' 2>/dev/null ||
24089
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24090
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24091
/^X\(\/\/\)$/{ s//\1/; q; }
24092
/^X\(\/\).*/{ s//\1/; q; }
24094
{ if $as_mkdir_p; then
24095
mkdir -p $dirpart/$fdir
24097
as_dir=$dirpart/$fdir
24099
while test ! -d "$as_dir"; do
24100
as_dirs="$as_dir $as_dirs"
24101
as_dir=`(dirname "$as_dir") 2>/dev/null ||
24102
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24103
X"$as_dir" : 'X\(//\)[^/]' \| \
24104
X"$as_dir" : 'X\(//\)$' \| \
24105
X"$as_dir" : 'X\(/\)' \| \
24106
. : '\(.\)' 2>/dev/null ||
24108
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24109
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24110
/^X\(\/\/\)$/{ s//\1/; q; }
24111
/^X\(\/\).*/{ s//\1/; q; }
24114
test ! -n "$as_dirs" || mkdir $as_dirs
24115
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24116
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24117
{ (exit 1); exit 1; }; }; }
24119
# echo "creating $dirpart/$file"
24120
echo '# dummy' > "$dirpart/$file"
24124
default-1 ) case "$CONFIG_FILES" in *po/Makefile.in*)
24125
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
24131
cat >>$CONFIG_STATUS <<\_ACEOF
24133
{ (exit 0); exit 0; }
24135
chmod +x $CONFIG_STATUS
24136
ac_clean_files=$ac_clean_files_save
24139
# configure is writing to config.log, and then calls config.status.
24140
# config.status does its own redirection, appending to config.log.
24141
# Unfortunately, on DOS this fails, as config.log is still kept open
24142
# by configure, so config.status won't be able to write to it; its
24143
# output is simply discarded. So we exec the FD to /dev/null,
24144
# effectively closing config.log, so it can be properly (re)opened and
24145
# appended to by config.status. When coming back to configure, we
24146
# need to make the FD available again.
24147
if test "$no_create" != yes; then
24149
ac_config_status_args=
24150
test "$silent" = yes &&
24151
ac_config_status_args="$ac_config_status_args --quiet"
24153
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24155
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
24156
# would make configure fail if this is the last instruction.
24157
$ac_cs_success || { (exit 1); exit 1; }