2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59.
5
# Copyright (C) 2003 Free Software Foundation, Inc.
6
# This configure script is free software; the Free Software Foundation
7
# gives unlimited permission to copy, distribute and modify it.
8
## --------------------- ##
9
## M4sh Initialization. ##
10
## --------------------- ##
12
# Be Bourne compatible
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
# is contrary to our usage. Disable this feature.
18
alias -g '${1+"$@"}'='"$@"'
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22
DUALCASE=1; export DUALCASE # for MKS sh
24
# Support unset when possible.
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
40
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
eval $as_var=C; export $as_var
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65
# Name of the executable.
66
as_me=`$as_basename "$0" ||
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
X"$0" : 'X\(//\)$' \| \
69
X"$0" : 'X\(/\)$' \| \
70
. : '\(.\)' 2>/dev/null ||
72
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
/^X\/\(\/\/\)$/{ s//\1/; q; }
74
/^X\/\(\/\).*/{ s//\1/; q; }
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
echo "#! /bin/sh" >conf$$.sh
89
echo "exit 0" >>conf$$.sh
91
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
test "x$as_lineno_1" != "x$as_lineno_2" &&
104
test "x$as_lineno_3" = "x$as_lineno_2" || {
105
# Find who we are. Look in the path if we contain no path at all
108
*[\\/]* ) as_myself=$0 ;;
109
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113
test -z "$as_dir" && as_dir=.
114
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119
# We did not find ourselves, most probably we were run as `sh COMMAND'
120
# in which case we are not to be found in the path.
121
if test "x$as_myself" = x; then
124
if test ! -f "$as_myself"; then
125
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
{ (exit 1); exit 1; }; }
128
case $CONFIG_SHELL in
130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
test -z "$as_dir" && as_dir=.
135
for as_base in sh bash ksh sh5; do
138
if ("$as_dir/$as_base" -c '
141
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
test "x$as_lineno_1" != "x$as_lineno_2" &&
143
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
CONFIG_SHELL=$as_dir/$as_base
148
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
# uniformly replaced by the line number. The first 'sed' inserts a
158
# line-number line before each line; the second 'sed' does the real
159
# work. The second script uses 'N' to pair each line-number line
160
# with the numbered line, and appends trailing '-' during
161
# substitution so that $LINENO is not a special case at line end.
162
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164
sed '=' <$as_myself |
169
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172
s,^['$as_cr_digits']*\n,,
174
chmod +x $as_me.lineno ||
175
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
{ (exit 1); exit 1; }; }
178
# Don't try to exec as it changes $[0], causing all sort of problems
179
# (the dirname of $[0] is not the place where we might find the
180
# original and so on. Autoconf is especially sensible to this).
182
# Exit status is that of the last command.
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
*c*,-n*) ECHO_N= ECHO_C='
190
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194
if expr a : '\(a\)' >/dev/null 2>&1; then
200
rm -f conf$$ conf$$.exe conf$$.file
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
# We could just check for DJGPP; but this test a) works b) is more generic
204
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
if test -f conf$$.exe; then
206
# Don't use ln at all; we don't have any links
211
elif ln conf$$.file conf$$ 2>/dev/null; then
216
rm -f conf$$ conf$$.exe conf$$.file
218
if mkdir -p . 2>/dev/null; then
221
test -d ./-p && rmdir ./-p
225
as_executable_p="test -f"
227
# Sed expression to map a string onto a valid CPP name.
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
# Sed expression to map a string onto a valid variable name.
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
# We need space, tab and new line, in precisely that order.
245
# Check that we are running under the correct shell.
246
SHELL=${CONFIG_SHELL-/bin/sh}
250
# Remove one level of quotation (which was required for Make).
251
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256
if test "X$1" = X--no-reexec; then
257
# Discard the --no-reexec flag, and continue.
259
elif test "X$1" = X--fallback-echo; then
260
# Avoid inline document here, it may be left over
262
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263
# Yippee, $echo works!
266
# Restart under the correct shell.
267
exec $SHELL "$0" --no-reexec ${1+"$@"}
270
if test "X$1" = X--fallback-echo; then
271
# used as fallback echo
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
281
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
if test -z "$ECHO"; then
284
if test "X${echo_test_string+set}" != Xset; then
285
# find a string as large as possible, as long as the shell can cope with it
286
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289
echo_test_string="`eval $cmd`" &&
290
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299
test "X$echo_testing_string" = "X$echo_test_string"; then
302
# The Solaris, AIX, and Digital Unix default echo programs unquote
303
# backslashes. This makes it impossible to quote backslashes using
304
# echo "$something" | sed 's/\\/\\\\/g'
306
# So, first we look for a working echo in the user's PATH.
308
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309
for dir in $PATH /usr/ucb; do
311
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314
test "X$echo_testing_string" = "X$echo_test_string"; then
321
if test "X$echo" = Xecho; then
322
# We didn't find a better echo, so look for alternatives.
323
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325
test "X$echo_testing_string" = "X$echo_test_string"; then
326
# This shell has a builtin print -r that does the trick.
328
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329
test "X$CONFIG_SHELL" != X/bin/ksh; then
330
# If we have ksh, try running configure again with it.
331
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332
export ORIGINAL_CONFIG_SHELL
333
CONFIG_SHELL=/bin/ksh
335
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341
test "X$echo_testing_string" = "X$echo_test_string"; then
344
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345
test "X$echo_testing_string" = 'X\t' &&
346
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347
test "X$echo_testing_string" = "X$echo_test_string"; then
348
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350
SHELL="$CONFIG_SHELL"
352
echo="$CONFIG_SHELL $0 --fallback-echo"
353
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354
test "X$echo_testing_string" = 'X\t' &&
355
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356
test "X$echo_testing_string" = "X$echo_test_string"; then
357
echo="$CONFIG_SHELL $0 --fallback-echo"
359
# maybe with a smaller string...
362
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370
if test "$prev" != 'sed 50q "$0"'; then
371
echo_test_string=`eval $prev`
372
export echo_test_string
373
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375
# Oops. We lost completely, so just stick with echo.
384
# Copy echo and quote the copy suitably for passing to libtool from
385
# the Makefile, instead of quoting the original, which is used later.
387
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394
tagnames=${tagnames+${tagnames},}CXX
396
tagnames=${tagnames+${tagnames},}F77
399
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400
# so uname gets run too.
401
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408
ac_default_prefix=/usr/local
409
ac_config_libobj_dir=.
414
SHELL=${CONFIG_SHELL-/bin/sh}
416
# Maximum number of lines to put in a shell here document.
417
# This variable seems obsolete. It should probably be removed, and
418
# only ac_max_sed_lines should be used.
419
: ${ac_max_here_lines=38}
421
# Identity of this package.
428
ac_unique_file="intl/dcigettext.c"
429
# Factoring default headers for most tests.
430
ac_includes_default="\
433
# include <sys/types.h>
436
# include <sys/stat.h>
447
# if !STDC_HEADERS && HAVE_MEMORY_H
453
# include <strings.h>
456
# include <inttypes.h>
466
ac_subdirs_all="$ac_subdirs_all libasprintf"
467
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot docdir 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 YACC CPP EGREP HAVE_GCJ_IN_PATH HAVE_JAVAC_IN_PATH HAVE_JIKES_IN_PATH JAVAC CLASSPATH CLASSPATH_SEPARATOR HAVE_GCJ_C HAVE_JAVAC HAVE_JIKES JAR BUILDJAVA CSHARP_CHOICE HAVE_CSCC_IN_PATH HAVE_MCS_IN_PATH HAVE_CSC_IN_PATH HAVE_CSCC HAVE_MCS HAVE_CSC BUILDCSHARP 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 RELOCATABLE LIBOBJS SET_RELOCATABLE RELOCATABLE_VIA_LD_TRUE RELOCATABLE_VIA_LD_FALSE STDBOOL_H HAVE__BOOL ALLOCA ALLOCA_H MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB PERL CROSS_COMPILING SUBDIR_libasprintf subdirs LTLIBOBJS'
470
# Initialize some variables set by options.
472
ac_init_version=false
473
# The variables have the same names as the options, with
474
# dashes changed to underlines.
482
program_transform_name=s,x,x,
490
# Installation directory options.
491
# These are left unexpanded so users can "make install exec_prefix=/foo"
492
# and all the variables that are supposed to be based on exec_prefix
493
# by default will actually change.
494
# Use braces instead of parens because sh, perl, etc. also accept them.
495
bindir='${exec_prefix}/bin'
496
sbindir='${exec_prefix}/sbin'
497
libexecdir='${exec_prefix}/libexec'
498
datadir='${prefix}/share'
499
sysconfdir='${prefix}/etc'
500
sharedstatedir='${prefix}/com'
501
localstatedir='${prefix}/var'
502
libdir='${exec_prefix}/lib'
503
includedir='${prefix}/include'
504
oldincludedir='/usr/include'
505
infodir='${prefix}/info'
506
mandir='${prefix}/man'
511
# If the previous option needs an argument, assign it.
512
if test -n "$ac_prev"; then
513
eval "$ac_prev=\$ac_option"
518
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
# Accept the important Cygnus configure options, so we can diagnose typos.
524
-bindir | --bindir | --bindi | --bind | --bin | --bi)
526
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529
-build | --build | --buil | --bui | --bu)
530
ac_prev=build_alias ;;
531
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
532
build_alias=$ac_optarg ;;
534
-cache-file | --cache-file | --cache-fil | --cache-fi \
535
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536
ac_prev=cache_file ;;
537
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539
cache_file=$ac_optarg ;;
542
cache_file=config.cache ;;
544
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548
datadir=$ac_optarg ;;
550
-disable-* | --disable-*)
551
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552
# Reject names that are not valid shell variable names.
553
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
555
{ (exit 1); exit 1; }; }
556
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557
eval "enable_$ac_feature=no" ;;
559
-enable-* | --enable-*)
560
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561
# Reject names that are not valid shell variable names.
562
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
564
{ (exit 1); exit 1; }; }
565
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570
eval "enable_$ac_feature='$ac_optarg'" ;;
572
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574
| --exec | --exe | --ex)
575
ac_prev=exec_prefix ;;
576
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578
| --exec=* | --exe=* | --ex=*)
579
exec_prefix=$ac_optarg ;;
581
-gas | --gas | --ga | --g)
582
# Obsolete; use --with-gas.
585
-help | --help | --hel | --he | -h)
587
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588
ac_init_help=recursive ;;
589
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590
ac_init_help=short ;;
592
-host | --host | --hos | --ho)
593
ac_prev=host_alias ;;
594
-host=* | --host=* | --hos=* | --ho=*)
595
host_alias=$ac_optarg ;;
597
-includedir | --includedir | --includedi | --included | --include \
598
| --includ | --inclu | --incl | --inc)
599
ac_prev=includedir ;;
600
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601
| --includ=* | --inclu=* | --incl=* | --inc=*)
602
includedir=$ac_optarg ;;
604
-infodir | --infodir | --infodi | --infod | --info | --inf)
606
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607
infodir=$ac_optarg ;;
609
-libdir | --libdir | --libdi | --libd)
611
-libdir=* | --libdir=* | --libdi=* | --libd=*)
614
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615
| --libexe | --libex | --libe)
616
ac_prev=libexecdir ;;
617
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618
| --libexe=* | --libex=* | --libe=*)
619
libexecdir=$ac_optarg ;;
621
-localstatedir | --localstatedir | --localstatedi | --localstated \
622
| --localstate | --localstat | --localsta | --localst \
623
| --locals | --local | --loca | --loc | --lo)
624
ac_prev=localstatedir ;;
625
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
627
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628
localstatedir=$ac_optarg ;;
630
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636
# Obsolete; use --without-fp.
639
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
640
| --no-cr | --no-c | -n)
643
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
644
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649
| --oldin | --oldi | --old | --ol | --o)
650
ac_prev=oldincludedir ;;
651
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654
oldincludedir=$ac_optarg ;;
656
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661
-program-prefix | --program-prefix | --program-prefi | --program-pref \
662
| --program-pre | --program-pr | --program-p)
663
ac_prev=program_prefix ;;
664
-program-prefix=* | --program-prefix=* | --program-prefi=* \
665
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666
program_prefix=$ac_optarg ;;
668
-program-suffix | --program-suffix | --program-suffi | --program-suff \
669
| --program-suf | --program-su | --program-s)
670
ac_prev=program_suffix ;;
671
-program-suffix=* | --program-suffix=* | --program-suffi=* \
672
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673
program_suffix=$ac_optarg ;;
675
-program-transform-name | --program-transform-name \
676
| --program-transform-nam | --program-transform-na \
677
| --program-transform-n | --program-transform- \
678
| --program-transform | --program-transfor \
679
| --program-transfo | --program-transf \
680
| --program-trans | --program-tran \
681
| --progr-tra | --program-tr | --program-t)
682
ac_prev=program_transform_name ;;
683
-program-transform-name=* | --program-transform-name=* \
684
| --program-transform-nam=* | --program-transform-na=* \
685
| --program-transform-n=* | --program-transform-=* \
686
| --program-transform=* | --program-transfor=* \
687
| --program-transfo=* | --program-transf=* \
688
| --program-trans=* | --program-tran=* \
689
| --progr-tra=* | --program-tr=* | --program-t=*)
690
program_transform_name=$ac_optarg ;;
692
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
693
| -silent | --silent | --silen | --sile | --sil)
696
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700
sbindir=$ac_optarg ;;
702
-sharedstatedir | --sharedstatedir | --sharedstatedi \
703
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704
| --sharedst | --shareds | --shared | --share | --shar \
706
ac_prev=sharedstatedir ;;
707
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711
sharedstatedir=$ac_optarg ;;
713
-site | --site | --sit)
715
-site=* | --site=* | --sit=*)
718
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724
| --syscon | --sysco | --sysc | --sys | --sy)
725
ac_prev=sysconfdir ;;
726
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728
sysconfdir=$ac_optarg ;;
730
-target | --target | --targe | --targ | --tar | --ta | --t)
731
ac_prev=target_alias ;;
732
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733
target_alias=$ac_optarg ;;
735
-v | -verbose | --verbose | --verbos | --verbo | --verb)
738
-version | --version | --versio | --versi | --vers | -V)
742
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743
# Reject names that are not valid shell variable names.
744
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745
{ echo "$as_me: error: invalid package name: $ac_package" >&2
746
{ (exit 1); exit 1; }; }
747
ac_package=`echo $ac_package| sed 's/-/_/g'`
749
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752
eval "with_$ac_package='$ac_optarg'" ;;
754
-without-* | --without-*)
755
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756
# Reject names that are not valid shell variable names.
757
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758
{ echo "$as_me: error: invalid package name: $ac_package" >&2
759
{ (exit 1); exit 1; }; }
760
ac_package=`echo $ac_package | sed 's/-/_/g'`
761
eval "with_$ac_package=no" ;;
764
# Obsolete; use --with-x.
767
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768
| --x-incl | --x-inc | --x-in | --x-i)
769
ac_prev=x_includes ;;
770
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772
x_includes=$ac_optarg ;;
774
-x-libraries | --x-libraries | --x-librarie | --x-librari \
775
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776
ac_prev=x_libraries ;;
777
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779
x_libraries=$ac_optarg ;;
781
-*) { echo "$as_me: error: unrecognized option: $ac_option
782
Try \`$0 --help' for more information." >&2
783
{ (exit 1); exit 1; }; }
787
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788
# Reject names that are not valid shell variable names.
789
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791
{ (exit 1); exit 1; }; }
792
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793
eval "$ac_envvar='$ac_optarg'"
797
# FIXME: should be removed in autoconf 3.0.
798
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807
if test -n "$ac_prev"; then
808
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809
{ echo "$as_me: error: missing argument to $ac_option" >&2
810
{ (exit 1); exit 1; }; }
813
# Be sure to have absolute paths.
814
for ac_var in exec_prefix prefix
816
eval ac_val=$`echo $ac_var`
818
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820
{ (exit 1); exit 1; }; };;
824
# Be sure to have absolute paths.
825
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826
localstatedir libdir includedir oldincludedir infodir mandir
828
eval ac_val=$`echo $ac_var`
830
[\\/$]* | ?:[\\/]* ) ;;
831
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832
{ (exit 1); exit 1; }; };;
836
# There might be people who depend on the old broken behavior: `$host'
837
# used to hold the argument of --host etc.
838
# FIXME: To remove some day.
843
# FIXME: To remove some day.
844
if test "x$host_alias" != x; then
845
if test "x$build_alias" = x; then
846
cross_compiling=maybe
847
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848
If a cross compiler is detected then cross compile mode will be used." >&2
849
elif test "x$build_alias" != "x$host_alias"; then
855
test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
test "$silent" = yes && exec 6>/dev/null
860
# Find the source files, if location was not specified.
861
if test -z "$srcdir"; then
862
ac_srcdir_defaulted=yes
863
# Try the directory containing this script, then its parent.
864
ac_confdir=`(dirname "$0") 2>/dev/null ||
865
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866
X"$0" : 'X\(//\)[^/]' \| \
867
X"$0" : 'X\(//\)$' \| \
868
X"$0" : 'X\(/\)' \| \
869
. : '\(.\)' 2>/dev/null ||
871
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
873
/^X\(\/\/\)$/{ s//\1/; q; }
874
/^X\(\/\).*/{ s//\1/; q; }
877
if test ! -r $srcdir/$ac_unique_file; then
881
ac_srcdir_defaulted=no
883
if test ! -r $srcdir/$ac_unique_file; then
884
if test "$ac_srcdir_defaulted" = yes; then
885
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886
{ (exit 1); exit 1; }; }
888
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889
{ (exit 1); exit 1; }; }
892
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894
{ (exit 1); exit 1; }; }
895
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896
ac_env_build_alias_set=${build_alias+set}
897
ac_env_build_alias_value=$build_alias
898
ac_cv_env_build_alias_set=${build_alias+set}
899
ac_cv_env_build_alias_value=$build_alias
900
ac_env_host_alias_set=${host_alias+set}
901
ac_env_host_alias_value=$host_alias
902
ac_cv_env_host_alias_set=${host_alias+set}
903
ac_cv_env_host_alias_value=$host_alias
904
ac_env_target_alias_set=${target_alias+set}
905
ac_env_target_alias_value=$target_alias
906
ac_cv_env_target_alias_set=${target_alias+set}
907
ac_cv_env_target_alias_value=$target_alias
908
ac_env_CC_set=${CC+set}
910
ac_cv_env_CC_set=${CC+set}
911
ac_cv_env_CC_value=$CC
912
ac_env_CFLAGS_set=${CFLAGS+set}
913
ac_env_CFLAGS_value=$CFLAGS
914
ac_cv_env_CFLAGS_set=${CFLAGS+set}
915
ac_cv_env_CFLAGS_value=$CFLAGS
916
ac_env_LDFLAGS_set=${LDFLAGS+set}
917
ac_env_LDFLAGS_value=$LDFLAGS
918
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919
ac_cv_env_LDFLAGS_value=$LDFLAGS
920
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921
ac_env_CPPFLAGS_value=$CPPFLAGS
922
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924
ac_env_CPP_set=${CPP+set}
925
ac_env_CPP_value=$CPP
926
ac_cv_env_CPP_set=${CPP+set}
927
ac_cv_env_CPP_value=$CPP
928
ac_env_CXX_set=${CXX+set}
929
ac_env_CXX_value=$CXX
930
ac_cv_env_CXX_set=${CXX+set}
931
ac_cv_env_CXX_value=$CXX
932
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933
ac_env_CXXFLAGS_value=$CXXFLAGS
934
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936
ac_env_CXXCPP_set=${CXXCPP+set}
937
ac_env_CXXCPP_value=$CXXCPP
938
ac_cv_env_CXXCPP_set=${CXXCPP+set}
939
ac_cv_env_CXXCPP_value=$CXXCPP
940
ac_env_F77_set=${F77+set}
941
ac_env_F77_value=$F77
942
ac_cv_env_F77_set=${F77+set}
943
ac_cv_env_F77_value=$F77
944
ac_env_FFLAGS_set=${FFLAGS+set}
945
ac_env_FFLAGS_value=$FFLAGS
946
ac_cv_env_FFLAGS_set=${FFLAGS+set}
947
ac_cv_env_FFLAGS_value=$FFLAGS
950
# Report the --help message.
952
if test "$ac_init_help" = "long"; then
953
# Omit some internal or obsolete options to make the list less imposing.
954
# This message is too long to be a string in the A/UX 3.1 sh.
956
\`configure' configures this package to adapt to many kinds of systems.
958
Usage: $0 [OPTION]... [VAR=VALUE]...
960
To assign environment variables (e.g., CC, CFLAGS...), specify them as
961
VAR=VALUE. See below for descriptions of some of the useful variables.
963
Defaults for the options are specified in brackets.
966
-h, --help display this help and exit
967
--help=short display options specific to this package
968
--help=recursive display the short help of all the included packages
969
-V, --version display version information and exit
970
-q, --quiet, --silent do not print \`checking...' messages
971
--cache-file=FILE cache test results in FILE [disabled]
972
-C, --config-cache alias for \`--cache-file=config.cache'
973
-n, --no-create do not create output files
974
--srcdir=DIR find the sources in DIR [configure dir or \`..']
979
Installation directories:
980
--prefix=PREFIX install architecture-independent files in PREFIX
982
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985
By default, \`make install' will install all the files in
986
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988
for instance \`--prefix=\$HOME'.
990
For better control, use the options below.
992
Fine tuning of the installation directories:
993
--bindir=DIR user executables [EPREFIX/bin]
994
--sbindir=DIR system admin executables [EPREFIX/sbin]
995
--libexecdir=DIR program executables [EPREFIX/libexec]
996
--datadir=DIR read-only architecture-independent data [PREFIX/share]
997
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000
--libdir=DIR object code libraries [EPREFIX/lib]
1001
--includedir=DIR C header files [PREFIX/include]
1002
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1003
--infodir=DIR info documentation [PREFIX/info]
1004
--mandir=DIR man documentation [PREFIX/man]
1010
--program-prefix=PREFIX prepend PREFIX to installed program names
1011
--program-suffix=SUFFIX append SUFFIX to installed program names
1012
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1015
--build=BUILD configure for building on BUILD [guessed]
1016
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1020
if test -n "$ac_init_help"; then
1025
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1027
--disable-dependency-tracking speeds up one-time build
1028
--enable-dependency-tracking do not reject slow dependency extractors
1029
--enable-csharp[=IMPL] choose preferred C# implementation (pnet or mono)
1030
--enable-shared[=PKGS]
1031
build shared libraries [default=yes]
1032
--enable-static[=PKGS]
1033
build static libraries [default=yes]
1034
--enable-fast-install[=PKGS]
1035
optimize for fast installation [default=yes]
1036
--disable-libtool-lock avoid locking (might break parallel builds)
1037
--enable-relocatable install a package that can be moved in the filesystem
1038
--disable-nls do not use Native Language Support
1039
--disable-rpath do not hardcode runtime library paths
1040
--disable-libasprintf do not build libasprintf
1043
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1045
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1046
--with-pic try to use only PIC/non-PIC objects [default=use
1049
include additional configurations [automatic]
1050
--with-gnu-ld assume the C compiler uses GNU ld default=no
1051
--with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1052
--without-libiconv-prefix don't search for libiconv in includedir and libdir
1053
--with-included-gettext use the GNU gettext library included here
1054
--with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1055
--without-libintl-prefix don't search for libintl in includedir and libdir
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.
1077
if test "$ac_init_help" = "recursive"; then
1078
# If there are subdirs, report their specific --help.
1080
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081
test -d $ac_dir || continue
1084
if test "$ac_dir" != .; then
1085
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086
# A "../" for each directory in $ac_dir_suffix.
1087
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1089
ac_dir_suffix= ac_top_builddir=
1093
.) # No --srcdir option. We are building in place.
1095
if test -z "$ac_top_builddir"; then
1098
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1100
[\\/]* | ?:[\\/]* ) # Absolute path.
1101
ac_srcdir=$srcdir$ac_dir_suffix;
1102
ac_top_srcdir=$srcdir ;;
1104
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1108
# Do not use `cd foo && pwd` to compute absolute paths, because
1109
# the directories may not exist.
1111
.) ac_abs_builddir="$ac_dir";;
1114
.) ac_abs_builddir=`pwd`;;
1115
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1116
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1119
case $ac_abs_builddir in
1120
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1122
case ${ac_top_builddir}. in
1123
.) ac_abs_top_builddir=$ac_abs_builddir;;
1124
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1125
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1128
case $ac_abs_builddir in
1129
.) ac_abs_srcdir=$ac_srcdir;;
1132
.) ac_abs_srcdir=$ac_abs_builddir;;
1133
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1134
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1137
case $ac_abs_builddir in
1138
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1140
case $ac_top_srcdir in
1141
.) ac_abs_top_srcdir=$ac_abs_builddir;;
1142
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1143
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1148
# Check for guested configure; otherwise get Cygnus style configure.
1149
if test -f $ac_srcdir/configure.gnu; then
1151
$SHELL $ac_srcdir/configure.gnu --help=recursive
1152
elif test -f $ac_srcdir/configure; then
1154
$SHELL $ac_srcdir/configure --help=recursive
1155
elif test -f $ac_srcdir/configure.ac ||
1156
test -f $ac_srcdir/configure.in; then
1158
$ac_configure --help
1160
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1166
test -n "$ac_init_help" && exit 0
1167
if $ac_init_version; then
1170
Copyright (C) 2003 Free Software Foundation, Inc.
1171
This configure script is free software; the Free Software Foundation
1172
gives unlimited permission to copy, distribute and modify it.
1178
This file contains any messages produced by compilers while
1179
running configure, to aid debugging if configure makes a mistake.
1181
It was created by $as_me, which was
1182
generated by GNU Autoconf 2.59. Invocation command line was
1193
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1194
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1195
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1196
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1197
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1199
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1200
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1202
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1203
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1204
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1205
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1206
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1207
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1208
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1212
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1216
test -z "$as_dir" && as_dir=.
1217
echo "PATH: $as_dir"
1232
# Keep a trace of the command line.
1233
# Strip out --no-create and --no-recursion so they do not pile up.
1234
# Strip out --silent because we don't want to record it for future runs.
1235
# Also quote any args containing shell meta-characters.
1236
# Make two passes to allow for proper duplicate-argument suppression.
1241
ac_must_keep_next=false
1247
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1248
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249
| -silent | --silent | --silen | --sile | --sil)
1251
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1255
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1257
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1258
if test $ac_must_keep_next = true; then
1259
ac_must_keep_next=false # Got value, back to normal.
1262
*=* | --config-cache | -C | -disable-* | --disable-* \
1263
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1264
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1265
| -with-* | --with-* | -without-* | --without-* | --x)
1266
case "$ac_configure_args0 " in
1267
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1270
-* ) ac_must_keep_next=true ;;
1273
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1274
# Get rid of the leading space.
1280
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1281
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1283
# When interrupted or exit'd, cleanup temporary files, and complete
1284
# config.log. We remove comments because anyway the quotes in there
1285
# would cause problems or look ugly.
1286
# WARNING: Be sure not to use single quotes in there, as some shells,
1287
# such as our DU 5.0 friend, will then `close' the trap.
1288
trap 'exit_status=$?
1289
# Save into config.log some information that might help in debugging.
1294
## ---------------- ##
1295
## Cache variables. ##
1296
## ---------------- ##
1299
# The following way of writing the cache mishandles newlines in values,
1302
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1305
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1306
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1310
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1317
## ----------------- ##
1318
## Output variables. ##
1319
## ----------------- ##
1322
for ac_var in $ac_subst_vars
1324
eval ac_val=$`echo $ac_var`
1325
echo "$ac_var='"'"'$ac_val'"'"'"
1329
if test -n "$ac_subst_files"; then
1336
for ac_var in $ac_subst_files
1338
eval ac_val=$`echo $ac_var`
1339
echo "$ac_var='"'"'$ac_val'"'"'"
1344
if test -s confdefs.h; then
1351
sed "/^$/d" confdefs.h | sort
1354
test "$ac_signal" != 0 &&
1355
echo "$as_me: caught signal $ac_signal"
1356
echo "$as_me: exit $exit_status"
1358
rm -f core *.core &&
1359
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1362
for ac_signal in 1 2 13 15; do
1363
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1367
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1368
rm -rf conftest* confdefs.h
1369
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1372
# Predefined preprocessor variables.
1374
cat >>confdefs.h <<_ACEOF
1375
#define PACKAGE_NAME "$PACKAGE_NAME"
1379
cat >>confdefs.h <<_ACEOF
1380
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1384
cat >>confdefs.h <<_ACEOF
1385
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1389
cat >>confdefs.h <<_ACEOF
1390
#define PACKAGE_STRING "$PACKAGE_STRING"
1394
cat >>confdefs.h <<_ACEOF
1395
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1399
# Let the site file select an alternate cache file if it wants to.
1400
# Prefer explicitly selected file to automatically selected ones.
1401
if test -z "$CONFIG_SITE"; then
1402
if test "x$prefix" != xNONE; then
1403
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1405
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1408
for ac_site_file in $CONFIG_SITE; do
1409
if test -r "$ac_site_file"; then
1410
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1411
echo "$as_me: loading site script $ac_site_file" >&6;}
1412
sed 's/^/| /' "$ac_site_file" >&5
1417
if test -r "$cache_file"; then
1418
# Some versions of bash will fail to source /dev/null (special
1419
# files actually), so we avoid doing that.
1420
if test -f "$cache_file"; then
1421
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1422
echo "$as_me: loading cache $cache_file" >&6;}
1424
[\\/]* | ?:[\\/]* ) . $cache_file;;
1425
*) . ./$cache_file;;
1429
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1430
echo "$as_me: creating cache $cache_file" >&6;}
1434
# Check that the precious variables saved in the cache have kept the same
1436
ac_cache_corrupted=false
1437
for ac_var in `(set) 2>&1 |
1438
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1439
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1440
eval ac_new_set=\$ac_env_${ac_var}_set
1441
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1442
eval ac_new_val="\$ac_env_${ac_var}_value"
1443
case $ac_old_set,$ac_new_set in
1445
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1446
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1447
ac_cache_corrupted=: ;;
1449
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1450
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1451
ac_cache_corrupted=: ;;
1454
if test "x$ac_old_val" != "x$ac_new_val"; then
1455
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1456
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1457
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1458
echo "$as_me: former value: $ac_old_val" >&2;}
1459
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1460
echo "$as_me: current value: $ac_new_val" >&2;}
1461
ac_cache_corrupted=:
1464
# Pass precious variables to config.status.
1465
if test "$ac_new_set" = set; then
1467
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1468
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1469
*) ac_arg=$ac_var=$ac_new_val ;;
1471
case " $ac_configure_args " in
1472
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1473
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1477
if $ac_cache_corrupted; then
1478
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1479
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1480
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1481
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1482
{ (exit 1); exit 1; }; }
1486
ac_cpp='$CPP $CPPFLAGS'
1487
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1488
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1489
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1511
for ac_dir in ../config $srcdir/../config; do
1512
if test -f $ac_dir/install-sh; then
1514
ac_install_sh="$ac_aux_dir/install-sh -c"
1516
elif test -f $ac_dir/install.sh; then
1518
ac_install_sh="$ac_aux_dir/install.sh -c"
1520
elif test -f $ac_dir/shtool; then
1522
ac_install_sh="$ac_aux_dir/shtool install -c"
1526
if test -z "$ac_aux_dir"; then
1527
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../config $srcdir/../config" >&5
1528
echo "$as_me: error: cannot find install-sh or install.sh in ../config $srcdir/../config" >&2;}
1529
{ (exit 1); exit 1; }; }
1531
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1532
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1533
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1535
. $srcdir/../version.sh
1536
am__api_version="1.8"
1537
# Find a good install program. We prefer a C program (faster),
1538
# so one script is as good as another. But avoid the broken or
1539
# incompatible versions:
1540
# SysV /etc/install, /usr/sbin/install
1541
# SunOS /usr/etc/install
1542
# IRIX /sbin/install
1544
# AmigaOS /C/install, which installs bootblocks on floppy discs
1545
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1546
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1547
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1548
# OS/2's system install, which has a completely different semantic
1549
# ./install, which can be erroneously created by make from ./install.sh.
1550
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1551
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1552
if test -z "$INSTALL"; then
1553
if test "${ac_cv_path_install+set}" = set; then
1554
echo $ECHO_N "(cached) $ECHO_C" >&6
1556
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560
test -z "$as_dir" && as_dir=.
1561
# Account for people who put trailing slashes in PATH elements.
1563
./ | .// | /cC/* | \
1564
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1565
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1568
# OSF1 and SCO ODT 3.0 have their own names for install.
1569
# Don't use installbsd from OSF since it installs stuff as root
1571
for ac_prog in ginstall scoinst install; do
1572
for ac_exec_ext in '' $ac_executable_extensions; do
1573
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1574
if test $ac_prog = install &&
1575
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1576
# AIX install. It has an incompatible calling convention.
1578
elif test $ac_prog = install &&
1579
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1580
# program-specific install script used by HP pwplus--don't use.
1583
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1595
if test "${ac_cv_path_install+set}" = set; then
1596
INSTALL=$ac_cv_path_install
1598
# As a last resort, use the slow shell script. We don't cache a
1599
# path for INSTALL within a source directory, because that will
1600
# break other packages using the cache if that directory is
1601
# removed, or if the path is relative.
1602
INSTALL=$ac_install_sh
1605
echo "$as_me:$LINENO: result: $INSTALL" >&5
1606
echo "${ECHO_T}$INSTALL" >&6
1608
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1609
# It thinks the first close brace ends the variable substitution.
1610
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1612
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1614
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1616
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1617
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1620
echo timestamp > conftest.file
1621
# Do `set' in a subshell so we don't clobber the current shell's
1622
# arguments. Must try -L first in case configure is actually a
1623
# symlink; some systems play weird games with the mod time of symlinks
1624
# (eg FreeBSD returns the mod time of the symlink's containing
1627
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1628
if test "$*" = "X"; then
1630
set X `ls -t $srcdir/configure conftest.file`
1633
if test "$*" != "X $srcdir/configure conftest.file" \
1634
&& test "$*" != "X conftest.file $srcdir/configure"; then
1636
# If neither matched, then we have a broken ls. This can happen
1637
# if, for instance, CONFIG_SHELL is bash and it inherits a
1638
# broken ls alias from the environment. This has actually
1639
# happened. Such a system could not be considered "sane".
1640
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1641
alias in your environment" >&5
1642
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1643
alias in your environment" >&2;}
1644
{ (exit 1); exit 1; }; }
1647
test "$2" = conftest.file
1653
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1654
Check your system clock" >&5
1655
echo "$as_me: error: newly created file is older than distributed files!
1656
Check your system clock" >&2;}
1657
{ (exit 1); exit 1; }; }
1659
echo "$as_me:$LINENO: result: yes" >&5
1660
echo "${ECHO_T}yes" >&6
1661
test "$program_prefix" != NONE &&
1662
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1663
# Use a double $ so make ignores it.
1664
test "$program_suffix" != NONE &&
1665
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1666
# Double any \ or $. echo might interpret backslashes.
1667
# By default was `s,x,x', remove it if useless.
1668
cat <<\_ACEOF >conftest.sed
1669
s/[\\$]/&&/g;s/;s,x,x,$//
1671
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1674
# expand $ac_aux_dir to an absolute path
1675
am_aux_dir=`cd $ac_aux_dir && pwd`
1677
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1678
# Use eval to expand $SHELL
1679
if eval "$MISSING --run true"; then
1680
am_missing_run="$MISSING --run "
1683
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1684
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1687
if mkdir -p -- . 2>/dev/null; then
1688
# Keeping the `.' argument allows $(mkdir_p) to be used without
1689
# argument. Indeed, we sometimes output rules like
1690
# $(mkdir_p) $(somedir)
1691
# where $(somedir) is conditionally defined.
1692
# (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1693
# expensive solution, as it forces Make to start a sub-shell.)
1694
mkdir_p='mkdir -p -- .'
1696
# On NextStep and OpenStep, the `mkdir' command does not
1697
# recognize any option. It will interpret all options as
1698
# directories to create, and then abort because `.' already
1702
test -d $d && rmdir $d
1704
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1705
if test -f "$ac_aux_dir/mkinstalldirs"; then
1706
mkdir_p='$(mkinstalldirs)'
1708
mkdir_p='$(install_sh) -d'
1712
for ac_prog in gawk mawk nawk awk
1714
# Extract the first word of "$ac_prog", so it can be a program name with args.
1715
set dummy $ac_prog; ac_word=$2
1716
echo "$as_me:$LINENO: checking for $ac_word" >&5
1717
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1718
if test "${ac_cv_prog_AWK+set}" = set; then
1719
echo $ECHO_N "(cached) $ECHO_C" >&6
1721
if test -n "$AWK"; then
1722
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1724
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728
test -z "$as_dir" && as_dir=.
1729
for ac_exec_ext in '' $ac_executable_extensions; do
1730
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1731
ac_cv_prog_AWK="$ac_prog"
1732
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741
if test -n "$AWK"; then
1742
echo "$as_me:$LINENO: result: $AWK" >&5
1743
echo "${ECHO_T}$AWK" >&6
1745
echo "$as_me:$LINENO: result: no" >&5
1746
echo "${ECHO_T}no" >&6
1749
test -n "$AWK" && break
1752
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1753
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1754
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1755
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1756
echo $ECHO_N "(cached) $ECHO_C" >&6
1758
cat >conftest.make <<\_ACEOF
1760
@echo 'ac_maketemp="$(MAKE)"'
1762
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1763
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1764
if test -n "$ac_maketemp"; then
1765
eval ac_cv_prog_make_${ac_make}_set=yes
1767
eval ac_cv_prog_make_${ac_make}_set=no
1771
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1772
echo "$as_me:$LINENO: result: yes" >&5
1773
echo "${ECHO_T}yes" >&6
1776
echo "$as_me:$LINENO: result: no" >&5
1777
echo "${ECHO_T}no" >&6
1778
SET_MAKE="MAKE=${MAKE-make}"
1781
rm -rf .tst 2>/dev/null
1782
mkdir .tst 2>/dev/null
1783
if test -d .tst; then
1788
rmdir .tst 2>/dev/null
1790
# test to see if srcdir already configured
1791
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1792
test -f $srcdir/config.status; then
1793
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1794
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1795
{ (exit 1); exit 1; }; }
1798
# test whether we have cygpath
1799
if test -z "$CYGPATH_W"; then
1800
if (cygpath --version) >/dev/null 2>/dev/null; then
1801
CYGPATH_W='cygpath -w'
1808
# Define the identity of the package.
1809
PACKAGE=gettext-runtime
1810
VERSION=$VERSION_NUMBER
1813
cat >>confdefs.h <<_ACEOF
1814
#define PACKAGE "$PACKAGE"
1818
cat >>confdefs.h <<_ACEOF
1819
#define VERSION "$VERSION"
1822
# Some tools Automake needs.
1824
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1827
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1830
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1833
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1836
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1839
AMTAR=${AMTAR-"${am_missing_run}tar"}
1841
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1843
# Installed binaries are usually stripped using `strip' when the user
1844
# run `make install-strip'. However `strip' might not be the right
1845
# tool to use in cross-compilation environments, therefore Automake
1846
# will honor the `STRIP' environment variable to overrule this program.
1847
if test "$cross_compiling" != no; then
1848
if test -n "$ac_tool_prefix"; then
1849
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1850
set dummy ${ac_tool_prefix}strip; ac_word=$2
1851
echo "$as_me:$LINENO: checking for $ac_word" >&5
1852
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1853
if test "${ac_cv_prog_STRIP+set}" = set; then
1854
echo $ECHO_N "(cached) $ECHO_C" >&6
1856
if test -n "$STRIP"; then
1857
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1859
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863
test -z "$as_dir" && as_dir=.
1864
for ac_exec_ext in '' $ac_executable_extensions; do
1865
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1866
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1867
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1875
STRIP=$ac_cv_prog_STRIP
1876
if test -n "$STRIP"; then
1877
echo "$as_me:$LINENO: result: $STRIP" >&5
1878
echo "${ECHO_T}$STRIP" >&6
1880
echo "$as_me:$LINENO: result: no" >&5
1881
echo "${ECHO_T}no" >&6
1885
if test -z "$ac_cv_prog_STRIP"; then
1887
# Extract the first word of "strip", so it can be a program name with args.
1888
set dummy strip; ac_word=$2
1889
echo "$as_me:$LINENO: checking for $ac_word" >&5
1890
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1892
echo $ECHO_N "(cached) $ECHO_C" >&6
1894
if test -n "$ac_ct_STRIP"; then
1895
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1897
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901
test -z "$as_dir" && as_dir=.
1902
for ac_exec_ext in '' $ac_executable_extensions; do
1903
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904
ac_cv_prog_ac_ct_STRIP="strip"
1905
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1914
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1915
if test -n "$ac_ct_STRIP"; then
1916
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1917
echo "${ECHO_T}$ac_ct_STRIP" >&6
1919
echo "$as_me:$LINENO: result: no" >&5
1920
echo "${ECHO_T}no" >&6
1925
STRIP="$ac_cv_prog_STRIP"
1929
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1931
# We need awk for the "check" target. The system "awk" is bad on
1936
ac_config_headers="$ac_config_headers config.h"
1939
docdir='${datadir}/doc/gettext'
1941
test "$mandir" != '${prefix}/man' || mandir='${datadir}/man'
1944
ac_cpp='$CPP $CPPFLAGS'
1945
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1946
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1947
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1948
if test -n "$ac_tool_prefix"; then
1949
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1950
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1951
echo "$as_me:$LINENO: checking for $ac_word" >&5
1952
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1953
if test "${ac_cv_prog_CC+set}" = set; then
1954
echo $ECHO_N "(cached) $ECHO_C" >&6
1956
if test -n "$CC"; then
1957
ac_cv_prog_CC="$CC" # Let the user override the test.
1959
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963
test -z "$as_dir" && as_dir=.
1964
for ac_exec_ext in '' $ac_executable_extensions; do
1965
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1966
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1967
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1976
if test -n "$CC"; then
1977
echo "$as_me:$LINENO: result: $CC" >&5
1978
echo "${ECHO_T}$CC" >&6
1980
echo "$as_me:$LINENO: result: no" >&5
1981
echo "${ECHO_T}no" >&6
1985
if test -z "$ac_cv_prog_CC"; then
1987
# Extract the first word of "gcc", so it can be a program name with args.
1988
set dummy gcc; ac_word=$2
1989
echo "$as_me:$LINENO: checking for $ac_word" >&5
1990
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1991
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1992
echo $ECHO_N "(cached) $ECHO_C" >&6
1994
if test -n "$ac_ct_CC"; then
1995
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1997
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001
test -z "$as_dir" && as_dir=.
2002
for ac_exec_ext in '' $ac_executable_extensions; do
2003
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004
ac_cv_prog_ac_ct_CC="gcc"
2005
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2014
if test -n "$ac_ct_CC"; then
2015
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2016
echo "${ECHO_T}$ac_ct_CC" >&6
2018
echo "$as_me:$LINENO: result: no" >&5
2019
echo "${ECHO_T}no" >&6
2027
if test -z "$CC"; then
2028
if test -n "$ac_tool_prefix"; then
2029
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2030
set dummy ${ac_tool_prefix}cc; ac_word=$2
2031
echo "$as_me:$LINENO: checking for $ac_word" >&5
2032
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033
if test "${ac_cv_prog_CC+set}" = set; then
2034
echo $ECHO_N "(cached) $ECHO_C" >&6
2036
if test -n "$CC"; then
2037
ac_cv_prog_CC="$CC" # Let the user override the test.
2039
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043
test -z "$as_dir" && as_dir=.
2044
for ac_exec_ext in '' $ac_executable_extensions; do
2045
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2046
ac_cv_prog_CC="${ac_tool_prefix}cc"
2047
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056
if test -n "$CC"; then
2057
echo "$as_me:$LINENO: result: $CC" >&5
2058
echo "${ECHO_T}$CC" >&6
2060
echo "$as_me:$LINENO: result: no" >&5
2061
echo "${ECHO_T}no" >&6
2065
if test -z "$ac_cv_prog_CC"; then
2067
# Extract the first word of "cc", so it can be a program name with args.
2068
set dummy cc; ac_word=$2
2069
echo "$as_me:$LINENO: checking for $ac_word" >&5
2070
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2071
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2072
echo $ECHO_N "(cached) $ECHO_C" >&6
2074
if test -n "$ac_ct_CC"; then
2075
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2077
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081
test -z "$as_dir" && as_dir=.
2082
for ac_exec_ext in '' $ac_executable_extensions; do
2083
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2084
ac_cv_prog_ac_ct_CC="cc"
2085
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2093
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2094
if test -n "$ac_ct_CC"; then
2095
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2096
echo "${ECHO_T}$ac_ct_CC" >&6
2098
echo "$as_me:$LINENO: result: no" >&5
2099
echo "${ECHO_T}no" >&6
2108
if test -z "$CC"; then
2109
# Extract the first word of "cc", so it can be a program name with args.
2110
set dummy cc; ac_word=$2
2111
echo "$as_me:$LINENO: checking for $ac_word" >&5
2112
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2113
if test "${ac_cv_prog_CC+set}" = set; then
2114
echo $ECHO_N "(cached) $ECHO_C" >&6
2116
if test -n "$CC"; then
2117
ac_cv_prog_CC="$CC" # Let the user override the test.
2120
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124
test -z "$as_dir" && as_dir=.
2125
for ac_exec_ext in '' $ac_executable_extensions; do
2126
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2127
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2128
ac_prog_rejected=yes
2132
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138
if test $ac_prog_rejected = yes; then
2139
# We found a bogon in the path, so make sure we never use it.
2140
set dummy $ac_cv_prog_CC
2142
if test $# != 0; then
2143
# We chose a different compiler from the bogus one.
2144
# However, it has the same basename, so the bogon will be chosen
2145
# first if we set CC to just the basename; use the full file name.
2147
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2153
if test -n "$CC"; then
2154
echo "$as_me:$LINENO: result: $CC" >&5
2155
echo "${ECHO_T}$CC" >&6
2157
echo "$as_me:$LINENO: result: no" >&5
2158
echo "${ECHO_T}no" >&6
2162
if test -z "$CC"; then
2163
if test -n "$ac_tool_prefix"; then
2166
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2167
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2168
echo "$as_me:$LINENO: checking for $ac_word" >&5
2169
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2170
if test "${ac_cv_prog_CC+set}" = set; then
2171
echo $ECHO_N "(cached) $ECHO_C" >&6
2173
if test -n "$CC"; then
2174
ac_cv_prog_CC="$CC" # Let the user override the test.
2176
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180
test -z "$as_dir" && as_dir=.
2181
for ac_exec_ext in '' $ac_executable_extensions; do
2182
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2183
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2184
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193
if test -n "$CC"; then
2194
echo "$as_me:$LINENO: result: $CC" >&5
2195
echo "${ECHO_T}$CC" >&6
2197
echo "$as_me:$LINENO: result: no" >&5
2198
echo "${ECHO_T}no" >&6
2201
test -n "$CC" && break
2204
if test -z "$CC"; then
2208
# Extract the first word of "$ac_prog", so it can be a program name with args.
2209
set dummy $ac_prog; ac_word=$2
2210
echo "$as_me:$LINENO: checking for $ac_word" >&5
2211
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2212
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2213
echo $ECHO_N "(cached) $ECHO_C" >&6
2215
if test -n "$ac_ct_CC"; then
2216
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222
test -z "$as_dir" && as_dir=.
2223
for ac_exec_ext in '' $ac_executable_extensions; do
2224
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2225
ac_cv_prog_ac_ct_CC="$ac_prog"
2226
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2234
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2235
if test -n "$ac_ct_CC"; then
2236
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2237
echo "${ECHO_T}$ac_ct_CC" >&6
2239
echo "$as_me:$LINENO: result: no" >&5
2240
echo "${ECHO_T}no" >&6
2243
test -n "$ac_ct_CC" && break
2252
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2253
See \`config.log' for more details." >&5
2254
echo "$as_me: error: no acceptable C compiler found in \$PATH
2255
See \`config.log' for more details." >&2;}
2256
{ (exit 1); exit 1; }; }
2258
# Provide some information about the compiler.
2259
echo "$as_me:$LINENO:" \
2260
"checking for C compiler version" >&5
2261
ac_compiler=`set X $ac_compile; echo $2`
2262
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2263
(eval $ac_compiler --version </dev/null >&5) 2>&5
2265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266
(exit $ac_status); }
2267
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2268
(eval $ac_compiler -v </dev/null >&5) 2>&5
2270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271
(exit $ac_status); }
2272
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2273
(eval $ac_compiler -V </dev/null >&5) 2>&5
2275
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276
(exit $ac_status); }
2278
cat >conftest.$ac_ext <<_ACEOF
2281
cat confdefs.h >>conftest.$ac_ext
2282
cat >>conftest.$ac_ext <<_ACEOF
2283
/* end confdefs.h. */
2293
ac_clean_files_save=$ac_clean_files
2294
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2295
# Try to create an executable without -o first, disregard a.out.
2296
# It will help us diagnose broken compilers, and finding out an intuition
2298
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2299
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2300
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2301
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2302
(eval $ac_link_default) 2>&5
2304
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305
(exit $ac_status); }; then
2306
# Find the output, starting from the most likely. This scheme is
2307
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2310
# Be careful to initialize this variable, since it used to be cached.
2311
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2313
# b.out is created by i960 compilers.
2314
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2316
test -f "$ac_file" || continue
2318
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2321
# This is the source file.
2324
# We found the default executable, but exeext='' is most
2328
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2329
# FIXME: I believe we export ac_cv_exeext for Libtool,
2330
# but it would be cool to find out if it's true. Does anybody
2331
# maintain Libtool? --akim.
2339
echo "$as_me: failed program was:" >&5
2340
sed 's/^/| /' conftest.$ac_ext >&5
2342
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2343
See \`config.log' for more details." >&5
2344
echo "$as_me: error: C compiler cannot create executables
2345
See \`config.log' for more details." >&2;}
2346
{ (exit 77); exit 77; }; }
2349
ac_exeext=$ac_cv_exeext
2350
echo "$as_me:$LINENO: result: $ac_file" >&5
2351
echo "${ECHO_T}$ac_file" >&6
2353
# Check the compiler produces executables we can run. If not, either
2354
# the compiler is broken, or we cross compile.
2355
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2356
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2357
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2358
# If not cross compiling, check that we can run a simple program.
2359
if test "$cross_compiling" != yes; then
2360
if { ac_try='./$ac_file'
2361
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365
(exit $ac_status); }; }; then
2368
if test "$cross_compiling" = maybe; then
2371
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2372
If you meant to cross compile, use \`--host'.
2373
See \`config.log' for more details." >&5
2374
echo "$as_me: error: cannot run C compiled programs.
2375
If you meant to cross compile, use \`--host'.
2376
See \`config.log' for more details." >&2;}
2377
{ (exit 1); exit 1; }; }
2381
echo "$as_me:$LINENO: result: yes" >&5
2382
echo "${ECHO_T}yes" >&6
2384
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2385
ac_clean_files=$ac_clean_files_save
2386
# Check the compiler produces executables we can run. If not, either
2387
# the compiler is broken, or we cross compile.
2388
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2389
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2390
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2391
echo "${ECHO_T}$cross_compiling" >&6
2393
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2394
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2395
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2396
(eval $ac_link) 2>&5
2398
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399
(exit $ac_status); }; then
2400
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2401
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2402
# work properly (i.e., refer to `conftest.exe'), while it won't with
2404
for ac_file in conftest.exe conftest conftest.*; do
2405
test -f "$ac_file" || continue
2407
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2408
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2415
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2416
See \`config.log' for more details." >&5
2417
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2418
See \`config.log' for more details." >&2;}
2419
{ (exit 1); exit 1; }; }
2422
rm -f conftest$ac_cv_exeext
2423
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2424
echo "${ECHO_T}$ac_cv_exeext" >&6
2426
rm -f conftest.$ac_ext
2427
EXEEXT=$ac_cv_exeext
2429
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2430
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2431
if test "${ac_cv_objext+set}" = set; then
2432
echo $ECHO_N "(cached) $ECHO_C" >&6
2434
cat >conftest.$ac_ext <<_ACEOF
2437
cat confdefs.h >>conftest.$ac_ext
2438
cat >>conftest.$ac_ext <<_ACEOF
2439
/* end confdefs.h. */
2449
rm -f conftest.o conftest.obj
2450
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2451
(eval $ac_compile) 2>&5
2453
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454
(exit $ac_status); }; then
2455
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2457
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2458
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2463
echo "$as_me: failed program was:" >&5
2464
sed 's/^/| /' conftest.$ac_ext >&5
2466
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2467
See \`config.log' for more details." >&5
2468
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2469
See \`config.log' for more details." >&2;}
2470
{ (exit 1); exit 1; }; }
2473
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2475
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2476
echo "${ECHO_T}$ac_cv_objext" >&6
2477
OBJEXT=$ac_cv_objext
2479
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2480
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2481
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2482
echo $ECHO_N "(cached) $ECHO_C" >&6
2484
cat >conftest.$ac_ext <<_ACEOF
2487
cat confdefs.h >>conftest.$ac_ext
2488
cat >>conftest.$ac_ext <<_ACEOF
2489
/* end confdefs.h. */
2502
rm -f conftest.$ac_objext
2503
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2504
(eval $ac_compile) 2>conftest.er1
2506
grep -v '^ *+' conftest.er1 >conftest.err
2508
cat conftest.err >&5
2509
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510
(exit $ac_status); } &&
2511
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2512
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516
(exit $ac_status); }; } &&
2517
{ ac_try='test -s conftest.$ac_objext'
2518
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522
(exit $ac_status); }; }; then
2525
echo "$as_me: failed program was:" >&5
2526
sed 's/^/| /' conftest.$ac_ext >&5
2530
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2531
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2534
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2535
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2536
GCC=`test $ac_compiler_gnu = yes && echo yes`
2537
ac_test_CFLAGS=${CFLAGS+set}
2538
ac_save_CFLAGS=$CFLAGS
2540
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2541
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2542
if test "${ac_cv_prog_cc_g+set}" = set; then
2543
echo $ECHO_N "(cached) $ECHO_C" >&6
2545
cat >conftest.$ac_ext <<_ACEOF
2548
cat confdefs.h >>conftest.$ac_ext
2549
cat >>conftest.$ac_ext <<_ACEOF
2550
/* end confdefs.h. */
2560
rm -f conftest.$ac_objext
2561
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2562
(eval $ac_compile) 2>conftest.er1
2564
grep -v '^ *+' conftest.er1 >conftest.err
2566
cat conftest.err >&5
2567
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568
(exit $ac_status); } &&
2569
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2570
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574
(exit $ac_status); }; } &&
2575
{ ac_try='test -s conftest.$ac_objext'
2576
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580
(exit $ac_status); }; }; then
2583
echo "$as_me: failed program was:" >&5
2584
sed 's/^/| /' conftest.$ac_ext >&5
2588
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2590
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2591
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2592
if test "$ac_test_CFLAGS" = set; then
2593
CFLAGS=$ac_save_CFLAGS
2594
elif test $ac_cv_prog_cc_g = yes; then
2595
if test "$GCC" = yes; then
2601
if test "$GCC" = yes; then
2607
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2608
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2609
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2610
echo $ECHO_N "(cached) $ECHO_C" >&6
2612
ac_cv_prog_cc_stdc=no
2614
cat >conftest.$ac_ext <<_ACEOF
2617
cat confdefs.h >>conftest.$ac_ext
2618
cat >>conftest.$ac_ext <<_ACEOF
2619
/* end confdefs.h. */
2622
#include <sys/types.h>
2623
#include <sys/stat.h>
2624
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2625
struct buf { int x; };
2626
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2627
static char *e (p, i)
2633
static char *f (char * (*g) (char **, int), char **p, ...)
2638
s = g (p, va_arg (v,int));
2643
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2644
function prototypes and stuff, but not '\xHH' hex character constants.
2645
These don't provoke an error unfortunately, instead are silently treated
2646
as 'x'. The following induces an error, until -std1 is added to get
2647
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2648
array size at least. It's necessary to write '\x00'==0 to get something
2649
that's true only with -std1. */
2650
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2652
int test (int i, double x);
2653
struct s1 {int (*f) (int a);};
2654
struct s2 {int (*f) (double a);};
2655
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2661
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2666
# Don't try gcc -ansi; that turns off useful extensions and
2667
# breaks some systems' header files.
2668
# AIX -qlanglvl=ansi
2669
# Ultrix and OSF/1 -std1
2670
# HP-UX 10.20 and later -Ae
2671
# HP-UX older versions -Aa -D_HPUX_SOURCE
2672
# SVR4 -Xc -D__EXTENSIONS__
2673
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2675
CC="$ac_save_CC $ac_arg"
2676
rm -f conftest.$ac_objext
2677
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2678
(eval $ac_compile) 2>conftest.er1
2680
grep -v '^ *+' conftest.er1 >conftest.err
2682
cat conftest.err >&5
2683
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684
(exit $ac_status); } &&
2685
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2686
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690
(exit $ac_status); }; } &&
2691
{ ac_try='test -s conftest.$ac_objext'
2692
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696
(exit $ac_status); }; }; then
2697
ac_cv_prog_cc_stdc=$ac_arg
2700
echo "$as_me: failed program was:" >&5
2701
sed 's/^/| /' conftest.$ac_ext >&5
2704
rm -f conftest.err conftest.$ac_objext
2706
rm -f conftest.$ac_ext conftest.$ac_objext
2711
case "x$ac_cv_prog_cc_stdc" in
2713
echo "$as_me:$LINENO: result: none needed" >&5
2714
echo "${ECHO_T}none needed" >&6 ;;
2716
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2717
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2718
CC="$CC $ac_cv_prog_cc_stdc" ;;
2721
# Some people use a C++ compiler to compile C. Since we use `exit',
2722
# in C++ we need to declare it. In case someone uses the same compiler
2723
# for both compiling C and C++ we need to have the C++ compiler decide
2724
# the declaration of exit, since it's the most demanding environment.
2725
cat >conftest.$ac_ext <<_ACEOF
2730
rm -f conftest.$ac_objext
2731
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2732
(eval $ac_compile) 2>conftest.er1
2734
grep -v '^ *+' conftest.er1 >conftest.err
2736
cat conftest.err >&5
2737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738
(exit $ac_status); } &&
2739
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2740
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744
(exit $ac_status); }; } &&
2745
{ ac_try='test -s conftest.$ac_objext'
2746
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750
(exit $ac_status); }; }; then
2751
for ac_declaration in \
2753
'extern "C" void std::exit (int) throw (); using std::exit;' \
2754
'extern "C" void std::exit (int); using std::exit;' \
2755
'extern "C" void exit (int) throw ();' \
2756
'extern "C" void exit (int);' \
2759
cat >conftest.$ac_ext <<_ACEOF
2762
cat confdefs.h >>conftest.$ac_ext
2763
cat >>conftest.$ac_ext <<_ACEOF
2764
/* end confdefs.h. */
2775
rm -f conftest.$ac_objext
2776
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2777
(eval $ac_compile) 2>conftest.er1
2779
grep -v '^ *+' conftest.er1 >conftest.err
2781
cat conftest.err >&5
2782
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783
(exit $ac_status); } &&
2784
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2785
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789
(exit $ac_status); }; } &&
2790
{ ac_try='test -s conftest.$ac_objext'
2791
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795
(exit $ac_status); }; }; then
2798
echo "$as_me: failed program was:" >&5
2799
sed 's/^/| /' conftest.$ac_ext >&5
2803
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2804
cat >conftest.$ac_ext <<_ACEOF
2807
cat confdefs.h >>conftest.$ac_ext
2808
cat >>conftest.$ac_ext <<_ACEOF
2809
/* end confdefs.h. */
2819
rm -f conftest.$ac_objext
2820
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2821
(eval $ac_compile) 2>conftest.er1
2823
grep -v '^ *+' conftest.er1 >conftest.err
2825
cat conftest.err >&5
2826
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827
(exit $ac_status); } &&
2828
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2829
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833
(exit $ac_status); }; } &&
2834
{ ac_try='test -s conftest.$ac_objext'
2835
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839
(exit $ac_status); }; }; then
2842
echo "$as_me: failed program was:" >&5
2843
sed 's/^/| /' conftest.$ac_ext >&5
2846
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2849
if test -n "$ac_declaration"; then
2850
echo '#ifdef __cplusplus' >>confdefs.h
2851
echo $ac_declaration >>confdefs.h
2852
echo '#endif' >>confdefs.h
2856
echo "$as_me: failed program was:" >&5
2857
sed 's/^/| /' conftest.$ac_ext >&5
2860
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2862
ac_cpp='$CPP $CPPFLAGS'
2863
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2864
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2865
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2866
DEPDIR="${am__leading_dot}deps"
2868
ac_config_commands="$ac_config_commands depfiles"
2871
am_make=${MAKE-make}
2872
cat > confinc << 'END'
2877
# If we don't find an include directive, just comment out the code.
2878
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2879
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2883
# First try GNU make style include.
2884
echo "include confinc" > confmf
2885
# We grep out `Entering directory' and `Leaving directory'
2886
# messages which can occur if `w' ends up in MAKEFLAGS.
2887
# In particular we don't look at `^make:' because GNU make might
2888
# be invoked under some other name (usually "gmake"), in which
2889
# case it prints its new name instead of `make'.
2890
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2895
# Now try BSD make style include.
2896
if test "$am__include" = "#"; then
2897
echo '.include "confinc"' > confmf
2898
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2899
am__include=.include
2906
echo "$as_me:$LINENO: result: $_am_result" >&5
2907
echo "${ECHO_T}$_am_result" >&6
2908
rm -f confinc confmf
2910
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2911
if test "${enable_dependency_tracking+set}" = set; then
2912
enableval="$enable_dependency_tracking"
2915
if test "x$enable_dependency_tracking" != xno; then
2916
am_depcomp="$ac_aux_dir/depcomp"
2921
if test "x$enable_dependency_tracking" != xno; then
2932
depcc="$CC" am_compiler_list=
2934
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2935
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2936
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2937
echo $ECHO_N "(cached) $ECHO_C" >&6
2939
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2940
# We make a subdir and do the tests there. Otherwise we can end up
2941
# making bogus files that we don't know about and never remove. For
2942
# instance it was reported that on HP-UX the gcc test will end up
2943
# making a dummy file named `D' -- because `-MD' means `put the output
2946
# Copy depcomp to subdir because otherwise we won't find it if we're
2947
# using a relative directory.
2948
cp "$am_depcomp" conftest.dir
2950
# We will build objects and dependencies in a subdirectory because
2951
# it helps to detect inapplicable dependency modes. For instance
2952
# both Tru64's cc and ICC support -MD to output dependencies as a
2953
# side effect of compilation, but ICC will put the dependencies in
2954
# the current directory while Tru64 will put them in the object
2958
am_cv_CC_dependencies_compiler_type=none
2959
if test "$am_compiler_list" = ""; then
2960
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2962
for depmode in $am_compiler_list; do
2963
# Setup a source with many dependencies, because some compilers
2964
# like to wrap large dependency lists on column 80 (with \), and
2965
# we should not choose a depcomp mode which is confused by this.
2967
# We need to recreate these files for each test, as the compiler may
2968
# overwrite some of them when testing with obscure command lines.
2969
# This happens at least with the AIX C compiler.
2971
for i in 1 2 3 4 5 6; do
2972
echo '#include "conftst'$i'.h"' >> sub/conftest.c
2975
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2979
# after this tag, mechanisms are not by side-effect, so they'll
2980
# only be used when explicitly requested
2981
if test "x$enable_dependency_tracking" = xyes; then
2989
# We check with `-c' and `-o' for the sake of the "dashmstdout"
2990
# mode. It turns out that the SunPro C++ compiler does not properly
2991
# handle `-M -o', and we need to detect this.
2992
if depmode=$depmode \
2993
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2994
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2995
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2996
>/dev/null 2>conftest.err &&
2997
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2998
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2999
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3000
# icc doesn't choke on unknown options, it will just issue warnings
3001
# (even with -Werror). So we grep stderr for any message
3002
# that says an option was ignored.
3003
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3004
am_cv_CC_dependencies_compiler_type=$depmode
3013
am_cv_CC_dependencies_compiler_type=none
3017
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3018
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3019
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3024
test "x$enable_dependency_tracking" != xno \
3025
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3027
am__fastdepCC_FALSE='#'
3029
am__fastdepCC_TRUE='#'
3030
am__fastdepCC_FALSE=
3034
# Find a good install program. We prefer a C program (faster),
3035
# so one script is as good as another. But avoid the broken or
3036
# incompatible versions:
3037
# SysV /etc/install, /usr/sbin/install
3038
# SunOS /usr/etc/install
3039
# IRIX /sbin/install
3041
# AmigaOS /C/install, which installs bootblocks on floppy discs
3042
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3043
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3044
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3045
# OS/2's system install, which has a completely different semantic
3046
# ./install, which can be erroneously created by make from ./install.sh.
3047
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3048
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3049
if test -z "$INSTALL"; then
3050
if test "${ac_cv_path_install+set}" = set; then
3051
echo $ECHO_N "(cached) $ECHO_C" >&6
3053
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057
test -z "$as_dir" && as_dir=.
3058
# Account for people who put trailing slashes in PATH elements.
3060
./ | .// | /cC/* | \
3061
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3062
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3065
# OSF1 and SCO ODT 3.0 have their own names for install.
3066
# Don't use installbsd from OSF since it installs stuff as root
3068
for ac_prog in ginstall scoinst install; do
3069
for ac_exec_ext in '' $ac_executable_extensions; do
3070
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3071
if test $ac_prog = install &&
3072
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3073
# AIX install. It has an incompatible calling convention.
3075
elif test $ac_prog = install &&
3076
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3077
# program-specific install script used by HP pwplus--don't use.
3080
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3092
if test "${ac_cv_path_install+set}" = set; then
3093
INSTALL=$ac_cv_path_install
3095
# As a last resort, use the slow shell script. We don't cache a
3096
# path for INSTALL within a source directory, because that will
3097
# break other packages using the cache if that directory is
3098
# removed, or if the path is relative.
3099
INSTALL=$ac_install_sh
3102
echo "$as_me:$LINENO: result: $INSTALL" >&5
3103
echo "${ECHO_T}$INSTALL" >&6
3105
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3106
# It thinks the first close brace ends the variable substitution.
3107
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3109
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3111
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3113
for ac_prog in 'bison -y' byacc
3115
# Extract the first word of "$ac_prog", so it can be a program name with args.
3116
set dummy $ac_prog; ac_word=$2
3117
echo "$as_me:$LINENO: checking for $ac_word" >&5
3118
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3119
if test "${ac_cv_prog_YACC+set}" = set; then
3120
echo $ECHO_N "(cached) $ECHO_C" >&6
3122
if test -n "$YACC"; then
3123
ac_cv_prog_YACC="$YACC" # Let the user override the test.
3125
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129
test -z "$as_dir" && as_dir=.
3130
for ac_exec_ext in '' $ac_executable_extensions; do
3131
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3132
ac_cv_prog_YACC="$ac_prog"
3133
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3141
YACC=$ac_cv_prog_YACC
3142
if test -n "$YACC"; then
3143
echo "$as_me:$LINENO: result: $YACC" >&5
3144
echo "${ECHO_T}$YACC" >&6
3146
echo "$as_me:$LINENO: result: no" >&5
3147
echo "${ECHO_T}no" >&6
3150
test -n "$YACC" && break
3152
test -n "$YACC" || YACC="yacc"
3157
ac_cpp='$CPP $CPPFLAGS'
3158
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3159
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3160
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3161
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3162
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3163
# On Suns, sometimes $CPP names a directory.
3164
if test -n "$CPP" && test -d "$CPP"; then
3167
if test -z "$CPP"; then
3168
if test "${ac_cv_prog_CPP+set}" = set; then
3169
echo $ECHO_N "(cached) $ECHO_C" >&6
3171
# Double quotes because CPP needs to be expanded
3172
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3175
for ac_c_preproc_warn_flag in '' yes
3177
# Use a header file that comes with gcc, so configuring glibc
3178
# with a fresh cross-compiler works.
3179
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3180
# <limits.h> exists even on freestanding compilers.
3181
# On the NeXT, cc -E runs the code through the compiler's parser,
3182
# not just through cpp. "Syntax error" is here to catch this case.
3183
cat >conftest.$ac_ext <<_ACEOF
3186
cat confdefs.h >>conftest.$ac_ext
3187
cat >>conftest.$ac_ext <<_ACEOF
3188
/* end confdefs.h. */
3190
# include <limits.h>
3192
# include <assert.h>
3196
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3197
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3199
grep -v '^ *+' conftest.er1 >conftest.err
3201
cat conftest.err >&5
3202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203
(exit $ac_status); } >/dev/null; then
3204
if test -s conftest.err; then
3205
ac_cpp_err=$ac_c_preproc_warn_flag
3206
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3213
if test -z "$ac_cpp_err"; then
3216
echo "$as_me: failed program was:" >&5
3217
sed 's/^/| /' conftest.$ac_ext >&5
3219
# Broken: fails on valid input.
3222
rm -f conftest.err conftest.$ac_ext
3224
# OK, works on sane cases. Now check whether non-existent headers
3225
# can be detected and how.
3226
cat >conftest.$ac_ext <<_ACEOF
3229
cat confdefs.h >>conftest.$ac_ext
3230
cat >>conftest.$ac_ext <<_ACEOF
3231
/* end confdefs.h. */
3232
#include <ac_nonexistent.h>
3234
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3235
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3237
grep -v '^ *+' conftest.er1 >conftest.err
3239
cat conftest.err >&5
3240
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241
(exit $ac_status); } >/dev/null; then
3242
if test -s conftest.err; then
3243
ac_cpp_err=$ac_c_preproc_warn_flag
3244
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3251
if test -z "$ac_cpp_err"; then
3252
# Broken: success on invalid input.
3255
echo "$as_me: failed program was:" >&5
3256
sed 's/^/| /' conftest.$ac_ext >&5
3258
# Passes both tests.
3262
rm -f conftest.err conftest.$ac_ext
3265
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3266
rm -f conftest.err conftest.$ac_ext
3267
if $ac_preproc_ok; then
3279
echo "$as_me:$LINENO: result: $CPP" >&5
3280
echo "${ECHO_T}$CPP" >&6
3282
for ac_c_preproc_warn_flag in '' yes
3284
# Use a header file that comes with gcc, so configuring glibc
3285
# with a fresh cross-compiler works.
3286
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3287
# <limits.h> exists even on freestanding compilers.
3288
# On the NeXT, cc -E runs the code through the compiler's parser,
3289
# not just through cpp. "Syntax error" is here to catch this case.
3290
cat >conftest.$ac_ext <<_ACEOF
3293
cat confdefs.h >>conftest.$ac_ext
3294
cat >>conftest.$ac_ext <<_ACEOF
3295
/* end confdefs.h. */
3297
# include <limits.h>
3299
# include <assert.h>
3303
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3304
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3306
grep -v '^ *+' conftest.er1 >conftest.err
3308
cat conftest.err >&5
3309
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310
(exit $ac_status); } >/dev/null; then
3311
if test -s conftest.err; then
3312
ac_cpp_err=$ac_c_preproc_warn_flag
3313
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3320
if test -z "$ac_cpp_err"; then
3323
echo "$as_me: failed program was:" >&5
3324
sed 's/^/| /' conftest.$ac_ext >&5
3326
# Broken: fails on valid input.
3329
rm -f conftest.err conftest.$ac_ext
3331
# OK, works on sane cases. Now check whether non-existent headers
3332
# can be detected and how.
3333
cat >conftest.$ac_ext <<_ACEOF
3336
cat confdefs.h >>conftest.$ac_ext
3337
cat >>conftest.$ac_ext <<_ACEOF
3338
/* end confdefs.h. */
3339
#include <ac_nonexistent.h>
3341
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3342
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3344
grep -v '^ *+' conftest.er1 >conftest.err
3346
cat conftest.err >&5
3347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348
(exit $ac_status); } >/dev/null; then
3349
if test -s conftest.err; then
3350
ac_cpp_err=$ac_c_preproc_warn_flag
3351
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3358
if test -z "$ac_cpp_err"; then
3359
# Broken: success on invalid input.
3362
echo "$as_me: failed program was:" >&5
3363
sed 's/^/| /' conftest.$ac_ext >&5
3365
# Passes both tests.
3369
rm -f conftest.err conftest.$ac_ext
3372
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3373
rm -f conftest.err conftest.$ac_ext
3374
if $ac_preproc_ok; then
3377
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3378
See \`config.log' for more details." >&5
3379
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3380
See \`config.log' for more details." >&2;}
3381
{ (exit 1); exit 1; }; }
3385
ac_cpp='$CPP $CPPFLAGS'
3386
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3387
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3388
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391
echo "$as_me:$LINENO: checking for egrep" >&5
3392
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3393
if test "${ac_cv_prog_egrep+set}" = set; then
3394
echo $ECHO_N "(cached) $ECHO_C" >&6
3396
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3397
then ac_cv_prog_egrep='grep -E'
3398
else ac_cv_prog_egrep='egrep'
3401
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3402
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3403
EGREP=$ac_cv_prog_egrep
3407
echo "$as_me:$LINENO: checking for Java compiler" >&5
3408
echo $ECHO_N "checking for Java compiler... $ECHO_C" >&6
3409
cat >conftest.$ac_ext <<_ACEOF
3412
cat confdefs.h >>conftest.$ac_ext
3413
cat >>conftest.$ac_ext <<_ACEOF
3414
/* end confdefs.h. */
3416
#if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__
3421
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3422
$EGREP "yes" >/dev/null 2>&1; then
3423
CLASSPATH_SEPARATOR=';'
3425
CLASSPATH_SEPARATOR=':'
3430
if test -n "$JAVAC"; then
3433
# Extract the first word of "gcj", so it can be a program name with args.
3434
set dummy gcj; ac_word=$2
3436
if test "${ac_cv_prog_HAVE_GCJ_IN_PATH+set}" = set; then
3437
echo $ECHO_N "(cached) $ECHO_C" >&6
3439
if test -n "$HAVE_GCJ_IN_PATH"; then
3440
ac_cv_prog_HAVE_GCJ_IN_PATH="$HAVE_GCJ_IN_PATH" # Let the user override the test.
3442
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446
test -z "$as_dir" && as_dir=.
3447
for ac_exec_ext in '' $ac_executable_extensions; do
3448
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449
ac_cv_prog_HAVE_GCJ_IN_PATH="yes"
3450
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3458
HAVE_GCJ_IN_PATH=$ac_cv_prog_HAVE_GCJ_IN_PATH
3459
if test -n "$HAVE_GCJ_IN_PATH"; then
3465
# Extract the first word of "javac", so it can be a program name with args.
3466
set dummy javac; ac_word=$2
3468
if test "${ac_cv_prog_HAVE_JAVAC_IN_PATH+set}" = set; then
3469
echo $ECHO_N "(cached) $ECHO_C" >&6
3471
if test -n "$HAVE_JAVAC_IN_PATH"; then
3472
ac_cv_prog_HAVE_JAVAC_IN_PATH="$HAVE_JAVAC_IN_PATH" # Let the user override the test.
3474
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478
test -z "$as_dir" && as_dir=.
3479
for ac_exec_ext in '' $ac_executable_extensions; do
3480
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3481
ac_cv_prog_HAVE_JAVAC_IN_PATH="yes"
3482
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3490
HAVE_JAVAC_IN_PATH=$ac_cv_prog_HAVE_JAVAC_IN_PATH
3491
if test -n "$HAVE_JAVAC_IN_PATH"; then
3497
# Extract the first word of "jikes", so it can be a program name with args.
3498
set dummy jikes; ac_word=$2
3500
if test "${ac_cv_prog_HAVE_JIKES_IN_PATH+set}" = set; then
3501
echo $ECHO_N "(cached) $ECHO_C" >&6
3503
if test -n "$HAVE_JIKES_IN_PATH"; then
3504
ac_cv_prog_HAVE_JIKES_IN_PATH="$HAVE_JIKES_IN_PATH" # Let the user override the test.
3506
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510
test -z "$as_dir" && as_dir=.
3511
for ac_exec_ext in '' $ac_executable_extensions; do
3512
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513
ac_cv_prog_HAVE_JIKES_IN_PATH="yes"
3514
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3522
HAVE_JIKES_IN_PATH=$ac_cv_prog_HAVE_JIKES_IN_PATH
3523
if test -n "$HAVE_JIKES_IN_PATH"; then
3529
# Test for a good gcj version (>= 3.0).
3530
# Exclude some versions of gcj: gcj 3.0.4 compiles GetURL.java to invalid
3531
# bytecode, that crashes with an IllegalAccessError when executed by
3532
# gij 3.0.4 or with a VerifyError when executed by Sun Java. Likewise for
3534
# I also exclude gcj 3.2, 3.3 etc. because I have no idea when this bug
3535
# will be fixed. The bug is registered as java/7066, see
3536
# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7066
3537
# FIXME: Check new versions of gcj as they come out.
3538
if test -n "$HAVE_GCJ_IN_PATH" \
3539
&& gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^3\.[0123456789]/d' | grep '^[3-9]' >/dev/null \
3541
# See if libgcj.jar is well installed.
3542
cat > conftest.java <<EOF
3543
public class conftest {
3544
public static void main (String[] args) {
3548
gcj -C -d . conftest.java 2>/dev/null
3550
rm -f conftest.java conftest.class
3556
if test -n "$HAVE_JAVAC_IN_PATH" \
3557
&& (javac -version >/dev/null 2>/dev/null || test $? -le 2) \
3558
&& (if javac -help 2>&1 >/dev/null | grep at.dms.kjc.Main >/dev/null && javac -help 2>/dev/null | grep 'released.*2000' >/dev/null ; then exit 1; else exit 0; fi); then
3562
if test -n "$HAVE_JIKES_IN_PATH" \
3563
&& (jikes >/dev/null 2>/dev/null || test $? = 1) \
3565
# See if the existing CLASSPATH is sufficient to make jikes work.
3566
cat > conftest.java <<EOF
3567
public class conftest {
3568
public static void main (String[] args) {
3573
jikes conftest.java 2>/dev/null
3575
rm -f conftest.java conftest.class
3587
echo "$as_me:$LINENO: result: $ac_result" >&5
3588
echo "${ECHO_T}$ac_result" >&6
3596
# Extract the first word of "jar", so it can be a program name with args.
3597
set dummy jar; ac_word=$2
3598
echo "$as_me:$LINENO: checking for $ac_word" >&5
3599
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3600
if test "${ac_cv_prog_JAR+set}" = set; then
3601
echo $ECHO_N "(cached) $ECHO_C" >&6
3603
if test -n "$JAR"; then
3604
ac_cv_prog_JAR="$JAR" # Let the user override the test.
3606
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610
test -z "$as_dir" && as_dir=.
3611
for ac_exec_ext in '' $ac_executable_extensions; do
3612
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3613
ac_cv_prog_JAR="jar"
3614
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3623
if test -n "$JAR"; then
3624
echo "$as_me:$LINENO: result: $JAR" >&5
3625
echo "${ECHO_T}$JAR" >&6
3627
echo "$as_me:$LINENO: result: no" >&5
3628
echo "${ECHO_T}no" >&6
3631
if test -n "$HAVE_JAVACOMP" && test -n "$JAR"; then
3639
echo "$as_me:$LINENO: checking for preferred C# implementation" >&5
3640
echo $ECHO_N "checking for preferred C# implementation... $ECHO_C" >&6
3641
# Check whether --enable-csharp or --disable-csharp was given.
3642
if test "${enable_csharp+set}" = set; then
3643
enableval="$enable_csharp"
3644
CSHARP_CHOICE="$enableval"
3649
echo "$as_me:$LINENO: result: $CSHARP_CHOICE" >&5
3650
echo "${ECHO_T}$CSHARP_CHOICE" >&6
3651
case "$CSHARP_CHOICE" in
3654
cat >>confdefs.h <<\_ACEOF
3655
#define CSHARP_CHOICE_PNET 1
3661
cat >>confdefs.h <<\_ACEOF
3662
#define CSHARP_CHOICE_MONO 1
3670
echo "$as_me:$LINENO: checking for C# compiler" >&5
3671
echo $ECHO_N "checking for C# compiler... $ECHO_C" >&6
3673
# Extract the first word of "cscc", so it can be a program name with args.
3674
set dummy cscc; ac_word=$2
3676
if test "${ac_cv_prog_HAVE_CSCC_IN_PATH+set}" = set; then
3677
echo $ECHO_N "(cached) $ECHO_C" >&6
3679
if test -n "$HAVE_CSCC_IN_PATH"; then
3680
ac_cv_prog_HAVE_CSCC_IN_PATH="$HAVE_CSCC_IN_PATH" # Let the user override the test.
3682
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686
test -z "$as_dir" && as_dir=.
3687
for ac_exec_ext in '' $ac_executable_extensions; do
3688
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3689
ac_cv_prog_HAVE_CSCC_IN_PATH="yes"
3690
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3698
HAVE_CSCC_IN_PATH=$ac_cv_prog_HAVE_CSCC_IN_PATH
3699
if test -n "$HAVE_CSCC_IN_PATH"; then
3705
# Extract the first word of "mcs", so it can be a program name with args.
3706
set dummy mcs; ac_word=$2
3708
if test "${ac_cv_prog_HAVE_MCS_IN_PATH+set}" = set; then
3709
echo $ECHO_N "(cached) $ECHO_C" >&6
3711
if test -n "$HAVE_MCS_IN_PATH"; then
3712
ac_cv_prog_HAVE_MCS_IN_PATH="$HAVE_MCS_IN_PATH" # Let the user override the test.
3714
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718
test -z "$as_dir" && as_dir=.
3719
for ac_exec_ext in '' $ac_executable_extensions; do
3720
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3721
ac_cv_prog_HAVE_MCS_IN_PATH="yes"
3722
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3730
HAVE_MCS_IN_PATH=$ac_cv_prog_HAVE_MCS_IN_PATH
3731
if test -n "$HAVE_MCS_IN_PATH"; then
3737
# Extract the first word of "csc", so it can be a program name with args.
3738
set dummy csc; ac_word=$2
3740
if test "${ac_cv_prog_HAVE_CSC_IN_PATH+set}" = set; then
3741
echo $ECHO_N "(cached) $ECHO_C" >&6
3743
if test -n "$HAVE_CSC_IN_PATH"; then
3744
ac_cv_prog_HAVE_CSC_IN_PATH="$HAVE_CSC_IN_PATH" # Let the user override the test.
3746
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750
test -z "$as_dir" && as_dir=.
3751
for ac_exec_ext in '' $ac_executable_extensions; do
3752
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3753
ac_cv_prog_HAVE_CSC_IN_PATH="yes"
3754
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3762
HAVE_CSC_IN_PATH=$ac_cv_prog_HAVE_CSC_IN_PATH
3763
if test -n "$HAVE_CSC_IN_PATH"; then
3769
for impl in "$CSHARP_CHOICE" pnet mono sscli no; do
3772
if test -n "$HAVE_CSCC_IN_PATH" \
3773
&& cscc --version >/dev/null 2>/dev/null; then
3780
if test -n "$HAVE_MCS_IN_PATH" \
3781
&& mcs --version >/dev/null 2>/dev/null; then
3788
if test -n "$HAVE_CSC_IN_PATH" \
3789
&& csc -help >/dev/null 2>/dev/null; then
3802
echo "$as_me:$LINENO: result: $ac_result" >&5
3803
echo "${ECHO_T}$ac_result" >&6
3808
if test -n "$HAVE_CSHARPCOMP" && test "$CSHARP_CHOICE" != no; then
3815
# Make sure we can run config.sub.
3816
$ac_config_sub sun4 >/dev/null 2>&1 ||
3817
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3818
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3819
{ (exit 1); exit 1; }; }
3821
echo "$as_me:$LINENO: checking build system type" >&5
3822
echo $ECHO_N "checking build system type... $ECHO_C" >&6
3823
if test "${ac_cv_build+set}" = set; then
3824
echo $ECHO_N "(cached) $ECHO_C" >&6
3826
ac_cv_build_alias=$build_alias
3827
test -z "$ac_cv_build_alias" &&
3828
ac_cv_build_alias=`$ac_config_guess`
3829
test -z "$ac_cv_build_alias" &&
3830
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3831
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3832
{ (exit 1); exit 1; }; }
3833
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3834
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3835
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3836
{ (exit 1); exit 1; }; }
3839
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3840
echo "${ECHO_T}$ac_cv_build" >&6
3842
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3843
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3844
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3847
echo "$as_me:$LINENO: checking host system type" >&5
3848
echo $ECHO_N "checking host system type... $ECHO_C" >&6
3849
if test "${ac_cv_host+set}" = set; then
3850
echo $ECHO_N "(cached) $ECHO_C" >&6
3852
ac_cv_host_alias=$host_alias
3853
test -z "$ac_cv_host_alias" &&
3854
ac_cv_host_alias=$ac_cv_build_alias
3855
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3856
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3857
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3858
{ (exit 1); exit 1; }; }
3861
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3862
echo "${ECHO_T}$ac_cv_host" >&6
3864
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3865
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3866
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3870
echo "$as_me:$LINENO: checking for library containing strerror" >&5
3871
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3872
if test "${ac_cv_search_strerror+set}" = set; then
3873
echo $ECHO_N "(cached) $ECHO_C" >&6
3875
ac_func_search_save_LIBS=$LIBS
3876
ac_cv_search_strerror=no
3877
cat >conftest.$ac_ext <<_ACEOF
3880
cat confdefs.h >>conftest.$ac_ext
3881
cat >>conftest.$ac_ext <<_ACEOF
3882
/* end confdefs.h. */
3884
/* Override any gcc2 internal prototype to avoid an error. */
3888
/* We use char because int might match the return type of a gcc2
3889
builtin and then its argument prototype would still apply. */
3899
rm -f conftest.$ac_objext conftest$ac_exeext
3900
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3901
(eval $ac_link) 2>conftest.er1
3903
grep -v '^ *+' conftest.er1 >conftest.err
3905
cat conftest.err >&5
3906
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907
(exit $ac_status); } &&
3908
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3909
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3912
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913
(exit $ac_status); }; } &&
3914
{ ac_try='test -s conftest$ac_exeext'
3915
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919
(exit $ac_status); }; }; then
3920
ac_cv_search_strerror="none required"
3922
echo "$as_me: failed program was:" >&5
3923
sed 's/^/| /' conftest.$ac_ext >&5
3926
rm -f conftest.err conftest.$ac_objext \
3927
conftest$ac_exeext conftest.$ac_ext
3928
if test "$ac_cv_search_strerror" = no; then
3929
for ac_lib in cposix; do
3930
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3931
cat >conftest.$ac_ext <<_ACEOF
3934
cat confdefs.h >>conftest.$ac_ext
3935
cat >>conftest.$ac_ext <<_ACEOF
3936
/* end confdefs.h. */
3938
/* Override any gcc2 internal prototype to avoid an error. */
3942
/* We use char because int might match the return type of a gcc2
3943
builtin and then its argument prototype would still apply. */
3953
rm -f conftest.$ac_objext conftest$ac_exeext
3954
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3955
(eval $ac_link) 2>conftest.er1
3957
grep -v '^ *+' conftest.er1 >conftest.err
3959
cat conftest.err >&5
3960
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961
(exit $ac_status); } &&
3962
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3963
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967
(exit $ac_status); }; } &&
3968
{ ac_try='test -s conftest$ac_exeext'
3969
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973
(exit $ac_status); }; }; then
3974
ac_cv_search_strerror="-l$ac_lib"
3977
echo "$as_me: failed program was:" >&5
3978
sed 's/^/| /' conftest.$ac_ext >&5
3981
rm -f conftest.err conftest.$ac_objext \
3982
conftest$ac_exeext conftest.$ac_ext
3985
LIBS=$ac_func_search_save_LIBS
3987
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3988
echo "${ECHO_T}$ac_cv_search_strerror" >&6
3989
if test "$ac_cv_search_strerror" != no; then
3990
test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3999
cat >>confdefs.h <<\_ACEOF
4000
#define _GNU_SOURCE 1
4008
cat >>confdefs.h <<\_ACEOF
4009
#define __EXTENSIONS__ 1
4016
# Check whether --enable-shared or --disable-shared was given.
4017
if test "${enable_shared+set}" = set; then
4018
enableval="$enable_shared"
4019
p=${PACKAGE-default}
4021
yes) enable_shared=yes ;;
4022
no) enable_shared=no ;;
4025
# Look at the argument we got. We use all the common list separators.
4026
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4027
for pkg in $enableval; do
4029
if test "X$pkg" = "X$p"; then
4040
# Check whether --enable-static or --disable-static was given.
4041
if test "${enable_static+set}" = set; then
4042
enableval="$enable_static"
4043
p=${PACKAGE-default}
4045
yes) enable_static=yes ;;
4046
no) enable_static=no ;;
4049
# Look at the argument we got. We use all the common list separators.
4050
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4051
for pkg in $enableval; do
4053
if test "X$pkg" = "X$p"; then
4064
# Check whether --enable-fast-install or --disable-fast-install was given.
4065
if test "${enable_fast_install+set}" = set; then
4066
enableval="$enable_fast_install"
4067
p=${PACKAGE-default}
4069
yes) enable_fast_install=yes ;;
4070
no) enable_fast_install=no ;;
4072
enable_fast_install=no
4073
# Look at the argument we got. We use all the common list separators.
4074
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4075
for pkg in $enableval; do
4077
if test "X$pkg" = "X$p"; then
4078
enable_fast_install=yes
4085
enable_fast_install=yes
4088
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4089
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4090
if test "${lt_cv_path_SED+set}" = set; then
4091
echo $ECHO_N "(cached) $ECHO_C" >&6
4093
# Loop through the user's path and test for sed and gsed.
4094
# Then use that list of sed's as ones to test for truncation.
4095
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099
test -z "$as_dir" && as_dir=.
4100
for lt_ac_prog in sed gsed; do
4101
for ac_exec_ext in '' $ac_executable_extensions; do
4102
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4103
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4110
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4111
# along with /bin/sed that truncates output.
4112
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4113
test ! -f $lt_ac_sed && break
4114
cat /dev/null > conftest.in
4116
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4117
# Check for GNU sed and select it if it is found.
4118
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4119
lt_cv_path_SED=$lt_ac_sed
4123
cat conftest.in conftest.in >conftest.tmp
4124
mv conftest.tmp conftest.in
4125
cp conftest.in conftest.nl
4127
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4128
cmp -s conftest.out conftest.nl || break
4129
# 10000 chars as input seems more than enough
4130
test $lt_ac_count -gt 10 && break
4131
lt_ac_count=`expr $lt_ac_count + 1`
4132
if test $lt_ac_count -gt $lt_ac_max; then
4133
lt_ac_max=$lt_ac_count
4134
lt_cv_path_SED=$lt_ac_sed
4142
echo "$as_me:$LINENO: result: $SED" >&5
4143
echo "${ECHO_T}$SED" >&6
4146
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4147
if test "${with_gnu_ld+set}" = set; then
4148
withval="$with_gnu_ld"
4149
test "$withval" = no || with_gnu_ld=yes
4154
if test "$GCC" = yes; then
4155
# Check if gcc -print-prog-name=ld gives a path.
4156
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4157
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4160
# gcc leaves a trailing carriage return which upsets mingw
4161
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4163
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4166
# Accept absolute paths.
4168
re_direlt='/[^/][^/]*/\.\./'
4169
# Canonicalize the pathname of ld
4170
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4171
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4172
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4174
test -z "$LD" && LD="$ac_prog"
4177
# If it fails, then pretend we aren't using GCC.
4181
# If it is relative, then search for the first ld in PATH.
4185
elif test "$with_gnu_ld" = yes; then
4186
echo "$as_me:$LINENO: checking for GNU ld" >&5
4187
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4189
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4190
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4192
if test "${lt_cv_path_LD+set}" = set; then
4193
echo $ECHO_N "(cached) $ECHO_C" >&6
4195
if test -z "$LD"; then
4196
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4197
for ac_dir in $PATH; do
4199
test -z "$ac_dir" && ac_dir=.
4200
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4201
lt_cv_path_LD="$ac_dir/$ac_prog"
4202
# Check to see if the program is GNU ld. I'd rather use --version,
4203
# but apparently some GNU ld's only accept -v.
4204
# Break only if it was the GNU/non-GNU ld that we prefer.
4205
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4206
*GNU* | *'with BFD'*)
4207
test "$with_gnu_ld" != no && break
4210
test "$with_gnu_ld" != yes && break
4217
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4222
if test -n "$LD"; then
4223
echo "$as_me:$LINENO: result: $LD" >&5
4224
echo "${ECHO_T}$LD" >&6
4226
echo "$as_me:$LINENO: result: no" >&5
4227
echo "${ECHO_T}no" >&6
4229
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4230
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4231
{ (exit 1); exit 1; }; }
4232
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4233
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4234
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4235
echo $ECHO_N "(cached) $ECHO_C" >&6
4237
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
4238
case `$LD -v 2>&1 </dev/null` in
4239
*GNU* | *'with BFD'*)
4240
lt_cv_prog_gnu_ld=yes
4243
lt_cv_prog_gnu_ld=no
4247
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4248
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4249
with_gnu_ld=$lt_cv_prog_gnu_ld
4252
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4253
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4254
if test "${lt_cv_ld_reload_flag+set}" = set; then
4255
echo $ECHO_N "(cached) $ECHO_C" >&6
4257
lt_cv_ld_reload_flag='-r'
4259
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4260
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4261
reload_flag=$lt_cv_ld_reload_flag
4262
case $reload_flag in
4264
*) reload_flag=" $reload_flag" ;;
4266
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4268
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4269
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4270
if test "${lt_cv_path_NM+set}" = set; then
4271
echo $ECHO_N "(cached) $ECHO_C" >&6
4273
if test -n "$NM"; then
4274
# Let the user override the test.
4277
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4278
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4280
test -z "$ac_dir" && ac_dir=.
4281
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4282
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4283
# Check to see if the nm accepts a BSD-compat flag.
4284
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4285
# nm: unknown option "B" ignored
4286
# Tru64's nm complains that /dev/null is an invalid object file
4287
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4288
*/dev/null* | *'Invalid file or object type'*)
4289
lt_cv_path_NM="$tmp_nm -B"
4293
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4295
lt_cv_path_NM="$tmp_nm -p"
4299
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4300
continue # so that we can try to find one that supports BSD flags
4307
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4310
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4311
echo "${ECHO_T}$lt_cv_path_NM" >&6
4314
echo "$as_me:$LINENO: checking whether ln -s works" >&5
4315
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4317
if test "$LN_S" = "ln -s"; then
4318
echo "$as_me:$LINENO: result: yes" >&5
4319
echo "${ECHO_T}yes" >&6
4321
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4322
echo "${ECHO_T}no, using $LN_S" >&6
4325
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4326
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4327
if test "${lt_cv_deplibs_check_method+set}" = set; then
4328
echo $ECHO_N "(cached) $ECHO_C" >&6
4330
lt_cv_file_magic_cmd='$MAGIC_CMD'
4331
lt_cv_file_magic_test_file=
4332
lt_cv_deplibs_check_method='unknown'
4333
# Need to set the preceding variable on all platforms that support
4334
# interlibrary dependencies.
4335
# 'none' -- dependencies not supported.
4336
# `unknown' -- same as none, but documents that we really don't know.
4337
# 'pass_all' -- all dependencies passed with no checks.
4338
# 'test_compile' -- check by making test program.
4339
# 'file_magic [[regex]]' -- check by looking for files in library path
4340
# which responds to the $file_magic_cmd with a given extended regex.
4341
# If you have `file' or equivalent on your system and you're not sure
4342
# whether `pass_all' will *always* work, you probably want this one.
4346
lt_cv_deplibs_check_method=pass_all
4350
lt_cv_deplibs_check_method=pass_all
4354
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4355
lt_cv_file_magic_cmd='/usr/bin/file -L'
4356
lt_cv_file_magic_test_file=/shlib/libc.so
4360
# win32_libid is a shell function defined in ltmain.sh
4361
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4362
lt_cv_file_magic_cmd='win32_libid'
4366
# Base MSYS/MinGW do not provide the 'file' command needed by
4367
# win32_libid shell function, so use a weaker test based on 'objdump'.
4368
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4369
lt_cv_file_magic_cmd='$OBJDUMP -f'
4372
darwin* | rhapsody*)
4373
lt_cv_deplibs_check_method=pass_all
4376
freebsd* | kfreebsd*-gnu)
4377
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4380
# Not sure whether the presence of OpenBSD here was a mistake.
4381
# Let's accept both of them until this is cleared up.
4382
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4383
lt_cv_file_magic_cmd=/usr/bin/file
4384
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4388
lt_cv_deplibs_check_method=pass_all
4393
lt_cv_deplibs_check_method=pass_all
4396
hpux10.20* | hpux11*)
4397
lt_cv_file_magic_cmd=/usr/bin/file
4400
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4401
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4404
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]'
4405
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4408
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4409
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4414
irix5* | irix6* | nonstopux*)
4416
*-32|*"-32 ") libmagic=32-bit;;
4417
*-n32|*"-n32 ") libmagic=N32;;
4418
*-64|*"-64 ") libmagic=64-bit;;
4419
*) libmagic=never-match;;
4421
lt_cv_deplibs_check_method=pass_all
4424
# This must be Linux ELF.
4426
lt_cv_deplibs_check_method=pass_all
4429
netbsd* | knetbsd*-gnu)
4430
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4431
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4433
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4438
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4439
lt_cv_file_magic_cmd=/usr/bin/file
4440
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4444
lt_cv_deplibs_check_method=unknown
4448
lt_cv_file_magic_cmd=/usr/bin/file
4449
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4450
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4451
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4453
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4457
osf3* | osf4* | osf5*)
4458
lt_cv_deplibs_check_method=pass_all
4462
lt_cv_deplibs_check_method=pass_all
4466
lt_cv_deplibs_check_method=pass_all
4469
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4470
case $host_vendor in
4472
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]'
4473
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4476
lt_cv_deplibs_check_method=pass_all
4479
lt_cv_file_magic_cmd='/bin/file'
4480
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4483
lt_cv_file_magic_cmd='/bin/file'
4484
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4485
lt_cv_file_magic_test_file=/lib/libc.so
4488
lt_cv_deplibs_check_method=pass_all
4493
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4494
lt_cv_deplibs_check_method=pass_all
4499
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4500
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4501
file_magic_cmd=$lt_cv_file_magic_cmd
4502
deplibs_check_method=$lt_cv_deplibs_check_method
4503
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4506
# If no C compiler was specified, use CC.
4509
# Allow CC to be a program name with arguments.
4512
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4513
if test "${enable_libtool_lock+set}" = set; then
4514
enableval="$enable_libtool_lock"
4517
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4519
# Some flags need to be propagated to the compiler or linker for good
4523
# Find out which ABI we are using.
4524
echo 'int i;' > conftest.$ac_ext
4525
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4526
(eval $ac_compile) 2>&5
4528
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529
(exit $ac_status); }; then
4530
case `/usr/bin/file conftest.$ac_objext` in
4542
# Find out which ABI we are using.
4543
echo '#line 4543 "configure"' > conftest.$ac_ext
4544
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4545
(eval $ac_compile) 2>&5
4547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548
(exit $ac_status); }; then
4549
if test "$lt_cv_prog_gnu_ld" = yes; then
4550
case `/usr/bin/file conftest.$ac_objext` in
4552
LD="${LD-ld} -melf32bsmip"
4555
LD="${LD-ld} -melf32bmipn32"
4558
LD="${LD-ld} -melf64bmip"
4562
case `/usr/bin/file conftest.$ac_objext` in
4578
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4579
# Find out which ABI we are using.
4580
echo 'int i;' > conftest.$ac_ext
4581
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582
(eval $ac_compile) 2>&5
4584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585
(exit $ac_status); }; then
4586
case "`/usr/bin/file conftest.o`" in
4590
LD="${LD-ld} -m elf_i386"
4592
ppc64-*linux*|powerpc64-*linux*)
4593
LD="${LD-ld} -m elf32ppclinux"
4596
LD="${LD-ld} -m elf_s390"
4599
LD="${LD-ld} -m elf32_sparc"
4606
LD="${LD-ld} -m elf_x86_64"
4608
ppc*-*linux*|powerpc*-*linux*)
4609
LD="${LD-ld} -m elf64ppc"
4612
LD="${LD-ld} -m elf64_s390"
4615
LD="${LD-ld} -m elf64_sparc"
4625
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4626
SAVE_CFLAGS="$CFLAGS"
4627
CFLAGS="$CFLAGS -belf"
4628
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4629
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4630
if test "${lt_cv_cc_needs_belf+set}" = set; then
4631
echo $ECHO_N "(cached) $ECHO_C" >&6
4634
ac_cpp='$CPP $CPPFLAGS'
4635
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4636
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4637
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4639
cat >conftest.$ac_ext <<_ACEOF
4642
cat confdefs.h >>conftest.$ac_ext
4643
cat >>conftest.$ac_ext <<_ACEOF
4644
/* end confdefs.h. */
4654
rm -f conftest.$ac_objext conftest$ac_exeext
4655
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4656
(eval $ac_link) 2>conftest.er1
4658
grep -v '^ *+' conftest.er1 >conftest.err
4660
cat conftest.err >&5
4661
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662
(exit $ac_status); } &&
4663
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4664
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668
(exit $ac_status); }; } &&
4669
{ ac_try='test -s conftest$ac_exeext'
4670
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674
(exit $ac_status); }; }; then
4675
lt_cv_cc_needs_belf=yes
4677
echo "$as_me: failed program was:" >&5
4678
sed 's/^/| /' conftest.$ac_ext >&5
4680
lt_cv_cc_needs_belf=no
4682
rm -f conftest.err conftest.$ac_objext \
4683
conftest$ac_exeext conftest.$ac_ext
4685
ac_cpp='$CPP $CPPFLAGS'
4686
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4687
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4688
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4691
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4692
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4693
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4694
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4695
CFLAGS="$SAVE_CFLAGS"
4698
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4699
if test -n "$ac_tool_prefix"; then
4700
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4701
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4702
echo "$as_me:$LINENO: checking for $ac_word" >&5
4703
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4704
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4705
echo $ECHO_N "(cached) $ECHO_C" >&6
4707
if test -n "$DLLTOOL"; then
4708
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4710
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714
test -z "$as_dir" && as_dir=.
4715
for ac_exec_ext in '' $ac_executable_extensions; do
4716
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4717
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4718
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4726
DLLTOOL=$ac_cv_prog_DLLTOOL
4727
if test -n "$DLLTOOL"; then
4728
echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4729
echo "${ECHO_T}$DLLTOOL" >&6
4731
echo "$as_me:$LINENO: result: no" >&5
4732
echo "${ECHO_T}no" >&6
4736
if test -z "$ac_cv_prog_DLLTOOL"; then
4737
ac_ct_DLLTOOL=$DLLTOOL
4738
# Extract the first word of "dlltool", so it can be a program name with args.
4739
set dummy dlltool; ac_word=$2
4740
echo "$as_me:$LINENO: checking for $ac_word" >&5
4741
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4742
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4743
echo $ECHO_N "(cached) $ECHO_C" >&6
4745
if test -n "$ac_ct_DLLTOOL"; then
4746
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4748
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752
test -z "$as_dir" && as_dir=.
4753
for ac_exec_ext in '' $ac_executable_extensions; do
4754
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4755
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4756
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4762
test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4765
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4766
if test -n "$ac_ct_DLLTOOL"; then
4767
echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4768
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4770
echo "$as_me:$LINENO: result: no" >&5
4771
echo "${ECHO_T}no" >&6
4774
DLLTOOL=$ac_ct_DLLTOOL
4776
DLLTOOL="$ac_cv_prog_DLLTOOL"
4779
if test -n "$ac_tool_prefix"; then
4780
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4781
set dummy ${ac_tool_prefix}as; ac_word=$2
4782
echo "$as_me:$LINENO: checking for $ac_word" >&5
4783
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4784
if test "${ac_cv_prog_AS+set}" = set; then
4785
echo $ECHO_N "(cached) $ECHO_C" >&6
4787
if test -n "$AS"; then
4788
ac_cv_prog_AS="$AS" # Let the user override the test.
4790
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794
test -z "$as_dir" && as_dir=.
4795
for ac_exec_ext in '' $ac_executable_extensions; do
4796
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4797
ac_cv_prog_AS="${ac_tool_prefix}as"
4798
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4807
if test -n "$AS"; then
4808
echo "$as_me:$LINENO: result: $AS" >&5
4809
echo "${ECHO_T}$AS" >&6
4811
echo "$as_me:$LINENO: result: no" >&5
4812
echo "${ECHO_T}no" >&6
4816
if test -z "$ac_cv_prog_AS"; then
4818
# Extract the first word of "as", so it can be a program name with args.
4819
set dummy as; ac_word=$2
4820
echo "$as_me:$LINENO: checking for $ac_word" >&5
4821
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4822
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4823
echo $ECHO_N "(cached) $ECHO_C" >&6
4825
if test -n "$ac_ct_AS"; then
4826
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4828
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832
test -z "$as_dir" && as_dir=.
4833
for ac_exec_ext in '' $ac_executable_extensions; do
4834
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4835
ac_cv_prog_ac_ct_AS="as"
4836
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4842
test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4845
ac_ct_AS=$ac_cv_prog_ac_ct_AS
4846
if test -n "$ac_ct_AS"; then
4847
echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4848
echo "${ECHO_T}$ac_ct_AS" >&6
4850
echo "$as_me:$LINENO: result: no" >&5
4851
echo "${ECHO_T}no" >&6
4859
if test -n "$ac_tool_prefix"; then
4860
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4861
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4862
echo "$as_me:$LINENO: checking for $ac_word" >&5
4863
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4864
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4865
echo $ECHO_N "(cached) $ECHO_C" >&6
4867
if test -n "$OBJDUMP"; then
4868
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4870
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874
test -z "$as_dir" && as_dir=.
4875
for ac_exec_ext in '' $ac_executable_extensions; do
4876
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4877
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4878
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4886
OBJDUMP=$ac_cv_prog_OBJDUMP
4887
if test -n "$OBJDUMP"; then
4888
echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4889
echo "${ECHO_T}$OBJDUMP" >&6
4891
echo "$as_me:$LINENO: result: no" >&5
4892
echo "${ECHO_T}no" >&6
4896
if test -z "$ac_cv_prog_OBJDUMP"; then
4897
ac_ct_OBJDUMP=$OBJDUMP
4898
# Extract the first word of "objdump", so it can be a program name with args.
4899
set dummy objdump; ac_word=$2
4900
echo "$as_me:$LINENO: checking for $ac_word" >&5
4901
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4902
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4903
echo $ECHO_N "(cached) $ECHO_C" >&6
4905
if test -n "$ac_ct_OBJDUMP"; then
4906
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4908
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912
test -z "$as_dir" && as_dir=.
4913
for ac_exec_ext in '' $ac_executable_extensions; do
4914
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4915
ac_cv_prog_ac_ct_OBJDUMP="objdump"
4916
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4922
test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4925
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4926
if test -n "$ac_ct_OBJDUMP"; then
4927
echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4928
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4930
echo "$as_me:$LINENO: result: no" >&5
4931
echo "${ECHO_T}no" >&6
4934
OBJDUMP=$ac_ct_OBJDUMP
4936
OBJDUMP="$ac_cv_prog_OBJDUMP"
4943
need_locks="$enable_libtool_lock"
4946
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4947
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4948
if test "${ac_cv_header_stdc+set}" = set; then
4949
echo $ECHO_N "(cached) $ECHO_C" >&6
4951
cat >conftest.$ac_ext <<_ACEOF
4954
cat confdefs.h >>conftest.$ac_ext
4955
cat >>conftest.$ac_ext <<_ACEOF
4956
/* end confdefs.h. */
4970
rm -f conftest.$ac_objext
4971
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4972
(eval $ac_compile) 2>conftest.er1
4974
grep -v '^ *+' conftest.er1 >conftest.err
4976
cat conftest.err >&5
4977
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978
(exit $ac_status); } &&
4979
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4980
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984
(exit $ac_status); }; } &&
4985
{ ac_try='test -s conftest.$ac_objext'
4986
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990
(exit $ac_status); }; }; then
4991
ac_cv_header_stdc=yes
4993
echo "$as_me: failed program was:" >&5
4994
sed 's/^/| /' conftest.$ac_ext >&5
4996
ac_cv_header_stdc=no
4998
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5000
if test $ac_cv_header_stdc = yes; then
5001
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5002
cat >conftest.$ac_ext <<_ACEOF
5005
cat confdefs.h >>conftest.$ac_ext
5006
cat >>conftest.$ac_ext <<_ACEOF
5007
/* end confdefs.h. */
5011
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5012
$EGREP "memchr" >/dev/null 2>&1; then
5015
ac_cv_header_stdc=no
5021
if test $ac_cv_header_stdc = yes; then
5022
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5023
cat >conftest.$ac_ext <<_ACEOF
5026
cat confdefs.h >>conftest.$ac_ext
5027
cat >>conftest.$ac_ext <<_ACEOF
5028
/* end confdefs.h. */
5032
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5033
$EGREP "free" >/dev/null 2>&1; then
5036
ac_cv_header_stdc=no
5042
if test $ac_cv_header_stdc = yes; then
5043
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5044
if test "$cross_compiling" = yes; then
5047
cat >conftest.$ac_ext <<_ACEOF
5050
cat confdefs.h >>conftest.$ac_ext
5051
cat >>conftest.$ac_ext <<_ACEOF
5052
/* end confdefs.h. */
5054
#if ((' ' & 0x0FF) == 0x020)
5055
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5056
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5058
# define ISLOWER(c) \
5059
(('a' <= (c) && (c) <= 'i') \
5060
|| ('j' <= (c) && (c) <= 'r') \
5061
|| ('s' <= (c) && (c) <= 'z'))
5062
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5065
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5070
for (i = 0; i < 256; i++)
5071
if (XOR (islower (i), ISLOWER (i))
5072
|| toupper (i) != TOUPPER (i))
5077
rm -f conftest$ac_exeext
5078
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5079
(eval $ac_link) 2>&5
5081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5083
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087
(exit $ac_status); }; }; then
5090
echo "$as_me: program exited with status $ac_status" >&5
5091
echo "$as_me: failed program was:" >&5
5092
sed 's/^/| /' conftest.$ac_ext >&5
5095
ac_cv_header_stdc=no
5097
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5101
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5102
echo "${ECHO_T}$ac_cv_header_stdc" >&6
5103
if test $ac_cv_header_stdc = yes; then
5105
cat >>confdefs.h <<\_ACEOF
5106
#define STDC_HEADERS 1
5111
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5121
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5122
inttypes.h stdint.h unistd.h
5124
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5125
echo "$as_me:$LINENO: checking for $ac_header" >&5
5126
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5127
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5128
echo $ECHO_N "(cached) $ECHO_C" >&6
5130
cat >conftest.$ac_ext <<_ACEOF
5133
cat confdefs.h >>conftest.$ac_ext
5134
cat >>conftest.$ac_ext <<_ACEOF
5135
/* end confdefs.h. */
5136
$ac_includes_default
5138
#include <$ac_header>
5140
rm -f conftest.$ac_objext
5141
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5142
(eval $ac_compile) 2>conftest.er1
5144
grep -v '^ *+' conftest.er1 >conftest.err
5146
cat conftest.err >&5
5147
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148
(exit $ac_status); } &&
5149
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5150
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154
(exit $ac_status); }; } &&
5155
{ ac_try='test -s conftest.$ac_objext'
5156
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160
(exit $ac_status); }; }; then
5161
eval "$as_ac_Header=yes"
5163
echo "$as_me: failed program was:" >&5
5164
sed 's/^/| /' conftest.$ac_ext >&5
5166
eval "$as_ac_Header=no"
5168
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5170
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5171
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5172
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5173
cat >>confdefs.h <<_ACEOF
5174
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5183
for ac_header in dlfcn.h
5185
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5186
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5187
echo "$as_me:$LINENO: checking for $ac_header" >&5
5188
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5189
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5190
echo $ECHO_N "(cached) $ECHO_C" >&6
5192
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5193
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5195
# Is the header compilable?
5196
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5197
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5198
cat >conftest.$ac_ext <<_ACEOF
5201
cat confdefs.h >>conftest.$ac_ext
5202
cat >>conftest.$ac_ext <<_ACEOF
5203
/* end confdefs.h. */
5204
$ac_includes_default
5205
#include <$ac_header>
5207
rm -f conftest.$ac_objext
5208
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5209
(eval $ac_compile) 2>conftest.er1
5211
grep -v '^ *+' conftest.er1 >conftest.err
5213
cat conftest.err >&5
5214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215
(exit $ac_status); } &&
5216
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5217
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221
(exit $ac_status); }; } &&
5222
{ ac_try='test -s conftest.$ac_objext'
5223
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227
(exit $ac_status); }; }; then
5228
ac_header_compiler=yes
5230
echo "$as_me: failed program was:" >&5
5231
sed 's/^/| /' conftest.$ac_ext >&5
5233
ac_header_compiler=no
5235
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5236
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5237
echo "${ECHO_T}$ac_header_compiler" >&6
5239
# Is the header present?
5240
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5241
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5242
cat >conftest.$ac_ext <<_ACEOF
5245
cat confdefs.h >>conftest.$ac_ext
5246
cat >>conftest.$ac_ext <<_ACEOF
5247
/* end confdefs.h. */
5248
#include <$ac_header>
5250
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5251
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5253
grep -v '^ *+' conftest.er1 >conftest.err
5255
cat conftest.err >&5
5256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257
(exit $ac_status); } >/dev/null; then
5258
if test -s conftest.err; then
5259
ac_cpp_err=$ac_c_preproc_warn_flag
5260
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5267
if test -z "$ac_cpp_err"; then
5268
ac_header_preproc=yes
5270
echo "$as_me: failed program was:" >&5
5271
sed 's/^/| /' conftest.$ac_ext >&5
5273
ac_header_preproc=no
5275
rm -f conftest.err conftest.$ac_ext
5276
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5277
echo "${ECHO_T}$ac_header_preproc" >&6
5279
# So? What about this header?
5280
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5282
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5283
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5284
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5285
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5286
ac_header_preproc=yes
5289
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5290
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5291
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5292
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5293
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5294
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5295
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5296
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5297
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5298
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5299
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5300
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5303
## ------------------------------------------ ##
5304
## Report this to the AC_PACKAGE_NAME lists. ##
5305
## ------------------------------------------ ##
5308
sed "s/^/$as_me: WARNING: /" >&2
5311
echo "$as_me:$LINENO: checking for $ac_header" >&5
5312
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5313
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5314
echo $ECHO_N "(cached) $ECHO_C" >&6
5316
eval "$as_ac_Header=\$ac_header_preproc"
5318
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5319
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5322
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5323
cat >>confdefs.h <<_ACEOF
5324
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5332
ac_cpp='$CXXCPP $CPPFLAGS'
5333
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5334
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5335
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5336
if test -n "$ac_tool_prefix"; then
5337
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5339
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5340
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5341
echo "$as_me:$LINENO: checking for $ac_word" >&5
5342
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5343
if test "${ac_cv_prog_CXX+set}" = set; then
5344
echo $ECHO_N "(cached) $ECHO_C" >&6
5346
if test -n "$CXX"; then
5347
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5349
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353
test -z "$as_dir" && as_dir=.
5354
for ac_exec_ext in '' $ac_executable_extensions; do
5355
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5356
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5357
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5366
if test -n "$CXX"; then
5367
echo "$as_me:$LINENO: result: $CXX" >&5
5368
echo "${ECHO_T}$CXX" >&6
5370
echo "$as_me:$LINENO: result: no" >&5
5371
echo "${ECHO_T}no" >&6
5374
test -n "$CXX" && break
5377
if test -z "$CXX"; then
5379
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5381
# Extract the first word of "$ac_prog", so it can be a program name with args.
5382
set dummy $ac_prog; ac_word=$2
5383
echo "$as_me:$LINENO: checking for $ac_word" >&5
5384
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5385
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5386
echo $ECHO_N "(cached) $ECHO_C" >&6
5388
if test -n "$ac_ct_CXX"; then
5389
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5391
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395
test -z "$as_dir" && as_dir=.
5396
for ac_exec_ext in '' $ac_executable_extensions; do
5397
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5398
ac_cv_prog_ac_ct_CXX="$ac_prog"
5399
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5407
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5408
if test -n "$ac_ct_CXX"; then
5409
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5410
echo "${ECHO_T}$ac_ct_CXX" >&6
5412
echo "$as_me:$LINENO: result: no" >&5
5413
echo "${ECHO_T}no" >&6
5416
test -n "$ac_ct_CXX" && break
5418
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5424
# Provide some information about the compiler.
5425
echo "$as_me:$LINENO:" \
5426
"checking for C++ compiler version" >&5
5427
ac_compiler=`set X $ac_compile; echo $2`
5428
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5429
(eval $ac_compiler --version </dev/null >&5) 2>&5
5431
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432
(exit $ac_status); }
5433
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5434
(eval $ac_compiler -v </dev/null >&5) 2>&5
5436
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437
(exit $ac_status); }
5438
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5439
(eval $ac_compiler -V </dev/null >&5) 2>&5
5441
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442
(exit $ac_status); }
5444
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5445
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5446
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5447
echo $ECHO_N "(cached) $ECHO_C" >&6
5449
cat >conftest.$ac_ext <<_ACEOF
5452
cat confdefs.h >>conftest.$ac_ext
5453
cat >>conftest.$ac_ext <<_ACEOF
5454
/* end confdefs.h. */
5467
rm -f conftest.$ac_objext
5468
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5469
(eval $ac_compile) 2>conftest.er1
5471
grep -v '^ *+' conftest.er1 >conftest.err
5473
cat conftest.err >&5
5474
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475
(exit $ac_status); } &&
5476
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5477
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5480
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481
(exit $ac_status); }; } &&
5482
{ ac_try='test -s conftest.$ac_objext'
5483
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5486
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487
(exit $ac_status); }; }; then
5490
echo "$as_me: failed program was:" >&5
5491
sed 's/^/| /' conftest.$ac_ext >&5
5495
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5496
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5499
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5500
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5501
GXX=`test $ac_compiler_gnu = yes && echo yes`
5502
ac_test_CXXFLAGS=${CXXFLAGS+set}
5503
ac_save_CXXFLAGS=$CXXFLAGS
5505
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5506
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5507
if test "${ac_cv_prog_cxx_g+set}" = set; then
5508
echo $ECHO_N "(cached) $ECHO_C" >&6
5510
cat >conftest.$ac_ext <<_ACEOF
5513
cat confdefs.h >>conftest.$ac_ext
5514
cat >>conftest.$ac_ext <<_ACEOF
5515
/* end confdefs.h. */
5525
rm -f conftest.$ac_objext
5526
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5527
(eval $ac_compile) 2>conftest.er1
5529
grep -v '^ *+' conftest.er1 >conftest.err
5531
cat conftest.err >&5
5532
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533
(exit $ac_status); } &&
5534
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5535
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5538
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539
(exit $ac_status); }; } &&
5540
{ ac_try='test -s conftest.$ac_objext'
5541
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545
(exit $ac_status); }; }; then
5546
ac_cv_prog_cxx_g=yes
5548
echo "$as_me: failed program was:" >&5
5549
sed 's/^/| /' conftest.$ac_ext >&5
5553
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5555
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5556
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5557
if test "$ac_test_CXXFLAGS" = set; then
5558
CXXFLAGS=$ac_save_CXXFLAGS
5559
elif test $ac_cv_prog_cxx_g = yes; then
5560
if test "$GXX" = yes; then
5566
if test "$GXX" = yes; then
5572
for ac_declaration in \
5574
'extern "C" void std::exit (int) throw (); using std::exit;' \
5575
'extern "C" void std::exit (int); using std::exit;' \
5576
'extern "C" void exit (int) throw ();' \
5577
'extern "C" void exit (int);' \
5580
cat >conftest.$ac_ext <<_ACEOF
5583
cat confdefs.h >>conftest.$ac_ext
5584
cat >>conftest.$ac_ext <<_ACEOF
5585
/* end confdefs.h. */
5596
rm -f conftest.$ac_objext
5597
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5598
(eval $ac_compile) 2>conftest.er1
5600
grep -v '^ *+' conftest.er1 >conftest.err
5602
cat conftest.err >&5
5603
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604
(exit $ac_status); } &&
5605
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5606
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610
(exit $ac_status); }; } &&
5611
{ ac_try='test -s conftest.$ac_objext'
5612
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616
(exit $ac_status); }; }; then
5619
echo "$as_me: failed program was:" >&5
5620
sed 's/^/| /' conftest.$ac_ext >&5
5624
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5625
cat >conftest.$ac_ext <<_ACEOF
5628
cat confdefs.h >>conftest.$ac_ext
5629
cat >>conftest.$ac_ext <<_ACEOF
5630
/* end confdefs.h. */
5640
rm -f conftest.$ac_objext
5641
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5642
(eval $ac_compile) 2>conftest.er1
5644
grep -v '^ *+' conftest.er1 >conftest.err
5646
cat conftest.err >&5
5647
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648
(exit $ac_status); } &&
5649
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5650
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654
(exit $ac_status); }; } &&
5655
{ ac_try='test -s conftest.$ac_objext'
5656
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660
(exit $ac_status); }; }; then
5663
echo "$as_me: failed program was:" >&5
5664
sed 's/^/| /' conftest.$ac_ext >&5
5667
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5670
if test -n "$ac_declaration"; then
5671
echo '#ifdef __cplusplus' >>confdefs.h
5672
echo $ac_declaration >>confdefs.h
5673
echo '#endif' >>confdefs.h
5677
ac_cpp='$CXXCPP $CPPFLAGS'
5678
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5679
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5680
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5682
depcc="$CXX" am_compiler_list=
5684
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5685
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5686
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5687
echo $ECHO_N "(cached) $ECHO_C" >&6
5689
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5690
# We make a subdir and do the tests there. Otherwise we can end up
5691
# making bogus files that we don't know about and never remove. For
5692
# instance it was reported that on HP-UX the gcc test will end up
5693
# making a dummy file named `D' -- because `-MD' means `put the output
5696
# Copy depcomp to subdir because otherwise we won't find it if we're
5697
# using a relative directory.
5698
cp "$am_depcomp" conftest.dir
5700
# We will build objects and dependencies in a subdirectory because
5701
# it helps to detect inapplicable dependency modes. For instance
5702
# both Tru64's cc and ICC support -MD to output dependencies as a
5703
# side effect of compilation, but ICC will put the dependencies in
5704
# the current directory while Tru64 will put them in the object
5708
am_cv_CXX_dependencies_compiler_type=none
5709
if test "$am_compiler_list" = ""; then
5710
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5712
for depmode in $am_compiler_list; do
5713
# Setup a source with many dependencies, because some compilers
5714
# like to wrap large dependency lists on column 80 (with \), and
5715
# we should not choose a depcomp mode which is confused by this.
5717
# We need to recreate these files for each test, as the compiler may
5718
# overwrite some of them when testing with obscure command lines.
5719
# This happens at least with the AIX C compiler.
5721
for i in 1 2 3 4 5 6; do
5722
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5725
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5729
# after this tag, mechanisms are not by side-effect, so they'll
5730
# only be used when explicitly requested
5731
if test "x$enable_dependency_tracking" = xyes; then
5739
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5740
# mode. It turns out that the SunPro C++ compiler does not properly
5741
# handle `-M -o', and we need to detect this.
5742
if depmode=$depmode \
5743
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5744
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5745
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5746
>/dev/null 2>conftest.err &&
5747
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5748
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5749
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5750
# icc doesn't choke on unknown options, it will just issue warnings
5751
# (even with -Werror). So we grep stderr for any message
5752
# that says an option was ignored.
5753
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
5754
am_cv_CXX_dependencies_compiler_type=$depmode
5763
am_cv_CXX_dependencies_compiler_type=none
5767
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5768
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5769
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5774
test "x$enable_dependency_tracking" != xno \
5775
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5776
am__fastdepCXX_TRUE=
5777
am__fastdepCXX_FALSE='#'
5779
am__fastdepCXX_TRUE='#'
5780
am__fastdepCXX_FALSE=
5785
ac_cpp='$CXXCPP $CPPFLAGS'
5786
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5787
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5788
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5789
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5790
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5791
if test -z "$CXXCPP"; then
5792
if test "${ac_cv_prog_CXXCPP+set}" = set; then
5793
echo $ECHO_N "(cached) $ECHO_C" >&6
5795
# Double quotes because CXXCPP needs to be expanded
5796
for CXXCPP in "$CXX -E" "/lib/cpp"
5799
for ac_cxx_preproc_warn_flag in '' yes
5801
# Use a header file that comes with gcc, so configuring glibc
5802
# with a fresh cross-compiler works.
5803
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5804
# <limits.h> exists even on freestanding compilers.
5805
# On the NeXT, cc -E runs the code through the compiler's parser,
5806
# not just through cpp. "Syntax error" is here to catch this case.
5807
cat >conftest.$ac_ext <<_ACEOF
5810
cat confdefs.h >>conftest.$ac_ext
5811
cat >>conftest.$ac_ext <<_ACEOF
5812
/* end confdefs.h. */
5814
# include <limits.h>
5816
# include <assert.h>
5820
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5821
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5823
grep -v '^ *+' conftest.er1 >conftest.err
5825
cat conftest.err >&5
5826
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827
(exit $ac_status); } >/dev/null; then
5828
if test -s conftest.err; then
5829
ac_cpp_err=$ac_cxx_preproc_warn_flag
5830
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5837
if test -z "$ac_cpp_err"; then
5840
echo "$as_me: failed program was:" >&5
5841
sed 's/^/| /' conftest.$ac_ext >&5
5843
# Broken: fails on valid input.
5846
rm -f conftest.err conftest.$ac_ext
5848
# OK, works on sane cases. Now check whether non-existent headers
5849
# can be detected and how.
5850
cat >conftest.$ac_ext <<_ACEOF
5853
cat confdefs.h >>conftest.$ac_ext
5854
cat >>conftest.$ac_ext <<_ACEOF
5855
/* end confdefs.h. */
5856
#include <ac_nonexistent.h>
5858
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5859
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5861
grep -v '^ *+' conftest.er1 >conftest.err
5863
cat conftest.err >&5
5864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865
(exit $ac_status); } >/dev/null; then
5866
if test -s conftest.err; then
5867
ac_cpp_err=$ac_cxx_preproc_warn_flag
5868
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5875
if test -z "$ac_cpp_err"; then
5876
# Broken: success on invalid input.
5879
echo "$as_me: failed program was:" >&5
5880
sed 's/^/| /' conftest.$ac_ext >&5
5882
# Passes both tests.
5886
rm -f conftest.err conftest.$ac_ext
5889
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5890
rm -f conftest.err conftest.$ac_ext
5891
if $ac_preproc_ok; then
5896
ac_cv_prog_CXXCPP=$CXXCPP
5899
CXXCPP=$ac_cv_prog_CXXCPP
5901
ac_cv_prog_CXXCPP=$CXXCPP
5903
echo "$as_me:$LINENO: result: $CXXCPP" >&5
5904
echo "${ECHO_T}$CXXCPP" >&6
5906
for ac_cxx_preproc_warn_flag in '' yes
5908
# Use a header file that comes with gcc, so configuring glibc
5909
# with a fresh cross-compiler works.
5910
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5911
# <limits.h> exists even on freestanding compilers.
5912
# On the NeXT, cc -E runs the code through the compiler's parser,
5913
# not just through cpp. "Syntax error" is here to catch this case.
5914
cat >conftest.$ac_ext <<_ACEOF
5917
cat confdefs.h >>conftest.$ac_ext
5918
cat >>conftest.$ac_ext <<_ACEOF
5919
/* end confdefs.h. */
5921
# include <limits.h>
5923
# include <assert.h>
5927
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5928
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5930
grep -v '^ *+' conftest.er1 >conftest.err
5932
cat conftest.err >&5
5933
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934
(exit $ac_status); } >/dev/null; then
5935
if test -s conftest.err; then
5936
ac_cpp_err=$ac_cxx_preproc_warn_flag
5937
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5944
if test -z "$ac_cpp_err"; then
5947
echo "$as_me: failed program was:" >&5
5948
sed 's/^/| /' conftest.$ac_ext >&5
5950
# Broken: fails on valid input.
5953
rm -f conftest.err conftest.$ac_ext
5955
# OK, works on sane cases. Now check whether non-existent headers
5956
# can be detected and how.
5957
cat >conftest.$ac_ext <<_ACEOF
5960
cat confdefs.h >>conftest.$ac_ext
5961
cat >>conftest.$ac_ext <<_ACEOF
5962
/* end confdefs.h. */
5963
#include <ac_nonexistent.h>
5965
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5966
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5968
grep -v '^ *+' conftest.er1 >conftest.err
5970
cat conftest.err >&5
5971
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972
(exit $ac_status); } >/dev/null; then
5973
if test -s conftest.err; then
5974
ac_cpp_err=$ac_cxx_preproc_warn_flag
5975
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5982
if test -z "$ac_cpp_err"; then
5983
# Broken: success on invalid input.
5986
echo "$as_me: failed program was:" >&5
5987
sed 's/^/| /' conftest.$ac_ext >&5
5989
# Passes both tests.
5993
rm -f conftest.err conftest.$ac_ext
5996
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5997
rm -f conftest.err conftest.$ac_ext
5998
if $ac_preproc_ok; then
6001
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6002
See \`config.log' for more details." >&5
6003
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6004
See \`config.log' for more details." >&2;}
6005
{ (exit 1); exit 1; }; }
6009
ac_cpp='$CXXCPP $CPPFLAGS'
6010
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6011
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6012
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6016
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6017
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6018
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6019
if test -n "$ac_tool_prefix"; then
6020
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6022
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6023
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6024
echo "$as_me:$LINENO: checking for $ac_word" >&5
6025
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6026
if test "${ac_cv_prog_F77+set}" = set; then
6027
echo $ECHO_N "(cached) $ECHO_C" >&6
6029
if test -n "$F77"; then
6030
ac_cv_prog_F77="$F77" # Let the user override the test.
6032
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036
test -z "$as_dir" && as_dir=.
6037
for ac_exec_ext in '' $ac_executable_extensions; do
6038
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6039
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6040
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6049
if test -n "$F77"; then
6050
echo "$as_me:$LINENO: result: $F77" >&5
6051
echo "${ECHO_T}$F77" >&6
6053
echo "$as_me:$LINENO: result: no" >&5
6054
echo "${ECHO_T}no" >&6
6057
test -n "$F77" && break
6060
if test -z "$F77"; then
6062
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6064
# Extract the first word of "$ac_prog", so it can be a program name with args.
6065
set dummy $ac_prog; ac_word=$2
6066
echo "$as_me:$LINENO: checking for $ac_word" >&5
6067
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6068
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6069
echo $ECHO_N "(cached) $ECHO_C" >&6
6071
if test -n "$ac_ct_F77"; then
6072
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6074
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078
test -z "$as_dir" && as_dir=.
6079
for ac_exec_ext in '' $ac_executable_extensions; do
6080
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6081
ac_cv_prog_ac_ct_F77="$ac_prog"
6082
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6090
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6091
if test -n "$ac_ct_F77"; then
6092
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6093
echo "${ECHO_T}$ac_ct_F77" >&6
6095
echo "$as_me:$LINENO: result: no" >&5
6096
echo "${ECHO_T}no" >&6
6099
test -n "$ac_ct_F77" && break
6106
# Provide some information about the compiler.
6107
echo "$as_me:6107:" \
6108
"checking for Fortran 77 compiler version" >&5
6109
ac_compiler=`set X $ac_compile; echo $2`
6110
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6111
(eval $ac_compiler --version </dev/null >&5) 2>&5
6113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114
(exit $ac_status); }
6115
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6116
(eval $ac_compiler -v </dev/null >&5) 2>&5
6118
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119
(exit $ac_status); }
6120
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6121
(eval $ac_compiler -V </dev/null >&5) 2>&5
6123
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124
(exit $ac_status); }
6127
# If we don't use `.F' as extension, the preprocessor is not run on the
6128
# input file. (Note that this only needs to work for GNU compilers.)
6131
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6132
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6133
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6134
echo $ECHO_N "(cached) $ECHO_C" >&6
6136
cat >conftest.$ac_ext <<_ACEOF
6144
rm -f conftest.$ac_objext
6145
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6146
(eval $ac_compile) 2>conftest.er1
6148
grep -v '^ *+' conftest.er1 >conftest.err
6150
cat conftest.err >&5
6151
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152
(exit $ac_status); } &&
6153
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6154
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158
(exit $ac_status); }; } &&
6159
{ ac_try='test -s conftest.$ac_objext'
6160
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164
(exit $ac_status); }; }; then
6167
echo "$as_me: failed program was:" >&5
6168
sed 's/^/| /' conftest.$ac_ext >&5
6172
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6173
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6176
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6177
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6179
ac_test_FFLAGS=${FFLAGS+set}
6180
ac_save_FFLAGS=$FFLAGS
6182
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6183
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6184
if test "${ac_cv_prog_f77_g+set}" = set; then
6185
echo $ECHO_N "(cached) $ECHO_C" >&6
6188
cat >conftest.$ac_ext <<_ACEOF
6193
rm -f conftest.$ac_objext
6194
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6195
(eval $ac_compile) 2>conftest.er1
6197
grep -v '^ *+' conftest.er1 >conftest.err
6199
cat conftest.err >&5
6200
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201
(exit $ac_status); } &&
6202
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6203
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207
(exit $ac_status); }; } &&
6208
{ ac_try='test -s conftest.$ac_objext'
6209
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6212
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213
(exit $ac_status); }; }; then
6214
ac_cv_prog_f77_g=yes
6216
echo "$as_me: failed program was:" >&5
6217
sed 's/^/| /' conftest.$ac_ext >&5
6221
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6224
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6225
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6226
if test "$ac_test_FFLAGS" = set; then
6227
FFLAGS=$ac_save_FFLAGS
6228
elif test $ac_cv_prog_f77_g = yes; then
6229
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6235
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6242
G77=`test $ac_compiler_gnu = yes && echo yes`
6244
ac_cpp='$CPP $CPPFLAGS'
6245
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6246
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6247
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6251
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6253
# find the maximum length of command line arguments
6254
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6255
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6256
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6257
echo $ECHO_N "(cached) $ECHO_C" >&6
6264
# On DJGPP, this test can blow up pretty badly due to problems in libc
6265
# (any single argument exceeding 2000 bytes causes a buffer overrun
6266
# during glob expansion). Even if it were fixed, the result of this
6267
# check would be larger than it should be.
6268
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6272
# Under GNU Hurd, this test is not required because there is
6273
# no limit to the length of command line arguments.
6274
# Libtool will interpret -1 as no limit whatsoever
6275
lt_cv_sys_max_cmd_len=-1;
6279
# On Win9x/ME, this test blows up -- it succeeds, but takes
6280
# about 5 minutes as the teststring grows exponentially.
6281
# Worse, since 9x/ME are not pre-emptively multitasking,
6282
# you end up with a "frozen" computer, even though with patience
6283
# the test eventually succeeds (with a max line length of 256k).
6284
# Instead, let's just punt: use the minimum linelength reported by
6285
# all of the supported platforms: 8192 (on NT/2K/XP).
6286
lt_cv_sys_max_cmd_len=8192;
6290
# On AmigaOS with pdksh, this test takes hours, literally.
6291
# So we just punt and use a minimum line length of 8192.
6292
lt_cv_sys_max_cmd_len=8192;
6296
# If test is not a shell built-in, we'll probably end up computing a
6297
# maximum length that is only half of the actual maximum length, but
6299
while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
6300
= "XX$testring") >/dev/null 2>&1 &&
6301
new_result=`expr "X$testring" : ".*" 2>&1` &&
6302
lt_cv_sys_max_cmd_len=$new_result &&
6303
test $i != 17 # 1/2 MB should be enough
6306
testring=$testring$testring
6309
# Add a significant safety factor because C++ compilers can tack on massive
6310
# amounts of additional arguments before passing them to the linker.
6311
# It appears as though 1/2 is a usable value.
6312
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6318
if test -n $lt_cv_sys_max_cmd_len ; then
6319
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6320
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6322
echo "$as_me:$LINENO: result: none" >&5
6323
echo "${ECHO_T}none" >&6
6329
# Check for command to grab the raw symbol name followed by C symbol from nm.
6330
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6331
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6332
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6333
echo $ECHO_N "(cached) $ECHO_C" >&6
6336
# These are sane defaults that work on at least a few old systems.
6337
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6339
# Character class describing NM global symbol codes.
6340
symcode='[BCDEGRST]'
6342
# Regexp to match symbols that can be accessed directly from C.
6343
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6345
# Transform the above into a raw symbol and a C symbol.
6346
symxfrm='\1 \2\3 \3'
6348
# Transform an extracted symbol line into a proper C declaration
6349
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6351
# Transform an extracted symbol line into symbol name and symbol address
6352
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'"
6354
# Define system-specific variables.
6359
cygwin* | mingw* | pw32*)
6360
symcode='[ABCDGISTW]'
6362
hpux*) # Its linker distinguishes data from code symbols
6363
if test "$host_cpu" = ia64; then
6364
symcode='[ABCDEGRST]'
6366
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6367
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'"
6370
symcode='[BCDEGRST]'
6373
symcode='[BCDEGQRST]'
6383
# Handle CRLF in mingw tool chain
6387
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6391
# If we're using GNU nm, then use its standard symbol codes.
6392
case `$NM -V 2>&1` in
6393
*GNU* | *'with BFD'*)
6394
symcode='[ABCDGIRSTW]' ;;
6397
# Try without a prefix undercore, then with it.
6398
for ac_symprfx in "" "_"; do
6400
# Write the raw and C identifiers.
6401
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6403
# Check to see that the pipe works correctly.
6407
cat > conftest.$ac_ext <<EOF
6412
void nm_test_func(){}
6416
int main(){nm_test_var='a';nm_test_func();return(0);}
6419
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6420
(eval $ac_compile) 2>&5
6422
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423
(exit $ac_status); }; then
6424
# Now try to grab the symbols.
6426
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6427
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6429
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430
(exit $ac_status); } && test -s "$nlist"; then
6431
# Try sorting and uniquifying the output.
6432
if sort "$nlist" | uniq > "$nlist"T; then
6433
mv -f "$nlist"T "$nlist"
6438
# Make sure that we snagged all the symbols we need.
6439
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6440
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6441
cat <<EOF > conftest.$ac_ext
6447
# Now generate the symbol file.
6448
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6450
cat <<EOF >> conftest.$ac_ext
6451
#if defined (__STDC__) && __STDC__
6452
# define lt_ptr_t void *
6454
# define lt_ptr_t char *
6458
/* The mapping between symbol names and symbols. */
6463
lt_preloaded_symbols[] =
6466
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6467
cat <<\EOF >> conftest.$ac_ext
6475
# Now try linking the two files.
6476
mv conftest.$ac_objext conftstm.$ac_objext
6477
lt_save_LIBS="$LIBS"
6478
lt_save_CFLAGS="$CFLAGS"
6479
LIBS="conftstm.$ac_objext"
6480
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6481
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6482
(eval $ac_link) 2>&5
6484
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485
(exit $ac_status); } && test -s conftest${ac_exeext}; then
6488
LIBS="$lt_save_LIBS"
6489
CFLAGS="$lt_save_CFLAGS"
6491
echo "cannot find nm_test_func in $nlist" >&5
6494
echo "cannot find nm_test_var in $nlist" >&5
6497
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6500
echo "$progname: failed program was:" >&5
6501
cat conftest.$ac_ext >&5
6503
rm -f conftest* conftst*
6505
# Do not use the global_symbol_pipe unless it works.
6506
if test "$pipe_works" = yes; then
6509
lt_cv_sys_global_symbol_pipe=
6515
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6516
lt_cv_sys_global_symbol_to_cdecl=
6518
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6519
echo "$as_me:$LINENO: result: failed" >&5
6520
echo "${ECHO_T}failed" >&6
6522
echo "$as_me:$LINENO: result: ok" >&5
6523
echo "${ECHO_T}ok" >&6
6526
echo "$as_me:$LINENO: checking for objdir" >&5
6527
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6528
if test "${lt_cv_objdir+set}" = set; then
6529
echo $ECHO_N "(cached) $ECHO_C" >&6
6531
rm -f .libs 2>/dev/null
6532
mkdir .libs 2>/dev/null
6533
if test -d .libs; then
6536
# MS-DOS does not allow filenames that begin with a dot.
6539
rmdir .libs 2>/dev/null
6541
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6542
echo "${ECHO_T}$lt_cv_objdir" >&6
6543
objdir=$lt_cv_objdir
6551
# AIX sometimes has problems with the GCC collect2 program. For some
6552
# reason, if we set the COLLECT_NAMES environment variable, the problems
6553
# vanish in a puff of smoke.
6554
if test "X${COLLECT_NAMES+set}" != Xset; then
6556
export COLLECT_NAMES
6561
# Sed substitution that helps us do robust quoting. It backslashifies
6562
# metacharacters that are still active within double-quoted strings.
6563
Xsed='sed -e s/^X//'
6564
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6566
# Same as above, but do not quote variable references.
6567
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6569
# Sed substitution to delay expansion of an escaped shell variable in a
6570
# double_quote_subst'ed string.
6571
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6573
# Sed substitution to avoid accidental globbing in evaled expressions
6574
no_glob_subst='s/\*/\\\*/g'
6580
default_ofile=libtool
6581
can_build_shared=yes
6583
# All known linkers require a `.a' archive for static linking (except M$VC,
6584
# which needs '.lib').
6586
ltmain="$ac_aux_dir/ltmain.sh"
6587
ofile="$default_ofile"
6588
with_gnu_ld="$lt_cv_prog_gnu_ld"
6590
if test -n "$ac_tool_prefix"; then
6591
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6592
set dummy ${ac_tool_prefix}ar; ac_word=$2
6593
echo "$as_me:$LINENO: checking for $ac_word" >&5
6594
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6595
if test "${ac_cv_prog_AR+set}" = set; then
6596
echo $ECHO_N "(cached) $ECHO_C" >&6
6598
if test -n "$AR"; then
6599
ac_cv_prog_AR="$AR" # Let the user override the test.
6601
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605
test -z "$as_dir" && as_dir=.
6606
for ac_exec_ext in '' $ac_executable_extensions; do
6607
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6608
ac_cv_prog_AR="${ac_tool_prefix}ar"
6609
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6618
if test -n "$AR"; then
6619
echo "$as_me:$LINENO: result: $AR" >&5
6620
echo "${ECHO_T}$AR" >&6
6622
echo "$as_me:$LINENO: result: no" >&5
6623
echo "${ECHO_T}no" >&6
6627
if test -z "$ac_cv_prog_AR"; then
6629
# Extract the first word of "ar", so it can be a program name with args.
6630
set dummy ar; ac_word=$2
6631
echo "$as_me:$LINENO: checking for $ac_word" >&5
6632
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6633
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6634
echo $ECHO_N "(cached) $ECHO_C" >&6
6636
if test -n "$ac_ct_AR"; then
6637
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6639
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643
test -z "$as_dir" && as_dir=.
6644
for ac_exec_ext in '' $ac_executable_extensions; do
6645
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6646
ac_cv_prog_ac_ct_AR="ar"
6647
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6653
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6656
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6657
if test -n "$ac_ct_AR"; then
6658
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6659
echo "${ECHO_T}$ac_ct_AR" >&6
6661
echo "$as_me:$LINENO: result: no" >&5
6662
echo "${ECHO_T}no" >&6
6670
if test -n "$ac_tool_prefix"; then
6671
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6672
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6673
echo "$as_me:$LINENO: checking for $ac_word" >&5
6674
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6675
if test "${ac_cv_prog_RANLIB+set}" = set; then
6676
echo $ECHO_N "(cached) $ECHO_C" >&6
6678
if test -n "$RANLIB"; then
6679
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6681
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685
test -z "$as_dir" && as_dir=.
6686
for ac_exec_ext in '' $ac_executable_extensions; do
6687
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6688
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6689
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6697
RANLIB=$ac_cv_prog_RANLIB
6698
if test -n "$RANLIB"; then
6699
echo "$as_me:$LINENO: result: $RANLIB" >&5
6700
echo "${ECHO_T}$RANLIB" >&6
6702
echo "$as_me:$LINENO: result: no" >&5
6703
echo "${ECHO_T}no" >&6
6707
if test -z "$ac_cv_prog_RANLIB"; then
6708
ac_ct_RANLIB=$RANLIB
6709
# Extract the first word of "ranlib", so it can be a program name with args.
6710
set dummy ranlib; ac_word=$2
6711
echo "$as_me:$LINENO: checking for $ac_word" >&5
6712
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6713
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6714
echo $ECHO_N "(cached) $ECHO_C" >&6
6716
if test -n "$ac_ct_RANLIB"; then
6717
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6719
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723
test -z "$as_dir" && as_dir=.
6724
for ac_exec_ext in '' $ac_executable_extensions; do
6725
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6726
ac_cv_prog_ac_ct_RANLIB="ranlib"
6727
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6733
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6736
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6737
if test -n "$ac_ct_RANLIB"; then
6738
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6739
echo "${ECHO_T}$ac_ct_RANLIB" >&6
6741
echo "$as_me:$LINENO: result: no" >&5
6742
echo "${ECHO_T}no" >&6
6745
RANLIB=$ac_ct_RANLIB
6747
RANLIB="$ac_cv_prog_RANLIB"
6750
if test -n "$ac_tool_prefix"; then
6751
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6752
set dummy ${ac_tool_prefix}strip; ac_word=$2
6753
echo "$as_me:$LINENO: checking for $ac_word" >&5
6754
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6755
if test "${ac_cv_prog_STRIP+set}" = set; then
6756
echo $ECHO_N "(cached) $ECHO_C" >&6
6758
if test -n "$STRIP"; then
6759
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6761
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765
test -z "$as_dir" && as_dir=.
6766
for ac_exec_ext in '' $ac_executable_extensions; do
6767
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6768
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6769
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6777
STRIP=$ac_cv_prog_STRIP
6778
if test -n "$STRIP"; then
6779
echo "$as_me:$LINENO: result: $STRIP" >&5
6780
echo "${ECHO_T}$STRIP" >&6
6782
echo "$as_me:$LINENO: result: no" >&5
6783
echo "${ECHO_T}no" >&6
6787
if test -z "$ac_cv_prog_STRIP"; then
6789
# Extract the first word of "strip", so it can be a program name with args.
6790
set dummy strip; ac_word=$2
6791
echo "$as_me:$LINENO: checking for $ac_word" >&5
6792
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6793
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6794
echo $ECHO_N "(cached) $ECHO_C" >&6
6796
if test -n "$ac_ct_STRIP"; then
6797
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6799
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803
test -z "$as_dir" && as_dir=.
6804
for ac_exec_ext in '' $ac_executable_extensions; do
6805
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6806
ac_cv_prog_ac_ct_STRIP="strip"
6807
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6816
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6817
if test -n "$ac_ct_STRIP"; then
6818
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6819
echo "${ECHO_T}$ac_ct_STRIP" >&6
6821
echo "$as_me:$LINENO: result: no" >&5
6822
echo "${ECHO_T}no" >&6
6827
STRIP="$ac_cv_prog_STRIP"
6832
old_CFLAGS="$CFLAGS"
6834
# Set sane defaults for various variables
6835
test -z "$AR" && AR=ar
6836
test -z "$AR_FLAGS" && AR_FLAGS=cru
6837
test -z "$AS" && AS=as
6838
test -z "$CC" && CC=cc
6839
test -z "$LTCC" && LTCC=$CC
6840
test -z "$DLLTOOL" && DLLTOOL=dlltool
6841
test -z "$LD" && LD=ld
6842
test -z "$LN_S" && LN_S="ln -s"
6843
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6844
test -z "$NM" && NM=nm
6845
test -z "$SED" && SED=sed
6846
test -z "$OBJDUMP" && OBJDUMP=objdump
6847
test -z "$RANLIB" && RANLIB=:
6848
test -z "$STRIP" && STRIP=:
6849
test -z "$ac_objext" && ac_objext=o
6851
# Determine commands to create old-style static archives.
6852
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6853
old_postinstall_cmds='chmod 644 $oldlib'
6854
old_postuninstall_cmds=
6856
if test -n "$RANLIB"; then
6859
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6862
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6865
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6868
# Only perform the check for file, if the check method requires it
6869
case $deplibs_check_method in
6871
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6872
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6873
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6874
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6875
echo $ECHO_N "(cached) $ECHO_C" >&6
6879
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6882
lt_save_MAGIC_CMD="$MAGIC_CMD"
6883
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6884
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6885
for ac_dir in $ac_dummy; do
6887
test -z "$ac_dir" && ac_dir=.
6888
if test -f $ac_dir/${ac_tool_prefix}file; then
6889
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6890
if test -n "$file_magic_test_file"; then
6891
case $deplibs_check_method in
6893
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6894
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6895
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6896
$EGREP "$file_magic_regex" > /dev/null; then
6901
*** Warning: the command libtool uses to detect shared libraries,
6902
*** $file_magic_cmd, produces output that libtool cannot recognize.
6903
*** The result is that libtool may fail to recognize shared libraries
6904
*** as such. This will affect the creation of libtool libraries that
6905
*** depend on shared libraries, but programs linked with such libtool
6906
*** libraries will work regardless of this problem. Nevertheless, you
6907
*** may want to report the problem to your system manager and/or to
6908
*** bug-libtool@gnu.org
6918
MAGIC_CMD="$lt_save_MAGIC_CMD"
6923
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6924
if test -n "$MAGIC_CMD"; then
6925
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6926
echo "${ECHO_T}$MAGIC_CMD" >&6
6928
echo "$as_me:$LINENO: result: no" >&5
6929
echo "${ECHO_T}no" >&6
6932
if test -z "$lt_cv_path_MAGIC_CMD"; then
6933
if test -n "$ac_tool_prefix"; then
6934
echo "$as_me:$LINENO: checking for file" >&5
6935
echo $ECHO_N "checking for file... $ECHO_C" >&6
6936
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6937
echo $ECHO_N "(cached) $ECHO_C" >&6
6941
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6944
lt_save_MAGIC_CMD="$MAGIC_CMD"
6945
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6946
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6947
for ac_dir in $ac_dummy; do
6949
test -z "$ac_dir" && ac_dir=.
6950
if test -f $ac_dir/file; then
6951
lt_cv_path_MAGIC_CMD="$ac_dir/file"
6952
if test -n "$file_magic_test_file"; then
6953
case $deplibs_check_method in
6955
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6956
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6957
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6958
$EGREP "$file_magic_regex" > /dev/null; then
6963
*** Warning: the command libtool uses to detect shared libraries,
6964
*** $file_magic_cmd, produces output that libtool cannot recognize.
6965
*** The result is that libtool may fail to recognize shared libraries
6966
*** as such. This will affect the creation of libtool libraries that
6967
*** depend on shared libraries, but programs linked with such libtool
6968
*** libraries will work regardless of this problem. Nevertheless, you
6969
*** may want to report the problem to your system manager and/or to
6970
*** bug-libtool@gnu.org
6980
MAGIC_CMD="$lt_save_MAGIC_CMD"
6985
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6986
if test -n "$MAGIC_CMD"; then
6987
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6988
echo "${ECHO_T}$MAGIC_CMD" >&6
6990
echo "$as_me:$LINENO: result: no" >&5
6991
echo "${ECHO_T}no" >&6
7004
enable_win32_dll=yes
7006
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7007
if test "${enable_libtool_lock+set}" = set; then
7008
enableval="$enable_libtool_lock"
7011
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7014
# Check whether --with-pic or --without-pic was given.
7015
if test "${with_pic+set}" = set; then
7021
test -z "$pic_mode" && pic_mode=default
7023
# Use C for the default configuration in the libtool script
7027
ac_cpp='$CPP $CPPFLAGS'
7028
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7029
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7030
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7033
# Source file extension for C test sources.
7036
# Object file extension for compiled C test sources.
7040
# Code to be used in simple compile tests
7041
lt_simple_compile_test_code="int some_variable = 0;\n"
7043
# Code to be used in simple link tests
7044
lt_simple_link_test_code='int main(){return(0);}\n'
7047
# If no C compiler was specified, use CC.
7050
# Allow CC to be a program name with arguments.
7055
# Check for any special shared library compilation flags.
7058
if test "$GCC" = no; then
7061
lt_prog_cc_shlib='-belf'
7065
if test -n "$lt_prog_cc_shlib"; then
7066
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7067
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7068
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7070
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7071
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7072
lt_cv_prog_cc_can_build_shared=no
7078
# Check to make sure the static flag actually works.
7080
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7081
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7082
if test "${lt_prog_compiler_static_works+set}" = set; then
7083
echo $ECHO_N "(cached) $ECHO_C" >&6
7085
lt_prog_compiler_static_works=no
7086
save_LDFLAGS="$LDFLAGS"
7087
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7088
printf "$lt_simple_link_test_code" > conftest.$ac_ext
7089
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7090
# The compiler can only warn and ignore the option if not recognized
7091
# So say no if there are warnings
7092
if test -s conftest.err; then
7093
# Append any errors to the config.log.
7094
cat conftest.err 1>&5
7096
lt_prog_compiler_static_works=yes
7100
LDFLAGS="$save_LDFLAGS"
7103
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7104
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7106
if test x"$lt_prog_compiler_static_works" = xyes; then
7109
lt_prog_compiler_static=
7115
## There is no encapsulation within the following macros, do not change
7116
## the running order or otherwise move them around unless you know exactly
7117
## what you are doing...
7119
lt_prog_compiler_no_builtin_flag=
7121
if test "$GCC" = yes; then
7122
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7125
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7126
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7127
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7128
echo $ECHO_N "(cached) $ECHO_C" >&6
7130
lt_cv_prog_compiler_rtti_exceptions=no
7131
ac_outfile=conftest.$ac_objext
7132
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7133
lt_compiler_flag="-fno-rtti -fno-exceptions"
7134
# Insert the option either (1) after the last *FLAGS variable, or
7135
# (2) before a word containing "conftest.", or (3) at the end.
7136
# Note that $ac_compile itself does not contain backslashes and begins
7137
# with a dollar sign (not a hyphen), so the echo should work correctly.
7138
# The option is referenced via a variable to avoid confusing sed.
7139
lt_compile=`echo "$ac_compile" | $SED \
7140
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7141
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7142
-e 's:$: $lt_compiler_flag:'`
7143
(eval echo "\"\$as_me:7143: $lt_compile\"" >&5)
7144
(eval "$lt_compile" 2>conftest.err)
7146
cat conftest.err >&5
7147
echo "$as_me:7147: \$? = $ac_status" >&5
7148
if (exit $ac_status) && test -s "$ac_outfile"; then
7149
# The compiler can only warn and ignore the option if not recognized
7150
# So say no if there are warnings
7151
if test ! -s conftest.err; then
7152
lt_cv_prog_compiler_rtti_exceptions=yes
7158
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7159
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7161
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7162
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7169
lt_prog_compiler_wl=
7170
lt_prog_compiler_pic=
7171
lt_prog_compiler_static=
7173
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7174
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7176
if test "$GCC" = yes; then
7177
lt_prog_compiler_wl='-Wl,'
7178
lt_prog_compiler_static='-static'
7182
# All AIX code is PIC.
7183
if test "$host_cpu" = ia64; then
7184
# AIX 5 now supports IA64 processor
7185
lt_prog_compiler_static='-Bstatic'
7190
# FIXME: we need at least 68020 code to build shared libraries, but
7191
# adding the `-m68020' flag to GCC prevents building anything better,
7193
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7196
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7197
# PIC is the default for these OSes.
7200
mingw* | pw32* | os2*)
7201
# This hack is so that the source file can tell whether it is being
7202
# built for inclusion in a dll (and should export symbols for example).
7203
lt_prog_compiler_pic='-DDLL_EXPORT'
7206
darwin* | rhapsody*)
7207
# PIC is the default on this platform
7208
# Common symbols not allowed in MH_DYLIB files
7209
lt_prog_compiler_pic='-fno-common'
7213
# Just because we use GCC doesn't mean we suddenly get shared libraries
7214
# on systems that don't support them.
7215
lt_prog_compiler_can_build_shared=no
7220
if test -d /usr/nec; then
7221
lt_prog_compiler_pic=-Kconform_pic
7226
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7233
lt_prog_compiler_pic='-fPIC'
7239
lt_prog_compiler_pic='-fPIC'
7243
# PORTME Check for flag to pass linker flags through the system compiler.
7246
lt_prog_compiler_wl='-Wl,'
7247
if test "$host_cpu" = ia64; then
7248
# AIX 5 now supports IA64 processor
7249
lt_prog_compiler_static='-Bstatic'
7251
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7255
mingw* | pw32* | os2*)
7256
# This hack is so that the source file can tell whether it is being
7257
# built for inclusion in a dll (and should export symbols for example).
7258
lt_prog_compiler_pic='-DDLL_EXPORT'
7261
hpux9* | hpux10* | hpux11*)
7262
lt_prog_compiler_wl='-Wl,'
7263
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7270
lt_prog_compiler_pic='+Z'
7273
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7274
lt_prog_compiler_static='${wl}-a ${wl}archive'
7277
irix5* | irix6* | nonstopux*)
7278
lt_prog_compiler_wl='-Wl,'
7279
# PIC (with -KPIC) is the default.
7280
lt_prog_compiler_static='-non_shared'
7284
lt_prog_compiler_pic='-KPIC'
7285
lt_prog_compiler_static='-Bstatic'
7291
lt_prog_compiler_wl='-Wl,'
7292
lt_prog_compiler_pic='-KPIC'
7293
lt_prog_compiler_static='-static'
7296
lt_prog_compiler_wl='-Wl,'
7297
# All Alpha code is PIC.
7298
lt_prog_compiler_static='-non_shared'
7303
osf3* | osf4* | osf5*)
7304
lt_prog_compiler_wl='-Wl,'
7305
# All OSF/1 code is PIC.
7306
lt_prog_compiler_static='-non_shared'
7310
lt_prog_compiler_pic='-Kpic'
7311
lt_prog_compiler_static='-dn'
7315
lt_prog_compiler_wl='-Wl,'
7316
lt_prog_compiler_pic='-KPIC'
7317
lt_prog_compiler_static='-Bstatic'
7321
lt_prog_compiler_wl='-Qoption ld '
7322
lt_prog_compiler_pic='-PIC'
7323
lt_prog_compiler_static='-Bstatic'
7326
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7327
lt_prog_compiler_wl='-Wl,'
7328
lt_prog_compiler_pic='-KPIC'
7329
lt_prog_compiler_static='-Bstatic'
7333
if test -d /usr/nec ;then
7334
lt_prog_compiler_pic='-Kconform_pic'
7335
lt_prog_compiler_static='-Bstatic'
7340
lt_prog_compiler_pic='-pic'
7341
lt_prog_compiler_static='-Bstatic'
7345
lt_prog_compiler_can_build_shared=no
7350
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7351
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7354
# Check to make sure the PIC flag actually works.
7356
if test -n "$lt_prog_compiler_pic"; then
7358
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7359
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7360
if test "${lt_prog_compiler_pic_works+set}" = set; then
7361
echo $ECHO_N "(cached) $ECHO_C" >&6
7363
lt_prog_compiler_pic_works=no
7364
ac_outfile=conftest.$ac_objext
7365
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7366
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7367
# Insert the option either (1) after the last *FLAGS variable, or
7368
# (2) before a word containing "conftest.", or (3) at the end.
7369
# Note that $ac_compile itself does not contain backslashes and begins
7370
# with a dollar sign (not a hyphen), so the echo should work correctly.
7371
# The option is referenced via a variable to avoid confusing sed.
7372
lt_compile=`echo "$ac_compile" | $SED \
7373
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7374
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7375
-e 's:$: $lt_compiler_flag:'`
7376
(eval echo "\"\$as_me:7376: $lt_compile\"" >&5)
7377
(eval "$lt_compile" 2>conftest.err)
7379
cat conftest.err >&5
7380
echo "$as_me:7380: \$? = $ac_status" >&5
7381
if (exit $ac_status) && test -s "$ac_outfile"; then
7382
# The compiler can only warn and ignore the option if not recognized
7383
# So say no if there are warnings
7384
if test ! -s conftest.err; then
7385
lt_prog_compiler_pic_works=yes
7391
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7392
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7394
if test x"$lt_prog_compiler_pic_works" = xyes; then
7395
case $lt_prog_compiler_pic in
7397
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7400
lt_prog_compiler_pic=
7401
lt_prog_compiler_can_build_shared=no
7406
# For platforms which do not support PIC, -DPIC is meaningless:
7408
lt_prog_compiler_pic=
7411
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7415
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7416
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7417
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7418
echo $ECHO_N "(cached) $ECHO_C" >&6
7420
lt_cv_prog_compiler_c_o=no
7421
$rm -r conftest 2>/dev/null
7425
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7427
lt_compiler_flag="-o out/conftest2.$ac_objext"
7428
# Insert the option either (1) after the last *FLAGS variable, or
7429
# (2) before a word containing "conftest.", or (3) at the end.
7430
# Note that $ac_compile itself does not contain backslashes and begins
7431
# with a dollar sign (not a hyphen), so the echo should work correctly.
7432
lt_compile=`echo "$ac_compile" | $SED \
7433
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7434
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7435
-e 's:$: $lt_compiler_flag:'`
7436
(eval echo "\"\$as_me:7436: $lt_compile\"" >&5)
7437
(eval "$lt_compile" 2>out/conftest.err)
7439
cat out/conftest.err >&5
7440
echo "$as_me:7440: \$? = $ac_status" >&5
7441
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7443
# The compiler can only warn and ignore the option if not recognized
7444
# So say no if there are warnings
7445
if test ! -s out/conftest.err; then
7446
lt_cv_prog_compiler_c_o=yes
7451
# SGI C++ compiler will create directory out/ii_files/ for
7452
# template instantiation
7453
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7454
$rm out/* && rmdir out
7460
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7461
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7464
hard_links="nottested"
7465
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7466
# do not overwrite the value of need_locks provided by the user
7467
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7468
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7471
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7473
ln conftest.a conftest.b 2>&5 || hard_links=no
7474
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7475
echo "$as_me:$LINENO: result: $hard_links" >&5
7476
echo "${ECHO_T}$hard_links" >&6
7477
if test "$hard_links" = no; then
7478
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7479
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7486
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7487
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7490
allow_undefined_flag=
7491
enable_shared_with_static_runtimes=no
7493
archive_expsym_cmds=
7494
old_archive_From_new_cmds=
7495
old_archive_from_expsyms_cmds=
7496
export_dynamic_flag_spec=
7497
whole_archive_flag_spec=
7498
thread_safe_flag_spec=
7499
hardcode_libdir_flag_spec=
7500
hardcode_libdir_flag_spec_ld=
7501
hardcode_libdir_separator=
7504
hardcode_shlibpath_var=unsupported
7505
link_all_deplibs=unknown
7506
hardcode_automatic=no
7509
always_export_symbols=no
7510
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7511
# include_expsyms should be a list of space-separated symbols to be *always*
7512
# included in the symbol list
7514
# exclude_expsyms can be an extended regexp of symbols to exclude
7515
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7516
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7517
# as well as any symbol that contains `d'.
7518
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7519
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7520
# platforms (ab)use it in PIC code, but their linkers get confused if
7521
# the symbol is explicitly referenced. Since portable code cannot
7522
# rely on this symbol name, it's probably fine to never include it in
7523
# preloaded symbol tables.
7524
extract_expsyms_cmds=
7527
cygwin* | mingw* | pw32*)
7528
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7529
# When not using gcc, we currently assume that we are using
7530
# Microsoft Visual C++.
7531
if test "$GCC" != yes; then
7541
if test "$with_gnu_ld" = yes; then
7542
# If archive_cmds runs LD, not CC, wlarc should be empty
7545
# See if GNU ld supports shared libraries.
7547
aix3* | aix4* | aix5*)
7548
# On AIX/PPC, the GNU linker is very broken
7549
if test "$host_cpu" != ia64; then
7553
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7554
*** to be unable to reliably create shared libraries on AIX.
7555
*** Therefore, libtool is disabling shared libraries support. If you
7556
*** really care for shared libraries, you may want to modify your PATH
7557
*** so that a non-GNU linker is found, and then restart.
7564
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)'
7565
hardcode_libdir_flag_spec='-L$libdir'
7566
hardcode_minus_L=yes
7568
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7569
# that the semantics of dynamic libraries on AmigaOS, at least up
7570
# to version 4, is to share data among multiple programs linked
7571
# with the same dynamic library. Since this doesn't match the
7572
# behavior of shared libraries on other platforms, we can't use
7578
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7579
allow_undefined_flag=unsupported
7580
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7581
# support --undefined. This deserves some investigation. FIXME
7582
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7588
cygwin* | mingw* | pw32*)
7589
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7590
# as there is no search path for DLLs.
7591
hardcode_libdir_flag_spec='-L$libdir'
7592
allow_undefined_flag=unsupported
7593
always_export_symbols=no
7594
enable_shared_with_static_runtimes=yes
7595
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7597
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7598
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7599
# If the export-symbols file already is a .def file (1st line
7600
# is EXPORTS), use it as is; otherwise, prepend...
7601
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7602
cp $export_symbols $output_objdir/$soname.def;
7604
echo EXPORTS > $output_objdir/$soname.def;
7605
cat $export_symbols >> $output_objdir/$soname.def;
7607
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7613
netbsd* | knetbsd*-gnu)
7614
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7615
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7618
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7619
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7624
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7628
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7629
*** create shared libraries on Solaris systems. Therefore, libtool
7630
*** is disabling shared libraries support. We urge you to upgrade GNU
7631
*** binutils to release 2.9.1 or newer. Another option is to modify
7632
*** your PATH or compiler configuration so that the native linker is
7633
*** used, and then restart.
7636
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7637
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7638
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7645
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7648
hardcode_shlibpath_var=no
7652
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7653
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7654
archive_cmds="$tmp_archive_cmds"
7655
supports_anon_versioning=no
7656
case `$LD -v 2>/dev/null` in
7657
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7658
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7659
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7660
*\ 2.11.*) ;; # other 2.11 versions
7661
*) supports_anon_versioning=yes ;;
7663
if test $supports_anon_versioning = yes; then
7664
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7665
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7666
$echo "local: *; };" >> $output_objdir/$libname.ver~
7667
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7669
archive_expsym_cmds="$tmp_archive_cmds"
7677
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7678
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7679
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7686
if test "$ld_shlibs" = yes; then
7687
runpath_var=LD_RUN_PATH
7688
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7689
export_dynamic_flag_spec='${wl}--export-dynamic'
7690
# ancient GNU ld didn't support --whole-archive et. al.
7691
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7692
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7694
whole_archive_flag_spec=
7698
# PORTME fill in a description of your system's linker (not GNU ld)
7701
allow_undefined_flag=unsupported
7702
always_export_symbols=yes
7703
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'
7704
# Note: this linker hardcodes the directories in LIBPATH if there
7705
# are no directories specified by -L.
7706
hardcode_minus_L=yes
7707
if test "$GCC" = yes && test -z "$link_static_flag"; then
7708
# Neither direct hardcoding nor static linking is supported with a
7710
hardcode_direct=unsupported
7715
if test "$host_cpu" = ia64; then
7716
# On IA64, the linker does run time linking by default, so we don't
7717
# have to do anything special.
7718
aix_use_runtimelinking=no
7719
exp_sym_flag='-Bexport'
7722
# If we're using GNU nm, then we don't want the "-C" option.
7723
# -C means demangle to AIX nm, but means don't demangle with GNU nm
7724
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7725
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'
7727
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'
7729
aix_use_runtimelinking=no
7731
# Test if we are trying to use run time linking or normal
7732
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7733
# need to do runtime linking.
7734
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7735
for ld_flag in $LDFLAGS; do
7736
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7737
aix_use_runtimelinking=yes
7743
exp_sym_flag='-bexport'
7744
no_entry_flag='-bnoentry'
7747
# When large executables or shared objects are built, AIX ld can
7748
# have problems creating the table of contents. If linking a library
7749
# or program results in "error TOC overflow" add -mminimal-toc to
7750
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7751
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7755
hardcode_libdir_separator=':'
7756
link_all_deplibs=yes
7758
if test "$GCC" = yes; then
7759
case $host_os in aix4.012|aix4.012.*)
7760
# We only want to do this on AIX 4.2 and lower, the check
7761
# below for broken collect2 doesn't work under 4.3+
7762
collect2name=`${CC} -print-prog-name=collect2`
7763
if test -f "$collect2name" && \
7764
strings "$collect2name" | grep resolve_lib_name >/dev/null
7766
# We have reworked collect2
7769
# We have old collect2
7770
hardcode_direct=unsupported
7771
# It fails to find uninstalled libraries when the uninstalled
7772
# path is not listed in the libpath. Setting hardcode_minus_L
7773
# to unsupported forces relinking
7774
hardcode_minus_L=yes
7775
hardcode_libdir_flag_spec='-L$libdir'
7776
hardcode_libdir_separator=
7779
shared_flag='-shared'
7782
if test "$host_cpu" = ia64; then
7783
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7784
# chokes on -Wl,-G. The following line is correct:
7787
if test "$aix_use_runtimelinking" = yes; then
7788
shared_flag='${wl}-G'
7790
shared_flag='${wl}-bM:SRE'
7795
# It seems that -bexpall does not export symbols beginning with
7796
# underscore (_), so it is better to generate a list of symbols to export.
7797
always_export_symbols=yes
7798
if test "$aix_use_runtimelinking" = yes; then
7799
# Warning - without using the other runtime loading flags (-brtl),
7800
# -berok will link without error, but may produce a broken library.
7801
allow_undefined_flag='-berok'
7802
# Determine the default libpath from the value encoded in an empty executable.
7803
cat >conftest.$ac_ext <<_ACEOF
7806
cat confdefs.h >>conftest.$ac_ext
7807
cat >>conftest.$ac_ext <<_ACEOF
7808
/* end confdefs.h. */
7818
rm -f conftest.$ac_objext conftest$ac_exeext
7819
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7820
(eval $ac_link) 2>conftest.er1
7822
grep -v '^ *+' conftest.er1 >conftest.err
7824
cat conftest.err >&5
7825
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826
(exit $ac_status); } &&
7827
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7828
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832
(exit $ac_status); }; } &&
7833
{ ac_try='test -s conftest$ac_exeext'
7834
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838
(exit $ac_status); }; }; then
7840
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7842
# Check for a 64-bit object if we didn't find anything.
7843
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; }
7846
echo "$as_me: failed program was:" >&5
7847
sed 's/^/| /' conftest.$ac_ext >&5
7850
rm -f conftest.err conftest.$ac_objext \
7851
conftest$ac_exeext conftest.$ac_ext
7852
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7854
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7855
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"
7857
if test "$host_cpu" = ia64; then
7858
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7859
allow_undefined_flag="-z nodefs"
7860
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"
7862
# Determine the default libpath from the value encoded in an empty executable.
7863
cat >conftest.$ac_ext <<_ACEOF
7866
cat confdefs.h >>conftest.$ac_ext
7867
cat >>conftest.$ac_ext <<_ACEOF
7868
/* end confdefs.h. */
7878
rm -f conftest.$ac_objext conftest$ac_exeext
7879
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7880
(eval $ac_link) 2>conftest.er1
7882
grep -v '^ *+' conftest.er1 >conftest.err
7884
cat conftest.err >&5
7885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886
(exit $ac_status); } &&
7887
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7888
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892
(exit $ac_status); }; } &&
7893
{ ac_try='test -s conftest$ac_exeext'
7894
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7897
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898
(exit $ac_status); }; }; then
7900
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7902
# Check for a 64-bit object if we didn't find anything.
7903
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; }
7906
echo "$as_me: failed program was:" >&5
7907
sed 's/^/| /' conftest.$ac_ext >&5
7910
rm -f conftest.err conftest.$ac_objext \
7911
conftest$ac_exeext conftest.$ac_ext
7912
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7914
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7915
# Warning - without using the other run time loading flags,
7916
# -berok will link without error, but may produce a broken library.
7917
no_undefined_flag=' ${wl}-bernotok'
7918
allow_undefined_flag=' ${wl}-berok'
7919
# -bexpall does not export symbols beginning with underscore (_)
7920
always_export_symbols=yes
7921
# Exported symbols can be pulled into shared objects from archives
7922
whole_archive_flag_spec=' '
7923
archive_cmds_need_lc=yes
7924
# This is similar to how AIX traditionally builds it's shared libraries.
7925
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'
7931
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)'
7932
hardcode_libdir_flag_spec='-L$libdir'
7933
hardcode_minus_L=yes
7934
# see comment about different semantics on the GNU ld section
7939
export_dynamic_flag_spec=-rdynamic
7942
cygwin* | mingw* | pw32*)
7943
# When not using gcc, we currently assume that we are using
7944
# Microsoft Visual C++.
7945
# hardcode_libdir_flag_spec is actually meaningless, as there is
7946
# no search path for DLLs.
7947
hardcode_libdir_flag_spec=' '
7948
allow_undefined_flag=unsupported
7949
# Tell ltmain to make .lib files, not .a files.
7951
# Tell ltmain to make .dll files, not .so files.
7953
# FIXME: Setting linknames here is a bad hack.
7954
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7955
# The linker will automatically build a .lib file if we build a DLL.
7956
old_archive_From_new_cmds='true'
7957
# FIXME: Should let the user specify the lib program.
7958
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7959
fix_srcfile_path='`cygpath -w "$srcfile"`'
7960
enable_shared_with_static_runtimes=yes
7963
darwin* | rhapsody*)
7964
if test "$GXX" = yes ; then
7965
archive_cmds_need_lc=no
7967
rhapsody* | darwin1.[012])
7968
allow_undefined_flag='-undefined suppress'
7971
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7972
allow_undefined_flag='-flat_namespace -undefined suppress'
7974
case ${MACOSX_DEPLOYMENT_TARGET} in
7976
allow_undefined_flag='-flat_namespace -undefined suppress'
7979
allow_undefined_flag='-undefined dynamic_lookup'
7985
lt_int_apple_cc_single_mod=no
7986
output_verbose_link_cmd='echo'
7987
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7988
lt_int_apple_cc_single_mod=yes
7990
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7991
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7993
archive_cmds='$CC -r ${wl}-bind_at_load -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'
7995
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7996
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7997
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7998
archive_expsym_cmds='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}'
8000
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
8002
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}'
8004
hardcode_automatic=yes
8005
hardcode_shlibpath_var=unsupported
8006
whole_archive_flag_spec='-all_load $convenience'
8007
link_all_deplibs=yes
8014
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8015
hardcode_libdir_flag_spec='-L$libdir'
8016
hardcode_shlibpath_var=no
8023
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8024
# support. Future versions do this automatically, but an explicit c++rt0.o
8025
# does not break anything, and helps significantly (at the cost of a little
8028
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8029
hardcode_libdir_flag_spec='-R$libdir'
8031
hardcode_shlibpath_var=no
8034
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8036
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8038
hardcode_minus_L=yes
8039
hardcode_shlibpath_var=no
8042
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8043
freebsd* | kfreebsd*-gnu)
8044
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8045
hardcode_libdir_flag_spec='-R$libdir'
8047
hardcode_shlibpath_var=no
8051
if test "$GCC" = yes; then
8052
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'
8054
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'
8056
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8057
hardcode_libdir_separator=:
8060
# hardcode_minus_L: Not really in the search PATH,
8061
# but as the default location of the library.
8062
hardcode_minus_L=yes
8063
export_dynamic_flag_spec='${wl}-E'
8067
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8070
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8073
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8079
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8082
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8086
if test "$with_gnu_ld" = no; then
8089
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8090
hardcode_libdir_flag_spec_ld='+b $libdir'
8091
hardcode_libdir_separator=:
8093
hardcode_shlibpath_var=no
8096
hardcode_libdir_flag_spec='-L$libdir'
8098
hardcode_shlibpath_var=no
8100
# hardcode_minus_L: Not really in the search PATH,
8101
# but as the default location of the library.
8102
hardcode_minus_L=yes
8105
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8106
hardcode_libdir_separator=:
8108
export_dynamic_flag_spec='${wl}-E'
8110
# hardcode_minus_L: Not really in the search PATH,
8111
# but as the default location of the library.
8112
hardcode_minus_L=yes
8118
irix5* | irix6* | nonstopux*)
8119
if test "$GCC" = yes; then
8120
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'
8122
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'
8123
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8125
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8126
hardcode_libdir_separator=:
8127
link_all_deplibs=yes
8130
netbsd* | knetbsd*-gnu)
8131
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8132
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8134
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8136
hardcode_libdir_flag_spec='-R$libdir'
8138
hardcode_shlibpath_var=no
8142
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8144
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8145
hardcode_libdir_separator=:
8146
hardcode_shlibpath_var=no
8151
hardcode_shlibpath_var=no
8152
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8153
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8154
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8155
export_dynamic_flag_spec='${wl}-E'
8158
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8159
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8160
hardcode_libdir_flag_spec='-R$libdir'
8163
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8164
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8171
hardcode_libdir_flag_spec='-L$libdir'
8172
hardcode_minus_L=yes
8173
allow_undefined_flag=unsupported
8174
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'
8175
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8179
if test "$GCC" = yes; then
8180
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8181
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'
8183
allow_undefined_flag=' -expect_unresolved \*'
8184
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'
8186
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8187
hardcode_libdir_separator=:
8190
osf4* | osf5*) # as osf3* with the addition of -msym flag
8191
if test "$GCC" = yes; then
8192
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8193
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'
8194
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8196
allow_undefined_flag=' -expect_unresolved \*'
8197
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'
8198
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8199
$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'
8201
# Both c and cxx compiler support -rpath directly
8202
hardcode_libdir_flag_spec='-rpath $libdir'
8204
hardcode_libdir_separator=:
8208
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8209
hardcode_shlibpath_var=no
8210
export_dynamic_flag_spec='${wl}-Bexport'
8211
runpath_var=LD_RUN_PATH
8212
hardcode_runpath_var=yes
8216
no_undefined_flag=' -z text'
8217
if test "$GCC" = yes; then
8218
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8219
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8220
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8222
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8223
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8224
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8226
hardcode_libdir_flag_spec='-R$libdir'
8227
hardcode_shlibpath_var=no
8229
solaris2.[0-5] | solaris2.[0-5].*) ;;
8230
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
8231
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8233
link_all_deplibs=yes
8237
if test "x$host_vendor" = xsequent; then
8238
# Use $CC to link under sequent, because it throws in some extra .o
8239
# files that make .init and .fini sections work.
8240
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8242
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8244
hardcode_libdir_flag_spec='-L$libdir'
8246
hardcode_minus_L=yes
8247
hardcode_shlibpath_var=no
8251
case $host_vendor in
8253
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8254
hardcode_direct=yes # is this really true???
8257
## LD is ld it makes a PLAMLIB
8258
## CC just makes a GrossModule.
8259
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8260
reload_cmds='$CC -r -o $output$reload_objs'
8264
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8265
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8268
runpath_var='LD_RUN_PATH'
8269
hardcode_shlibpath_var=no
8273
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8274
hardcode_shlibpath_var=no
8275
export_dynamic_flag_spec='-Bexport'
8279
if test -d /usr/nec; then
8280
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8281
hardcode_shlibpath_var=no
8282
runpath_var=LD_RUN_PATH
8283
hardcode_runpath_var=yes
8289
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8292
hardcode_shlibpath_var=no
8293
hardcode_runpath_var=yes
8294
runpath_var=LD_RUN_PATH
8297
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8298
no_undefined_flag='${wl}-z ${wl}text'
8299
if test "$GCC" = yes; then
8300
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8302
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8304
runpath_var='LD_RUN_PATH'
8305
hardcode_shlibpath_var=no
8309
no_undefined_flag=' -z text'
8310
# $CC -shared without GNU ld will not create a library from C++
8311
# object files and a static libstdc++, better avoid it by now
8312
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8313
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8314
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8315
hardcode_libdir_flag_spec=
8316
hardcode_shlibpath_var=no
8317
runpath_var='LD_RUN_PATH'
8321
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8322
hardcode_libdir_flag_spec='-L$libdir'
8323
hardcode_shlibpath_var=no
8332
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8333
echo "${ECHO_T}$ld_shlibs" >&6
8334
test "$ld_shlibs" = no && can_build_shared=no
8336
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8337
if test "$GCC" = yes; then
8338
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8342
# Do we need to explicitly link libc?
8344
case "x$archive_cmds_need_lc" in
8346
# Assume -lc should be added
8347
archive_cmds_need_lc=yes
8349
if test "$enable_shared" = yes && test "$GCC" = yes; then
8350
case $archive_cmds in
8352
# FIXME: we may have to deal with multi-command sequences.
8355
# Test whether the compiler implicitly links with -lc since on some
8356
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8357
# to ld, don't add -lc before -lgcc.
8358
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8359
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8361
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8363
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8364
(eval $ac_compile) 2>&5
8366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367
(exit $ac_status); } 2>conftest.err; then
8370
libobjs=conftest.$ac_objext
8372
wl=$lt_prog_compiler_wl
8378
lt_save_allow_undefined_flag=$allow_undefined_flag
8379
allow_undefined_flag=
8380
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8381
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8383
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384
(exit $ac_status); }
8386
archive_cmds_need_lc=no
8388
archive_cmds_need_lc=yes
8390
allow_undefined_flag=$lt_save_allow_undefined_flag
8392
cat conftest.err 1>&5
8395
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8396
echo "${ECHO_T}$archive_cmds_need_lc" >&6
8403
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8404
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8406
libname_spec='lib$name'
8414
shlibpath_overrides_runpath=unknown
8416
dynamic_linker="$host_os ld.so"
8417
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8418
if test "$GCC" = yes; then
8419
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8420
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8421
# if the path contains ";" then we assume it to be the separator
8422
# otherwise default to the standard path separator (i.e. ":") - it is
8423
# assumed that no part of a normal pathname contains ";" but that should
8424
# okay in the real world where ";" in dirpaths is itself problematic.
8425
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8427
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8430
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8432
need_lib_prefix=unknown
8433
hardcode_into_libs=no
8435
# when you set need_version to no, make sure it does not cause -set_version
8436
# flags to be left without arguments
8437
need_version=unknown
8442
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8443
shlibpath_var=LIBPATH
8445
# AIX 3 has no versioning support, so we append a major version to the name.
8446
soname_spec='${libname}${release}${shared_ext}$major'
8453
hardcode_into_libs=yes
8454
if test "$host_cpu" = ia64; then
8455
# AIX 5 supports IA64
8456
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8457
shlibpath_var=LD_LIBRARY_PATH
8459
# With GCC up to 2.95.x, collect2 would create an import file
8460
# for dependence libraries. The import file would start with
8461
# the line `#! .'. This would cause the generated library to
8462
# depend on `.', always an invalid library. This was fixed in
8463
# development snapshots of GCC prior to 3.0.
8465
aix4 | aix4.[01] | aix4.[01].*)
8466
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8468
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8475
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8476
# soname into executable. Probably we can add versioning support to
8477
# collect2, so additional links can be useful in future.
8478
if test "$aix_use_runtimelinking" = yes; then
8479
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
8480
# instead of lib<name>.a to let people know that these are not
8481
# typical AIX shared libraries.
8482
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8484
# We preserve .a as extension for shared libraries through AIX4.2
8485
# and later when we are not doing run time linking.
8486
library_names_spec='${libname}${release}.a $libname.a'
8487
soname_spec='${libname}${release}${shared_ext}$major'
8489
shlibpath_var=LIBPATH
8494
library_names_spec='$libname.ixlibrary $libname.a'
8495
# Create ${libname}_ixlibrary.a entries in /sys/libs.
8496
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'
8500
library_names_spec='${libname}${shared_ext}'
8501
dynamic_linker="$host_os ld.so"
8502
shlibpath_var=LIBRARY_PATH
8508
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8509
soname_spec='${libname}${release}${shared_ext}$major'
8510
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8511
shlibpath_var=LD_LIBRARY_PATH
8512
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8513
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8514
# the default ld.so.conf also contains /usr/contrib/lib and
8515
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8516
# libtool to hard-code these into programs
8519
cygwin* | mingw* | pw32*)
8520
version_type=windows
8525
case $GCC,$host_os in
8526
yes,cygwin* | yes,mingw* | yes,pw32*)
8527
library_names_spec='$libname.dll.a'
8528
# DLL is installed to $(libdir)/../bin by postinstall_cmds
8529
postinstall_cmds='base_file=`basename \${file}`~
8530
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8531
dldir=$destdir/`dirname \$dlpath`~
8532
test -d \$dldir || mkdir -p \$dldir~
8533
$install_prog $dir/$dlname \$dldir/$dlname'
8534
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8535
dlpath=$dir/\$dldll~
8537
shlibpath_overrides_runpath=yes
8541
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
8542
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8543
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8546
# MinGW DLLs use traditional 'lib' prefix
8547
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8548
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8549
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8550
# It is most probably a Windows format PATH printed by
8551
# mingw gcc, but we are running on Cygwin. Gcc prints its search
8552
# path with ; separators, and with drive letters. We can handle the
8553
# drive letters (cygwin fileutils understands them), so leave them,
8554
# especially as we might pass files found there to a mingw objdump,
8555
# which wouldn't understand a cygwinified path. Ahh.
8556
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8558
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8562
# pw32 DLLs use 'pw' prefix rather than 'lib'
8563
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8569
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8572
dynamic_linker='Win32 ld.exe'
8573
# FIXME: first we should search . and the directory the executable is in
8577
darwin* | rhapsody*)
8578
dynamic_linker="$host_os dyld"
8582
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8583
soname_spec='${libname}${release}${major}$shared_ext'
8584
shlibpath_overrides_runpath=yes
8585
shlibpath_var=DYLD_LIBRARY_PATH
8586
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
8587
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8588
if test "$GCC" = yes; then
8589
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"`
8591
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8593
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8600
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8601
soname_spec='${libname}${release}${shared_ext}$major'
8602
shlibpath_var=LD_LIBRARY_PATH
8613
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8614
soname_spec='${libname}${release}${shared_ext}$major'
8615
shlibpath_var=LD_LIBRARY_PATH
8616
shlibpath_overrides_runpath=no
8617
hardcode_into_libs=yes
8618
dynamic_linker='GNU ld.so'
8622
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8623
version_type=freebsd-$objformat
8624
case $version_type in
8626
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8631
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8635
shlibpath_var=LD_LIBRARY_PATH
8638
shlibpath_overrides_runpath=yes
8640
freebsd3.01* | freebsdelf3.01*)
8641
shlibpath_overrides_runpath=yes
8642
hardcode_into_libs=yes
8645
shlibpath_overrides_runpath=no
8646
hardcode_into_libs=yes
8655
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8656
soname_spec='${libname}${release}${shared_ext}$major'
8657
shlibpath_var=LD_LIBRARY_PATH
8658
hardcode_into_libs=yes
8661
hpux9* | hpux10* | hpux11*)
8662
# Give a soname corresponding to the major version so that dld.sl refuses to
8663
# link against other versions.
8670
hardcode_into_libs=yes
8671
dynamic_linker="$host_os dld.so"
8672
shlibpath_var=LD_LIBRARY_PATH
8673
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8674
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8675
soname_spec='${libname}${release}${shared_ext}$major'
8676
if test "X$HPUX_IA64_MODE" = X32; then
8677
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8679
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8681
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8685
hardcode_into_libs=yes
8686
dynamic_linker="$host_os dld.sl"
8687
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8688
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8689
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8690
soname_spec='${libname}${release}${shared_ext}$major'
8691
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8692
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8696
dynamic_linker="$host_os dld.sl"
8697
shlibpath_var=SHLIB_PATH
8698
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8699
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8700
soname_spec='${libname}${release}${shared_ext}$major'
8703
# HP-UX runs *really* slowly unless shared libraries are mode 555.
8704
postinstall_cmds='chmod 555 $lib'
8707
irix5* | irix6* | nonstopux*)
8709
nonstopux*) version_type=nonstopux ;;
8711
if test "$lt_cv_prog_gnu_ld" = yes; then
8719
soname_spec='${libname}${release}${shared_ext}$major'
8720
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8722
irix5* | nonstopux*)
8726
case $LD in # libtool.m4 will add one of these switches to LD
8727
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8728
libsuff= shlibsuff= libmagic=32-bit;;
8729
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8730
libsuff=32 shlibsuff=N32 libmagic=N32;;
8731
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8732
libsuff=64 shlibsuff=64 libmagic=64-bit;;
8733
*) libsuff= shlibsuff= libmagic=never-match;;
8737
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8738
shlibpath_overrides_runpath=no
8739
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8740
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8741
hardcode_into_libs=yes
8744
# No shared lib support for Linux oldld, aout, or coff.
8745
linux*oldld* | linux*aout* | linux*coff*)
8749
# This must be Linux ELF.
8754
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8755
soname_spec='${libname}${release}${shared_ext}$major'
8756
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8757
shlibpath_var=LD_LIBRARY_PATH
8758
shlibpath_overrides_runpath=no
8759
# This implies no fast_install, which is unacceptable.
8760
# Some rework will be needed to allow for fast_install
8761
# before this can be enabled.
8762
hardcode_into_libs=yes
8764
# Append ld.so.conf contents to the search path
8765
if test -f /etc/ld.so.conf; then
8766
ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
8767
sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
8770
# We used to test for /lib/ld.so.1 and disable shared libraries on
8771
# powerpc, because MkLinux only supported shared libraries with the
8772
# GNU dynamic linker. Since this was broken with cross compilers,
8773
# most powerpc-linux boxes support dynamic linking these days and
8774
# people can always --disable-shared, the test was removed, and we
8775
# assume the GNU/Linux dynamic linker is in use.
8776
dynamic_linker='GNU/Linux ld.so'
8783
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8784
soname_spec='${libname}${release}${shared_ext}$major'
8785
shlibpath_var=LD_LIBRARY_PATH
8786
shlibpath_overrides_runpath=no
8787
hardcode_into_libs=yes
8788
dynamic_linker='GNU ld.so'
8795
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8796
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8797
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8798
dynamic_linker='NetBSD (a.out) ld.so'
8800
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8801
soname_spec='${libname}${release}${shared_ext}$major'
8802
dynamic_linker='NetBSD ld.elf_so'
8804
shlibpath_var=LD_LIBRARY_PATH
8805
shlibpath_overrides_runpath=yes
8806
hardcode_into_libs=yes
8811
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8812
shlibpath_var=LD_LIBRARY_PATH
8813
shlibpath_overrides_runpath=yes
8820
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8821
soname_spec='${libname}${release}${shared_ext}$major'
8822
shlibpath_var=LD_LIBRARY_PATH
8823
shlibpath_overrides_runpath=yes
8830
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8831
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8832
shlibpath_var=LD_LIBRARY_PATH
8833
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8835
openbsd2.[89] | openbsd2.[89].*)
8836
shlibpath_overrides_runpath=no
8839
shlibpath_overrides_runpath=yes
8843
shlibpath_overrides_runpath=yes
8848
libname_spec='$name'
8851
library_names_spec='$libname${shared_ext} $libname.a'
8852
dynamic_linker='OS/2 ld.exe'
8853
shlibpath_var=LIBPATH
8856
osf3* | osf4* | osf5*)
8860
soname_spec='${libname}${release}${shared_ext}$major'
8861
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8862
shlibpath_var=LD_LIBRARY_PATH
8863
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8864
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8869
soname_spec='${libname}${release}${shared_ext}$major'
8870
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8871
shlibpath_var=LD_LIBRARY_PATH
8878
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8879
soname_spec='${libname}${release}${shared_ext}$major'
8880
shlibpath_var=LD_LIBRARY_PATH
8881
shlibpath_overrides_runpath=yes
8882
hardcode_into_libs=yes
8883
# ldd complains unless libraries are executable
8884
postinstall_cmds='chmod +x $lib'
8889
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8890
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8891
shlibpath_var=LD_LIBRARY_PATH
8892
shlibpath_overrides_runpath=yes
8893
if test "$with_gnu_ld" = yes; then
8899
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8901
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8902
soname_spec='${libname}${release}${shared_ext}$major'
8903
shlibpath_var=LD_LIBRARY_PATH
8904
case $host_vendor in
8906
shlibpath_overrides_runpath=no
8908
export_dynamic_flag_spec='${wl}-Blargedynsym'
8909
runpath_var=LD_RUN_PATH
8917
shlibpath_overrides_runpath=no
8918
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8924
if test -d /usr/nec ;then
8926
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8927
soname_spec='$libname${shared_ext}.$major'
8928
shlibpath_var=LD_LIBRARY_PATH
8934
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8935
soname_spec='${libname}${release}${shared_ext}$major'
8936
shlibpath_var=LD_LIBRARY_PATH
8943
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8944
echo "${ECHO_T}$dynamic_linker" >&6
8945
test "$dynamic_linker" = no && can_build_shared=no
8947
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8948
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8950
if test -n "$hardcode_libdir_flag_spec" || \
8951
test -n "$runpath_var " || \
8952
test "X$hardcode_automatic"="Xyes" ; then
8954
# We can hardcode non-existant directories.
8955
if test "$hardcode_direct" != no &&
8956
# If the only mechanism to avoid hardcoding is shlibpath_var, we
8957
# have to relink, otherwise we might link with an installed library
8958
# when we should be linking with a yet-to-be-installed one
8959
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8960
test "$hardcode_minus_L" != no; then
8961
# Linking always hardcodes the temporary library directory.
8962
hardcode_action=relink
8964
# We can link without hardcoding, and we can hardcode nonexisting dirs.
8965
hardcode_action=immediate
8968
# We cannot hardcode anything, or else we can only hardcode existing
8970
hardcode_action=unsupported
8972
echo "$as_me:$LINENO: result: $hardcode_action" >&5
8973
echo "${ECHO_T}$hardcode_action" >&6
8975
if test "$hardcode_action" = relink; then
8976
# Fast installation is not supported
8977
enable_fast_install=no
8978
elif test "$shlibpath_overrides_runpath" = yes ||
8979
test "$enable_shared" = no; then
8980
# Fast installation is not necessary
8981
enable_fast_install=needless
8986
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8987
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8988
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8989
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8990
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8991
echo "$as_me:$LINENO: result: yes" >&5
8992
echo "${ECHO_T}yes" >&6
8994
# FIXME - insert some real tests, host_os isn't really good enough
8997
if test -n "$STRIP" ; then
8998
striplib="$STRIP -x"
8999
echo "$as_me:$LINENO: result: yes" >&5
9000
echo "${ECHO_T}yes" >&6
9002
echo "$as_me:$LINENO: result: no" >&5
9003
echo "${ECHO_T}no" >&6
9007
echo "$as_me:$LINENO: result: no" >&5
9008
echo "${ECHO_T}no" >&6
9013
if test "x$enable_dlopen" != xyes; then
9014
enable_dlopen=unknown
9015
enable_dlopen_self=unknown
9016
enable_dlopen_self_static=unknown
9023
lt_cv_dlopen="load_add_on"
9025
lt_cv_dlopen_self=yes
9029
lt_cv_dlopen="LoadLibrary"
9034
lt_cv_dlopen="dlopen"
9039
# if libdl is installed we need to link against it
9040
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9041
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9042
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9043
echo $ECHO_N "(cached) $ECHO_C" >&6
9045
ac_check_lib_save_LIBS=$LIBS
9047
cat >conftest.$ac_ext <<_ACEOF
9050
cat confdefs.h >>conftest.$ac_ext
9051
cat >>conftest.$ac_ext <<_ACEOF
9052
/* end confdefs.h. */
9054
/* Override any gcc2 internal prototype to avoid an error. */
9058
/* We use char because int might match the return type of a gcc2
9059
builtin and then its argument prototype would still apply. */
9069
rm -f conftest.$ac_objext conftest$ac_exeext
9070
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9071
(eval $ac_link) 2>conftest.er1
9073
grep -v '^ *+' conftest.er1 >conftest.err
9075
cat conftest.err >&5
9076
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077
(exit $ac_status); } &&
9078
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9079
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083
(exit $ac_status); }; } &&
9084
{ ac_try='test -s conftest$ac_exeext'
9085
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089
(exit $ac_status); }; }; then
9090
ac_cv_lib_dl_dlopen=yes
9092
echo "$as_me: failed program was:" >&5
9093
sed 's/^/| /' conftest.$ac_ext >&5
9095
ac_cv_lib_dl_dlopen=no
9097
rm -f conftest.err conftest.$ac_objext \
9098
conftest$ac_exeext conftest.$ac_ext
9099
LIBS=$ac_check_lib_save_LIBS
9101
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9102
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9103
if test $ac_cv_lib_dl_dlopen = yes; then
9104
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9109
lt_cv_dlopen_self=yes
9116
echo "$as_me:$LINENO: checking for shl_load" >&5
9117
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9118
if test "${ac_cv_func_shl_load+set}" = set; then
9119
echo $ECHO_N "(cached) $ECHO_C" >&6
9121
cat >conftest.$ac_ext <<_ACEOF
9124
cat confdefs.h >>conftest.$ac_ext
9125
cat >>conftest.$ac_ext <<_ACEOF
9126
/* end confdefs.h. */
9127
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9128
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9129
#define shl_load innocuous_shl_load
9131
/* System header to define __stub macros and hopefully few prototypes,
9132
which can conflict with char shl_load (); below.
9133
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9134
<limits.h> exists even on freestanding compilers. */
9137
# include <limits.h>
9139
# include <assert.h>
9144
/* Override any gcc2 internal prototype to avoid an error. */
9149
/* We use char because int might match the return type of a gcc2
9150
builtin and then its argument prototype would still apply. */
9152
/* The GNU C library defines this for functions which it implements
9153
to always fail with ENOSYS. Some functions are actually named
9154
something starting with __ and the normal name is an alias. */
9155
#if defined (__stub_shl_load) || defined (__stub___shl_load)
9158
char (*f) () = shl_load;
9167
return f != shl_load;
9172
rm -f conftest.$ac_objext conftest$ac_exeext
9173
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9174
(eval $ac_link) 2>conftest.er1
9176
grep -v '^ *+' conftest.er1 >conftest.err
9178
cat conftest.err >&5
9179
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180
(exit $ac_status); } &&
9181
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9182
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186
(exit $ac_status); }; } &&
9187
{ ac_try='test -s conftest$ac_exeext'
9188
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192
(exit $ac_status); }; }; then
9193
ac_cv_func_shl_load=yes
9195
echo "$as_me: failed program was:" >&5
9196
sed 's/^/| /' conftest.$ac_ext >&5
9198
ac_cv_func_shl_load=no
9200
rm -f conftest.err conftest.$ac_objext \
9201
conftest$ac_exeext conftest.$ac_ext
9203
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9204
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9205
if test $ac_cv_func_shl_load = yes; then
9206
lt_cv_dlopen="shl_load"
9208
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9209
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9210
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9211
echo $ECHO_N "(cached) $ECHO_C" >&6
9213
ac_check_lib_save_LIBS=$LIBS
9215
cat >conftest.$ac_ext <<_ACEOF
9218
cat confdefs.h >>conftest.$ac_ext
9219
cat >>conftest.$ac_ext <<_ACEOF
9220
/* end confdefs.h. */
9222
/* Override any gcc2 internal prototype to avoid an error. */
9226
/* We use char because int might match the return type of a gcc2
9227
builtin and then its argument prototype would still apply. */
9237
rm -f conftest.$ac_objext conftest$ac_exeext
9238
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9239
(eval $ac_link) 2>conftest.er1
9241
grep -v '^ *+' conftest.er1 >conftest.err
9243
cat conftest.err >&5
9244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245
(exit $ac_status); } &&
9246
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9247
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251
(exit $ac_status); }; } &&
9252
{ ac_try='test -s conftest$ac_exeext'
9253
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257
(exit $ac_status); }; }; then
9258
ac_cv_lib_dld_shl_load=yes
9260
echo "$as_me: failed program was:" >&5
9261
sed 's/^/| /' conftest.$ac_ext >&5
9263
ac_cv_lib_dld_shl_load=no
9265
rm -f conftest.err conftest.$ac_objext \
9266
conftest$ac_exeext conftest.$ac_ext
9267
LIBS=$ac_check_lib_save_LIBS
9269
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9270
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9271
if test $ac_cv_lib_dld_shl_load = yes; then
9272
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9274
echo "$as_me:$LINENO: checking for dlopen" >&5
9275
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9276
if test "${ac_cv_func_dlopen+set}" = set; then
9277
echo $ECHO_N "(cached) $ECHO_C" >&6
9279
cat >conftest.$ac_ext <<_ACEOF
9282
cat confdefs.h >>conftest.$ac_ext
9283
cat >>conftest.$ac_ext <<_ACEOF
9284
/* end confdefs.h. */
9285
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9286
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9287
#define dlopen innocuous_dlopen
9289
/* System header to define __stub macros and hopefully few prototypes,
9290
which can conflict with char dlopen (); below.
9291
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9292
<limits.h> exists even on freestanding compilers. */
9295
# include <limits.h>
9297
# include <assert.h>
9302
/* Override any gcc2 internal prototype to avoid an error. */
9307
/* We use char because int might match the return type of a gcc2
9308
builtin and then its argument prototype would still apply. */
9310
/* The GNU C library defines this for functions which it implements
9311
to always fail with ENOSYS. Some functions are actually named
9312
something starting with __ and the normal name is an alias. */
9313
#if defined (__stub_dlopen) || defined (__stub___dlopen)
9316
char (*f) () = dlopen;
9330
rm -f conftest.$ac_objext conftest$ac_exeext
9331
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9332
(eval $ac_link) 2>conftest.er1
9334
grep -v '^ *+' conftest.er1 >conftest.err
9336
cat conftest.err >&5
9337
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338
(exit $ac_status); } &&
9339
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9340
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9343
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344
(exit $ac_status); }; } &&
9345
{ ac_try='test -s conftest$ac_exeext'
9346
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9349
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350
(exit $ac_status); }; }; then
9351
ac_cv_func_dlopen=yes
9353
echo "$as_me: failed program was:" >&5
9354
sed 's/^/| /' conftest.$ac_ext >&5
9356
ac_cv_func_dlopen=no
9358
rm -f conftest.err conftest.$ac_objext \
9359
conftest$ac_exeext conftest.$ac_ext
9361
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9362
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9363
if test $ac_cv_func_dlopen = yes; then
9364
lt_cv_dlopen="dlopen"
9366
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9367
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9368
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9369
echo $ECHO_N "(cached) $ECHO_C" >&6
9371
ac_check_lib_save_LIBS=$LIBS
9373
cat >conftest.$ac_ext <<_ACEOF
9376
cat confdefs.h >>conftest.$ac_ext
9377
cat >>conftest.$ac_ext <<_ACEOF
9378
/* end confdefs.h. */
9380
/* Override any gcc2 internal prototype to avoid an error. */
9384
/* We use char because int might match the return type of a gcc2
9385
builtin and then its argument prototype would still apply. */
9395
rm -f conftest.$ac_objext conftest$ac_exeext
9396
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9397
(eval $ac_link) 2>conftest.er1
9399
grep -v '^ *+' conftest.er1 >conftest.err
9401
cat conftest.err >&5
9402
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403
(exit $ac_status); } &&
9404
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9405
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409
(exit $ac_status); }; } &&
9410
{ ac_try='test -s conftest$ac_exeext'
9411
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415
(exit $ac_status); }; }; then
9416
ac_cv_lib_dl_dlopen=yes
9418
echo "$as_me: failed program was:" >&5
9419
sed 's/^/| /' conftest.$ac_ext >&5
9421
ac_cv_lib_dl_dlopen=no
9423
rm -f conftest.err conftest.$ac_objext \
9424
conftest$ac_exeext conftest.$ac_ext
9425
LIBS=$ac_check_lib_save_LIBS
9427
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9428
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9429
if test $ac_cv_lib_dl_dlopen = yes; then
9430
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9432
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9433
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9434
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9435
echo $ECHO_N "(cached) $ECHO_C" >&6
9437
ac_check_lib_save_LIBS=$LIBS
9439
cat >conftest.$ac_ext <<_ACEOF
9442
cat confdefs.h >>conftest.$ac_ext
9443
cat >>conftest.$ac_ext <<_ACEOF
9444
/* end confdefs.h. */
9446
/* Override any gcc2 internal prototype to avoid an error. */
9450
/* We use char because int might match the return type of a gcc2
9451
builtin and then its argument prototype would still apply. */
9461
rm -f conftest.$ac_objext conftest$ac_exeext
9462
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9463
(eval $ac_link) 2>conftest.er1
9465
grep -v '^ *+' conftest.er1 >conftest.err
9467
cat conftest.err >&5
9468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469
(exit $ac_status); } &&
9470
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9471
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475
(exit $ac_status); }; } &&
9476
{ ac_try='test -s conftest$ac_exeext'
9477
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481
(exit $ac_status); }; }; then
9482
ac_cv_lib_svld_dlopen=yes
9484
echo "$as_me: failed program was:" >&5
9485
sed 's/^/| /' conftest.$ac_ext >&5
9487
ac_cv_lib_svld_dlopen=no
9489
rm -f conftest.err conftest.$ac_objext \
9490
conftest$ac_exeext conftest.$ac_ext
9491
LIBS=$ac_check_lib_save_LIBS
9493
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9494
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9495
if test $ac_cv_lib_svld_dlopen = yes; then
9496
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9498
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9499
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9500
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9501
echo $ECHO_N "(cached) $ECHO_C" >&6
9503
ac_check_lib_save_LIBS=$LIBS
9505
cat >conftest.$ac_ext <<_ACEOF
9508
cat confdefs.h >>conftest.$ac_ext
9509
cat >>conftest.$ac_ext <<_ACEOF
9510
/* end confdefs.h. */
9512
/* Override any gcc2 internal prototype to avoid an error. */
9516
/* We use char because int might match the return type of a gcc2
9517
builtin and then its argument prototype would still apply. */
9527
rm -f conftest.$ac_objext conftest$ac_exeext
9528
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9529
(eval $ac_link) 2>conftest.er1
9531
grep -v '^ *+' conftest.er1 >conftest.err
9533
cat conftest.err >&5
9534
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535
(exit $ac_status); } &&
9536
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9537
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9540
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541
(exit $ac_status); }; } &&
9542
{ ac_try='test -s conftest$ac_exeext'
9543
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9546
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547
(exit $ac_status); }; }; then
9548
ac_cv_lib_dld_dld_link=yes
9550
echo "$as_me: failed program was:" >&5
9551
sed 's/^/| /' conftest.$ac_ext >&5
9553
ac_cv_lib_dld_dld_link=no
9555
rm -f conftest.err conftest.$ac_objext \
9556
conftest$ac_exeext conftest.$ac_ext
9557
LIBS=$ac_check_lib_save_LIBS
9559
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9560
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9561
if test $ac_cv_lib_dld_dld_link = yes; then
9562
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9583
if test "x$lt_cv_dlopen" != xno; then
9589
case $lt_cv_dlopen in
9591
save_CPPFLAGS="$CPPFLAGS"
9592
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9594
save_LDFLAGS="$LDFLAGS"
9595
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9598
LIBS="$lt_cv_dlopen_libs $LIBS"
9600
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9601
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9602
if test "${lt_cv_dlopen_self+set}" = set; then
9603
echo $ECHO_N "(cached) $ECHO_C" >&6
9605
if test "$cross_compiling" = yes; then :
9606
lt_cv_dlopen_self=cross
9608
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9609
lt_status=$lt_dlunknown
9610
cat > conftest.$ac_ext <<EOF
9611
#line 9611 "configure"
9612
#include "confdefs.h"
9621
# define LT_DLGLOBAL RTLD_GLOBAL
9624
# define LT_DLGLOBAL DL_GLOBAL
9626
# define LT_DLGLOBAL 0
9630
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9631
find out it does not work in some platform. */
9632
#ifndef LT_DLLAZY_OR_NOW
9634
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9637
# define LT_DLLAZY_OR_NOW DL_LAZY
9640
# define LT_DLLAZY_OR_NOW RTLD_NOW
9643
# define LT_DLLAZY_OR_NOW DL_NOW
9645
# define LT_DLLAZY_OR_NOW 0
9653
extern "C" void exit (int);
9656
void fnord() { int i=42;}
9659
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9660
int status = $lt_dlunknown;
9664
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9665
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9666
/* dlclose (self); */
9672
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9673
(eval $ac_link) 2>&5
9675
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9677
(./conftest; exit; ) 2>/dev/null
9680
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9681
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9682
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9685
# compilation failed
9686
lt_cv_dlopen_self=no
9693
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9694
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9696
if test "x$lt_cv_dlopen_self" = xyes; then
9697
LDFLAGS="$LDFLAGS $link_static_flag"
9698
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9699
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9700
if test "${lt_cv_dlopen_self_static+set}" = set; then
9701
echo $ECHO_N "(cached) $ECHO_C" >&6
9703
if test "$cross_compiling" = yes; then :
9704
lt_cv_dlopen_self_static=cross
9706
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9707
lt_status=$lt_dlunknown
9708
cat > conftest.$ac_ext <<EOF
9709
#line 9709 "configure"
9710
#include "confdefs.h"
9719
# define LT_DLGLOBAL RTLD_GLOBAL
9722
# define LT_DLGLOBAL DL_GLOBAL
9724
# define LT_DLGLOBAL 0
9728
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9729
find out it does not work in some platform. */
9730
#ifndef LT_DLLAZY_OR_NOW
9732
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9735
# define LT_DLLAZY_OR_NOW DL_LAZY
9738
# define LT_DLLAZY_OR_NOW RTLD_NOW
9741
# define LT_DLLAZY_OR_NOW DL_NOW
9743
# define LT_DLLAZY_OR_NOW 0
9751
extern "C" void exit (int);
9754
void fnord() { int i=42;}
9757
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9758
int status = $lt_dlunknown;
9762
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9763
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9764
/* dlclose (self); */
9770
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9771
(eval $ac_link) 2>&5
9773
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9775
(./conftest; exit; ) 2>/dev/null
9778
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9779
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9780
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9783
# compilation failed
9784
lt_cv_dlopen_self_static=no
9791
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9792
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9795
CPPFLAGS="$save_CPPFLAGS"
9796
LDFLAGS="$save_LDFLAGS"
9801
case $lt_cv_dlopen_self in
9802
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9803
*) enable_dlopen_self=unknown ;;
9806
case $lt_cv_dlopen_self_static in
9807
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9808
*) enable_dlopen_self_static=unknown ;;
9813
# Report which librarie types wil actually be built
9814
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9815
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9816
echo "$as_me:$LINENO: result: $can_build_shared" >&5
9817
echo "${ECHO_T}$can_build_shared" >&6
9819
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9820
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9821
test "$can_build_shared" = "no" && enable_shared=no
9823
# On AIX, shared libraries and static libraries use the same namespace, and
9824
# are all built from PIC.
9827
test "$enable_shared" = yes && enable_static=no
9828
if test -n "$RANLIB"; then
9829
archive_cmds="$archive_cmds~\$RANLIB \$lib"
9830
postinstall_cmds='$RANLIB $lib'
9835
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9836
test "$enable_shared" = yes && enable_static=no
9839
darwin* | rhapsody*)
9840
if test "$GCC" = yes; then
9841
archive_cmds_need_lc=no
9843
rhapsody* | darwin1.[012])
9844
allow_undefined_flag='-undefined suppress'
9847
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9848
allow_undefined_flag='-flat_namespace -undefined suppress'
9850
case ${MACOSX_DEPLOYMENT_TARGET} in
9852
allow_undefined_flag='-flat_namespace -undefined suppress'
9855
allow_undefined_flag='-undefined dynamic_lookup'
9861
output_verbose_link_cmd='echo'
9862
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9863
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9864
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9865
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}'
9866
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}'
9868
hardcode_automatic=yes
9869
hardcode_shlibpath_var=unsupported
9870
whole_archive_flag_spec='-all_load $convenience'
9871
link_all_deplibs=yes
9877
echo "$as_me:$LINENO: result: $enable_shared" >&5
9878
echo "${ECHO_T}$enable_shared" >&6
9880
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9881
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9882
# Make sure either enable_shared or enable_static is yes.
9883
test "$enable_shared" = yes || enable_static=yes
9884
echo "$as_me:$LINENO: result: $enable_static" >&5
9885
echo "${ECHO_T}$enable_static" >&6
9887
# The else clause should only fire when bootstrapping the
9888
# libtool distribution, otherwise you forgot to ship ltmain.sh
9889
# with your package, and you will get complaints that there are
9890
# no rules to generate ltmain.sh.
9891
if test -f "$ltmain"; then
9892
# See if we are running on zsh, and set the options which allow our commands through
9893
# without removal of \ escapes.
9894
if test -n "${ZSH_VERSION+set}" ; then
9895
setopt NO_GLOB_SUBST
9897
# Now quote all the things that may contain metacharacters while being
9898
# careful not to overquote the AC_SUBSTed values. We take copies of the
9899
# variables and quote the copies for generation of the libtool script.
9900
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9902
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9903
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9904
deplibs_check_method reload_flag reload_cmds need_locks \
9905
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9906
lt_cv_sys_global_symbol_to_c_name_address \
9907
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9908
old_postinstall_cmds old_postuninstall_cmds \
9912
lt_prog_compiler_wl \
9913
lt_prog_compiler_pic \
9914
lt_prog_compiler_static \
9915
lt_prog_compiler_no_builtin_flag \
9916
export_dynamic_flag_spec \
9917
thread_safe_flag_spec \
9918
whole_archive_flag_spec \
9919
enable_shared_with_static_runtimes \
9921
old_archive_from_new_cmds \
9926
compiler_lib_search_path \
9928
archive_expsym_cmds \
9930
postuninstall_cmds \
9931
old_archive_from_expsyms_cmds \
9932
allow_undefined_flag \
9934
export_symbols_cmds \
9935
hardcode_libdir_flag_spec \
9936
hardcode_libdir_flag_spec_ld \
9937
hardcode_libdir_separator \
9938
hardcode_automatic \
9940
module_expsym_cmds \
9941
lt_cv_prog_compiler_c_o \
9946
old_archive_cmds | \
9947
old_archive_from_new_cmds | \
9949
archive_expsym_cmds | \
9951
module_expsym_cmds | \
9952
old_archive_from_expsyms_cmds | \
9953
export_symbols_cmds | \
9954
extract_expsyms_cmds | reload_cmds | finish_cmds | \
9955
postinstall_cmds | postuninstall_cmds | \
9956
old_postinstall_cmds | old_postuninstall_cmds | \
9957
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9958
# Double-quote double-evaled strings.
9959
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9962
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9968
*'\$0 --fallback-echo"')
9969
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9974
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9976
{ echo "$as_me:$LINENO: creating $ofile" >&5
9977
echo "$as_me: creating $ofile" >&6;}
9979
cat <<__EOF__ >> "$cfgfile"
9982
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9983
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9984
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9986
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9987
# Free Software Foundation, Inc.
9989
# This file is part of GNU Libtool:
9990
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9992
# This program is free software; you can redistribute it and/or modify
9993
# it under the terms of the GNU General Public License as published by
9994
# the Free Software Foundation; either version 2 of the License, or
9995
# (at your option) any later version.
9997
# This program is distributed in the hope that it will be useful, but
9998
# WITHOUT ANY WARRANTY; without even the implied warranty of
9999
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10000
# General Public License for more details.
10002
# You should have received a copy of the GNU General Public License
10003
# along with this program; if not, write to the Free Software
10004
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10006
# As a special exception to the GNU General Public License, if you
10007
# distribute this file as part of a program that contains a
10008
# configuration script generated by Autoconf, you may include it under
10009
# the same distribution terms that you use for the rest of that program.
10011
# A sed program that does not truncate output.
10014
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10015
Xsed="$SED -e s/^X//"
10017
# The HP-UX ksh and POSIX shell print the target directory to stdout
10018
# if CDPATH is set.
10019
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10021
# The names of the tagged configurations supported by this script.
10024
# ### BEGIN LIBTOOL CONFIG
10026
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10028
# Shell to use when invoking shell scripts.
10031
# Whether or not to build shared libraries.
10032
build_libtool_libs=$enable_shared
10034
# Whether or not to build static libraries.
10035
build_old_libs=$enable_static
10037
# Whether or not to add -lc for building shared libraries.
10038
build_libtool_need_lc=$archive_cmds_need_lc
10040
# Whether or not to disallow shared libs when runtime libs are static
10041
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10043
# Whether or not to optimize for fast installation.
10044
fast_install=$enable_fast_install
10047
host_alias=$host_alias
10050
# An echo program that does not interpret backslashes.
10055
AR_FLAGS=$lt_AR_FLAGS
10060
# A language-specific compiler.
10063
# Is the compiler the GNU C compiler?
10069
# The linker used to build libraries.
10072
# Whether we need hard or soft links.
10075
# A BSD-compatible nm program.
10078
# A symbol stripping program
10081
# Used to examine libraries when file_magic_cmd begins "file"
10082
MAGIC_CMD=$MAGIC_CMD
10084
# Used on cygwin: DLL creation program.
10087
# Used on cygwin: object dumper.
10090
# Used on cygwin: assembler.
10093
# The name of the directory that contains temporary libtool files.
10096
# How to create reloadable object files.
10097
reload_flag=$lt_reload_flag
10098
reload_cmds=$lt_reload_cmds
10100
# How to pass a linker flag through the compiler.
10101
wl=$lt_lt_prog_compiler_wl
10103
# Object file suffix (normally "o").
10104
objext="$ac_objext"
10106
# Old archive suffix (normally "a").
10109
# Shared library suffix (normally ".so").
10112
# Executable file suffix (normally "").
10115
# Additional compiler flags for building library objects.
10116
pic_flag=$lt_lt_prog_compiler_pic
10119
# What is the maximum length of a command?
10120
max_cmd_len=$lt_cv_sys_max_cmd_len
10122
# Does compiler simultaneously support -c and -o options?
10123
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10125
# Must we lock files when doing compilation ?
10126
need_locks=$lt_need_locks
10128
# Do we need the lib prefix for modules?
10129
need_lib_prefix=$need_lib_prefix
10131
# Do we need a version for libraries?
10132
need_version=$need_version
10134
# Whether dlopen is supported.
10135
dlopen_support=$enable_dlopen
10137
# Whether dlopen of programs is supported.
10138
dlopen_self=$enable_dlopen_self
10140
# Whether dlopen of statically linked programs is supported.
10141
dlopen_self_static=$enable_dlopen_self_static
10143
# Compiler flag to prevent dynamic linking.
10144
link_static_flag=$lt_lt_prog_compiler_static
10146
# Compiler flag to turn off builtin functions.
10147
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10149
# Compiler flag to allow reflexive dlopens.
10150
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10152
# Compiler flag to generate shared objects directly from archives.
10153
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10155
# Compiler flag to generate thread-safe objects.
10156
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10158
# Library versioning type.
10159
version_type=$version_type
10161
# Format of library name prefix.
10162
libname_spec=$lt_libname_spec
10164
# List of archive names. First name is the real one, the rest are links.
10165
# The last name is the one that the linker finds with -lNAME.
10166
library_names_spec=$lt_library_names_spec
10168
# The coded name of the library, if different from the real name.
10169
soname_spec=$lt_soname_spec
10171
# Commands used to build and install an old-style archive.
10173
old_archive_cmds=$lt_old_archive_cmds
10174
old_postinstall_cmds=$lt_old_postinstall_cmds
10175
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10177
# Create an old-style archive from a shared archive.
10178
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10180
# Create a temporary old-style archive to link instead of a shared archive.
10181
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10183
# Commands used to build and install a shared archive.
10184
archive_cmds=$lt_archive_cmds
10185
archive_expsym_cmds=$lt_archive_expsym_cmds
10186
postinstall_cmds=$lt_postinstall_cmds
10187
postuninstall_cmds=$lt_postuninstall_cmds
10189
# Commands used to build a loadable module (assumed same as above if empty)
10190
module_cmds=$lt_module_cmds
10191
module_expsym_cmds=$lt_module_expsym_cmds
10193
# Commands to strip libraries.
10194
old_striplib=$lt_old_striplib
10195
striplib=$lt_striplib
10197
# Dependencies to place before the objects being linked to create a
10199
predep_objects=$lt_predep_objects
10201
# Dependencies to place after the objects being linked to create a
10203
postdep_objects=$lt_postdep_objects
10205
# Dependencies to place before the objects being linked to create a
10207
predeps=$lt_predeps
10209
# Dependencies to place after the objects being linked to create a
10211
postdeps=$lt_postdeps
10213
# The library search path used internally by the compiler when linking
10214
# a shared library.
10215
compiler_lib_search_path=$lt_compiler_lib_search_path
10217
# Method to check whether dependent libraries are shared objects.
10218
deplibs_check_method=$lt_deplibs_check_method
10220
# Command to use when deplibs_check_method == file_magic.
10221
file_magic_cmd=$lt_file_magic_cmd
10223
# Flag that allows shared libraries with undefined symbols to be built.
10224
allow_undefined_flag=$lt_allow_undefined_flag
10226
# Flag that forces no undefined symbols.
10227
no_undefined_flag=$lt_no_undefined_flag
10229
# Commands used to finish a libtool library installation in a directory.
10230
finish_cmds=$lt_finish_cmds
10232
# Same as above, but a single script fragment to be evaled but not shown.
10233
finish_eval=$lt_finish_eval
10235
# Take the output of nm and produce a listing of raw symbols and C names.
10236
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10238
# Transform the output of nm in a proper C declaration
10239
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10241
# Transform the output of nm in a C name address pair
10242
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10244
# This is the shared library runtime path variable.
10245
runpath_var=$runpath_var
10247
# This is the shared library path variable.
10248
shlibpath_var=$shlibpath_var
10250
# Is shlibpath searched before the hard-coded library search path?
10251
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10253
# How to hardcode a shared library path into an executable.
10254
hardcode_action=$hardcode_action
10256
# Whether we should hardcode library paths into libraries.
10257
hardcode_into_libs=$hardcode_into_libs
10259
# Flag to hardcode \$libdir into a binary during linking.
10260
# This must work even if \$libdir does not exist.
10261
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10263
# If ld is used when linking, flag to hardcode \$libdir into
10264
# a binary during linking. This must work even if \$libdir does
10266
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10268
# Whether we need a single -rpath flag with a separated argument.
10269
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10271
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10272
# resulting binary.
10273
hardcode_direct=$hardcode_direct
10275
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10276
# resulting binary.
10277
hardcode_minus_L=$hardcode_minus_L
10279
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10280
# the resulting binary.
10281
hardcode_shlibpath_var=$hardcode_shlibpath_var
10283
# Set to yes if building a shared library automatically hardcodes DIR into the library
10284
# and all subsequent libraries and executables linked against it.
10285
hardcode_automatic=$hardcode_automatic
10287
# Variables whose values should be saved in libtool wrapper scripts and
10288
# restored at relink time.
10289
variables_saved_for_relink="$variables_saved_for_relink"
10291
# Whether libtool must link a program against all its dependency libraries.
10292
link_all_deplibs=$link_all_deplibs
10294
# Compile-time system search path for libraries
10295
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10297
# Run-time system search path for libraries
10298
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10300
# Fix the shell variable \$srcfile for the compiler.
10301
fix_srcfile_path="$fix_srcfile_path"
10303
# Set to yes if exported symbols are required.
10304
always_export_symbols=$always_export_symbols
10306
# The commands to list exported symbols.
10307
export_symbols_cmds=$lt_export_symbols_cmds
10309
# The commands to extract the exported symbol list from a shared archive.
10310
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10312
# Symbols that should not be listed in the preloaded symbols.
10313
exclude_expsyms=$lt_exclude_expsyms
10315
# Symbols that must always be exported.
10316
include_expsyms=$lt_include_expsyms
10318
# ### END LIBTOOL CONFIG
10325
cat <<\EOF >> "$cfgfile"
10327
# AIX sometimes has problems with the GCC collect2 program. For some
10328
# reason, if we set the COLLECT_NAMES environment variable, the problems
10329
# vanish in a puff of smoke.
10330
if test "X${COLLECT_NAMES+set}" != Xset; then
10332
export COLLECT_NAMES
10338
# We use sed instead of cat because bash on DJGPP gets confused if
10339
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10340
# text mode, it properly converts lines to CR/LF. This bash problem
10341
# is reportedly fixed, but why not run on old versions too?
10342
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10344
mv -f "$cfgfile" "$ofile" || \
10345
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10349
# If there is no Makefile yet, we rely on a make rule to execute
10350
# `config.status --recheck' to rerun these tests and create the
10351
# libtool script then.
10352
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10353
if test -f "$ltmain_in"; then
10354
test -f Makefile && make "$ltmain"
10360
ac_cpp='$CPP $CPPFLAGS'
10361
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10362
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10363
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10368
# Check whether --with-tags or --without-tags was given.
10369
if test "${with_tags+set}" = set; then
10370
withval="$with_tags"
10371
tagnames="$withval"
10374
if test -f "$ltmain" && test -n "$tagnames"; then
10375
if test ! -f "${ofile}"; then
10376
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10377
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10380
if test -z "$LTCC"; then
10381
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10382
if test -z "$LTCC"; then
10383
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10384
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10386
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10387
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10391
# Extract list of available tagged configurations in $ofile.
10392
# Note that this assumes the entire list is on one line.
10393
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10395
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10396
for tagname in $tagnames; do
10398
# Check whether tagname contains only valid characters
10399
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10401
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10402
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10403
{ (exit 1); exit 1; }; }
10407
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10409
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10410
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10411
{ (exit 1); exit 1; }; }
10414
# Update the list of available tags.
10415
if test -n "$tagname"; then
10416
echo appending configuration tag \"$tagname\" to $ofile
10420
if test -n "$CXX" && test "X$CXX" != "Xno"; then
10422
ac_cpp='$CXXCPP $CPPFLAGS'
10423
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10424
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10425
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10430
archive_cmds_need_lc_CXX=no
10431
allow_undefined_flag_CXX=
10432
always_export_symbols_CXX=no
10433
archive_expsym_cmds_CXX=
10434
export_dynamic_flag_spec_CXX=
10435
hardcode_direct_CXX=no
10436
hardcode_libdir_flag_spec_CXX=
10437
hardcode_libdir_flag_spec_ld_CXX=
10438
hardcode_libdir_separator_CXX=
10439
hardcode_minus_L_CXX=no
10440
hardcode_automatic_CXX=no
10442
module_expsym_cmds_CXX=
10443
link_all_deplibs_CXX=unknown
10444
old_archive_cmds_CXX=$old_archive_cmds
10445
no_undefined_flag_CXX=
10446
whole_archive_flag_spec_CXX=
10447
enable_shared_with_static_runtimes_CXX=no
10449
# Dependencies to place before and after the object being linked:
10450
predep_objects_CXX=
10451
postdep_objects_CXX=
10454
compiler_lib_search_path_CXX=
10456
# Source file extension for C++ test sources.
10459
# Object file extension for compiled C++ test sources.
10463
# Code to be used in simple compile tests
10464
lt_simple_compile_test_code="int some_variable = 0;\n"
10466
# Code to be used in simple link tests
10467
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10469
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10471
# If no C compiler was specified, use CC.
10474
# Allow CC to be a program name with arguments.
10478
# Allow CC to be a program name with arguments.
10483
lt_save_with_gnu_ld=$with_gnu_ld
10484
lt_save_path_LD=$lt_cv_path_LD
10485
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10486
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10488
unset lt_cv_prog_gnu_ld
10490
if test -n "${lt_cv_path_LDCXX+set}"; then
10491
lt_cv_path_LD=$lt_cv_path_LDCXX
10493
unset lt_cv_path_LD
10495
test -z "${LDCXX+set}" || LD=$LDCXX
10499
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10501
# We don't want -fno-exception wen compiling C++ code, so set the
10502
# no_builtin_flag separately
10503
if test "$GXX" = yes; then
10504
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10506
lt_prog_compiler_no_builtin_flag_CXX=
10509
if test "$GXX" = yes; then
10510
# Set up default GNU C++ configuration
10513
# Check whether --with-gnu-ld or --without-gnu-ld was given.
10514
if test "${with_gnu_ld+set}" = set; then
10515
withval="$with_gnu_ld"
10516
test "$withval" = no || with_gnu_ld=yes
10521
if test "$GCC" = yes; then
10522
# Check if gcc -print-prog-name=ld gives a path.
10523
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10524
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10527
# gcc leaves a trailing carriage return which upsets mingw
10528
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10530
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10533
# Accept absolute paths.
10535
re_direlt='/[^/][^/]*/\.\./'
10536
# Canonicalize the pathname of ld
10537
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10538
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10539
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10541
test -z "$LD" && LD="$ac_prog"
10544
# If it fails, then pretend we aren't using GCC.
10548
# If it is relative, then search for the first ld in PATH.
10549
with_gnu_ld=unknown
10552
elif test "$with_gnu_ld" = yes; then
10553
echo "$as_me:$LINENO: checking for GNU ld" >&5
10554
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10556
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10557
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10559
if test "${lt_cv_path_LD+set}" = set; then
10560
echo $ECHO_N "(cached) $ECHO_C" >&6
10562
if test -z "$LD"; then
10563
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10564
for ac_dir in $PATH; do
10566
test -z "$ac_dir" && ac_dir=.
10567
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10568
lt_cv_path_LD="$ac_dir/$ac_prog"
10569
# Check to see if the program is GNU ld. I'd rather use --version,
10570
# but apparently some GNU ld's only accept -v.
10571
# Break only if it was the GNU/non-GNU ld that we prefer.
10572
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10573
*GNU* | *'with BFD'*)
10574
test "$with_gnu_ld" != no && break
10577
test "$with_gnu_ld" != yes && break
10584
lt_cv_path_LD="$LD" # Let the user override the test with a path.
10588
LD="$lt_cv_path_LD"
10589
if test -n "$LD"; then
10590
echo "$as_me:$LINENO: result: $LD" >&5
10591
echo "${ECHO_T}$LD" >&6
10593
echo "$as_me:$LINENO: result: no" >&5
10594
echo "${ECHO_T}no" >&6
10596
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10597
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10598
{ (exit 1); exit 1; }; }
10599
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10600
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10601
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10602
echo $ECHO_N "(cached) $ECHO_C" >&6
10604
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
10605
case `$LD -v 2>&1 </dev/null` in
10606
*GNU* | *'with BFD'*)
10607
lt_cv_prog_gnu_ld=yes
10610
lt_cv_prog_gnu_ld=no
10614
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10615
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10616
with_gnu_ld=$lt_cv_prog_gnu_ld
10620
# Check if GNU C++ uses GNU ld as the underlying linker, since the
10621
# archiving commands below assume that GNU ld is being used.
10622
if test "$with_gnu_ld" = yes; then
10623
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10624
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'
10626
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10627
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10629
# If archive_cmds runs LD, not CC, wlarc should be empty
10630
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10631
# investigate it a little bit more. (MM)
10634
# ancient GNU ld didn't support --whole-archive et. al.
10635
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10636
grep 'no-whole-archive' > /dev/null; then
10637
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10639
whole_archive_flag_spec_CXX=
10645
# A generic and very simple default shared library creation
10646
# command for GNU C++ for the case where it uses the native
10647
# linker, instead of GNU ld. If possible, this setting should
10648
# overridden to take advantage of the native linker features on
10649
# the platform it is being used on.
10650
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10653
# Commands to make compiler produce verbose output that lists
10654
# what "hidden" libraries, object files and flags are used when
10655
# linking a shared library.
10656
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10664
# PORTME: fill in a description of your system's C++ link characteristics
10665
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10666
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10670
# FIXME: insert proper C++ library support
10674
if test "$host_cpu" = ia64; then
10675
# On IA64, the linker does run time linking by default, so we don't
10676
# have to do anything special.
10677
aix_use_runtimelinking=no
10678
exp_sym_flag='-Bexport'
10681
aix_use_runtimelinking=no
10683
# Test if we are trying to use run time linking or normal
10684
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10685
# need to do runtime linking.
10686
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10687
for ld_flag in $LDFLAGS; do
10690
aix_use_runtimelinking=yes
10697
exp_sym_flag='-bexport'
10698
no_entry_flag='-bnoentry'
10701
# When large executables or shared objects are built, AIX ld can
10702
# have problems creating the table of contents. If linking a library
10703
# or program results in "error TOC overflow" add -mminimal-toc to
10704
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10705
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10707
archive_cmds_CXX=''
10708
hardcode_direct_CXX=yes
10709
hardcode_libdir_separator_CXX=':'
10710
link_all_deplibs_CXX=yes
10712
if test "$GXX" = yes; then
10713
case $host_os in aix4.012|aix4.012.*)
10714
# We only want to do this on AIX 4.2 and lower, the check
10715
# below for broken collect2 doesn't work under 4.3+
10716
collect2name=`${CC} -print-prog-name=collect2`
10717
if test -f "$collect2name" && \
10718
strings "$collect2name" | grep resolve_lib_name >/dev/null
10720
# We have reworked collect2
10721
hardcode_direct_CXX=yes
10723
# We have old collect2
10724
hardcode_direct_CXX=unsupported
10725
# It fails to find uninstalled libraries when the uninstalled
10726
# path is not listed in the libpath. Setting hardcode_minus_L
10727
# to unsupported forces relinking
10728
hardcode_minus_L_CXX=yes
10729
hardcode_libdir_flag_spec_CXX='-L$libdir'
10730
hardcode_libdir_separator_CXX=
10733
shared_flag='-shared'
10736
if test "$host_cpu" = ia64; then
10737
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10738
# chokes on -Wl,-G. The following line is correct:
10741
if test "$aix_use_runtimelinking" = yes; then
10742
shared_flag='${wl}-G'
10744
shared_flag='${wl}-bM:SRE'
10749
# It seems that -bexpall does not export symbols beginning with
10750
# underscore (_), so it is better to generate a list of symbols to export.
10751
always_export_symbols_CXX=yes
10752
if test "$aix_use_runtimelinking" = yes; then
10753
# Warning - without using the other runtime loading flags (-brtl),
10754
# -berok will link without error, but may produce a broken library.
10755
allow_undefined_flag_CXX='-berok'
10756
# Determine the default libpath from the value encoded in an empty executable.
10757
cat >conftest.$ac_ext <<_ACEOF
10760
cat confdefs.h >>conftest.$ac_ext
10761
cat >>conftest.$ac_ext <<_ACEOF
10762
/* end confdefs.h. */
10772
rm -f conftest.$ac_objext conftest$ac_exeext
10773
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10774
(eval $ac_link) 2>conftest.er1
10776
grep -v '^ *+' conftest.er1 >conftest.err
10778
cat conftest.err >&5
10779
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780
(exit $ac_status); } &&
10781
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10782
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10783
(eval $ac_try) 2>&5
10785
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786
(exit $ac_status); }; } &&
10787
{ ac_try='test -s conftest$ac_exeext'
10788
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10789
(eval $ac_try) 2>&5
10791
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792
(exit $ac_status); }; }; then
10794
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10796
# Check for a 64-bit object if we didn't find anything.
10797
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; }
10800
echo "$as_me: failed program was:" >&5
10801
sed 's/^/| /' conftest.$ac_ext >&5
10804
rm -f conftest.err conftest.$ac_objext \
10805
conftest$ac_exeext conftest.$ac_ext
10806
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10808
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10810
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"
10812
if test "$host_cpu" = ia64; then
10813
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10814
allow_undefined_flag_CXX="-z nodefs"
10815
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"
10817
# Determine the default libpath from the value encoded in an empty executable.
10818
cat >conftest.$ac_ext <<_ACEOF
10821
cat confdefs.h >>conftest.$ac_ext
10822
cat >>conftest.$ac_ext <<_ACEOF
10823
/* end confdefs.h. */
10833
rm -f conftest.$ac_objext conftest$ac_exeext
10834
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10835
(eval $ac_link) 2>conftest.er1
10837
grep -v '^ *+' conftest.er1 >conftest.err
10839
cat conftest.err >&5
10840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841
(exit $ac_status); } &&
10842
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10843
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10844
(eval $ac_try) 2>&5
10846
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847
(exit $ac_status); }; } &&
10848
{ ac_try='test -s conftest$ac_exeext'
10849
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10850
(eval $ac_try) 2>&5
10852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853
(exit $ac_status); }; }; then
10855
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10857
# Check for a 64-bit object if we didn't find anything.
10858
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; }
10861
echo "$as_me: failed program was:" >&5
10862
sed 's/^/| /' conftest.$ac_ext >&5
10865
rm -f conftest.err conftest.$ac_objext \
10866
conftest$ac_exeext conftest.$ac_ext
10867
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10869
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10870
# Warning - without using the other run time loading flags,
10871
# -berok will link without error, but may produce a broken library.
10872
no_undefined_flag_CXX=' ${wl}-bernotok'
10873
allow_undefined_flag_CXX=' ${wl}-berok'
10874
# -bexpall does not export symbols beginning with underscore (_)
10875
always_export_symbols_CXX=yes
10876
# Exported symbols can be pulled into shared objects from archives
10877
whole_archive_flag_spec_CXX=' '
10878
archive_cmds_need_lc_CXX=yes
10879
# This is similar to how AIX traditionally builds it's shared libraries.
10880
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'
10885
case $cc_basename in
10887
# FIXME: insert proper C++ library support
10893
cygwin* | mingw* | pw32*)
10894
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10895
# as there is no search path for DLLs.
10896
hardcode_libdir_flag_spec_CXX='-L$libdir'
10897
allow_undefined_flag_CXX=unsupported
10898
always_export_symbols_CXX=no
10899
enable_shared_with_static_runtimes_CXX=yes
10901
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10902
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'
10903
# If the export-symbols file already is a .def file (1st line
10904
# is EXPORTS), use it as is; otherwise, prepend...
10905
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10906
cp $export_symbols $output_objdir/$soname.def;
10908
echo EXPORTS > $output_objdir/$soname.def;
10909
cat $export_symbols >> $output_objdir/$soname.def;
10911
$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'
10917
darwin* | rhapsody*)
10918
if test "$GXX" = yes; then
10919
archive_cmds_need_lc_CXX=no
10921
rhapsody* | darwin1.[012])
10922
allow_undefined_flag_CXX='-undefined suppress'
10925
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10926
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10928
case ${MACOSX_DEPLOYMENT_TARGET} in
10930
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10933
allow_undefined_flag_CXX='-undefined dynamic_lookup'
10939
lt_int_apple_cc_single_mod=no
10940
output_verbose_link_cmd='echo'
10941
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10942
lt_int_apple_cc_single_mod=yes
10944
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10945
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10947
archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
10949
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10951
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10952
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10953
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}'
10955
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
10957
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}'
10958
hardcode_direct_CXX=no
10959
hardcode_automatic_CXX=yes
10960
hardcode_shlibpath_var_CXX=unsupported
10961
whole_archive_flag_spec_CXX='-all_load $convenience'
10962
link_all_deplibs_CXX=yes
10969
case $cc_basename in
10971
# FIXME: insert proper C++ library support
10975
# Green Hills C++ Compiler
10976
# FIXME: insert proper C++ library support
10980
# FIXME: insert proper C++ library support
10986
# C++ shared libraries reported to be fairly broken before switch to ELF
10990
archive_cmds_need_lc_CXX=no
10992
freebsd* | kfreebsd*-gnu)
10993
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11000
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11001
hardcode_libdir_separator_CXX=:
11002
export_dynamic_flag_spec_CXX='${wl}-E'
11003
hardcode_direct_CXX=yes
11004
hardcode_minus_L_CXX=yes # Not in the search PATH,
11005
# but as the default
11006
# location of the library.
11008
case $cc_basename in
11010
# FIXME: insert proper C++ library support
11014
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'
11015
# Commands to make compiler produce verbose output that lists
11016
# what "hidden" libraries, object files and flags are used when
11017
# linking a shared library.
11019
# There doesn't appear to be a way to prevent this compiler from
11020
# explicitly linking system object files so we need to strip them
11021
# from the output so that they don't get included in the library
11023
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11026
if test "$GXX" = yes; then
11027
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'
11029
# FIXME: insert proper C++ library support
11036
if test $with_gnu_ld = no; then
11037
case "$host_cpu" in
11039
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11040
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11041
hardcode_libdir_separator_CXX=:
11044
hardcode_libdir_flag_spec_CXX='-L$libdir'
11047
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11048
hardcode_libdir_separator_CXX=:
11049
export_dynamic_flag_spec_CXX='${wl}-E'
11053
case "$host_cpu" in
11055
hardcode_direct_CXX=no
11056
hardcode_shlibpath_var_CXX=no
11059
hardcode_direct_CXX=no
11060
hardcode_shlibpath_var_CXX=no
11061
hardcode_minus_L_CXX=yes # Not in the search PATH,
11062
# but as the default
11063
# location of the library.
11066
hardcode_direct_CXX=yes
11067
hardcode_minus_L_CXX=yes # Not in the search PATH,
11068
# but as the default
11069
# location of the library.
11073
case $cc_basename in
11075
# FIXME: insert proper C++ library support
11079
case "$host_cpu" in
11081
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11084
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11087
# Commands to make compiler produce verbose output that lists
11088
# what "hidden" libraries, object files and flags are used when
11089
# linking a shared library.
11091
# There doesn't appear to be a way to prevent this compiler from
11092
# explicitly linking system object files so we need to strip them
11093
# from the output so that they don't get included in the library
11095
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'
11098
if test "$GXX" = yes; then
11099
if test $with_gnu_ld = no; then
11100
case "$host_cpu" in
11102
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11105
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'
11110
# FIXME: insert proper C++ library support
11117
case $cc_basename in
11120
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'
11122
# Archives containing C++ object files must be created using
11123
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11124
# necessary to make sure instantiated templates are included
11126
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11129
if test "$GXX" = yes; then
11130
if test "$with_gnu_ld" = no; then
11131
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'
11133
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'
11136
link_all_deplibs_CXX=yes
11139
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11140
hardcode_libdir_separator_CXX=:
11143
case $cc_basename in
11145
# Kuck and Associates, Inc. (KAI) C++ Compiler
11147
# KCC will only create a shared library if the output file
11148
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11149
# to its proper name (with version) after linking.
11150
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'
11151
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'
11152
# Commands to make compiler produce verbose output that lists
11153
# what "hidden" libraries, object files and flags are used when
11154
# linking a shared library.
11156
# There doesn't appear to be a way to prevent this compiler from
11157
# explicitly linking system object files so we need to strip them
11158
# from the output so that they don't get included in the library
11160
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'
11162
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11163
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11165
# Archives containing C++ object files must be created using
11166
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11167
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11172
archive_cmds_need_lc_CXX=no
11173
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11174
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'
11175
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11176
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11177
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11181
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11182
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'
11184
runpath_var=LD_RUN_PATH
11185
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11186
hardcode_libdir_separator_CXX=:
11188
# Commands to make compiler produce verbose output that lists
11189
# what "hidden" libraries, object files and flags are used when
11190
# linking a shared library.
11192
# There doesn't appear to be a way to prevent this compiler from
11193
# explicitly linking system object files so we need to strip them
11194
# from the output so that they don't get included in the library
11196
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'
11201
# FIXME: insert proper C++ library support
11205
# FIXME: insert proper C++ library support
11209
case $cc_basename in
11211
# FIXME: insert proper C++ library support
11215
# FIXME: insert proper C++ library support
11220
netbsd* | knetbsd*-gnu)
11221
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11222
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11224
hardcode_libdir_flag_spec_CXX='-R$libdir'
11225
hardcode_direct_CXX=yes
11226
hardcode_shlibpath_var_CXX=no
11228
# Workaround some broken pre-1.5 toolchains
11229
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11232
case $cc_basename in
11234
# Kuck and Associates, Inc. (KAI) C++ Compiler
11236
# KCC will only create a shared library if the output file
11237
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11238
# to its proper name (with version) after linking.
11239
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'
11241
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11242
hardcode_libdir_separator_CXX=:
11244
# Archives containing C++ object files must be created using
11245
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11246
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11250
# Rational C++ 2.4.1
11251
# FIXME: insert proper C++ library support
11255
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11256
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'
11258
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11259
hardcode_libdir_separator_CXX=:
11261
# Commands to make compiler produce verbose output that lists
11262
# what "hidden" libraries, object files and flags are used when
11263
# linking a shared library.
11265
# There doesn't appear to be a way to prevent this compiler from
11266
# explicitly linking system object files so we need to strip them
11267
# from the output so that they don't get included in the library
11269
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'
11272
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11273
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11274
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'
11276
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11277
hardcode_libdir_separator_CXX=:
11279
# Commands to make compiler produce verbose output that lists
11280
# what "hidden" libraries, object files and flags are used when
11281
# linking a shared library.
11282
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11285
# FIXME: insert proper C++ library support
11292
case $cc_basename in
11294
# Kuck and Associates, Inc. (KAI) C++ Compiler
11296
# KCC will only create a shared library if the output file
11297
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11298
# to its proper name (with version) after linking.
11299
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'
11301
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11302
hardcode_libdir_separator_CXX=:
11304
# Archives containing C++ object files must be created using
11305
# the KAI C++ compiler.
11306
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11309
# Rational C++ 2.4.1
11310
# FIXME: insert proper C++ library support
11314
allow_undefined_flag_CXX=' -expect_unresolved \*'
11315
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'
11316
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11317
echo "-hidden">> $lib.exp~
11318
$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~
11321
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11322
hardcode_libdir_separator_CXX=:
11324
# Commands to make compiler produce verbose output that lists
11325
# what "hidden" libraries, object files and flags are used when
11326
# linking a shared library.
11328
# There doesn't appear to be a way to prevent this compiler from
11329
# explicitly linking system object files so we need to strip them
11330
# from the output so that they don't get included in the library
11332
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'
11335
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11336
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11337
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'
11339
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11340
hardcode_libdir_separator_CXX=:
11342
# Commands to make compiler produce verbose output that lists
11343
# what "hidden" libraries, object files and flags are used when
11344
# linking a shared library.
11345
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11348
# FIXME: insert proper C++ library support
11355
# FIXME: insert proper C++ library support
11359
archive_cmds_need_lc_CXX=no
11360
case $cc_basename in
11362
# FIXME: insert proper C++ library support
11366
# FIXME: insert proper C++ library support
11372
case $cc_basename in
11375
# FIXME: insert proper C++ library support
11380
# FIXME: insert proper C++ library support
11384
# FIXME: insert proper C++ library support
11390
case $cc_basename in
11392
# Sun C++ 4.2, 5.x and Centerline C++
11393
no_undefined_flag_CXX=' -zdefs'
11394
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11395
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11396
$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'
11398
hardcode_libdir_flag_spec_CXX='-R$libdir'
11399
hardcode_shlibpath_var_CXX=no
11401
solaris2.0-5 | solaris2.0-5.*) ;;
11403
# The C++ compiler is used as linker so we must use $wl
11404
# flag to pass the commands to the underlying system
11406
# Supported since Solaris 2.6 (maybe 2.5.1?)
11407
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11410
link_all_deplibs_CXX=yes
11412
# Commands to make compiler produce verbose output that lists
11413
# what "hidden" libraries, object files and flags are used when
11414
# linking a shared library.
11416
# There doesn't appear to be a way to prevent this compiler from
11417
# explicitly linking system object files so we need to strip them
11418
# from the output so that they don't get included in the library
11420
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'
11422
# Archives containing C++ object files must be created using
11423
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11424
# necessary to make sure instantiated templates are included
11426
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11429
# Green Hills C++ Compiler
11430
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11432
# The C++ compiler must be used to create the archive.
11433
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11436
# GNU C++ compiler with Solaris linker
11437
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11438
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11439
if $CC --version | grep -v '^2\.7' > /dev/null; then
11440
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11441
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11442
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11444
# Commands to make compiler produce verbose output that lists
11445
# what "hidden" libraries, object files and flags are used when
11446
# linking a shared library.
11447
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11449
# g++ 2.7 appears to require `-G' NOT `-shared' on this
11451
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11452
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11453
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11455
# Commands to make compiler produce verbose output that lists
11456
# what "hidden" libraries, object files and flags are used when
11457
# linking a shared library.
11458
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11461
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11466
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11467
archive_cmds_need_lc_CXX=no
11470
case $cc_basename in
11472
# NonStop-UX NCC 3.20
11473
# FIXME: insert proper C++ library support
11477
# FIXME: insert proper C++ library support
11483
# FIXME: insert proper C++ library support
11487
# FIXME: insert proper C++ library support
11491
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11492
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11493
test "$ld_shlibs_CXX" = no && can_build_shared=no
11499
## There is no encapsulation within the following macros, do not change
11500
## the running order or otherwise move them around unless you know exactly
11501
## what you are doing...
11503
cat > conftest.$ac_ext <<EOF
11507
Foo (void) { a = 0; }
11513
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11514
(eval $ac_compile) 2>&5
11516
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517
(exit $ac_status); }; then
11518
# Parse the compiler output and extract the necessary
11519
# objects, libraries and library flags.
11521
# Sentinel used to keep track of whether or not we are before
11522
# the conftest object file.
11523
pre_test_object_deps_done=no
11525
# The `*' in the case matches for architectures that use `case' in
11526
# $output_verbose_cmd can trigger glob expansion during the loop
11527
# eval without this substitution.
11528
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11530
for p in `eval $output_verbose_link_cmd`; do
11534
# Some compilers place space between "-{L,R}" and the path.
11535
# Remove the space.
11536
if test $p = "-L" \
11537
|| test $p = "-R"; then
11544
if test "$pre_test_object_deps_done" = no; then
11547
# Internal compiler library paths should come after those
11548
# provided the user. The postdeps already come after the
11549
# user supplied libs so there is no need to process them.
11550
if test -z "$compiler_lib_search_path_CXX"; then
11551
compiler_lib_search_path_CXX="${prev}${p}"
11553
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11556
# The "-l" case would never come before the object being
11557
# linked, so don't bother handling this case.
11560
if test -z "$postdeps_CXX"; then
11561
postdeps_CXX="${prev}${p}"
11563
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11569
# This assumes that the test object file only shows up
11570
# once in the compiler output.
11571
if test "$p" = "conftest.$objext"; then
11572
pre_test_object_deps_done=yes
11576
if test "$pre_test_object_deps_done" = no; then
11577
if test -z "$predep_objects_CXX"; then
11578
predep_objects_CXX="$p"
11580
predep_objects_CXX="$predep_objects_CXX $p"
11583
if test -z "$postdep_objects_CXX"; then
11584
postdep_objects_CXX="$p"
11586
postdep_objects_CXX="$postdep_objects_CXX $p"
11591
*) ;; # Ignore the rest.
11599
echo "libtool.m4: error: problem compiling CXX test program"
11602
$rm -f confest.$objext
11604
case " $postdeps_CXX " in
11605
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11608
lt_prog_compiler_wl_CXX=
11609
lt_prog_compiler_pic_CXX=
11610
lt_prog_compiler_static_CXX=
11612
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11613
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11615
# C++ specific cases for pic, static, wl, etc.
11616
if test "$GXX" = yes; then
11617
lt_prog_compiler_wl_CXX='-Wl,'
11618
lt_prog_compiler_static_CXX='-static'
11622
# All AIX code is PIC.
11623
if test "$host_cpu" = ia64; then
11624
# AIX 5 now supports IA64 processor
11625
lt_prog_compiler_static_CXX='-Bstatic'
11629
# FIXME: we need at least 68020 code to build shared libraries, but
11630
# adding the `-m68020' flag to GCC prevents building anything better,
11632
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11634
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11635
# PIC is the default for these OSes.
11637
mingw* | os2* | pw32*)
11638
# This hack is so that the source file can tell whether it is being
11639
# built for inclusion in a dll (and should export symbols for example).
11640
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11642
darwin* | rhapsody*)
11643
# PIC is the default on this platform
11644
# Common symbols not allowed in MH_DYLIB files
11645
lt_prog_compiler_pic_CXX='-fno-common'
11648
# DJGPP does not support shared libraries at all
11649
lt_prog_compiler_pic_CXX=
11652
if test -d /usr/nec; then
11653
lt_prog_compiler_pic_CXX=-Kconform_pic
11657
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11658
# not for PA HP-UX.
11659
case "$host_cpu" in
11663
lt_prog_compiler_pic_CXX='-fPIC'
11668
lt_prog_compiler_pic_CXX='-fPIC'
11674
# All AIX code is PIC.
11675
if test "$host_cpu" = ia64; then
11676
# AIX 5 now supports IA64 processor
11677
lt_prog_compiler_static_CXX='-Bstatic'
11679
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11683
case $cc_basename in
11685
# Green Hills C++ Compiler
11686
# _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"
11691
case $cc_basename in
11693
lt_prog_compiler_pic_CXX='-KPIC'
11696
# Green Hills C++ Compiler
11697
lt_prog_compiler_pic_CXX='-pic'
11703
freebsd* | kfreebsd*-gnu)
11704
# FreeBSD uses GNU C++
11706
hpux9* | hpux10* | hpux11*)
11707
case $cc_basename in
11709
lt_prog_compiler_wl_CXX='-Wl,'
11710
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11711
if test "$host_cpu" != ia64; then
11712
lt_prog_compiler_pic_CXX='+Z'
11716
lt_prog_compiler_wl_CXX='-Wl,'
11717
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11718
case "$host_cpu" in
11723
lt_prog_compiler_pic_CXX='+Z'
11731
irix5* | irix6* | nonstopux*)
11732
case $cc_basename in
11734
lt_prog_compiler_wl_CXX='-Wl,'
11735
lt_prog_compiler_static_CXX='-non_shared'
11736
# CC pic flag -KPIC is the default.
11743
case $cc_basename in
11746
lt_prog_compiler_wl_CXX='--backend -Wl,'
11747
lt_prog_compiler_pic_CXX='-fPIC'
11751
lt_prog_compiler_wl_CXX='-Wl,'
11752
lt_prog_compiler_pic_CXX='-KPIC'
11753
lt_prog_compiler_static_CXX='-static'
11757
# Make sure the PIC flag is empty. It appears that all Alpha
11758
# Linux and Compaq Tru64 Unix objects are PIC.
11759
lt_prog_compiler_pic_CXX=
11760
lt_prog_compiler_static_CXX='-non_shared'
11771
case $cc_basename in
11773
lt_prog_compiler_pic_CXX='-W c,exportall'
11779
netbsd* | knetbsd*-gnu)
11781
osf3* | osf4* | osf5*)
11782
case $cc_basename in
11784
lt_prog_compiler_wl_CXX='--backend -Wl,'
11787
# Rational C++ 2.4.1
11788
lt_prog_compiler_pic_CXX='-pic'
11791
# Digital/Compaq C++
11792
lt_prog_compiler_wl_CXX='-Wl,'
11793
# Make sure the PIC flag is empty. It appears that all Alpha
11794
# Linux and Compaq Tru64 Unix objects are PIC.
11795
lt_prog_compiler_pic_CXX=
11796
lt_prog_compiler_static_CXX='-non_shared'
11805
case $cc_basename in
11807
lt_prog_compiler_pic_CXX='-fPIC'
11814
case $cc_basename in
11816
# Sun C++ 4.2, 5.x and Centerline C++
11817
lt_prog_compiler_pic_CXX='-KPIC'
11818
lt_prog_compiler_static_CXX='-Bstatic'
11819
lt_prog_compiler_wl_CXX='-Qoption ld '
11822
# Green Hills C++ Compiler
11823
lt_prog_compiler_pic_CXX='-PIC'
11830
case $cc_basename in
11833
lt_prog_compiler_pic_CXX='-pic'
11834
lt_prog_compiler_static_CXX='-Bstatic'
11838
lt_prog_compiler_pic_CXX='-pic'
11845
case $cc_basename in
11847
# NonStop-UX NCC 3.20
11848
lt_prog_compiler_pic_CXX='-KPIC'
11859
lt_prog_compiler_can_build_shared_CXX=no
11864
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11865
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11868
# Check to make sure the PIC flag actually works.
11870
if test -n "$lt_prog_compiler_pic_CXX"; then
11872
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11873
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11874
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11875
echo $ECHO_N "(cached) $ECHO_C" >&6
11877
lt_prog_compiler_pic_works_CXX=no
11878
ac_outfile=conftest.$ac_objext
11879
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11880
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11881
# Insert the option either (1) after the last *FLAGS variable, or
11882
# (2) before a word containing "conftest.", or (3) at the end.
11883
# Note that $ac_compile itself does not contain backslashes and begins
11884
# with a dollar sign (not a hyphen), so the echo should work correctly.
11885
# The option is referenced via a variable to avoid confusing sed.
11886
lt_compile=`echo "$ac_compile" | $SED \
11887
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11888
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11889
-e 's:$: $lt_compiler_flag:'`
11890
(eval echo "\"\$as_me:11890: $lt_compile\"" >&5)
11891
(eval "$lt_compile" 2>conftest.err)
11893
cat conftest.err >&5
11894
echo "$as_me:11894: \$? = $ac_status" >&5
11895
if (exit $ac_status) && test -s "$ac_outfile"; then
11896
# The compiler can only warn and ignore the option if not recognized
11897
# So say no if there are warnings
11898
if test ! -s conftest.err; then
11899
lt_prog_compiler_pic_works_CXX=yes
11905
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11906
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11908
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11909
case $lt_prog_compiler_pic_CXX in
11911
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11914
lt_prog_compiler_pic_CXX=
11915
lt_prog_compiler_can_build_shared_CXX=no
11920
# For platforms which do not support PIC, -DPIC is meaningless:
11922
lt_prog_compiler_pic_CXX=
11925
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11929
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11930
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11931
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11932
echo $ECHO_N "(cached) $ECHO_C" >&6
11934
lt_cv_prog_compiler_c_o_CXX=no
11935
$rm -r conftest 2>/dev/null
11939
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11941
lt_compiler_flag="-o out/conftest2.$ac_objext"
11942
# Insert the option either (1) after the last *FLAGS variable, or
11943
# (2) before a word containing "conftest.", or (3) at the end.
11944
# Note that $ac_compile itself does not contain backslashes and begins
11945
# with a dollar sign (not a hyphen), so the echo should work correctly.
11946
lt_compile=`echo "$ac_compile" | $SED \
11947
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11948
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11949
-e 's:$: $lt_compiler_flag:'`
11950
(eval echo "\"\$as_me:11950: $lt_compile\"" >&5)
11951
(eval "$lt_compile" 2>out/conftest.err)
11953
cat out/conftest.err >&5
11954
echo "$as_me:11954: \$? = $ac_status" >&5
11955
if (exit $ac_status) && test -s out/conftest2.$ac_objext
11957
# The compiler can only warn and ignore the option if not recognized
11958
# So say no if there are warnings
11959
if test ! -s out/conftest.err; then
11960
lt_cv_prog_compiler_c_o_CXX=yes
11965
# SGI C++ compiler will create directory out/ii_files/ for
11966
# template instantiation
11967
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11968
$rm out/* && rmdir out
11974
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11975
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11978
hard_links="nottested"
11979
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11980
# do not overwrite the value of need_locks provided by the user
11981
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11982
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11985
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11987
ln conftest.a conftest.b 2>&5 || hard_links=no
11988
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11989
echo "$as_me:$LINENO: result: $hard_links" >&5
11990
echo "${ECHO_T}$hard_links" >&6
11991
if test "$hard_links" = no; then
11992
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11993
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12000
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12001
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12003
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12006
# If we're using GNU nm, then we don't want the "-C" option.
12007
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12008
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12009
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'
12011
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'
12015
export_symbols_cmds_CXX="$ltdll_cmds"
12018
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12021
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12025
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12026
echo "${ECHO_T}$ld_shlibs_CXX" >&6
12027
test "$ld_shlibs_CXX" = no && can_build_shared=no
12029
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12030
if test "$GCC" = yes; then
12031
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12035
# Do we need to explicitly link libc?
12037
case "x$archive_cmds_need_lc_CXX" in
12039
# Assume -lc should be added
12040
archive_cmds_need_lc_CXX=yes
12042
if test "$enable_shared" = yes && test "$GCC" = yes; then
12043
case $archive_cmds_CXX in
12045
# FIXME: we may have to deal with multi-command sequences.
12048
# Test whether the compiler implicitly links with -lc since on some
12049
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12050
# to ld, don't add -lc before -lgcc.
12051
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12052
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12054
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12056
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12057
(eval $ac_compile) 2>&5
12059
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060
(exit $ac_status); } 2>conftest.err; then
12063
libobjs=conftest.$ac_objext
12065
wl=$lt_prog_compiler_wl_CXX
12071
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12072
allow_undefined_flag_CXX=
12073
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12074
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12076
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077
(exit $ac_status); }
12079
archive_cmds_need_lc_CXX=no
12081
archive_cmds_need_lc_CXX=yes
12083
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12085
cat conftest.err 1>&5
12088
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12089
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12096
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12097
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12098
library_names_spec=
12099
libname_spec='lib$name'
12103
postuninstall_cmds=
12107
shlibpath_overrides_runpath=unknown
12109
dynamic_linker="$host_os ld.so"
12110
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12111
if test "$GCC" = yes; then
12112
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12113
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12114
# if the path contains ";" then we assume it to be the separator
12115
# otherwise default to the standard path separator (i.e. ":") - it is
12116
# assumed that no part of a normal pathname contains ";" but that should
12117
# okay in the real world where ";" in dirpaths is itself problematic.
12118
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12120
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12123
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12125
need_lib_prefix=unknown
12126
hardcode_into_libs=no
12128
# when you set need_version to no, make sure it does not cause -set_version
12129
# flags to be left without arguments
12130
need_version=unknown
12135
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12136
shlibpath_var=LIBPATH
12138
# AIX 3 has no versioning support, so we append a major version to the name.
12139
soname_spec='${libname}${release}${shared_ext}$major'
12146
hardcode_into_libs=yes
12147
if test "$host_cpu" = ia64; then
12148
# AIX 5 supports IA64
12149
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12150
shlibpath_var=LD_LIBRARY_PATH
12152
# With GCC up to 2.95.x, collect2 would create an import file
12153
# for dependence libraries. The import file would start with
12154
# the line `#! .'. This would cause the generated library to
12155
# depend on `.', always an invalid library. This was fixed in
12156
# development snapshots of GCC prior to 3.0.
12158
aix4 | aix4.[01] | aix4.[01].*)
12159
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12161
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12164
can_build_shared=no
12168
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12169
# soname into executable. Probably we can add versioning support to
12170
# collect2, so additional links can be useful in future.
12171
if test "$aix_use_runtimelinking" = yes; then
12172
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12173
# instead of lib<name>.a to let people know that these are not
12174
# typical AIX shared libraries.
12175
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12177
# We preserve .a as extension for shared libraries through AIX4.2
12178
# and later when we are not doing run time linking.
12179
library_names_spec='${libname}${release}.a $libname.a'
12180
soname_spec='${libname}${release}${shared_ext}$major'
12182
shlibpath_var=LIBPATH
12187
library_names_spec='$libname.ixlibrary $libname.a'
12188
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12189
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'
12193
library_names_spec='${libname}${shared_ext}'
12194
dynamic_linker="$host_os ld.so"
12195
shlibpath_var=LIBRARY_PATH
12201
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12202
soname_spec='${libname}${release}${shared_ext}$major'
12203
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12204
shlibpath_var=LD_LIBRARY_PATH
12205
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12206
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12207
# the default ld.so.conf also contains /usr/contrib/lib and
12208
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12209
# libtool to hard-code these into programs
12212
cygwin* | mingw* | pw32*)
12213
version_type=windows
12218
case $GCC,$host_os in
12219
yes,cygwin* | yes,mingw* | yes,pw32*)
12220
library_names_spec='$libname.dll.a'
12221
# DLL is installed to $(libdir)/../bin by postinstall_cmds
12222
postinstall_cmds='base_file=`basename \${file}`~
12223
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12224
dldir=$destdir/`dirname \$dlpath`~
12225
test -d \$dldir || mkdir -p \$dldir~
12226
$install_prog $dir/$dlname \$dldir/$dlname'
12227
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12228
dlpath=$dir/\$dldll~
12230
shlibpath_overrides_runpath=yes
12234
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
12235
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12236
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12239
# MinGW DLLs use traditional 'lib' prefix
12240
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12241
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12242
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12243
# It is most probably a Windows format PATH printed by
12244
# mingw gcc, but we are running on Cygwin. Gcc prints its search
12245
# path with ; separators, and with drive letters. We can handle the
12246
# drive letters (cygwin fileutils understands them), so leave them,
12247
# especially as we might pass files found there to a mingw objdump,
12248
# which wouldn't understand a cygwinified path. Ahh.
12249
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12251
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12255
# pw32 DLLs use 'pw' prefix rather than 'lib'
12256
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12262
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12265
dynamic_linker='Win32 ld.exe'
12266
# FIXME: first we should search . and the directory the executable is in
12270
darwin* | rhapsody*)
12271
dynamic_linker="$host_os dyld"
12272
version_type=darwin
12275
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12276
soname_spec='${libname}${release}${major}$shared_ext'
12277
shlibpath_overrides_runpath=yes
12278
shlibpath_var=DYLD_LIBRARY_PATH
12279
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
12280
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12281
if test "$GCC" = yes; then
12282
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"`
12284
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12286
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12293
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12294
soname_spec='${libname}${release}${shared_ext}$major'
12295
shlibpath_var=LD_LIBRARY_PATH
12306
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12307
soname_spec='${libname}${release}${shared_ext}$major'
12308
shlibpath_var=LD_LIBRARY_PATH
12309
shlibpath_overrides_runpath=no
12310
hardcode_into_libs=yes
12311
dynamic_linker='GNU ld.so'
12315
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12316
version_type=freebsd-$objformat
12317
case $version_type in
12319
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12324
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12328
shlibpath_var=LD_LIBRARY_PATH
12331
shlibpath_overrides_runpath=yes
12333
freebsd3.01* | freebsdelf3.01*)
12334
shlibpath_overrides_runpath=yes
12335
hardcode_into_libs=yes
12338
shlibpath_overrides_runpath=no
12339
hardcode_into_libs=yes
12348
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12349
soname_spec='${libname}${release}${shared_ext}$major'
12350
shlibpath_var=LD_LIBRARY_PATH
12351
hardcode_into_libs=yes
12354
hpux9* | hpux10* | hpux11*)
12355
# Give a soname corresponding to the major version so that dld.sl refuses to
12356
# link against other versions.
12360
case "$host_cpu" in
12363
hardcode_into_libs=yes
12364
dynamic_linker="$host_os dld.so"
12365
shlibpath_var=LD_LIBRARY_PATH
12366
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12367
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12368
soname_spec='${libname}${release}${shared_ext}$major'
12369
if test "X$HPUX_IA64_MODE" = X32; then
12370
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12372
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12374
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12378
hardcode_into_libs=yes
12379
dynamic_linker="$host_os dld.sl"
12380
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12381
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12382
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12383
soname_spec='${libname}${release}${shared_ext}$major'
12384
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12385
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12389
dynamic_linker="$host_os dld.sl"
12390
shlibpath_var=SHLIB_PATH
12391
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12392
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12393
soname_spec='${libname}${release}${shared_ext}$major'
12396
# HP-UX runs *really* slowly unless shared libraries are mode 555.
12397
postinstall_cmds='chmod 555 $lib'
12400
irix5* | irix6* | nonstopux*)
12402
nonstopux*) version_type=nonstopux ;;
12404
if test "$lt_cv_prog_gnu_ld" = yes; then
12412
soname_spec='${libname}${release}${shared_ext}$major'
12413
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12415
irix5* | nonstopux*)
12416
libsuff= shlibsuff=
12419
case $LD in # libtool.m4 will add one of these switches to LD
12420
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12421
libsuff= shlibsuff= libmagic=32-bit;;
12422
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12423
libsuff=32 shlibsuff=N32 libmagic=N32;;
12424
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12425
libsuff=64 shlibsuff=64 libmagic=64-bit;;
12426
*) libsuff= shlibsuff= libmagic=never-match;;
12430
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12431
shlibpath_overrides_runpath=no
12432
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12433
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12434
hardcode_into_libs=yes
12437
# No shared lib support for Linux oldld, aout, or coff.
12438
linux*oldld* | linux*aout* | linux*coff*)
12442
# This must be Linux ELF.
12447
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12448
soname_spec='${libname}${release}${shared_ext}$major'
12449
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12450
shlibpath_var=LD_LIBRARY_PATH
12451
shlibpath_overrides_runpath=no
12452
# This implies no fast_install, which is unacceptable.
12453
# Some rework will be needed to allow for fast_install
12454
# before this can be enabled.
12455
hardcode_into_libs=yes
12457
# Append ld.so.conf contents to the search path
12458
if test -f /etc/ld.so.conf; then
12459
ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
12460
sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
12463
# We used to test for /lib/ld.so.1 and disable shared libraries on
12464
# powerpc, because MkLinux only supported shared libraries with the
12465
# GNU dynamic linker. Since this was broken with cross compilers,
12466
# most powerpc-linux boxes support dynamic linking these days and
12467
# people can always --disable-shared, the test was removed, and we
12468
# assume the GNU/Linux dynamic linker is in use.
12469
dynamic_linker='GNU/Linux ld.so'
12476
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12477
soname_spec='${libname}${release}${shared_ext}$major'
12478
shlibpath_var=LD_LIBRARY_PATH
12479
shlibpath_overrides_runpath=no
12480
hardcode_into_libs=yes
12481
dynamic_linker='GNU ld.so'
12488
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12489
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12490
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12491
dynamic_linker='NetBSD (a.out) ld.so'
12493
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12494
soname_spec='${libname}${release}${shared_ext}$major'
12495
dynamic_linker='NetBSD ld.elf_so'
12497
shlibpath_var=LD_LIBRARY_PATH
12498
shlibpath_overrides_runpath=yes
12499
hardcode_into_libs=yes
12504
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12505
shlibpath_var=LD_LIBRARY_PATH
12506
shlibpath_overrides_runpath=yes
12513
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12514
soname_spec='${libname}${release}${shared_ext}$major'
12515
shlibpath_var=LD_LIBRARY_PATH
12516
shlibpath_overrides_runpath=yes
12523
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12524
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12525
shlibpath_var=LD_LIBRARY_PATH
12526
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12528
openbsd2.[89] | openbsd2.[89].*)
12529
shlibpath_overrides_runpath=no
12532
shlibpath_overrides_runpath=yes
12536
shlibpath_overrides_runpath=yes
12541
libname_spec='$name'
12544
library_names_spec='$libname${shared_ext} $libname.a'
12545
dynamic_linker='OS/2 ld.exe'
12546
shlibpath_var=LIBPATH
12549
osf3* | osf4* | osf5*)
12553
soname_spec='${libname}${release}${shared_ext}$major'
12554
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12555
shlibpath_var=LD_LIBRARY_PATH
12556
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12557
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12562
soname_spec='${libname}${release}${shared_ext}$major'
12563
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12564
shlibpath_var=LD_LIBRARY_PATH
12571
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12572
soname_spec='${libname}${release}${shared_ext}$major'
12573
shlibpath_var=LD_LIBRARY_PATH
12574
shlibpath_overrides_runpath=yes
12575
hardcode_into_libs=yes
12576
# ldd complains unless libraries are executable
12577
postinstall_cmds='chmod +x $lib'
12582
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12583
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12584
shlibpath_var=LD_LIBRARY_PATH
12585
shlibpath_overrides_runpath=yes
12586
if test "$with_gnu_ld" = yes; then
12592
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12594
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12595
soname_spec='${libname}${release}${shared_ext}$major'
12596
shlibpath_var=LD_LIBRARY_PATH
12597
case $host_vendor in
12599
shlibpath_overrides_runpath=no
12601
export_dynamic_flag_spec='${wl}-Blargedynsym'
12602
runpath_var=LD_RUN_PATH
12610
shlibpath_overrides_runpath=no
12611
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12617
if test -d /usr/nec ;then
12619
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12620
soname_spec='$libname${shared_ext}.$major'
12621
shlibpath_var=LD_LIBRARY_PATH
12627
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12628
soname_spec='${libname}${release}${shared_ext}$major'
12629
shlibpath_var=LD_LIBRARY_PATH
12636
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12637
echo "${ECHO_T}$dynamic_linker" >&6
12638
test "$dynamic_linker" = no && can_build_shared=no
12640
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12641
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12642
hardcode_action_CXX=
12643
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12644
test -n "$runpath_var CXX" || \
12645
test "X$hardcode_automatic_CXX"="Xyes" ; then
12647
# We can hardcode non-existant directories.
12648
if test "$hardcode_direct_CXX" != no &&
12649
# If the only mechanism to avoid hardcoding is shlibpath_var, we
12650
# have to relink, otherwise we might link with an installed library
12651
# when we should be linking with a yet-to-be-installed one
12652
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12653
test "$hardcode_minus_L_CXX" != no; then
12654
# Linking always hardcodes the temporary library directory.
12655
hardcode_action_CXX=relink
12657
# We can link without hardcoding, and we can hardcode nonexisting dirs.
12658
hardcode_action_CXX=immediate
12661
# We cannot hardcode anything, or else we can only hardcode existing
12663
hardcode_action_CXX=unsupported
12665
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12666
echo "${ECHO_T}$hardcode_action_CXX" >&6
12668
if test "$hardcode_action_CXX" = relink; then
12669
# Fast installation is not supported
12670
enable_fast_install=no
12671
elif test "$shlibpath_overrides_runpath" = yes ||
12672
test "$enable_shared" = no; then
12673
# Fast installation is not necessary
12674
enable_fast_install=needless
12679
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12680
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12681
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12682
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12683
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12684
echo "$as_me:$LINENO: result: yes" >&5
12685
echo "${ECHO_T}yes" >&6
12687
# FIXME - insert some real tests, host_os isn't really good enough
12690
if test -n "$STRIP" ; then
12691
striplib="$STRIP -x"
12692
echo "$as_me:$LINENO: result: yes" >&5
12693
echo "${ECHO_T}yes" >&6
12695
echo "$as_me:$LINENO: result: no" >&5
12696
echo "${ECHO_T}no" >&6
12700
echo "$as_me:$LINENO: result: no" >&5
12701
echo "${ECHO_T}no" >&6
12706
if test "x$enable_dlopen" != xyes; then
12707
enable_dlopen=unknown
12708
enable_dlopen_self=unknown
12709
enable_dlopen_self_static=unknown
12716
lt_cv_dlopen="load_add_on"
12718
lt_cv_dlopen_self=yes
12722
lt_cv_dlopen="LoadLibrary"
12727
lt_cv_dlopen="dlopen"
12732
# if libdl is installed we need to link against it
12733
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12734
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12735
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12736
echo $ECHO_N "(cached) $ECHO_C" >&6
12738
ac_check_lib_save_LIBS=$LIBS
12740
cat >conftest.$ac_ext <<_ACEOF
12743
cat confdefs.h >>conftest.$ac_ext
12744
cat >>conftest.$ac_ext <<_ACEOF
12745
/* end confdefs.h. */
12747
/* Override any gcc2 internal prototype to avoid an error. */
12751
/* We use char because int might match the return type of a gcc2
12752
builtin and then its argument prototype would still apply. */
12762
rm -f conftest.$ac_objext conftest$ac_exeext
12763
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12764
(eval $ac_link) 2>conftest.er1
12766
grep -v '^ *+' conftest.er1 >conftest.err
12768
cat conftest.err >&5
12769
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770
(exit $ac_status); } &&
12771
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12772
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773
(eval $ac_try) 2>&5
12775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776
(exit $ac_status); }; } &&
12777
{ ac_try='test -s conftest$ac_exeext'
12778
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12779
(eval $ac_try) 2>&5
12781
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782
(exit $ac_status); }; }; then
12783
ac_cv_lib_dl_dlopen=yes
12785
echo "$as_me: failed program was:" >&5
12786
sed 's/^/| /' conftest.$ac_ext >&5
12788
ac_cv_lib_dl_dlopen=no
12790
rm -f conftest.err conftest.$ac_objext \
12791
conftest$ac_exeext conftest.$ac_ext
12792
LIBS=$ac_check_lib_save_LIBS
12794
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12795
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12796
if test $ac_cv_lib_dl_dlopen = yes; then
12797
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12800
lt_cv_dlopen="dyld"
12802
lt_cv_dlopen_self=yes
12809
echo "$as_me:$LINENO: checking for shl_load" >&5
12810
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12811
if test "${ac_cv_func_shl_load+set}" = set; then
12812
echo $ECHO_N "(cached) $ECHO_C" >&6
12814
cat >conftest.$ac_ext <<_ACEOF
12817
cat confdefs.h >>conftest.$ac_ext
12818
cat >>conftest.$ac_ext <<_ACEOF
12819
/* end confdefs.h. */
12820
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12821
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12822
#define shl_load innocuous_shl_load
12824
/* System header to define __stub macros and hopefully few prototypes,
12825
which can conflict with char shl_load (); below.
12826
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12827
<limits.h> exists even on freestanding compilers. */
12830
# include <limits.h>
12832
# include <assert.h>
12837
/* Override any gcc2 internal prototype to avoid an error. */
12842
/* We use char because int might match the return type of a gcc2
12843
builtin and then its argument prototype would still apply. */
12845
/* The GNU C library defines this for functions which it implements
12846
to always fail with ENOSYS. Some functions are actually named
12847
something starting with __ and the normal name is an alias. */
12848
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12851
char (*f) () = shl_load;
12860
return f != shl_load;
12865
rm -f conftest.$ac_objext conftest$ac_exeext
12866
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12867
(eval $ac_link) 2>conftest.er1
12869
grep -v '^ *+' conftest.er1 >conftest.err
12871
cat conftest.err >&5
12872
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873
(exit $ac_status); } &&
12874
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12875
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12876
(eval $ac_try) 2>&5
12878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879
(exit $ac_status); }; } &&
12880
{ ac_try='test -s conftest$ac_exeext'
12881
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12882
(eval $ac_try) 2>&5
12884
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885
(exit $ac_status); }; }; then
12886
ac_cv_func_shl_load=yes
12888
echo "$as_me: failed program was:" >&5
12889
sed 's/^/| /' conftest.$ac_ext >&5
12891
ac_cv_func_shl_load=no
12893
rm -f conftest.err conftest.$ac_objext \
12894
conftest$ac_exeext conftest.$ac_ext
12896
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12897
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12898
if test $ac_cv_func_shl_load = yes; then
12899
lt_cv_dlopen="shl_load"
12901
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12902
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12903
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12904
echo $ECHO_N "(cached) $ECHO_C" >&6
12906
ac_check_lib_save_LIBS=$LIBS
12908
cat >conftest.$ac_ext <<_ACEOF
12911
cat confdefs.h >>conftest.$ac_ext
12912
cat >>conftest.$ac_ext <<_ACEOF
12913
/* end confdefs.h. */
12915
/* Override any gcc2 internal prototype to avoid an error. */
12919
/* We use char because int might match the return type of a gcc2
12920
builtin and then its argument prototype would still apply. */
12930
rm -f conftest.$ac_objext conftest$ac_exeext
12931
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12932
(eval $ac_link) 2>conftest.er1
12934
grep -v '^ *+' conftest.er1 >conftest.err
12936
cat conftest.err >&5
12937
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938
(exit $ac_status); } &&
12939
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12940
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941
(eval $ac_try) 2>&5
12943
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944
(exit $ac_status); }; } &&
12945
{ ac_try='test -s conftest$ac_exeext'
12946
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12947
(eval $ac_try) 2>&5
12949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950
(exit $ac_status); }; }; then
12951
ac_cv_lib_dld_shl_load=yes
12953
echo "$as_me: failed program was:" >&5
12954
sed 's/^/| /' conftest.$ac_ext >&5
12956
ac_cv_lib_dld_shl_load=no
12958
rm -f conftest.err conftest.$ac_objext \
12959
conftest$ac_exeext conftest.$ac_ext
12960
LIBS=$ac_check_lib_save_LIBS
12962
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12963
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12964
if test $ac_cv_lib_dld_shl_load = yes; then
12965
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12967
echo "$as_me:$LINENO: checking for dlopen" >&5
12968
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12969
if test "${ac_cv_func_dlopen+set}" = set; then
12970
echo $ECHO_N "(cached) $ECHO_C" >&6
12972
cat >conftest.$ac_ext <<_ACEOF
12975
cat confdefs.h >>conftest.$ac_ext
12976
cat >>conftest.$ac_ext <<_ACEOF
12977
/* end confdefs.h. */
12978
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12979
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12980
#define dlopen innocuous_dlopen
12982
/* System header to define __stub macros and hopefully few prototypes,
12983
which can conflict with char dlopen (); below.
12984
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12985
<limits.h> exists even on freestanding compilers. */
12988
# include <limits.h>
12990
# include <assert.h>
12995
/* Override any gcc2 internal prototype to avoid an error. */
13000
/* We use char because int might match the return type of a gcc2
13001
builtin and then its argument prototype would still apply. */
13003
/* The GNU C library defines this for functions which it implements
13004
to always fail with ENOSYS. Some functions are actually named
13005
something starting with __ and the normal name is an alias. */
13006
#if defined (__stub_dlopen) || defined (__stub___dlopen)
13009
char (*f) () = dlopen;
13018
return f != dlopen;
13023
rm -f conftest.$ac_objext conftest$ac_exeext
13024
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13025
(eval $ac_link) 2>conftest.er1
13027
grep -v '^ *+' conftest.er1 >conftest.err
13029
cat conftest.err >&5
13030
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031
(exit $ac_status); } &&
13032
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13033
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13034
(eval $ac_try) 2>&5
13036
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037
(exit $ac_status); }; } &&
13038
{ ac_try='test -s conftest$ac_exeext'
13039
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13040
(eval $ac_try) 2>&5
13042
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043
(exit $ac_status); }; }; then
13044
ac_cv_func_dlopen=yes
13046
echo "$as_me: failed program was:" >&5
13047
sed 's/^/| /' conftest.$ac_ext >&5
13049
ac_cv_func_dlopen=no
13051
rm -f conftest.err conftest.$ac_objext \
13052
conftest$ac_exeext conftest.$ac_ext
13054
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13055
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13056
if test $ac_cv_func_dlopen = yes; then
13057
lt_cv_dlopen="dlopen"
13059
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13060
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13061
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13062
echo $ECHO_N "(cached) $ECHO_C" >&6
13064
ac_check_lib_save_LIBS=$LIBS
13066
cat >conftest.$ac_ext <<_ACEOF
13069
cat confdefs.h >>conftest.$ac_ext
13070
cat >>conftest.$ac_ext <<_ACEOF
13071
/* end confdefs.h. */
13073
/* Override any gcc2 internal prototype to avoid an error. */
13077
/* We use char because int might match the return type of a gcc2
13078
builtin and then its argument prototype would still apply. */
13088
rm -f conftest.$ac_objext conftest$ac_exeext
13089
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13090
(eval $ac_link) 2>conftest.er1
13092
grep -v '^ *+' conftest.er1 >conftest.err
13094
cat conftest.err >&5
13095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096
(exit $ac_status); } &&
13097
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13098
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13099
(eval $ac_try) 2>&5
13101
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102
(exit $ac_status); }; } &&
13103
{ ac_try='test -s conftest$ac_exeext'
13104
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105
(eval $ac_try) 2>&5
13107
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108
(exit $ac_status); }; }; then
13109
ac_cv_lib_dl_dlopen=yes
13111
echo "$as_me: failed program was:" >&5
13112
sed 's/^/| /' conftest.$ac_ext >&5
13114
ac_cv_lib_dl_dlopen=no
13116
rm -f conftest.err conftest.$ac_objext \
13117
conftest$ac_exeext conftest.$ac_ext
13118
LIBS=$ac_check_lib_save_LIBS
13120
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13121
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13122
if test $ac_cv_lib_dl_dlopen = yes; then
13123
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13125
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13126
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13127
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13128
echo $ECHO_N "(cached) $ECHO_C" >&6
13130
ac_check_lib_save_LIBS=$LIBS
13131
LIBS="-lsvld $LIBS"
13132
cat >conftest.$ac_ext <<_ACEOF
13135
cat confdefs.h >>conftest.$ac_ext
13136
cat >>conftest.$ac_ext <<_ACEOF
13137
/* end confdefs.h. */
13139
/* Override any gcc2 internal prototype to avoid an error. */
13143
/* We use char because int might match the return type of a gcc2
13144
builtin and then its argument prototype would still apply. */
13154
rm -f conftest.$ac_objext conftest$ac_exeext
13155
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13156
(eval $ac_link) 2>conftest.er1
13158
grep -v '^ *+' conftest.er1 >conftest.err
13160
cat conftest.err >&5
13161
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162
(exit $ac_status); } &&
13163
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13164
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13165
(eval $ac_try) 2>&5
13167
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168
(exit $ac_status); }; } &&
13169
{ ac_try='test -s conftest$ac_exeext'
13170
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13171
(eval $ac_try) 2>&5
13173
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174
(exit $ac_status); }; }; then
13175
ac_cv_lib_svld_dlopen=yes
13177
echo "$as_me: failed program was:" >&5
13178
sed 's/^/| /' conftest.$ac_ext >&5
13180
ac_cv_lib_svld_dlopen=no
13182
rm -f conftest.err conftest.$ac_objext \
13183
conftest$ac_exeext conftest.$ac_ext
13184
LIBS=$ac_check_lib_save_LIBS
13186
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13187
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13188
if test $ac_cv_lib_svld_dlopen = yes; then
13189
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13191
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13192
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13193
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13194
echo $ECHO_N "(cached) $ECHO_C" >&6
13196
ac_check_lib_save_LIBS=$LIBS
13198
cat >conftest.$ac_ext <<_ACEOF
13201
cat confdefs.h >>conftest.$ac_ext
13202
cat >>conftest.$ac_ext <<_ACEOF
13203
/* end confdefs.h. */
13205
/* Override any gcc2 internal prototype to avoid an error. */
13209
/* We use char because int might match the return type of a gcc2
13210
builtin and then its argument prototype would still apply. */
13220
rm -f conftest.$ac_objext conftest$ac_exeext
13221
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13222
(eval $ac_link) 2>conftest.er1
13224
grep -v '^ *+' conftest.er1 >conftest.err
13226
cat conftest.err >&5
13227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228
(exit $ac_status); } &&
13229
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13230
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13231
(eval $ac_try) 2>&5
13233
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234
(exit $ac_status); }; } &&
13235
{ ac_try='test -s conftest$ac_exeext'
13236
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13237
(eval $ac_try) 2>&5
13239
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240
(exit $ac_status); }; }; then
13241
ac_cv_lib_dld_dld_link=yes
13243
echo "$as_me: failed program was:" >&5
13244
sed 's/^/| /' conftest.$ac_ext >&5
13246
ac_cv_lib_dld_dld_link=no
13248
rm -f conftest.err conftest.$ac_objext \
13249
conftest$ac_exeext conftest.$ac_ext
13250
LIBS=$ac_check_lib_save_LIBS
13252
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13253
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13254
if test $ac_cv_lib_dld_dld_link = yes; then
13255
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13276
if test "x$lt_cv_dlopen" != xno; then
13282
case $lt_cv_dlopen in
13284
save_CPPFLAGS="$CPPFLAGS"
13285
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13287
save_LDFLAGS="$LDFLAGS"
13288
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13291
LIBS="$lt_cv_dlopen_libs $LIBS"
13293
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13294
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13295
if test "${lt_cv_dlopen_self+set}" = set; then
13296
echo $ECHO_N "(cached) $ECHO_C" >&6
13298
if test "$cross_compiling" = yes; then :
13299
lt_cv_dlopen_self=cross
13301
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13302
lt_status=$lt_dlunknown
13303
cat > conftest.$ac_ext <<EOF
13304
#line 13304 "configure"
13305
#include "confdefs.h"
13314
# define LT_DLGLOBAL RTLD_GLOBAL
13317
# define LT_DLGLOBAL DL_GLOBAL
13319
# define LT_DLGLOBAL 0
13323
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13324
find out it does not work in some platform. */
13325
#ifndef LT_DLLAZY_OR_NOW
13327
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13330
# define LT_DLLAZY_OR_NOW DL_LAZY
13333
# define LT_DLLAZY_OR_NOW RTLD_NOW
13336
# define LT_DLLAZY_OR_NOW DL_NOW
13338
# define LT_DLLAZY_OR_NOW 0
13346
extern "C" void exit (int);
13349
void fnord() { int i=42;}
13352
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13353
int status = $lt_dlunknown;
13357
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13358
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13359
/* dlclose (self); */
13365
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13366
(eval $ac_link) 2>&5
13368
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13370
(./conftest; exit; ) 2>/dev/null
13372
case x$lt_status in
13373
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13374
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13375
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13378
# compilation failed
13379
lt_cv_dlopen_self=no
13386
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13387
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13389
if test "x$lt_cv_dlopen_self" = xyes; then
13390
LDFLAGS="$LDFLAGS $link_static_flag"
13391
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13392
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13393
if test "${lt_cv_dlopen_self_static+set}" = set; then
13394
echo $ECHO_N "(cached) $ECHO_C" >&6
13396
if test "$cross_compiling" = yes; then :
13397
lt_cv_dlopen_self_static=cross
13399
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13400
lt_status=$lt_dlunknown
13401
cat > conftest.$ac_ext <<EOF
13402
#line 13402 "configure"
13403
#include "confdefs.h"
13412
# define LT_DLGLOBAL RTLD_GLOBAL
13415
# define LT_DLGLOBAL DL_GLOBAL
13417
# define LT_DLGLOBAL 0
13421
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13422
find out it does not work in some platform. */
13423
#ifndef LT_DLLAZY_OR_NOW
13425
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13428
# define LT_DLLAZY_OR_NOW DL_LAZY
13431
# define LT_DLLAZY_OR_NOW RTLD_NOW
13434
# define LT_DLLAZY_OR_NOW DL_NOW
13436
# define LT_DLLAZY_OR_NOW 0
13444
extern "C" void exit (int);
13447
void fnord() { int i=42;}
13450
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13451
int status = $lt_dlunknown;
13455
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13456
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13457
/* dlclose (self); */
13463
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13464
(eval $ac_link) 2>&5
13466
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13468
(./conftest; exit; ) 2>/dev/null
13470
case x$lt_status in
13471
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13472
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13473
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13476
# compilation failed
13477
lt_cv_dlopen_self_static=no
13484
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13485
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13488
CPPFLAGS="$save_CPPFLAGS"
13489
LDFLAGS="$save_LDFLAGS"
13494
case $lt_cv_dlopen_self in
13495
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13496
*) enable_dlopen_self=unknown ;;
13499
case $lt_cv_dlopen_self_static in
13500
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13501
*) enable_dlopen_self_static=unknown ;;
13506
# The else clause should only fire when bootstrapping the
13507
# libtool distribution, otherwise you forgot to ship ltmain.sh
13508
# with your package, and you will get complaints that there are
13509
# no rules to generate ltmain.sh.
13510
if test -f "$ltmain"; then
13511
# See if we are running on zsh, and set the options which allow our commands through
13512
# without removal of \ escapes.
13513
if test -n "${ZSH_VERSION+set}" ; then
13514
setopt NO_GLOB_SUBST
13516
# Now quote all the things that may contain metacharacters while being
13517
# careful not to overquote the AC_SUBSTed values. We take copies of the
13518
# variables and quote the copies for generation of the libtool script.
13519
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13521
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13522
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13523
deplibs_check_method reload_flag reload_cmds need_locks \
13524
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13525
lt_cv_sys_global_symbol_to_c_name_address \
13526
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13527
old_postinstall_cmds old_postuninstall_cmds \
13531
lt_prog_compiler_wl_CXX \
13532
lt_prog_compiler_pic_CXX \
13533
lt_prog_compiler_static_CXX \
13534
lt_prog_compiler_no_builtin_flag_CXX \
13535
export_dynamic_flag_spec_CXX \
13536
thread_safe_flag_spec_CXX \
13537
whole_archive_flag_spec_CXX \
13538
enable_shared_with_static_runtimes_CXX \
13539
old_archive_cmds_CXX \
13540
old_archive_from_new_cmds_CXX \
13541
predep_objects_CXX \
13542
postdep_objects_CXX \
13545
compiler_lib_search_path_CXX \
13547
archive_expsym_cmds_CXX \
13548
postinstall_cmds_CXX \
13549
postuninstall_cmds_CXX \
13550
old_archive_from_expsyms_cmds_CXX \
13551
allow_undefined_flag_CXX \
13552
no_undefined_flag_CXX \
13553
export_symbols_cmds_CXX \
13554
hardcode_libdir_flag_spec_CXX \
13555
hardcode_libdir_flag_spec_ld_CXX \
13556
hardcode_libdir_separator_CXX \
13557
hardcode_automatic_CXX \
13559
module_expsym_cmds_CXX \
13560
lt_cv_prog_compiler_c_o_CXX \
13561
exclude_expsyms_CXX \
13562
include_expsyms_CXX; do
13565
old_archive_cmds_CXX | \
13566
old_archive_from_new_cmds_CXX | \
13567
archive_cmds_CXX | \
13568
archive_expsym_cmds_CXX | \
13569
module_cmds_CXX | \
13570
module_expsym_cmds_CXX | \
13571
old_archive_from_expsyms_cmds_CXX | \
13572
export_symbols_cmds_CXX | \
13573
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13574
postinstall_cmds | postuninstall_cmds | \
13575
old_postinstall_cmds | old_postuninstall_cmds | \
13576
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13577
# Double-quote double-evaled strings.
13578
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13581
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13587
*'\$0 --fallback-echo"')
13588
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13594
cat <<__EOF__ >> "$cfgfile"
13595
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13597
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13599
# Shell to use when invoking shell scripts.
13602
# Whether or not to build shared libraries.
13603
build_libtool_libs=$enable_shared
13605
# Whether or not to build static libraries.
13606
build_old_libs=$enable_static
13608
# Whether or not to add -lc for building shared libraries.
13609
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13611
# Whether or not to disallow shared libs when runtime libs are static
13612
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13614
# Whether or not to optimize for fast installation.
13615
fast_install=$enable_fast_install
13618
host_alias=$host_alias
13621
# An echo program that does not interpret backslashes.
13626
AR_FLAGS=$lt_AR_FLAGS
13631
# A language-specific compiler.
13632
CC=$lt_compiler_CXX
13634
# Is the compiler the GNU C compiler?
13640
# The linker used to build libraries.
13643
# Whether we need hard or soft links.
13646
# A BSD-compatible nm program.
13649
# A symbol stripping program
13652
# Used to examine libraries when file_magic_cmd begins "file"
13653
MAGIC_CMD=$MAGIC_CMD
13655
# Used on cygwin: DLL creation program.
13658
# Used on cygwin: object dumper.
13661
# Used on cygwin: assembler.
13664
# The name of the directory that contains temporary libtool files.
13667
# How to create reloadable object files.
13668
reload_flag=$lt_reload_flag
13669
reload_cmds=$lt_reload_cmds
13671
# How to pass a linker flag through the compiler.
13672
wl=$lt_lt_prog_compiler_wl_CXX
13674
# Object file suffix (normally "o").
13675
objext="$ac_objext"
13677
# Old archive suffix (normally "a").
13680
# Shared library suffix (normally ".so").
13683
# Executable file suffix (normally "").
13686
# Additional compiler flags for building library objects.
13687
pic_flag=$lt_lt_prog_compiler_pic_CXX
13690
# What is the maximum length of a command?
13691
max_cmd_len=$lt_cv_sys_max_cmd_len
13693
# Does compiler simultaneously support -c and -o options?
13694
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13696
# Must we lock files when doing compilation ?
13697
need_locks=$lt_need_locks
13699
# Do we need the lib prefix for modules?
13700
need_lib_prefix=$need_lib_prefix
13702
# Do we need a version for libraries?
13703
need_version=$need_version
13705
# Whether dlopen is supported.
13706
dlopen_support=$enable_dlopen
13708
# Whether dlopen of programs is supported.
13709
dlopen_self=$enable_dlopen_self
13711
# Whether dlopen of statically linked programs is supported.
13712
dlopen_self_static=$enable_dlopen_self_static
13714
# Compiler flag to prevent dynamic linking.
13715
link_static_flag=$lt_lt_prog_compiler_static_CXX
13717
# Compiler flag to turn off builtin functions.
13718
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13720
# Compiler flag to allow reflexive dlopens.
13721
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13723
# Compiler flag to generate shared objects directly from archives.
13724
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13726
# Compiler flag to generate thread-safe objects.
13727
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13729
# Library versioning type.
13730
version_type=$version_type
13732
# Format of library name prefix.
13733
libname_spec=$lt_libname_spec
13735
# List of archive names. First name is the real one, the rest are links.
13736
# The last name is the one that the linker finds with -lNAME.
13737
library_names_spec=$lt_library_names_spec
13739
# The coded name of the library, if different from the real name.
13740
soname_spec=$lt_soname_spec
13742
# Commands used to build and install an old-style archive.
13744
old_archive_cmds=$lt_old_archive_cmds_CXX
13745
old_postinstall_cmds=$lt_old_postinstall_cmds
13746
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13748
# Create an old-style archive from a shared archive.
13749
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13751
# Create a temporary old-style archive to link instead of a shared archive.
13752
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13754
# Commands used to build and install a shared archive.
13755
archive_cmds=$lt_archive_cmds_CXX
13756
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13757
postinstall_cmds=$lt_postinstall_cmds
13758
postuninstall_cmds=$lt_postuninstall_cmds
13760
# Commands used to build a loadable module (assumed same as above if empty)
13761
module_cmds=$lt_module_cmds_CXX
13762
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13764
# Commands to strip libraries.
13765
old_striplib=$lt_old_striplib
13766
striplib=$lt_striplib
13768
# Dependencies to place before the objects being linked to create a
13770
predep_objects=$lt_predep_objects_CXX
13772
# Dependencies to place after the objects being linked to create a
13774
postdep_objects=$lt_postdep_objects_CXX
13776
# Dependencies to place before the objects being linked to create a
13778
predeps=$lt_predeps_CXX
13780
# Dependencies to place after the objects being linked to create a
13782
postdeps=$lt_postdeps_CXX
13784
# The library search path used internally by the compiler when linking
13785
# a shared library.
13786
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13788
# Method to check whether dependent libraries are shared objects.
13789
deplibs_check_method=$lt_deplibs_check_method
13791
# Command to use when deplibs_check_method == file_magic.
13792
file_magic_cmd=$lt_file_magic_cmd
13794
# Flag that allows shared libraries with undefined symbols to be built.
13795
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13797
# Flag that forces no undefined symbols.
13798
no_undefined_flag=$lt_no_undefined_flag_CXX
13800
# Commands used to finish a libtool library installation in a directory.
13801
finish_cmds=$lt_finish_cmds
13803
# Same as above, but a single script fragment to be evaled but not shown.
13804
finish_eval=$lt_finish_eval
13806
# Take the output of nm and produce a listing of raw symbols and C names.
13807
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13809
# Transform the output of nm in a proper C declaration
13810
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13812
# Transform the output of nm in a C name address pair
13813
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13815
# This is the shared library runtime path variable.
13816
runpath_var=$runpath_var
13818
# This is the shared library path variable.
13819
shlibpath_var=$shlibpath_var
13821
# Is shlibpath searched before the hard-coded library search path?
13822
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13824
# How to hardcode a shared library path into an executable.
13825
hardcode_action=$hardcode_action_CXX
13827
# Whether we should hardcode library paths into libraries.
13828
hardcode_into_libs=$hardcode_into_libs
13830
# Flag to hardcode \$libdir into a binary during linking.
13831
# This must work even if \$libdir does not exist.
13832
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13834
# If ld is used when linking, flag to hardcode \$libdir into
13835
# a binary during linking. This must work even if \$libdir does
13837
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13839
# Whether we need a single -rpath flag with a separated argument.
13840
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13842
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13843
# resulting binary.
13844
hardcode_direct=$hardcode_direct_CXX
13846
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13847
# resulting binary.
13848
hardcode_minus_L=$hardcode_minus_L_CXX
13850
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13851
# the resulting binary.
13852
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13854
# Set to yes if building a shared library automatically hardcodes DIR into the library
13855
# and all subsequent libraries and executables linked against it.
13856
hardcode_automatic=$hardcode_automatic_CXX
13858
# Variables whose values should be saved in libtool wrapper scripts and
13859
# restored at relink time.
13860
variables_saved_for_relink="$variables_saved_for_relink"
13862
# Whether libtool must link a program against all its dependency libraries.
13863
link_all_deplibs=$link_all_deplibs_CXX
13865
# Compile-time system search path for libraries
13866
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13868
# Run-time system search path for libraries
13869
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13871
# Fix the shell variable \$srcfile for the compiler.
13872
fix_srcfile_path="$fix_srcfile_path_CXX"
13874
# Set to yes if exported symbols are required.
13875
always_export_symbols=$always_export_symbols_CXX
13877
# The commands to list exported symbols.
13878
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13880
# The commands to extract the exported symbol list from a shared archive.
13881
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13883
# Symbols that should not be listed in the preloaded symbols.
13884
exclude_expsyms=$lt_exclude_expsyms_CXX
13886
# Symbols that must always be exported.
13887
include_expsyms=$lt_include_expsyms_CXX
13889
# ### END LIBTOOL TAG CONFIG: $tagname
13895
# If there is no Makefile yet, we rely on a make rule to execute
13896
# `config.status --recheck' to rerun these tests and create the
13897
# libtool script then.
13898
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13899
if test -f "$ltmain_in"; then
13900
test -f Makefile && make "$ltmain"
13906
ac_cpp='$CPP $CPPFLAGS'
13907
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13908
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13909
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13915
with_gnu_ldcxx=$with_gnu_ld
13916
with_gnu_ld=$lt_save_with_gnu_ld
13917
lt_cv_path_LDCXX=$lt_cv_path_LD
13918
lt_cv_path_LD=$lt_save_path_LD
13919
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13920
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13928
if test -n "$F77" && test "X$F77" != "Xno"; then
13931
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13932
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13933
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13936
archive_cmds_need_lc_F77=no
13937
allow_undefined_flag_F77=
13938
always_export_symbols_F77=no
13939
archive_expsym_cmds_F77=
13940
export_dynamic_flag_spec_F77=
13941
hardcode_direct_F77=no
13942
hardcode_libdir_flag_spec_F77=
13943
hardcode_libdir_flag_spec_ld_F77=
13944
hardcode_libdir_separator_F77=
13945
hardcode_minus_L_F77=no
13946
hardcode_automatic_F77=no
13948
module_expsym_cmds_F77=
13949
link_all_deplibs_F77=unknown
13950
old_archive_cmds_F77=$old_archive_cmds
13951
no_undefined_flag_F77=
13952
whole_archive_flag_spec_F77=
13953
enable_shared_with_static_runtimes_F77=no
13955
# Source file extension for f77 test sources.
13958
# Object file extension for compiled f77 test sources.
13962
# Code to be used in simple compile tests
13963
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13965
# Code to be used in simple link tests
13966
lt_simple_link_test_code=" program t\n end\n"
13968
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13970
# If no C compiler was specified, use CC.
13973
# Allow CC to be a program name with arguments.
13977
# Allow CC to be a program name with arguments.
13982
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13984
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13985
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13986
echo "$as_me:$LINENO: result: $can_build_shared" >&5
13987
echo "${ECHO_T}$can_build_shared" >&6
13989
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13990
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13991
test "$can_build_shared" = "no" && enable_shared=no
13993
# On AIX, shared libraries and static libraries use the same namespace, and
13994
# are all built from PIC.
13997
test "$enable_shared" = yes && enable_static=no
13998
if test -n "$RANLIB"; then
13999
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14000
postinstall_cmds='$RANLIB $lib'
14004
test "$enable_shared" = yes && enable_static=no
14007
echo "$as_me:$LINENO: result: $enable_shared" >&5
14008
echo "${ECHO_T}$enable_shared" >&6
14010
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14011
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14012
# Make sure either enable_shared or enable_static is yes.
14013
test "$enable_shared" = yes || enable_static=yes
14014
echo "$as_me:$LINENO: result: $enable_static" >&5
14015
echo "${ECHO_T}$enable_static" >&6
14017
test "$ld_shlibs_F77" = no && can_build_shared=no
14022
lt_prog_compiler_wl_F77=
14023
lt_prog_compiler_pic_F77=
14024
lt_prog_compiler_static_F77=
14026
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14027
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14029
if test "$GCC" = yes; then
14030
lt_prog_compiler_wl_F77='-Wl,'
14031
lt_prog_compiler_static_F77='-static'
14035
# All AIX code is PIC.
14036
if test "$host_cpu" = ia64; then
14037
# AIX 5 now supports IA64 processor
14038
lt_prog_compiler_static_F77='-Bstatic'
14043
# FIXME: we need at least 68020 code to build shared libraries, but
14044
# adding the `-m68020' flag to GCC prevents building anything better,
14046
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14049
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14050
# PIC is the default for these OSes.
14053
mingw* | pw32* | os2*)
14054
# This hack is so that the source file can tell whether it is being
14055
# built for inclusion in a dll (and should export symbols for example).
14056
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14059
darwin* | rhapsody*)
14060
# PIC is the default on this platform
14061
# Common symbols not allowed in MH_DYLIB files
14062
lt_prog_compiler_pic_F77='-fno-common'
14066
# Just because we use GCC doesn't mean we suddenly get shared libraries
14067
# on systems that don't support them.
14068
lt_prog_compiler_can_build_shared_F77=no
14073
if test -d /usr/nec; then
14074
lt_prog_compiler_pic_F77=-Kconform_pic
14079
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14080
# not for PA HP-UX.
14081
case "$host_cpu" in
14086
lt_prog_compiler_pic_F77='-fPIC'
14092
lt_prog_compiler_pic_F77='-fPIC'
14096
# PORTME Check for flag to pass linker flags through the system compiler.
14099
lt_prog_compiler_wl_F77='-Wl,'
14100
if test "$host_cpu" = ia64; then
14101
# AIX 5 now supports IA64 processor
14102
lt_prog_compiler_static_F77='-Bstatic'
14104
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14108
mingw* | pw32* | os2*)
14109
# This hack is so that the source file can tell whether it is being
14110
# built for inclusion in a dll (and should export symbols for example).
14111
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14114
hpux9* | hpux10* | hpux11*)
14115
lt_prog_compiler_wl_F77='-Wl,'
14116
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14117
# not for PA HP-UX.
14118
case "$host_cpu" in
14123
lt_prog_compiler_pic_F77='+Z'
14126
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14127
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14130
irix5* | irix6* | nonstopux*)
14131
lt_prog_compiler_wl_F77='-Wl,'
14132
# PIC (with -KPIC) is the default.
14133
lt_prog_compiler_static_F77='-non_shared'
14137
lt_prog_compiler_pic_F77='-KPIC'
14138
lt_prog_compiler_static_F77='-Bstatic'
14144
lt_prog_compiler_wl_F77='-Wl,'
14145
lt_prog_compiler_pic_F77='-KPIC'
14146
lt_prog_compiler_static_F77='-static'
14149
lt_prog_compiler_wl_F77='-Wl,'
14150
# All Alpha code is PIC.
14151
lt_prog_compiler_static_F77='-non_shared'
14156
osf3* | osf4* | osf5*)
14157
lt_prog_compiler_wl_F77='-Wl,'
14158
# All OSF/1 code is PIC.
14159
lt_prog_compiler_static_F77='-non_shared'
14163
lt_prog_compiler_pic_F77='-Kpic'
14164
lt_prog_compiler_static_F77='-dn'
14168
lt_prog_compiler_wl_F77='-Wl,'
14169
lt_prog_compiler_pic_F77='-KPIC'
14170
lt_prog_compiler_static_F77='-Bstatic'
14174
lt_prog_compiler_wl_F77='-Qoption ld '
14175
lt_prog_compiler_pic_F77='-PIC'
14176
lt_prog_compiler_static_F77='-Bstatic'
14179
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14180
lt_prog_compiler_wl_F77='-Wl,'
14181
lt_prog_compiler_pic_F77='-KPIC'
14182
lt_prog_compiler_static_F77='-Bstatic'
14186
if test -d /usr/nec ;then
14187
lt_prog_compiler_pic_F77='-Kconform_pic'
14188
lt_prog_compiler_static_F77='-Bstatic'
14193
lt_prog_compiler_pic_F77='-pic'
14194
lt_prog_compiler_static_F77='-Bstatic'
14198
lt_prog_compiler_can_build_shared_F77=no
14203
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14204
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14207
# Check to make sure the PIC flag actually works.
14209
if test -n "$lt_prog_compiler_pic_F77"; then
14211
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14212
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14213
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14214
echo $ECHO_N "(cached) $ECHO_C" >&6
14216
lt_prog_compiler_pic_works_F77=no
14217
ac_outfile=conftest.$ac_objext
14218
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14219
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14220
# Insert the option either (1) after the last *FLAGS variable, or
14221
# (2) before a word containing "conftest.", or (3) at the end.
14222
# Note that $ac_compile itself does not contain backslashes and begins
14223
# with a dollar sign (not a hyphen), so the echo should work correctly.
14224
# The option is referenced via a variable to avoid confusing sed.
14225
lt_compile=`echo "$ac_compile" | $SED \
14226
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14227
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14228
-e 's:$: $lt_compiler_flag:'`
14229
(eval echo "\"\$as_me:14229: $lt_compile\"" >&5)
14230
(eval "$lt_compile" 2>conftest.err)
14232
cat conftest.err >&5
14233
echo "$as_me:14233: \$? = $ac_status" >&5
14234
if (exit $ac_status) && test -s "$ac_outfile"; then
14235
# The compiler can only warn and ignore the option if not recognized
14236
# So say no if there are warnings
14237
if test ! -s conftest.err; then
14238
lt_prog_compiler_pic_works_F77=yes
14244
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14245
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14247
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14248
case $lt_prog_compiler_pic_F77 in
14250
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14253
lt_prog_compiler_pic_F77=
14254
lt_prog_compiler_can_build_shared_F77=no
14259
# For platforms which do not support PIC, -DPIC is meaningless:
14261
lt_prog_compiler_pic_F77=
14264
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14268
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14269
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14270
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14271
echo $ECHO_N "(cached) $ECHO_C" >&6
14273
lt_cv_prog_compiler_c_o_F77=no
14274
$rm -r conftest 2>/dev/null
14278
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14280
lt_compiler_flag="-o out/conftest2.$ac_objext"
14281
# Insert the option either (1) after the last *FLAGS variable, or
14282
# (2) before a word containing "conftest.", or (3) at the end.
14283
# Note that $ac_compile itself does not contain backslashes and begins
14284
# with a dollar sign (not a hyphen), so the echo should work correctly.
14285
lt_compile=`echo "$ac_compile" | $SED \
14286
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14287
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14288
-e 's:$: $lt_compiler_flag:'`
14289
(eval echo "\"\$as_me:14289: $lt_compile\"" >&5)
14290
(eval "$lt_compile" 2>out/conftest.err)
14292
cat out/conftest.err >&5
14293
echo "$as_me:14293: \$? = $ac_status" >&5
14294
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14296
# The compiler can only warn and ignore the option if not recognized
14297
# So say no if there are warnings
14298
if test ! -s out/conftest.err; then
14299
lt_cv_prog_compiler_c_o_F77=yes
14304
# SGI C++ compiler will create directory out/ii_files/ for
14305
# template instantiation
14306
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14307
$rm out/* && rmdir out
14313
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14314
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14317
hard_links="nottested"
14318
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14319
# do not overwrite the value of need_locks provided by the user
14320
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14321
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14324
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14326
ln conftest.a conftest.b 2>&5 || hard_links=no
14327
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14328
echo "$as_me:$LINENO: result: $hard_links" >&5
14329
echo "${ECHO_T}$hard_links" >&6
14330
if test "$hard_links" = no; then
14331
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14332
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14339
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14340
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14343
allow_undefined_flag_F77=
14344
enable_shared_with_static_runtimes_F77=no
14346
archive_expsym_cmds_F77=
14347
old_archive_From_new_cmds_F77=
14348
old_archive_from_expsyms_cmds_F77=
14349
export_dynamic_flag_spec_F77=
14350
whole_archive_flag_spec_F77=
14351
thread_safe_flag_spec_F77=
14352
hardcode_libdir_flag_spec_F77=
14353
hardcode_libdir_flag_spec_ld_F77=
14354
hardcode_libdir_separator_F77=
14355
hardcode_direct_F77=no
14356
hardcode_minus_L_F77=no
14357
hardcode_shlibpath_var_F77=unsupported
14358
link_all_deplibs_F77=unknown
14359
hardcode_automatic_F77=no
14361
module_expsym_cmds_F77=
14362
always_export_symbols_F77=no
14363
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14364
# include_expsyms should be a list of space-separated symbols to be *always*
14365
# included in the symbol list
14366
include_expsyms_F77=
14367
# exclude_expsyms can be an extended regexp of symbols to exclude
14368
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14369
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14370
# as well as any symbol that contains `d'.
14371
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14372
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14373
# platforms (ab)use it in PIC code, but their linkers get confused if
14374
# the symbol is explicitly referenced. Since portable code cannot
14375
# rely on this symbol name, it's probably fine to never include it in
14376
# preloaded symbol tables.
14377
extract_expsyms_cmds=
14380
cygwin* | mingw* | pw32*)
14381
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14382
# When not using gcc, we currently assume that we are using
14383
# Microsoft Visual C++.
14384
if test "$GCC" != yes; then
14394
if test "$with_gnu_ld" = yes; then
14395
# If archive_cmds runs LD, not CC, wlarc should be empty
14398
# See if GNU ld supports shared libraries.
14400
aix3* | aix4* | aix5*)
14401
# On AIX/PPC, the GNU linker is very broken
14402
if test "$host_cpu" != ia64; then
14406
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14407
*** to be unable to reliably create shared libraries on AIX.
14408
*** Therefore, libtool is disabling shared libraries support. If you
14409
*** really care for shared libraries, you may want to modify your PATH
14410
*** so that a non-GNU linker is found, and then restart.
14417
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)'
14418
hardcode_libdir_flag_spec_F77='-L$libdir'
14419
hardcode_minus_L_F77=yes
14421
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14422
# that the semantics of dynamic libraries on AmigaOS, at least up
14423
# to version 4, is to share data among multiple programs linked
14424
# with the same dynamic library. Since this doesn't match the
14425
# behavior of shared libraries on other platforms, we can't use
14431
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14432
allow_undefined_flag_F77=unsupported
14433
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14434
# support --undefined. This deserves some investigation. FIXME
14435
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14441
cygwin* | mingw* | pw32*)
14442
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14443
# as there is no search path for DLLs.
14444
hardcode_libdir_flag_spec_F77='-L$libdir'
14445
allow_undefined_flag_F77=unsupported
14446
always_export_symbols_F77=no
14447
enable_shared_with_static_runtimes_F77=yes
14448
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14450
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14451
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14452
# If the export-symbols file already is a .def file (1st line
14453
# is EXPORTS), use it as is; otherwise, prepend...
14454
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14455
cp $export_symbols $output_objdir/$soname.def;
14457
echo EXPORTS > $output_objdir/$soname.def;
14458
cat $export_symbols >> $output_objdir/$soname.def;
14460
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14466
netbsd* | knetbsd*-gnu)
14467
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14468
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14471
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14472
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14477
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14481
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14482
*** create shared libraries on Solaris systems. Therefore, libtool
14483
*** is disabling shared libraries support. We urge you to upgrade GNU
14484
*** binutils to release 2.9.1 or newer. Another option is to modify
14485
*** your PATH or compiler configuration so that the native linker is
14486
*** used, and then restart.
14489
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14490
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14491
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14498
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14500
hardcode_direct_F77=yes
14501
hardcode_shlibpath_var_F77=no
14505
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14506
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14507
archive_cmds_F77="$tmp_archive_cmds"
14508
supports_anon_versioning=no
14509
case `$LD -v 2>/dev/null` in
14510
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14511
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14512
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14513
*\ 2.11.*) ;; # other 2.11 versions
14514
*) supports_anon_versioning=yes ;;
14516
if test $supports_anon_versioning = yes; then
14517
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14518
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14519
$echo "local: *; };" >> $output_objdir/$libname.ver~
14520
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14522
archive_expsym_cmds_F77="$tmp_archive_cmds"
14530
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14531
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14532
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14539
if test "$ld_shlibs_F77" = yes; then
14540
runpath_var=LD_RUN_PATH
14541
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14542
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14543
# ancient GNU ld didn't support --whole-archive et. al.
14544
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14545
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14547
whole_archive_flag_spec_F77=
14551
# PORTME fill in a description of your system's linker (not GNU ld)
14554
allow_undefined_flag_F77=unsupported
14555
always_export_symbols_F77=yes
14556
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'
14557
# Note: this linker hardcodes the directories in LIBPATH if there
14558
# are no directories specified by -L.
14559
hardcode_minus_L_F77=yes
14560
if test "$GCC" = yes && test -z "$link_static_flag"; then
14561
# Neither direct hardcoding nor static linking is supported with a
14563
hardcode_direct_F77=unsupported
14568
if test "$host_cpu" = ia64; then
14569
# On IA64, the linker does run time linking by default, so we don't
14570
# have to do anything special.
14571
aix_use_runtimelinking=no
14572
exp_sym_flag='-Bexport'
14575
# If we're using GNU nm, then we don't want the "-C" option.
14576
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14577
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14578
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'
14580
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'
14582
aix_use_runtimelinking=no
14584
# Test if we are trying to use run time linking or normal
14585
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14586
# need to do runtime linking.
14587
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14588
for ld_flag in $LDFLAGS; do
14589
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14590
aix_use_runtimelinking=yes
14596
exp_sym_flag='-bexport'
14597
no_entry_flag='-bnoentry'
14600
# When large executables or shared objects are built, AIX ld can
14601
# have problems creating the table of contents. If linking a library
14602
# or program results in "error TOC overflow" add -mminimal-toc to
14603
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14604
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14606
archive_cmds_F77=''
14607
hardcode_direct_F77=yes
14608
hardcode_libdir_separator_F77=':'
14609
link_all_deplibs_F77=yes
14611
if test "$GCC" = yes; then
14612
case $host_os in aix4.012|aix4.012.*)
14613
# We only want to do this on AIX 4.2 and lower, the check
14614
# below for broken collect2 doesn't work under 4.3+
14615
collect2name=`${CC} -print-prog-name=collect2`
14616
if test -f "$collect2name" && \
14617
strings "$collect2name" | grep resolve_lib_name >/dev/null
14619
# We have reworked collect2
14620
hardcode_direct_F77=yes
14622
# We have old collect2
14623
hardcode_direct_F77=unsupported
14624
# It fails to find uninstalled libraries when the uninstalled
14625
# path is not listed in the libpath. Setting hardcode_minus_L
14626
# to unsupported forces relinking
14627
hardcode_minus_L_F77=yes
14628
hardcode_libdir_flag_spec_F77='-L$libdir'
14629
hardcode_libdir_separator_F77=
14632
shared_flag='-shared'
14635
if test "$host_cpu" = ia64; then
14636
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14637
# chokes on -Wl,-G. The following line is correct:
14640
if test "$aix_use_runtimelinking" = yes; then
14641
shared_flag='${wl}-G'
14643
shared_flag='${wl}-bM:SRE'
14648
# It seems that -bexpall does not export symbols beginning with
14649
# underscore (_), so it is better to generate a list of symbols to export.
14650
always_export_symbols_F77=yes
14651
if test "$aix_use_runtimelinking" = yes; then
14652
# Warning - without using the other runtime loading flags (-brtl),
14653
# -berok will link without error, but may produce a broken library.
14654
allow_undefined_flag_F77='-berok'
14655
# Determine the default libpath from the value encoded in an empty executable.
14656
cat >conftest.$ac_ext <<_ACEOF
14661
rm -f conftest.$ac_objext conftest$ac_exeext
14662
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14663
(eval $ac_link) 2>conftest.er1
14665
grep -v '^ *+' conftest.er1 >conftest.err
14667
cat conftest.err >&5
14668
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669
(exit $ac_status); } &&
14670
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14671
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14672
(eval $ac_try) 2>&5
14674
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675
(exit $ac_status); }; } &&
14676
{ ac_try='test -s conftest$ac_exeext'
14677
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14678
(eval $ac_try) 2>&5
14680
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681
(exit $ac_status); }; }; then
14683
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14685
# Check for a 64-bit object if we didn't find anything.
14686
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; }
14689
echo "$as_me: failed program was:" >&5
14690
sed 's/^/| /' conftest.$ac_ext >&5
14693
rm -f conftest.err conftest.$ac_objext \
14694
conftest$ac_exeext conftest.$ac_ext
14695
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14697
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14698
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"
14700
if test "$host_cpu" = ia64; then
14701
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14702
allow_undefined_flag_F77="-z nodefs"
14703
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"
14705
# Determine the default libpath from the value encoded in an empty executable.
14706
cat >conftest.$ac_ext <<_ACEOF
14711
rm -f conftest.$ac_objext conftest$ac_exeext
14712
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14713
(eval $ac_link) 2>conftest.er1
14715
grep -v '^ *+' conftest.er1 >conftest.err
14717
cat conftest.err >&5
14718
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719
(exit $ac_status); } &&
14720
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14721
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722
(eval $ac_try) 2>&5
14724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725
(exit $ac_status); }; } &&
14726
{ ac_try='test -s conftest$ac_exeext'
14727
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728
(eval $ac_try) 2>&5
14730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731
(exit $ac_status); }; }; then
14733
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14735
# Check for a 64-bit object if we didn't find anything.
14736
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; }
14739
echo "$as_me: failed program was:" >&5
14740
sed 's/^/| /' conftest.$ac_ext >&5
14743
rm -f conftest.err conftest.$ac_objext \
14744
conftest$ac_exeext conftest.$ac_ext
14745
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14747
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14748
# Warning - without using the other run time loading flags,
14749
# -berok will link without error, but may produce a broken library.
14750
no_undefined_flag_F77=' ${wl}-bernotok'
14751
allow_undefined_flag_F77=' ${wl}-berok'
14752
# -bexpall does not export symbols beginning with underscore (_)
14753
always_export_symbols_F77=yes
14754
# Exported symbols can be pulled into shared objects from archives
14755
whole_archive_flag_spec_F77=' '
14756
archive_cmds_need_lc_F77=yes
14757
# This is similar to how AIX traditionally builds it's shared libraries.
14758
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'
14764
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)'
14765
hardcode_libdir_flag_spec_F77='-L$libdir'
14766
hardcode_minus_L_F77=yes
14767
# see comment about different semantics on the GNU ld section
14772
export_dynamic_flag_spec_F77=-rdynamic
14775
cygwin* | mingw* | pw32*)
14776
# When not using gcc, we currently assume that we are using
14777
# Microsoft Visual C++.
14778
# hardcode_libdir_flag_spec is actually meaningless, as there is
14779
# no search path for DLLs.
14780
hardcode_libdir_flag_spec_F77=' '
14781
allow_undefined_flag_F77=unsupported
14782
# Tell ltmain to make .lib files, not .a files.
14784
# Tell ltmain to make .dll files, not .so files.
14786
# FIXME: Setting linknames here is a bad hack.
14787
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14788
# The linker will automatically build a .lib file if we build a DLL.
14789
old_archive_From_new_cmds_F77='true'
14790
# FIXME: Should let the user specify the lib program.
14791
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14792
fix_srcfile_path='`cygpath -w "$srcfile"`'
14793
enable_shared_with_static_runtimes_F77=yes
14796
darwin* | rhapsody*)
14797
if test "$GXX" = yes ; then
14798
archive_cmds_need_lc_F77=no
14800
rhapsody* | darwin1.[012])
14801
allow_undefined_flag_F77='-undefined suppress'
14804
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14805
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14807
case ${MACOSX_DEPLOYMENT_TARGET} in
14809
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14812
allow_undefined_flag_F77='-undefined dynamic_lookup'
14818
lt_int_apple_cc_single_mod=no
14819
output_verbose_link_cmd='echo'
14820
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14821
lt_int_apple_cc_single_mod=yes
14823
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14824
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14826
archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
14828
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14829
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14830
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14831
archive_expsym_cmds_F77='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}'
14833
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
14835
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}'
14836
hardcode_direct_F77=no
14837
hardcode_automatic_F77=yes
14838
hardcode_shlibpath_var_F77=unsupported
14839
whole_archive_flag_spec_F77='-all_load $convenience'
14840
link_all_deplibs_F77=yes
14847
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14848
hardcode_libdir_flag_spec_F77='-L$libdir'
14849
hardcode_shlibpath_var_F77=no
14856
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14857
# support. Future versions do this automatically, but an explicit c++rt0.o
14858
# does not break anything, and helps significantly (at the cost of a little
14861
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14862
hardcode_libdir_flag_spec_F77='-R$libdir'
14863
hardcode_direct_F77=yes
14864
hardcode_shlibpath_var_F77=no
14867
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
14869
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14870
hardcode_direct_F77=yes
14871
hardcode_minus_L_F77=yes
14872
hardcode_shlibpath_var_F77=no
14875
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14876
freebsd* | kfreebsd*-gnu)
14877
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14878
hardcode_libdir_flag_spec_F77='-R$libdir'
14879
hardcode_direct_F77=yes
14880
hardcode_shlibpath_var_F77=no
14884
if test "$GCC" = yes; then
14885
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'
14887
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'
14889
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14890
hardcode_libdir_separator_F77=:
14891
hardcode_direct_F77=yes
14893
# hardcode_minus_L: Not really in the search PATH,
14894
# but as the default location of the library.
14895
hardcode_minus_L_F77=yes
14896
export_dynamic_flag_spec_F77='${wl}-E'
14900
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14901
case "$host_cpu" in
14903
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14906
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14910
case "$host_cpu" in
14912
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14915
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14919
if test "$with_gnu_ld" = no; then
14920
case "$host_cpu" in
14922
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14923
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14924
hardcode_libdir_separator_F77=:
14925
hardcode_direct_F77=no
14926
hardcode_shlibpath_var_F77=no
14929
hardcode_libdir_flag_spec_F77='-L$libdir'
14930
hardcode_direct_F77=no
14931
hardcode_shlibpath_var_F77=no
14933
# hardcode_minus_L: Not really in the search PATH,
14934
# but as the default location of the library.
14935
hardcode_minus_L_F77=yes
14938
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14939
hardcode_libdir_separator_F77=:
14940
hardcode_direct_F77=yes
14941
export_dynamic_flag_spec_F77='${wl}-E'
14943
# hardcode_minus_L: Not really in the search PATH,
14944
# but as the default location of the library.
14945
hardcode_minus_L_F77=yes
14951
irix5* | irix6* | nonstopux*)
14952
if test "$GCC" = yes; then
14953
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'
14955
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'
14956
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14958
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14959
hardcode_libdir_separator_F77=:
14960
link_all_deplibs_F77=yes
14963
netbsd* | knetbsd*-gnu)
14964
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14965
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14967
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14969
hardcode_libdir_flag_spec_F77='-R$libdir'
14970
hardcode_direct_F77=yes
14971
hardcode_shlibpath_var_F77=no
14975
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14976
hardcode_direct_F77=yes
14977
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14978
hardcode_libdir_separator_F77=:
14979
hardcode_shlibpath_var_F77=no
14983
hardcode_direct_F77=yes
14984
hardcode_shlibpath_var_F77=no
14985
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14986
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14987
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14988
export_dynamic_flag_spec_F77='${wl}-E'
14991
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14992
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14993
hardcode_libdir_flag_spec_F77='-R$libdir'
14996
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14997
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15004
hardcode_libdir_flag_spec_F77='-L$libdir'
15005
hardcode_minus_L_F77=yes
15006
allow_undefined_flag_F77=unsupported
15007
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'
15008
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15012
if test "$GCC" = yes; then
15013
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15014
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'
15016
allow_undefined_flag_F77=' -expect_unresolved \*'
15017
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'
15019
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15020
hardcode_libdir_separator_F77=:
15023
osf4* | osf5*) # as osf3* with the addition of -msym flag
15024
if test "$GCC" = yes; then
15025
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15026
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'
15027
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15029
allow_undefined_flag_F77=' -expect_unresolved \*'
15030
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'
15031
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~
15032
$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'
15034
# Both c and cxx compiler support -rpath directly
15035
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15037
hardcode_libdir_separator_F77=:
15041
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15042
hardcode_shlibpath_var_F77=no
15043
export_dynamic_flag_spec_F77='${wl}-Bexport'
15044
runpath_var=LD_RUN_PATH
15045
hardcode_runpath_var=yes
15049
no_undefined_flag_F77=' -z text'
15050
if test "$GCC" = yes; then
15051
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15052
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15053
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15055
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15056
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15057
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15059
hardcode_libdir_flag_spec_F77='-R$libdir'
15060
hardcode_shlibpath_var_F77=no
15062
solaris2.[0-5] | solaris2.[0-5].*) ;;
15063
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
15064
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15066
link_all_deplibs_F77=yes
15070
if test "x$host_vendor" = xsequent; then
15071
# Use $CC to link under sequent, because it throws in some extra .o
15072
# files that make .init and .fini sections work.
15073
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15075
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15077
hardcode_libdir_flag_spec_F77='-L$libdir'
15078
hardcode_direct_F77=yes
15079
hardcode_minus_L_F77=yes
15080
hardcode_shlibpath_var_F77=no
15084
case $host_vendor in
15086
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15087
hardcode_direct_F77=yes # is this really true???
15090
## LD is ld it makes a PLAMLIB
15091
## CC just makes a GrossModule.
15092
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15093
reload_cmds_F77='$CC -r -o $output$reload_objs'
15094
hardcode_direct_F77=no
15097
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15098
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15101
runpath_var='LD_RUN_PATH'
15102
hardcode_shlibpath_var_F77=no
15106
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15107
hardcode_shlibpath_var_F77=no
15108
export_dynamic_flag_spec_F77='-Bexport'
15112
if test -d /usr/nec; then
15113
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15114
hardcode_shlibpath_var_F77=no
15115
runpath_var=LD_RUN_PATH
15116
hardcode_runpath_var=yes
15122
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15123
hardcode_direct_F77=yes
15124
hardcode_minus_L_F77=no
15125
hardcode_shlibpath_var_F77=no
15126
hardcode_runpath_var=yes
15127
runpath_var=LD_RUN_PATH
15130
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15131
no_undefined_flag_F77='${wl}-z ${wl}text'
15132
if test "$GCC" = yes; then
15133
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15135
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15137
runpath_var='LD_RUN_PATH'
15138
hardcode_shlibpath_var_F77=no
15142
no_undefined_flag_F77=' -z text'
15143
# $CC -shared without GNU ld will not create a library from C++
15144
# object files and a static libstdc++, better avoid it by now
15145
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15146
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15147
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15148
hardcode_libdir_flag_spec_F77=
15149
hardcode_shlibpath_var_F77=no
15150
runpath_var='LD_RUN_PATH'
15154
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15155
hardcode_libdir_flag_spec_F77='-L$libdir'
15156
hardcode_shlibpath_var_F77=no
15165
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15166
echo "${ECHO_T}$ld_shlibs_F77" >&6
15167
test "$ld_shlibs_F77" = no && can_build_shared=no
15169
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15170
if test "$GCC" = yes; then
15171
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15175
# Do we need to explicitly link libc?
15177
case "x$archive_cmds_need_lc_F77" in
15179
# Assume -lc should be added
15180
archive_cmds_need_lc_F77=yes
15182
if test "$enable_shared" = yes && test "$GCC" = yes; then
15183
case $archive_cmds_F77 in
15185
# FIXME: we may have to deal with multi-command sequences.
15188
# Test whether the compiler implicitly links with -lc since on some
15189
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15190
# to ld, don't add -lc before -lgcc.
15191
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15192
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15194
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15196
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15197
(eval $ac_compile) 2>&5
15199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200
(exit $ac_status); } 2>conftest.err; then
15203
libobjs=conftest.$ac_objext
15205
wl=$lt_prog_compiler_wl_F77
15211
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15212
allow_undefined_flag_F77=
15213
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15214
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15216
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217
(exit $ac_status); }
15219
archive_cmds_need_lc_F77=no
15221
archive_cmds_need_lc_F77=yes
15223
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15225
cat conftest.err 1>&5
15228
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15229
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15236
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15237
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15238
library_names_spec=
15239
libname_spec='lib$name'
15243
postuninstall_cmds=
15247
shlibpath_overrides_runpath=unknown
15249
dynamic_linker="$host_os ld.so"
15250
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15251
if test "$GCC" = yes; then
15252
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15253
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15254
# if the path contains ";" then we assume it to be the separator
15255
# otherwise default to the standard path separator (i.e. ":") - it is
15256
# assumed that no part of a normal pathname contains ";" but that should
15257
# okay in the real world where ";" in dirpaths is itself problematic.
15258
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15260
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15263
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15265
need_lib_prefix=unknown
15266
hardcode_into_libs=no
15268
# when you set need_version to no, make sure it does not cause -set_version
15269
# flags to be left without arguments
15270
need_version=unknown
15275
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15276
shlibpath_var=LIBPATH
15278
# AIX 3 has no versioning support, so we append a major version to the name.
15279
soname_spec='${libname}${release}${shared_ext}$major'
15286
hardcode_into_libs=yes
15287
if test "$host_cpu" = ia64; then
15288
# AIX 5 supports IA64
15289
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15290
shlibpath_var=LD_LIBRARY_PATH
15292
# With GCC up to 2.95.x, collect2 would create an import file
15293
# for dependence libraries. The import file would start with
15294
# the line `#! .'. This would cause the generated library to
15295
# depend on `.', always an invalid library. This was fixed in
15296
# development snapshots of GCC prior to 3.0.
15298
aix4 | aix4.[01] | aix4.[01].*)
15299
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15301
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15304
can_build_shared=no
15308
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15309
# soname into executable. Probably we can add versioning support to
15310
# collect2, so additional links can be useful in future.
15311
if test "$aix_use_runtimelinking" = yes; then
15312
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15313
# instead of lib<name>.a to let people know that these are not
15314
# typical AIX shared libraries.
15315
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15317
# We preserve .a as extension for shared libraries through AIX4.2
15318
# and later when we are not doing run time linking.
15319
library_names_spec='${libname}${release}.a $libname.a'
15320
soname_spec='${libname}${release}${shared_ext}$major'
15322
shlibpath_var=LIBPATH
15327
library_names_spec='$libname.ixlibrary $libname.a'
15328
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15329
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'
15333
library_names_spec='${libname}${shared_ext}'
15334
dynamic_linker="$host_os ld.so"
15335
shlibpath_var=LIBRARY_PATH
15341
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15342
soname_spec='${libname}${release}${shared_ext}$major'
15343
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15344
shlibpath_var=LD_LIBRARY_PATH
15345
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15346
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15347
# the default ld.so.conf also contains /usr/contrib/lib and
15348
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15349
# libtool to hard-code these into programs
15352
cygwin* | mingw* | pw32*)
15353
version_type=windows
15358
case $GCC,$host_os in
15359
yes,cygwin* | yes,mingw* | yes,pw32*)
15360
library_names_spec='$libname.dll.a'
15361
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15362
postinstall_cmds='base_file=`basename \${file}`~
15363
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15364
dldir=$destdir/`dirname \$dlpath`~
15365
test -d \$dldir || mkdir -p \$dldir~
15366
$install_prog $dir/$dlname \$dldir/$dlname'
15367
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15368
dlpath=$dir/\$dldll~
15370
shlibpath_overrides_runpath=yes
15374
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15375
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15376
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15379
# MinGW DLLs use traditional 'lib' prefix
15380
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15381
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15382
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15383
# It is most probably a Windows format PATH printed by
15384
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15385
# path with ; separators, and with drive letters. We can handle the
15386
# drive letters (cygwin fileutils understands them), so leave them,
15387
# especially as we might pass files found there to a mingw objdump,
15388
# which wouldn't understand a cygwinified path. Ahh.
15389
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15391
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15395
# pw32 DLLs use 'pw' prefix rather than 'lib'
15396
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15402
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15405
dynamic_linker='Win32 ld.exe'
15406
# FIXME: first we should search . and the directory the executable is in
15410
darwin* | rhapsody*)
15411
dynamic_linker="$host_os dyld"
15412
version_type=darwin
15415
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15416
soname_spec='${libname}${release}${major}$shared_ext'
15417
shlibpath_overrides_runpath=yes
15418
shlibpath_var=DYLD_LIBRARY_PATH
15419
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15420
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15421
if test "$GCC" = yes; then
15422
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"`
15424
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15426
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15433
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15434
soname_spec='${libname}${release}${shared_ext}$major'
15435
shlibpath_var=LD_LIBRARY_PATH
15446
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15447
soname_spec='${libname}${release}${shared_ext}$major'
15448
shlibpath_var=LD_LIBRARY_PATH
15449
shlibpath_overrides_runpath=no
15450
hardcode_into_libs=yes
15451
dynamic_linker='GNU ld.so'
15455
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15456
version_type=freebsd-$objformat
15457
case $version_type in
15459
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15464
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15468
shlibpath_var=LD_LIBRARY_PATH
15471
shlibpath_overrides_runpath=yes
15473
freebsd3.01* | freebsdelf3.01*)
15474
shlibpath_overrides_runpath=yes
15475
hardcode_into_libs=yes
15478
shlibpath_overrides_runpath=no
15479
hardcode_into_libs=yes
15488
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15489
soname_spec='${libname}${release}${shared_ext}$major'
15490
shlibpath_var=LD_LIBRARY_PATH
15491
hardcode_into_libs=yes
15494
hpux9* | hpux10* | hpux11*)
15495
# Give a soname corresponding to the major version so that dld.sl refuses to
15496
# link against other versions.
15500
case "$host_cpu" in
15503
hardcode_into_libs=yes
15504
dynamic_linker="$host_os dld.so"
15505
shlibpath_var=LD_LIBRARY_PATH
15506
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15507
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15508
soname_spec='${libname}${release}${shared_ext}$major'
15509
if test "X$HPUX_IA64_MODE" = X32; then
15510
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15512
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15514
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15518
hardcode_into_libs=yes
15519
dynamic_linker="$host_os dld.sl"
15520
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15521
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15522
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15523
soname_spec='${libname}${release}${shared_ext}$major'
15524
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15525
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15529
dynamic_linker="$host_os dld.sl"
15530
shlibpath_var=SHLIB_PATH
15531
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15532
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15533
soname_spec='${libname}${release}${shared_ext}$major'
15536
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15537
postinstall_cmds='chmod 555 $lib'
15540
irix5* | irix6* | nonstopux*)
15542
nonstopux*) version_type=nonstopux ;;
15544
if test "$lt_cv_prog_gnu_ld" = yes; then
15552
soname_spec='${libname}${release}${shared_ext}$major'
15553
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15555
irix5* | nonstopux*)
15556
libsuff= shlibsuff=
15559
case $LD in # libtool.m4 will add one of these switches to LD
15560
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15561
libsuff= shlibsuff= libmagic=32-bit;;
15562
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15563
libsuff=32 shlibsuff=N32 libmagic=N32;;
15564
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15565
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15566
*) libsuff= shlibsuff= libmagic=never-match;;
15570
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15571
shlibpath_overrides_runpath=no
15572
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15573
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15574
hardcode_into_libs=yes
15577
# No shared lib support for Linux oldld, aout, or coff.
15578
linux*oldld* | linux*aout* | linux*coff*)
15582
# This must be Linux ELF.
15587
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15588
soname_spec='${libname}${release}${shared_ext}$major'
15589
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15590
shlibpath_var=LD_LIBRARY_PATH
15591
shlibpath_overrides_runpath=no
15592
# This implies no fast_install, which is unacceptable.
15593
# Some rework will be needed to allow for fast_install
15594
# before this can be enabled.
15595
hardcode_into_libs=yes
15597
# Append ld.so.conf contents to the search path
15598
if test -f /etc/ld.so.conf; then
15599
ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
15600
sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
15603
# We used to test for /lib/ld.so.1 and disable shared libraries on
15604
# powerpc, because MkLinux only supported shared libraries with the
15605
# GNU dynamic linker. Since this was broken with cross compilers,
15606
# most powerpc-linux boxes support dynamic linking these days and
15607
# people can always --disable-shared, the test was removed, and we
15608
# assume the GNU/Linux dynamic linker is in use.
15609
dynamic_linker='GNU/Linux ld.so'
15616
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15617
soname_spec='${libname}${release}${shared_ext}$major'
15618
shlibpath_var=LD_LIBRARY_PATH
15619
shlibpath_overrides_runpath=no
15620
hardcode_into_libs=yes
15621
dynamic_linker='GNU ld.so'
15628
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15629
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15630
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15631
dynamic_linker='NetBSD (a.out) ld.so'
15633
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15634
soname_spec='${libname}${release}${shared_ext}$major'
15635
dynamic_linker='NetBSD ld.elf_so'
15637
shlibpath_var=LD_LIBRARY_PATH
15638
shlibpath_overrides_runpath=yes
15639
hardcode_into_libs=yes
15644
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645
shlibpath_var=LD_LIBRARY_PATH
15646
shlibpath_overrides_runpath=yes
15653
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15654
soname_spec='${libname}${release}${shared_ext}$major'
15655
shlibpath_var=LD_LIBRARY_PATH
15656
shlibpath_overrides_runpath=yes
15663
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15664
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15665
shlibpath_var=LD_LIBRARY_PATH
15666
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15668
openbsd2.[89] | openbsd2.[89].*)
15669
shlibpath_overrides_runpath=no
15672
shlibpath_overrides_runpath=yes
15676
shlibpath_overrides_runpath=yes
15681
libname_spec='$name'
15684
library_names_spec='$libname${shared_ext} $libname.a'
15685
dynamic_linker='OS/2 ld.exe'
15686
shlibpath_var=LIBPATH
15689
osf3* | osf4* | osf5*)
15693
soname_spec='${libname}${release}${shared_ext}$major'
15694
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15695
shlibpath_var=LD_LIBRARY_PATH
15696
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15697
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15702
soname_spec='${libname}${release}${shared_ext}$major'
15703
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15704
shlibpath_var=LD_LIBRARY_PATH
15711
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15712
soname_spec='${libname}${release}${shared_ext}$major'
15713
shlibpath_var=LD_LIBRARY_PATH
15714
shlibpath_overrides_runpath=yes
15715
hardcode_into_libs=yes
15716
# ldd complains unless libraries are executable
15717
postinstall_cmds='chmod +x $lib'
15722
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15723
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15724
shlibpath_var=LD_LIBRARY_PATH
15725
shlibpath_overrides_runpath=yes
15726
if test "$with_gnu_ld" = yes; then
15732
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15734
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15735
soname_spec='${libname}${release}${shared_ext}$major'
15736
shlibpath_var=LD_LIBRARY_PATH
15737
case $host_vendor in
15739
shlibpath_overrides_runpath=no
15741
export_dynamic_flag_spec='${wl}-Blargedynsym'
15742
runpath_var=LD_RUN_PATH
15750
shlibpath_overrides_runpath=no
15751
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15757
if test -d /usr/nec ;then
15759
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15760
soname_spec='$libname${shared_ext}.$major'
15761
shlibpath_var=LD_LIBRARY_PATH
15767
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15768
soname_spec='${libname}${release}${shared_ext}$major'
15769
shlibpath_var=LD_LIBRARY_PATH
15776
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15777
echo "${ECHO_T}$dynamic_linker" >&6
15778
test "$dynamic_linker" = no && can_build_shared=no
15780
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15781
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15782
hardcode_action_F77=
15783
if test -n "$hardcode_libdir_flag_spec_F77" || \
15784
test -n "$runpath_var F77" || \
15785
test "X$hardcode_automatic_F77"="Xyes" ; then
15787
# We can hardcode non-existant directories.
15788
if test "$hardcode_direct_F77" != no &&
15789
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15790
# have to relink, otherwise we might link with an installed library
15791
# when we should be linking with a yet-to-be-installed one
15792
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15793
test "$hardcode_minus_L_F77" != no; then
15794
# Linking always hardcodes the temporary library directory.
15795
hardcode_action_F77=relink
15797
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15798
hardcode_action_F77=immediate
15801
# We cannot hardcode anything, or else we can only hardcode existing
15803
hardcode_action_F77=unsupported
15805
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15806
echo "${ECHO_T}$hardcode_action_F77" >&6
15808
if test "$hardcode_action_F77" = relink; then
15809
# Fast installation is not supported
15810
enable_fast_install=no
15811
elif test "$shlibpath_overrides_runpath" = yes ||
15812
test "$enable_shared" = no; then
15813
# Fast installation is not necessary
15814
enable_fast_install=needless
15819
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15820
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15821
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15822
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15823
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15824
echo "$as_me:$LINENO: result: yes" >&5
15825
echo "${ECHO_T}yes" >&6
15827
# FIXME - insert some real tests, host_os isn't really good enough
15830
if test -n "$STRIP" ; then
15831
striplib="$STRIP -x"
15832
echo "$as_me:$LINENO: result: yes" >&5
15833
echo "${ECHO_T}yes" >&6
15835
echo "$as_me:$LINENO: result: no" >&5
15836
echo "${ECHO_T}no" >&6
15840
echo "$as_me:$LINENO: result: no" >&5
15841
echo "${ECHO_T}no" >&6
15848
# The else clause should only fire when bootstrapping the
15849
# libtool distribution, otherwise you forgot to ship ltmain.sh
15850
# with your package, and you will get complaints that there are
15851
# no rules to generate ltmain.sh.
15852
if test -f "$ltmain"; then
15853
# See if we are running on zsh, and set the options which allow our commands through
15854
# without removal of \ escapes.
15855
if test -n "${ZSH_VERSION+set}" ; then
15856
setopt NO_GLOB_SUBST
15858
# Now quote all the things that may contain metacharacters while being
15859
# careful not to overquote the AC_SUBSTed values. We take copies of the
15860
# variables and quote the copies for generation of the libtool script.
15861
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15863
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15864
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15865
deplibs_check_method reload_flag reload_cmds need_locks \
15866
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15867
lt_cv_sys_global_symbol_to_c_name_address \
15868
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15869
old_postinstall_cmds old_postuninstall_cmds \
15873
lt_prog_compiler_wl_F77 \
15874
lt_prog_compiler_pic_F77 \
15875
lt_prog_compiler_static_F77 \
15876
lt_prog_compiler_no_builtin_flag_F77 \
15877
export_dynamic_flag_spec_F77 \
15878
thread_safe_flag_spec_F77 \
15879
whole_archive_flag_spec_F77 \
15880
enable_shared_with_static_runtimes_F77 \
15881
old_archive_cmds_F77 \
15882
old_archive_from_new_cmds_F77 \
15883
predep_objects_F77 \
15884
postdep_objects_F77 \
15887
compiler_lib_search_path_F77 \
15889
archive_expsym_cmds_F77 \
15890
postinstall_cmds_F77 \
15891
postuninstall_cmds_F77 \
15892
old_archive_from_expsyms_cmds_F77 \
15893
allow_undefined_flag_F77 \
15894
no_undefined_flag_F77 \
15895
export_symbols_cmds_F77 \
15896
hardcode_libdir_flag_spec_F77 \
15897
hardcode_libdir_flag_spec_ld_F77 \
15898
hardcode_libdir_separator_F77 \
15899
hardcode_automatic_F77 \
15901
module_expsym_cmds_F77 \
15902
lt_cv_prog_compiler_c_o_F77 \
15903
exclude_expsyms_F77 \
15904
include_expsyms_F77; do
15907
old_archive_cmds_F77 | \
15908
old_archive_from_new_cmds_F77 | \
15909
archive_cmds_F77 | \
15910
archive_expsym_cmds_F77 | \
15911
module_cmds_F77 | \
15912
module_expsym_cmds_F77 | \
15913
old_archive_from_expsyms_cmds_F77 | \
15914
export_symbols_cmds_F77 | \
15915
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15916
postinstall_cmds | postuninstall_cmds | \
15917
old_postinstall_cmds | old_postuninstall_cmds | \
15918
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15919
# Double-quote double-evaled strings.
15920
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15923
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15929
*'\$0 --fallback-echo"')
15930
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15936
cat <<__EOF__ >> "$cfgfile"
15937
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15939
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15941
# Shell to use when invoking shell scripts.
15944
# Whether or not to build shared libraries.
15945
build_libtool_libs=$enable_shared
15947
# Whether or not to build static libraries.
15948
build_old_libs=$enable_static
15950
# Whether or not to add -lc for building shared libraries.
15951
build_libtool_need_lc=$archive_cmds_need_lc_F77
15953
# Whether or not to disallow shared libs when runtime libs are static
15954
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15956
# Whether or not to optimize for fast installation.
15957
fast_install=$enable_fast_install
15960
host_alias=$host_alias
15963
# An echo program that does not interpret backslashes.
15968
AR_FLAGS=$lt_AR_FLAGS
15973
# A language-specific compiler.
15974
CC=$lt_compiler_F77
15976
# Is the compiler the GNU C compiler?
15982
# The linker used to build libraries.
15985
# Whether we need hard or soft links.
15988
# A BSD-compatible nm program.
15991
# A symbol stripping program
15994
# Used to examine libraries when file_magic_cmd begins "file"
15995
MAGIC_CMD=$MAGIC_CMD
15997
# Used on cygwin: DLL creation program.
16000
# Used on cygwin: object dumper.
16003
# Used on cygwin: assembler.
16006
# The name of the directory that contains temporary libtool files.
16009
# How to create reloadable object files.
16010
reload_flag=$lt_reload_flag
16011
reload_cmds=$lt_reload_cmds
16013
# How to pass a linker flag through the compiler.
16014
wl=$lt_lt_prog_compiler_wl_F77
16016
# Object file suffix (normally "o").
16017
objext="$ac_objext"
16019
# Old archive suffix (normally "a").
16022
# Shared library suffix (normally ".so").
16025
# Executable file suffix (normally "").
16028
# Additional compiler flags for building library objects.
16029
pic_flag=$lt_lt_prog_compiler_pic_F77
16032
# What is the maximum length of a command?
16033
max_cmd_len=$lt_cv_sys_max_cmd_len
16035
# Does compiler simultaneously support -c and -o options?
16036
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16038
# Must we lock files when doing compilation ?
16039
need_locks=$lt_need_locks
16041
# Do we need the lib prefix for modules?
16042
need_lib_prefix=$need_lib_prefix
16044
# Do we need a version for libraries?
16045
need_version=$need_version
16047
# Whether dlopen is supported.
16048
dlopen_support=$enable_dlopen
16050
# Whether dlopen of programs is supported.
16051
dlopen_self=$enable_dlopen_self
16053
# Whether dlopen of statically linked programs is supported.
16054
dlopen_self_static=$enable_dlopen_self_static
16056
# Compiler flag to prevent dynamic linking.
16057
link_static_flag=$lt_lt_prog_compiler_static_F77
16059
# Compiler flag to turn off builtin functions.
16060
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16062
# Compiler flag to allow reflexive dlopens.
16063
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16065
# Compiler flag to generate shared objects directly from archives.
16066
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16068
# Compiler flag to generate thread-safe objects.
16069
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16071
# Library versioning type.
16072
version_type=$version_type
16074
# Format of library name prefix.
16075
libname_spec=$lt_libname_spec
16077
# List of archive names. First name is the real one, the rest are links.
16078
# The last name is the one that the linker finds with -lNAME.
16079
library_names_spec=$lt_library_names_spec
16081
# The coded name of the library, if different from the real name.
16082
soname_spec=$lt_soname_spec
16084
# Commands used to build and install an old-style archive.
16086
old_archive_cmds=$lt_old_archive_cmds_F77
16087
old_postinstall_cmds=$lt_old_postinstall_cmds
16088
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16090
# Create an old-style archive from a shared archive.
16091
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16093
# Create a temporary old-style archive to link instead of a shared archive.
16094
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16096
# Commands used to build and install a shared archive.
16097
archive_cmds=$lt_archive_cmds_F77
16098
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16099
postinstall_cmds=$lt_postinstall_cmds
16100
postuninstall_cmds=$lt_postuninstall_cmds
16102
# Commands used to build a loadable module (assumed same as above if empty)
16103
module_cmds=$lt_module_cmds_F77
16104
module_expsym_cmds=$lt_module_expsym_cmds_F77
16106
# Commands to strip libraries.
16107
old_striplib=$lt_old_striplib
16108
striplib=$lt_striplib
16110
# Dependencies to place before the objects being linked to create a
16112
predep_objects=$lt_predep_objects_F77
16114
# Dependencies to place after the objects being linked to create a
16116
postdep_objects=$lt_postdep_objects_F77
16118
# Dependencies to place before the objects being linked to create a
16120
predeps=$lt_predeps_F77
16122
# Dependencies to place after the objects being linked to create a
16124
postdeps=$lt_postdeps_F77
16126
# The library search path used internally by the compiler when linking
16127
# a shared library.
16128
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16130
# Method to check whether dependent libraries are shared objects.
16131
deplibs_check_method=$lt_deplibs_check_method
16133
# Command to use when deplibs_check_method == file_magic.
16134
file_magic_cmd=$lt_file_magic_cmd
16136
# Flag that allows shared libraries with undefined symbols to be built.
16137
allow_undefined_flag=$lt_allow_undefined_flag_F77
16139
# Flag that forces no undefined symbols.
16140
no_undefined_flag=$lt_no_undefined_flag_F77
16142
# Commands used to finish a libtool library installation in a directory.
16143
finish_cmds=$lt_finish_cmds
16145
# Same as above, but a single script fragment to be evaled but not shown.
16146
finish_eval=$lt_finish_eval
16148
# Take the output of nm and produce a listing of raw symbols and C names.
16149
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16151
# Transform the output of nm in a proper C declaration
16152
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16154
# Transform the output of nm in a C name address pair
16155
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16157
# This is the shared library runtime path variable.
16158
runpath_var=$runpath_var
16160
# This is the shared library path variable.
16161
shlibpath_var=$shlibpath_var
16163
# Is shlibpath searched before the hard-coded library search path?
16164
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16166
# How to hardcode a shared library path into an executable.
16167
hardcode_action=$hardcode_action_F77
16169
# Whether we should hardcode library paths into libraries.
16170
hardcode_into_libs=$hardcode_into_libs
16172
# Flag to hardcode \$libdir into a binary during linking.
16173
# This must work even if \$libdir does not exist.
16174
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16176
# If ld is used when linking, flag to hardcode \$libdir into
16177
# a binary during linking. This must work even if \$libdir does
16179
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16181
# Whether we need a single -rpath flag with a separated argument.
16182
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16184
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16185
# resulting binary.
16186
hardcode_direct=$hardcode_direct_F77
16188
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16189
# resulting binary.
16190
hardcode_minus_L=$hardcode_minus_L_F77
16192
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16193
# the resulting binary.
16194
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16196
# Set to yes if building a shared library automatically hardcodes DIR into the library
16197
# and all subsequent libraries and executables linked against it.
16198
hardcode_automatic=$hardcode_automatic_F77
16200
# Variables whose values should be saved in libtool wrapper scripts and
16201
# restored at relink time.
16202
variables_saved_for_relink="$variables_saved_for_relink"
16204
# Whether libtool must link a program against all its dependency libraries.
16205
link_all_deplibs=$link_all_deplibs_F77
16207
# Compile-time system search path for libraries
16208
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16210
# Run-time system search path for libraries
16211
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16213
# Fix the shell variable \$srcfile for the compiler.
16214
fix_srcfile_path="$fix_srcfile_path_F77"
16216
# Set to yes if exported symbols are required.
16217
always_export_symbols=$always_export_symbols_F77
16219
# The commands to list exported symbols.
16220
export_symbols_cmds=$lt_export_symbols_cmds_F77
16222
# The commands to extract the exported symbol list from a shared archive.
16223
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16225
# Symbols that should not be listed in the preloaded symbols.
16226
exclude_expsyms=$lt_exclude_expsyms_F77
16228
# Symbols that must always be exported.
16229
include_expsyms=$lt_include_expsyms_F77
16231
# ### END LIBTOOL TAG CONFIG: $tagname
16237
# If there is no Makefile yet, we rely on a make rule to execute
16238
# `config.status --recheck' to rerun these tests and create the
16239
# libtool script then.
16240
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16241
if test -f "$ltmain_in"; then
16242
test -f Makefile && make "$ltmain"
16248
ac_cpp='$CPP $CPPFLAGS'
16249
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16250
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16251
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16261
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16265
# Source file extension for Java test sources.
16268
# Object file extension for compiled Java test sources.
16272
# Code to be used in simple compile tests
16273
lt_simple_compile_test_code="class foo {}\n"
16275
# Code to be used in simple link tests
16276
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16278
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16280
# If no C compiler was specified, use CC.
16283
# Allow CC to be a program name with arguments.
16287
# Allow CC to be a program name with arguments.
16293
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16294
archive_cmds_need_lc_GCJ=no
16297
## There is no encapsulation within the following macros, do not change
16298
## the running order or otherwise move them around unless you know exactly
16299
## what you are doing...
16301
lt_prog_compiler_no_builtin_flag_GCJ=
16303
if test "$GCC" = yes; then
16304
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16307
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16308
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16309
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16310
echo $ECHO_N "(cached) $ECHO_C" >&6
16312
lt_cv_prog_compiler_rtti_exceptions=no
16313
ac_outfile=conftest.$ac_objext
16314
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16315
lt_compiler_flag="-fno-rtti -fno-exceptions"
16316
# Insert the option either (1) after the last *FLAGS variable, or
16317
# (2) before a word containing "conftest.", or (3) at the end.
16318
# Note that $ac_compile itself does not contain backslashes and begins
16319
# with a dollar sign (not a hyphen), so the echo should work correctly.
16320
# The option is referenced via a variable to avoid confusing sed.
16321
lt_compile=`echo "$ac_compile" | $SED \
16322
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16323
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16324
-e 's:$: $lt_compiler_flag:'`
16325
(eval echo "\"\$as_me:16325: $lt_compile\"" >&5)
16326
(eval "$lt_compile" 2>conftest.err)
16328
cat conftest.err >&5
16329
echo "$as_me:16329: \$? = $ac_status" >&5
16330
if (exit $ac_status) && test -s "$ac_outfile"; then
16331
# The compiler can only warn and ignore the option if not recognized
16332
# So say no if there are warnings
16333
if test ! -s conftest.err; then
16334
lt_cv_prog_compiler_rtti_exceptions=yes
16340
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16341
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16343
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16344
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16351
lt_prog_compiler_wl_GCJ=
16352
lt_prog_compiler_pic_GCJ=
16353
lt_prog_compiler_static_GCJ=
16355
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16356
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16358
if test "$GCC" = yes; then
16359
lt_prog_compiler_wl_GCJ='-Wl,'
16360
lt_prog_compiler_static_GCJ='-static'
16364
# All AIX code is PIC.
16365
if test "$host_cpu" = ia64; then
16366
# AIX 5 now supports IA64 processor
16367
lt_prog_compiler_static_GCJ='-Bstatic'
16372
# FIXME: we need at least 68020 code to build shared libraries, but
16373
# adding the `-m68020' flag to GCC prevents building anything better,
16375
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16378
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16379
# PIC is the default for these OSes.
16382
mingw* | pw32* | os2*)
16383
# This hack is so that the source file can tell whether it is being
16384
# built for inclusion in a dll (and should export symbols for example).
16385
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16388
darwin* | rhapsody*)
16389
# PIC is the default on this platform
16390
# Common symbols not allowed in MH_DYLIB files
16391
lt_prog_compiler_pic_GCJ='-fno-common'
16395
# Just because we use GCC doesn't mean we suddenly get shared libraries
16396
# on systems that don't support them.
16397
lt_prog_compiler_can_build_shared_GCJ=no
16402
if test -d /usr/nec; then
16403
lt_prog_compiler_pic_GCJ=-Kconform_pic
16408
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16409
# not for PA HP-UX.
16410
case "$host_cpu" in
16415
lt_prog_compiler_pic_GCJ='-fPIC'
16421
lt_prog_compiler_pic_GCJ='-fPIC'
16425
# PORTME Check for flag to pass linker flags through the system compiler.
16428
lt_prog_compiler_wl_GCJ='-Wl,'
16429
if test "$host_cpu" = ia64; then
16430
# AIX 5 now supports IA64 processor
16431
lt_prog_compiler_static_GCJ='-Bstatic'
16433
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16437
mingw* | pw32* | os2*)
16438
# This hack is so that the source file can tell whether it is being
16439
# built for inclusion in a dll (and should export symbols for example).
16440
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16443
hpux9* | hpux10* | hpux11*)
16444
lt_prog_compiler_wl_GCJ='-Wl,'
16445
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16446
# not for PA HP-UX.
16447
case "$host_cpu" in
16452
lt_prog_compiler_pic_GCJ='+Z'
16455
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16456
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16459
irix5* | irix6* | nonstopux*)
16460
lt_prog_compiler_wl_GCJ='-Wl,'
16461
# PIC (with -KPIC) is the default.
16462
lt_prog_compiler_static_GCJ='-non_shared'
16466
lt_prog_compiler_pic_GCJ='-KPIC'
16467
lt_prog_compiler_static_GCJ='-Bstatic'
16473
lt_prog_compiler_wl_GCJ='-Wl,'
16474
lt_prog_compiler_pic_GCJ='-KPIC'
16475
lt_prog_compiler_static_GCJ='-static'
16478
lt_prog_compiler_wl_GCJ='-Wl,'
16479
# All Alpha code is PIC.
16480
lt_prog_compiler_static_GCJ='-non_shared'
16485
osf3* | osf4* | osf5*)
16486
lt_prog_compiler_wl_GCJ='-Wl,'
16487
# All OSF/1 code is PIC.
16488
lt_prog_compiler_static_GCJ='-non_shared'
16492
lt_prog_compiler_pic_GCJ='-Kpic'
16493
lt_prog_compiler_static_GCJ='-dn'
16497
lt_prog_compiler_wl_GCJ='-Wl,'
16498
lt_prog_compiler_pic_GCJ='-KPIC'
16499
lt_prog_compiler_static_GCJ='-Bstatic'
16503
lt_prog_compiler_wl_GCJ='-Qoption ld '
16504
lt_prog_compiler_pic_GCJ='-PIC'
16505
lt_prog_compiler_static_GCJ='-Bstatic'
16508
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16509
lt_prog_compiler_wl_GCJ='-Wl,'
16510
lt_prog_compiler_pic_GCJ='-KPIC'
16511
lt_prog_compiler_static_GCJ='-Bstatic'
16515
if test -d /usr/nec ;then
16516
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16517
lt_prog_compiler_static_GCJ='-Bstatic'
16522
lt_prog_compiler_pic_GCJ='-pic'
16523
lt_prog_compiler_static_GCJ='-Bstatic'
16527
lt_prog_compiler_can_build_shared_GCJ=no
16532
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16533
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16536
# Check to make sure the PIC flag actually works.
16538
if test -n "$lt_prog_compiler_pic_GCJ"; then
16540
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16541
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16542
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16543
echo $ECHO_N "(cached) $ECHO_C" >&6
16545
lt_prog_compiler_pic_works_GCJ=no
16546
ac_outfile=conftest.$ac_objext
16547
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16548
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16549
# Insert the option either (1) after the last *FLAGS variable, or
16550
# (2) before a word containing "conftest.", or (3) at the end.
16551
# Note that $ac_compile itself does not contain backslashes and begins
16552
# with a dollar sign (not a hyphen), so the echo should work correctly.
16553
# The option is referenced via a variable to avoid confusing sed.
16554
lt_compile=`echo "$ac_compile" | $SED \
16555
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16556
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16557
-e 's:$: $lt_compiler_flag:'`
16558
(eval echo "\"\$as_me:16558: $lt_compile\"" >&5)
16559
(eval "$lt_compile" 2>conftest.err)
16561
cat conftest.err >&5
16562
echo "$as_me:16562: \$? = $ac_status" >&5
16563
if (exit $ac_status) && test -s "$ac_outfile"; then
16564
# The compiler can only warn and ignore the option if not recognized
16565
# So say no if there are warnings
16566
if test ! -s conftest.err; then
16567
lt_prog_compiler_pic_works_GCJ=yes
16573
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16574
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16576
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16577
case $lt_prog_compiler_pic_GCJ in
16579
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16582
lt_prog_compiler_pic_GCJ=
16583
lt_prog_compiler_can_build_shared_GCJ=no
16588
# For platforms which do not support PIC, -DPIC is meaningless:
16590
lt_prog_compiler_pic_GCJ=
16593
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16597
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16598
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16599
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16600
echo $ECHO_N "(cached) $ECHO_C" >&6
16602
lt_cv_prog_compiler_c_o_GCJ=no
16603
$rm -r conftest 2>/dev/null
16607
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16609
lt_compiler_flag="-o out/conftest2.$ac_objext"
16610
# Insert the option either (1) after the last *FLAGS variable, or
16611
# (2) before a word containing "conftest.", or (3) at the end.
16612
# Note that $ac_compile itself does not contain backslashes and begins
16613
# with a dollar sign (not a hyphen), so the echo should work correctly.
16614
lt_compile=`echo "$ac_compile" | $SED \
16615
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16616
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16617
-e 's:$: $lt_compiler_flag:'`
16618
(eval echo "\"\$as_me:16618: $lt_compile\"" >&5)
16619
(eval "$lt_compile" 2>out/conftest.err)
16621
cat out/conftest.err >&5
16622
echo "$as_me:16622: \$? = $ac_status" >&5
16623
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16625
# The compiler can only warn and ignore the option if not recognized
16626
# So say no if there are warnings
16627
if test ! -s out/conftest.err; then
16628
lt_cv_prog_compiler_c_o_GCJ=yes
16633
# SGI C++ compiler will create directory out/ii_files/ for
16634
# template instantiation
16635
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16636
$rm out/* && rmdir out
16642
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16643
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16646
hard_links="nottested"
16647
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16648
# do not overwrite the value of need_locks provided by the user
16649
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16650
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16653
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16655
ln conftest.a conftest.b 2>&5 || hard_links=no
16656
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16657
echo "$as_me:$LINENO: result: $hard_links" >&5
16658
echo "${ECHO_T}$hard_links" >&6
16659
if test "$hard_links" = no; then
16660
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16661
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16668
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16669
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16672
allow_undefined_flag_GCJ=
16673
enable_shared_with_static_runtimes_GCJ=no
16675
archive_expsym_cmds_GCJ=
16676
old_archive_From_new_cmds_GCJ=
16677
old_archive_from_expsyms_cmds_GCJ=
16678
export_dynamic_flag_spec_GCJ=
16679
whole_archive_flag_spec_GCJ=
16680
thread_safe_flag_spec_GCJ=
16681
hardcode_libdir_flag_spec_GCJ=
16682
hardcode_libdir_flag_spec_ld_GCJ=
16683
hardcode_libdir_separator_GCJ=
16684
hardcode_direct_GCJ=no
16685
hardcode_minus_L_GCJ=no
16686
hardcode_shlibpath_var_GCJ=unsupported
16687
link_all_deplibs_GCJ=unknown
16688
hardcode_automatic_GCJ=no
16690
module_expsym_cmds_GCJ=
16691
always_export_symbols_GCJ=no
16692
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16693
# include_expsyms should be a list of space-separated symbols to be *always*
16694
# included in the symbol list
16695
include_expsyms_GCJ=
16696
# exclude_expsyms can be an extended regexp of symbols to exclude
16697
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16698
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16699
# as well as any symbol that contains `d'.
16700
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16701
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16702
# platforms (ab)use it in PIC code, but their linkers get confused if
16703
# the symbol is explicitly referenced. Since portable code cannot
16704
# rely on this symbol name, it's probably fine to never include it in
16705
# preloaded symbol tables.
16706
extract_expsyms_cmds=
16709
cygwin* | mingw* | pw32*)
16710
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16711
# When not using gcc, we currently assume that we are using
16712
# Microsoft Visual C++.
16713
if test "$GCC" != yes; then
16723
if test "$with_gnu_ld" = yes; then
16724
# If archive_cmds runs LD, not CC, wlarc should be empty
16727
# See if GNU ld supports shared libraries.
16729
aix3* | aix4* | aix5*)
16730
# On AIX/PPC, the GNU linker is very broken
16731
if test "$host_cpu" != ia64; then
16735
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16736
*** to be unable to reliably create shared libraries on AIX.
16737
*** Therefore, libtool is disabling shared libraries support. If you
16738
*** really care for shared libraries, you may want to modify your PATH
16739
*** so that a non-GNU linker is found, and then restart.
16746
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)'
16747
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16748
hardcode_minus_L_GCJ=yes
16750
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16751
# that the semantics of dynamic libraries on AmigaOS, at least up
16752
# to version 4, is to share data among multiple programs linked
16753
# with the same dynamic library. Since this doesn't match the
16754
# behavior of shared libraries on other platforms, we can't use
16760
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16761
allow_undefined_flag_GCJ=unsupported
16762
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16763
# support --undefined. This deserves some investigation. FIXME
16764
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16770
cygwin* | mingw* | pw32*)
16771
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16772
# as there is no search path for DLLs.
16773
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16774
allow_undefined_flag_GCJ=unsupported
16775
always_export_symbols_GCJ=no
16776
enable_shared_with_static_runtimes_GCJ=yes
16777
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16779
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16780
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16781
# If the export-symbols file already is a .def file (1st line
16782
# is EXPORTS), use it as is; otherwise, prepend...
16783
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16784
cp $export_symbols $output_objdir/$soname.def;
16786
echo EXPORTS > $output_objdir/$soname.def;
16787
cat $export_symbols >> $output_objdir/$soname.def;
16789
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16795
netbsd* | knetbsd*-gnu)
16796
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16797
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16800
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16801
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16806
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16810
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16811
*** create shared libraries on Solaris systems. Therefore, libtool
16812
*** is disabling shared libraries support. We urge you to upgrade GNU
16813
*** binutils to release 2.9.1 or newer. Another option is to modify
16814
*** your PATH or compiler configuration so that the native linker is
16815
*** used, and then restart.
16818
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16819
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16820
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16827
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16829
hardcode_direct_GCJ=yes
16830
hardcode_shlibpath_var_GCJ=no
16834
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16835
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16836
archive_cmds_GCJ="$tmp_archive_cmds"
16837
supports_anon_versioning=no
16838
case `$LD -v 2>/dev/null` in
16839
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16840
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16841
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16842
*\ 2.11.*) ;; # other 2.11 versions
16843
*) supports_anon_versioning=yes ;;
16845
if test $supports_anon_versioning = yes; then
16846
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16847
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16848
$echo "local: *; };" >> $output_objdir/$libname.ver~
16849
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16851
archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16859
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16860
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16861
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16868
if test "$ld_shlibs_GCJ" = yes; then
16869
runpath_var=LD_RUN_PATH
16870
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16871
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16872
# ancient GNU ld didn't support --whole-archive et. al.
16873
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16874
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16876
whole_archive_flag_spec_GCJ=
16880
# PORTME fill in a description of your system's linker (not GNU ld)
16883
allow_undefined_flag_GCJ=unsupported
16884
always_export_symbols_GCJ=yes
16885
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'
16886
# Note: this linker hardcodes the directories in LIBPATH if there
16887
# are no directories specified by -L.
16888
hardcode_minus_L_GCJ=yes
16889
if test "$GCC" = yes && test -z "$link_static_flag"; then
16890
# Neither direct hardcoding nor static linking is supported with a
16892
hardcode_direct_GCJ=unsupported
16897
if test "$host_cpu" = ia64; then
16898
# On IA64, the linker does run time linking by default, so we don't
16899
# have to do anything special.
16900
aix_use_runtimelinking=no
16901
exp_sym_flag='-Bexport'
16904
# If we're using GNU nm, then we don't want the "-C" option.
16905
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16906
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16907
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'
16909
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'
16911
aix_use_runtimelinking=no
16913
# Test if we are trying to use run time linking or normal
16914
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16915
# need to do runtime linking.
16916
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16917
for ld_flag in $LDFLAGS; do
16918
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16919
aix_use_runtimelinking=yes
16925
exp_sym_flag='-bexport'
16926
no_entry_flag='-bnoentry'
16929
# When large executables or shared objects are built, AIX ld can
16930
# have problems creating the table of contents. If linking a library
16931
# or program results in "error TOC overflow" add -mminimal-toc to
16932
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16933
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16935
archive_cmds_GCJ=''
16936
hardcode_direct_GCJ=yes
16937
hardcode_libdir_separator_GCJ=':'
16938
link_all_deplibs_GCJ=yes
16940
if test "$GCC" = yes; then
16941
case $host_os in aix4.012|aix4.012.*)
16942
# We only want to do this on AIX 4.2 and lower, the check
16943
# below for broken collect2 doesn't work under 4.3+
16944
collect2name=`${CC} -print-prog-name=collect2`
16945
if test -f "$collect2name" && \
16946
strings "$collect2name" | grep resolve_lib_name >/dev/null
16948
# We have reworked collect2
16949
hardcode_direct_GCJ=yes
16951
# We have old collect2
16952
hardcode_direct_GCJ=unsupported
16953
# It fails to find uninstalled libraries when the uninstalled
16954
# path is not listed in the libpath. Setting hardcode_minus_L
16955
# to unsupported forces relinking
16956
hardcode_minus_L_GCJ=yes
16957
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16958
hardcode_libdir_separator_GCJ=
16961
shared_flag='-shared'
16964
if test "$host_cpu" = ia64; then
16965
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16966
# chokes on -Wl,-G. The following line is correct:
16969
if test "$aix_use_runtimelinking" = yes; then
16970
shared_flag='${wl}-G'
16972
shared_flag='${wl}-bM:SRE'
16977
# It seems that -bexpall does not export symbols beginning with
16978
# underscore (_), so it is better to generate a list of symbols to export.
16979
always_export_symbols_GCJ=yes
16980
if test "$aix_use_runtimelinking" = yes; then
16981
# Warning - without using the other runtime loading flags (-brtl),
16982
# -berok will link without error, but may produce a broken library.
16983
allow_undefined_flag_GCJ='-berok'
16984
# Determine the default libpath from the value encoded in an empty executable.
16985
cat >conftest.$ac_ext <<_ACEOF
16988
cat confdefs.h >>conftest.$ac_ext
16989
cat >>conftest.$ac_ext <<_ACEOF
16990
/* end confdefs.h. */
17000
rm -f conftest.$ac_objext conftest$ac_exeext
17001
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17002
(eval $ac_link) 2>conftest.er1
17004
grep -v '^ *+' conftest.er1 >conftest.err
17006
cat conftest.err >&5
17007
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008
(exit $ac_status); } &&
17009
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17010
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17011
(eval $ac_try) 2>&5
17013
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014
(exit $ac_status); }; } &&
17015
{ ac_try='test -s conftest$ac_exeext'
17016
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017
(eval $ac_try) 2>&5
17019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020
(exit $ac_status); }; }; then
17022
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17024
# Check for a 64-bit object if we didn't find anything.
17025
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; }
17028
echo "$as_me: failed program was:" >&5
17029
sed 's/^/| /' conftest.$ac_ext >&5
17032
rm -f conftest.err conftest.$ac_objext \
17033
conftest$ac_exeext conftest.$ac_ext
17034
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17036
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17037
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"
17039
if test "$host_cpu" = ia64; then
17040
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17041
allow_undefined_flag_GCJ="-z nodefs"
17042
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"
17044
# Determine the default libpath from the value encoded in an empty executable.
17045
cat >conftest.$ac_ext <<_ACEOF
17048
cat confdefs.h >>conftest.$ac_ext
17049
cat >>conftest.$ac_ext <<_ACEOF
17050
/* end confdefs.h. */
17060
rm -f conftest.$ac_objext conftest$ac_exeext
17061
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17062
(eval $ac_link) 2>conftest.er1
17064
grep -v '^ *+' conftest.er1 >conftest.err
17066
cat conftest.err >&5
17067
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068
(exit $ac_status); } &&
17069
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17070
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17071
(eval $ac_try) 2>&5
17073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074
(exit $ac_status); }; } &&
17075
{ ac_try='test -s conftest$ac_exeext'
17076
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17077
(eval $ac_try) 2>&5
17079
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080
(exit $ac_status); }; }; then
17082
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17084
# Check for a 64-bit object if we didn't find anything.
17085
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; }
17088
echo "$as_me: failed program was:" >&5
17089
sed 's/^/| /' conftest.$ac_ext >&5
17092
rm -f conftest.err conftest.$ac_objext \
17093
conftest$ac_exeext conftest.$ac_ext
17094
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17096
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17097
# Warning - without using the other run time loading flags,
17098
# -berok will link without error, but may produce a broken library.
17099
no_undefined_flag_GCJ=' ${wl}-bernotok'
17100
allow_undefined_flag_GCJ=' ${wl}-berok'
17101
# -bexpall does not export symbols beginning with underscore (_)
17102
always_export_symbols_GCJ=yes
17103
# Exported symbols can be pulled into shared objects from archives
17104
whole_archive_flag_spec_GCJ=' '
17105
archive_cmds_need_lc_GCJ=yes
17106
# This is similar to how AIX traditionally builds it's shared libraries.
17107
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'
17113
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)'
17114
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17115
hardcode_minus_L_GCJ=yes
17116
# see comment about different semantics on the GNU ld section
17121
export_dynamic_flag_spec_GCJ=-rdynamic
17124
cygwin* | mingw* | pw32*)
17125
# When not using gcc, we currently assume that we are using
17126
# Microsoft Visual C++.
17127
# hardcode_libdir_flag_spec is actually meaningless, as there is
17128
# no search path for DLLs.
17129
hardcode_libdir_flag_spec_GCJ=' '
17130
allow_undefined_flag_GCJ=unsupported
17131
# Tell ltmain to make .lib files, not .a files.
17133
# Tell ltmain to make .dll files, not .so files.
17135
# FIXME: Setting linknames here is a bad hack.
17136
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17137
# The linker will automatically build a .lib file if we build a DLL.
17138
old_archive_From_new_cmds_GCJ='true'
17139
# FIXME: Should let the user specify the lib program.
17140
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17141
fix_srcfile_path='`cygpath -w "$srcfile"`'
17142
enable_shared_with_static_runtimes_GCJ=yes
17145
darwin* | rhapsody*)
17146
if test "$GXX" = yes ; then
17147
archive_cmds_need_lc_GCJ=no
17149
rhapsody* | darwin1.[012])
17150
allow_undefined_flag_GCJ='-undefined suppress'
17153
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17154
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17156
case ${MACOSX_DEPLOYMENT_TARGET} in
17158
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17161
allow_undefined_flag_GCJ='-undefined dynamic_lookup'
17167
lt_int_apple_cc_single_mod=no
17168
output_verbose_link_cmd='echo'
17169
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17170
lt_int_apple_cc_single_mod=yes
17172
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17173
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17175
archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
17177
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17178
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17179
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17180
archive_expsym_cmds_GCJ='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}'
17182
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
17184
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}'
17185
hardcode_direct_GCJ=no
17186
hardcode_automatic_GCJ=yes
17187
hardcode_shlibpath_var_GCJ=unsupported
17188
whole_archive_flag_spec_GCJ='-all_load $convenience'
17189
link_all_deplibs_GCJ=yes
17196
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17197
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17198
hardcode_shlibpath_var_GCJ=no
17205
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17206
# support. Future versions do this automatically, but an explicit c++rt0.o
17207
# does not break anything, and helps significantly (at the cost of a little
17210
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17211
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17212
hardcode_direct_GCJ=yes
17213
hardcode_shlibpath_var_GCJ=no
17216
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17218
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17219
hardcode_direct_GCJ=yes
17220
hardcode_minus_L_GCJ=yes
17221
hardcode_shlibpath_var_GCJ=no
17224
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17225
freebsd* | kfreebsd*-gnu)
17226
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17227
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17228
hardcode_direct_GCJ=yes
17229
hardcode_shlibpath_var_GCJ=no
17233
if test "$GCC" = yes; then
17234
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'
17236
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'
17238
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17239
hardcode_libdir_separator_GCJ=:
17240
hardcode_direct_GCJ=yes
17242
# hardcode_minus_L: Not really in the search PATH,
17243
# but as the default location of the library.
17244
hardcode_minus_L_GCJ=yes
17245
export_dynamic_flag_spec_GCJ='${wl}-E'
17249
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17250
case "$host_cpu" in
17252
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17255
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17259
case "$host_cpu" in
17261
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17264
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17268
if test "$with_gnu_ld" = no; then
17269
case "$host_cpu" in
17271
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17272
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17273
hardcode_libdir_separator_GCJ=:
17274
hardcode_direct_GCJ=no
17275
hardcode_shlibpath_var_GCJ=no
17278
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17279
hardcode_direct_GCJ=no
17280
hardcode_shlibpath_var_GCJ=no
17282
# hardcode_minus_L: Not really in the search PATH,
17283
# but as the default location of the library.
17284
hardcode_minus_L_GCJ=yes
17287
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17288
hardcode_libdir_separator_GCJ=:
17289
hardcode_direct_GCJ=yes
17290
export_dynamic_flag_spec_GCJ='${wl}-E'
17292
# hardcode_minus_L: Not really in the search PATH,
17293
# but as the default location of the library.
17294
hardcode_minus_L_GCJ=yes
17300
irix5* | irix6* | nonstopux*)
17301
if test "$GCC" = yes; then
17302
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'
17304
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'
17305
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17307
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17308
hardcode_libdir_separator_GCJ=:
17309
link_all_deplibs_GCJ=yes
17312
netbsd* | knetbsd*-gnu)
17313
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17314
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17316
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17318
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17319
hardcode_direct_GCJ=yes
17320
hardcode_shlibpath_var_GCJ=no
17324
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17325
hardcode_direct_GCJ=yes
17326
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17327
hardcode_libdir_separator_GCJ=:
17328
hardcode_shlibpath_var_GCJ=no
17332
hardcode_direct_GCJ=yes
17333
hardcode_shlibpath_var_GCJ=no
17334
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17335
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17336
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17337
export_dynamic_flag_spec_GCJ='${wl}-E'
17340
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17341
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17342
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17345
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17346
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17353
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17354
hardcode_minus_L_GCJ=yes
17355
allow_undefined_flag_GCJ=unsupported
17356
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'
17357
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17361
if test "$GCC" = yes; then
17362
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17363
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'
17365
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17366
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'
17368
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17369
hardcode_libdir_separator_GCJ=:
17372
osf4* | osf5*) # as osf3* with the addition of -msym flag
17373
if test "$GCC" = yes; then
17374
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17375
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'
17376
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17378
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17379
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'
17380
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~
17381
$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'
17383
# Both c and cxx compiler support -rpath directly
17384
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17386
hardcode_libdir_separator_GCJ=:
17390
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17391
hardcode_shlibpath_var_GCJ=no
17392
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17393
runpath_var=LD_RUN_PATH
17394
hardcode_runpath_var=yes
17398
no_undefined_flag_GCJ=' -z text'
17399
if test "$GCC" = yes; then
17400
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17401
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17402
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17404
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17405
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17406
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17408
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17409
hardcode_shlibpath_var_GCJ=no
17411
solaris2.[0-5] | solaris2.[0-5].*) ;;
17412
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
17413
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17415
link_all_deplibs_GCJ=yes
17419
if test "x$host_vendor" = xsequent; then
17420
# Use $CC to link under sequent, because it throws in some extra .o
17421
# files that make .init and .fini sections work.
17422
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17424
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17426
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17427
hardcode_direct_GCJ=yes
17428
hardcode_minus_L_GCJ=yes
17429
hardcode_shlibpath_var_GCJ=no
17433
case $host_vendor in
17435
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17436
hardcode_direct_GCJ=yes # is this really true???
17439
## LD is ld it makes a PLAMLIB
17440
## CC just makes a GrossModule.
17441
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17442
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17443
hardcode_direct_GCJ=no
17446
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17447
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17450
runpath_var='LD_RUN_PATH'
17451
hardcode_shlibpath_var_GCJ=no
17455
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17456
hardcode_shlibpath_var_GCJ=no
17457
export_dynamic_flag_spec_GCJ='-Bexport'
17461
if test -d /usr/nec; then
17462
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17463
hardcode_shlibpath_var_GCJ=no
17464
runpath_var=LD_RUN_PATH
17465
hardcode_runpath_var=yes
17471
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17472
hardcode_direct_GCJ=yes
17473
hardcode_minus_L_GCJ=no
17474
hardcode_shlibpath_var_GCJ=no
17475
hardcode_runpath_var=yes
17476
runpath_var=LD_RUN_PATH
17479
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17480
no_undefined_flag_GCJ='${wl}-z ${wl}text'
17481
if test "$GCC" = yes; then
17482
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17484
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17486
runpath_var='LD_RUN_PATH'
17487
hardcode_shlibpath_var_GCJ=no
17491
no_undefined_flag_GCJ=' -z text'
17492
# $CC -shared without GNU ld will not create a library from C++
17493
# object files and a static libstdc++, better avoid it by now
17494
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17495
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17496
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17497
hardcode_libdir_flag_spec_GCJ=
17498
hardcode_shlibpath_var_GCJ=no
17499
runpath_var='LD_RUN_PATH'
17503
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17504
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17505
hardcode_shlibpath_var_GCJ=no
17514
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17515
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17516
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17518
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17519
if test "$GCC" = yes; then
17520
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17524
# Do we need to explicitly link libc?
17526
case "x$archive_cmds_need_lc_GCJ" in
17528
# Assume -lc should be added
17529
archive_cmds_need_lc_GCJ=yes
17531
if test "$enable_shared" = yes && test "$GCC" = yes; then
17532
case $archive_cmds_GCJ in
17534
# FIXME: we may have to deal with multi-command sequences.
17537
# Test whether the compiler implicitly links with -lc since on some
17538
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17539
# to ld, don't add -lc before -lgcc.
17540
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17541
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17543
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17545
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17546
(eval $ac_compile) 2>&5
17548
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549
(exit $ac_status); } 2>conftest.err; then
17552
libobjs=conftest.$ac_objext
17554
wl=$lt_prog_compiler_wl_GCJ
17560
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17561
allow_undefined_flag_GCJ=
17562
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17563
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17565
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566
(exit $ac_status); }
17568
archive_cmds_need_lc_GCJ=no
17570
archive_cmds_need_lc_GCJ=yes
17572
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17574
cat conftest.err 1>&5
17577
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17578
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17585
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17586
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17587
library_names_spec=
17588
libname_spec='lib$name'
17592
postuninstall_cmds=
17596
shlibpath_overrides_runpath=unknown
17598
dynamic_linker="$host_os ld.so"
17599
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17600
if test "$GCC" = yes; then
17601
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17602
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17603
# if the path contains ";" then we assume it to be the separator
17604
# otherwise default to the standard path separator (i.e. ":") - it is
17605
# assumed that no part of a normal pathname contains ";" but that should
17606
# okay in the real world where ";" in dirpaths is itself problematic.
17607
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17609
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17612
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17614
need_lib_prefix=unknown
17615
hardcode_into_libs=no
17617
# when you set need_version to no, make sure it does not cause -set_version
17618
# flags to be left without arguments
17619
need_version=unknown
17624
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17625
shlibpath_var=LIBPATH
17627
# AIX 3 has no versioning support, so we append a major version to the name.
17628
soname_spec='${libname}${release}${shared_ext}$major'
17635
hardcode_into_libs=yes
17636
if test "$host_cpu" = ia64; then
17637
# AIX 5 supports IA64
17638
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17639
shlibpath_var=LD_LIBRARY_PATH
17641
# With GCC up to 2.95.x, collect2 would create an import file
17642
# for dependence libraries. The import file would start with
17643
# the line `#! .'. This would cause the generated library to
17644
# depend on `.', always an invalid library. This was fixed in
17645
# development snapshots of GCC prior to 3.0.
17647
aix4 | aix4.[01] | aix4.[01].*)
17648
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17650
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17653
can_build_shared=no
17657
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17658
# soname into executable. Probably we can add versioning support to
17659
# collect2, so additional links can be useful in future.
17660
if test "$aix_use_runtimelinking" = yes; then
17661
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17662
# instead of lib<name>.a to let people know that these are not
17663
# typical AIX shared libraries.
17664
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17666
# We preserve .a as extension for shared libraries through AIX4.2
17667
# and later when we are not doing run time linking.
17668
library_names_spec='${libname}${release}.a $libname.a'
17669
soname_spec='${libname}${release}${shared_ext}$major'
17671
shlibpath_var=LIBPATH
17676
library_names_spec='$libname.ixlibrary $libname.a'
17677
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17678
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'
17682
library_names_spec='${libname}${shared_ext}'
17683
dynamic_linker="$host_os ld.so"
17684
shlibpath_var=LIBRARY_PATH
17690
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17691
soname_spec='${libname}${release}${shared_ext}$major'
17692
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17693
shlibpath_var=LD_LIBRARY_PATH
17694
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17695
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17696
# the default ld.so.conf also contains /usr/contrib/lib and
17697
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17698
# libtool to hard-code these into programs
17701
cygwin* | mingw* | pw32*)
17702
version_type=windows
17707
case $GCC,$host_os in
17708
yes,cygwin* | yes,mingw* | yes,pw32*)
17709
library_names_spec='$libname.dll.a'
17710
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17711
postinstall_cmds='base_file=`basename \${file}`~
17712
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17713
dldir=$destdir/`dirname \$dlpath`~
17714
test -d \$dldir || mkdir -p \$dldir~
17715
$install_prog $dir/$dlname \$dldir/$dlname'
17716
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17717
dlpath=$dir/\$dldll~
17719
shlibpath_overrides_runpath=yes
17723
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17724
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17725
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17728
# MinGW DLLs use traditional 'lib' prefix
17729
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17730
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17731
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17732
# It is most probably a Windows format PATH printed by
17733
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17734
# path with ; separators, and with drive letters. We can handle the
17735
# drive letters (cygwin fileutils understands them), so leave them,
17736
# especially as we might pass files found there to a mingw objdump,
17737
# which wouldn't understand a cygwinified path. Ahh.
17738
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17740
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17744
# pw32 DLLs use 'pw' prefix rather than 'lib'
17745
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17751
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17754
dynamic_linker='Win32 ld.exe'
17755
# FIXME: first we should search . and the directory the executable is in
17759
darwin* | rhapsody*)
17760
dynamic_linker="$host_os dyld"
17761
version_type=darwin
17764
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17765
soname_spec='${libname}${release}${major}$shared_ext'
17766
shlibpath_overrides_runpath=yes
17767
shlibpath_var=DYLD_LIBRARY_PATH
17768
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17769
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17770
if test "$GCC" = yes; then
17771
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"`
17773
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17775
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17782
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17783
soname_spec='${libname}${release}${shared_ext}$major'
17784
shlibpath_var=LD_LIBRARY_PATH
17795
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17796
soname_spec='${libname}${release}${shared_ext}$major'
17797
shlibpath_var=LD_LIBRARY_PATH
17798
shlibpath_overrides_runpath=no
17799
hardcode_into_libs=yes
17800
dynamic_linker='GNU ld.so'
17804
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17805
version_type=freebsd-$objformat
17806
case $version_type in
17808
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17813
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17817
shlibpath_var=LD_LIBRARY_PATH
17820
shlibpath_overrides_runpath=yes
17822
freebsd3.01* | freebsdelf3.01*)
17823
shlibpath_overrides_runpath=yes
17824
hardcode_into_libs=yes
17827
shlibpath_overrides_runpath=no
17828
hardcode_into_libs=yes
17837
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17838
soname_spec='${libname}${release}${shared_ext}$major'
17839
shlibpath_var=LD_LIBRARY_PATH
17840
hardcode_into_libs=yes
17843
hpux9* | hpux10* | hpux11*)
17844
# Give a soname corresponding to the major version so that dld.sl refuses to
17845
# link against other versions.
17849
case "$host_cpu" in
17852
hardcode_into_libs=yes
17853
dynamic_linker="$host_os dld.so"
17854
shlibpath_var=LD_LIBRARY_PATH
17855
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17856
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17857
soname_spec='${libname}${release}${shared_ext}$major'
17858
if test "X$HPUX_IA64_MODE" = X32; then
17859
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17861
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17863
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17867
hardcode_into_libs=yes
17868
dynamic_linker="$host_os dld.sl"
17869
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17870
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17871
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17872
soname_spec='${libname}${release}${shared_ext}$major'
17873
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17874
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17878
dynamic_linker="$host_os dld.sl"
17879
shlibpath_var=SHLIB_PATH
17880
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17881
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17882
soname_spec='${libname}${release}${shared_ext}$major'
17885
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17886
postinstall_cmds='chmod 555 $lib'
17889
irix5* | irix6* | nonstopux*)
17891
nonstopux*) version_type=nonstopux ;;
17893
if test "$lt_cv_prog_gnu_ld" = yes; then
17901
soname_spec='${libname}${release}${shared_ext}$major'
17902
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17904
irix5* | nonstopux*)
17905
libsuff= shlibsuff=
17908
case $LD in # libtool.m4 will add one of these switches to LD
17909
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17910
libsuff= shlibsuff= libmagic=32-bit;;
17911
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17912
libsuff=32 shlibsuff=N32 libmagic=N32;;
17913
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17914
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17915
*) libsuff= shlibsuff= libmagic=never-match;;
17919
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17920
shlibpath_overrides_runpath=no
17921
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17922
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17923
hardcode_into_libs=yes
17926
# No shared lib support for Linux oldld, aout, or coff.
17927
linux*oldld* | linux*aout* | linux*coff*)
17931
# This must be Linux ELF.
17936
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17937
soname_spec='${libname}${release}${shared_ext}$major'
17938
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17939
shlibpath_var=LD_LIBRARY_PATH
17940
shlibpath_overrides_runpath=no
17941
# This implies no fast_install, which is unacceptable.
17942
# Some rework will be needed to allow for fast_install
17943
# before this can be enabled.
17944
hardcode_into_libs=yes
17946
# Append ld.so.conf contents to the search path
17947
if test -f /etc/ld.so.conf; then
17948
ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
17949
sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
17952
# We used to test for /lib/ld.so.1 and disable shared libraries on
17953
# powerpc, because MkLinux only supported shared libraries with the
17954
# GNU dynamic linker. Since this was broken with cross compilers,
17955
# most powerpc-linux boxes support dynamic linking these days and
17956
# people can always --disable-shared, the test was removed, and we
17957
# assume the GNU/Linux dynamic linker is in use.
17958
dynamic_linker='GNU/Linux ld.so'
17965
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17966
soname_spec='${libname}${release}${shared_ext}$major'
17967
shlibpath_var=LD_LIBRARY_PATH
17968
shlibpath_overrides_runpath=no
17969
hardcode_into_libs=yes
17970
dynamic_linker='GNU ld.so'
17977
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17978
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17979
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17980
dynamic_linker='NetBSD (a.out) ld.so'
17982
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17983
soname_spec='${libname}${release}${shared_ext}$major'
17984
dynamic_linker='NetBSD ld.elf_so'
17986
shlibpath_var=LD_LIBRARY_PATH
17987
shlibpath_overrides_runpath=yes
17988
hardcode_into_libs=yes
17993
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17994
shlibpath_var=LD_LIBRARY_PATH
17995
shlibpath_overrides_runpath=yes
18002
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18003
soname_spec='${libname}${release}${shared_ext}$major'
18004
shlibpath_var=LD_LIBRARY_PATH
18005
shlibpath_overrides_runpath=yes
18012
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18013
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18014
shlibpath_var=LD_LIBRARY_PATH
18015
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18017
openbsd2.[89] | openbsd2.[89].*)
18018
shlibpath_overrides_runpath=no
18021
shlibpath_overrides_runpath=yes
18025
shlibpath_overrides_runpath=yes
18030
libname_spec='$name'
18033
library_names_spec='$libname${shared_ext} $libname.a'
18034
dynamic_linker='OS/2 ld.exe'
18035
shlibpath_var=LIBPATH
18038
osf3* | osf4* | osf5*)
18042
soname_spec='${libname}${release}${shared_ext}$major'
18043
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18044
shlibpath_var=LD_LIBRARY_PATH
18045
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18046
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18051
soname_spec='${libname}${release}${shared_ext}$major'
18052
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18053
shlibpath_var=LD_LIBRARY_PATH
18060
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18061
soname_spec='${libname}${release}${shared_ext}$major'
18062
shlibpath_var=LD_LIBRARY_PATH
18063
shlibpath_overrides_runpath=yes
18064
hardcode_into_libs=yes
18065
# ldd complains unless libraries are executable
18066
postinstall_cmds='chmod +x $lib'
18071
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18072
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18073
shlibpath_var=LD_LIBRARY_PATH
18074
shlibpath_overrides_runpath=yes
18075
if test "$with_gnu_ld" = yes; then
18081
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18083
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18084
soname_spec='${libname}${release}${shared_ext}$major'
18085
shlibpath_var=LD_LIBRARY_PATH
18086
case $host_vendor in
18088
shlibpath_overrides_runpath=no
18090
export_dynamic_flag_spec='${wl}-Blargedynsym'
18091
runpath_var=LD_RUN_PATH
18099
shlibpath_overrides_runpath=no
18100
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18106
if test -d /usr/nec ;then
18108
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18109
soname_spec='$libname${shared_ext}.$major'
18110
shlibpath_var=LD_LIBRARY_PATH
18116
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18117
soname_spec='${libname}${release}${shared_ext}$major'
18118
shlibpath_var=LD_LIBRARY_PATH
18125
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18126
echo "${ECHO_T}$dynamic_linker" >&6
18127
test "$dynamic_linker" = no && can_build_shared=no
18129
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18130
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18131
hardcode_action_GCJ=
18132
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18133
test -n "$runpath_var GCJ" || \
18134
test "X$hardcode_automatic_GCJ"="Xyes" ; then
18136
# We can hardcode non-existant directories.
18137
if test "$hardcode_direct_GCJ" != no &&
18138
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18139
# have to relink, otherwise we might link with an installed library
18140
# when we should be linking with a yet-to-be-installed one
18141
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18142
test "$hardcode_minus_L_GCJ" != no; then
18143
# Linking always hardcodes the temporary library directory.
18144
hardcode_action_GCJ=relink
18146
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18147
hardcode_action_GCJ=immediate
18150
# We cannot hardcode anything, or else we can only hardcode existing
18152
hardcode_action_GCJ=unsupported
18154
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18155
echo "${ECHO_T}$hardcode_action_GCJ" >&6
18157
if test "$hardcode_action_GCJ" = relink; then
18158
# Fast installation is not supported
18159
enable_fast_install=no
18160
elif test "$shlibpath_overrides_runpath" = yes ||
18161
test "$enable_shared" = no; then
18162
# Fast installation is not necessary
18163
enable_fast_install=needless
18168
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18169
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18170
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18171
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18172
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18173
echo "$as_me:$LINENO: result: yes" >&5
18174
echo "${ECHO_T}yes" >&6
18176
# FIXME - insert some real tests, host_os isn't really good enough
18179
if test -n "$STRIP" ; then
18180
striplib="$STRIP -x"
18181
echo "$as_me:$LINENO: result: yes" >&5
18182
echo "${ECHO_T}yes" >&6
18184
echo "$as_me:$LINENO: result: no" >&5
18185
echo "${ECHO_T}no" >&6
18189
echo "$as_me:$LINENO: result: no" >&5
18190
echo "${ECHO_T}no" >&6
18195
if test "x$enable_dlopen" != xyes; then
18196
enable_dlopen=unknown
18197
enable_dlopen_self=unknown
18198
enable_dlopen_self_static=unknown
18205
lt_cv_dlopen="load_add_on"
18207
lt_cv_dlopen_self=yes
18211
lt_cv_dlopen="LoadLibrary"
18216
lt_cv_dlopen="dlopen"
18221
# if libdl is installed we need to link against it
18222
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18223
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18224
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18225
echo $ECHO_N "(cached) $ECHO_C" >&6
18227
ac_check_lib_save_LIBS=$LIBS
18229
cat >conftest.$ac_ext <<_ACEOF
18232
cat confdefs.h >>conftest.$ac_ext
18233
cat >>conftest.$ac_ext <<_ACEOF
18234
/* end confdefs.h. */
18236
/* Override any gcc2 internal prototype to avoid an error. */
18240
/* We use char because int might match the return type of a gcc2
18241
builtin and then its argument prototype would still apply. */
18251
rm -f conftest.$ac_objext conftest$ac_exeext
18252
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18253
(eval $ac_link) 2>conftest.er1
18255
grep -v '^ *+' conftest.er1 >conftest.err
18257
cat conftest.err >&5
18258
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259
(exit $ac_status); } &&
18260
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18261
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18262
(eval $ac_try) 2>&5
18264
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265
(exit $ac_status); }; } &&
18266
{ ac_try='test -s conftest$ac_exeext'
18267
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18268
(eval $ac_try) 2>&5
18270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271
(exit $ac_status); }; }; then
18272
ac_cv_lib_dl_dlopen=yes
18274
echo "$as_me: failed program was:" >&5
18275
sed 's/^/| /' conftest.$ac_ext >&5
18277
ac_cv_lib_dl_dlopen=no
18279
rm -f conftest.err conftest.$ac_objext \
18280
conftest$ac_exeext conftest.$ac_ext
18281
LIBS=$ac_check_lib_save_LIBS
18283
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18284
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18285
if test $ac_cv_lib_dl_dlopen = yes; then
18286
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18289
lt_cv_dlopen="dyld"
18291
lt_cv_dlopen_self=yes
18298
echo "$as_me:$LINENO: checking for shl_load" >&5
18299
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18300
if test "${ac_cv_func_shl_load+set}" = set; then
18301
echo $ECHO_N "(cached) $ECHO_C" >&6
18303
cat >conftest.$ac_ext <<_ACEOF
18306
cat confdefs.h >>conftest.$ac_ext
18307
cat >>conftest.$ac_ext <<_ACEOF
18308
/* end confdefs.h. */
18309
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18310
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18311
#define shl_load innocuous_shl_load
18313
/* System header to define __stub macros and hopefully few prototypes,
18314
which can conflict with char shl_load (); below.
18315
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18316
<limits.h> exists even on freestanding compilers. */
18319
# include <limits.h>
18321
# include <assert.h>
18326
/* Override any gcc2 internal prototype to avoid an error. */
18331
/* We use char because int might match the return type of a gcc2
18332
builtin and then its argument prototype would still apply. */
18334
/* The GNU C library defines this for functions which it implements
18335
to always fail with ENOSYS. Some functions are actually named
18336
something starting with __ and the normal name is an alias. */
18337
#if defined (__stub_shl_load) || defined (__stub___shl_load)
18340
char (*f) () = shl_load;
18349
return f != shl_load;
18354
rm -f conftest.$ac_objext conftest$ac_exeext
18355
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18356
(eval $ac_link) 2>conftest.er1
18358
grep -v '^ *+' conftest.er1 >conftest.err
18360
cat conftest.err >&5
18361
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362
(exit $ac_status); } &&
18363
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18364
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18365
(eval $ac_try) 2>&5
18367
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368
(exit $ac_status); }; } &&
18369
{ ac_try='test -s conftest$ac_exeext'
18370
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18371
(eval $ac_try) 2>&5
18373
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374
(exit $ac_status); }; }; then
18375
ac_cv_func_shl_load=yes
18377
echo "$as_me: failed program was:" >&5
18378
sed 's/^/| /' conftest.$ac_ext >&5
18380
ac_cv_func_shl_load=no
18382
rm -f conftest.err conftest.$ac_objext \
18383
conftest$ac_exeext conftest.$ac_ext
18385
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18386
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18387
if test $ac_cv_func_shl_load = yes; then
18388
lt_cv_dlopen="shl_load"
18390
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18391
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18392
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18393
echo $ECHO_N "(cached) $ECHO_C" >&6
18395
ac_check_lib_save_LIBS=$LIBS
18397
cat >conftest.$ac_ext <<_ACEOF
18400
cat confdefs.h >>conftest.$ac_ext
18401
cat >>conftest.$ac_ext <<_ACEOF
18402
/* end confdefs.h. */
18404
/* Override any gcc2 internal prototype to avoid an error. */
18408
/* We use char because int might match the return type of a gcc2
18409
builtin and then its argument prototype would still apply. */
18419
rm -f conftest.$ac_objext conftest$ac_exeext
18420
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18421
(eval $ac_link) 2>conftest.er1
18423
grep -v '^ *+' conftest.er1 >conftest.err
18425
cat conftest.err >&5
18426
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427
(exit $ac_status); } &&
18428
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18429
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18430
(eval $ac_try) 2>&5
18432
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433
(exit $ac_status); }; } &&
18434
{ ac_try='test -s conftest$ac_exeext'
18435
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18436
(eval $ac_try) 2>&5
18438
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439
(exit $ac_status); }; }; then
18440
ac_cv_lib_dld_shl_load=yes
18442
echo "$as_me: failed program was:" >&5
18443
sed 's/^/| /' conftest.$ac_ext >&5
18445
ac_cv_lib_dld_shl_load=no
18447
rm -f conftest.err conftest.$ac_objext \
18448
conftest$ac_exeext conftest.$ac_ext
18449
LIBS=$ac_check_lib_save_LIBS
18451
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18452
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18453
if test $ac_cv_lib_dld_shl_load = yes; then
18454
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18456
echo "$as_me:$LINENO: checking for dlopen" >&5
18457
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18458
if test "${ac_cv_func_dlopen+set}" = set; then
18459
echo $ECHO_N "(cached) $ECHO_C" >&6
18461
cat >conftest.$ac_ext <<_ACEOF
18464
cat confdefs.h >>conftest.$ac_ext
18465
cat >>conftest.$ac_ext <<_ACEOF
18466
/* end confdefs.h. */
18467
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18468
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18469
#define dlopen innocuous_dlopen
18471
/* System header to define __stub macros and hopefully few prototypes,
18472
which can conflict with char dlopen (); below.
18473
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18474
<limits.h> exists even on freestanding compilers. */
18477
# include <limits.h>
18479
# include <assert.h>
18484
/* Override any gcc2 internal prototype to avoid an error. */
18489
/* We use char because int might match the return type of a gcc2
18490
builtin and then its argument prototype would still apply. */
18492
/* The GNU C library defines this for functions which it implements
18493
to always fail with ENOSYS. Some functions are actually named
18494
something starting with __ and the normal name is an alias. */
18495
#if defined (__stub_dlopen) || defined (__stub___dlopen)
18498
char (*f) () = dlopen;
18507
return f != dlopen;
18512
rm -f conftest.$ac_objext conftest$ac_exeext
18513
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18514
(eval $ac_link) 2>conftest.er1
18516
grep -v '^ *+' conftest.er1 >conftest.err
18518
cat conftest.err >&5
18519
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520
(exit $ac_status); } &&
18521
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18522
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18523
(eval $ac_try) 2>&5
18525
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526
(exit $ac_status); }; } &&
18527
{ ac_try='test -s conftest$ac_exeext'
18528
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18529
(eval $ac_try) 2>&5
18531
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532
(exit $ac_status); }; }; then
18533
ac_cv_func_dlopen=yes
18535
echo "$as_me: failed program was:" >&5
18536
sed 's/^/| /' conftest.$ac_ext >&5
18538
ac_cv_func_dlopen=no
18540
rm -f conftest.err conftest.$ac_objext \
18541
conftest$ac_exeext conftest.$ac_ext
18543
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18544
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18545
if test $ac_cv_func_dlopen = yes; then
18546
lt_cv_dlopen="dlopen"
18548
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18549
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18550
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18551
echo $ECHO_N "(cached) $ECHO_C" >&6
18553
ac_check_lib_save_LIBS=$LIBS
18555
cat >conftest.$ac_ext <<_ACEOF
18558
cat confdefs.h >>conftest.$ac_ext
18559
cat >>conftest.$ac_ext <<_ACEOF
18560
/* end confdefs.h. */
18562
/* Override any gcc2 internal prototype to avoid an error. */
18566
/* We use char because int might match the return type of a gcc2
18567
builtin and then its argument prototype would still apply. */
18577
rm -f conftest.$ac_objext conftest$ac_exeext
18578
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18579
(eval $ac_link) 2>conftest.er1
18581
grep -v '^ *+' conftest.er1 >conftest.err
18583
cat conftest.err >&5
18584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585
(exit $ac_status); } &&
18586
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18587
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18588
(eval $ac_try) 2>&5
18590
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591
(exit $ac_status); }; } &&
18592
{ ac_try='test -s conftest$ac_exeext'
18593
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18594
(eval $ac_try) 2>&5
18596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597
(exit $ac_status); }; }; then
18598
ac_cv_lib_dl_dlopen=yes
18600
echo "$as_me: failed program was:" >&5
18601
sed 's/^/| /' conftest.$ac_ext >&5
18603
ac_cv_lib_dl_dlopen=no
18605
rm -f conftest.err conftest.$ac_objext \
18606
conftest$ac_exeext conftest.$ac_ext
18607
LIBS=$ac_check_lib_save_LIBS
18609
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18610
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18611
if test $ac_cv_lib_dl_dlopen = yes; then
18612
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18614
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18615
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18616
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18617
echo $ECHO_N "(cached) $ECHO_C" >&6
18619
ac_check_lib_save_LIBS=$LIBS
18620
LIBS="-lsvld $LIBS"
18621
cat >conftest.$ac_ext <<_ACEOF
18624
cat confdefs.h >>conftest.$ac_ext
18625
cat >>conftest.$ac_ext <<_ACEOF
18626
/* end confdefs.h. */
18628
/* Override any gcc2 internal prototype to avoid an error. */
18632
/* We use char because int might match the return type of a gcc2
18633
builtin and then its argument prototype would still apply. */
18643
rm -f conftest.$ac_objext conftest$ac_exeext
18644
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18645
(eval $ac_link) 2>conftest.er1
18647
grep -v '^ *+' conftest.er1 >conftest.err
18649
cat conftest.err >&5
18650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651
(exit $ac_status); } &&
18652
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18653
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18654
(eval $ac_try) 2>&5
18656
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657
(exit $ac_status); }; } &&
18658
{ ac_try='test -s conftest$ac_exeext'
18659
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18660
(eval $ac_try) 2>&5
18662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663
(exit $ac_status); }; }; then
18664
ac_cv_lib_svld_dlopen=yes
18666
echo "$as_me: failed program was:" >&5
18667
sed 's/^/| /' conftest.$ac_ext >&5
18669
ac_cv_lib_svld_dlopen=no
18671
rm -f conftest.err conftest.$ac_objext \
18672
conftest$ac_exeext conftest.$ac_ext
18673
LIBS=$ac_check_lib_save_LIBS
18675
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18676
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18677
if test $ac_cv_lib_svld_dlopen = yes; then
18678
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18680
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18681
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18682
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18683
echo $ECHO_N "(cached) $ECHO_C" >&6
18685
ac_check_lib_save_LIBS=$LIBS
18687
cat >conftest.$ac_ext <<_ACEOF
18690
cat confdefs.h >>conftest.$ac_ext
18691
cat >>conftest.$ac_ext <<_ACEOF
18692
/* end confdefs.h. */
18694
/* Override any gcc2 internal prototype to avoid an error. */
18698
/* We use char because int might match the return type of a gcc2
18699
builtin and then its argument prototype would still apply. */
18709
rm -f conftest.$ac_objext conftest$ac_exeext
18710
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18711
(eval $ac_link) 2>conftest.er1
18713
grep -v '^ *+' conftest.er1 >conftest.err
18715
cat conftest.err >&5
18716
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717
(exit $ac_status); } &&
18718
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18719
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18720
(eval $ac_try) 2>&5
18722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723
(exit $ac_status); }; } &&
18724
{ ac_try='test -s conftest$ac_exeext'
18725
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18726
(eval $ac_try) 2>&5
18728
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729
(exit $ac_status); }; }; then
18730
ac_cv_lib_dld_dld_link=yes
18732
echo "$as_me: failed program was:" >&5
18733
sed 's/^/| /' conftest.$ac_ext >&5
18735
ac_cv_lib_dld_dld_link=no
18737
rm -f conftest.err conftest.$ac_objext \
18738
conftest$ac_exeext conftest.$ac_ext
18739
LIBS=$ac_check_lib_save_LIBS
18741
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18742
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18743
if test $ac_cv_lib_dld_dld_link = yes; then
18744
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18765
if test "x$lt_cv_dlopen" != xno; then
18771
case $lt_cv_dlopen in
18773
save_CPPFLAGS="$CPPFLAGS"
18774
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18776
save_LDFLAGS="$LDFLAGS"
18777
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18780
LIBS="$lt_cv_dlopen_libs $LIBS"
18782
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18783
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18784
if test "${lt_cv_dlopen_self+set}" = set; then
18785
echo $ECHO_N "(cached) $ECHO_C" >&6
18787
if test "$cross_compiling" = yes; then :
18788
lt_cv_dlopen_self=cross
18790
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18791
lt_status=$lt_dlunknown
18792
cat > conftest.$ac_ext <<EOF
18793
#line 18793 "configure"
18794
#include "confdefs.h"
18803
# define LT_DLGLOBAL RTLD_GLOBAL
18806
# define LT_DLGLOBAL DL_GLOBAL
18808
# define LT_DLGLOBAL 0
18812
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18813
find out it does not work in some platform. */
18814
#ifndef LT_DLLAZY_OR_NOW
18816
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18819
# define LT_DLLAZY_OR_NOW DL_LAZY
18822
# define LT_DLLAZY_OR_NOW RTLD_NOW
18825
# define LT_DLLAZY_OR_NOW DL_NOW
18827
# define LT_DLLAZY_OR_NOW 0
18835
extern "C" void exit (int);
18838
void fnord() { int i=42;}
18841
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18842
int status = $lt_dlunknown;
18846
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18847
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18848
/* dlclose (self); */
18854
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18855
(eval $ac_link) 2>&5
18857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18859
(./conftest; exit; ) 2>/dev/null
18861
case x$lt_status in
18862
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18863
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18864
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18867
# compilation failed
18868
lt_cv_dlopen_self=no
18875
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18876
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18878
if test "x$lt_cv_dlopen_self" = xyes; then
18879
LDFLAGS="$LDFLAGS $link_static_flag"
18880
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18881
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18882
if test "${lt_cv_dlopen_self_static+set}" = set; then
18883
echo $ECHO_N "(cached) $ECHO_C" >&6
18885
if test "$cross_compiling" = yes; then :
18886
lt_cv_dlopen_self_static=cross
18888
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18889
lt_status=$lt_dlunknown
18890
cat > conftest.$ac_ext <<EOF
18891
#line 18891 "configure"
18892
#include "confdefs.h"
18901
# define LT_DLGLOBAL RTLD_GLOBAL
18904
# define LT_DLGLOBAL DL_GLOBAL
18906
# define LT_DLGLOBAL 0
18910
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18911
find out it does not work in some platform. */
18912
#ifndef LT_DLLAZY_OR_NOW
18914
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18917
# define LT_DLLAZY_OR_NOW DL_LAZY
18920
# define LT_DLLAZY_OR_NOW RTLD_NOW
18923
# define LT_DLLAZY_OR_NOW DL_NOW
18925
# define LT_DLLAZY_OR_NOW 0
18933
extern "C" void exit (int);
18936
void fnord() { int i=42;}
18939
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18940
int status = $lt_dlunknown;
18944
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18945
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18946
/* dlclose (self); */
18952
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18953
(eval $ac_link) 2>&5
18955
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18957
(./conftest; exit; ) 2>/dev/null
18959
case x$lt_status in
18960
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18961
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18962
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18965
# compilation failed
18966
lt_cv_dlopen_self_static=no
18973
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18974
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18977
CPPFLAGS="$save_CPPFLAGS"
18978
LDFLAGS="$save_LDFLAGS"
18983
case $lt_cv_dlopen_self in
18984
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18985
*) enable_dlopen_self=unknown ;;
18988
case $lt_cv_dlopen_self_static in
18989
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18990
*) enable_dlopen_self_static=unknown ;;
18995
# The else clause should only fire when bootstrapping the
18996
# libtool distribution, otherwise you forgot to ship ltmain.sh
18997
# with your package, and you will get complaints that there are
18998
# no rules to generate ltmain.sh.
18999
if test -f "$ltmain"; then
19000
# See if we are running on zsh, and set the options which allow our commands through
19001
# without removal of \ escapes.
19002
if test -n "${ZSH_VERSION+set}" ; then
19003
setopt NO_GLOB_SUBST
19005
# Now quote all the things that may contain metacharacters while being
19006
# careful not to overquote the AC_SUBSTed values. We take copies of the
19007
# variables and quote the copies for generation of the libtool script.
19008
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19010
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19011
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19012
deplibs_check_method reload_flag reload_cmds need_locks \
19013
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19014
lt_cv_sys_global_symbol_to_c_name_address \
19015
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19016
old_postinstall_cmds old_postuninstall_cmds \
19020
lt_prog_compiler_wl_GCJ \
19021
lt_prog_compiler_pic_GCJ \
19022
lt_prog_compiler_static_GCJ \
19023
lt_prog_compiler_no_builtin_flag_GCJ \
19024
export_dynamic_flag_spec_GCJ \
19025
thread_safe_flag_spec_GCJ \
19026
whole_archive_flag_spec_GCJ \
19027
enable_shared_with_static_runtimes_GCJ \
19028
old_archive_cmds_GCJ \
19029
old_archive_from_new_cmds_GCJ \
19030
predep_objects_GCJ \
19031
postdep_objects_GCJ \
19034
compiler_lib_search_path_GCJ \
19036
archive_expsym_cmds_GCJ \
19037
postinstall_cmds_GCJ \
19038
postuninstall_cmds_GCJ \
19039
old_archive_from_expsyms_cmds_GCJ \
19040
allow_undefined_flag_GCJ \
19041
no_undefined_flag_GCJ \
19042
export_symbols_cmds_GCJ \
19043
hardcode_libdir_flag_spec_GCJ \
19044
hardcode_libdir_flag_spec_ld_GCJ \
19045
hardcode_libdir_separator_GCJ \
19046
hardcode_automatic_GCJ \
19048
module_expsym_cmds_GCJ \
19049
lt_cv_prog_compiler_c_o_GCJ \
19050
exclude_expsyms_GCJ \
19051
include_expsyms_GCJ; do
19054
old_archive_cmds_GCJ | \
19055
old_archive_from_new_cmds_GCJ | \
19056
archive_cmds_GCJ | \
19057
archive_expsym_cmds_GCJ | \
19058
module_cmds_GCJ | \
19059
module_expsym_cmds_GCJ | \
19060
old_archive_from_expsyms_cmds_GCJ | \
19061
export_symbols_cmds_GCJ | \
19062
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19063
postinstall_cmds | postuninstall_cmds | \
19064
old_postinstall_cmds | old_postuninstall_cmds | \
19065
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19066
# Double-quote double-evaled strings.
19067
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19070
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19076
*'\$0 --fallback-echo"')
19077
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19083
cat <<__EOF__ >> "$cfgfile"
19084
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19086
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19088
# Shell to use when invoking shell scripts.
19091
# Whether or not to build shared libraries.
19092
build_libtool_libs=$enable_shared
19094
# Whether or not to build static libraries.
19095
build_old_libs=$enable_static
19097
# Whether or not to add -lc for building shared libraries.
19098
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19100
# Whether or not to disallow shared libs when runtime libs are static
19101
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19103
# Whether or not to optimize for fast installation.
19104
fast_install=$enable_fast_install
19107
host_alias=$host_alias
19110
# An echo program that does not interpret backslashes.
19115
AR_FLAGS=$lt_AR_FLAGS
19120
# A language-specific compiler.
19121
CC=$lt_compiler_GCJ
19123
# Is the compiler the GNU C compiler?
19129
# The linker used to build libraries.
19132
# Whether we need hard or soft links.
19135
# A BSD-compatible nm program.
19138
# A symbol stripping program
19141
# Used to examine libraries when file_magic_cmd begins "file"
19142
MAGIC_CMD=$MAGIC_CMD
19144
# Used on cygwin: DLL creation program.
19147
# Used on cygwin: object dumper.
19150
# Used on cygwin: assembler.
19153
# The name of the directory that contains temporary libtool files.
19156
# How to create reloadable object files.
19157
reload_flag=$lt_reload_flag
19158
reload_cmds=$lt_reload_cmds
19160
# How to pass a linker flag through the compiler.
19161
wl=$lt_lt_prog_compiler_wl_GCJ
19163
# Object file suffix (normally "o").
19164
objext="$ac_objext"
19166
# Old archive suffix (normally "a").
19169
# Shared library suffix (normally ".so").
19172
# Executable file suffix (normally "").
19175
# Additional compiler flags for building library objects.
19176
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19179
# What is the maximum length of a command?
19180
max_cmd_len=$lt_cv_sys_max_cmd_len
19182
# Does compiler simultaneously support -c and -o options?
19183
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19185
# Must we lock files when doing compilation ?
19186
need_locks=$lt_need_locks
19188
# Do we need the lib prefix for modules?
19189
need_lib_prefix=$need_lib_prefix
19191
# Do we need a version for libraries?
19192
need_version=$need_version
19194
# Whether dlopen is supported.
19195
dlopen_support=$enable_dlopen
19197
# Whether dlopen of programs is supported.
19198
dlopen_self=$enable_dlopen_self
19200
# Whether dlopen of statically linked programs is supported.
19201
dlopen_self_static=$enable_dlopen_self_static
19203
# Compiler flag to prevent dynamic linking.
19204
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19206
# Compiler flag to turn off builtin functions.
19207
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19209
# Compiler flag to allow reflexive dlopens.
19210
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19212
# Compiler flag to generate shared objects directly from archives.
19213
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19215
# Compiler flag to generate thread-safe objects.
19216
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19218
# Library versioning type.
19219
version_type=$version_type
19221
# Format of library name prefix.
19222
libname_spec=$lt_libname_spec
19224
# List of archive names. First name is the real one, the rest are links.
19225
# The last name is the one that the linker finds with -lNAME.
19226
library_names_spec=$lt_library_names_spec
19228
# The coded name of the library, if different from the real name.
19229
soname_spec=$lt_soname_spec
19231
# Commands used to build and install an old-style archive.
19233
old_archive_cmds=$lt_old_archive_cmds_GCJ
19234
old_postinstall_cmds=$lt_old_postinstall_cmds
19235
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19237
# Create an old-style archive from a shared archive.
19238
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19240
# Create a temporary old-style archive to link instead of a shared archive.
19241
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19243
# Commands used to build and install a shared archive.
19244
archive_cmds=$lt_archive_cmds_GCJ
19245
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19246
postinstall_cmds=$lt_postinstall_cmds
19247
postuninstall_cmds=$lt_postuninstall_cmds
19249
# Commands used to build a loadable module (assumed same as above if empty)
19250
module_cmds=$lt_module_cmds_GCJ
19251
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19253
# Commands to strip libraries.
19254
old_striplib=$lt_old_striplib
19255
striplib=$lt_striplib
19257
# Dependencies to place before the objects being linked to create a
19259
predep_objects=$lt_predep_objects_GCJ
19261
# Dependencies to place after the objects being linked to create a
19263
postdep_objects=$lt_postdep_objects_GCJ
19265
# Dependencies to place before the objects being linked to create a
19267
predeps=$lt_predeps_GCJ
19269
# Dependencies to place after the objects being linked to create a
19271
postdeps=$lt_postdeps_GCJ
19273
# The library search path used internally by the compiler when linking
19274
# a shared library.
19275
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19277
# Method to check whether dependent libraries are shared objects.
19278
deplibs_check_method=$lt_deplibs_check_method
19280
# Command to use when deplibs_check_method == file_magic.
19281
file_magic_cmd=$lt_file_magic_cmd
19283
# Flag that allows shared libraries with undefined symbols to be built.
19284
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19286
# Flag that forces no undefined symbols.
19287
no_undefined_flag=$lt_no_undefined_flag_GCJ
19289
# Commands used to finish a libtool library installation in a directory.
19290
finish_cmds=$lt_finish_cmds
19292
# Same as above, but a single script fragment to be evaled but not shown.
19293
finish_eval=$lt_finish_eval
19295
# Take the output of nm and produce a listing of raw symbols and C names.
19296
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19298
# Transform the output of nm in a proper C declaration
19299
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19301
# Transform the output of nm in a C name address pair
19302
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19304
# This is the shared library runtime path variable.
19305
runpath_var=$runpath_var
19307
# This is the shared library path variable.
19308
shlibpath_var=$shlibpath_var
19310
# Is shlibpath searched before the hard-coded library search path?
19311
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19313
# How to hardcode a shared library path into an executable.
19314
hardcode_action=$hardcode_action_GCJ
19316
# Whether we should hardcode library paths into libraries.
19317
hardcode_into_libs=$hardcode_into_libs
19319
# Flag to hardcode \$libdir into a binary during linking.
19320
# This must work even if \$libdir does not exist.
19321
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19323
# If ld is used when linking, flag to hardcode \$libdir into
19324
# a binary during linking. This must work even if \$libdir does
19326
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19328
# Whether we need a single -rpath flag with a separated argument.
19329
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19331
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19332
# resulting binary.
19333
hardcode_direct=$hardcode_direct_GCJ
19335
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19336
# resulting binary.
19337
hardcode_minus_L=$hardcode_minus_L_GCJ
19339
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19340
# the resulting binary.
19341
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19343
# Set to yes if building a shared library automatically hardcodes DIR into the library
19344
# and all subsequent libraries and executables linked against it.
19345
hardcode_automatic=$hardcode_automatic_GCJ
19347
# Variables whose values should be saved in libtool wrapper scripts and
19348
# restored at relink time.
19349
variables_saved_for_relink="$variables_saved_for_relink"
19351
# Whether libtool must link a program against all its dependency libraries.
19352
link_all_deplibs=$link_all_deplibs_GCJ
19354
# Compile-time system search path for libraries
19355
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19357
# Run-time system search path for libraries
19358
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19360
# Fix the shell variable \$srcfile for the compiler.
19361
fix_srcfile_path="$fix_srcfile_path_GCJ"
19363
# Set to yes if exported symbols are required.
19364
always_export_symbols=$always_export_symbols_GCJ
19366
# The commands to list exported symbols.
19367
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19369
# The commands to extract the exported symbol list from a shared archive.
19370
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19372
# Symbols that should not be listed in the preloaded symbols.
19373
exclude_expsyms=$lt_exclude_expsyms_GCJ
19375
# Symbols that must always be exported.
19376
include_expsyms=$lt_include_expsyms_GCJ
19378
# ### END LIBTOOL TAG CONFIG: $tagname
19384
# If there is no Makefile yet, we rely on a make rule to execute
19385
# `config.status --recheck' to rerun these tests and create the
19386
# libtool script then.
19387
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19388
if test -f "$ltmain_in"; then
19389
test -f Makefile && make "$ltmain"
19395
ac_cpp='$CPP $CPPFLAGS'
19396
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19397
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19398
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19411
# Source file extension for RC test sources.
19414
# Object file extension for compiled RC test sources.
19418
# Code to be used in simple compile tests
19419
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19421
# Code to be used in simple link tests
19422
lt_simple_link_test_code="$lt_simple_compile_test_code"
19424
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19426
# If no C compiler was specified, use CC.
19429
# Allow CC to be a program name with arguments.
19433
# Allow CC to be a program name with arguments.
19438
lt_cv_prog_compiler_c_o_RC=yes
19440
# The else clause should only fire when bootstrapping the
19441
# libtool distribution, otherwise you forgot to ship ltmain.sh
19442
# with your package, and you will get complaints that there are
19443
# no rules to generate ltmain.sh.
19444
if test -f "$ltmain"; then
19445
# See if we are running on zsh, and set the options which allow our commands through
19446
# without removal of \ escapes.
19447
if test -n "${ZSH_VERSION+set}" ; then
19448
setopt NO_GLOB_SUBST
19450
# Now quote all the things that may contain metacharacters while being
19451
# careful not to overquote the AC_SUBSTed values. We take copies of the
19452
# variables and quote the copies for generation of the libtool script.
19453
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19455
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19456
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19457
deplibs_check_method reload_flag reload_cmds need_locks \
19458
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19459
lt_cv_sys_global_symbol_to_c_name_address \
19460
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19461
old_postinstall_cmds old_postuninstall_cmds \
19465
lt_prog_compiler_wl_RC \
19466
lt_prog_compiler_pic_RC \
19467
lt_prog_compiler_static_RC \
19468
lt_prog_compiler_no_builtin_flag_RC \
19469
export_dynamic_flag_spec_RC \
19470
thread_safe_flag_spec_RC \
19471
whole_archive_flag_spec_RC \
19472
enable_shared_with_static_runtimes_RC \
19473
old_archive_cmds_RC \
19474
old_archive_from_new_cmds_RC \
19475
predep_objects_RC \
19476
postdep_objects_RC \
19479
compiler_lib_search_path_RC \
19481
archive_expsym_cmds_RC \
19482
postinstall_cmds_RC \
19483
postuninstall_cmds_RC \
19484
old_archive_from_expsyms_cmds_RC \
19485
allow_undefined_flag_RC \
19486
no_undefined_flag_RC \
19487
export_symbols_cmds_RC \
19488
hardcode_libdir_flag_spec_RC \
19489
hardcode_libdir_flag_spec_ld_RC \
19490
hardcode_libdir_separator_RC \
19491
hardcode_automatic_RC \
19493
module_expsym_cmds_RC \
19494
lt_cv_prog_compiler_c_o_RC \
19495
exclude_expsyms_RC \
19496
include_expsyms_RC; do
19499
old_archive_cmds_RC | \
19500
old_archive_from_new_cmds_RC | \
19501
archive_cmds_RC | \
19502
archive_expsym_cmds_RC | \
19504
module_expsym_cmds_RC | \
19505
old_archive_from_expsyms_cmds_RC | \
19506
export_symbols_cmds_RC | \
19507
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19508
postinstall_cmds | postuninstall_cmds | \
19509
old_postinstall_cmds | old_postuninstall_cmds | \
19510
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19511
# Double-quote double-evaled strings.
19512
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19515
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19521
*'\$0 --fallback-echo"')
19522
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19528
cat <<__EOF__ >> "$cfgfile"
19529
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19531
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19533
# Shell to use when invoking shell scripts.
19536
# Whether or not to build shared libraries.
19537
build_libtool_libs=$enable_shared
19539
# Whether or not to build static libraries.
19540
build_old_libs=$enable_static
19542
# Whether or not to add -lc for building shared libraries.
19543
build_libtool_need_lc=$archive_cmds_need_lc_RC
19545
# Whether or not to disallow shared libs when runtime libs are static
19546
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19548
# Whether or not to optimize for fast installation.
19549
fast_install=$enable_fast_install
19552
host_alias=$host_alias
19555
# An echo program that does not interpret backslashes.
19560
AR_FLAGS=$lt_AR_FLAGS
19565
# A language-specific compiler.
19568
# Is the compiler the GNU C compiler?
19574
# The linker used to build libraries.
19577
# Whether we need hard or soft links.
19580
# A BSD-compatible nm program.
19583
# A symbol stripping program
19586
# Used to examine libraries when file_magic_cmd begins "file"
19587
MAGIC_CMD=$MAGIC_CMD
19589
# Used on cygwin: DLL creation program.
19592
# Used on cygwin: object dumper.
19595
# Used on cygwin: assembler.
19598
# The name of the directory that contains temporary libtool files.
19601
# How to create reloadable object files.
19602
reload_flag=$lt_reload_flag
19603
reload_cmds=$lt_reload_cmds
19605
# How to pass a linker flag through the compiler.
19606
wl=$lt_lt_prog_compiler_wl_RC
19608
# Object file suffix (normally "o").
19609
objext="$ac_objext"
19611
# Old archive suffix (normally "a").
19614
# Shared library suffix (normally ".so").
19617
# Executable file suffix (normally "").
19620
# Additional compiler flags for building library objects.
19621
pic_flag=$lt_lt_prog_compiler_pic_RC
19624
# What is the maximum length of a command?
19625
max_cmd_len=$lt_cv_sys_max_cmd_len
19627
# Does compiler simultaneously support -c and -o options?
19628
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19630
# Must we lock files when doing compilation ?
19631
need_locks=$lt_need_locks
19633
# Do we need the lib prefix for modules?
19634
need_lib_prefix=$need_lib_prefix
19636
# Do we need a version for libraries?
19637
need_version=$need_version
19639
# Whether dlopen is supported.
19640
dlopen_support=$enable_dlopen
19642
# Whether dlopen of programs is supported.
19643
dlopen_self=$enable_dlopen_self
19645
# Whether dlopen of statically linked programs is supported.
19646
dlopen_self_static=$enable_dlopen_self_static
19648
# Compiler flag to prevent dynamic linking.
19649
link_static_flag=$lt_lt_prog_compiler_static_RC
19651
# Compiler flag to turn off builtin functions.
19652
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19654
# Compiler flag to allow reflexive dlopens.
19655
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19657
# Compiler flag to generate shared objects directly from archives.
19658
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19660
# Compiler flag to generate thread-safe objects.
19661
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19663
# Library versioning type.
19664
version_type=$version_type
19666
# Format of library name prefix.
19667
libname_spec=$lt_libname_spec
19669
# List of archive names. First name is the real one, the rest are links.
19670
# The last name is the one that the linker finds with -lNAME.
19671
library_names_spec=$lt_library_names_spec
19673
# The coded name of the library, if different from the real name.
19674
soname_spec=$lt_soname_spec
19676
# Commands used to build and install an old-style archive.
19678
old_archive_cmds=$lt_old_archive_cmds_RC
19679
old_postinstall_cmds=$lt_old_postinstall_cmds
19680
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19682
# Create an old-style archive from a shared archive.
19683
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19685
# Create a temporary old-style archive to link instead of a shared archive.
19686
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19688
# Commands used to build and install a shared archive.
19689
archive_cmds=$lt_archive_cmds_RC
19690
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19691
postinstall_cmds=$lt_postinstall_cmds
19692
postuninstall_cmds=$lt_postuninstall_cmds
19694
# Commands used to build a loadable module (assumed same as above if empty)
19695
module_cmds=$lt_module_cmds_RC
19696
module_expsym_cmds=$lt_module_expsym_cmds_RC
19698
# Commands to strip libraries.
19699
old_striplib=$lt_old_striplib
19700
striplib=$lt_striplib
19702
# Dependencies to place before the objects being linked to create a
19704
predep_objects=$lt_predep_objects_RC
19706
# Dependencies to place after the objects being linked to create a
19708
postdep_objects=$lt_postdep_objects_RC
19710
# Dependencies to place before the objects being linked to create a
19712
predeps=$lt_predeps_RC
19714
# Dependencies to place after the objects being linked to create a
19716
postdeps=$lt_postdeps_RC
19718
# The library search path used internally by the compiler when linking
19719
# a shared library.
19720
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19722
# Method to check whether dependent libraries are shared objects.
19723
deplibs_check_method=$lt_deplibs_check_method
19725
# Command to use when deplibs_check_method == file_magic.
19726
file_magic_cmd=$lt_file_magic_cmd
19728
# Flag that allows shared libraries with undefined symbols to be built.
19729
allow_undefined_flag=$lt_allow_undefined_flag_RC
19731
# Flag that forces no undefined symbols.
19732
no_undefined_flag=$lt_no_undefined_flag_RC
19734
# Commands used to finish a libtool library installation in a directory.
19735
finish_cmds=$lt_finish_cmds
19737
# Same as above, but a single script fragment to be evaled but not shown.
19738
finish_eval=$lt_finish_eval
19740
# Take the output of nm and produce a listing of raw symbols and C names.
19741
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19743
# Transform the output of nm in a proper C declaration
19744
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19746
# Transform the output of nm in a C name address pair
19747
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19749
# This is the shared library runtime path variable.
19750
runpath_var=$runpath_var
19752
# This is the shared library path variable.
19753
shlibpath_var=$shlibpath_var
19755
# Is shlibpath searched before the hard-coded library search path?
19756
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19758
# How to hardcode a shared library path into an executable.
19759
hardcode_action=$hardcode_action_RC
19761
# Whether we should hardcode library paths into libraries.
19762
hardcode_into_libs=$hardcode_into_libs
19764
# Flag to hardcode \$libdir into a binary during linking.
19765
# This must work even if \$libdir does not exist.
19766
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19768
# If ld is used when linking, flag to hardcode \$libdir into
19769
# a binary during linking. This must work even if \$libdir does
19771
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19773
# Whether we need a single -rpath flag with a separated argument.
19774
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19776
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19777
# resulting binary.
19778
hardcode_direct=$hardcode_direct_RC
19780
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19781
# resulting binary.
19782
hardcode_minus_L=$hardcode_minus_L_RC
19784
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19785
# the resulting binary.
19786
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19788
# Set to yes if building a shared library automatically hardcodes DIR into the library
19789
# and all subsequent libraries and executables linked against it.
19790
hardcode_automatic=$hardcode_automatic_RC
19792
# Variables whose values should be saved in libtool wrapper scripts and
19793
# restored at relink time.
19794
variables_saved_for_relink="$variables_saved_for_relink"
19796
# Whether libtool must link a program against all its dependency libraries.
19797
link_all_deplibs=$link_all_deplibs_RC
19799
# Compile-time system search path for libraries
19800
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19802
# Run-time system search path for libraries
19803
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19805
# Fix the shell variable \$srcfile for the compiler.
19806
fix_srcfile_path="$fix_srcfile_path_RC"
19808
# Set to yes if exported symbols are required.
19809
always_export_symbols=$always_export_symbols_RC
19811
# The commands to list exported symbols.
19812
export_symbols_cmds=$lt_export_symbols_cmds_RC
19814
# The commands to extract the exported symbol list from a shared archive.
19815
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19817
# Symbols that should not be listed in the preloaded symbols.
19818
exclude_expsyms=$lt_exclude_expsyms_RC
19820
# Symbols that must always be exported.
19821
include_expsyms=$lt_include_expsyms_RC
19823
# ### END LIBTOOL TAG CONFIG: $tagname
19829
# If there is no Makefile yet, we rely on a make rule to execute
19830
# `config.status --recheck' to rerun these tests and create the
19831
# libtool script then.
19832
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19833
if test -f "$ltmain_in"; then
19834
test -f Makefile && make "$ltmain"
19840
ac_cpp='$CPP $CPPFLAGS'
19841
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19842
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19843
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19850
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19851
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19852
{ (exit 1); exit 1; }; }
19856
# Append the new tag name to the list of available tags.
19857
if test -n "$tagname" ; then
19858
available_tags="$available_tags $tagname"
19864
# Now substitute the updated list of available tags.
19865
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19866
mv "${ofile}T" "$ofile"
19870
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19871
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19872
{ (exit 1); exit 1; }; }
19878
# This can be used to rebuild libtool when needed
19879
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19881
# Always use our own libtool.
19882
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19884
# Prevent multiple expansion
19907
# Check whether --with-gnu-ld or --without-gnu-ld was given.
19908
if test "${with_gnu_ld+set}" = set; then
19909
withval="$with_gnu_ld"
19910
test "$withval" = no || with_gnu_ld=yes
19914
# Prepare PATH_SEPARATOR.
19915
# The user is always right.
19916
if test "${PATH_SEPARATOR+set}" != set; then
19917
echo "#! /bin/sh" >conf$$.sh
19918
echo "exit 0" >>conf$$.sh
19920
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19928
if test "$GCC" = yes; then
19929
# Check if gcc -print-prog-name=ld gives a path.
19930
echo "$as_me:$LINENO: checking for ld used by GCC" >&5
19931
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
19934
# gcc leaves a trailing carriage return which upsets mingw
19935
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19937
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19940
# Accept absolute paths.
19941
[\\/]* | [A-Za-z]:[\\/]*)
19942
re_direlt='/[^/][^/]*/\.\./'
19943
# Canonicalize the path of ld
19944
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
19945
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
19946
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
19948
test -z "$LD" && LD="$ac_prog"
19951
# If it fails, then pretend we aren't using GCC.
19955
# If it is relative, then search for the first ld in PATH.
19956
with_gnu_ld=unknown
19959
elif test "$with_gnu_ld" = yes; then
19960
echo "$as_me:$LINENO: checking for GNU ld" >&5
19961
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
19963
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
19964
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
19966
if test "${acl_cv_path_LD+set}" = set; then
19967
echo $ECHO_N "(cached) $ECHO_C" >&6
19969
if test -z "$LD"; then
19970
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
19971
for ac_dir in $PATH; do
19972
test -z "$ac_dir" && ac_dir=.
19973
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19974
acl_cv_path_LD="$ac_dir/$ac_prog"
19975
# Check to see if the program is GNU ld. I'd rather use --version,
19976
# but apparently some GNU ld's only accept -v.
19977
# Break only if it was the GNU/non-GNU ld that we prefer.
19978
case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
19979
*GNU* | *'with BFD'*)
19980
test "$with_gnu_ld" != no && break ;;
19982
test "$with_gnu_ld" != yes && break ;;
19988
acl_cv_path_LD="$LD" # Let the user override the test with a path.
19992
LD="$acl_cv_path_LD"
19993
if test -n "$LD"; then
19994
echo "$as_me:$LINENO: result: $LD" >&5
19995
echo "${ECHO_T}$LD" >&6
19997
echo "$as_me:$LINENO: result: no" >&5
19998
echo "${ECHO_T}no" >&6
20000
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
20001
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
20002
{ (exit 1); exit 1; }; }
20003
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
20004
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
20005
if test "${acl_cv_prog_gnu_ld+set}" = set; then
20006
echo $ECHO_N "(cached) $ECHO_C" >&6
20008
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
20009
case `$LD -v 2>&1 </dev/null` in
20010
*GNU* | *'with BFD'*)
20011
acl_cv_prog_gnu_ld=yes ;;
20013
acl_cv_prog_gnu_ld=no ;;
20016
echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
20017
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
20018
with_gnu_ld=$acl_cv_prog_gnu_ld
20022
echo "$as_me:$LINENO: checking for shared library path variable" >&5
20023
echo $ECHO_N "checking for shared library path variable... $ECHO_C" >&6
20024
if test "${acl_cv_libpath+set}" = set; then
20025
echo $ECHO_N "(cached) $ECHO_C" >&6
20029
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
20031
rm -f ./conftest.sh
20032
acl_cv_libpath=${acl_cv_shlibpath_var:-none}
20035
echo "$as_me:$LINENO: result: $acl_cv_libpath" >&5
20036
echo "${ECHO_T}$acl_cv_libpath" >&6
20037
shlibpath_var="$acl_cv_shlibpath_var"
20040
echo "$as_me:$LINENO: checking whether to activate relocatable installation" >&5
20041
echo $ECHO_N "checking whether to activate relocatable installation... $ECHO_C" >&6
20042
# Check whether --enable-relocatable or --disable-relocatable was given.
20043
if test "${enable_relocatable+set}" = set; then
20044
enableval="$enable_relocatable"
20045
if test "$enableval" != no; then
20055
echo "$as_me:$LINENO: result: $RELOCATABLE" >&5
20056
echo "${ECHO_T}$RELOCATABLE" >&6
20060
if test "X$prefix" = "XNONE"; then
20061
reloc_final_prefix="$ac_default_prefix"
20063
reloc_final_prefix="$prefix"
20066
cat >>confdefs.h <<_ACEOF
20067
#define INSTALLPREFIX "${reloc_final_prefix}"
20076
use_elf_origin_trick=no
20077
if test $RELOCATABLE = yes; then
20078
# --enable-relocatable implies --disable-rpath
20081
"relocatable.$ac_objext" | \
20082
*" relocatable.$ac_objext" | \
20083
"relocatable.$ac_objext "* | \
20084
*" relocatable.$ac_objext "* ) ;;
20085
*) LIBOBJS="$LIBOBJS relocatable.$ac_objext" ;;
20089
cat >>confdefs.h <<\_ACEOF
20090
#define ENABLE_RELOCATABLE 1
20094
linux*) use_elf_origin_trick=yes ;;
20096
if test $use_elf_origin_trick = yes; then
20097
case "$ac_aux_dir" in
20098
/*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
20099
*) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
20101
SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
20103
SET_RELOCATABLE="INSTALL_PROGRAM_ENV = RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\""
20104
case "$ac_aux_dir" in
20105
/*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
20106
*) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
20115
if test $use_elf_origin_trick = yes; then
20116
RELOCATABLE_VIA_LD_TRUE=
20117
RELOCATABLE_VIA_LD_FALSE='#'
20119
RELOCATABLE_VIA_LD_TRUE='#'
20120
RELOCATABLE_VIA_LD_FALSE=
20127
for ac_header in string.h
20129
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20130
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20131
echo "$as_me:$LINENO: checking for $ac_header" >&5
20132
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20133
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20134
echo $ECHO_N "(cached) $ECHO_C" >&6
20136
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20137
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20139
# Is the header compilable?
20140
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20141
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20142
cat >conftest.$ac_ext <<_ACEOF
20145
cat confdefs.h >>conftest.$ac_ext
20146
cat >>conftest.$ac_ext <<_ACEOF
20147
/* end confdefs.h. */
20148
$ac_includes_default
20149
#include <$ac_header>
20151
rm -f conftest.$ac_objext
20152
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20153
(eval $ac_compile) 2>conftest.er1
20155
grep -v '^ *+' conftest.er1 >conftest.err
20157
cat conftest.err >&5
20158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159
(exit $ac_status); } &&
20160
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20161
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20162
(eval $ac_try) 2>&5
20164
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165
(exit $ac_status); }; } &&
20166
{ ac_try='test -s conftest.$ac_objext'
20167
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20168
(eval $ac_try) 2>&5
20170
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171
(exit $ac_status); }; }; then
20172
ac_header_compiler=yes
20174
echo "$as_me: failed program was:" >&5
20175
sed 's/^/| /' conftest.$ac_ext >&5
20177
ac_header_compiler=no
20179
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20180
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20181
echo "${ECHO_T}$ac_header_compiler" >&6
20183
# Is the header present?
20184
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20185
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20186
cat >conftest.$ac_ext <<_ACEOF
20189
cat confdefs.h >>conftest.$ac_ext
20190
cat >>conftest.$ac_ext <<_ACEOF
20191
/* end confdefs.h. */
20192
#include <$ac_header>
20194
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20195
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20197
grep -v '^ *+' conftest.er1 >conftest.err
20199
cat conftest.err >&5
20200
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201
(exit $ac_status); } >/dev/null; then
20202
if test -s conftest.err; then
20203
ac_cpp_err=$ac_c_preproc_warn_flag
20204
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20211
if test -z "$ac_cpp_err"; then
20212
ac_header_preproc=yes
20214
echo "$as_me: failed program was:" >&5
20215
sed 's/^/| /' conftest.$ac_ext >&5
20217
ac_header_preproc=no
20219
rm -f conftest.err conftest.$ac_ext
20220
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20221
echo "${ECHO_T}$ac_header_preproc" >&6
20223
# So? What about this header?
20224
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20226
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20227
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20228
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20229
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20230
ac_header_preproc=yes
20233
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20234
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20235
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20236
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20237
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20238
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20239
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20240
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20241
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20242
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20243
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20244
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20247
## ------------------------------------------ ##
20248
## Report this to the AC_PACKAGE_NAME lists. ##
20249
## ------------------------------------------ ##
20252
sed "s/^/$as_me: WARNING: /" >&2
20255
echo "$as_me:$LINENO: checking for $ac_header" >&5
20256
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20257
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20258
echo $ECHO_N "(cached) $ECHO_C" >&6
20260
eval "$as_ac_Header=\$ac_header_preproc"
20262
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20263
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20266
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20267
cat >>confdefs.h <<_ACEOF
20268
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20275
echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
20276
echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
20277
if test "${ac_cv_header_stdbool_h+set}" = set; then
20278
echo $ECHO_N "(cached) $ECHO_C" >&6
20280
cat >conftest.$ac_ext <<_ACEOF
20283
cat confdefs.h >>conftest.$ac_ext
20284
cat >>conftest.$ac_ext <<_ACEOF
20285
/* end confdefs.h. */
20287
#include <stdbool.h>
20289
# error bool is not defined
20292
# error false is not defined
20295
# error false is not 0
20298
# error true is not defined
20301
# error true is not 1
20303
#ifndef __bool_true_false_are_defined
20304
# error __bool_true_false_are_defined is not defined
20307
struct s { _Bool s: 1; _Bool t; } s;
20309
char a[true == 1 ? 1 : -1];
20310
char b[false == 0 ? 1 : -1];
20311
char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20312
char d[(bool) -0.5 == true ? 1 : -1];
20314
char f[(_Bool) -0.0 == false ? 1 : -1];
20316
char h[sizeof (_Bool)];
20317
char i[sizeof s.t];
20322
return !a + !b + !c + !d + !e + !f + !g + !h + !i;
20327
rm -f conftest.$ac_objext
20328
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20329
(eval $ac_compile) 2>conftest.er1
20331
grep -v '^ *+' conftest.er1 >conftest.err
20333
cat conftest.err >&5
20334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335
(exit $ac_status); } &&
20336
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20337
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20338
(eval $ac_try) 2>&5
20340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341
(exit $ac_status); }; } &&
20342
{ ac_try='test -s conftest.$ac_objext'
20343
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344
(eval $ac_try) 2>&5
20346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347
(exit $ac_status); }; }; then
20348
ac_cv_header_stdbool_h=yes
20350
echo "$as_me: failed program was:" >&5
20351
sed 's/^/| /' conftest.$ac_ext >&5
20353
ac_cv_header_stdbool_h=no
20355
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20357
echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
20358
echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
20359
echo "$as_me:$LINENO: checking for _Bool" >&5
20360
echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
20361
if test "${ac_cv_type__Bool+set}" = set; then
20362
echo $ECHO_N "(cached) $ECHO_C" >&6
20364
cat >conftest.$ac_ext <<_ACEOF
20367
cat confdefs.h >>conftest.$ac_ext
20368
cat >>conftest.$ac_ext <<_ACEOF
20369
/* end confdefs.h. */
20370
$ac_includes_default
20376
if (sizeof (_Bool))
20382
rm -f conftest.$ac_objext
20383
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20384
(eval $ac_compile) 2>conftest.er1
20386
grep -v '^ *+' conftest.er1 >conftest.err
20388
cat conftest.err >&5
20389
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390
(exit $ac_status); } &&
20391
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20392
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20393
(eval $ac_try) 2>&5
20395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396
(exit $ac_status); }; } &&
20397
{ ac_try='test -s conftest.$ac_objext'
20398
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20399
(eval $ac_try) 2>&5
20401
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402
(exit $ac_status); }; }; then
20403
ac_cv_type__Bool=yes
20405
echo "$as_me: failed program was:" >&5
20406
sed 's/^/| /' conftest.$ac_ext >&5
20408
ac_cv_type__Bool=no
20410
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20412
echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
20413
echo "${ECHO_T}$ac_cv_type__Bool" >&6
20414
if test $ac_cv_type__Bool = yes; then
20416
cat >>confdefs.h <<_ACEOF
20417
#define HAVE__BOOL 1
20423
if test $ac_cv_header_stdbool_h = yes; then
20425
cat >>confdefs.h <<\_ACEOF
20426
#define HAVE_STDBOOL_H 1
20434
# Define two additional variables used in the Makefile substitution.
20436
if test "$ac_cv_header_stdbool_h" = yes; then
20439
STDBOOL_H='stdbool.h'
20443
if test "$ac_cv_type__Bool" = yes; then
20451
echo "$as_me:$LINENO: checking for size_t" >&5
20452
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20453
if test "${ac_cv_type_size_t+set}" = set; then
20454
echo $ECHO_N "(cached) $ECHO_C" >&6
20456
cat >conftest.$ac_ext <<_ACEOF
20459
cat confdefs.h >>conftest.$ac_ext
20460
cat >>conftest.$ac_ext <<_ACEOF
20461
/* end confdefs.h. */
20462
$ac_includes_default
20468
if (sizeof (size_t))
20474
rm -f conftest.$ac_objext
20475
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20476
(eval $ac_compile) 2>conftest.er1
20478
grep -v '^ *+' conftest.er1 >conftest.err
20480
cat conftest.err >&5
20481
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482
(exit $ac_status); } &&
20483
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20484
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485
(eval $ac_try) 2>&5
20487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488
(exit $ac_status); }; } &&
20489
{ ac_try='test -s conftest.$ac_objext'
20490
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20491
(eval $ac_try) 2>&5
20493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494
(exit $ac_status); }; }; then
20495
ac_cv_type_size_t=yes
20497
echo "$as_me: failed program was:" >&5
20498
sed 's/^/| /' conftest.$ac_ext >&5
20500
ac_cv_type_size_t=no
20502
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20504
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20505
echo "${ECHO_T}$ac_cv_type_size_t" >&6
20506
if test $ac_cv_type_size_t = yes; then
20510
cat >>confdefs.h <<_ACEOF
20511
#define size_t unsigned
20517
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20518
# for constant arguments. Useless!
20519
echo "$as_me:$LINENO: checking for working alloca.h" >&5
20520
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20521
if test "${ac_cv_working_alloca_h+set}" = set; then
20522
echo $ECHO_N "(cached) $ECHO_C" >&6
20524
cat >conftest.$ac_ext <<_ACEOF
20527
cat confdefs.h >>conftest.$ac_ext
20528
cat >>conftest.$ac_ext <<_ACEOF
20529
/* end confdefs.h. */
20530
#include <alloca.h>
20534
char *p = (char *) alloca (2 * sizeof (int));
20539
rm -f conftest.$ac_objext conftest$ac_exeext
20540
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20541
(eval $ac_link) 2>conftest.er1
20543
grep -v '^ *+' conftest.er1 >conftest.err
20545
cat conftest.err >&5
20546
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547
(exit $ac_status); } &&
20548
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20549
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550
(eval $ac_try) 2>&5
20552
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553
(exit $ac_status); }; } &&
20554
{ ac_try='test -s conftest$ac_exeext'
20555
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20556
(eval $ac_try) 2>&5
20558
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559
(exit $ac_status); }; }; then
20560
ac_cv_working_alloca_h=yes
20562
echo "$as_me: failed program was:" >&5
20563
sed 's/^/| /' conftest.$ac_ext >&5
20565
ac_cv_working_alloca_h=no
20567
rm -f conftest.err conftest.$ac_objext \
20568
conftest$ac_exeext conftest.$ac_ext
20570
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20571
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20572
if test $ac_cv_working_alloca_h = yes; then
20574
cat >>confdefs.h <<\_ACEOF
20575
#define HAVE_ALLOCA_H 1
20580
echo "$as_me:$LINENO: checking for alloca" >&5
20581
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20582
if test "${ac_cv_func_alloca_works+set}" = set; then
20583
echo $ECHO_N "(cached) $ECHO_C" >&6
20585
cat >conftest.$ac_ext <<_ACEOF
20588
cat confdefs.h >>conftest.$ac_ext
20589
cat >>conftest.$ac_ext <<_ACEOF
20590
/* end confdefs.h. */
20592
# define alloca __builtin_alloca
20595
# include <malloc.h>
20596
# define alloca _alloca
20599
# include <alloca.h>
20604
# ifndef alloca /* predefined by HP cc +Olibcalls */
20615
char *p = (char *) alloca (1);
20620
rm -f conftest.$ac_objext conftest$ac_exeext
20621
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20622
(eval $ac_link) 2>conftest.er1
20624
grep -v '^ *+' conftest.er1 >conftest.err
20626
cat conftest.err >&5
20627
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628
(exit $ac_status); } &&
20629
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20630
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20631
(eval $ac_try) 2>&5
20633
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634
(exit $ac_status); }; } &&
20635
{ ac_try='test -s conftest$ac_exeext'
20636
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20637
(eval $ac_try) 2>&5
20639
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640
(exit $ac_status); }; }; then
20641
ac_cv_func_alloca_works=yes
20643
echo "$as_me: failed program was:" >&5
20644
sed 's/^/| /' conftest.$ac_ext >&5
20646
ac_cv_func_alloca_works=no
20648
rm -f conftest.err conftest.$ac_objext \
20649
conftest$ac_exeext conftest.$ac_ext
20651
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20652
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20654
if test $ac_cv_func_alloca_works = yes; then
20656
cat >>confdefs.h <<\_ACEOF
20657
#define HAVE_ALLOCA 1
20661
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
20662
# that cause trouble. Some versions do not even contain alloca or
20663
# contain a buggy version. If you still want to use their alloca,
20664
# use ar to extract alloca.o from them instead of compiling alloca.c.
20666
ALLOCA=alloca.$ac_objext
20668
cat >>confdefs.h <<\_ACEOF
20673
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20674
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20675
if test "${ac_cv_os_cray+set}" = set; then
20676
echo $ECHO_N "(cached) $ECHO_C" >&6
20678
cat >conftest.$ac_ext <<_ACEOF
20681
cat confdefs.h >>conftest.$ac_ext
20682
cat >>conftest.$ac_ext <<_ACEOF
20683
/* end confdefs.h. */
20684
#if defined(CRAY) && ! defined(CRAY2)
20691
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20692
$EGREP "webecray" >/dev/null 2>&1; then
20700
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20701
echo "${ECHO_T}$ac_cv_os_cray" >&6
20702
if test $ac_cv_os_cray = yes; then
20703
for ac_func in _getb67 GETB67 getb67; do
20704
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20705
echo "$as_me:$LINENO: checking for $ac_func" >&5
20706
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20707
if eval "test \"\${$as_ac_var+set}\" = set"; then
20708
echo $ECHO_N "(cached) $ECHO_C" >&6
20710
cat >conftest.$ac_ext <<_ACEOF
20713
cat confdefs.h >>conftest.$ac_ext
20714
cat >>conftest.$ac_ext <<_ACEOF
20715
/* end confdefs.h. */
20716
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20717
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20718
#define $ac_func innocuous_$ac_func
20720
/* System header to define __stub macros and hopefully few prototypes,
20721
which can conflict with char $ac_func (); below.
20722
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20723
<limits.h> exists even on freestanding compilers. */
20726
# include <limits.h>
20728
# include <assert.h>
20733
/* Override any gcc2 internal prototype to avoid an error. */
20738
/* We use char because int might match the return type of a gcc2
20739
builtin and then its argument prototype would still apply. */
20741
/* The GNU C library defines this for functions which it implements
20742
to always fail with ENOSYS. Some functions are actually named
20743
something starting with __ and the normal name is an alias. */
20744
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20747
char (*f) () = $ac_func;
20756
return f != $ac_func;
20761
rm -f conftest.$ac_objext conftest$ac_exeext
20762
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20763
(eval $ac_link) 2>conftest.er1
20765
grep -v '^ *+' conftest.er1 >conftest.err
20767
cat conftest.err >&5
20768
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769
(exit $ac_status); } &&
20770
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20771
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772
(eval $ac_try) 2>&5
20774
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775
(exit $ac_status); }; } &&
20776
{ ac_try='test -s conftest$ac_exeext'
20777
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778
(eval $ac_try) 2>&5
20780
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781
(exit $ac_status); }; }; then
20782
eval "$as_ac_var=yes"
20784
echo "$as_me: failed program was:" >&5
20785
sed 's/^/| /' conftest.$ac_ext >&5
20787
eval "$as_ac_var=no"
20789
rm -f conftest.err conftest.$ac_objext \
20790
conftest$ac_exeext conftest.$ac_ext
20792
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20793
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20794
if test `eval echo '${'$as_ac_var'}'` = yes; then
20796
cat >>confdefs.h <<_ACEOF
20797
#define CRAY_STACKSEG_END $ac_func
20806
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20807
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20808
if test "${ac_cv_c_stack_direction+set}" = set; then
20809
echo $ECHO_N "(cached) $ECHO_C" >&6
20811
if test "$cross_compiling" = yes; then
20812
ac_cv_c_stack_direction=0
20814
cat >conftest.$ac_ext <<_ACEOF
20817
cat confdefs.h >>conftest.$ac_ext
20818
cat >>conftest.$ac_ext <<_ACEOF
20819
/* end confdefs.h. */
20821
find_stack_direction ()
20823
static char *addr = 0;
20828
return find_stack_direction ();
20831
return (&dummy > addr) ? 1 : -1;
20837
exit (find_stack_direction () < 0);
20840
rm -f conftest$ac_exeext
20841
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20842
(eval $ac_link) 2>&5
20844
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20846
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20847
(eval $ac_try) 2>&5
20849
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850
(exit $ac_status); }; }; then
20851
ac_cv_c_stack_direction=1
20853
echo "$as_me: program exited with status $ac_status" >&5
20854
echo "$as_me: failed program was:" >&5
20855
sed 's/^/| /' conftest.$ac_ext >&5
20857
( exit $ac_status )
20858
ac_cv_c_stack_direction=-1
20860
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20863
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20864
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20866
cat >>confdefs.h <<_ACEOF
20867
#define STACK_DIRECTION $ac_cv_c_stack_direction
20875
for ac_header in stdlib.h
20877
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20878
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20879
echo "$as_me:$LINENO: checking for $ac_header" >&5
20880
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20881
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20882
echo $ECHO_N "(cached) $ECHO_C" >&6
20884
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20885
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20887
# Is the header compilable?
20888
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20889
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20890
cat >conftest.$ac_ext <<_ACEOF
20893
cat confdefs.h >>conftest.$ac_ext
20894
cat >>conftest.$ac_ext <<_ACEOF
20895
/* end confdefs.h. */
20896
$ac_includes_default
20897
#include <$ac_header>
20899
rm -f conftest.$ac_objext
20900
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20901
(eval $ac_compile) 2>conftest.er1
20903
grep -v '^ *+' conftest.er1 >conftest.err
20905
cat conftest.err >&5
20906
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907
(exit $ac_status); } &&
20908
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20909
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20910
(eval $ac_try) 2>&5
20912
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913
(exit $ac_status); }; } &&
20914
{ ac_try='test -s conftest.$ac_objext'
20915
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20916
(eval $ac_try) 2>&5
20918
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919
(exit $ac_status); }; }; then
20920
ac_header_compiler=yes
20922
echo "$as_me: failed program was:" >&5
20923
sed 's/^/| /' conftest.$ac_ext >&5
20925
ac_header_compiler=no
20927
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20928
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20929
echo "${ECHO_T}$ac_header_compiler" >&6
20931
# Is the header present?
20932
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20933
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20934
cat >conftest.$ac_ext <<_ACEOF
20937
cat confdefs.h >>conftest.$ac_ext
20938
cat >>conftest.$ac_ext <<_ACEOF
20939
/* end confdefs.h. */
20940
#include <$ac_header>
20942
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20943
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20945
grep -v '^ *+' conftest.er1 >conftest.err
20947
cat conftest.err >&5
20948
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949
(exit $ac_status); } >/dev/null; then
20950
if test -s conftest.err; then
20951
ac_cpp_err=$ac_c_preproc_warn_flag
20952
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20959
if test -z "$ac_cpp_err"; then
20960
ac_header_preproc=yes
20962
echo "$as_me: failed program was:" >&5
20963
sed 's/^/| /' conftest.$ac_ext >&5
20965
ac_header_preproc=no
20967
rm -f conftest.err conftest.$ac_ext
20968
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20969
echo "${ECHO_T}$ac_header_preproc" >&6
20971
# So? What about this header?
20972
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20974
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20975
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20976
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20977
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20978
ac_header_preproc=yes
20981
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20982
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20983
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20984
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20985
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20986
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20987
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20988
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20989
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20990
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20991
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20992
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20995
## ------------------------------------------ ##
20996
## Report this to the AC_PACKAGE_NAME lists. ##
20997
## ------------------------------------------ ##
21000
sed "s/^/$as_me: WARNING: /" >&2
21003
echo "$as_me:$LINENO: checking for $ac_header" >&5
21004
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21005
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21006
echo $ECHO_N "(cached) $ECHO_C" >&6
21008
eval "$as_ac_Header=\$ac_header_preproc"
21010
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21011
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21014
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21015
cat >>confdefs.h <<_ACEOF
21016
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21026
for ac_header in string.h
21028
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21029
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21030
echo "$as_me:$LINENO: checking for $ac_header" >&5
21031
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21032
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21033
echo $ECHO_N "(cached) $ECHO_C" >&6
21035
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21036
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21038
# Is the header compilable?
21039
echo "$as_me:$LINENO: checking $ac_header usability" >&5
21040
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21041
cat >conftest.$ac_ext <<_ACEOF
21044
cat confdefs.h >>conftest.$ac_ext
21045
cat >>conftest.$ac_ext <<_ACEOF
21046
/* end confdefs.h. */
21047
$ac_includes_default
21048
#include <$ac_header>
21050
rm -f conftest.$ac_objext
21051
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21052
(eval $ac_compile) 2>conftest.er1
21054
grep -v '^ *+' conftest.er1 >conftest.err
21056
cat conftest.err >&5
21057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058
(exit $ac_status); } &&
21059
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21060
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21061
(eval $ac_try) 2>&5
21063
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064
(exit $ac_status); }; } &&
21065
{ ac_try='test -s conftest.$ac_objext'
21066
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21067
(eval $ac_try) 2>&5
21069
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070
(exit $ac_status); }; }; then
21071
ac_header_compiler=yes
21073
echo "$as_me: failed program was:" >&5
21074
sed 's/^/| /' conftest.$ac_ext >&5
21076
ac_header_compiler=no
21078
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21079
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21080
echo "${ECHO_T}$ac_header_compiler" >&6
21082
# Is the header present?
21083
echo "$as_me:$LINENO: checking $ac_header presence" >&5
21084
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21085
cat >conftest.$ac_ext <<_ACEOF
21088
cat confdefs.h >>conftest.$ac_ext
21089
cat >>conftest.$ac_ext <<_ACEOF
21090
/* end confdefs.h. */
21091
#include <$ac_header>
21093
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21094
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21096
grep -v '^ *+' conftest.er1 >conftest.err
21098
cat conftest.err >&5
21099
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100
(exit $ac_status); } >/dev/null; then
21101
if test -s conftest.err; then
21102
ac_cpp_err=$ac_c_preproc_warn_flag
21103
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21110
if test -z "$ac_cpp_err"; then
21111
ac_header_preproc=yes
21113
echo "$as_me: failed program was:" >&5
21114
sed 's/^/| /' conftest.$ac_ext >&5
21116
ac_header_preproc=no
21118
rm -f conftest.err conftest.$ac_ext
21119
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21120
echo "${ECHO_T}$ac_header_preproc" >&6
21122
# So? What about this header?
21123
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21125
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21126
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21127
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21128
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21129
ac_header_preproc=yes
21132
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21133
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21134
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21135
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21136
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21137
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21138
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21139
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21140
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21141
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21142
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21143
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21146
## ------------------------------------------ ##
21147
## Report this to the AC_PACKAGE_NAME lists. ##
21148
## ------------------------------------------ ##
21151
sed "s/^/$as_me: WARNING: /" >&2
21154
echo "$as_me:$LINENO: checking for $ac_header" >&5
21155
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21156
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21157
echo $ECHO_N "(cached) $ECHO_C" >&6
21159
eval "$as_ac_Header=\$ac_header_preproc"
21161
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21162
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21165
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21166
cat >>confdefs.h <<_ACEOF
21167
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21180
if test $ac_cv_func_alloca_works = no; then
21195
# Define an additional variable used in the Makefile substitution.
21197
cat >conftest.$ac_ext <<_ACEOF
21200
cat confdefs.h >>conftest.$ac_ext
21201
cat >>conftest.$ac_ext <<_ACEOF
21202
/* end confdefs.h. */
21204
#if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
21209
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21210
$EGREP "Need own alloca" >/dev/null 2>&1; then
21221
for ac_header in stdlib.h
21223
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21224
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21225
echo "$as_me:$LINENO: checking for $ac_header" >&5
21226
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21227
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21228
echo $ECHO_N "(cached) $ECHO_C" >&6
21230
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21231
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21233
# Is the header compilable?
21234
echo "$as_me:$LINENO: checking $ac_header usability" >&5
21235
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21236
cat >conftest.$ac_ext <<_ACEOF
21239
cat confdefs.h >>conftest.$ac_ext
21240
cat >>conftest.$ac_ext <<_ACEOF
21241
/* end confdefs.h. */
21242
$ac_includes_default
21243
#include <$ac_header>
21245
rm -f conftest.$ac_objext
21246
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21247
(eval $ac_compile) 2>conftest.er1
21249
grep -v '^ *+' conftest.er1 >conftest.err
21251
cat conftest.err >&5
21252
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253
(exit $ac_status); } &&
21254
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21255
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21256
(eval $ac_try) 2>&5
21258
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259
(exit $ac_status); }; } &&
21260
{ ac_try='test -s conftest.$ac_objext'
21261
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21262
(eval $ac_try) 2>&5
21264
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265
(exit $ac_status); }; }; then
21266
ac_header_compiler=yes
21268
echo "$as_me: failed program was:" >&5
21269
sed 's/^/| /' conftest.$ac_ext >&5
21271
ac_header_compiler=no
21273
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21274
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21275
echo "${ECHO_T}$ac_header_compiler" >&6
21277
# Is the header present?
21278
echo "$as_me:$LINENO: checking $ac_header presence" >&5
21279
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21280
cat >conftest.$ac_ext <<_ACEOF
21283
cat confdefs.h >>conftest.$ac_ext
21284
cat >>conftest.$ac_ext <<_ACEOF
21285
/* end confdefs.h. */
21286
#include <$ac_header>
21288
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21289
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21291
grep -v '^ *+' conftest.er1 >conftest.err
21293
cat conftest.err >&5
21294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295
(exit $ac_status); } >/dev/null; then
21296
if test -s conftest.err; then
21297
ac_cpp_err=$ac_c_preproc_warn_flag
21298
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21305
if test -z "$ac_cpp_err"; then
21306
ac_header_preproc=yes
21308
echo "$as_me: failed program was:" >&5
21309
sed 's/^/| /' conftest.$ac_ext >&5
21311
ac_header_preproc=no
21313
rm -f conftest.err conftest.$ac_ext
21314
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21315
echo "${ECHO_T}$ac_header_preproc" >&6
21317
# So? What about this header?
21318
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21320
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21321
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21322
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21323
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21324
ac_header_preproc=yes
21327
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21328
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21329
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21330
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21331
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21332
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21333
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21334
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21335
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21336
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21337
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21338
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21341
## ------------------------------------------ ##
21342
## Report this to the AC_PACKAGE_NAME lists. ##
21343
## ------------------------------------------ ##
21346
sed "s/^/$as_me: WARNING: /" >&2
21349
echo "$as_me:$LINENO: checking for $ac_header" >&5
21350
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21351
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21352
echo $ECHO_N "(cached) $ECHO_C" >&6
21354
eval "$as_ac_Header=\$ac_header_preproc"
21356
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21357
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21360
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21361
cat >>confdefs.h <<_ACEOF
21362
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21369
echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21370
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
21371
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21372
echo $ECHO_N "(cached) $ECHO_C" >&6
21374
if test "$cross_compiling" = yes; then
21375
ac_cv_func_malloc_0_nonnull=no
21377
cat >conftest.$ac_ext <<_ACEOF
21380
cat confdefs.h >>conftest.$ac_ext
21381
cat >>conftest.$ac_ext <<_ACEOF
21382
/* end confdefs.h. */
21383
#if STDC_HEADERS || HAVE_STDLIB_H
21384
# include <stdlib.h>
21392
exit (malloc (0) ? 0 : 1);
21397
rm -f conftest$ac_exeext
21398
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21399
(eval $ac_link) 2>&5
21401
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21403
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21404
(eval $ac_try) 2>&5
21406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407
(exit $ac_status); }; }; then
21408
ac_cv_func_malloc_0_nonnull=yes
21410
echo "$as_me: program exited with status $ac_status" >&5
21411
echo "$as_me: failed program was:" >&5
21412
sed 's/^/| /' conftest.$ac_ext >&5
21414
( exit $ac_status )
21415
ac_cv_func_malloc_0_nonnull=no
21417
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21420
echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21421
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
21422
if test $ac_cv_func_malloc_0_nonnull = yes; then
21423
gl_cv_func_malloc_0_nonnull=1
21425
gl_cv_func_malloc_0_nonnull=0
21430
cat >>confdefs.h <<_ACEOF
21431
#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
21440
for ac_func in vprintf
21442
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21443
echo "$as_me:$LINENO: checking for $ac_func" >&5
21444
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21445
if eval "test \"\${$as_ac_var+set}\" = set"; then
21446
echo $ECHO_N "(cached) $ECHO_C" >&6
21448
cat >conftest.$ac_ext <<_ACEOF
21451
cat confdefs.h >>conftest.$ac_ext
21452
cat >>conftest.$ac_ext <<_ACEOF
21453
/* end confdefs.h. */
21454
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21455
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21456
#define $ac_func innocuous_$ac_func
21458
/* System header to define __stub macros and hopefully few prototypes,
21459
which can conflict with char $ac_func (); below.
21460
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21461
<limits.h> exists even on freestanding compilers. */
21464
# include <limits.h>
21466
# include <assert.h>
21471
/* Override any gcc2 internal prototype to avoid an error. */
21476
/* We use char because int might match the return type of a gcc2
21477
builtin and then its argument prototype would still apply. */
21479
/* The GNU C library defines this for functions which it implements
21480
to always fail with ENOSYS. Some functions are actually named
21481
something starting with __ and the normal name is an alias. */
21482
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21485
char (*f) () = $ac_func;
21494
return f != $ac_func;
21499
rm -f conftest.$ac_objext conftest$ac_exeext
21500
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21501
(eval $ac_link) 2>conftest.er1
21503
grep -v '^ *+' conftest.er1 >conftest.err
21505
cat conftest.err >&5
21506
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507
(exit $ac_status); } &&
21508
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21509
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21510
(eval $ac_try) 2>&5
21512
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513
(exit $ac_status); }; } &&
21514
{ ac_try='test -s conftest$ac_exeext'
21515
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21516
(eval $ac_try) 2>&5
21518
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519
(exit $ac_status); }; }; then
21520
eval "$as_ac_var=yes"
21522
echo "$as_me: failed program was:" >&5
21523
sed 's/^/| /' conftest.$ac_ext >&5
21525
eval "$as_ac_var=no"
21527
rm -f conftest.err conftest.$ac_objext \
21528
conftest$ac_exeext conftest.$ac_ext
21530
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21531
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21532
if test `eval echo '${'$as_ac_var'}'` = yes; then
21533
cat >>confdefs.h <<_ACEOF
21534
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21537
echo "$as_me:$LINENO: checking for _doprnt" >&5
21538
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
21539
if test "${ac_cv_func__doprnt+set}" = set; then
21540
echo $ECHO_N "(cached) $ECHO_C" >&6
21542
cat >conftest.$ac_ext <<_ACEOF
21545
cat confdefs.h >>conftest.$ac_ext
21546
cat >>conftest.$ac_ext <<_ACEOF
21547
/* end confdefs.h. */
21548
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
21549
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21550
#define _doprnt innocuous__doprnt
21552
/* System header to define __stub macros and hopefully few prototypes,
21553
which can conflict with char _doprnt (); below.
21554
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21555
<limits.h> exists even on freestanding compilers. */
21558
# include <limits.h>
21560
# include <assert.h>
21565
/* Override any gcc2 internal prototype to avoid an error. */
21570
/* We use char because int might match the return type of a gcc2
21571
builtin and then its argument prototype would still apply. */
21573
/* The GNU C library defines this for functions which it implements
21574
to always fail with ENOSYS. Some functions are actually named
21575
something starting with __ and the normal name is an alias. */
21576
#if defined (__stub__doprnt) || defined (__stub____doprnt)
21579
char (*f) () = _doprnt;
21588
return f != _doprnt;
21593
rm -f conftest.$ac_objext conftest$ac_exeext
21594
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21595
(eval $ac_link) 2>conftest.er1
21597
grep -v '^ *+' conftest.er1 >conftest.err
21599
cat conftest.err >&5
21600
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601
(exit $ac_status); } &&
21602
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21603
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21604
(eval $ac_try) 2>&5
21606
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607
(exit $ac_status); }; } &&
21608
{ ac_try='test -s conftest$ac_exeext'
21609
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21610
(eval $ac_try) 2>&5
21612
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613
(exit $ac_status); }; }; then
21614
ac_cv_func__doprnt=yes
21616
echo "$as_me: failed program was:" >&5
21617
sed 's/^/| /' conftest.$ac_ext >&5
21619
ac_cv_func__doprnt=no
21621
rm -f conftest.err conftest.$ac_objext \
21622
conftest$ac_exeext conftest.$ac_ext
21624
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
21625
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
21626
if test $ac_cv_func__doprnt = yes; then
21628
cat >>confdefs.h <<\_ACEOF
21629
#define HAVE_DOPRNT 1
21641
for ac_func in setlocale strerror strtoul
21643
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21644
echo "$as_me:$LINENO: checking for $ac_func" >&5
21645
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21646
if eval "test \"\${$as_ac_var+set}\" = set"; then
21647
echo $ECHO_N "(cached) $ECHO_C" >&6
21649
cat >conftest.$ac_ext <<_ACEOF
21652
cat confdefs.h >>conftest.$ac_ext
21653
cat >>conftest.$ac_ext <<_ACEOF
21654
/* end confdefs.h. */
21655
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21656
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21657
#define $ac_func innocuous_$ac_func
21659
/* System header to define __stub macros and hopefully few prototypes,
21660
which can conflict with char $ac_func (); below.
21661
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21662
<limits.h> exists even on freestanding compilers. */
21665
# include <limits.h>
21667
# include <assert.h>
21672
/* Override any gcc2 internal prototype to avoid an error. */
21677
/* We use char because int might match the return type of a gcc2
21678
builtin and then its argument prototype would still apply. */
21680
/* The GNU C library defines this for functions which it implements
21681
to always fail with ENOSYS. Some functions are actually named
21682
something starting with __ and the normal name is an alias. */
21683
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21686
char (*f) () = $ac_func;
21695
return f != $ac_func;
21700
rm -f conftest.$ac_objext conftest$ac_exeext
21701
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21702
(eval $ac_link) 2>conftest.er1
21704
grep -v '^ *+' conftest.er1 >conftest.err
21706
cat conftest.err >&5
21707
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708
(exit $ac_status); } &&
21709
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21710
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21711
(eval $ac_try) 2>&5
21713
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714
(exit $ac_status); }; } &&
21715
{ ac_try='test -s conftest$ac_exeext'
21716
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21717
(eval $ac_try) 2>&5
21719
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720
(exit $ac_status); }; }; then
21721
eval "$as_ac_var=yes"
21723
echo "$as_me: failed program was:" >&5
21724
sed 's/^/| /' conftest.$ac_ext >&5
21726
eval "$as_ac_var=no"
21728
rm -f conftest.err conftest.$ac_objext \
21729
conftest$ac_exeext conftest.$ac_ext
21731
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21732
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21733
if test `eval echo '${'$as_ac_var'}'` = yes; then
21734
cat >>confdefs.h <<_ACEOF
21735
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21743
for ac_func in atexit memmove
21745
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21746
echo "$as_me:$LINENO: checking for $ac_func" >&5
21747
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21748
if eval "test \"\${$as_ac_var+set}\" = set"; then
21749
echo $ECHO_N "(cached) $ECHO_C" >&6
21751
cat >conftest.$ac_ext <<_ACEOF
21754
cat confdefs.h >>conftest.$ac_ext
21755
cat >>conftest.$ac_ext <<_ACEOF
21756
/* end confdefs.h. */
21757
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21758
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21759
#define $ac_func innocuous_$ac_func
21761
/* System header to define __stub macros and hopefully few prototypes,
21762
which can conflict with char $ac_func (); below.
21763
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21764
<limits.h> exists even on freestanding compilers. */
21767
# include <limits.h>
21769
# include <assert.h>
21774
/* Override any gcc2 internal prototype to avoid an error. */
21779
/* We use char because int might match the return type of a gcc2
21780
builtin and then its argument prototype would still apply. */
21782
/* The GNU C library defines this for functions which it implements
21783
to always fail with ENOSYS. Some functions are actually named
21784
something starting with __ and the normal name is an alias. */
21785
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21788
char (*f) () = $ac_func;
21797
return f != $ac_func;
21802
rm -f conftest.$ac_objext conftest$ac_exeext
21803
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21804
(eval $ac_link) 2>conftest.er1
21806
grep -v '^ *+' conftest.er1 >conftest.err
21808
cat conftest.err >&5
21809
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810
(exit $ac_status); } &&
21811
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21812
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21813
(eval $ac_try) 2>&5
21815
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816
(exit $ac_status); }; } &&
21817
{ ac_try='test -s conftest$ac_exeext'
21818
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21819
(eval $ac_try) 2>&5
21821
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822
(exit $ac_status); }; }; then
21823
eval "$as_ac_var=yes"
21825
echo "$as_me: failed program was:" >&5
21826
sed 's/^/| /' conftest.$ac_ext >&5
21828
eval "$as_ac_var=no"
21830
rm -f conftest.err conftest.$ac_objext \
21831
conftest$ac_exeext conftest.$ac_ext
21833
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21834
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21835
if test `eval echo '${'$as_ac_var'}'` = yes; then
21836
cat >>confdefs.h <<_ACEOF
21837
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21842
"$ac_func.$ac_objext" | \
21843
*" $ac_func.$ac_objext" | \
21844
"$ac_func.$ac_objext "* | \
21845
*" $ac_func.$ac_objext "* ) ;;
21846
*) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
21855
for ac_header in unistd.h
21857
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21858
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21859
echo "$as_me:$LINENO: checking for $ac_header" >&5
21860
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21861
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21862
echo $ECHO_N "(cached) $ECHO_C" >&6
21864
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21865
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21867
# Is the header compilable?
21868
echo "$as_me:$LINENO: checking $ac_header usability" >&5
21869
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21870
cat >conftest.$ac_ext <<_ACEOF
21873
cat confdefs.h >>conftest.$ac_ext
21874
cat >>conftest.$ac_ext <<_ACEOF
21875
/* end confdefs.h. */
21876
$ac_includes_default
21877
#include <$ac_header>
21879
rm -f conftest.$ac_objext
21880
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21881
(eval $ac_compile) 2>conftest.er1
21883
grep -v '^ *+' conftest.er1 >conftest.err
21885
cat conftest.err >&5
21886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887
(exit $ac_status); } &&
21888
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21889
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21890
(eval $ac_try) 2>&5
21892
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893
(exit $ac_status); }; } &&
21894
{ ac_try='test -s conftest.$ac_objext'
21895
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21896
(eval $ac_try) 2>&5
21898
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899
(exit $ac_status); }; }; then
21900
ac_header_compiler=yes
21902
echo "$as_me: failed program was:" >&5
21903
sed 's/^/| /' conftest.$ac_ext >&5
21905
ac_header_compiler=no
21907
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21908
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21909
echo "${ECHO_T}$ac_header_compiler" >&6
21911
# Is the header present?
21912
echo "$as_me:$LINENO: checking $ac_header presence" >&5
21913
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21914
cat >conftest.$ac_ext <<_ACEOF
21917
cat confdefs.h >>conftest.$ac_ext
21918
cat >>conftest.$ac_ext <<_ACEOF
21919
/* end confdefs.h. */
21920
#include <$ac_header>
21922
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21923
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21925
grep -v '^ *+' conftest.er1 >conftest.err
21927
cat conftest.err >&5
21928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929
(exit $ac_status); } >/dev/null; then
21930
if test -s conftest.err; then
21931
ac_cpp_err=$ac_c_preproc_warn_flag
21932
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21939
if test -z "$ac_cpp_err"; then
21940
ac_header_preproc=yes
21942
echo "$as_me: failed program was:" >&5
21943
sed 's/^/| /' conftest.$ac_ext >&5
21945
ac_header_preproc=no
21947
rm -f conftest.err conftest.$ac_ext
21948
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21949
echo "${ECHO_T}$ac_header_preproc" >&6
21951
# So? What about this header?
21952
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21954
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21955
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21956
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21957
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21958
ac_header_preproc=yes
21961
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21962
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21963
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21964
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21965
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21966
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21967
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21968
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21969
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21970
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21971
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21972
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21975
## ------------------------------------------ ##
21976
## Report this to the AC_PACKAGE_NAME lists. ##
21977
## ------------------------------------------ ##
21980
sed "s/^/$as_me: WARNING: /" >&2
21983
echo "$as_me:$LINENO: checking for $ac_header" >&5
21984
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21985
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21986
echo $ECHO_N "(cached) $ECHO_C" >&6
21988
eval "$as_ac_Header=\$ac_header_preproc"
21990
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21991
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21994
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21995
cat >>confdefs.h <<_ACEOF
21996
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22007
for ac_func in setenv unsetenv
22009
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22010
echo "$as_me:$LINENO: checking for $ac_func" >&5
22011
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22012
if eval "test \"\${$as_ac_var+set}\" = set"; then
22013
echo $ECHO_N "(cached) $ECHO_C" >&6
22015
cat >conftest.$ac_ext <<_ACEOF
22018
cat confdefs.h >>conftest.$ac_ext
22019
cat >>conftest.$ac_ext <<_ACEOF
22020
/* end confdefs.h. */
22021
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22022
For example, HP-UX 11i <limits.h> declares gettimeofday. */
22023
#define $ac_func innocuous_$ac_func
22025
/* System header to define __stub macros and hopefully few prototypes,
22026
which can conflict with char $ac_func (); below.
22027
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22028
<limits.h> exists even on freestanding compilers. */
22031
# include <limits.h>
22033
# include <assert.h>
22038
/* Override any gcc2 internal prototype to avoid an error. */
22043
/* We use char because int might match the return type of a gcc2
22044
builtin and then its argument prototype would still apply. */
22046
/* The GNU C library defines this for functions which it implements
22047
to always fail with ENOSYS. Some functions are actually named
22048
something starting with __ and the normal name is an alias. */
22049
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22052
char (*f) () = $ac_func;
22061
return f != $ac_func;
22066
rm -f conftest.$ac_objext conftest$ac_exeext
22067
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22068
(eval $ac_link) 2>conftest.er1
22070
grep -v '^ *+' conftest.er1 >conftest.err
22072
cat conftest.err >&5
22073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074
(exit $ac_status); } &&
22075
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22076
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22077
(eval $ac_try) 2>&5
22079
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080
(exit $ac_status); }; } &&
22081
{ ac_try='test -s conftest$ac_exeext'
22082
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22083
(eval $ac_try) 2>&5
22085
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086
(exit $ac_status); }; }; then
22087
eval "$as_ac_var=yes"
22089
echo "$as_me: failed program was:" >&5
22090
sed 's/^/| /' conftest.$ac_ext >&5
22092
eval "$as_ac_var=no"
22094
rm -f conftest.err conftest.$ac_objext \
22095
conftest$ac_exeext conftest.$ac_ext
22097
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22098
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22099
if test `eval echo '${'$as_ac_var'}'` = yes; then
22100
cat >>confdefs.h <<_ACEOF
22101
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22106
"$ac_func.$ac_objext" | \
22107
*" $ac_func.$ac_objext" | \
22108
"$ac_func.$ac_objext "* | \
22109
*" $ac_func.$ac_objext "* ) ;;
22110
*) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
22117
if test $ac_cv_func_setenv = no; then
22134
for ac_header in search.h
22136
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22137
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22138
echo "$as_me:$LINENO: checking for $ac_header" >&5
22139
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22140
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22141
echo $ECHO_N "(cached) $ECHO_C" >&6
22143
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22144
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22146
# Is the header compilable?
22147
echo "$as_me:$LINENO: checking $ac_header usability" >&5
22148
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22149
cat >conftest.$ac_ext <<_ACEOF
22152
cat confdefs.h >>conftest.$ac_ext
22153
cat >>conftest.$ac_ext <<_ACEOF
22154
/* end confdefs.h. */
22155
$ac_includes_default
22156
#include <$ac_header>
22158
rm -f conftest.$ac_objext
22159
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22160
(eval $ac_compile) 2>conftest.er1
22162
grep -v '^ *+' conftest.er1 >conftest.err
22164
cat conftest.err >&5
22165
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166
(exit $ac_status); } &&
22167
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22168
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22169
(eval $ac_try) 2>&5
22171
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172
(exit $ac_status); }; } &&
22173
{ ac_try='test -s conftest.$ac_objext'
22174
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22175
(eval $ac_try) 2>&5
22177
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178
(exit $ac_status); }; }; then
22179
ac_header_compiler=yes
22181
echo "$as_me: failed program was:" >&5
22182
sed 's/^/| /' conftest.$ac_ext >&5
22184
ac_header_compiler=no
22186
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22187
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22188
echo "${ECHO_T}$ac_header_compiler" >&6
22190
# Is the header present?
22191
echo "$as_me:$LINENO: checking $ac_header presence" >&5
22192
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22193
cat >conftest.$ac_ext <<_ACEOF
22196
cat confdefs.h >>conftest.$ac_ext
22197
cat >>conftest.$ac_ext <<_ACEOF
22198
/* end confdefs.h. */
22199
#include <$ac_header>
22201
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22202
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22204
grep -v '^ *+' conftest.er1 >conftest.err
22206
cat conftest.err >&5
22207
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208
(exit $ac_status); } >/dev/null; then
22209
if test -s conftest.err; then
22210
ac_cpp_err=$ac_c_preproc_warn_flag
22211
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22218
if test -z "$ac_cpp_err"; then
22219
ac_header_preproc=yes
22221
echo "$as_me: failed program was:" >&5
22222
sed 's/^/| /' conftest.$ac_ext >&5
22224
ac_header_preproc=no
22226
rm -f conftest.err conftest.$ac_ext
22227
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22228
echo "${ECHO_T}$ac_header_preproc" >&6
22230
# So? What about this header?
22231
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22233
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22234
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22235
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22236
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22237
ac_header_preproc=yes
22240
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22241
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22242
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22243
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22244
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22245
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22246
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22247
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22248
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22249
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22250
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22251
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22254
## ------------------------------------------ ##
22255
## Report this to the AC_PACKAGE_NAME lists. ##
22256
## ------------------------------------------ ##
22259
sed "s/^/$as_me: WARNING: /" >&2
22262
echo "$as_me:$LINENO: checking for $ac_header" >&5
22263
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22264
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22265
echo $ECHO_N "(cached) $ECHO_C" >&6
22267
eval "$as_ac_Header=\$ac_header_preproc"
22269
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22270
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22273
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22274
cat >>confdefs.h <<_ACEOF
22275
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22283
for ac_func in tsearch
22285
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22286
echo "$as_me:$LINENO: checking for $ac_func" >&5
22287
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22288
if eval "test \"\${$as_ac_var+set}\" = set"; then
22289
echo $ECHO_N "(cached) $ECHO_C" >&6
22291
cat >conftest.$ac_ext <<_ACEOF
22294
cat confdefs.h >>conftest.$ac_ext
22295
cat >>conftest.$ac_ext <<_ACEOF
22296
/* end confdefs.h. */
22297
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22298
For example, HP-UX 11i <limits.h> declares gettimeofday. */
22299
#define $ac_func innocuous_$ac_func
22301
/* System header to define __stub macros and hopefully few prototypes,
22302
which can conflict with char $ac_func (); below.
22303
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22304
<limits.h> exists even on freestanding compilers. */
22307
# include <limits.h>
22309
# include <assert.h>
22314
/* Override any gcc2 internal prototype to avoid an error. */
22319
/* We use char because int might match the return type of a gcc2
22320
builtin and then its argument prototype would still apply. */
22322
/* The GNU C library defines this for functions which it implements
22323
to always fail with ENOSYS. Some functions are actually named
22324
something starting with __ and the normal name is an alias. */
22325
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22328
char (*f) () = $ac_func;
22337
return f != $ac_func;
22342
rm -f conftest.$ac_objext conftest$ac_exeext
22343
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22344
(eval $ac_link) 2>conftest.er1
22346
grep -v '^ *+' conftest.er1 >conftest.err
22348
cat conftest.err >&5
22349
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22350
(exit $ac_status); } &&
22351
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22352
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22353
(eval $ac_try) 2>&5
22355
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356
(exit $ac_status); }; } &&
22357
{ ac_try='test -s conftest$ac_exeext'
22358
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22359
(eval $ac_try) 2>&5
22361
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362
(exit $ac_status); }; }; then
22363
eval "$as_ac_var=yes"
22365
echo "$as_me: failed program was:" >&5
22366
sed 's/^/| /' conftest.$ac_ext >&5
22368
eval "$as_ac_var=no"
22370
rm -f conftest.err conftest.$ac_objext \
22371
conftest$ac_exeext conftest.$ac_ext
22373
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22374
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22375
if test `eval echo '${'$as_ac_var'}'` = yes; then
22376
cat >>confdefs.h <<_ACEOF
22377
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22385
echo "$as_me:$LINENO: checking if errno is properly declared" >&5
22386
echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6
22387
if test "${gt_cv_var_errno_declaration+set}" = set; then
22388
echo $ECHO_N "(cached) $ECHO_C" >&6
22391
cat >conftest.$ac_ext <<_ACEOF
22394
cat confdefs.h >>conftest.$ac_ext
22395
cat >>conftest.$ac_ext <<_ACEOF
22396
/* end confdefs.h. */
22398
extern struct { int foo; } errno;
22407
rm -f conftest.$ac_objext
22408
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22409
(eval $ac_compile) 2>conftest.er1
22411
grep -v '^ *+' conftest.er1 >conftest.err
22413
cat conftest.err >&5
22414
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415
(exit $ac_status); } &&
22416
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22417
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22418
(eval $ac_try) 2>&5
22420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421
(exit $ac_status); }; } &&
22422
{ ac_try='test -s conftest.$ac_objext'
22423
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22424
(eval $ac_try) 2>&5
22426
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427
(exit $ac_status); }; }; then
22428
gt_cv_var_errno_declaration=no
22430
echo "$as_me: failed program was:" >&5
22431
sed 's/^/| /' conftest.$ac_ext >&5
22433
gt_cv_var_errno_declaration=yes
22435
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22438
echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
22439
echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6
22440
if test $gt_cv_var_errno_declaration = yes; then
22442
cat >>confdefs.h <<\_ACEOF
22443
#define HAVE_ERRNO_DECL 1
22450
echo "$as_me:$LINENO: checking if environ is properly declared" >&5
22451
echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
22452
if test "${gt_cv_var_environ_declaration+set}" = set; then
22453
echo $ECHO_N "(cached) $ECHO_C" >&6
22456
cat >conftest.$ac_ext <<_ACEOF
22459
cat confdefs.h >>conftest.$ac_ext
22460
cat >>conftest.$ac_ext <<_ACEOF
22461
/* end confdefs.h. */
22462
#include <unistd.h>
22463
extern struct { int foo; } environ;
22472
rm -f conftest.$ac_objext
22473
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22474
(eval $ac_compile) 2>conftest.er1
22476
grep -v '^ *+' conftest.er1 >conftest.err
22478
cat conftest.err >&5
22479
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480
(exit $ac_status); } &&
22481
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22482
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22483
(eval $ac_try) 2>&5
22485
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486
(exit $ac_status); }; } &&
22487
{ ac_try='test -s conftest.$ac_objext'
22488
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22489
(eval $ac_try) 2>&5
22491
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492
(exit $ac_status); }; }; then
22493
gt_cv_var_environ_declaration=no
22495
echo "$as_me: failed program was:" >&5
22496
sed 's/^/| /' conftest.$ac_ext >&5
22498
gt_cv_var_environ_declaration=yes
22500
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22503
echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
22504
echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6
22505
if test $gt_cv_var_environ_declaration = yes; then
22507
cat >>confdefs.h <<\_ACEOF
22508
#define HAVE_ENVIRON_DECL 1
22515
if test $ac_cv_func_unsetenv = no; then
22532
echo "$as_me:$LINENO: checking if errno is properly declared" >&5
22533
echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6
22534
if test "${gt_cv_var_errno_declaration+set}" = set; then
22535
echo $ECHO_N "(cached) $ECHO_C" >&6
22538
cat >conftest.$ac_ext <<_ACEOF
22541
cat confdefs.h >>conftest.$ac_ext
22542
cat >>conftest.$ac_ext <<_ACEOF
22543
/* end confdefs.h. */
22545
extern struct { int foo; } errno;
22554
rm -f conftest.$ac_objext
22555
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22556
(eval $ac_compile) 2>conftest.er1
22558
grep -v '^ *+' conftest.er1 >conftest.err
22560
cat conftest.err >&5
22561
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562
(exit $ac_status); } &&
22563
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22564
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22565
(eval $ac_try) 2>&5
22567
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568
(exit $ac_status); }; } &&
22569
{ ac_try='test -s conftest.$ac_objext'
22570
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22571
(eval $ac_try) 2>&5
22573
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574
(exit $ac_status); }; }; then
22575
gt_cv_var_errno_declaration=no
22577
echo "$as_me: failed program was:" >&5
22578
sed 's/^/| /' conftest.$ac_ext >&5
22580
gt_cv_var_errno_declaration=yes
22582
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22585
echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
22586
echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6
22587
if test $gt_cv_var_errno_declaration = yes; then
22589
cat >>confdefs.h <<\_ACEOF
22590
#define HAVE_ERRNO_DECL 1
22597
echo "$as_me:$LINENO: checking if environ is properly declared" >&5
22598
echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
22599
if test "${gt_cv_var_environ_declaration+set}" = set; then
22600
echo $ECHO_N "(cached) $ECHO_C" >&6
22603
cat >conftest.$ac_ext <<_ACEOF
22606
cat confdefs.h >>conftest.$ac_ext
22607
cat >>conftest.$ac_ext <<_ACEOF
22608
/* end confdefs.h. */
22609
#include <unistd.h>
22610
extern struct { int foo; } environ;
22619
rm -f conftest.$ac_objext
22620
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22621
(eval $ac_compile) 2>conftest.er1
22623
grep -v '^ *+' conftest.er1 >conftest.err
22625
cat conftest.err >&5
22626
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627
(exit $ac_status); } &&
22628
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22629
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22630
(eval $ac_try) 2>&5
22632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633
(exit $ac_status); }; } &&
22634
{ ac_try='test -s conftest.$ac_objext'
22635
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22636
(eval $ac_try) 2>&5
22638
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639
(exit $ac_status); }; }; then
22640
gt_cv_var_environ_declaration=no
22642
echo "$as_me: failed program was:" >&5
22643
sed 's/^/| /' conftest.$ac_ext >&5
22645
gt_cv_var_environ_declaration=yes
22647
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22650
echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
22651
echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6
22652
if test $gt_cv_var_environ_declaration = yes; then
22654
cat >>confdefs.h <<\_ACEOF
22655
#define HAVE_ENVIRON_DECL 1
22665
for ac_func in strerror
22667
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22668
echo "$as_me:$LINENO: checking for $ac_func" >&5
22669
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22670
if eval "test \"\${$as_ac_var+set}\" = set"; then
22671
echo $ECHO_N "(cached) $ECHO_C" >&6
22673
cat >conftest.$ac_ext <<_ACEOF
22676
cat confdefs.h >>conftest.$ac_ext
22677
cat >>conftest.$ac_ext <<_ACEOF
22678
/* end confdefs.h. */
22679
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22680
For example, HP-UX 11i <limits.h> declares gettimeofday. */
22681
#define $ac_func innocuous_$ac_func
22683
/* System header to define __stub macros and hopefully few prototypes,
22684
which can conflict with char $ac_func (); below.
22685
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22686
<limits.h> exists even on freestanding compilers. */
22689
# include <limits.h>
22691
# include <assert.h>
22696
/* Override any gcc2 internal prototype to avoid an error. */
22701
/* We use char because int might match the return type of a gcc2
22702
builtin and then its argument prototype would still apply. */
22704
/* The GNU C library defines this for functions which it implements
22705
to always fail with ENOSYS. Some functions are actually named
22706
something starting with __ and the normal name is an alias. */
22707
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22710
char (*f) () = $ac_func;
22719
return f != $ac_func;
22724
rm -f conftest.$ac_objext conftest$ac_exeext
22725
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22726
(eval $ac_link) 2>conftest.er1
22728
grep -v '^ *+' conftest.er1 >conftest.err
22730
cat conftest.err >&5
22731
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22732
(exit $ac_status); } &&
22733
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22734
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22735
(eval $ac_try) 2>&5
22737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738
(exit $ac_status); }; } &&
22739
{ ac_try='test -s conftest$ac_exeext'
22740
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22741
(eval $ac_try) 2>&5
22743
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744
(exit $ac_status); }; }; then
22745
eval "$as_ac_var=yes"
22747
echo "$as_me: failed program was:" >&5
22748
sed 's/^/| /' conftest.$ac_ext >&5
22750
eval "$as_ac_var=no"
22752
rm -f conftest.err conftest.$ac_objext \
22753
conftest$ac_exeext conftest.$ac_ext
22755
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22756
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22757
if test `eval echo '${'$as_ac_var'}'` = yes; then
22758
cat >>confdefs.h <<_ACEOF
22759
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22764
"$ac_func.$ac_objext" | \
22765
*" $ac_func.$ac_objext" | \
22766
"$ac_func.$ac_objext "* | \
22767
*" $ac_func.$ac_objext "* ) ;;
22768
*) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
22775
if test $ac_cv_func_strerror = no; then
22782
echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
22783
echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
22784
if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
22785
echo $ECHO_N "(cached) $ECHO_C" >&6
22787
cat >conftest.$ac_ext <<_ACEOF
22790
cat confdefs.h >>conftest.$ac_ext
22791
cat >>conftest.$ac_ext <<_ACEOF
22792
/* end confdefs.h. */
22793
$ac_includes_default
22797
#ifndef clearerr_unlocked
22798
char *p = (char *) clearerr_unlocked;
22805
rm -f conftest.$ac_objext
22806
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22807
(eval $ac_compile) 2>conftest.er1
22809
grep -v '^ *+' conftest.er1 >conftest.err
22811
cat conftest.err >&5
22812
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813
(exit $ac_status); } &&
22814
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22815
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22816
(eval $ac_try) 2>&5
22818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819
(exit $ac_status); }; } &&
22820
{ ac_try='test -s conftest.$ac_objext'
22821
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22822
(eval $ac_try) 2>&5
22824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825
(exit $ac_status); }; }; then
22826
ac_cv_have_decl_clearerr_unlocked=yes
22828
echo "$as_me: failed program was:" >&5
22829
sed 's/^/| /' conftest.$ac_ext >&5
22831
ac_cv_have_decl_clearerr_unlocked=no
22833
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22835
echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
22836
echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
22837
if test $ac_cv_have_decl_clearerr_unlocked = yes; then
22839
cat >>confdefs.h <<_ACEOF
22840
#define HAVE_DECL_CLEARERR_UNLOCKED 1
22845
cat >>confdefs.h <<_ACEOF
22846
#define HAVE_DECL_CLEARERR_UNLOCKED 0
22855
echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22856
echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
22857
if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22858
echo $ECHO_N "(cached) $ECHO_C" >&6
22860
cat >conftest.$ac_ext <<_ACEOF
22863
cat confdefs.h >>conftest.$ac_ext
22864
cat >>conftest.$ac_ext <<_ACEOF
22865
/* end confdefs.h. */
22866
$ac_includes_default
22870
#ifndef feof_unlocked
22871
char *p = (char *) feof_unlocked;
22878
rm -f conftest.$ac_objext
22879
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22880
(eval $ac_compile) 2>conftest.er1
22882
grep -v '^ *+' conftest.er1 >conftest.err
22884
cat conftest.err >&5
22885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886
(exit $ac_status); } &&
22887
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22888
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22889
(eval $ac_try) 2>&5
22891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892
(exit $ac_status); }; } &&
22893
{ ac_try='test -s conftest.$ac_objext'
22894
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22895
(eval $ac_try) 2>&5
22897
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22898
(exit $ac_status); }; }; then
22899
ac_cv_have_decl_feof_unlocked=yes
22901
echo "$as_me: failed program was:" >&5
22902
sed 's/^/| /' conftest.$ac_ext >&5
22904
ac_cv_have_decl_feof_unlocked=no
22906
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22908
echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22909
echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
22910
if test $ac_cv_have_decl_feof_unlocked = yes; then
22912
cat >>confdefs.h <<_ACEOF
22913
#define HAVE_DECL_FEOF_UNLOCKED 1
22918
cat >>confdefs.h <<_ACEOF
22919
#define HAVE_DECL_FEOF_UNLOCKED 0
22928
echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
22929
echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
22930
if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
22931
echo $ECHO_N "(cached) $ECHO_C" >&6
22933
cat >conftest.$ac_ext <<_ACEOF
22936
cat confdefs.h >>conftest.$ac_ext
22937
cat >>conftest.$ac_ext <<_ACEOF
22938
/* end confdefs.h. */
22939
$ac_includes_default
22943
#ifndef ferror_unlocked
22944
char *p = (char *) ferror_unlocked;
22951
rm -f conftest.$ac_objext
22952
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22953
(eval $ac_compile) 2>conftest.er1
22955
grep -v '^ *+' conftest.er1 >conftest.err
22957
cat conftest.err >&5
22958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959
(exit $ac_status); } &&
22960
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22961
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22962
(eval $ac_try) 2>&5
22964
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965
(exit $ac_status); }; } &&
22966
{ ac_try='test -s conftest.$ac_objext'
22967
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22968
(eval $ac_try) 2>&5
22970
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971
(exit $ac_status); }; }; then
22972
ac_cv_have_decl_ferror_unlocked=yes
22974
echo "$as_me: failed program was:" >&5
22975
sed 's/^/| /' conftest.$ac_ext >&5
22977
ac_cv_have_decl_ferror_unlocked=no
22979
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22981
echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
22982
echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
22983
if test $ac_cv_have_decl_ferror_unlocked = yes; then
22985
cat >>confdefs.h <<_ACEOF
22986
#define HAVE_DECL_FERROR_UNLOCKED 1
22991
cat >>confdefs.h <<_ACEOF
22992
#define HAVE_DECL_FERROR_UNLOCKED 0
23001
echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
23002
echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
23003
if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
23004
echo $ECHO_N "(cached) $ECHO_C" >&6
23006
cat >conftest.$ac_ext <<_ACEOF
23009
cat confdefs.h >>conftest.$ac_ext
23010
cat >>conftest.$ac_ext <<_ACEOF
23011
/* end confdefs.h. */
23012
$ac_includes_default
23016
#ifndef fflush_unlocked
23017
char *p = (char *) fflush_unlocked;
23024
rm -f conftest.$ac_objext
23025
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23026
(eval $ac_compile) 2>conftest.er1
23028
grep -v '^ *+' conftest.er1 >conftest.err
23030
cat conftest.err >&5
23031
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032
(exit $ac_status); } &&
23033
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23034
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23035
(eval $ac_try) 2>&5
23037
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038
(exit $ac_status); }; } &&
23039
{ ac_try='test -s conftest.$ac_objext'
23040
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23041
(eval $ac_try) 2>&5
23043
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044
(exit $ac_status); }; }; then
23045
ac_cv_have_decl_fflush_unlocked=yes
23047
echo "$as_me: failed program was:" >&5
23048
sed 's/^/| /' conftest.$ac_ext >&5
23050
ac_cv_have_decl_fflush_unlocked=no
23052
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23054
echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
23055
echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
23056
if test $ac_cv_have_decl_fflush_unlocked = yes; then
23058
cat >>confdefs.h <<_ACEOF
23059
#define HAVE_DECL_FFLUSH_UNLOCKED 1
23064
cat >>confdefs.h <<_ACEOF
23065
#define HAVE_DECL_FFLUSH_UNLOCKED 0
23074
echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
23075
echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
23076
if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
23077
echo $ECHO_N "(cached) $ECHO_C" >&6
23079
cat >conftest.$ac_ext <<_ACEOF
23082
cat confdefs.h >>conftest.$ac_ext
23083
cat >>conftest.$ac_ext <<_ACEOF
23084
/* end confdefs.h. */
23085
$ac_includes_default
23089
#ifndef fgets_unlocked
23090
char *p = (char *) fgets_unlocked;
23097
rm -f conftest.$ac_objext
23098
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23099
(eval $ac_compile) 2>conftest.er1
23101
grep -v '^ *+' conftest.er1 >conftest.err
23103
cat conftest.err >&5
23104
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23105
(exit $ac_status); } &&
23106
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23107
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23108
(eval $ac_try) 2>&5
23110
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111
(exit $ac_status); }; } &&
23112
{ ac_try='test -s conftest.$ac_objext'
23113
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23114
(eval $ac_try) 2>&5
23116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117
(exit $ac_status); }; }; then
23118
ac_cv_have_decl_fgets_unlocked=yes
23120
echo "$as_me: failed program was:" >&5
23121
sed 's/^/| /' conftest.$ac_ext >&5
23123
ac_cv_have_decl_fgets_unlocked=no
23125
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23127
echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
23128
echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
23129
if test $ac_cv_have_decl_fgets_unlocked = yes; then
23131
cat >>confdefs.h <<_ACEOF
23132
#define HAVE_DECL_FGETS_UNLOCKED 1
23137
cat >>confdefs.h <<_ACEOF
23138
#define HAVE_DECL_FGETS_UNLOCKED 0
23147
echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
23148
echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
23149
if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
23150
echo $ECHO_N "(cached) $ECHO_C" >&6
23152
cat >conftest.$ac_ext <<_ACEOF
23155
cat confdefs.h >>conftest.$ac_ext
23156
cat >>conftest.$ac_ext <<_ACEOF
23157
/* end confdefs.h. */
23158
$ac_includes_default
23162
#ifndef fputc_unlocked
23163
char *p = (char *) fputc_unlocked;
23170
rm -f conftest.$ac_objext
23171
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23172
(eval $ac_compile) 2>conftest.er1
23174
grep -v '^ *+' conftest.er1 >conftest.err
23176
cat conftest.err >&5
23177
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178
(exit $ac_status); } &&
23179
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23180
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23181
(eval $ac_try) 2>&5
23183
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184
(exit $ac_status); }; } &&
23185
{ ac_try='test -s conftest.$ac_objext'
23186
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23187
(eval $ac_try) 2>&5
23189
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190
(exit $ac_status); }; }; then
23191
ac_cv_have_decl_fputc_unlocked=yes
23193
echo "$as_me: failed program was:" >&5
23194
sed 's/^/| /' conftest.$ac_ext >&5
23196
ac_cv_have_decl_fputc_unlocked=no
23198
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23200
echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
23201
echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
23202
if test $ac_cv_have_decl_fputc_unlocked = yes; then
23204
cat >>confdefs.h <<_ACEOF
23205
#define HAVE_DECL_FPUTC_UNLOCKED 1
23210
cat >>confdefs.h <<_ACEOF
23211
#define HAVE_DECL_FPUTC_UNLOCKED 0
23220
echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
23221
echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
23222
if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
23223
echo $ECHO_N "(cached) $ECHO_C" >&6
23225
cat >conftest.$ac_ext <<_ACEOF
23228
cat confdefs.h >>conftest.$ac_ext
23229
cat >>conftest.$ac_ext <<_ACEOF
23230
/* end confdefs.h. */
23231
$ac_includes_default
23235
#ifndef fputs_unlocked
23236
char *p = (char *) fputs_unlocked;
23243
rm -f conftest.$ac_objext
23244
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23245
(eval $ac_compile) 2>conftest.er1
23247
grep -v '^ *+' conftest.er1 >conftest.err
23249
cat conftest.err >&5
23250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251
(exit $ac_status); } &&
23252
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23253
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23254
(eval $ac_try) 2>&5
23256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23257
(exit $ac_status); }; } &&
23258
{ ac_try='test -s conftest.$ac_objext'
23259
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23260
(eval $ac_try) 2>&5
23262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263
(exit $ac_status); }; }; then
23264
ac_cv_have_decl_fputs_unlocked=yes
23266
echo "$as_me: failed program was:" >&5
23267
sed 's/^/| /' conftest.$ac_ext >&5
23269
ac_cv_have_decl_fputs_unlocked=no
23271
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23273
echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
23274
echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
23275
if test $ac_cv_have_decl_fputs_unlocked = yes; then
23277
cat >>confdefs.h <<_ACEOF
23278
#define HAVE_DECL_FPUTS_UNLOCKED 1
23283
cat >>confdefs.h <<_ACEOF
23284
#define HAVE_DECL_FPUTS_UNLOCKED 0
23293
echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
23294
echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
23295
if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
23296
echo $ECHO_N "(cached) $ECHO_C" >&6
23298
cat >conftest.$ac_ext <<_ACEOF
23301
cat confdefs.h >>conftest.$ac_ext
23302
cat >>conftest.$ac_ext <<_ACEOF
23303
/* end confdefs.h. */
23304
$ac_includes_default
23308
#ifndef fread_unlocked
23309
char *p = (char *) fread_unlocked;
23316
rm -f conftest.$ac_objext
23317
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23318
(eval $ac_compile) 2>conftest.er1
23320
grep -v '^ *+' conftest.er1 >conftest.err
23322
cat conftest.err >&5
23323
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324
(exit $ac_status); } &&
23325
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23326
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23327
(eval $ac_try) 2>&5
23329
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330
(exit $ac_status); }; } &&
23331
{ ac_try='test -s conftest.$ac_objext'
23332
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23333
(eval $ac_try) 2>&5
23335
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336
(exit $ac_status); }; }; then
23337
ac_cv_have_decl_fread_unlocked=yes
23339
echo "$as_me: failed program was:" >&5
23340
sed 's/^/| /' conftest.$ac_ext >&5
23342
ac_cv_have_decl_fread_unlocked=no
23344
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23346
echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
23347
echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
23348
if test $ac_cv_have_decl_fread_unlocked = yes; then
23350
cat >>confdefs.h <<_ACEOF
23351
#define HAVE_DECL_FREAD_UNLOCKED 1
23356
cat >>confdefs.h <<_ACEOF
23357
#define HAVE_DECL_FREAD_UNLOCKED 0
23366
echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
23367
echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
23368
if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
23369
echo $ECHO_N "(cached) $ECHO_C" >&6
23371
cat >conftest.$ac_ext <<_ACEOF
23374
cat confdefs.h >>conftest.$ac_ext
23375
cat >>conftest.$ac_ext <<_ACEOF
23376
/* end confdefs.h. */
23377
$ac_includes_default
23381
#ifndef fwrite_unlocked
23382
char *p = (char *) fwrite_unlocked;
23389
rm -f conftest.$ac_objext
23390
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23391
(eval $ac_compile) 2>conftest.er1
23393
grep -v '^ *+' conftest.er1 >conftest.err
23395
cat conftest.err >&5
23396
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397
(exit $ac_status); } &&
23398
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23399
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23400
(eval $ac_try) 2>&5
23402
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403
(exit $ac_status); }; } &&
23404
{ ac_try='test -s conftest.$ac_objext'
23405
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23406
(eval $ac_try) 2>&5
23408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23409
(exit $ac_status); }; }; then
23410
ac_cv_have_decl_fwrite_unlocked=yes
23412
echo "$as_me: failed program was:" >&5
23413
sed 's/^/| /' conftest.$ac_ext >&5
23415
ac_cv_have_decl_fwrite_unlocked=no
23417
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23419
echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
23420
echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
23421
if test $ac_cv_have_decl_fwrite_unlocked = yes; then
23423
cat >>confdefs.h <<_ACEOF
23424
#define HAVE_DECL_FWRITE_UNLOCKED 1
23429
cat >>confdefs.h <<_ACEOF
23430
#define HAVE_DECL_FWRITE_UNLOCKED 0
23439
echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
23440
echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
23441
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
23442
echo $ECHO_N "(cached) $ECHO_C" >&6
23444
cat >conftest.$ac_ext <<_ACEOF
23447
cat confdefs.h >>conftest.$ac_ext
23448
cat >>conftest.$ac_ext <<_ACEOF
23449
/* end confdefs.h. */
23450
$ac_includes_default
23454
#ifndef getc_unlocked
23455
char *p = (char *) getc_unlocked;
23462
rm -f conftest.$ac_objext
23463
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23464
(eval $ac_compile) 2>conftest.er1
23466
grep -v '^ *+' conftest.er1 >conftest.err
23468
cat conftest.err >&5
23469
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470
(exit $ac_status); } &&
23471
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23472
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23473
(eval $ac_try) 2>&5
23475
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476
(exit $ac_status); }; } &&
23477
{ ac_try='test -s conftest.$ac_objext'
23478
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23479
(eval $ac_try) 2>&5
23481
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482
(exit $ac_status); }; }; then
23483
ac_cv_have_decl_getc_unlocked=yes
23485
echo "$as_me: failed program was:" >&5
23486
sed 's/^/| /' conftest.$ac_ext >&5
23488
ac_cv_have_decl_getc_unlocked=no
23490
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23492
echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
23493
echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
23494
if test $ac_cv_have_decl_getc_unlocked = yes; then
23496
cat >>confdefs.h <<_ACEOF
23497
#define HAVE_DECL_GETC_UNLOCKED 1
23502
cat >>confdefs.h <<_ACEOF
23503
#define HAVE_DECL_GETC_UNLOCKED 0
23512
echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
23513
echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
23514
if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
23515
echo $ECHO_N "(cached) $ECHO_C" >&6
23517
cat >conftest.$ac_ext <<_ACEOF
23520
cat confdefs.h >>conftest.$ac_ext
23521
cat >>conftest.$ac_ext <<_ACEOF
23522
/* end confdefs.h. */
23523
$ac_includes_default
23527
#ifndef getchar_unlocked
23528
char *p = (char *) getchar_unlocked;
23535
rm -f conftest.$ac_objext
23536
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23537
(eval $ac_compile) 2>conftest.er1
23539
grep -v '^ *+' conftest.er1 >conftest.err
23541
cat conftest.err >&5
23542
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543
(exit $ac_status); } &&
23544
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23545
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23546
(eval $ac_try) 2>&5
23548
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549
(exit $ac_status); }; } &&
23550
{ ac_try='test -s conftest.$ac_objext'
23551
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23552
(eval $ac_try) 2>&5
23554
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555
(exit $ac_status); }; }; then
23556
ac_cv_have_decl_getchar_unlocked=yes
23558
echo "$as_me: failed program was:" >&5
23559
sed 's/^/| /' conftest.$ac_ext >&5
23561
ac_cv_have_decl_getchar_unlocked=no
23563
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23565
echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
23566
echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
23567
if test $ac_cv_have_decl_getchar_unlocked = yes; then
23569
cat >>confdefs.h <<_ACEOF
23570
#define HAVE_DECL_GETCHAR_UNLOCKED 1
23575
cat >>confdefs.h <<_ACEOF
23576
#define HAVE_DECL_GETCHAR_UNLOCKED 0
23585
echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
23586
echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
23587
if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
23588
echo $ECHO_N "(cached) $ECHO_C" >&6
23590
cat >conftest.$ac_ext <<_ACEOF
23593
cat confdefs.h >>conftest.$ac_ext
23594
cat >>conftest.$ac_ext <<_ACEOF
23595
/* end confdefs.h. */
23596
$ac_includes_default
23600
#ifndef putc_unlocked
23601
char *p = (char *) putc_unlocked;
23608
rm -f conftest.$ac_objext
23609
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23610
(eval $ac_compile) 2>conftest.er1
23612
grep -v '^ *+' conftest.er1 >conftest.err
23614
cat conftest.err >&5
23615
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616
(exit $ac_status); } &&
23617
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23618
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23619
(eval $ac_try) 2>&5
23621
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23622
(exit $ac_status); }; } &&
23623
{ ac_try='test -s conftest.$ac_objext'
23624
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23625
(eval $ac_try) 2>&5
23627
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628
(exit $ac_status); }; }; then
23629
ac_cv_have_decl_putc_unlocked=yes
23631
echo "$as_me: failed program was:" >&5
23632
sed 's/^/| /' conftest.$ac_ext >&5
23634
ac_cv_have_decl_putc_unlocked=no
23636
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23638
echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
23639
echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
23640
if test $ac_cv_have_decl_putc_unlocked = yes; then
23642
cat >>confdefs.h <<_ACEOF
23643
#define HAVE_DECL_PUTC_UNLOCKED 1
23648
cat >>confdefs.h <<_ACEOF
23649
#define HAVE_DECL_PUTC_UNLOCKED 0
23658
echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
23659
echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
23660
if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
23661
echo $ECHO_N "(cached) $ECHO_C" >&6
23663
cat >conftest.$ac_ext <<_ACEOF
23666
cat confdefs.h >>conftest.$ac_ext
23667
cat >>conftest.$ac_ext <<_ACEOF
23668
/* end confdefs.h. */
23669
$ac_includes_default
23673
#ifndef putchar_unlocked
23674
char *p = (char *) putchar_unlocked;
23681
rm -f conftest.$ac_objext
23682
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23683
(eval $ac_compile) 2>conftest.er1
23685
grep -v '^ *+' conftest.er1 >conftest.err
23687
cat conftest.err >&5
23688
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689
(exit $ac_status); } &&
23690
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23691
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23692
(eval $ac_try) 2>&5
23694
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695
(exit $ac_status); }; } &&
23696
{ ac_try='test -s conftest.$ac_objext'
23697
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23698
(eval $ac_try) 2>&5
23700
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701
(exit $ac_status); }; }; then
23702
ac_cv_have_decl_putchar_unlocked=yes
23704
echo "$as_me: failed program was:" >&5
23705
sed 's/^/| /' conftest.$ac_ext >&5
23707
ac_cv_have_decl_putchar_unlocked=no
23709
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23711
echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
23712
echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
23713
if test $ac_cv_have_decl_putchar_unlocked = yes; then
23715
cat >>confdefs.h <<_ACEOF
23716
#define HAVE_DECL_PUTCHAR_UNLOCKED 1
23721
cat >>confdefs.h <<_ACEOF
23722
#define HAVE_DECL_PUTCHAR_UNLOCKED 0
23778
echo "$as_me:$LINENO: checking for error_at_line" >&5
23779
echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
23780
if test "${am_cv_lib_error_at_line+set}" = set; then
23781
echo $ECHO_N "(cached) $ECHO_C" >&6
23783
cat >conftest.$ac_ext <<_ACEOF
23786
cat confdefs.h >>conftest.$ac_ext
23787
cat >>conftest.$ac_ext <<_ACEOF
23788
/* end confdefs.h. */
23793
error_at_line(0, 0, "", 0, "");
23798
rm -f conftest.$ac_objext conftest$ac_exeext
23799
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23800
(eval $ac_link) 2>conftest.er1
23802
grep -v '^ *+' conftest.er1 >conftest.err
23804
cat conftest.err >&5
23805
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806
(exit $ac_status); } &&
23807
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23808
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23809
(eval $ac_try) 2>&5
23811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23812
(exit $ac_status); }; } &&
23813
{ ac_try='test -s conftest$ac_exeext'
23814
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23815
(eval $ac_try) 2>&5
23817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23818
(exit $ac_status); }; }; then
23819
am_cv_lib_error_at_line=yes
23821
echo "$as_me: failed program was:" >&5
23822
sed 's/^/| /' conftest.$ac_ext >&5
23824
am_cv_lib_error_at_line=no
23826
rm -f conftest.err conftest.$ac_objext \
23827
conftest$ac_exeext conftest.$ac_ext
23829
echo "$as_me:$LINENO: result: $am_cv_lib_error_at_line" >&5
23830
echo "${ECHO_T}$am_cv_lib_error_at_line" >&6
23831
if test $am_cv_lib_error_at_line = yes; then
23833
cat >>confdefs.h <<\_ACEOF
23834
#define HAVE_ERROR_AT_LINE 1
23842
for ac_func in strerror
23844
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23845
echo "$as_me:$LINENO: checking for $ac_func" >&5
23846
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23847
if eval "test \"\${$as_ac_var+set}\" = set"; then
23848
echo $ECHO_N "(cached) $ECHO_C" >&6
23850
cat >conftest.$ac_ext <<_ACEOF
23853
cat confdefs.h >>conftest.$ac_ext
23854
cat >>conftest.$ac_ext <<_ACEOF
23855
/* end confdefs.h. */
23856
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23857
For example, HP-UX 11i <limits.h> declares gettimeofday. */
23858
#define $ac_func innocuous_$ac_func
23860
/* System header to define __stub macros and hopefully few prototypes,
23861
which can conflict with char $ac_func (); below.
23862
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23863
<limits.h> exists even on freestanding compilers. */
23866
# include <limits.h>
23868
# include <assert.h>
23873
/* Override any gcc2 internal prototype to avoid an error. */
23878
/* We use char because int might match the return type of a gcc2
23879
builtin and then its argument prototype would still apply. */
23881
/* The GNU C library defines this for functions which it implements
23882
to always fail with ENOSYS. Some functions are actually named
23883
something starting with __ and the normal name is an alias. */
23884
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23887
char (*f) () = $ac_func;
23896
return f != $ac_func;
23901
rm -f conftest.$ac_objext conftest$ac_exeext
23902
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23903
(eval $ac_link) 2>conftest.er1
23905
grep -v '^ *+' conftest.er1 >conftest.err
23907
cat conftest.err >&5
23908
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909
(exit $ac_status); } &&
23910
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23911
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23912
(eval $ac_try) 2>&5
23914
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915
(exit $ac_status); }; } &&
23916
{ ac_try='test -s conftest$ac_exeext'
23917
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23918
(eval $ac_try) 2>&5
23920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921
(exit $ac_status); }; }; then
23922
eval "$as_ac_var=yes"
23924
echo "$as_me: failed program was:" >&5
23925
sed 's/^/| /' conftest.$ac_ext >&5
23927
eval "$as_ac_var=no"
23929
rm -f conftest.err conftest.$ac_objext \
23930
conftest$ac_exeext conftest.$ac_ext
23932
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23933
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23934
if test `eval echo '${'$as_ac_var'}'` = yes; then
23935
cat >>confdefs.h <<_ACEOF
23936
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23942
echo "$as_me:$LINENO: checking whether strerror is declared" >&5
23943
echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
23944
if test "${ac_cv_have_decl_strerror+set}" = set; then
23945
echo $ECHO_N "(cached) $ECHO_C" >&6
23947
cat >conftest.$ac_ext <<_ACEOF
23950
cat confdefs.h >>conftest.$ac_ext
23951
cat >>conftest.$ac_ext <<_ACEOF
23952
/* end confdefs.h. */
23953
$ac_includes_default
23958
char *p = (char *) strerror;
23965
rm -f conftest.$ac_objext
23966
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23967
(eval $ac_compile) 2>conftest.er1
23969
grep -v '^ *+' conftest.er1 >conftest.err
23971
cat conftest.err >&5
23972
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23973
(exit $ac_status); } &&
23974
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23975
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23976
(eval $ac_try) 2>&5
23978
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23979
(exit $ac_status); }; } &&
23980
{ ac_try='test -s conftest.$ac_objext'
23981
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23982
(eval $ac_try) 2>&5
23984
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985
(exit $ac_status); }; }; then
23986
ac_cv_have_decl_strerror=yes
23988
echo "$as_me: failed program was:" >&5
23989
sed 's/^/| /' conftest.$ac_ext >&5
23991
ac_cv_have_decl_strerror=no
23993
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23995
echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
23996
echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
23997
if test $ac_cv_have_decl_strerror = yes; then
23999
cat >>confdefs.h <<_ACEOF
24000
#define HAVE_DECL_STRERROR 1
24005
cat >>confdefs.h <<_ACEOF
24006
#define HAVE_DECL_STRERROR 0
24013
echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
24014
echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
24015
if test "${ac_cv_have_decl_strerror_r+set}" = set; then
24016
echo $ECHO_N "(cached) $ECHO_C" >&6
24018
cat >conftest.$ac_ext <<_ACEOF
24021
cat confdefs.h >>conftest.$ac_ext
24022
cat >>conftest.$ac_ext <<_ACEOF
24023
/* end confdefs.h. */
24024
$ac_includes_default
24029
char *p = (char *) strerror_r;
24036
rm -f conftest.$ac_objext
24037
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24038
(eval $ac_compile) 2>conftest.er1
24040
grep -v '^ *+' conftest.er1 >conftest.err
24042
cat conftest.err >&5
24043
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044
(exit $ac_status); } &&
24045
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24046
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24047
(eval $ac_try) 2>&5
24049
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050
(exit $ac_status); }; } &&
24051
{ ac_try='test -s conftest.$ac_objext'
24052
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24053
(eval $ac_try) 2>&5
24055
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056
(exit $ac_status); }; }; then
24057
ac_cv_have_decl_strerror_r=yes
24059
echo "$as_me: failed program was:" >&5
24060
sed 's/^/| /' conftest.$ac_ext >&5
24062
ac_cv_have_decl_strerror_r=no
24064
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24066
echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
24067
echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
24068
if test $ac_cv_have_decl_strerror_r = yes; then
24070
cat >>confdefs.h <<_ACEOF
24071
#define HAVE_DECL_STRERROR_R 1
24076
cat >>confdefs.h <<_ACEOF
24077
#define HAVE_DECL_STRERROR_R 0
24085
for ac_func in strerror_r
24087
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24088
echo "$as_me:$LINENO: checking for $ac_func" >&5
24089
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24090
if eval "test \"\${$as_ac_var+set}\" = set"; then
24091
echo $ECHO_N "(cached) $ECHO_C" >&6
24093
cat >conftest.$ac_ext <<_ACEOF
24096
cat confdefs.h >>conftest.$ac_ext
24097
cat >>conftest.$ac_ext <<_ACEOF
24098
/* end confdefs.h. */
24099
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24100
For example, HP-UX 11i <limits.h> declares gettimeofday. */
24101
#define $ac_func innocuous_$ac_func
24103
/* System header to define __stub macros and hopefully few prototypes,
24104
which can conflict with char $ac_func (); below.
24105
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24106
<limits.h> exists even on freestanding compilers. */
24109
# include <limits.h>
24111
# include <assert.h>
24116
/* Override any gcc2 internal prototype to avoid an error. */
24121
/* We use char because int might match the return type of a gcc2
24122
builtin and then its argument prototype would still apply. */
24124
/* The GNU C library defines this for functions which it implements
24125
to always fail with ENOSYS. Some functions are actually named
24126
something starting with __ and the normal name is an alias. */
24127
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24130
char (*f) () = $ac_func;
24139
return f != $ac_func;
24144
rm -f conftest.$ac_objext conftest$ac_exeext
24145
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24146
(eval $ac_link) 2>conftest.er1
24148
grep -v '^ *+' conftest.er1 >conftest.err
24150
cat conftest.err >&5
24151
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152
(exit $ac_status); } &&
24153
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24154
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24155
(eval $ac_try) 2>&5
24157
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158
(exit $ac_status); }; } &&
24159
{ ac_try='test -s conftest$ac_exeext'
24160
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24161
(eval $ac_try) 2>&5
24163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164
(exit $ac_status); }; }; then
24165
eval "$as_ac_var=yes"
24167
echo "$as_me: failed program was:" >&5
24168
sed 's/^/| /' conftest.$ac_ext >&5
24170
eval "$as_ac_var=no"
24172
rm -f conftest.err conftest.$ac_objext \
24173
conftest$ac_exeext conftest.$ac_ext
24175
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24176
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24177
if test `eval echo '${'$as_ac_var'}'` = yes; then
24178
cat >>confdefs.h <<_ACEOF
24179
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24185
echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
24186
echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
24187
if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
24188
echo $ECHO_N "(cached) $ECHO_C" >&6
24191
ac_cv_func_strerror_r_char_p=no
24192
if test $ac_cv_have_decl_strerror_r = yes; then
24193
cat >conftest.$ac_ext <<_ACEOF
24196
cat confdefs.h >>conftest.$ac_ext
24197
cat >>conftest.$ac_ext <<_ACEOF
24198
/* end confdefs.h. */
24199
$ac_includes_default
24205
char x = *strerror_r (0, buf, sizeof buf);
24206
char *p = strerror_r (0, buf, sizeof buf);
24212
rm -f conftest.$ac_objext
24213
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24214
(eval $ac_compile) 2>conftest.er1
24216
grep -v '^ *+' conftest.er1 >conftest.err
24218
cat conftest.err >&5
24219
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220
(exit $ac_status); } &&
24221
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24222
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24223
(eval $ac_try) 2>&5
24225
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24226
(exit $ac_status); }; } &&
24227
{ ac_try='test -s conftest.$ac_objext'
24228
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24229
(eval $ac_try) 2>&5
24231
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232
(exit $ac_status); }; }; then
24233
ac_cv_func_strerror_r_char_p=yes
24235
echo "$as_me: failed program was:" >&5
24236
sed 's/^/| /' conftest.$ac_ext >&5
24239
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24241
# strerror_r is not declared. Choose between
24242
# systems that have relatively inaccessible declarations for the
24243
# function. BeOS and DEC UNIX 4.0 fall in this category, but the
24244
# former has a strerror_r that returns char*, while the latter
24245
# has a strerror_r that returns `int'.
24246
# This test should segfault on the DEC system.
24247
if test "$cross_compiling" = yes; then
24250
cat >conftest.$ac_ext <<_ACEOF
24253
cat confdefs.h >>conftest.$ac_ext
24254
cat >>conftest.$ac_ext <<_ACEOF
24255
/* end confdefs.h. */
24256
$ac_includes_default
24257
extern char *strerror_r ();
24262
char x = *strerror_r (0, buf, sizeof buf);
24263
exit (!isalpha (x));
24268
rm -f conftest$ac_exeext
24269
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24270
(eval $ac_link) 2>&5
24272
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24273
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24274
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24275
(eval $ac_try) 2>&5
24277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278
(exit $ac_status); }; }; then
24279
ac_cv_func_strerror_r_char_p=yes
24281
echo "$as_me: program exited with status $ac_status" >&5
24282
echo "$as_me: failed program was:" >&5
24283
sed 's/^/| /' conftest.$ac_ext >&5
24286
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24291
echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
24292
echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
24293
if test $ac_cv_func_strerror_r_char_p = yes; then
24295
cat >>confdefs.h <<\_ACEOF
24296
#define STRERROR_R_CHAR_P 1
24306
for ac_header in sys/param.h
24308
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24309
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24310
echo "$as_me:$LINENO: checking for $ac_header" >&5
24311
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24312
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24313
echo $ECHO_N "(cached) $ECHO_C" >&6
24315
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24316
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24318
# Is the header compilable?
24319
echo "$as_me:$LINENO: checking $ac_header usability" >&5
24320
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24321
cat >conftest.$ac_ext <<_ACEOF
24324
cat confdefs.h >>conftest.$ac_ext
24325
cat >>conftest.$ac_ext <<_ACEOF
24326
/* end confdefs.h. */
24327
$ac_includes_default
24328
#include <$ac_header>
24330
rm -f conftest.$ac_objext
24331
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24332
(eval $ac_compile) 2>conftest.er1
24334
grep -v '^ *+' conftest.er1 >conftest.err
24336
cat conftest.err >&5
24337
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24338
(exit $ac_status); } &&
24339
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24340
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24341
(eval $ac_try) 2>&5
24343
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344
(exit $ac_status); }; } &&
24345
{ ac_try='test -s conftest.$ac_objext'
24346
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24347
(eval $ac_try) 2>&5
24349
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350
(exit $ac_status); }; }; then
24351
ac_header_compiler=yes
24353
echo "$as_me: failed program was:" >&5
24354
sed 's/^/| /' conftest.$ac_ext >&5
24356
ac_header_compiler=no
24358
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24359
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24360
echo "${ECHO_T}$ac_header_compiler" >&6
24362
# Is the header present?
24363
echo "$as_me:$LINENO: checking $ac_header presence" >&5
24364
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24365
cat >conftest.$ac_ext <<_ACEOF
24368
cat confdefs.h >>conftest.$ac_ext
24369
cat >>conftest.$ac_ext <<_ACEOF
24370
/* end confdefs.h. */
24371
#include <$ac_header>
24373
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24374
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24376
grep -v '^ *+' conftest.er1 >conftest.err
24378
cat conftest.err >&5
24379
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380
(exit $ac_status); } >/dev/null; then
24381
if test -s conftest.err; then
24382
ac_cpp_err=$ac_c_preproc_warn_flag
24383
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24390
if test -z "$ac_cpp_err"; then
24391
ac_header_preproc=yes
24393
echo "$as_me: failed program was:" >&5
24394
sed 's/^/| /' conftest.$ac_ext >&5
24396
ac_header_preproc=no
24398
rm -f conftest.err conftest.$ac_ext
24399
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24400
echo "${ECHO_T}$ac_header_preproc" >&6
24402
# So? What about this header?
24403
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24405
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24406
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24407
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24408
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24409
ac_header_preproc=yes
24412
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24413
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24414
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24415
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24416
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24417
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24418
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24419
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24420
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24421
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24422
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24423
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24426
## ------------------------------------------ ##
24427
## Report this to the AC_PACKAGE_NAME lists. ##
24428
## ------------------------------------------ ##
24431
sed "s/^/$as_me: WARNING: /" >&2
24434
echo "$as_me:$LINENO: checking for $ac_header" >&5
24435
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24436
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24437
echo $ECHO_N "(cached) $ECHO_C" >&6
24439
eval "$as_ac_Header=\$ac_header_preproc"
24441
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24442
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24445
if test `eval echo '${'$as_ac_Header'}'` = yes; then
24446
cat >>confdefs.h <<_ACEOF
24447
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24469
for ac_func in readlink
24471
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24472
echo "$as_me:$LINENO: checking for $ac_func" >&5
24473
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24474
if eval "test \"\${$as_ac_var+set}\" = set"; then
24475
echo $ECHO_N "(cached) $ECHO_C" >&6
24477
cat >conftest.$ac_ext <<_ACEOF
24480
cat confdefs.h >>conftest.$ac_ext
24481
cat >>conftest.$ac_ext <<_ACEOF
24482
/* end confdefs.h. */
24483
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24484
For example, HP-UX 11i <limits.h> declares gettimeofday. */
24485
#define $ac_func innocuous_$ac_func
24487
/* System header to define __stub macros and hopefully few prototypes,
24488
which can conflict with char $ac_func (); below.
24489
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24490
<limits.h> exists even on freestanding compilers. */
24493
# include <limits.h>
24495
# include <assert.h>
24500
/* Override any gcc2 internal prototype to avoid an error. */
24505
/* We use char because int might match the return type of a gcc2
24506
builtin and then its argument prototype would still apply. */
24508
/* The GNU C library defines this for functions which it implements
24509
to always fail with ENOSYS. Some functions are actually named
24510
something starting with __ and the normal name is an alias. */
24511
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24514
char (*f) () = $ac_func;
24523
return f != $ac_func;
24528
rm -f conftest.$ac_objext conftest$ac_exeext
24529
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24530
(eval $ac_link) 2>conftest.er1
24532
grep -v '^ *+' conftest.er1 >conftest.err
24534
cat conftest.err >&5
24535
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536
(exit $ac_status); } &&
24537
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24538
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24539
(eval $ac_try) 2>&5
24541
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542
(exit $ac_status); }; } &&
24543
{ ac_try='test -s conftest$ac_exeext'
24544
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24545
(eval $ac_try) 2>&5
24547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24548
(exit $ac_status); }; }; then
24549
eval "$as_ac_var=yes"
24551
echo "$as_me: failed program was:" >&5
24552
sed 's/^/| /' conftest.$ac_ext >&5
24554
eval "$as_ac_var=no"
24556
rm -f conftest.err conftest.$ac_objext \
24557
conftest$ac_exeext conftest.$ac_ext
24559
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24560
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24561
if test `eval echo '${'$as_ac_var'}'` = yes; then
24562
cat >>confdefs.h <<_ACEOF
24563
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24569
if test $ac_cv_func_readlink = no; then
24571
"readlink.$ac_objext" | \
24572
*" readlink.$ac_objext" | \
24573
"readlink.$ac_objext "* | \
24574
*" readlink.$ac_objext "* ) ;;
24575
*) LIBOBJS="$LIBOBJS readlink.$ac_objext" ;;
24584
echo "$as_me:$LINENO: checking for ssize_t" >&5
24585
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
24586
if test "${gt_cv_ssize_t+set}" = set; then
24587
echo $ECHO_N "(cached) $ECHO_C" >&6
24589
cat >conftest.$ac_ext <<_ACEOF
24592
cat confdefs.h >>conftest.$ac_ext
24593
cat >>conftest.$ac_ext <<_ACEOF
24594
/* end confdefs.h. */
24595
#include <sys/types.h>
24599
int x = sizeof (ssize_t *) + sizeof (ssize_t);
24604
rm -f conftest.$ac_objext
24605
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24606
(eval $ac_compile) 2>conftest.er1
24608
grep -v '^ *+' conftest.er1 >conftest.err
24610
cat conftest.err >&5
24611
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24612
(exit $ac_status); } &&
24613
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24614
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24615
(eval $ac_try) 2>&5
24617
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24618
(exit $ac_status); }; } &&
24619
{ ac_try='test -s conftest.$ac_objext'
24620
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24621
(eval $ac_try) 2>&5
24623
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24624
(exit $ac_status); }; }; then
24627
echo "$as_me: failed program was:" >&5
24628
sed 's/^/| /' conftest.$ac_ext >&5
24632
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24634
echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
24635
echo "${ECHO_T}$gt_cv_ssize_t" >&6
24636
if test $gt_cv_ssize_t = no; then
24638
cat >>confdefs.h <<\_ACEOF
24639
#define ssize_t int
24659
for ac_func in canonicalize_file_name
24661
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24662
echo "$as_me:$LINENO: checking for $ac_func" >&5
24663
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24664
if eval "test \"\${$as_ac_var+set}\" = set"; then
24665
echo $ECHO_N "(cached) $ECHO_C" >&6
24667
cat >conftest.$ac_ext <<_ACEOF
24670
cat confdefs.h >>conftest.$ac_ext
24671
cat >>conftest.$ac_ext <<_ACEOF
24672
/* end confdefs.h. */
24673
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24674
For example, HP-UX 11i <limits.h> declares gettimeofday. */
24675
#define $ac_func innocuous_$ac_func
24677
/* System header to define __stub macros and hopefully few prototypes,
24678
which can conflict with char $ac_func (); below.
24679
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24680
<limits.h> exists even on freestanding compilers. */
24683
# include <limits.h>
24685
# include <assert.h>
24690
/* Override any gcc2 internal prototype to avoid an error. */
24695
/* We use char because int might match the return type of a gcc2
24696
builtin and then its argument prototype would still apply. */
24698
/* The GNU C library defines this for functions which it implements
24699
to always fail with ENOSYS. Some functions are actually named
24700
something starting with __ and the normal name is an alias. */
24701
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24704
char (*f) () = $ac_func;
24713
return f != $ac_func;
24718
rm -f conftest.$ac_objext conftest$ac_exeext
24719
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24720
(eval $ac_link) 2>conftest.er1
24722
grep -v '^ *+' conftest.er1 >conftest.err
24724
cat conftest.err >&5
24725
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726
(exit $ac_status); } &&
24727
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24728
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24729
(eval $ac_try) 2>&5
24731
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24732
(exit $ac_status); }; } &&
24733
{ ac_try='test -s conftest$ac_exeext'
24734
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24735
(eval $ac_try) 2>&5
24737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738
(exit $ac_status); }; }; then
24739
eval "$as_ac_var=yes"
24741
echo "$as_me: failed program was:" >&5
24742
sed 's/^/| /' conftest.$ac_ext >&5
24744
eval "$as_ac_var=no"
24746
rm -f conftest.err conftest.$ac_objext \
24747
conftest$ac_exeext conftest.$ac_ext
24749
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24750
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24751
if test `eval echo '${'$as_ac_var'}'` = yes; then
24752
cat >>confdefs.h <<_ACEOF
24753
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24759
if test $ac_cv_func_canonicalize_file_name = no; then
24761
"canonicalize.$ac_objext" | \
24762
*" canonicalize.$ac_objext" | \
24763
"canonicalize.$ac_objext "* | \
24764
*" canonicalize.$ac_objext "* ) ;;
24765
*) LIBOBJS="$LIBOBJS canonicalize.$ac_objext" ;;
24769
cat >>confdefs.h <<\_ACEOF
24770
#define realpath rpl_realpath
24786
for ac_func in getcwd readlink
24788
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24789
echo "$as_me:$LINENO: checking for $ac_func" >&5
24790
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24791
if eval "test \"\${$as_ac_var+set}\" = set"; then
24792
echo $ECHO_N "(cached) $ECHO_C" >&6
24794
cat >conftest.$ac_ext <<_ACEOF
24797
cat confdefs.h >>conftest.$ac_ext
24798
cat >>conftest.$ac_ext <<_ACEOF
24799
/* end confdefs.h. */
24800
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24801
For example, HP-UX 11i <limits.h> declares gettimeofday. */
24802
#define $ac_func innocuous_$ac_func
24804
/* System header to define __stub macros and hopefully few prototypes,
24805
which can conflict with char $ac_func (); below.
24806
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24807
<limits.h> exists even on freestanding compilers. */
24810
# include <limits.h>
24812
# include <assert.h>
24817
/* Override any gcc2 internal prototype to avoid an error. */
24822
/* We use char because int might match the return type of a gcc2
24823
builtin and then its argument prototype would still apply. */
24825
/* The GNU C library defines this for functions which it implements
24826
to always fail with ENOSYS. Some functions are actually named
24827
something starting with __ and the normal name is an alias. */
24828
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24831
char (*f) () = $ac_func;
24840
return f != $ac_func;
24845
rm -f conftest.$ac_objext conftest$ac_exeext
24846
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24847
(eval $ac_link) 2>conftest.er1
24849
grep -v '^ *+' conftest.er1 >conftest.err
24851
cat conftest.err >&5
24852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853
(exit $ac_status); } &&
24854
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24855
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24856
(eval $ac_try) 2>&5
24858
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859
(exit $ac_status); }; } &&
24860
{ ac_try='test -s conftest$ac_exeext'
24861
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24862
(eval $ac_try) 2>&5
24864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24865
(exit $ac_status); }; }; then
24866
eval "$as_ac_var=yes"
24868
echo "$as_me: failed program was:" >&5
24869
sed 's/^/| /' conftest.$ac_ext >&5
24871
eval "$as_ac_var=no"
24873
rm -f conftest.err conftest.$ac_objext \
24874
conftest$ac_exeext conftest.$ac_ext
24876
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24877
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24878
if test `eval echo '${'$as_ac_var'}'` = yes; then
24879
cat >>confdefs.h <<_ACEOF
24880
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24892
if test -n "$ac_aux_dir"; then
24893
case "$ac_aux_dir" in
24894
/*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
24895
*) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
24898
if test -z "$MKINSTALLDIRS"; then
24899
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
24904
echo "$as_me:$LINENO: checking whether NLS is requested" >&5
24905
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
24906
# Check whether --enable-nls or --disable-nls was given.
24907
if test "${enable_nls+set}" = set; then
24908
enableval="$enable_nls"
24913
echo "$as_me:$LINENO: result: $USE_NLS" >&5
24914
echo "${ECHO_T}$USE_NLS" >&6
24921
# Prepare PATH_SEPARATOR.
24922
# The user is always right.
24923
if test "${PATH_SEPARATOR+set}" != set; then
24924
echo "#! /bin/sh" >conf$$.sh
24925
echo "exit 0" >>conf$$.sh
24927
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24935
# Find out how to test for executable files. Don't use a zero-byte file,
24936
# as systems may use methods other than mode bits to determine executability.
24937
cat >conf$$.file <<_ASEOF
24941
chmod +x conf$$.file
24942
if test -x conf$$.file >/dev/null 2>&1; then
24943
ac_executable_p="test -x"
24945
ac_executable_p="test -f"
24949
# Extract the first word of "msgfmt", so it can be a program name with args.
24950
set dummy msgfmt; ac_word=$2
24951
echo "$as_me:$LINENO: checking for $ac_word" >&5
24952
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24953
if test "${ac_cv_path_MSGFMT+set}" = set; then
24954
echo $ECHO_N "(cached) $ECHO_C" >&6
24958
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
24961
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
24962
for ac_dir in $PATH; do
24964
test -z "$ac_dir" && ac_dir=.
24965
for ac_exec_ext in '' $ac_executable_extensions; do
24966
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
24967
if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
24968
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
24969
ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
24976
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
24980
MSGFMT="$ac_cv_path_MSGFMT"
24981
if test "$MSGFMT" != ":"; then
24982
echo "$as_me:$LINENO: result: $MSGFMT" >&5
24983
echo "${ECHO_T}$MSGFMT" >&6
24985
echo "$as_me:$LINENO: result: no" >&5
24986
echo "${ECHO_T}no" >&6
24989
# Extract the first word of "gmsgfmt", so it can be a program name with args.
24990
set dummy gmsgfmt; ac_word=$2
24991
echo "$as_me:$LINENO: checking for $ac_word" >&5
24992
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24993
if test "${ac_cv_path_GMSGFMT+set}" = set; then
24994
echo $ECHO_N "(cached) $ECHO_C" >&6
24998
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
25001
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25002
for as_dir in $PATH
25005
test -z "$as_dir" && as_dir=.
25006
for ac_exec_ext in '' $ac_executable_extensions; do
25007
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25008
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
25009
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25015
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
25019
GMSGFMT=$ac_cv_path_GMSGFMT
25021
if test -n "$GMSGFMT"; then
25022
echo "$as_me:$LINENO: result: $GMSGFMT" >&5
25023
echo "${ECHO_T}$GMSGFMT" >&6
25025
echo "$as_me:$LINENO: result: no" >&5
25026
echo "${ECHO_T}no" >&6
25031
# Prepare PATH_SEPARATOR.
25032
# The user is always right.
25033
if test "${PATH_SEPARATOR+set}" != set; then
25034
echo "#! /bin/sh" >conf$$.sh
25035
echo "exit 0" >>conf$$.sh
25037
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25045
# Find out how to test for executable files. Don't use a zero-byte file,
25046
# as systems may use methods other than mode bits to determine executability.
25047
cat >conf$$.file <<_ASEOF
25051
chmod +x conf$$.file
25052
if test -x conf$$.file >/dev/null 2>&1; then
25053
ac_executable_p="test -x"
25055
ac_executable_p="test -f"
25059
# Extract the first word of "xgettext", so it can be a program name with args.
25060
set dummy xgettext; ac_word=$2
25061
echo "$as_me:$LINENO: checking for $ac_word" >&5
25062
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25063
if test "${ac_cv_path_XGETTEXT+set}" = set; then
25064
echo $ECHO_N "(cached) $ECHO_C" >&6
25066
case "$XGETTEXT" in
25068
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
25071
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
25072
for ac_dir in $PATH; do
25074
test -z "$ac_dir" && ac_dir=.
25075
for ac_exec_ext in '' $ac_executable_extensions; do
25076
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
25077
if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
25078
(if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
25079
ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
25086
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
25090
XGETTEXT="$ac_cv_path_XGETTEXT"
25091
if test "$XGETTEXT" != ":"; then
25092
echo "$as_me:$LINENO: result: $XGETTEXT" >&5
25093
echo "${ECHO_T}$XGETTEXT" >&6
25095
echo "$as_me:$LINENO: result: no" >&5
25096
echo "${ECHO_T}no" >&6
25102
# Prepare PATH_SEPARATOR.
25103
# The user is always right.
25104
if test "${PATH_SEPARATOR+set}" != set; then
25105
echo "#! /bin/sh" >conf$$.sh
25106
echo "exit 0" >>conf$$.sh
25108
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25116
# Find out how to test for executable files. Don't use a zero-byte file,
25117
# as systems may use methods other than mode bits to determine executability.
25118
cat >conf$$.file <<_ASEOF
25122
chmod +x conf$$.file
25123
if test -x conf$$.file >/dev/null 2>&1; then
25124
ac_executable_p="test -x"
25126
ac_executable_p="test -f"
25130
# Extract the first word of "msgmerge", so it can be a program name with args.
25131
set dummy msgmerge; ac_word=$2
25132
echo "$as_me:$LINENO: checking for $ac_word" >&5
25133
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25134
if test "${ac_cv_path_MSGMERGE+set}" = set; then
25135
echo $ECHO_N "(cached) $ECHO_C" >&6
25137
case "$MSGMERGE" in
25139
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
25142
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
25143
for ac_dir in $PATH; do
25145
test -z "$ac_dir" && ac_dir=.
25146
for ac_exec_ext in '' $ac_executable_extensions; do
25147
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
25148
if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
25149
ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
25156
test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
25160
MSGMERGE="$ac_cv_path_MSGMERGE"
25161
if test "$MSGMERGE" != ":"; then
25162
echo "$as_me:$LINENO: result: $MSGMERGE" >&5
25163
echo "${ECHO_T}$MSGMERGE" >&6
25165
echo "$as_me:$LINENO: result: no" >&5
25166
echo "${ECHO_T}no" >&6
25170
if test "$GMSGFMT" != ":"; then
25171
if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
25172
(if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
25175
GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
25176
echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
25177
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
25182
if test "$XGETTEXT" != ":"; then
25183
if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
25184
(if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
25187
echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
25188
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
25194
ac_config_commands="$ac_config_commands default-1"
25197
if test -n "$ac_tool_prefix"; then
25198
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
25199
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
25200
echo "$as_me:$LINENO: checking for $ac_word" >&5
25201
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25202
if test "${ac_cv_prog_RANLIB+set}" = set; then
25203
echo $ECHO_N "(cached) $ECHO_C" >&6
25205
if test -n "$RANLIB"; then
25206
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
25208
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25209
for as_dir in $PATH
25212
test -z "$as_dir" && as_dir=.
25213
for ac_exec_ext in '' $ac_executable_extensions; do
25214
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25215
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
25216
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25224
RANLIB=$ac_cv_prog_RANLIB
25225
if test -n "$RANLIB"; then
25226
echo "$as_me:$LINENO: result: $RANLIB" >&5
25227
echo "${ECHO_T}$RANLIB" >&6
25229
echo "$as_me:$LINENO: result: no" >&5
25230
echo "${ECHO_T}no" >&6
25234
if test -z "$ac_cv_prog_RANLIB"; then
25235
ac_ct_RANLIB=$RANLIB
25236
# Extract the first word of "ranlib", so it can be a program name with args.
25237
set dummy ranlib; ac_word=$2
25238
echo "$as_me:$LINENO: checking for $ac_word" >&5
25239
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25240
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
25241
echo $ECHO_N "(cached) $ECHO_C" >&6
25243
if test -n "$ac_ct_RANLIB"; then
25244
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
25246
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25247
for as_dir in $PATH
25250
test -z "$as_dir" && as_dir=.
25251
for ac_exec_ext in '' $ac_executable_extensions; do
25252
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25253
ac_cv_prog_ac_ct_RANLIB="ranlib"
25254
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25260
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
25263
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
25264
if test -n "$ac_ct_RANLIB"; then
25265
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
25266
echo "${ECHO_T}$ac_ct_RANLIB" >&6
25268
echo "$as_me:$LINENO: result: no" >&5
25269
echo "${ECHO_T}no" >&6
25272
RANLIB=$ac_ct_RANLIB
25274
RANLIB="$ac_cv_prog_RANLIB"
25277
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25278
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
25279
if test "${ac_cv_c_const+set}" = set; then
25280
echo $ECHO_N "(cached) $ECHO_C" >&6
25282
cat >conftest.$ac_ext <<_ACEOF
25285
cat confdefs.h >>conftest.$ac_ext
25286
cat >>conftest.$ac_ext <<_ACEOF
25287
/* end confdefs.h. */
25292
/* FIXME: Include the comments suggested by Paul. */
25293
#ifndef __cplusplus
25294
/* Ultrix mips cc rejects this. */
25295
typedef int charset[2];
25297
/* SunOS 4.1.1 cc rejects this. */
25298
char const *const *ccp;
25300
/* NEC SVR4.0.2 mips cc rejects this. */
25301
struct point {int x, y;};
25302
static struct point const zero = {0,0};
25303
/* AIX XL C 1.02.0.0 rejects this.
25304
It does not let you subtract one const X* pointer from another in
25305
an arm of an if-expression whose if-part is not a constant
25307
const char *g = "string";
25308
ccp = &g + (g ? g-g : 0);
25309
/* HPUX 7.0 cc rejects these. */
25312
ccp = (char const *const *) p;
25313
{ /* SCO 3.2v4 cc rejects this. */
25315
char const *s = 0 ? (char *) 0 : (char const *) 0;
25319
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25320
int x[] = {25, 17};
25321
const int *foo = &x[0];
25324
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25325
typedef const int *iptr;
25329
{ /* AIX XL C 1.02.0.0 rejects this saying
25330
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25331
struct s { int j; const int *ap[3]; };
25332
struct s *b; b->j = 5;
25334
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25335
const int foo = 10;
25343
rm -f conftest.$ac_objext
25344
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25345
(eval $ac_compile) 2>conftest.er1
25347
grep -v '^ *+' conftest.er1 >conftest.err
25349
cat conftest.err >&5
25350
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351
(exit $ac_status); } &&
25352
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25353
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25354
(eval $ac_try) 2>&5
25356
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357
(exit $ac_status); }; } &&
25358
{ ac_try='test -s conftest.$ac_objext'
25359
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25360
(eval $ac_try) 2>&5
25362
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363
(exit $ac_status); }; }; then
25366
echo "$as_me: failed program was:" >&5
25367
sed 's/^/| /' conftest.$ac_ext >&5
25371
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25373
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25374
echo "${ECHO_T}$ac_cv_c_const" >&6
25375
if test $ac_cv_c_const = no; then
25377
cat >>confdefs.h <<\_ACEOF
25384
echo "$as_me:$LINENO: checking for signed" >&5
25385
echo $ECHO_N "checking for signed... $ECHO_C" >&6
25386
if test "${bh_cv_c_signed+set}" = set; then
25387
echo $ECHO_N "(cached) $ECHO_C" >&6
25389
cat >conftest.$ac_ext <<_ACEOF
25392
cat confdefs.h >>conftest.$ac_ext
25393
cat >>conftest.$ac_ext <<_ACEOF
25394
/* end confdefs.h. */
25404
rm -f conftest.$ac_objext
25405
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25406
(eval $ac_compile) 2>conftest.er1
25408
grep -v '^ *+' conftest.er1 >conftest.err
25410
cat conftest.err >&5
25411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412
(exit $ac_status); } &&
25413
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25414
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25415
(eval $ac_try) 2>&5
25417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418
(exit $ac_status); }; } &&
25419
{ ac_try='test -s conftest.$ac_objext'
25420
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25421
(eval $ac_try) 2>&5
25423
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25424
(exit $ac_status); }; }; then
25427
echo "$as_me: failed program was:" >&5
25428
sed 's/^/| /' conftest.$ac_ext >&5
25432
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25434
echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
25435
echo "${ECHO_T}$bh_cv_c_signed" >&6
25436
if test $bh_cv_c_signed = no; then
25438
cat >>confdefs.h <<\_ACEOF
25444
echo "$as_me:$LINENO: checking for inline" >&5
25445
echo $ECHO_N "checking for inline... $ECHO_C" >&6
25446
if test "${ac_cv_c_inline+set}" = set; then
25447
echo $ECHO_N "(cached) $ECHO_C" >&6
25450
for ac_kw in inline __inline__ __inline; do
25451
cat >conftest.$ac_ext <<_ACEOF
25454
cat confdefs.h >>conftest.$ac_ext
25455
cat >>conftest.$ac_ext <<_ACEOF
25456
/* end confdefs.h. */
25457
#ifndef __cplusplus
25459
static $ac_kw foo_t static_foo () {return 0; }
25460
$ac_kw foo_t foo () {return 0; }
25464
rm -f conftest.$ac_objext
25465
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25466
(eval $ac_compile) 2>conftest.er1
25468
grep -v '^ *+' conftest.er1 >conftest.err
25470
cat conftest.err >&5
25471
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25472
(exit $ac_status); } &&
25473
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25474
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25475
(eval $ac_try) 2>&5
25477
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478
(exit $ac_status); }; } &&
25479
{ ac_try='test -s conftest.$ac_objext'
25480
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25481
(eval $ac_try) 2>&5
25483
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25484
(exit $ac_status); }; }; then
25485
ac_cv_c_inline=$ac_kw; break
25487
echo "$as_me: failed program was:" >&5
25488
sed 's/^/| /' conftest.$ac_ext >&5
25491
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25495
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
25496
echo "${ECHO_T}$ac_cv_c_inline" >&6
25499
case $ac_cv_c_inline in
25502
case $ac_cv_c_inline in
25504
*) ac_val=$ac_cv_c_inline;;
25506
cat >>confdefs.h <<_ACEOF
25507
#ifndef __cplusplus
25508
#define inline $ac_val
25514
echo "$as_me:$LINENO: checking for off_t" >&5
25515
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
25516
if test "${ac_cv_type_off_t+set}" = set; then
25517
echo $ECHO_N "(cached) $ECHO_C" >&6
25519
cat >conftest.$ac_ext <<_ACEOF
25522
cat confdefs.h >>conftest.$ac_ext
25523
cat >>conftest.$ac_ext <<_ACEOF
25524
/* end confdefs.h. */
25525
$ac_includes_default
25531
if (sizeof (off_t))
25537
rm -f conftest.$ac_objext
25538
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25539
(eval $ac_compile) 2>conftest.er1
25541
grep -v '^ *+' conftest.er1 >conftest.err
25543
cat conftest.err >&5
25544
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545
(exit $ac_status); } &&
25546
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25547
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25548
(eval $ac_try) 2>&5
25550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25551
(exit $ac_status); }; } &&
25552
{ ac_try='test -s conftest.$ac_objext'
25553
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25554
(eval $ac_try) 2>&5
25556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557
(exit $ac_status); }; }; then
25558
ac_cv_type_off_t=yes
25560
echo "$as_me: failed program was:" >&5
25561
sed 's/^/| /' conftest.$ac_ext >&5
25563
ac_cv_type_off_t=no
25565
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25567
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25568
echo "${ECHO_T}$ac_cv_type_off_t" >&6
25569
if test $ac_cv_type_off_t = yes; then
25573
cat >>confdefs.h <<_ACEOF
25580
echo "$as_me:$LINENO: checking for long long" >&5
25581
echo $ECHO_N "checking for long long... $ECHO_C" >&6
25582
if test "${ac_cv_type_long_long+set}" = set; then
25583
echo $ECHO_N "(cached) $ECHO_C" >&6
25585
cat >conftest.$ac_ext <<_ACEOF
25588
cat confdefs.h >>conftest.$ac_ext
25589
cat >>conftest.$ac_ext <<_ACEOF
25590
/* end confdefs.h. */
25591
long long ll = 1LL; int i = 63;
25595
long long llmax = (long long) -1;
25596
return ll << i | ll >> i | llmax / ll | llmax % ll;
25601
rm -f conftest.$ac_objext conftest$ac_exeext
25602
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25603
(eval $ac_link) 2>conftest.er1
25605
grep -v '^ *+' conftest.er1 >conftest.err
25607
cat conftest.err >&5
25608
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609
(exit $ac_status); } &&
25610
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25611
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25612
(eval $ac_try) 2>&5
25614
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25615
(exit $ac_status); }; } &&
25616
{ ac_try='test -s conftest$ac_exeext'
25617
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25618
(eval $ac_try) 2>&5
25620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621
(exit $ac_status); }; }; then
25622
ac_cv_type_long_long=yes
25624
echo "$as_me: failed program was:" >&5
25625
sed 's/^/| /' conftest.$ac_ext >&5
25627
ac_cv_type_long_long=no
25629
rm -f conftest.err conftest.$ac_objext \
25630
conftest$ac_exeext conftest.$ac_ext
25632
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
25633
echo "${ECHO_T}$ac_cv_type_long_long" >&6
25634
if test $ac_cv_type_long_long = yes; then
25636
cat >>confdefs.h <<\_ACEOF
25637
#define HAVE_LONG_LONG 1
25643
echo "$as_me:$LINENO: checking for long double" >&5
25644
echo $ECHO_N "checking for long double... $ECHO_C" >&6
25645
if test "${gt_cv_c_long_double+set}" = set; then
25646
echo $ECHO_N "(cached) $ECHO_C" >&6
25648
if test "$GCC" = yes; then
25649
gt_cv_c_long_double=yes
25651
cat >conftest.$ac_ext <<_ACEOF
25654
cat confdefs.h >>conftest.$ac_ext
25655
cat >>conftest.$ac_ext <<_ACEOF
25656
/* end confdefs.h. */
25658
/* The Stardent Vistra knows sizeof(long double), but does not support it. */
25659
long double foo = 0.0;
25660
/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
25661
int array [2*(sizeof(long double) >= sizeof(double)) - 1];
25671
rm -f conftest.$ac_objext
25672
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25673
(eval $ac_compile) 2>conftest.er1
25675
grep -v '^ *+' conftest.er1 >conftest.err
25677
cat conftest.err >&5
25678
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679
(exit $ac_status); } &&
25680
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25681
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25682
(eval $ac_try) 2>&5
25684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685
(exit $ac_status); }; } &&
25686
{ ac_try='test -s conftest.$ac_objext'
25687
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25688
(eval $ac_try) 2>&5
25690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25691
(exit $ac_status); }; }; then
25692
gt_cv_c_long_double=yes
25694
echo "$as_me: failed program was:" >&5
25695
sed 's/^/| /' conftest.$ac_ext >&5
25697
gt_cv_c_long_double=no
25699
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25702
echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
25703
echo "${ECHO_T}$gt_cv_c_long_double" >&6
25704
if test $gt_cv_c_long_double = yes; then
25706
cat >>confdefs.h <<\_ACEOF
25707
#define HAVE_LONG_DOUBLE 1
25713
echo "$as_me:$LINENO: checking for wchar_t" >&5
25714
echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
25715
if test "${gt_cv_c_wchar_t+set}" = set; then
25716
echo $ECHO_N "(cached) $ECHO_C" >&6
25718
cat >conftest.$ac_ext <<_ACEOF
25721
cat confdefs.h >>conftest.$ac_ext
25722
cat >>conftest.$ac_ext <<_ACEOF
25723
/* end confdefs.h. */
25724
#include <stddef.h>
25725
wchar_t foo = (wchar_t)'\0';
25734
rm -f conftest.$ac_objext
25735
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25736
(eval $ac_compile) 2>conftest.er1
25738
grep -v '^ *+' conftest.er1 >conftest.err
25740
cat conftest.err >&5
25741
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25742
(exit $ac_status); } &&
25743
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25744
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25745
(eval $ac_try) 2>&5
25747
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748
(exit $ac_status); }; } &&
25749
{ ac_try='test -s conftest.$ac_objext'
25750
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25751
(eval $ac_try) 2>&5
25753
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25754
(exit $ac_status); }; }; then
25755
gt_cv_c_wchar_t=yes
25757
echo "$as_me: failed program was:" >&5
25758
sed 's/^/| /' conftest.$ac_ext >&5
25762
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25764
echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
25765
echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
25766
if test $gt_cv_c_wchar_t = yes; then
25768
cat >>confdefs.h <<\_ACEOF
25769
#define HAVE_WCHAR_T 1
25775
echo "$as_me:$LINENO: checking for wint_t" >&5
25776
echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
25777
if test "${gt_cv_c_wint_t+set}" = set; then
25778
echo $ECHO_N "(cached) $ECHO_C" >&6
25780
cat >conftest.$ac_ext <<_ACEOF
25783
cat confdefs.h >>conftest.$ac_ext
25784
cat >>conftest.$ac_ext <<_ACEOF
25785
/* end confdefs.h. */
25787
wint_t foo = (wchar_t)'\0';
25796
rm -f conftest.$ac_objext
25797
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25798
(eval $ac_compile) 2>conftest.er1
25800
grep -v '^ *+' conftest.er1 >conftest.err
25802
cat conftest.err >&5
25803
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804
(exit $ac_status); } &&
25805
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25806
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25807
(eval $ac_try) 2>&5
25809
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25810
(exit $ac_status); }; } &&
25811
{ ac_try='test -s conftest.$ac_objext'
25812
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25813
(eval $ac_try) 2>&5
25815
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816
(exit $ac_status); }; }; then
25819
echo "$as_me: failed program was:" >&5
25820
sed 's/^/| /' conftest.$ac_ext >&5
25824
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25826
echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
25827
echo "${ECHO_T}$gt_cv_c_wint_t" >&6
25828
if test $gt_cv_c_wint_t = yes; then
25830
cat >>confdefs.h <<\_ACEOF
25831
#define HAVE_WINT_T 1
25837
echo "$as_me:$LINENO: checking for inttypes.h" >&5
25838
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
25839
if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
25840
echo $ECHO_N "(cached) $ECHO_C" >&6
25842
cat >conftest.$ac_ext <<_ACEOF
25845
cat confdefs.h >>conftest.$ac_ext
25846
cat >>conftest.$ac_ext <<_ACEOF
25847
/* end confdefs.h. */
25848
#include <sys/types.h>
25849
#include <inttypes.h>
25853
uintmax_t i = (uintmax_t) -1;
25858
rm -f conftest.$ac_objext
25859
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25860
(eval $ac_compile) 2>conftest.er1
25862
grep -v '^ *+' conftest.er1 >conftest.err
25864
cat conftest.err >&5
25865
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866
(exit $ac_status); } &&
25867
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25868
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25869
(eval $ac_try) 2>&5
25871
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872
(exit $ac_status); }; } &&
25873
{ ac_try='test -s conftest.$ac_objext'
25874
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25875
(eval $ac_try) 2>&5
25877
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878
(exit $ac_status); }; }; then
25879
jm_ac_cv_header_inttypes_h=yes
25881
echo "$as_me: failed program was:" >&5
25882
sed 's/^/| /' conftest.$ac_ext >&5
25884
jm_ac_cv_header_inttypes_h=no
25886
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25888
echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
25889
echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
25890
if test $jm_ac_cv_header_inttypes_h = yes; then
25892
cat >>confdefs.h <<_ACEOF
25893
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
25899
echo "$as_me:$LINENO: checking for stdint.h" >&5
25900
echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
25901
if test "${jm_ac_cv_header_stdint_h+set}" = set; then
25902
echo $ECHO_N "(cached) $ECHO_C" >&6
25904
cat >conftest.$ac_ext <<_ACEOF
25907
cat confdefs.h >>conftest.$ac_ext
25908
cat >>conftest.$ac_ext <<_ACEOF
25909
/* end confdefs.h. */
25910
#include <sys/types.h>
25911
#include <stdint.h>
25915
uintmax_t i = (uintmax_t) -1;
25920
rm -f conftest.$ac_objext
25921
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25922
(eval $ac_compile) 2>conftest.er1
25924
grep -v '^ *+' conftest.er1 >conftest.err
25926
cat conftest.err >&5
25927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928
(exit $ac_status); } &&
25929
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25930
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25931
(eval $ac_try) 2>&5
25933
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25934
(exit $ac_status); }; } &&
25935
{ ac_try='test -s conftest.$ac_objext'
25936
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25937
(eval $ac_try) 2>&5
25939
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940
(exit $ac_status); }; }; then
25941
jm_ac_cv_header_stdint_h=yes
25943
echo "$as_me: failed program was:" >&5
25944
sed 's/^/| /' conftest.$ac_ext >&5
25946
jm_ac_cv_header_stdint_h=no
25948
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25950
echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
25951
echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
25952
if test $jm_ac_cv_header_stdint_h = yes; then
25954
cat >>confdefs.h <<_ACEOF
25955
#define HAVE_STDINT_H_WITH_UINTMAX 1
25963
echo "$as_me:$LINENO: checking for intmax_t" >&5
25964
echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
25965
if test "${gt_cv_c_intmax_t+set}" = set; then
25966
echo $ECHO_N "(cached) $ECHO_C" >&6
25968
cat >conftest.$ac_ext <<_ACEOF
25971
cat confdefs.h >>conftest.$ac_ext
25972
cat >>conftest.$ac_ext <<_ACEOF
25973
/* end confdefs.h. */
25975
#include <stddef.h>
25976
#include <stdlib.h>
25977
#if HAVE_STDINT_H_WITH_UINTMAX
25978
#include <stdint.h>
25980
#if HAVE_INTTYPES_H_WITH_UINTMAX
25981
#include <inttypes.h>
25992
rm -f conftest.$ac_objext
25993
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25994
(eval $ac_compile) 2>conftest.er1
25996
grep -v '^ *+' conftest.er1 >conftest.err
25998
cat conftest.err >&5
25999
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000
(exit $ac_status); } &&
26001
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26002
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26003
(eval $ac_try) 2>&5
26005
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26006
(exit $ac_status); }; } &&
26007
{ ac_try='test -s conftest.$ac_objext'
26008
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26009
(eval $ac_try) 2>&5
26011
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26012
(exit $ac_status); }; }; then
26013
gt_cv_c_intmax_t=yes
26015
echo "$as_me: failed program was:" >&5
26016
sed 's/^/| /' conftest.$ac_ext >&5
26018
gt_cv_c_intmax_t=no
26020
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26022
echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
26023
echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
26024
if test $gt_cv_c_intmax_t = yes; then
26026
cat >>confdefs.h <<\_ACEOF
26027
#define HAVE_INTMAX_T 1
26034
echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
26035
echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
26036
if test "${gt_cv_func_printf_posix+set}" = set; then
26037
echo $ECHO_N "(cached) $ECHO_C" >&6
26040
if test "$cross_compiling" = yes; then
26042
cat >conftest.$ac_ext <<_ACEOF
26045
cat confdefs.h >>conftest.$ac_ext
26046
cat >>conftest.$ac_ext <<_ACEOF
26047
/* end confdefs.h. */
26049
#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
26054
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26055
$EGREP "notposix" >/dev/null 2>&1; then
26056
gt_cv_func_printf_posix="guessing no"
26058
gt_cv_func_printf_posix="guessing yes"
26064
cat >conftest.$ac_ext <<_ACEOF
26067
cat confdefs.h >>conftest.$ac_ext
26068
cat >>conftest.$ac_ext <<_ACEOF
26069
/* end confdefs.h. */
26072
#include <string.h>
26073
/* The string "%2$d %1$d", with dollar characters protected from the shell's
26074
dollar expansion (possibly an autoconf bug). */
26075
static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
26076
static char buf[100];
26079
sprintf (buf, format, 33, 55);
26080
return (strcmp (buf, "55 33") != 0);
26083
rm -f conftest$ac_exeext
26084
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26085
(eval $ac_link) 2>&5
26087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26088
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26089
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26090
(eval $ac_try) 2>&5
26092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26093
(exit $ac_status); }; }; then
26094
gt_cv_func_printf_posix=yes
26096
echo "$as_me: program exited with status $ac_status" >&5
26097
echo "$as_me: failed program was:" >&5
26098
sed 's/^/| /' conftest.$ac_ext >&5
26100
( exit $ac_status )
26101
gt_cv_func_printf_posix=no
26103
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26107
echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
26108
echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
26109
case $gt_cv_func_printf_posix in
26112
cat >>confdefs.h <<\_ACEOF
26113
#define HAVE_POSIX_PRINTF 1
26121
for ac_header in stdlib.h unistd.h
26123
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26124
if eval "test \"\${$as_ac_Header+set}\" = set"; then
26125
echo "$as_me:$LINENO: checking for $ac_header" >&5
26126
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26127
if eval "test \"\${$as_ac_Header+set}\" = set"; then
26128
echo $ECHO_N "(cached) $ECHO_C" >&6
26130
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26131
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26133
# Is the header compilable?
26134
echo "$as_me:$LINENO: checking $ac_header usability" >&5
26135
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26136
cat >conftest.$ac_ext <<_ACEOF
26139
cat confdefs.h >>conftest.$ac_ext
26140
cat >>conftest.$ac_ext <<_ACEOF
26141
/* end confdefs.h. */
26142
$ac_includes_default
26143
#include <$ac_header>
26145
rm -f conftest.$ac_objext
26146
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26147
(eval $ac_compile) 2>conftest.er1
26149
grep -v '^ *+' conftest.er1 >conftest.err
26151
cat conftest.err >&5
26152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26153
(exit $ac_status); } &&
26154
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26155
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26156
(eval $ac_try) 2>&5
26158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26159
(exit $ac_status); }; } &&
26160
{ ac_try='test -s conftest.$ac_objext'
26161
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26162
(eval $ac_try) 2>&5
26164
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26165
(exit $ac_status); }; }; then
26166
ac_header_compiler=yes
26168
echo "$as_me: failed program was:" >&5
26169
sed 's/^/| /' conftest.$ac_ext >&5
26171
ac_header_compiler=no
26173
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26174
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26175
echo "${ECHO_T}$ac_header_compiler" >&6
26177
# Is the header present?
26178
echo "$as_me:$LINENO: checking $ac_header presence" >&5
26179
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26180
cat >conftest.$ac_ext <<_ACEOF
26183
cat confdefs.h >>conftest.$ac_ext
26184
cat >>conftest.$ac_ext <<_ACEOF
26185
/* end confdefs.h. */
26186
#include <$ac_header>
26188
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26189
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26191
grep -v '^ *+' conftest.er1 >conftest.err
26193
cat conftest.err >&5
26194
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195
(exit $ac_status); } >/dev/null; then
26196
if test -s conftest.err; then
26197
ac_cpp_err=$ac_c_preproc_warn_flag
26198
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26205
if test -z "$ac_cpp_err"; then
26206
ac_header_preproc=yes
26208
echo "$as_me: failed program was:" >&5
26209
sed 's/^/| /' conftest.$ac_ext >&5
26211
ac_header_preproc=no
26213
rm -f conftest.err conftest.$ac_ext
26214
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26215
echo "${ECHO_T}$ac_header_preproc" >&6
26217
# So? What about this header?
26218
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26220
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26221
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26222
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26223
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26224
ac_header_preproc=yes
26227
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26228
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26229
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26230
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26231
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26232
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26233
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26234
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26235
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26236
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26237
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26238
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26241
## ------------------------------------------ ##
26242
## Report this to the AC_PACKAGE_NAME lists. ##
26243
## ------------------------------------------ ##
26246
sed "s/^/$as_me: WARNING: /" >&2
26249
echo "$as_me:$LINENO: checking for $ac_header" >&5
26250
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26251
if eval "test \"\${$as_ac_Header+set}\" = set"; then
26252
echo $ECHO_N "(cached) $ECHO_C" >&6
26254
eval "$as_ac_Header=\$ac_header_preproc"
26256
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26257
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26260
if test `eval echo '${'$as_ac_Header'}'` = yes; then
26261
cat >>confdefs.h <<_ACEOF
26262
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26270
for ac_func in getpagesize
26272
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26273
echo "$as_me:$LINENO: checking for $ac_func" >&5
26274
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26275
if eval "test \"\${$as_ac_var+set}\" = set"; then
26276
echo $ECHO_N "(cached) $ECHO_C" >&6
26278
cat >conftest.$ac_ext <<_ACEOF
26281
cat confdefs.h >>conftest.$ac_ext
26282
cat >>conftest.$ac_ext <<_ACEOF
26283
/* end confdefs.h. */
26284
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26285
For example, HP-UX 11i <limits.h> declares gettimeofday. */
26286
#define $ac_func innocuous_$ac_func
26288
/* System header to define __stub macros and hopefully few prototypes,
26289
which can conflict with char $ac_func (); below.
26290
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26291
<limits.h> exists even on freestanding compilers. */
26294
# include <limits.h>
26296
# include <assert.h>
26301
/* Override any gcc2 internal prototype to avoid an error. */
26306
/* We use char because int might match the return type of a gcc2
26307
builtin and then its argument prototype would still apply. */
26309
/* The GNU C library defines this for functions which it implements
26310
to always fail with ENOSYS. Some functions are actually named
26311
something starting with __ and the normal name is an alias. */
26312
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26315
char (*f) () = $ac_func;
26324
return f != $ac_func;
26329
rm -f conftest.$ac_objext conftest$ac_exeext
26330
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26331
(eval $ac_link) 2>conftest.er1
26333
grep -v '^ *+' conftest.er1 >conftest.err
26335
cat conftest.err >&5
26336
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337
(exit $ac_status); } &&
26338
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26339
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26340
(eval $ac_try) 2>&5
26342
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26343
(exit $ac_status); }; } &&
26344
{ ac_try='test -s conftest$ac_exeext'
26345
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26346
(eval $ac_try) 2>&5
26348
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26349
(exit $ac_status); }; }; then
26350
eval "$as_ac_var=yes"
26352
echo "$as_me: failed program was:" >&5
26353
sed 's/^/| /' conftest.$ac_ext >&5
26355
eval "$as_ac_var=no"
26357
rm -f conftest.err conftest.$ac_objext \
26358
conftest$ac_exeext conftest.$ac_ext
26360
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26361
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26362
if test `eval echo '${'$as_ac_var'}'` = yes; then
26363
cat >>confdefs.h <<_ACEOF
26364
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26370
echo "$as_me:$LINENO: checking for working mmap" >&5
26371
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
26372
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
26373
echo $ECHO_N "(cached) $ECHO_C" >&6
26375
if test "$cross_compiling" = yes; then
26376
ac_cv_func_mmap_fixed_mapped=no
26378
cat >conftest.$ac_ext <<_ACEOF
26381
cat confdefs.h >>conftest.$ac_ext
26382
cat >>conftest.$ac_ext <<_ACEOF
26383
/* end confdefs.h. */
26384
$ac_includes_default
26385
/* malloc might have been renamed as rpl_malloc. */
26388
/* Thanks to Mike Haertel and Jim Avera for this test.
26389
Here is a matrix of mmap possibilities:
26390
mmap private not fixed
26391
mmap private fixed at somewhere currently unmapped
26392
mmap private fixed at somewhere already mapped
26393
mmap shared not fixed
26394
mmap shared fixed at somewhere currently unmapped
26395
mmap shared fixed at somewhere already mapped
26396
For private mappings, we should verify that changes cannot be read()
26397
back from the file, nor mmap's back from the file at a different
26398
address. (There have been systems where private was not correctly
26399
implemented like the infamous i386 svr4.0, and systems where the
26400
VM page cache was not coherent with the file system buffer cache
26401
like early versions of FreeBSD and possibly contemporary NetBSD.)
26402
For shared mappings, we should conversely verify that changes get
26403
propagated back to all the places they're supposed to be.
26405
Grep wants private fixed already mapped.
26406
The main things grep needs to know about mmap are:
26407
* does it exist and is it safe to write into the mmap'd area
26408
* how to use it (BSD variants) */
26411
#include <sys/mman.h>
26413
#if !STDC_HEADERS && !HAVE_STDLIB_H
26417
/* This mess was copied from the GNU getpagesize.h. */
26418
#if !HAVE_GETPAGESIZE
26419
/* Assume that all systems that can run configure have sys/param.h. */
26420
# if !HAVE_SYS_PARAM_H
26421
# define HAVE_SYS_PARAM_H 1
26424
# ifdef _SC_PAGESIZE
26425
# define getpagesize() sysconf(_SC_PAGESIZE)
26426
# else /* no _SC_PAGESIZE */
26427
# if HAVE_SYS_PARAM_H
26428
# include <sys/param.h>
26429
# ifdef EXEC_PAGESIZE
26430
# define getpagesize() EXEC_PAGESIZE
26431
# else /* no EXEC_PAGESIZE */
26433
# define getpagesize() NBPG * CLSIZE
26436
# endif /* no CLSIZE */
26437
# else /* no NBPG */
26439
# define getpagesize() NBPC
26440
# else /* no NBPC */
26442
# define getpagesize() PAGESIZE
26443
# endif /* PAGESIZE */
26444
# endif /* no NBPC */
26445
# endif /* no NBPG */
26446
# endif /* no EXEC_PAGESIZE */
26447
# else /* no HAVE_SYS_PARAM_H */
26448
# define getpagesize() 8192 /* punt totally */
26449
# endif /* no HAVE_SYS_PARAM_H */
26450
# endif /* no _SC_PAGESIZE */
26452
#endif /* no HAVE_GETPAGESIZE */
26457
char *data, *data2, *data3;
26461
pagesize = getpagesize ();
26463
/* First, make a file with some known garbage in it. */
26464
data = (char *) malloc (pagesize);
26467
for (i = 0; i < pagesize; ++i)
26468
*(data + i) = rand ();
26470
fd = creat ("conftest.mmap", 0600);
26473
if (write (fd, data, pagesize) != pagesize)
26477
/* Next, try to mmap the file at a fixed address which already has
26478
something else allocated at it. If we can, also make sure that
26479
we see the same garbage. */
26480
fd = open ("conftest.mmap", O_RDWR);
26483
data2 = (char *) malloc (2 * pagesize);
26486
data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
26487
if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
26488
MAP_PRIVATE | MAP_FIXED, fd, 0L))
26490
for (i = 0; i < pagesize; ++i)
26491
if (*(data + i) != *(data2 + i))
26494
/* Finally, make sure that changes to the mapped area do not
26495
percolate back to the file as seen by read(). (This is a bug on
26496
some variants of i386 svr4.0.) */
26497
for (i = 0; i < pagesize; ++i)
26498
*(data2 + i) = *(data2 + i) + 1;
26499
data3 = (char *) malloc (pagesize);
26502
if (read (fd, data3, pagesize) != pagesize)
26504
for (i = 0; i < pagesize; ++i)
26505
if (*(data + i) != *(data3 + i))
26511
rm -f conftest$ac_exeext
26512
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26513
(eval $ac_link) 2>&5
26515
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26516
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26517
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26518
(eval $ac_try) 2>&5
26520
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521
(exit $ac_status); }; }; then
26522
ac_cv_func_mmap_fixed_mapped=yes
26524
echo "$as_me: program exited with status $ac_status" >&5
26525
echo "$as_me: failed program was:" >&5
26526
sed 's/^/| /' conftest.$ac_ext >&5
26528
( exit $ac_status )
26529
ac_cv_func_mmap_fixed_mapped=no
26531
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26534
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
26535
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
26536
if test $ac_cv_func_mmap_fixed_mapped = yes; then
26538
cat >>confdefs.h <<\_ACEOF
26539
#define HAVE_MMAP 1
26543
rm -f conftest.mmap
26546
echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
26547
echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
26548
if test "${ac_cv_gnu_library_2_1+set}" = set; then
26549
echo $ECHO_N "(cached) $ECHO_C" >&6
26551
cat >conftest.$ac_ext <<_ACEOF
26554
cat confdefs.h >>conftest.$ac_ext
26555
cat >>conftest.$ac_ext <<_ACEOF
26556
/* end confdefs.h. */
26558
#include <features.h>
26559
#ifdef __GNU_LIBRARY__
26560
#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
26566
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26567
$EGREP "Lucky GNU user" >/dev/null 2>&1; then
26568
ac_cv_gnu_library_2_1=yes
26570
ac_cv_gnu_library_2_1=no
26577
echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
26578
echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
26580
GLIBC21="$ac_cv_gnu_library_2_1"
26585
echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
26586
echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
26587
if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
26588
echo $ECHO_N "(cached) $ECHO_C" >&6
26591
if test "$cross_compiling" = yes; then
26593
# Guess based on the CPU.
26594
case "$host_cpu" in
26595
alpha* | i3456786 | m68k | s390*)
26596
gt_cv_int_divbyzero_sigfpe="guessing yes";;
26598
gt_cv_int_divbyzero_sigfpe="guessing no";;
26602
cat >conftest.$ac_ext <<_ACEOF
26605
cat confdefs.h >>conftest.$ac_ext
26606
cat >>conftest.$ac_ext <<_ACEOF
26607
/* end confdefs.h. */
26609
#include <stdlib.h>
26610
#include <signal.h>
26614
sigfpe_handler (int sig)
26616
sigfpe_handler (sig) int sig;
26619
/* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
26620
exit (sig != SIGFPE);
26630
signal (SIGFPE, sigfpe_handler);
26631
/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
26632
#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
26633
signal (SIGTRAP, sigfpe_handler);
26635
/* Linux/SPARC yields signal SIGILL. */
26636
#if defined (__sparc__) && defined (__linux__)
26637
signal (SIGILL, sigfpe_handler);
26646
rm -f conftest$ac_exeext
26647
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26648
(eval $ac_link) 2>&5
26650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26652
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26653
(eval $ac_try) 2>&5
26655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26656
(exit $ac_status); }; }; then
26657
gt_cv_int_divbyzero_sigfpe=yes
26659
echo "$as_me: program exited with status $ac_status" >&5
26660
echo "$as_me: failed program was:" >&5
26661
sed 's/^/| /' conftest.$ac_ext >&5
26663
( exit $ac_status )
26664
gt_cv_int_divbyzero_sigfpe=no
26666
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26670
echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
26671
echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
26672
case "$gt_cv_int_divbyzero_sigfpe" in
26677
cat >>confdefs.h <<_ACEOF
26678
#define INTDIV0_RAISES_SIGFPE $value
26683
echo "$as_me:$LINENO: checking for unsigned long long" >&5
26684
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
26685
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
26686
echo $ECHO_N "(cached) $ECHO_C" >&6
26688
cat >conftest.$ac_ext <<_ACEOF
26691
cat confdefs.h >>conftest.$ac_ext
26692
cat >>conftest.$ac_ext <<_ACEOF
26693
/* end confdefs.h. */
26694
unsigned long long ull = 1ULL; int i = 63;
26698
unsigned long long ullmax = (unsigned long long) -1;
26699
return ull << i | ull >> i | ullmax / ull | ullmax % ull;
26704
rm -f conftest.$ac_objext conftest$ac_exeext
26705
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26706
(eval $ac_link) 2>conftest.er1
26708
grep -v '^ *+' conftest.er1 >conftest.err
26710
cat conftest.err >&5
26711
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712
(exit $ac_status); } &&
26713
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26714
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26715
(eval $ac_try) 2>&5
26717
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26718
(exit $ac_status); }; } &&
26719
{ ac_try='test -s conftest$ac_exeext'
26720
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26721
(eval $ac_try) 2>&5
26723
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26724
(exit $ac_status); }; }; then
26725
ac_cv_type_unsigned_long_long=yes
26727
echo "$as_me: failed program was:" >&5
26728
sed 's/^/| /' conftest.$ac_ext >&5
26730
ac_cv_type_unsigned_long_long=no
26732
rm -f conftest.err conftest.$ac_objext \
26733
conftest$ac_exeext conftest.$ac_ext
26735
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
26736
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
26737
if test $ac_cv_type_unsigned_long_long = yes; then
26739
cat >>confdefs.h <<\_ACEOF
26740
#define HAVE_UNSIGNED_LONG_LONG 1
26748
if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
26750
test $ac_cv_type_unsigned_long_long = yes \
26751
&& ac_type='unsigned long long' \
26752
|| ac_type='unsigned long'
26754
cat >>confdefs.h <<_ACEOF
26755
#define uintmax_t $ac_type
26760
cat >>confdefs.h <<\_ACEOF
26761
#define HAVE_UINTMAX_T 1
26767
echo "$as_me:$LINENO: checking for inttypes.h" >&5
26768
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
26769
if test "${gt_cv_header_inttypes_h+set}" = set; then
26770
echo $ECHO_N "(cached) $ECHO_C" >&6
26773
cat >conftest.$ac_ext <<_ACEOF
26776
cat confdefs.h >>conftest.$ac_ext
26777
cat >>conftest.$ac_ext <<_ACEOF
26778
/* end confdefs.h. */
26779
#include <sys/types.h>
26780
#include <inttypes.h>
26789
rm -f conftest.$ac_objext
26790
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26791
(eval $ac_compile) 2>conftest.er1
26793
grep -v '^ *+' conftest.er1 >conftest.err
26795
cat conftest.err >&5
26796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797
(exit $ac_status); } &&
26798
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26799
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26800
(eval $ac_try) 2>&5
26802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26803
(exit $ac_status); }; } &&
26804
{ ac_try='test -s conftest.$ac_objext'
26805
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26806
(eval $ac_try) 2>&5
26808
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26809
(exit $ac_status); }; }; then
26810
gt_cv_header_inttypes_h=yes
26812
echo "$as_me: failed program was:" >&5
26813
sed 's/^/| /' conftest.$ac_ext >&5
26815
gt_cv_header_inttypes_h=no
26817
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26820
echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
26821
echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
26822
if test $gt_cv_header_inttypes_h = yes; then
26824
cat >>confdefs.h <<_ACEOF
26825
#define HAVE_INTTYPES_H 1
26832
if test $gt_cv_header_inttypes_h = yes; then
26833
echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
26834
echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
26835
if test "${gt_cv_inttypes_pri_broken+set}" = set; then
26836
echo $ECHO_N "(cached) $ECHO_C" >&6
26839
cat >conftest.$ac_ext <<_ACEOF
26842
cat confdefs.h >>conftest.$ac_ext
26843
cat >>conftest.$ac_ext <<_ACEOF
26844
/* end confdefs.h. */
26845
#include <inttypes.h>
26858
rm -f conftest.$ac_objext
26859
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26860
(eval $ac_compile) 2>conftest.er1
26862
grep -v '^ *+' conftest.er1 >conftest.err
26864
cat conftest.err >&5
26865
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26866
(exit $ac_status); } &&
26867
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26868
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26869
(eval $ac_try) 2>&5
26871
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26872
(exit $ac_status); }; } &&
26873
{ ac_try='test -s conftest.$ac_objext'
26874
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26875
(eval $ac_try) 2>&5
26877
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26878
(exit $ac_status); }; }; then
26879
gt_cv_inttypes_pri_broken=no
26881
echo "$as_me: failed program was:" >&5
26882
sed 's/^/| /' conftest.$ac_ext >&5
26884
gt_cv_inttypes_pri_broken=yes
26886
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26889
echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
26890
echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
26892
if test "$gt_cv_inttypes_pri_broken" = yes; then
26894
cat >>confdefs.h <<_ACEOF
26895
#define PRI_MACROS_BROKEN 1
26902
for ac_header in stdint.h
26904
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26905
if eval "test \"\${$as_ac_Header+set}\" = set"; then
26906
echo "$as_me:$LINENO: checking for $ac_header" >&5
26907
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26908
if eval "test \"\${$as_ac_Header+set}\" = set"; then
26909
echo $ECHO_N "(cached) $ECHO_C" >&6
26911
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26912
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26914
# Is the header compilable?
26915
echo "$as_me:$LINENO: checking $ac_header usability" >&5
26916
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26917
cat >conftest.$ac_ext <<_ACEOF
26920
cat confdefs.h >>conftest.$ac_ext
26921
cat >>conftest.$ac_ext <<_ACEOF
26922
/* end confdefs.h. */
26923
$ac_includes_default
26924
#include <$ac_header>
26926
rm -f conftest.$ac_objext
26927
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26928
(eval $ac_compile) 2>conftest.er1
26930
grep -v '^ *+' conftest.er1 >conftest.err
26932
cat conftest.err >&5
26933
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934
(exit $ac_status); } &&
26935
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26936
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26937
(eval $ac_try) 2>&5
26939
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26940
(exit $ac_status); }; } &&
26941
{ ac_try='test -s conftest.$ac_objext'
26942
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26943
(eval $ac_try) 2>&5
26945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946
(exit $ac_status); }; }; then
26947
ac_header_compiler=yes
26949
echo "$as_me: failed program was:" >&5
26950
sed 's/^/| /' conftest.$ac_ext >&5
26952
ac_header_compiler=no
26954
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26955
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26956
echo "${ECHO_T}$ac_header_compiler" >&6
26958
# Is the header present?
26959
echo "$as_me:$LINENO: checking $ac_header presence" >&5
26960
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26961
cat >conftest.$ac_ext <<_ACEOF
26964
cat confdefs.h >>conftest.$ac_ext
26965
cat >>conftest.$ac_ext <<_ACEOF
26966
/* end confdefs.h. */
26967
#include <$ac_header>
26969
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26970
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26972
grep -v '^ *+' conftest.er1 >conftest.err
26974
cat conftest.err >&5
26975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26976
(exit $ac_status); } >/dev/null; then
26977
if test -s conftest.err; then
26978
ac_cpp_err=$ac_c_preproc_warn_flag
26979
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26986
if test -z "$ac_cpp_err"; then
26987
ac_header_preproc=yes
26989
echo "$as_me: failed program was:" >&5
26990
sed 's/^/| /' conftest.$ac_ext >&5
26992
ac_header_preproc=no
26994
rm -f conftest.err conftest.$ac_ext
26995
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26996
echo "${ECHO_T}$ac_header_preproc" >&6
26998
# So? What about this header?
26999
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27001
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27002
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27003
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27004
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27005
ac_header_preproc=yes
27008
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27009
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27010
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27011
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27012
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27013
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27014
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27015
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27016
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27017
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27018
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27019
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27022
## ------------------------------------------ ##
27023
## Report this to the AC_PACKAGE_NAME lists. ##
27024
## ------------------------------------------ ##
27027
sed "s/^/$as_me: WARNING: /" >&2
27030
echo "$as_me:$LINENO: checking for $ac_header" >&5
27031
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27032
if eval "test \"\${$as_ac_Header+set}\" = set"; then
27033
echo $ECHO_N "(cached) $ECHO_C" >&6
27035
eval "$as_ac_Header=\$ac_header_preproc"
27037
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27038
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27041
if test `eval echo '${'$as_ac_Header'}'` = yes; then
27042
cat >>confdefs.h <<_ACEOF
27043
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27050
echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
27051
echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
27053
cat >conftest.$ac_ext <<_ACEOF
27056
cat confdefs.h >>conftest.$ac_ext
27057
cat >>conftest.$ac_ext <<_ACEOF
27058
/* end confdefs.h. */
27060
#include <limits.h>
27062
#include <stdint.h>
27069
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27070
$EGREP "Found it" >/dev/null 2>&1; then
27075
if test -z "$result"; then
27076
if test "$cross_compiling" = yes; then
27077
# Depending upon the size, compute the lo and hi bounds.
27078
cat >conftest.$ac_ext <<_ACEOF
27081
cat confdefs.h >>conftest.$ac_ext
27082
cat >>conftest.$ac_ext <<_ACEOF
27083
/* end confdefs.h. */
27084
#include <stddef.h>
27088
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
27095
rm -f conftest.$ac_objext
27096
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27097
(eval $ac_compile) 2>conftest.er1
27099
grep -v '^ *+' conftest.er1 >conftest.err
27101
cat conftest.err >&5
27102
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103
(exit $ac_status); } &&
27104
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27105
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27106
(eval $ac_try) 2>&5
27108
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27109
(exit $ac_status); }; } &&
27110
{ ac_try='test -s conftest.$ac_objext'
27111
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27112
(eval $ac_try) 2>&5
27114
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27115
(exit $ac_status); }; }; then
27118
cat >conftest.$ac_ext <<_ACEOF
27121
cat confdefs.h >>conftest.$ac_ext
27122
cat >>conftest.$ac_ext <<_ACEOF
27123
/* end confdefs.h. */
27124
#include <stddef.h>
27128
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
27135
rm -f conftest.$ac_objext
27136
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27137
(eval $ac_compile) 2>conftest.er1
27139
grep -v '^ *+' conftest.er1 >conftest.err
27141
cat conftest.err >&5
27142
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143
(exit $ac_status); } &&
27144
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27145
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27146
(eval $ac_try) 2>&5
27148
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149
(exit $ac_status); }; } &&
27150
{ ac_try='test -s conftest.$ac_objext'
27151
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27152
(eval $ac_try) 2>&5
27154
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27155
(exit $ac_status); }; }; then
27156
ac_hi=$ac_mid; break
27158
echo "$as_me: failed program was:" >&5
27159
sed 's/^/| /' conftest.$ac_ext >&5
27161
ac_lo=`expr $ac_mid + 1`
27162
if test $ac_lo -le $ac_mid; then
27166
ac_mid=`expr 2 '*' $ac_mid + 1`
27168
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27171
echo "$as_me: failed program was:" >&5
27172
sed 's/^/| /' conftest.$ac_ext >&5
27174
cat >conftest.$ac_ext <<_ACEOF
27177
cat confdefs.h >>conftest.$ac_ext
27178
cat >>conftest.$ac_ext <<_ACEOF
27179
/* end confdefs.h. */
27180
#include <stddef.h>
27184
static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
27191
rm -f conftest.$ac_objext
27192
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27193
(eval $ac_compile) 2>conftest.er1
27195
grep -v '^ *+' conftest.er1 >conftest.err
27197
cat conftest.err >&5
27198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199
(exit $ac_status); } &&
27200
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27201
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27202
(eval $ac_try) 2>&5
27204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205
(exit $ac_status); }; } &&
27206
{ ac_try='test -s conftest.$ac_objext'
27207
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27208
(eval $ac_try) 2>&5
27210
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211
(exit $ac_status); }; }; then
27214
cat >conftest.$ac_ext <<_ACEOF
27217
cat confdefs.h >>conftest.$ac_ext
27218
cat >>conftest.$ac_ext <<_ACEOF
27219
/* end confdefs.h. */
27220
#include <stddef.h>
27224
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
27231
rm -f conftest.$ac_objext
27232
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27233
(eval $ac_compile) 2>conftest.er1
27235
grep -v '^ *+' conftest.er1 >conftest.err
27237
cat conftest.err >&5
27238
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27239
(exit $ac_status); } &&
27240
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27241
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27242
(eval $ac_try) 2>&5
27244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245
(exit $ac_status); }; } &&
27246
{ ac_try='test -s conftest.$ac_objext'
27247
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27248
(eval $ac_try) 2>&5
27250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27251
(exit $ac_status); }; }; then
27252
ac_lo=$ac_mid; break
27254
echo "$as_me: failed program was:" >&5
27255
sed 's/^/| /' conftest.$ac_ext >&5
27257
ac_hi=`expr '(' $ac_mid ')' - 1`
27258
if test $ac_mid -le $ac_hi; then
27262
ac_mid=`expr 2 '*' $ac_mid`
27264
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27267
echo "$as_me: failed program was:" >&5
27268
sed 's/^/| /' conftest.$ac_ext >&5
27272
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27274
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27275
# Binary search between lo and hi bounds.
27276
while test "x$ac_lo" != "x$ac_hi"; do
27277
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27278
cat >conftest.$ac_ext <<_ACEOF
27281
cat confdefs.h >>conftest.$ac_ext
27282
cat >>conftest.$ac_ext <<_ACEOF
27283
/* end confdefs.h. */
27284
#include <stddef.h>
27288
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
27295
rm -f conftest.$ac_objext
27296
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27297
(eval $ac_compile) 2>conftest.er1
27299
grep -v '^ *+' conftest.er1 >conftest.err
27301
cat conftest.err >&5
27302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303
(exit $ac_status); } &&
27304
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27305
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27306
(eval $ac_try) 2>&5
27308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27309
(exit $ac_status); }; } &&
27310
{ ac_try='test -s conftest.$ac_objext'
27311
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27312
(eval $ac_try) 2>&5
27314
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315
(exit $ac_status); }; }; then
27318
echo "$as_me: failed program was:" >&5
27319
sed 's/^/| /' conftest.$ac_ext >&5
27321
ac_lo=`expr '(' $ac_mid ')' + 1`
27323
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27326
?*) res_hi=$ac_lo;;
27330
if test "$cross_compiling" = yes; then
27331
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27332
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27333
{ (exit 1); exit 1; }; }
27335
cat >conftest.$ac_ext <<_ACEOF
27338
cat confdefs.h >>conftest.$ac_ext
27339
cat >>conftest.$ac_ext <<_ACEOF
27340
/* end confdefs.h. */
27341
#include <stddef.h>
27342
long longval () { return ~(size_t)0 / 10; }
27343
unsigned long ulongval () { return ~(size_t)0 / 10; }
27345
#include <stdlib.h>
27350
FILE *f = fopen ("conftest.val", "w");
27353
if ((~(size_t)0 / 10) < 0)
27355
long i = longval ();
27356
if (i != (~(size_t)0 / 10))
27358
fprintf (f, "%ld\n", i);
27362
unsigned long i = ulongval ();
27363
if (i != (~(size_t)0 / 10))
27365
fprintf (f, "%lu\n", i);
27367
exit (ferror (f) || fclose (f) != 0);
27373
rm -f conftest$ac_exeext
27374
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27375
(eval $ac_link) 2>&5
27377
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27379
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27380
(eval $ac_try) 2>&5
27382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27383
(exit $ac_status); }; }; then
27384
res_hi=`cat conftest.val`
27386
echo "$as_me: program exited with status $ac_status" >&5
27387
echo "$as_me: failed program was:" >&5
27388
sed 's/^/| /' conftest.$ac_ext >&5
27390
( exit $ac_status )
27393
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27397
if test "$cross_compiling" = yes; then
27398
# Depending upon the size, compute the lo and hi bounds.
27399
cat >conftest.$ac_ext <<_ACEOF
27402
cat confdefs.h >>conftest.$ac_ext
27403
cat >>conftest.$ac_ext <<_ACEOF
27404
/* end confdefs.h. */
27405
#include <stddef.h>
27409
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
27416
rm -f conftest.$ac_objext
27417
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27418
(eval $ac_compile) 2>conftest.er1
27420
grep -v '^ *+' conftest.er1 >conftest.err
27422
cat conftest.err >&5
27423
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27424
(exit $ac_status); } &&
27425
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27426
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27427
(eval $ac_try) 2>&5
27429
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27430
(exit $ac_status); }; } &&
27431
{ ac_try='test -s conftest.$ac_objext'
27432
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27433
(eval $ac_try) 2>&5
27435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436
(exit $ac_status); }; }; then
27439
cat >conftest.$ac_ext <<_ACEOF
27442
cat confdefs.h >>conftest.$ac_ext
27443
cat >>conftest.$ac_ext <<_ACEOF
27444
/* end confdefs.h. */
27445
#include <stddef.h>
27449
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
27456
rm -f conftest.$ac_objext
27457
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27458
(eval $ac_compile) 2>conftest.er1
27460
grep -v '^ *+' conftest.er1 >conftest.err
27462
cat conftest.err >&5
27463
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464
(exit $ac_status); } &&
27465
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27466
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27467
(eval $ac_try) 2>&5
27469
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470
(exit $ac_status); }; } &&
27471
{ ac_try='test -s conftest.$ac_objext'
27472
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27473
(eval $ac_try) 2>&5
27475
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27476
(exit $ac_status); }; }; then
27477
ac_hi=$ac_mid; break
27479
echo "$as_me: failed program was:" >&5
27480
sed 's/^/| /' conftest.$ac_ext >&5
27482
ac_lo=`expr $ac_mid + 1`
27483
if test $ac_lo -le $ac_mid; then
27487
ac_mid=`expr 2 '*' $ac_mid + 1`
27489
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27492
echo "$as_me: failed program was:" >&5
27493
sed 's/^/| /' conftest.$ac_ext >&5
27495
cat >conftest.$ac_ext <<_ACEOF
27498
cat confdefs.h >>conftest.$ac_ext
27499
cat >>conftest.$ac_ext <<_ACEOF
27500
/* end confdefs.h. */
27501
#include <stddef.h>
27505
static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
27512
rm -f conftest.$ac_objext
27513
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27514
(eval $ac_compile) 2>conftest.er1
27516
grep -v '^ *+' conftest.er1 >conftest.err
27518
cat conftest.err >&5
27519
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520
(exit $ac_status); } &&
27521
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27522
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27523
(eval $ac_try) 2>&5
27525
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27526
(exit $ac_status); }; } &&
27527
{ ac_try='test -s conftest.$ac_objext'
27528
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27529
(eval $ac_try) 2>&5
27531
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27532
(exit $ac_status); }; }; then
27535
cat >conftest.$ac_ext <<_ACEOF
27538
cat confdefs.h >>conftest.$ac_ext
27539
cat >>conftest.$ac_ext <<_ACEOF
27540
/* end confdefs.h. */
27541
#include <stddef.h>
27545
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
27552
rm -f conftest.$ac_objext
27553
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27554
(eval $ac_compile) 2>conftest.er1
27556
grep -v '^ *+' conftest.er1 >conftest.err
27558
cat conftest.err >&5
27559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27560
(exit $ac_status); } &&
27561
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27562
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27563
(eval $ac_try) 2>&5
27565
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566
(exit $ac_status); }; } &&
27567
{ ac_try='test -s conftest.$ac_objext'
27568
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27569
(eval $ac_try) 2>&5
27571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572
(exit $ac_status); }; }; then
27573
ac_lo=$ac_mid; break
27575
echo "$as_me: failed program was:" >&5
27576
sed 's/^/| /' conftest.$ac_ext >&5
27578
ac_hi=`expr '(' $ac_mid ')' - 1`
27579
if test $ac_mid -le $ac_hi; then
27583
ac_mid=`expr 2 '*' $ac_mid`
27585
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27588
echo "$as_me: failed program was:" >&5
27589
sed 's/^/| /' conftest.$ac_ext >&5
27593
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27595
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27596
# Binary search between lo and hi bounds.
27597
while test "x$ac_lo" != "x$ac_hi"; do
27598
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27599
cat >conftest.$ac_ext <<_ACEOF
27602
cat confdefs.h >>conftest.$ac_ext
27603
cat >>conftest.$ac_ext <<_ACEOF
27604
/* end confdefs.h. */
27605
#include <stddef.h>
27609
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
27616
rm -f conftest.$ac_objext
27617
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27618
(eval $ac_compile) 2>conftest.er1
27620
grep -v '^ *+' conftest.er1 >conftest.err
27622
cat conftest.err >&5
27623
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624
(exit $ac_status); } &&
27625
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27626
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27627
(eval $ac_try) 2>&5
27629
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27630
(exit $ac_status); }; } &&
27631
{ ac_try='test -s conftest.$ac_objext'
27632
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27633
(eval $ac_try) 2>&5
27635
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27636
(exit $ac_status); }; }; then
27639
echo "$as_me: failed program was:" >&5
27640
sed 's/^/| /' conftest.$ac_ext >&5
27642
ac_lo=`expr '(' $ac_mid ')' + 1`
27644
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27647
?*) res_lo=$ac_lo;;
27651
if test "$cross_compiling" = yes; then
27652
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27653
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27654
{ (exit 1); exit 1; }; }
27656
cat >conftest.$ac_ext <<_ACEOF
27659
cat confdefs.h >>conftest.$ac_ext
27660
cat >>conftest.$ac_ext <<_ACEOF
27661
/* end confdefs.h. */
27662
#include <stddef.h>
27663
long longval () { return ~(size_t)0 % 10; }
27664
unsigned long ulongval () { return ~(size_t)0 % 10; }
27666
#include <stdlib.h>
27671
FILE *f = fopen ("conftest.val", "w");
27674
if ((~(size_t)0 % 10) < 0)
27676
long i = longval ();
27677
if (i != (~(size_t)0 % 10))
27679
fprintf (f, "%ld\n", i);
27683
unsigned long i = ulongval ();
27684
if (i != (~(size_t)0 % 10))
27686
fprintf (f, "%lu\n", i);
27688
exit (ferror (f) || fclose (f) != 0);
27694
rm -f conftest$ac_exeext
27695
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27696
(eval $ac_link) 2>&5
27698
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27700
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27701
(eval $ac_try) 2>&5
27703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27704
(exit $ac_status); }; }; then
27705
res_lo=`cat conftest.val`
27707
echo "$as_me: program exited with status $ac_status" >&5
27708
echo "$as_me: failed program was:" >&5
27709
sed 's/^/| /' conftest.$ac_ext >&5
27711
( exit $ac_status )
27714
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27718
if test "$cross_compiling" = yes; then
27719
# Depending upon the size, compute the lo and hi bounds.
27720
cat >conftest.$ac_ext <<_ACEOF
27723
cat confdefs.h >>conftest.$ac_ext
27724
cat >>conftest.$ac_ext <<_ACEOF
27725
/* end confdefs.h. */
27726
#include <stddef.h>
27730
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
27737
rm -f conftest.$ac_objext
27738
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27739
(eval $ac_compile) 2>conftest.er1
27741
grep -v '^ *+' conftest.er1 >conftest.err
27743
cat conftest.err >&5
27744
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745
(exit $ac_status); } &&
27746
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27747
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27748
(eval $ac_try) 2>&5
27750
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751
(exit $ac_status); }; } &&
27752
{ ac_try='test -s conftest.$ac_objext'
27753
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27754
(eval $ac_try) 2>&5
27756
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27757
(exit $ac_status); }; }; then
27760
cat >conftest.$ac_ext <<_ACEOF
27763
cat confdefs.h >>conftest.$ac_ext
27764
cat >>conftest.$ac_ext <<_ACEOF
27765
/* end confdefs.h. */
27766
#include <stddef.h>
27770
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
27777
rm -f conftest.$ac_objext
27778
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27779
(eval $ac_compile) 2>conftest.er1
27781
grep -v '^ *+' conftest.er1 >conftest.err
27783
cat conftest.err >&5
27784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27785
(exit $ac_status); } &&
27786
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27787
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27788
(eval $ac_try) 2>&5
27790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791
(exit $ac_status); }; } &&
27792
{ ac_try='test -s conftest.$ac_objext'
27793
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27794
(eval $ac_try) 2>&5
27796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27797
(exit $ac_status); }; }; then
27798
ac_hi=$ac_mid; break
27800
echo "$as_me: failed program was:" >&5
27801
sed 's/^/| /' conftest.$ac_ext >&5
27803
ac_lo=`expr $ac_mid + 1`
27804
if test $ac_lo -le $ac_mid; then
27808
ac_mid=`expr 2 '*' $ac_mid + 1`
27810
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27813
echo "$as_me: failed program was:" >&5
27814
sed 's/^/| /' conftest.$ac_ext >&5
27816
cat >conftest.$ac_ext <<_ACEOF
27819
cat confdefs.h >>conftest.$ac_ext
27820
cat >>conftest.$ac_ext <<_ACEOF
27821
/* end confdefs.h. */
27822
#include <stddef.h>
27826
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
27833
rm -f conftest.$ac_objext
27834
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27835
(eval $ac_compile) 2>conftest.er1
27837
grep -v '^ *+' conftest.er1 >conftest.err
27839
cat conftest.err >&5
27840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27841
(exit $ac_status); } &&
27842
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27843
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27844
(eval $ac_try) 2>&5
27846
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27847
(exit $ac_status); }; } &&
27848
{ ac_try='test -s conftest.$ac_objext'
27849
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27850
(eval $ac_try) 2>&5
27852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853
(exit $ac_status); }; }; then
27856
cat >conftest.$ac_ext <<_ACEOF
27859
cat confdefs.h >>conftest.$ac_ext
27860
cat >>conftest.$ac_ext <<_ACEOF
27861
/* end confdefs.h. */
27862
#include <stddef.h>
27866
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
27873
rm -f conftest.$ac_objext
27874
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27875
(eval $ac_compile) 2>conftest.er1
27877
grep -v '^ *+' conftest.er1 >conftest.err
27879
cat conftest.err >&5
27880
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881
(exit $ac_status); } &&
27882
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27883
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27884
(eval $ac_try) 2>&5
27886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887
(exit $ac_status); }; } &&
27888
{ ac_try='test -s conftest.$ac_objext'
27889
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27890
(eval $ac_try) 2>&5
27892
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27893
(exit $ac_status); }; }; then
27894
ac_lo=$ac_mid; break
27896
echo "$as_me: failed program was:" >&5
27897
sed 's/^/| /' conftest.$ac_ext >&5
27899
ac_hi=`expr '(' $ac_mid ')' - 1`
27900
if test $ac_mid -le $ac_hi; then
27904
ac_mid=`expr 2 '*' $ac_mid`
27906
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27909
echo "$as_me: failed program was:" >&5
27910
sed 's/^/| /' conftest.$ac_ext >&5
27914
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27916
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27917
# Binary search between lo and hi bounds.
27918
while test "x$ac_lo" != "x$ac_hi"; do
27919
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27920
cat >conftest.$ac_ext <<_ACEOF
27923
cat confdefs.h >>conftest.$ac_ext
27924
cat >>conftest.$ac_ext <<_ACEOF
27925
/* end confdefs.h. */
27926
#include <stddef.h>
27930
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
27937
rm -f conftest.$ac_objext
27938
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27939
(eval $ac_compile) 2>conftest.er1
27941
grep -v '^ *+' conftest.er1 >conftest.err
27943
cat conftest.err >&5
27944
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27945
(exit $ac_status); } &&
27946
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27947
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27948
(eval $ac_try) 2>&5
27950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27951
(exit $ac_status); }; } &&
27952
{ ac_try='test -s conftest.$ac_objext'
27953
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27954
(eval $ac_try) 2>&5
27956
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957
(exit $ac_status); }; }; then
27960
echo "$as_me: failed program was:" >&5
27961
sed 's/^/| /' conftest.$ac_ext >&5
27963
ac_lo=`expr '(' $ac_mid ')' + 1`
27965
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27968
?*) fits_in_uint=$ac_lo;;
27972
if test "$cross_compiling" = yes; then
27973
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27974
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27975
{ (exit 1); exit 1; }; }
27977
cat >conftest.$ac_ext <<_ACEOF
27980
cat confdefs.h >>conftest.$ac_ext
27981
cat >>conftest.$ac_ext <<_ACEOF
27982
/* end confdefs.h. */
27983
#include <stddef.h>
27984
long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
27985
unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
27987
#include <stdlib.h>
27992
FILE *f = fopen ("conftest.val", "w");
27995
if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
27997
long i = longval ();
27998
if (i != (sizeof (size_t) <= sizeof (unsigned int)))
28000
fprintf (f, "%ld\n", i);
28004
unsigned long i = ulongval ();
28005
if (i != (sizeof (size_t) <= sizeof (unsigned int)))
28007
fprintf (f, "%lu\n", i);
28009
exit (ferror (f) || fclose (f) != 0);
28015
rm -f conftest$ac_exeext
28016
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28017
(eval $ac_link) 2>&5
28019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28020
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28021
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28022
(eval $ac_try) 2>&5
28024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28025
(exit $ac_status); }; }; then
28026
fits_in_uint=`cat conftest.val`
28028
echo "$as_me: program exited with status $ac_status" >&5
28029
echo "$as_me: failed program was:" >&5
28030
sed 's/^/| /' conftest.$ac_ext >&5
28032
( exit $ac_status )
28035
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28039
if test "$fits_in_uint" = 1; then
28040
cat >conftest.$ac_ext <<_ACEOF
28043
cat confdefs.h >>conftest.$ac_ext
28044
cat >>conftest.$ac_ext <<_ACEOF
28045
/* end confdefs.h. */
28046
#include <stddef.h>
28048
extern unsigned long foo;
28058
rm -f conftest.$ac_objext
28059
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28060
(eval $ac_compile) 2>conftest.er1
28062
grep -v '^ *+' conftest.er1 >conftest.err
28064
cat conftest.err >&5
28065
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066
(exit $ac_status); } &&
28067
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28068
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28069
(eval $ac_try) 2>&5
28071
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072
(exit $ac_status); }; } &&
28073
{ ac_try='test -s conftest.$ac_objext'
28074
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28075
(eval $ac_try) 2>&5
28077
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078
(exit $ac_status); }; }; then
28081
echo "$as_me: failed program was:" >&5
28082
sed 's/^/| /' conftest.$ac_ext >&5
28085
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28087
if test -z "$result"; then
28088
if test "$fits_in_uint" = 1; then
28089
result="$res_hi$res_lo"U
28091
result="$res_hi$res_lo"UL
28094
result='~(size_t)0'
28097
echo "$as_me:$LINENO: result: $result" >&5
28098
echo "${ECHO_T}$result" >&6
28099
if test "$result" != yes; then
28101
cat >>confdefs.h <<_ACEOF
28102
#define SIZE_MAX $result
28110
for ac_header in stdint.h
28112
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28113
if eval "test \"\${$as_ac_Header+set}\" = set"; then
28114
echo "$as_me:$LINENO: checking for $ac_header" >&5
28115
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28116
if eval "test \"\${$as_ac_Header+set}\" = set"; then
28117
echo $ECHO_N "(cached) $ECHO_C" >&6
28119
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28120
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28122
# Is the header compilable?
28123
echo "$as_me:$LINENO: checking $ac_header usability" >&5
28124
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28125
cat >conftest.$ac_ext <<_ACEOF
28128
cat confdefs.h >>conftest.$ac_ext
28129
cat >>conftest.$ac_ext <<_ACEOF
28130
/* end confdefs.h. */
28131
$ac_includes_default
28132
#include <$ac_header>
28134
rm -f conftest.$ac_objext
28135
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28136
(eval $ac_compile) 2>conftest.er1
28138
grep -v '^ *+' conftest.er1 >conftest.err
28140
cat conftest.err >&5
28141
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142
(exit $ac_status); } &&
28143
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28144
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28145
(eval $ac_try) 2>&5
28147
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148
(exit $ac_status); }; } &&
28149
{ ac_try='test -s conftest.$ac_objext'
28150
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28151
(eval $ac_try) 2>&5
28153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154
(exit $ac_status); }; }; then
28155
ac_header_compiler=yes
28157
echo "$as_me: failed program was:" >&5
28158
sed 's/^/| /' conftest.$ac_ext >&5
28160
ac_header_compiler=no
28162
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28163
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28164
echo "${ECHO_T}$ac_header_compiler" >&6
28166
# Is the header present?
28167
echo "$as_me:$LINENO: checking $ac_header presence" >&5
28168
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28169
cat >conftest.$ac_ext <<_ACEOF
28172
cat confdefs.h >>conftest.$ac_ext
28173
cat >>conftest.$ac_ext <<_ACEOF
28174
/* end confdefs.h. */
28175
#include <$ac_header>
28177
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28178
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28180
grep -v '^ *+' conftest.er1 >conftest.err
28182
cat conftest.err >&5
28183
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184
(exit $ac_status); } >/dev/null; then
28185
if test -s conftest.err; then
28186
ac_cpp_err=$ac_c_preproc_warn_flag
28187
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28194
if test -z "$ac_cpp_err"; then
28195
ac_header_preproc=yes
28197
echo "$as_me: failed program was:" >&5
28198
sed 's/^/| /' conftest.$ac_ext >&5
28200
ac_header_preproc=no
28202
rm -f conftest.err conftest.$ac_ext
28203
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28204
echo "${ECHO_T}$ac_header_preproc" >&6
28206
# So? What about this header?
28207
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28209
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28210
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28211
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28212
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28213
ac_header_preproc=yes
28216
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28217
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28218
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28219
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28220
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28221
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28222
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28223
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28224
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28225
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28226
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28227
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28230
## ------------------------------------------ ##
28231
## Report this to the AC_PACKAGE_NAME lists. ##
28232
## ------------------------------------------ ##
28235
sed "s/^/$as_me: WARNING: /" >&2
28238
echo "$as_me:$LINENO: checking for $ac_header" >&5
28239
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28240
if eval "test \"\${$as_ac_Header+set}\" = set"; then
28241
echo $ECHO_N "(cached) $ECHO_C" >&6
28243
eval "$as_ac_Header=\$ac_header_preproc"
28245
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28246
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28249
if test `eval echo '${'$as_ac_Header'}'` = yes; then
28250
cat >>confdefs.h <<_ACEOF
28251
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28260
if test "X$prefix" = "XNONE"; then
28261
acl_final_prefix="$ac_default_prefix"
28263
acl_final_prefix="$prefix"
28265
if test "X$exec_prefix" = "XNONE"; then
28266
acl_final_exec_prefix='${prefix}'
28268
acl_final_exec_prefix="$exec_prefix"
28270
acl_save_prefix="$prefix"
28271
prefix="$acl_final_prefix"
28272
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
28273
prefix="$acl_save_prefix"
28276
echo "$as_me:$LINENO: checking for shared library run path origin" >&5
28277
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
28278
if test "${acl_cv_rpath+set}" = set; then
28279
echo $ECHO_N "(cached) $ECHO_C" >&6
28282
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
28283
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
28285
rm -f ./conftest.sh
28289
echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
28290
echo "${ECHO_T}$acl_cv_rpath" >&6
28292
libext="$acl_cv_libext"
28293
shlibext="$acl_cv_shlibext"
28294
hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
28295
hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
28296
hardcode_direct="$acl_cv_hardcode_direct"
28297
hardcode_minus_L="$acl_cv_hardcode_minus_L"
28298
# Check whether --enable-rpath or --disable-rpath was given.
28299
if test "${enable_rpath+set}" = set; then
28300
enableval="$enable_rpath"
28314
acl_save_prefix="$prefix"
28315
prefix="$acl_final_prefix"
28316
acl_save_exec_prefix="$exec_prefix"
28317
exec_prefix="$acl_final_exec_prefix"
28319
eval additional_includedir=\"$includedir\"
28320
eval additional_libdir=\"$libdir\"
28322
exec_prefix="$acl_save_exec_prefix"
28323
prefix="$acl_save_prefix"
28326
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
28327
if test "${with_libiconv_prefix+set}" = set; then
28328
withval="$with_libiconv_prefix"
28330
if test "X$withval" = "Xno"; then
28333
if test "X$withval" = "X"; then
28335
acl_save_prefix="$prefix"
28336
prefix="$acl_final_prefix"
28337
acl_save_exec_prefix="$exec_prefix"
28338
exec_prefix="$acl_final_exec_prefix"
28340
eval additional_includedir=\"$includedir\"
28341
eval additional_libdir=\"$libdir\"
28343
exec_prefix="$acl_save_exec_prefix"
28344
prefix="$acl_save_prefix"
28347
additional_includedir="$withval/include"
28348
additional_libdir="$withval/lib"
28358
names_already_handled=
28359
names_next_round='iconv '
28360
while test -n "$names_next_round"; do
28361
names_this_round="$names_next_round"
28363
for name in $names_this_round; do
28365
for n in $names_already_handled; do
28366
if test "$n" = "$name"; then
28367
already_handled=yes
28371
if test -z "$already_handled"; then
28372
names_already_handled="$names_already_handled $name"
28373
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
28374
eval value=\"\$HAVE_LIB$uppername\"
28375
if test -n "$value"; then
28376
if test "$value" = yes; then
28377
eval value=\"\$LIB$uppername\"
28378
test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
28379
eval value=\"\$LTLIB$uppername\"
28380
test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
28389
if test $use_additional = yes; then
28390
if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
28391
found_dir="$additional_libdir"
28392
found_so="$additional_libdir/lib$name.$shlibext"
28393
if test -f "$additional_libdir/lib$name.la"; then
28394
found_la="$additional_libdir/lib$name.la"
28397
if test -f "$additional_libdir/lib$name.$libext"; then
28398
found_dir="$additional_libdir"
28399
found_a="$additional_libdir/lib$name.$libext"
28400
if test -f "$additional_libdir/lib$name.la"; then
28401
found_la="$additional_libdir/lib$name.la"
28406
if test "X$found_dir" = "X"; then
28407
for x in $LDFLAGS $LTLIBICONV; do
28409
acl_save_prefix="$prefix"
28410
prefix="$acl_final_prefix"
28411
acl_save_exec_prefix="$exec_prefix"
28412
exec_prefix="$acl_final_exec_prefix"
28414
exec_prefix="$acl_save_exec_prefix"
28415
prefix="$acl_save_prefix"
28419
dir=`echo "X$x" | sed -e 's/^X-L//'`
28420
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
28422
found_so="$dir/lib$name.$shlibext"
28423
if test -f "$dir/lib$name.la"; then
28424
found_la="$dir/lib$name.la"
28427
if test -f "$dir/lib$name.$libext"; then
28429
found_a="$dir/lib$name.$libext"
28430
if test -f "$dir/lib$name.la"; then
28431
found_la="$dir/lib$name.la"
28437
if test "X$found_dir" != "X"; then
28442
if test "X$found_dir" != "X"; then
28443
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
28444
if test "X$found_so" != "X"; then
28445
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
28446
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
28449
for x in $ltrpathdirs; do
28450
if test "X$x" = "X$found_dir"; then
28455
if test -z "$haveit"; then
28456
ltrpathdirs="$ltrpathdirs $found_dir"
28458
if test "$hardcode_direct" = yes; then
28459
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
28461
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
28462
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
28464
for x in $rpathdirs; do
28465
if test "X$x" = "X$found_dir"; then
28470
if test -z "$haveit"; then
28471
rpathdirs="$rpathdirs $found_dir"
28475
for x in $LDFLAGS $LIBICONV; do
28477
acl_save_prefix="$prefix"
28478
prefix="$acl_final_prefix"
28479
acl_save_exec_prefix="$exec_prefix"
28480
exec_prefix="$acl_final_exec_prefix"
28482
exec_prefix="$acl_save_exec_prefix"
28483
prefix="$acl_save_prefix"
28485
if test "X$x" = "X-L$found_dir"; then
28490
if test -z "$haveit"; then
28491
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
28493
if test "$hardcode_minus_L" != no; then
28494
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
28496
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
28502
if test "X$found_a" != "X"; then
28503
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
28505
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
28508
additional_includedir=
28509
case "$found_dir" in
28511
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
28512
additional_includedir="$basedir/include"
28515
if test "X$additional_includedir" != "X"; then
28516
if test "X$additional_includedir" != "X/usr/include"; then
28518
if test "X$additional_includedir" = "X/usr/local/include"; then
28519
if test -n "$GCC"; then
28521
linux*) haveit=yes;;
28525
if test -z "$haveit"; then
28526
for x in $CPPFLAGS $INCICONV; do
28528
acl_save_prefix="$prefix"
28529
prefix="$acl_final_prefix"
28530
acl_save_exec_prefix="$exec_prefix"
28531
exec_prefix="$acl_final_exec_prefix"
28533
exec_prefix="$acl_save_exec_prefix"
28534
prefix="$acl_save_prefix"
28536
if test "X$x" = "X-I$additional_includedir"; then
28541
if test -z "$haveit"; then
28542
if test -d "$additional_includedir"; then
28543
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
28549
if test -n "$found_la"; then
28550
save_libdir="$libdir"
28551
case "$found_la" in
28552
*/* | *\\*) . "$found_la" ;;
28553
*) . "./$found_la" ;;
28555
libdir="$save_libdir"
28556
for dep in $dependency_libs; do
28559
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
28560
if test "X$additional_libdir" != "X/usr/lib"; then
28562
if test "X$additional_libdir" = "X/usr/local/lib"; then
28563
if test -n "$GCC"; then
28565
linux*) haveit=yes;;
28569
if test -z "$haveit"; then
28571
for x in $LDFLAGS $LIBICONV; do
28573
acl_save_prefix="$prefix"
28574
prefix="$acl_final_prefix"
28575
acl_save_exec_prefix="$exec_prefix"
28576
exec_prefix="$acl_final_exec_prefix"
28578
exec_prefix="$acl_save_exec_prefix"
28579
prefix="$acl_save_prefix"
28581
if test "X$x" = "X-L$additional_libdir"; then
28586
if test -z "$haveit"; then
28587
if test -d "$additional_libdir"; then
28588
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
28592
for x in $LDFLAGS $LTLIBICONV; do
28594
acl_save_prefix="$prefix"
28595
prefix="$acl_final_prefix"
28596
acl_save_exec_prefix="$exec_prefix"
28597
exec_prefix="$acl_final_exec_prefix"
28599
exec_prefix="$acl_save_exec_prefix"
28600
prefix="$acl_save_prefix"
28602
if test "X$x" = "X-L$additional_libdir"; then
28607
if test -z "$haveit"; then
28608
if test -d "$additional_libdir"; then
28609
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
28616
dir=`echo "X$dep" | sed -e 's/^X-R//'`
28617
if test "$enable_rpath" != no; then
28619
for x in $rpathdirs; do
28620
if test "X$x" = "X$dir"; then
28625
if test -z "$haveit"; then
28626
rpathdirs="$rpathdirs $dir"
28629
for x in $ltrpathdirs; do
28630
if test "X$x" = "X$dir"; then
28635
if test -z "$haveit"; then
28636
ltrpathdirs="$ltrpathdirs $dir"
28641
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
28644
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
28647
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
28648
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
28654
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
28655
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
28661
if test "X$rpathdirs" != "X"; then
28662
if test -n "$hardcode_libdir_separator"; then
28664
for found_dir in $rpathdirs; do
28665
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
28667
acl_save_libdir="$libdir"
28669
eval flag=\"$hardcode_libdir_flag_spec\"
28670
libdir="$acl_save_libdir"
28671
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
28673
for found_dir in $rpathdirs; do
28674
acl_save_libdir="$libdir"
28675
libdir="$found_dir"
28676
eval flag=\"$hardcode_libdir_flag_spec\"
28677
libdir="$acl_save_libdir"
28678
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
28682
if test "X$ltrpathdirs" != "X"; then
28683
for found_dir in $ltrpathdirs; do
28684
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
28695
echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
28696
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
28697
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
28698
echo $ECHO_N "(cached) $ECHO_C" >&6
28700
cat >conftest.$ac_ext <<_ACEOF
28703
cat confdefs.h >>conftest.$ac_ext
28704
cat >>conftest.$ac_ext <<_ACEOF
28705
/* end confdefs.h. */
28706
$ac_includes_default
28710
if ((ptrdiff_t *) 0)
28712
if (sizeof (ptrdiff_t))
28718
rm -f conftest.$ac_objext
28719
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28720
(eval $ac_compile) 2>conftest.er1
28722
grep -v '^ *+' conftest.er1 >conftest.err
28724
cat conftest.err >&5
28725
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726
(exit $ac_status); } &&
28727
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28728
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28729
(eval $ac_try) 2>&5
28731
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28732
(exit $ac_status); }; } &&
28733
{ ac_try='test -s conftest.$ac_objext'
28734
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28735
(eval $ac_try) 2>&5
28737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28738
(exit $ac_status); }; }; then
28739
ac_cv_type_ptrdiff_t=yes
28741
echo "$as_me: failed program was:" >&5
28742
sed 's/^/| /' conftest.$ac_ext >&5
28744
ac_cv_type_ptrdiff_t=no
28746
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28748
echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
28749
echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
28750
if test $ac_cv_type_ptrdiff_t = yes; then
28754
cat >>confdefs.h <<\_ACEOF
28755
#define ptrdiff_t long
28771
for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
28772
stdlib.h string.h unistd.h sys/param.h
28774
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28775
if eval "test \"\${$as_ac_Header+set}\" = set"; then
28776
echo "$as_me:$LINENO: checking for $ac_header" >&5
28777
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28778
if eval "test \"\${$as_ac_Header+set}\" = set"; then
28779
echo $ECHO_N "(cached) $ECHO_C" >&6
28781
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28782
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28784
# Is the header compilable?
28785
echo "$as_me:$LINENO: checking $ac_header usability" >&5
28786
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28787
cat >conftest.$ac_ext <<_ACEOF
28790
cat confdefs.h >>conftest.$ac_ext
28791
cat >>conftest.$ac_ext <<_ACEOF
28792
/* end confdefs.h. */
28793
$ac_includes_default
28794
#include <$ac_header>
28796
rm -f conftest.$ac_objext
28797
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28798
(eval $ac_compile) 2>conftest.er1
28800
grep -v '^ *+' conftest.er1 >conftest.err
28802
cat conftest.err >&5
28803
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28804
(exit $ac_status); } &&
28805
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28806
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28807
(eval $ac_try) 2>&5
28809
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810
(exit $ac_status); }; } &&
28811
{ ac_try='test -s conftest.$ac_objext'
28812
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28813
(eval $ac_try) 2>&5
28815
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28816
(exit $ac_status); }; }; then
28817
ac_header_compiler=yes
28819
echo "$as_me: failed program was:" >&5
28820
sed 's/^/| /' conftest.$ac_ext >&5
28822
ac_header_compiler=no
28824
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28825
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28826
echo "${ECHO_T}$ac_header_compiler" >&6
28828
# Is the header present?
28829
echo "$as_me:$LINENO: checking $ac_header presence" >&5
28830
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28831
cat >conftest.$ac_ext <<_ACEOF
28834
cat confdefs.h >>conftest.$ac_ext
28835
cat >>conftest.$ac_ext <<_ACEOF
28836
/* end confdefs.h. */
28837
#include <$ac_header>
28839
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28840
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28842
grep -v '^ *+' conftest.er1 >conftest.err
28844
cat conftest.err >&5
28845
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846
(exit $ac_status); } >/dev/null; then
28847
if test -s conftest.err; then
28848
ac_cpp_err=$ac_c_preproc_warn_flag
28849
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28856
if test -z "$ac_cpp_err"; then
28857
ac_header_preproc=yes
28859
echo "$as_me: failed program was:" >&5
28860
sed 's/^/| /' conftest.$ac_ext >&5
28862
ac_header_preproc=no
28864
rm -f conftest.err conftest.$ac_ext
28865
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28866
echo "${ECHO_T}$ac_header_preproc" >&6
28868
# So? What about this header?
28869
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28871
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28872
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28873
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28874
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28875
ac_header_preproc=yes
28878
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28879
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28880
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28881
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28882
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28883
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28884
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28885
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28886
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28887
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28888
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28889
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28892
## ------------------------------------------ ##
28893
## Report this to the AC_PACKAGE_NAME lists. ##
28894
## ------------------------------------------ ##
28897
sed "s/^/$as_me: WARNING: /" >&2
28900
echo "$as_me:$LINENO: checking for $ac_header" >&5
28901
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28902
if eval "test \"\${$as_ac_Header+set}\" = set"; then
28903
echo $ECHO_N "(cached) $ECHO_C" >&6
28905
eval "$as_ac_Header=\$ac_header_preproc"
28907
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28908
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28911
if test `eval echo '${'$as_ac_Header'}'` = yes; then
28912
cat >>confdefs.h <<_ACEOF
28913
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28943
for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
28944
mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
28945
strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
28948
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28949
echo "$as_me:$LINENO: checking for $ac_func" >&5
28950
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28951
if eval "test \"\${$as_ac_var+set}\" = set"; then
28952
echo $ECHO_N "(cached) $ECHO_C" >&6
28954
cat >conftest.$ac_ext <<_ACEOF
28957
cat confdefs.h >>conftest.$ac_ext
28958
cat >>conftest.$ac_ext <<_ACEOF
28959
/* end confdefs.h. */
28960
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28961
For example, HP-UX 11i <limits.h> declares gettimeofday. */
28962
#define $ac_func innocuous_$ac_func
28964
/* System header to define __stub macros and hopefully few prototypes,
28965
which can conflict with char $ac_func (); below.
28966
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28967
<limits.h> exists even on freestanding compilers. */
28970
# include <limits.h>
28972
# include <assert.h>
28977
/* Override any gcc2 internal prototype to avoid an error. */
28982
/* We use char because int might match the return type of a gcc2
28983
builtin and then its argument prototype would still apply. */
28985
/* The GNU C library defines this for functions which it implements
28986
to always fail with ENOSYS. Some functions are actually named
28987
something starting with __ and the normal name is an alias. */
28988
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28991
char (*f) () = $ac_func;
29000
return f != $ac_func;
29005
rm -f conftest.$ac_objext conftest$ac_exeext
29006
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29007
(eval $ac_link) 2>conftest.er1
29009
grep -v '^ *+' conftest.er1 >conftest.err
29011
cat conftest.err >&5
29012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29013
(exit $ac_status); } &&
29014
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29015
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29016
(eval $ac_try) 2>&5
29018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019
(exit $ac_status); }; } &&
29020
{ ac_try='test -s conftest$ac_exeext'
29021
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29022
(eval $ac_try) 2>&5
29024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025
(exit $ac_status); }; }; then
29026
eval "$as_ac_var=yes"
29028
echo "$as_me: failed program was:" >&5
29029
sed 's/^/| /' conftest.$ac_ext >&5
29031
eval "$as_ac_var=no"
29033
rm -f conftest.err conftest.$ac_objext \
29034
conftest$ac_exeext conftest.$ac_ext
29036
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29037
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29038
if test `eval echo '${'$as_ac_var'}'` = yes; then
29039
cat >>confdefs.h <<_ACEOF
29040
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29048
echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
29049
echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
29050
if test "${ac_cv_have_decl__snprintf+set}" = set; then
29051
echo $ECHO_N "(cached) $ECHO_C" >&6
29053
cat >conftest.$ac_ext <<_ACEOF
29056
cat confdefs.h >>conftest.$ac_ext
29057
cat >>conftest.$ac_ext <<_ACEOF
29058
/* end confdefs.h. */
29065
char *p = (char *) _snprintf;
29072
rm -f conftest.$ac_objext
29073
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29074
(eval $ac_compile) 2>conftest.er1
29076
grep -v '^ *+' conftest.er1 >conftest.err
29078
cat conftest.err >&5
29079
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080
(exit $ac_status); } &&
29081
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29082
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29083
(eval $ac_try) 2>&5
29085
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29086
(exit $ac_status); }; } &&
29087
{ ac_try='test -s conftest.$ac_objext'
29088
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29089
(eval $ac_try) 2>&5
29091
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29092
(exit $ac_status); }; }; then
29093
ac_cv_have_decl__snprintf=yes
29095
echo "$as_me: failed program was:" >&5
29096
sed 's/^/| /' conftest.$ac_ext >&5
29098
ac_cv_have_decl__snprintf=no
29100
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29102
echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
29103
echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
29104
if test $ac_cv_have_decl__snprintf = yes; then
29110
cat >>confdefs.h <<_ACEOF
29111
#define HAVE_DECL__SNPRINTF $gt_value
29116
echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
29117
echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
29118
if test "${ac_cv_have_decl__snwprintf+set}" = set; then
29119
echo $ECHO_N "(cached) $ECHO_C" >&6
29121
cat >conftest.$ac_ext <<_ACEOF
29124
cat confdefs.h >>conftest.$ac_ext
29125
cat >>conftest.$ac_ext <<_ACEOF
29126
/* end confdefs.h. */
29133
char *p = (char *) _snwprintf;
29140
rm -f conftest.$ac_objext
29141
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29142
(eval $ac_compile) 2>conftest.er1
29144
grep -v '^ *+' conftest.er1 >conftest.err
29146
cat conftest.err >&5
29147
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29148
(exit $ac_status); } &&
29149
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29150
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29151
(eval $ac_try) 2>&5
29153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154
(exit $ac_status); }; } &&
29155
{ ac_try='test -s conftest.$ac_objext'
29156
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29157
(eval $ac_try) 2>&5
29159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29160
(exit $ac_status); }; }; then
29161
ac_cv_have_decl__snwprintf=yes
29163
echo "$as_me: failed program was:" >&5
29164
sed 's/^/| /' conftest.$ac_ext >&5
29166
ac_cv_have_decl__snwprintf=no
29168
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29170
echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
29171
echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
29172
if test $ac_cv_have_decl__snwprintf = yes; then
29178
cat >>confdefs.h <<_ACEOF
29179
#define HAVE_DECL__SNWPRINTF $gt_value
29185
echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
29186
echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
29187
if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
29188
echo $ECHO_N "(cached) $ECHO_C" >&6
29190
cat >conftest.$ac_ext <<_ACEOF
29193
cat confdefs.h >>conftest.$ac_ext
29194
cat >>conftest.$ac_ext <<_ACEOF
29195
/* end confdefs.h. */
29201
#ifndef feof_unlocked
29202
char *p = (char *) feof_unlocked;
29209
rm -f conftest.$ac_objext
29210
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29211
(eval $ac_compile) 2>conftest.er1
29213
grep -v '^ *+' conftest.er1 >conftest.err
29215
cat conftest.err >&5
29216
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29217
(exit $ac_status); } &&
29218
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29219
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29220
(eval $ac_try) 2>&5
29222
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29223
(exit $ac_status); }; } &&
29224
{ ac_try='test -s conftest.$ac_objext'
29225
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29226
(eval $ac_try) 2>&5
29228
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229
(exit $ac_status); }; }; then
29230
ac_cv_have_decl_feof_unlocked=yes
29232
echo "$as_me: failed program was:" >&5
29233
sed 's/^/| /' conftest.$ac_ext >&5
29235
ac_cv_have_decl_feof_unlocked=no
29237
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29239
echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
29240
echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
29241
if test $ac_cv_have_decl_feof_unlocked = yes; then
29247
cat >>confdefs.h <<_ACEOF
29248
#define HAVE_DECL_FEOF_UNLOCKED $gt_value
29253
echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
29254
echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
29255
if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
29256
echo $ECHO_N "(cached) $ECHO_C" >&6
29258
cat >conftest.$ac_ext <<_ACEOF
29261
cat confdefs.h >>conftest.$ac_ext
29262
cat >>conftest.$ac_ext <<_ACEOF
29263
/* end confdefs.h. */
29269
#ifndef fgets_unlocked
29270
char *p = (char *) fgets_unlocked;
29277
rm -f conftest.$ac_objext
29278
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29279
(eval $ac_compile) 2>conftest.er1
29281
grep -v '^ *+' conftest.er1 >conftest.err
29283
cat conftest.err >&5
29284
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285
(exit $ac_status); } &&
29286
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29287
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29288
(eval $ac_try) 2>&5
29290
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29291
(exit $ac_status); }; } &&
29292
{ ac_try='test -s conftest.$ac_objext'
29293
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29294
(eval $ac_try) 2>&5
29296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297
(exit $ac_status); }; }; then
29298
ac_cv_have_decl_fgets_unlocked=yes
29300
echo "$as_me: failed program was:" >&5
29301
sed 's/^/| /' conftest.$ac_ext >&5
29303
ac_cv_have_decl_fgets_unlocked=no
29305
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29307
echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
29308
echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
29309
if test $ac_cv_have_decl_fgets_unlocked = yes; then
29315
cat >>confdefs.h <<_ACEOF
29316
#define HAVE_DECL_FGETS_UNLOCKED $gt_value
29321
echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
29322
echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
29323
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
29324
echo $ECHO_N "(cached) $ECHO_C" >&6
29326
cat >conftest.$ac_ext <<_ACEOF
29329
cat confdefs.h >>conftest.$ac_ext
29330
cat >>conftest.$ac_ext <<_ACEOF
29331
/* end confdefs.h. */
29337
#ifndef getc_unlocked
29338
char *p = (char *) getc_unlocked;
29345
rm -f conftest.$ac_objext
29346
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29347
(eval $ac_compile) 2>conftest.er1
29349
grep -v '^ *+' conftest.er1 >conftest.err
29351
cat conftest.err >&5
29352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29353
(exit $ac_status); } &&
29354
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29355
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29356
(eval $ac_try) 2>&5
29358
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29359
(exit $ac_status); }; } &&
29360
{ ac_try='test -s conftest.$ac_objext'
29361
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29362
(eval $ac_try) 2>&5
29364
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29365
(exit $ac_status); }; }; then
29366
ac_cv_have_decl_getc_unlocked=yes
29368
echo "$as_me: failed program was:" >&5
29369
sed 's/^/| /' conftest.$ac_ext >&5
29371
ac_cv_have_decl_getc_unlocked=no
29373
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29375
echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
29376
echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
29377
if test $ac_cv_have_decl_getc_unlocked = yes; then
29383
cat >>confdefs.h <<_ACEOF
29384
#define HAVE_DECL_GETC_UNLOCKED $gt_value
29389
case $gt_cv_func_printf_posix in
29390
*yes) HAVE_POSIX_PRINTF=1 ;;
29391
*) HAVE_POSIX_PRINTF=0 ;;
29394
if test "$ac_cv_func_asprintf" = yes; then
29400
if test "$ac_cv_func_snprintf" = yes; then
29406
if test "$ac_cv_func_wprintf" = yes; then
29418
am_save_CPPFLAGS="$CPPFLAGS"
29420
for element in $INCICONV; do
29422
for x in $CPPFLAGS; do
29424
acl_save_prefix="$prefix"
29425
prefix="$acl_final_prefix"
29426
acl_save_exec_prefix="$exec_prefix"
29427
exec_prefix="$acl_final_exec_prefix"
29429
exec_prefix="$acl_save_exec_prefix"
29430
prefix="$acl_save_prefix"
29432
if test "X$x" = "X$element"; then
29437
if test -z "$haveit"; then
29438
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
29443
echo "$as_me:$LINENO: checking for iconv" >&5
29444
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29445
if test "${am_cv_func_iconv+set}" = set; then
29446
echo $ECHO_N "(cached) $ECHO_C" >&6
29449
am_cv_func_iconv="no, consider installing GNU libiconv"
29451
cat >conftest.$ac_ext <<_ACEOF
29454
cat confdefs.h >>conftest.$ac_ext
29455
cat >>conftest.$ac_ext <<_ACEOF
29456
/* end confdefs.h. */
29457
#include <stdlib.h>
29462
iconv_t cd = iconv_open("","");
29463
iconv(cd,NULL,NULL,NULL,NULL);
29469
rm -f conftest.$ac_objext conftest$ac_exeext
29470
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29471
(eval $ac_link) 2>conftest.er1
29473
grep -v '^ *+' conftest.er1 >conftest.err
29475
cat conftest.err >&5
29476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29477
(exit $ac_status); } &&
29478
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29479
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29480
(eval $ac_try) 2>&5
29482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29483
(exit $ac_status); }; } &&
29484
{ ac_try='test -s conftest$ac_exeext'
29485
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29486
(eval $ac_try) 2>&5
29488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489
(exit $ac_status); }; }; then
29490
am_cv_func_iconv=yes
29492
echo "$as_me: failed program was:" >&5
29493
sed 's/^/| /' conftest.$ac_ext >&5
29496
rm -f conftest.err conftest.$ac_objext \
29497
conftest$ac_exeext conftest.$ac_ext
29498
if test "$am_cv_func_iconv" != yes; then
29499
am_save_LIBS="$LIBS"
29500
LIBS="$LIBS $LIBICONV"
29501
cat >conftest.$ac_ext <<_ACEOF
29504
cat confdefs.h >>conftest.$ac_ext
29505
cat >>conftest.$ac_ext <<_ACEOF
29506
/* end confdefs.h. */
29507
#include <stdlib.h>
29512
iconv_t cd = iconv_open("","");
29513
iconv(cd,NULL,NULL,NULL,NULL);
29519
rm -f conftest.$ac_objext conftest$ac_exeext
29520
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29521
(eval $ac_link) 2>conftest.er1
29523
grep -v '^ *+' conftest.er1 >conftest.err
29525
cat conftest.err >&5
29526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29527
(exit $ac_status); } &&
29528
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29529
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29530
(eval $ac_try) 2>&5
29532
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29533
(exit $ac_status); }; } &&
29534
{ ac_try='test -s conftest$ac_exeext'
29535
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29536
(eval $ac_try) 2>&5
29538
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29539
(exit $ac_status); }; }; then
29540
am_cv_lib_iconv=yes
29541
am_cv_func_iconv=yes
29543
echo "$as_me: failed program was:" >&5
29544
sed 's/^/| /' conftest.$ac_ext >&5
29547
rm -f conftest.err conftest.$ac_objext \
29548
conftest$ac_exeext conftest.$ac_ext
29549
LIBS="$am_save_LIBS"
29553
echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29554
echo "${ECHO_T}$am_cv_func_iconv" >&6
29555
if test "$am_cv_func_iconv" = yes; then
29557
cat >>confdefs.h <<\_ACEOF
29558
#define HAVE_ICONV 1
29562
if test "$am_cv_lib_iconv" = yes; then
29563
echo "$as_me:$LINENO: checking how to link with libiconv" >&5
29564
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
29565
echo "$as_me:$LINENO: result: $LIBICONV" >&5
29566
echo "${ECHO_T}$LIBICONV" >&6
29568
CPPFLAGS="$am_save_CPPFLAGS"
29575
if test "$am_cv_func_iconv" = yes; then
29576
echo "$as_me:$LINENO: checking for iconv declaration" >&5
29577
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
29578
if test "${am_cv_proto_iconv+set}" = set; then
29579
echo $ECHO_N "(cached) $ECHO_C" >&6
29582
cat >conftest.$ac_ext <<_ACEOF
29585
cat confdefs.h >>conftest.$ac_ext
29586
cat >>conftest.$ac_ext <<_ACEOF
29587
/* end confdefs.h. */
29589
#include <stdlib.h>
29595
#if defined(__STDC__) || defined(__cplusplus)
29596
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29609
rm -f conftest.$ac_objext
29610
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29611
(eval $ac_compile) 2>conftest.er1
29613
grep -v '^ *+' conftest.er1 >conftest.err
29615
cat conftest.err >&5
29616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617
(exit $ac_status); } &&
29618
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29619
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29620
(eval $ac_try) 2>&5
29622
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29623
(exit $ac_status); }; } &&
29624
{ ac_try='test -s conftest.$ac_objext'
29625
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29626
(eval $ac_try) 2>&5
29628
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29629
(exit $ac_status); }; }; then
29630
am_cv_proto_iconv_arg1=""
29632
echo "$as_me: failed program was:" >&5
29633
sed 's/^/| /' conftest.$ac_ext >&5
29635
am_cv_proto_iconv_arg1="const"
29637
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29638
am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
29641
am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
29642
echo "$as_me:$LINENO: result: ${ac_t:-
29643
}$am_cv_proto_iconv" >&5
29644
echo "${ECHO_T}${ac_t:-
29645
}$am_cv_proto_iconv" >&6
29647
cat >>confdefs.h <<_ACEOF
29648
#define ICONV_CONST $am_cv_proto_iconv_arg1
29654
echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
29655
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
29656
if test "${am_cv_langinfo_codeset+set}" = set; then
29657
echo $ECHO_N "(cached) $ECHO_C" >&6
29659
cat >conftest.$ac_ext <<_ACEOF
29662
cat confdefs.h >>conftest.$ac_ext
29663
cat >>conftest.$ac_ext <<_ACEOF
29664
/* end confdefs.h. */
29665
#include <langinfo.h>
29669
char* cs = nl_langinfo(CODESET);
29674
rm -f conftest.$ac_objext conftest$ac_exeext
29675
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29676
(eval $ac_link) 2>conftest.er1
29678
grep -v '^ *+' conftest.er1 >conftest.err
29680
cat conftest.err >&5
29681
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29682
(exit $ac_status); } &&
29683
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29684
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29685
(eval $ac_try) 2>&5
29687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29688
(exit $ac_status); }; } &&
29689
{ ac_try='test -s conftest$ac_exeext'
29690
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29691
(eval $ac_try) 2>&5
29693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694
(exit $ac_status); }; }; then
29695
am_cv_langinfo_codeset=yes
29697
echo "$as_me: failed program was:" >&5
29698
sed 's/^/| /' conftest.$ac_ext >&5
29700
am_cv_langinfo_codeset=no
29702
rm -f conftest.err conftest.$ac_objext \
29703
conftest$ac_exeext conftest.$ac_ext
29706
echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
29707
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
29708
if test $am_cv_langinfo_codeset = yes; then
29710
cat >>confdefs.h <<\_ACEOF
29711
#define HAVE_LANGINFO_CODESET 1
29716
if test $ac_cv_header_locale_h = yes; then
29718
echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
29719
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
29720
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
29721
echo $ECHO_N "(cached) $ECHO_C" >&6
29723
cat >conftest.$ac_ext <<_ACEOF
29726
cat confdefs.h >>conftest.$ac_ext
29727
cat >>conftest.$ac_ext <<_ACEOF
29728
/* end confdefs.h. */
29729
#include <locale.h>
29738
rm -f conftest.$ac_objext conftest$ac_exeext
29739
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29740
(eval $ac_link) 2>conftest.er1
29742
grep -v '^ *+' conftest.er1 >conftest.err
29744
cat conftest.err >&5
29745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29746
(exit $ac_status); } &&
29747
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29748
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29749
(eval $ac_try) 2>&5
29751
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29752
(exit $ac_status); }; } &&
29753
{ ac_try='test -s conftest$ac_exeext'
29754
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29755
(eval $ac_try) 2>&5
29757
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29758
(exit $ac_status); }; }; then
29759
am_cv_val_LC_MESSAGES=yes
29761
echo "$as_me: failed program was:" >&5
29762
sed 's/^/| /' conftest.$ac_ext >&5
29764
am_cv_val_LC_MESSAGES=no
29766
rm -f conftest.err conftest.$ac_objext \
29767
conftest$ac_exeext conftest.$ac_ext
29769
echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
29770
echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
29771
if test $am_cv_val_LC_MESSAGES = yes; then
29773
cat >>confdefs.h <<\_ACEOF
29774
#define HAVE_LC_MESSAGES 1
29781
for ac_prog in bison
29783
# Extract the first word of "$ac_prog", so it can be a program name with args.
29784
set dummy $ac_prog; ac_word=$2
29785
echo "$as_me:$LINENO: checking for $ac_word" >&5
29786
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29787
if test "${ac_cv_prog_INTLBISON+set}" = set; then
29788
echo $ECHO_N "(cached) $ECHO_C" >&6
29790
if test -n "$INTLBISON"; then
29791
ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
29793
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29794
for as_dir in $PATH
29797
test -z "$as_dir" && as_dir=.
29798
for ac_exec_ext in '' $ac_executable_extensions; do
29799
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29800
ac_cv_prog_INTLBISON="$ac_prog"
29801
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29809
INTLBISON=$ac_cv_prog_INTLBISON
29810
if test -n "$INTLBISON"; then
29811
echo "$as_me:$LINENO: result: $INTLBISON" >&5
29812
echo "${ECHO_T}$INTLBISON" >&6
29814
echo "$as_me:$LINENO: result: no" >&5
29815
echo "${ECHO_T}no" >&6
29818
test -n "$INTLBISON" && break
29821
if test -z "$INTLBISON"; then
29824
echo "$as_me:$LINENO: checking version of bison" >&5
29825
echo $ECHO_N "checking version of bison... $ECHO_C" >&6
29826
ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
29827
case $ac_prog_version in
29828
'') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
29829
1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
29830
ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
29831
*) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
29833
echo "$as_me:$LINENO: result: $ac_prog_version" >&5
29834
echo "${ECHO_T}$ac_prog_version" >&6
29836
if test $ac_verc_fail = yes; then
29855
echo "$as_me:$LINENO: checking whether NLS is requested" >&5
29856
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
29857
# Check whether --enable-nls or --disable-nls was given.
29858
if test "${enable_nls+set}" = set; then
29859
enableval="$enable_nls"
29864
echo "$as_me:$LINENO: result: $USE_NLS" >&5
29865
echo "${ECHO_T}$USE_NLS" >&6
29870
BUILD_INCLUDED_LIBINTL=no
29871
USE_INCLUDED_LIBINTL=no
29877
if test "$USE_NLS" = "yes"; then
29878
gt_use_preinstalled_gnugettext=no
29880
echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
29881
echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
29883
# Check whether --with-included-gettext or --without-included-gettext was given.
29884
if test "${with_included_gettext+set}" = set; then
29885
withval="$with_included_gettext"
29886
nls_cv_force_use_gnu_gettext=$withval
29888
nls_cv_force_use_gnu_gettext=no
29890
echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
29891
echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
29893
nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
29894
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
29901
echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
29902
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
29903
if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
29904
echo $ECHO_N "(cached) $ECHO_C" >&6
29906
cat >conftest.$ac_ext <<_ACEOF
29909
cat confdefs.h >>conftest.$ac_ext
29910
cat >>conftest.$ac_ext <<_ACEOF
29911
/* end confdefs.h. */
29912
#include <libintl.h>
29913
extern int _nl_msg_cat_cntr;
29914
extern int *_nl_domain_bindings;
29918
bindtextdomain ("", "");
29919
return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
29924
rm -f conftest.$ac_objext conftest$ac_exeext
29925
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29926
(eval $ac_link) 2>conftest.er1
29928
grep -v '^ *+' conftest.er1 >conftest.err
29930
cat conftest.err >&5
29931
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29932
(exit $ac_status); } &&
29933
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29934
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29935
(eval $ac_try) 2>&5
29937
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938
(exit $ac_status); }; } &&
29939
{ ac_try='test -s conftest$ac_exeext'
29940
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29941
(eval $ac_try) 2>&5
29943
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29944
(exit $ac_status); }; }; then
29945
gt_cv_func_gnugettext2_libc=yes
29947
echo "$as_me: failed program was:" >&5
29948
sed 's/^/| /' conftest.$ac_ext >&5
29950
gt_cv_func_gnugettext2_libc=no
29952
rm -f conftest.err conftest.$ac_objext \
29953
conftest$ac_exeext conftest.$ac_ext
29955
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
29956
echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
29958
if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
29964
acl_save_prefix="$prefix"
29965
prefix="$acl_final_prefix"
29966
acl_save_exec_prefix="$exec_prefix"
29967
exec_prefix="$acl_final_exec_prefix"
29969
eval additional_includedir=\"$includedir\"
29970
eval additional_libdir=\"$libdir\"
29972
exec_prefix="$acl_save_exec_prefix"
29973
prefix="$acl_save_prefix"
29976
# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
29977
if test "${with_libintl_prefix+set}" = set; then
29978
withval="$with_libintl_prefix"
29980
if test "X$withval" = "Xno"; then
29983
if test "X$withval" = "X"; then
29985
acl_save_prefix="$prefix"
29986
prefix="$acl_final_prefix"
29987
acl_save_exec_prefix="$exec_prefix"
29988
exec_prefix="$acl_final_exec_prefix"
29990
eval additional_includedir=\"$includedir\"
29991
eval additional_libdir=\"$libdir\"
29993
exec_prefix="$acl_save_exec_prefix"
29994
prefix="$acl_save_prefix"
29997
additional_includedir="$withval/include"
29998
additional_libdir="$withval/lib"
30008
names_already_handled=
30009
names_next_round='intl '
30010
while test -n "$names_next_round"; do
30011
names_this_round="$names_next_round"
30013
for name in $names_this_round; do
30015
for n in $names_already_handled; do
30016
if test "$n" = "$name"; then
30017
already_handled=yes
30021
if test -z "$already_handled"; then
30022
names_already_handled="$names_already_handled $name"
30023
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
30024
eval value=\"\$HAVE_LIB$uppername\"
30025
if test -n "$value"; then
30026
if test "$value" = yes; then
30027
eval value=\"\$LIB$uppername\"
30028
test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
30029
eval value=\"\$LTLIB$uppername\"
30030
test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
30039
if test $use_additional = yes; then
30040
if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
30041
found_dir="$additional_libdir"
30042
found_so="$additional_libdir/lib$name.$shlibext"
30043
if test -f "$additional_libdir/lib$name.la"; then
30044
found_la="$additional_libdir/lib$name.la"
30047
if test -f "$additional_libdir/lib$name.$libext"; then
30048
found_dir="$additional_libdir"
30049
found_a="$additional_libdir/lib$name.$libext"
30050
if test -f "$additional_libdir/lib$name.la"; then
30051
found_la="$additional_libdir/lib$name.la"
30056
if test "X$found_dir" = "X"; then
30057
for x in $LDFLAGS $LTLIBINTL; do
30059
acl_save_prefix="$prefix"
30060
prefix="$acl_final_prefix"
30061
acl_save_exec_prefix="$exec_prefix"
30062
exec_prefix="$acl_final_exec_prefix"
30064
exec_prefix="$acl_save_exec_prefix"
30065
prefix="$acl_save_prefix"
30069
dir=`echo "X$x" | sed -e 's/^X-L//'`
30070
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
30072
found_so="$dir/lib$name.$shlibext"
30073
if test -f "$dir/lib$name.la"; then
30074
found_la="$dir/lib$name.la"
30077
if test -f "$dir/lib$name.$libext"; then
30079
found_a="$dir/lib$name.$libext"
30080
if test -f "$dir/lib$name.la"; then
30081
found_la="$dir/lib$name.la"
30087
if test "X$found_dir" != "X"; then
30092
if test "X$found_dir" != "X"; then
30093
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
30094
if test "X$found_so" != "X"; then
30095
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
30096
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
30099
for x in $ltrpathdirs; do
30100
if test "X$x" = "X$found_dir"; then
30105
if test -z "$haveit"; then
30106
ltrpathdirs="$ltrpathdirs $found_dir"
30108
if test "$hardcode_direct" = yes; then
30109
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
30111
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
30112
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
30114
for x in $rpathdirs; do
30115
if test "X$x" = "X$found_dir"; then
30120
if test -z "$haveit"; then
30121
rpathdirs="$rpathdirs $found_dir"
30125
for x in $LDFLAGS $LIBINTL; do
30127
acl_save_prefix="$prefix"
30128
prefix="$acl_final_prefix"
30129
acl_save_exec_prefix="$exec_prefix"
30130
exec_prefix="$acl_final_exec_prefix"
30132
exec_prefix="$acl_save_exec_prefix"
30133
prefix="$acl_save_prefix"
30135
if test "X$x" = "X-L$found_dir"; then
30140
if test -z "$haveit"; then
30141
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
30143
if test "$hardcode_minus_L" != no; then
30144
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
30146
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
30152
if test "X$found_a" != "X"; then
30153
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
30155
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
30158
additional_includedir=
30159
case "$found_dir" in
30161
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
30162
additional_includedir="$basedir/include"
30165
if test "X$additional_includedir" != "X"; then
30166
if test "X$additional_includedir" != "X/usr/include"; then
30168
if test "X$additional_includedir" = "X/usr/local/include"; then
30169
if test -n "$GCC"; then
30171
linux*) haveit=yes;;
30175
if test -z "$haveit"; then
30176
for x in $CPPFLAGS $INCINTL; do
30178
acl_save_prefix="$prefix"
30179
prefix="$acl_final_prefix"
30180
acl_save_exec_prefix="$exec_prefix"
30181
exec_prefix="$acl_final_exec_prefix"
30183
exec_prefix="$acl_save_exec_prefix"
30184
prefix="$acl_save_prefix"
30186
if test "X$x" = "X-I$additional_includedir"; then
30191
if test -z "$haveit"; then
30192
if test -d "$additional_includedir"; then
30193
INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
30199
if test -n "$found_la"; then
30200
save_libdir="$libdir"
30201
case "$found_la" in
30202
*/* | *\\*) . "$found_la" ;;
30203
*) . "./$found_la" ;;
30205
libdir="$save_libdir"
30206
for dep in $dependency_libs; do
30209
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
30210
if test "X$additional_libdir" != "X/usr/lib"; then
30212
if test "X$additional_libdir" = "X/usr/local/lib"; then
30213
if test -n "$GCC"; then
30215
linux*) haveit=yes;;
30219
if test -z "$haveit"; then
30221
for x in $LDFLAGS $LIBINTL; do
30223
acl_save_prefix="$prefix"
30224
prefix="$acl_final_prefix"
30225
acl_save_exec_prefix="$exec_prefix"
30226
exec_prefix="$acl_final_exec_prefix"
30228
exec_prefix="$acl_save_exec_prefix"
30229
prefix="$acl_save_prefix"
30231
if test "X$x" = "X-L$additional_libdir"; then
30236
if test -z "$haveit"; then
30237
if test -d "$additional_libdir"; then
30238
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
30242
for x in $LDFLAGS $LTLIBINTL; do
30244
acl_save_prefix="$prefix"
30245
prefix="$acl_final_prefix"
30246
acl_save_exec_prefix="$exec_prefix"
30247
exec_prefix="$acl_final_exec_prefix"
30249
exec_prefix="$acl_save_exec_prefix"
30250
prefix="$acl_save_prefix"
30252
if test "X$x" = "X-L$additional_libdir"; then
30257
if test -z "$haveit"; then
30258
if test -d "$additional_libdir"; then
30259
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
30266
dir=`echo "X$dep" | sed -e 's/^X-R//'`
30267
if test "$enable_rpath" != no; then
30269
for x in $rpathdirs; do
30270
if test "X$x" = "X$dir"; then
30275
if test -z "$haveit"; then
30276
rpathdirs="$rpathdirs $dir"
30279
for x in $ltrpathdirs; do
30280
if test "X$x" = "X$dir"; then
30285
if test -z "$haveit"; then
30286
ltrpathdirs="$ltrpathdirs $dir"
30291
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
30294
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
30297
LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
30298
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
30304
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
30305
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
30311
if test "X$rpathdirs" != "X"; then
30312
if test -n "$hardcode_libdir_separator"; then
30314
for found_dir in $rpathdirs; do
30315
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
30317
acl_save_libdir="$libdir"
30319
eval flag=\"$hardcode_libdir_flag_spec\"
30320
libdir="$acl_save_libdir"
30321
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
30323
for found_dir in $rpathdirs; do
30324
acl_save_libdir="$libdir"
30325
libdir="$found_dir"
30326
eval flag=\"$hardcode_libdir_flag_spec\"
30327
libdir="$acl_save_libdir"
30328
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
30332
if test "X$ltrpathdirs" != "X"; then
30333
for found_dir in $ltrpathdirs; do
30334
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
30338
echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
30339
echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
30340
if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
30341
echo $ECHO_N "(cached) $ECHO_C" >&6
30343
gt_save_CPPFLAGS="$CPPFLAGS"
30344
CPPFLAGS="$CPPFLAGS $INCINTL"
30345
gt_save_LIBS="$LIBS"
30346
LIBS="$LIBS $LIBINTL"
30347
cat >conftest.$ac_ext <<_ACEOF
30350
cat confdefs.h >>conftest.$ac_ext
30351
cat >>conftest.$ac_ext <<_ACEOF
30352
/* end confdefs.h. */
30353
#include <libintl.h>
30354
extern int _nl_msg_cat_cntr;
30359
const char *_nl_expand_alias ();
30363
bindtextdomain ("", "");
30364
return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
30369
rm -f conftest.$ac_objext conftest$ac_exeext
30370
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30371
(eval $ac_link) 2>conftest.er1
30373
grep -v '^ *+' conftest.er1 >conftest.err
30375
cat conftest.err >&5
30376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30377
(exit $ac_status); } &&
30378
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30379
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30380
(eval $ac_try) 2>&5
30382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30383
(exit $ac_status); }; } &&
30384
{ ac_try='test -s conftest$ac_exeext'
30385
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30386
(eval $ac_try) 2>&5
30388
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30389
(exit $ac_status); }; }; then
30390
gt_cv_func_gnugettext2_libintl=yes
30392
echo "$as_me: failed program was:" >&5
30393
sed 's/^/| /' conftest.$ac_ext >&5
30395
gt_cv_func_gnugettext2_libintl=no
30397
rm -f conftest.err conftest.$ac_objext \
30398
conftest$ac_exeext conftest.$ac_ext
30399
if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
30400
LIBS="$LIBS $LIBICONV"
30401
cat >conftest.$ac_ext <<_ACEOF
30404
cat confdefs.h >>conftest.$ac_ext
30405
cat >>conftest.$ac_ext <<_ACEOF
30406
/* end confdefs.h. */
30407
#include <libintl.h>
30408
extern int _nl_msg_cat_cntr;
30413
const char *_nl_expand_alias ();
30417
bindtextdomain ("", "");
30418
return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
30423
rm -f conftest.$ac_objext conftest$ac_exeext
30424
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30425
(eval $ac_link) 2>conftest.er1
30427
grep -v '^ *+' conftest.er1 >conftest.err
30429
cat conftest.err >&5
30430
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30431
(exit $ac_status); } &&
30432
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30433
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30434
(eval $ac_try) 2>&5
30436
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30437
(exit $ac_status); }; } &&
30438
{ ac_try='test -s conftest$ac_exeext'
30439
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30440
(eval $ac_try) 2>&5
30442
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30443
(exit $ac_status); }; }; then
30444
LIBINTL="$LIBINTL $LIBICONV"
30445
LTLIBINTL="$LTLIBINTL $LTLIBICONV"
30446
gt_cv_func_gnugettext2_libintl=yes
30449
echo "$as_me: failed program was:" >&5
30450
sed 's/^/| /' conftest.$ac_ext >&5
30453
rm -f conftest.err conftest.$ac_objext \
30454
conftest$ac_exeext conftest.$ac_ext
30456
CPPFLAGS="$gt_save_CPPFLAGS"
30457
LIBS="$gt_save_LIBS"
30459
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
30460
echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
30463
if test "$gt_cv_func_gnugettext2_libc" = "yes" \
30464
|| { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
30465
&& test "$PACKAGE" != gettext-runtime \
30466
&& test "$PACKAGE" != gettext-tools; }; then
30467
gt_use_preinstalled_gnugettext=yes
30475
if test "$gt_use_preinstalled_gnugettext" != "yes"; then
30476
nls_cv_use_gnu_gettext=yes
30480
if test "$nls_cv_use_gnu_gettext" = "yes"; then
30481
BUILD_INCLUDED_LIBINTL=yes
30482
USE_INCLUDED_LIBINTL=yes
30483
LIBINTL="\${top_builddir}/intl/libintl.la $LIBICONV"
30484
LTLIBINTL="\${top_builddir}/intl/libintl.la $LTLIBICONV"
30485
LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
30488
if test "$gt_use_preinstalled_gnugettext" = "yes" \
30489
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
30494
if test "$gt_use_preinstalled_gnugettext" = "yes" \
30495
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
30497
cat >>confdefs.h <<\_ACEOF
30498
#define ENABLE_NLS 1
30506
echo "$as_me:$LINENO: checking whether to use NLS" >&5
30507
echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
30508
echo "$as_me:$LINENO: result: $USE_NLS" >&5
30509
echo "${ECHO_T}$USE_NLS" >&6
30510
if test "$USE_NLS" = "yes"; then
30511
echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
30512
echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
30513
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
30514
if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
30515
gt_source="external libintl"
30520
gt_source="included intl directory"
30522
echo "$as_me:$LINENO: result: $gt_source" >&5
30523
echo "${ECHO_T}$gt_source" >&6
30526
if test "$USE_NLS" = "yes"; then
30528
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
30529
if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
30530
echo "$as_me:$LINENO: checking how to link with libintl" >&5
30531
echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
30532
echo "$as_me:$LINENO: result: $LIBINTL" >&5
30533
echo "${ECHO_T}$LIBINTL" >&6
30535
for element in $INCINTL; do
30537
for x in $CPPFLAGS; do
30539
acl_save_prefix="$prefix"
30540
prefix="$acl_final_prefix"
30541
acl_save_exec_prefix="$exec_prefix"
30542
exec_prefix="$acl_final_exec_prefix"
30544
exec_prefix="$acl_save_exec_prefix"
30545
prefix="$acl_save_prefix"
30547
if test "X$x" = "X$element"; then
30552
if test -z "$haveit"; then
30553
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
30560
cat >>confdefs.h <<\_ACEOF
30561
#define HAVE_GETTEXT 1
30565
cat >>confdefs.h <<\_ACEOF
30566
#define HAVE_DCGETTEXT 1
30575
if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
30576
BUILD_INCLUDED_LIBINTL=yes
30583
nls_cv_header_intl=
30584
nls_cv_header_libgt=
30595
if test "$USE_INCLUDED_LIBINTL" = yes; then
30596
INTLOBJS="\$(GETTOBJS)"
30600
INTL_LIBTOOL_SUFFIX_PREFIX=l
30604
INTLLIBS="$LIBINTL"
30615
ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
30616
# Extract the first word of "perl", so it can be a program name with args.
30617
set dummy perl; ac_word=$2
30618
echo "$as_me:$LINENO: checking for $ac_word" >&5
30619
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30620
if test "${ac_cv_path_PERL+set}" = set; then
30621
echo $ECHO_N "(cached) $ECHO_C" >&6
30625
ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
30628
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30629
for as_dir in $PATH
30632
test -z "$as_dir" && as_dir=.
30633
for ac_exec_ext in '' $ac_executable_extensions; do
30634
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30635
ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
30636
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30642
test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl"
30646
PERL=$ac_cv_path_PERL
30648
if test -n "$PERL"; then
30649
echo "$as_me:$LINENO: result: $PERL" >&5
30650
echo "${ECHO_T}$PERL" >&6
30652
echo "$as_me:$LINENO: result: no" >&5
30653
echo "${ECHO_T}no" >&6
30657
CROSS_COMPILING=$cross_compiling
30661
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
30663
# Extract the first word of "$ac_prog", so it can be a program name with args.
30664
set dummy $ac_prog; ac_word=$2
30665
echo "$as_me:$LINENO: checking for $ac_word" >&5
30666
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30667
if test "${ac_cv_prog_CXX+set}" = set; then
30668
echo $ECHO_N "(cached) $ECHO_C" >&6
30670
if test -n "$CXX"; then
30671
ac_cv_prog_CXX="$CXX" # Let the user override the test.
30673
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30674
for as_dir in $PATH
30677
test -z "$as_dir" && as_dir=.
30678
for ac_exec_ext in '' $ac_executable_extensions; do
30679
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30680
ac_cv_prog_CXX="$ac_prog"
30681
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30689
CXX=$ac_cv_prog_CXX
30690
if test -n "$CXX"; then
30691
echo "$as_me:$LINENO: result: $CXX" >&5
30692
echo "${ECHO_T}$CXX" >&6
30694
echo "$as_me:$LINENO: result: no" >&5
30695
echo "${ECHO_T}no" >&6
30698
test -n "$CXX" && break
30700
test -n "$CXX" || CXX=":"
30702
if test "$CXX" != ":"; then
30703
echo "$as_me:$LINENO: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
30704
echo $ECHO_N "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... $ECHO_C" >&6
30706
ac_cpp='$CXXCPP $CPPFLAGS'
30707
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30708
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30709
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30713
echo 'int main () { return 0; }' > conftest.$ac_ext
30714
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30715
(eval $ac_link) 2>&5
30717
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30718
(exit $ac_status); } && test -s conftest$ac_exeext; then
30719
ac_cv_prog_cxx_works=yes
30720
if (./conftest; exit) 2>/dev/null; then
30721
ac_cv_prog_cxx_cross=no
30723
ac_cv_prog_cxx_cross=yes
30726
ac_cv_prog_cxx_works=no
30730
ac_cpp='$CPP $CPPFLAGS'
30731
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30732
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30733
ac_compiler_gnu=$ac_cv_c_compiler_gnu
30735
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_works" >&5
30736
echo "${ECHO_T}$ac_cv_prog_cxx_works" >&6
30737
if test $ac_cv_prog_cxx_works = no; then
30740
echo "$as_me:$LINENO: checking whether the C++ compiler supports namespaces" >&5
30741
echo $ECHO_N "checking whether the C++ compiler supports namespaces... $ECHO_C" >&6
30743
ac_cpp='$CXXCPP $CPPFLAGS'
30744
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30745
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30746
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30748
cat <<EOF > conftest.$ac_ext
30749
#include <iostream>
30750
namespace test { using namespace std; }
30752
int main () { return 0; }
30754
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30755
(eval $ac_link) 2>&5
30757
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758
(exit $ac_status); } && test -s conftest$ac_exeext; then
30759
gt_cv_prog_cxx_namespaces=yes
30761
gt_cv_prog_cxx_namespaces=no
30765
ac_cpp='$CPP $CPPFLAGS'
30766
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30767
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30768
ac_compiler_gnu=$ac_cv_c_compiler_gnu
30770
echo "$as_me:$LINENO: result: $gt_cv_prog_cxx_namespaces" >&5
30771
echo "${ECHO_T}$gt_cv_prog_cxx_namespaces" >&6
30772
if test $gt_cv_prog_cxx_namespaces = no; then
30779
# Check whether --enable-libasprintf or --disable-libasprintf was given.
30780
if test "${enable_libasprintf+set}" = set; then
30781
enableval="$enable_libasprintf"
30782
if test "$enableval" != no; then
30783
SUBDIR_libasprintf=libasprintf
30785
SUBDIR_libasprintf=
30789
SUBDIR_libasprintf=libasprintf
30791
if test "$CXX" = ":"; then
30792
SUBDIR_libasprintf=
30798
subdirs="$subdirs libasprintf"
30801
ac_config_files="$ac_config_files Makefile"
30804
ac_config_files="$ac_config_files doc/Makefile"
30807
ac_config_files="$ac_config_files intl/Makefile"
30810
ac_config_files="$ac_config_files intl-java/Makefile"
30813
ac_config_files="$ac_config_files intl-csharp/Makefile"
30816
ac_config_files="$ac_config_files lib/Makefile"
30818
ac_config_files="$ac_config_files lib/javacomp.sh:../gettext-tools/lib/javacomp.sh.in"
30820
ac_config_files="$ac_config_files lib/csharpcomp.sh:../gettext-tools/lib/csharpcomp.sh.in"
30823
ac_config_files="$ac_config_files src/Makefile"
30826
ac_config_files="$ac_config_files po/Makefile.in"
30829
ac_config_files="$ac_config_files man/Makefile"
30831
ac_config_files="$ac_config_files man/x-to-1"
30834
ac_config_files="$ac_config_files m4/Makefile"
30837
cat >confcache <<\_ACEOF
30838
# This file is a shell script that caches the results of configure
30839
# tests run on this system so they can be shared between configure
30840
# scripts and configure runs, see configure's option --config-cache.
30841
# It is not useful on other systems. If it contains results you don't
30842
# want to keep, you may remove or edit it.
30844
# config.status only pays attention to the cache file if you give it
30845
# the --recheck option to rerun configure.
30847
# `ac_cv_env_foo' variables (set or unset) will be overridden when
30848
# loading this file, other *unset* `ac_cv_foo' will be assigned the
30849
# following values.
30853
# The following way of writing the cache mishandles newlines in values,
30854
# but we know of no workaround that is simple, portable, and efficient.
30855
# So, don't put newlines in cache variables' values.
30856
# Ultrix sh set writes to stderr and can't be redirected directly,
30857
# and sets the high bit in the cache file unless we assign to the vars.
30860
case `(ac_space=' '; set | grep ac_space) 2>&1` in
30862
# `set' does not quote correctly, so add quotes (double-quote
30863
# substitution turns \\\\ into \\, and sed turns \\ into \).
30866
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30869
# `set' quotes correctly as required by POSIX, so do not add quotes.
30871
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30878
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30880
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30882
if diff $cache_file confcache >/dev/null 2>&1; then :; else
30883
if test -w $cache_file; then
30884
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30885
cat confcache >$cache_file
30887
echo "not updating unwritable cache $cache_file"
30892
test "x$prefix" = xNONE && prefix=$ac_default_prefix
30893
# Let make expand exec_prefix.
30894
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30896
# VPATH may cause trouble with some makes, so we remove $(srcdir),
30897
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30898
# trailing colons and then remove the whole line if VPATH becomes empty
30899
# (actually we leave an empty line to preserve line numbers).
30900
if test "x$srcdir" = x.; then
30901
ac_vpsub='/^[ ]*VPATH[ ]*=/{
30902
s/:*\$(srcdir):*/:/;
30903
s/:*\${srcdir}:*/:/;
30905
s/^\([^=]*=[ ]*\):*/\1/;
30911
DEFS=-DHAVE_CONFIG_H
30915
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30916
# 1. Remove the extension, and $U if already installed.
30917
ac_i=`echo "$ac_i" |
30918
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30920
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30921
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30923
LIBOBJS=$ac_libobjs
30925
LTLIBOBJS=$ac_ltlibobjs
30928
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30929
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30930
Usually this means the macro was only invoked conditionally." >&5
30931
echo "$as_me: error: conditional \"AMDEP\" was never defined.
30932
Usually this means the macro was only invoked conditionally." >&2;}
30933
{ (exit 1); exit 1; }; }
30935
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30936
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30937
Usually this means the macro was only invoked conditionally." >&5
30938
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30939
Usually this means the macro was only invoked conditionally." >&2;}
30940
{ (exit 1); exit 1; }; }
30942
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30943
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30944
Usually this means the macro was only invoked conditionally." >&5
30945
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30946
Usually this means the macro was only invoked conditionally." >&2;}
30947
{ (exit 1); exit 1; }; }
30949
if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then
30950
{ { echo "$as_me:$LINENO: error: conditional \"RELOCATABLE_VIA_LD\" was never defined.
30951
Usually this means the macro was only invoked conditionally." >&5
30952
echo "$as_me: error: conditional \"RELOCATABLE_VIA_LD\" was never defined.
30953
Usually this means the macro was only invoked conditionally." >&2;}
30954
{ (exit 1); exit 1; }; }
30957
: ${CONFIG_STATUS=./config.status}
30958
ac_clean_files_save=$ac_clean_files
30959
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30960
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30961
echo "$as_me: creating $CONFIG_STATUS" >&6;}
30962
cat >$CONFIG_STATUS <<_ACEOF
30964
# Generated by $as_me.
30965
# Run this file to recreate the current configuration.
30966
# Compiler output produced by configure, useful for debugging
30967
# configure, is in config.log if it exists.
30970
ac_cs_recheck=false
30972
SHELL=\${CONFIG_SHELL-$SHELL}
30975
cat >>$CONFIG_STATUS <<\_ACEOF
30976
## --------------------- ##
30977
## M4sh Initialization. ##
30978
## --------------------- ##
30980
# Be Bourne compatible
30981
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30984
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30985
# is contrary to our usage. Disable this feature.
30986
alias -g '${1+"$@"}'='"$@"'
30987
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30990
DUALCASE=1; export DUALCASE # for MKS sh
30992
# Support unset when possible.
30993
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31000
# Work around bugs in pre-3.0 UWIN ksh.
31001
$as_unset ENV MAIL MAILPATH
31008
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31009
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31010
LC_TELEPHONE LC_TIME
31012
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31013
eval $as_var=C; export $as_var
31019
# Required to use basename.
31020
if expr a : '\(a\)' >/dev/null 2>&1; then
31026
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31027
as_basename=basename
31033
# Name of the executable.
31034
as_me=`$as_basename "$0" ||
31035
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31036
X"$0" : 'X\(//\)$' \| \
31037
X"$0" : 'X\(/\)$' \| \
31038
. : '\(.\)' 2>/dev/null ||
31040
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31041
/^X\/\(\/\/\)$/{ s//\1/; q; }
31042
/^X\/\(\/\).*/{ s//\1/; q; }
31046
# PATH needs CR, and LINENO needs CR and PATH.
31047
# Avoid depending upon Character Ranges.
31048
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31049
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31050
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31051
as_cr_digits='0123456789'
31052
as_cr_alnum=$as_cr_Letters$as_cr_digits
31054
# The user is always right.
31055
if test "${PATH_SEPARATOR+set}" != set; then
31056
echo "#! /bin/sh" >conf$$.sh
31057
echo "exit 0" >>conf$$.sh
31059
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31068
as_lineno_1=$LINENO
31069
as_lineno_2=$LINENO
31070
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31071
test "x$as_lineno_1" != "x$as_lineno_2" &&
31072
test "x$as_lineno_3" = "x$as_lineno_2" || {
31073
# Find who we are. Look in the path if we contain no path at all
31076
*[\\/]* ) as_myself=$0 ;;
31077
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31078
for as_dir in $PATH
31081
test -z "$as_dir" && as_dir=.
31082
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31087
# We did not find ourselves, most probably we were run as `sh COMMAND'
31088
# in which case we are not to be found in the path.
31089
if test "x$as_myself" = x; then
31092
if test ! -f "$as_myself"; then
31093
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31094
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31095
{ (exit 1); exit 1; }; }
31097
case $CONFIG_SHELL in
31099
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31100
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31103
test -z "$as_dir" && as_dir=.
31104
for as_base in sh bash ksh sh5; do
31107
if ("$as_dir/$as_base" -c '
31108
as_lineno_1=$LINENO
31109
as_lineno_2=$LINENO
31110
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31111
test "x$as_lineno_1" != "x$as_lineno_2" &&
31112
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
31113
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31114
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31115
CONFIG_SHELL=$as_dir/$as_base
31116
export CONFIG_SHELL
31117
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31125
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31126
# uniformly replaced by the line number. The first 'sed' inserts a
31127
# line-number line before each line; the second 'sed' does the real
31128
# work. The second script uses 'N' to pair each line-number line
31129
# with the numbered line, and appends trailing '-' during
31130
# substitution so that $LINENO is not a special case at line end.
31131
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31132
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
31133
sed '=' <$as_myself |
31138
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31141
s,^['$as_cr_digits']*\n,,
31142
' >$as_me.lineno &&
31143
chmod +x $as_me.lineno ||
31144
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31145
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31146
{ (exit 1); exit 1; }; }
31148
# Don't try to exec as it changes $[0], causing all sort of problems
31149
# (the dirname of $[0] is not the place where we might find the
31150
# original and so on. Autoconf is especially sensible to this).
31152
# Exit status is that of the last command.
31157
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31158
*c*,-n*) ECHO_N= ECHO_C='
31160
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31161
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
31164
if expr a : '\(a\)' >/dev/null 2>&1; then
31170
rm -f conf$$ conf$$.exe conf$$.file
31172
if ln -s conf$$.file conf$$ 2>/dev/null; then
31173
# We could just check for DJGPP; but this test a) works b) is more generic
31174
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31175
if test -f conf$$.exe; then
31176
# Don't use ln at all; we don't have any links
31181
elif ln conf$$.file conf$$ 2>/dev/null; then
31186
rm -f conf$$ conf$$.exe conf$$.file
31188
if mkdir -p . 2>/dev/null; then
31191
test -d ./-p && rmdir ./-p
31195
as_executable_p="test -f"
31197
# Sed expression to map a string onto a valid CPP name.
31198
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31200
# Sed expression to map a string onto a valid variable name.
31201
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31205
# We need space, tab and new line, in precisely that order.
31215
# Open the log real soon, to keep \$[0] and so on meaningful, and to
31216
# report actual input values of CONFIG_FILES etc. instead of their
31217
# values after options handling. Logging --version etc. is OK.
31221
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31222
## Running $as_me. ##
31227
This file was extended by $as_me, which was
31228
generated by GNU Autoconf 2.59. Invocation command line was
31230
CONFIG_FILES = $CONFIG_FILES
31231
CONFIG_HEADERS = $CONFIG_HEADERS
31232
CONFIG_LINKS = $CONFIG_LINKS
31233
CONFIG_COMMANDS = $CONFIG_COMMANDS
31237
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31241
# Files that config.status was made for.
31242
if test -n "$ac_config_files"; then
31243
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31246
if test -n "$ac_config_headers"; then
31247
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31250
if test -n "$ac_config_links"; then
31251
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31254
if test -n "$ac_config_commands"; then
31255
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31258
cat >>$CONFIG_STATUS <<\_ACEOF
31261
\`$as_me' instantiates files from templates according to the
31262
current configuration.
31264
Usage: $0 [OPTIONS] [FILE]...
31266
-h, --help print this help, then exit
31267
-V, --version print version number, then exit
31268
-q, --quiet do not print progress messages
31269
-d, --debug don't remove temporary files
31270
--recheck update $as_me by reconfiguring in the same conditions
31271
--file=FILE[:TEMPLATE]
31272
instantiate the configuration file FILE
31273
--header=FILE[:TEMPLATE]
31274
instantiate the configuration header FILE
31276
Configuration files:
31279
Configuration headers:
31282
Configuration commands:
31285
Report bugs to <bug-autoconf@gnu.org>."
31288
cat >>$CONFIG_STATUS <<_ACEOF
31291
configured by $0, generated by GNU Autoconf 2.59,
31292
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31294
Copyright (C) 2003 Free Software Foundation, Inc.
31295
This config.status script is free software; the Free Software Foundation
31296
gives unlimited permission to copy, distribute and modify it."
31301
cat >>$CONFIG_STATUS <<\_ACEOF
31302
# If no file are specified by the user, then we need to provide default
31303
# value. By we need to know if files were specified by the user.
31309
ac_option=`expr "x$1" : 'x\([^=]*\)='`
31310
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31318
*) # This is not an option, so the user has probably given explicit
31321
ac_need_defaults=false;;
31325
# Handling of the options.
31327
cat >>$CONFIG_STATUS <<\_ACEOF
31328
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31330
--version | --vers* | -V )
31331
echo "$ac_cs_version"; exit 0 ;;
31333
# Conflict between --help and --header
31334
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
31335
Try \`$0 --help' for more information." >&5
31336
echo "$as_me: error: ambiguous option: $1
31337
Try \`$0 --help' for more information." >&2;}
31338
{ (exit 1); exit 1; }; };;
31339
--help | --hel | -h )
31340
echo "$ac_cs_usage"; exit 0 ;;
31341
--debug | --d* | -d )
31343
--file | --fil | --fi | --f )
31345
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31346
ac_need_defaults=false;;
31347
--header | --heade | --head | --hea )
31349
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31350
ac_need_defaults=false;;
31351
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
31352
| -silent | --silent | --silen | --sile | --sil | --si | --s)
31355
# This is an error.
31356
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31357
Try \`$0 --help' for more information." >&5
31358
echo "$as_me: error: unrecognized option: $1
31359
Try \`$0 --help' for more information." >&2;}
31360
{ (exit 1); exit 1; }; } ;;
31362
*) ac_config_targets="$ac_config_targets $1" ;;
31368
ac_configure_extra_args=
31370
if $ac_cs_silent; then
31372
ac_configure_extra_args="$ac_configure_extra_args --silent"
31376
cat >>$CONFIG_STATUS <<_ACEOF
31377
if \$ac_cs_recheck; then
31378
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31379
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31384
cat >>$CONFIG_STATUS <<_ACEOF
31386
# INIT-COMMANDS section.
31389
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31390
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
31391
# POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31393
eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31394
# Capture the value of LINGUAS because we need it to compute CATALOGS.
31395
LINGUAS="${LINGUAS-%UNSET%}"
31402
cat >>$CONFIG_STATUS <<\_ACEOF
31403
for ac_config_target in $ac_config_targets
31405
case "$ac_config_target" in
31406
# Handling of arguments.
31407
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31408
"doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
31409
"intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
31410
"intl-java/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl-java/Makefile" ;;
31411
"intl-csharp/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl-csharp/Makefile" ;;
31412
"lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
31413
"lib/javacomp.sh" ) CONFIG_FILES="$CONFIG_FILES lib/javacomp.sh:../gettext-tools/lib/javacomp.sh.in" ;;
31414
"lib/csharpcomp.sh" ) CONFIG_FILES="$CONFIG_FILES lib/csharpcomp.sh:../gettext-tools/lib/csharpcomp.sh.in" ;;
31415
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31416
"po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31417
"man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
31418
"man/x-to-1" ) CONFIG_FILES="$CONFIG_FILES man/x-to-1" ;;
31419
"m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
31420
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
31421
"default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31422
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
31423
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31424
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31425
{ (exit 1); exit 1; }; };;
31429
# If the user did not use the arguments to specify the items to instantiate,
31430
# then the envvar interface is used. Set only those that are not.
31431
# We use the long form for the default assignment because of an extremely
31432
# bizarre bug on SunOS 4.1.3.
31433
if $ac_need_defaults; then
31434
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31435
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31436
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31439
# Have a temporary directory for convenience. Make it in the build tree
31440
# simply because there is no reason to put it here, and in addition,
31441
# creating and moving files from /tmp can sometimes cause problems.
31442
# Create a temporary directory, and hook for its removal unless debugging.
31445
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31446
trap '{ (exit 1); exit 1; }' 1 2 13 15
31449
# Create a (secure) tmp directory for tmp files.
31452
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31453
test -n "$tmp" && test -d "$tmp"
31456
tmp=./confstat$$-$RANDOM
31457
(umask 077 && mkdir $tmp)
31460
echo "$me: cannot create a temporary directory in ." >&2
31461
{ (exit 1); exit 1; }
31466
cat >>$CONFIG_STATUS <<_ACEOF
31469
# CONFIG_FILES section.
31472
# No need to generate the scripts if there are no CONFIG_FILES.
31473
# This happens for instance when ./config.status config.h
31474
if test -n "\$CONFIG_FILES"; then
31475
# Protect against being on the right side of a sed subst in config.status.
31476
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31477
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31478
s,@SHELL@,$SHELL,;t t
31479
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31480
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31481
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31482
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31483
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31484
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31485
s,@exec_prefix@,$exec_prefix,;t t
31486
s,@prefix@,$prefix,;t t
31487
s,@program_transform_name@,$program_transform_name,;t t
31488
s,@bindir@,$bindir,;t t
31489
s,@sbindir@,$sbindir,;t t
31490
s,@libexecdir@,$libexecdir,;t t
31491
s,@datadir@,$datadir,;t t
31492
s,@sysconfdir@,$sysconfdir,;t t
31493
s,@sharedstatedir@,$sharedstatedir,;t t
31494
s,@localstatedir@,$localstatedir,;t t
31495
s,@libdir@,$libdir,;t t
31496
s,@includedir@,$includedir,;t t
31497
s,@oldincludedir@,$oldincludedir,;t t
31498
s,@infodir@,$infodir,;t t
31499
s,@mandir@,$mandir,;t t
31500
s,@build_alias@,$build_alias,;t t
31501
s,@host_alias@,$host_alias,;t t
31502
s,@target_alias@,$target_alias,;t t
31503
s,@DEFS@,$DEFS,;t t
31504
s,@ECHO_C@,$ECHO_C,;t t
31505
s,@ECHO_N@,$ECHO_N,;t t
31506
s,@ECHO_T@,$ECHO_T,;t t
31507
s,@LIBS@,$LIBS,;t t
31508
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31509
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31510
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31511
s,@CYGPATH_W@,$CYGPATH_W,;t t
31512
s,@PACKAGE@,$PACKAGE,;t t
31513
s,@VERSION@,$VERSION,;t t
31514
s,@ACLOCAL@,$ACLOCAL,;t t
31515
s,@AUTOCONF@,$AUTOCONF,;t t
31516
s,@AUTOMAKE@,$AUTOMAKE,;t t
31517
s,@AUTOHEADER@,$AUTOHEADER,;t t
31518
s,@MAKEINFO@,$MAKEINFO,;t t
31519
s,@AMTAR@,$AMTAR,;t t
31520
s,@install_sh@,$install_sh,;t t
31521
s,@STRIP@,$STRIP,;t t
31522
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31523
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
31524
s,@mkdir_p@,$mkdir_p,;t t
31526
s,@SET_MAKE@,$SET_MAKE,;t t
31527
s,@am__leading_dot@,$am__leading_dot,;t t
31528
s,@docdir@,$docdir,;t t
31530
s,@CFLAGS@,$CFLAGS,;t t
31531
s,@LDFLAGS@,$LDFLAGS,;t t
31532
s,@CPPFLAGS@,$CPPFLAGS,;t t
31533
s,@ac_ct_CC@,$ac_ct_CC,;t t
31534
s,@EXEEXT@,$EXEEXT,;t t
31535
s,@OBJEXT@,$OBJEXT,;t t
31536
s,@DEPDIR@,$DEPDIR,;t t
31537
s,@am__include@,$am__include,;t t
31538
s,@am__quote@,$am__quote,;t t
31539
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
31540
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
31541
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
31542
s,@CCDEPMODE@,$CCDEPMODE,;t t
31543
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
31544
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
31545
s,@YACC@,$YACC,;t t
31547
s,@EGREP@,$EGREP,;t t
31548
s,@HAVE_GCJ_IN_PATH@,$HAVE_GCJ_IN_PATH,;t t
31549
s,@HAVE_JAVAC_IN_PATH@,$HAVE_JAVAC_IN_PATH,;t t
31550
s,@HAVE_JIKES_IN_PATH@,$HAVE_JIKES_IN_PATH,;t t
31551
s,@JAVAC@,$JAVAC,;t t
31552
s,@CLASSPATH@,$CLASSPATH,;t t
31553
s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
31554
s,@HAVE_GCJ_C@,$HAVE_GCJ_C,;t t
31555
s,@HAVE_JAVAC@,$HAVE_JAVAC,;t t
31556
s,@HAVE_JIKES@,$HAVE_JIKES,;t t
31558
s,@BUILDJAVA@,$BUILDJAVA,;t t
31559
s,@CSHARP_CHOICE@,$CSHARP_CHOICE,;t t
31560
s,@HAVE_CSCC_IN_PATH@,$HAVE_CSCC_IN_PATH,;t t
31561
s,@HAVE_MCS_IN_PATH@,$HAVE_MCS_IN_PATH,;t t
31562
s,@HAVE_CSC_IN_PATH@,$HAVE_CSC_IN_PATH,;t t
31563
s,@HAVE_CSCC@,$HAVE_CSCC,;t t
31564
s,@HAVE_MCS@,$HAVE_MCS,;t t
31565
s,@HAVE_CSC@,$HAVE_CSC,;t t
31566
s,@BUILDCSHARP@,$BUILDCSHARP,;t t
31567
s,@build@,$build,;t t
31568
s,@build_cpu@,$build_cpu,;t t
31569
s,@build_vendor@,$build_vendor,;t t
31570
s,@build_os@,$build_os,;t t
31571
s,@host@,$host,;t t
31572
s,@host_cpu@,$host_cpu,;t t
31573
s,@host_vendor@,$host_vendor,;t t
31574
s,@host_os@,$host_os,;t t
31575
s,@LN_S@,$LN_S,;t t
31576
s,@ECHO@,$ECHO,;t t
31578
s,@ac_ct_AR@,$ac_ct_AR,;t t
31579
s,@RANLIB@,$RANLIB,;t t
31580
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31581
s,@DLLTOOL@,$DLLTOOL,;t t
31582
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
31584
s,@ac_ct_AS@,$ac_ct_AS,;t t
31585
s,@OBJDUMP@,$OBJDUMP,;t t
31586
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
31588
s,@CXXFLAGS@,$CXXFLAGS,;t t
31589
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31590
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
31591
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
31592
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
31593
s,@CXXCPP@,$CXXCPP,;t t
31595
s,@FFLAGS@,$FFLAGS,;t t
31596
s,@ac_ct_F77@,$ac_ct_F77,;t t
31597
s,@LIBTOOL@,$LIBTOOL,;t t
31598
s,@RELOCATABLE@,$RELOCATABLE,;t t
31599
s,@LIBOBJS@,$LIBOBJS,;t t
31600
s,@SET_RELOCATABLE@,$SET_RELOCATABLE,;t t
31601
s,@RELOCATABLE_VIA_LD_TRUE@,$RELOCATABLE_VIA_LD_TRUE,;t t
31602
s,@RELOCATABLE_VIA_LD_FALSE@,$RELOCATABLE_VIA_LD_FALSE,;t t
31603
s,@STDBOOL_H@,$STDBOOL_H,;t t
31604
s,@HAVE__BOOL@,$HAVE__BOOL,;t t
31605
s,@ALLOCA@,$ALLOCA,;t t
31606
s,@ALLOCA_H@,$ALLOCA_H,;t t
31607
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
31608
s,@USE_NLS@,$USE_NLS,;t t
31609
s,@MSGFMT@,$MSGFMT,;t t
31610
s,@GMSGFMT@,$GMSGFMT,;t t
31611
s,@XGETTEXT@,$XGETTEXT,;t t
31612
s,@MSGMERGE@,$MSGMERGE,;t t
31613
s,@GLIBC21@,$GLIBC21,;t t
31614
s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
31615
s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
31616
s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
31617
s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
31618
s,@LIBICONV@,$LIBICONV,;t t
31619
s,@LTLIBICONV@,$LTLIBICONV,;t t
31620
s,@INTLBISON@,$INTLBISON,;t t
31621
s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
31622
s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
31623
s,@CATOBJEXT@,$CATOBJEXT,;t t
31624
s,@DATADIRNAME@,$DATADIRNAME,;t t
31625
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
31626
s,@GENCAT@,$GENCAT,;t t
31627
s,@INTLOBJS@,$INTLOBJS,;t t
31628
s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
31629
s,@INTLLIBS@,$INTLLIBS,;t t
31630
s,@LIBINTL@,$LIBINTL,;t t
31631
s,@LTLIBINTL@,$LTLIBINTL,;t t
31632
s,@POSUB@,$POSUB,;t t
31633
s,@PERL@,$PERL,;t t
31634
s,@CROSS_COMPILING@,$CROSS_COMPILING,;t t
31635
s,@SUBDIR_libasprintf@,$SUBDIR_libasprintf,;t t
31636
s,@subdirs@,$subdirs,;t t
31637
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31642
cat >>$CONFIG_STATUS <<\_ACEOF
31643
# Split the substitutions into bite-sized pieces for seds with
31644
# small command number limits, like on Digital OSF/1 and HP-UX.
31645
ac_max_sed_lines=48
31646
ac_sed_frag=1 # Number of current file.
31647
ac_beg=1 # First line for current file.
31648
ac_end=$ac_max_sed_lines # Line after last line for current file.
31651
while $ac_more_lines; do
31652
if test $ac_beg -gt 1; then
31653
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31655
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31657
if test ! -s $tmp/subs.frag; then
31658
ac_more_lines=false
31660
# The purpose of the label and of the branching condition is to
31661
# speed up the sed processing (if there are no `@' at all, there
31662
# is no need to browse any of the substitutions).
31663
# These are the two extra sed commands mentioned above.
31665
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31666
if test -z "$ac_sed_cmds"; then
31667
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31669
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31671
ac_sed_frag=`expr $ac_sed_frag + 1`
31673
ac_end=`expr $ac_end + $ac_max_sed_lines`
31676
if test -z "$ac_sed_cmds"; then
31679
fi # test -n "$CONFIG_FILES"
31682
cat >>$CONFIG_STATUS <<\_ACEOF
31683
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31684
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31686
- | *:- | *:-:* ) # input from stdin
31688
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31689
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31690
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31691
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31692
* ) ac_file_in=$ac_file.in ;;
31695
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31696
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31697
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31698
X"$ac_file" : 'X\(//\)[^/]' \| \
31699
X"$ac_file" : 'X\(//\)$' \| \
31700
X"$ac_file" : 'X\(/\)' \| \
31701
. : '\(.\)' 2>/dev/null ||
31703
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31704
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
31705
/^X\(\/\/\)$/{ s//\1/; q; }
31706
/^X\(\/\).*/{ s//\1/; q; }
31708
{ if $as_mkdir_p; then
31713
while test ! -d "$as_dir"; do
31714
as_dirs="$as_dir $as_dirs"
31715
as_dir=`(dirname "$as_dir") 2>/dev/null ||
31716
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31717
X"$as_dir" : 'X\(//\)[^/]' \| \
31718
X"$as_dir" : 'X\(//\)$' \| \
31719
X"$as_dir" : 'X\(/\)' \| \
31720
. : '\(.\)' 2>/dev/null ||
31722
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31723
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
31724
/^X\(\/\/\)$/{ s//\1/; q; }
31725
/^X\(\/\).*/{ s//\1/; q; }
31728
test ! -n "$as_dirs" || mkdir $as_dirs
31729
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31730
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31731
{ (exit 1); exit 1; }; }; }
31735
if test "$ac_dir" != .; then
31736
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31737
# A "../" for each directory in $ac_dir_suffix.
31738
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31740
ac_dir_suffix= ac_top_builddir=
31744
.) # No --srcdir option. We are building in place.
31746
if test -z "$ac_top_builddir"; then
31749
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31751
[\\/]* | ?:[\\/]* ) # Absolute path.
31752
ac_srcdir=$srcdir$ac_dir_suffix;
31753
ac_top_srcdir=$srcdir ;;
31754
*) # Relative path.
31755
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31756
ac_top_srcdir=$ac_top_builddir$srcdir ;;
31759
# Do not use `cd foo && pwd` to compute absolute paths, because
31760
# the directories may not exist.
31762
.) ac_abs_builddir="$ac_dir";;
31765
.) ac_abs_builddir=`pwd`;;
31766
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31767
*) ac_abs_builddir=`pwd`/"$ac_dir";;
31770
case $ac_abs_builddir in
31771
.) ac_abs_top_builddir=${ac_top_builddir}.;;
31773
case ${ac_top_builddir}. in
31774
.) ac_abs_top_builddir=$ac_abs_builddir;;
31775
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31776
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31779
case $ac_abs_builddir in
31780
.) ac_abs_srcdir=$ac_srcdir;;
31783
.) ac_abs_srcdir=$ac_abs_builddir;;
31784
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31785
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31788
case $ac_abs_builddir in
31789
.) ac_abs_top_srcdir=$ac_top_srcdir;;
31791
case $ac_top_srcdir in
31792
.) ac_abs_top_srcdir=$ac_abs_builddir;;
31793
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31794
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31800
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31801
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31804
# Let's still pretend it is `configure' which instantiates (i.e., don't
31805
# use $as_me), people would be surprised to read:
31806
# /* config.h. Generated by config.status. */
31807
if test x"$ac_file" = x-; then
31810
configure_input="$ac_file. "
31812
configure_input=$configure_input"Generated from `echo $ac_file_in |
31813
sed 's,.*/,,'` by configure."
31815
# First look for the input files in the build tree, otherwise in the
31817
ac_file_inputs=`IFS=:
31818
for f in $ac_file_in; do
31820
-) echo $tmp/stdin ;;
31822
# Absolute (can't be DOS-style, as IFS=:)
31823
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31824
echo "$as_me: error: cannot find input file: $f" >&2;}
31825
{ (exit 1); exit 1; }; }
31828
if test -f "$f"; then
31831
elif test -f "$srcdir/$f"; then
31836
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31837
echo "$as_me: error: cannot find input file: $f" >&2;}
31838
{ (exit 1); exit 1; }; }
31841
done` || { (exit 1); exit 1; }
31843
if test x"$ac_file" != x-; then
31844
{ echo "$as_me:$LINENO: creating $ac_file" >&5
31845
echo "$as_me: creating $ac_file" >&6;}
31849
cat >>$CONFIG_STATUS <<_ACEOF
31853
cat >>$CONFIG_STATUS <<\_ACEOF
31855
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31856
s,@configure_input@,$configure_input,;t t
31857
s,@srcdir@,$ac_srcdir,;t t
31858
s,@abs_srcdir@,$ac_abs_srcdir,;t t
31859
s,@top_srcdir@,$ac_top_srcdir,;t t
31860
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31861
s,@builddir@,$ac_builddir,;t t
31862
s,@abs_builddir@,$ac_abs_builddir,;t t
31863
s,@top_builddir@,$ac_top_builddir,;t t
31864
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31865
s,@INSTALL@,$ac_INSTALL,;t t
31866
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31868
if test x"$ac_file" != x-; then
31869
mv $tmp/out $ac_file
31875
# Run the commands associated with the file.
31878
sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp
31879
mv $ac_file.tmp $ac_file
31882
sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp
31883
mv $ac_file.tmp $ac_file
31886
sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp
31887
mv $ac_file.tmp $ac_file
31892
cat >>$CONFIG_STATUS <<\_ACEOF
31895
# CONFIG_HEADER section.
31898
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31899
# NAME is the cpp macro being defined and VALUE is the value it is being given.
31901
# ac_d sets the value in "#define NAME VALUE" lines.
31902
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31903
ac_dB='[ ].*$,\1#\2'
31906
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31907
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31908
ac_uB='$,\1#\2define\3'
31912
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31913
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31915
- | *:- | *:-:* ) # input from stdin
31917
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31918
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31919
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31920
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31921
* ) ac_file_in=$ac_file.in ;;
31924
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31925
echo "$as_me: creating $ac_file" >&6;}
31927
# First look for the input files in the build tree, otherwise in the
31929
ac_file_inputs=`IFS=:
31930
for f in $ac_file_in; do
31932
-) echo $tmp/stdin ;;
31934
# Absolute (can't be DOS-style, as IFS=:)
31935
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31936
echo "$as_me: error: cannot find input file: $f" >&2;}
31937
{ (exit 1); exit 1; }; }
31938
# Do quote $f, to prevent DOS paths from being IFS'd.
31941
if test -f "$f"; then
31944
elif test -f "$srcdir/$f"; then
31949
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31950
echo "$as_me: error: cannot find input file: $f" >&2;}
31951
{ (exit 1); exit 1; }; }
31954
done` || { (exit 1); exit 1; }
31955
# Remove the trailing spaces.
31956
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31960
# Transform confdefs.h into two sed scripts, `conftest.defines' and
31961
# `conftest.undefs', that substitutes the proper values into
31962
# config.h.in to produce config.h. The first handles `#define'
31963
# templates, and the second `#undef' templates.
31964
# And first: Protect against being on the right side of a sed subst in
31965
# config.status. Protect against being in an unquoted here document
31966
# in config.status.
31967
rm -f conftest.defines conftest.undefs
31968
# Using a here document instead of a string reduces the quoting nightmare.
31969
# Putting comments in sed scripts is not portable.
31971
# `end' is used to avoid that the second main sed command (meant for
31972
# 0-ary CPP macros) applies to n-ary macro definitions.
31973
# See the Autoconf documentation for `clear'.
31974
cat >confdef2sed.sed <<\_ACEOF
31979
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31981
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31984
# If some macros were called several times there might be several times
31985
# the same #defines, which is useless. Nevertheless, we may not want to
31986
# sort them, since we want the *last* AC-DEFINE to be honored.
31987
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31988
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31989
rm -f confdef2sed.sed
31991
# This sed command replaces #undef with comments. This is necessary, for
31992
# example, in the case of _POSIX_SOURCE, which is predefined and required
31993
# on some systems where configure will not decide to define it.
31994
cat >>conftest.undefs <<\_ACEOF
31995
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31998
# Break up conftest.defines because some shells have a limit on the size
31999
# of here documents, and old seds have small limits too (100 cmds).
32000
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32001
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
32002
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32003
echo ' :' >>$CONFIG_STATUS
32004
rm -f conftest.tail
32005
while grep . conftest.defines >/dev/null
32007
# Write a limited-size here document to $tmp/defines.sed.
32008
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32009
# Speed up: don't consider the non `#define' lines.
32010
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
32011
# Work around the forget-to-reset-the-flag bug.
32012
echo 't clr' >>$CONFIG_STATUS
32013
echo ': clr' >>$CONFIG_STATUS
32014
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32016
sed -f $tmp/defines.sed $tmp/in >$tmp/out
32018
mv $tmp/out $tmp/in
32020
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32021
rm -f conftest.defines
32022
mv conftest.tail conftest.defines
32024
rm -f conftest.defines
32025
echo ' fi # grep' >>$CONFIG_STATUS
32026
echo >>$CONFIG_STATUS
32028
# Break up conftest.undefs because some shells have a limit on the size
32029
# of here documents, and old seds have small limits too (100 cmds).
32030
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
32031
rm -f conftest.tail
32032
while grep . conftest.undefs >/dev/null
32034
# Write a limited-size here document to $tmp/undefs.sed.
32035
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32036
# Speed up: don't consider the non `#undef'
32037
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
32038
# Work around the forget-to-reset-the-flag bug.
32039
echo 't clr' >>$CONFIG_STATUS
32040
echo ': clr' >>$CONFIG_STATUS
32041
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32043
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32045
mv $tmp/out $tmp/in
32047
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32048
rm -f conftest.undefs
32049
mv conftest.tail conftest.undefs
32051
rm -f conftest.undefs
32053
cat >>$CONFIG_STATUS <<\_ACEOF
32054
# Let's still pretend it is `configure' which instantiates (i.e., don't
32055
# use $as_me), people would be surprised to read:
32056
# /* config.h. Generated by config.status. */
32057
if test x"$ac_file" = x-; then
32058
echo "/* Generated by configure. */" >$tmp/config.h
32060
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
32062
cat $tmp/in >>$tmp/config.h
32064
if test x"$ac_file" != x-; then
32065
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32066
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32067
echo "$as_me: $ac_file is unchanged" >&6;}
32069
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32070
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32071
X"$ac_file" : 'X\(//\)[^/]' \| \
32072
X"$ac_file" : 'X\(//\)$' \| \
32073
X"$ac_file" : 'X\(/\)' \| \
32074
. : '\(.\)' 2>/dev/null ||
32076
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32077
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
32078
/^X\(\/\/\)$/{ s//\1/; q; }
32079
/^X\(\/\).*/{ s//\1/; q; }
32081
{ if $as_mkdir_p; then
32086
while test ! -d "$as_dir"; do
32087
as_dirs="$as_dir $as_dirs"
32088
as_dir=`(dirname "$as_dir") 2>/dev/null ||
32089
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32090
X"$as_dir" : 'X\(//\)[^/]' \| \
32091
X"$as_dir" : 'X\(//\)$' \| \
32092
X"$as_dir" : 'X\(/\)' \| \
32093
. : '\(.\)' 2>/dev/null ||
32095
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32096
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
32097
/^X\(\/\/\)$/{ s//\1/; q; }
32098
/^X\(\/\).*/{ s//\1/; q; }
32101
test ! -n "$as_dirs" || mkdir $as_dirs
32102
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32103
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32104
{ (exit 1); exit 1; }; }; }
32107
mv $tmp/config.h $ac_file
32111
rm -f $tmp/config.h
32113
# Compute $ac_file's index in $config_headers.
32115
for _am_header in $config_headers :; do
32116
case $_am_header in
32117
$ac_file | $ac_file:* )
32120
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
32123
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
32124
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32125
X$ac_file : 'X\(//\)[^/]' \| \
32126
X$ac_file : 'X\(//\)$' \| \
32127
X$ac_file : 'X\(/\)' \| \
32128
. : '\(.\)' 2>/dev/null ||
32130
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32131
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
32132
/^X\(\/\/\)$/{ s//\1/; q; }
32133
/^X\(\/\).*/{ s//\1/; q; }
32134
s/.*/./; q'`/stamp-h$_am_stamp_count
32137
cat >>$CONFIG_STATUS <<\_ACEOF
32140
# CONFIG_COMMANDS section.
32142
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32143
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32144
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32145
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32146
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32147
X"$ac_dest" : 'X\(//\)[^/]' \| \
32148
X"$ac_dest" : 'X\(//\)$' \| \
32149
X"$ac_dest" : 'X\(/\)' \| \
32150
. : '\(.\)' 2>/dev/null ||
32152
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32153
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
32154
/^X\(\/\/\)$/{ s//\1/; q; }
32155
/^X\(\/\).*/{ s//\1/; q; }
32157
{ if $as_mkdir_p; then
32162
while test ! -d "$as_dir"; do
32163
as_dirs="$as_dir $as_dirs"
32164
as_dir=`(dirname "$as_dir") 2>/dev/null ||
32165
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32166
X"$as_dir" : 'X\(//\)[^/]' \| \
32167
X"$as_dir" : 'X\(//\)$' \| \
32168
X"$as_dir" : 'X\(/\)' \| \
32169
. : '\(.\)' 2>/dev/null ||
32171
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32172
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
32173
/^X\(\/\/\)$/{ s//\1/; q; }
32174
/^X\(\/\).*/{ s//\1/; q; }
32177
test ! -n "$as_dirs" || mkdir $as_dirs
32178
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32179
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32180
{ (exit 1); exit 1; }; }; }
32184
if test "$ac_dir" != .; then
32185
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32186
# A "../" for each directory in $ac_dir_suffix.
32187
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32189
ac_dir_suffix= ac_top_builddir=
32193
.) # No --srcdir option. We are building in place.
32195
if test -z "$ac_top_builddir"; then
32198
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32200
[\\/]* | ?:[\\/]* ) # Absolute path.
32201
ac_srcdir=$srcdir$ac_dir_suffix;
32202
ac_top_srcdir=$srcdir ;;
32203
*) # Relative path.
32204
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32205
ac_top_srcdir=$ac_top_builddir$srcdir ;;
32208
# Do not use `cd foo && pwd` to compute absolute paths, because
32209
# the directories may not exist.
32211
.) ac_abs_builddir="$ac_dir";;
32214
.) ac_abs_builddir=`pwd`;;
32215
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32216
*) ac_abs_builddir=`pwd`/"$ac_dir";;
32219
case $ac_abs_builddir in
32220
.) ac_abs_top_builddir=${ac_top_builddir}.;;
32222
case ${ac_top_builddir}. in
32223
.) ac_abs_top_builddir=$ac_abs_builddir;;
32224
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32225
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32228
case $ac_abs_builddir in
32229
.) ac_abs_srcdir=$ac_srcdir;;
32232
.) ac_abs_srcdir=$ac_abs_builddir;;
32233
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32234
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32237
case $ac_abs_builddir in
32238
.) ac_abs_top_srcdir=$ac_top_srcdir;;
32240
case $ac_top_srcdir in
32241
.) ac_abs_top_srcdir=$ac_abs_builddir;;
32242
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32243
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32248
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32249
echo "$as_me: executing $ac_dest commands" >&6;}
32251
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
32252
# Strip MF so we end up with the name of the file.
32253
mf=`echo "$mf" | sed -e 's/:.*$//'`
32254
# Check whether this is an Automake generated Makefile or not.
32255
# We used to match only the files named `Makefile.in', but
32256
# some people rename them; so instead we look at the file content.
32257
# Grep'ing the first line is not enough: some people post-process
32258
# each Makefile.in and add a new line on top of each file to say so.
32259
# So let's grep whole file.
32260
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
32261
dirpart=`(dirname "$mf") 2>/dev/null ||
32262
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32263
X"$mf" : 'X\(//\)[^/]' \| \
32264
X"$mf" : 'X\(//\)$' \| \
32265
X"$mf" : 'X\(/\)' \| \
32266
. : '\(.\)' 2>/dev/null ||
32268
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32269
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
32270
/^X\(\/\/\)$/{ s//\1/; q; }
32271
/^X\(\/\).*/{ s//\1/; q; }
32276
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
32277
# Extract the definition of DEP_FILES from the Makefile without
32279
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
32280
test -z "$DEPDIR" && continue
32281
# When using ansi2knr, U may be empty or an underscore; expand it
32282
U=`sed -n -e '/^U = / s///p' < "$mf"`
32283
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
32284
# We invoke sed twice because it is the simplest approach to
32285
# changing $(DEPDIR) to its actual value in the expansion.
32286
for file in `sed -n -e '
32287
/^DEP_FILES = .*\\\\$/ {
32296
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
32297
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
32298
# Make sure the directory exists.
32299
test -f "$dirpart/$file" && continue
32300
fdir=`(dirname "$file") 2>/dev/null ||
32301
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32302
X"$file" : 'X\(//\)[^/]' \| \
32303
X"$file" : 'X\(//\)$' \| \
32304
X"$file" : 'X\(/\)' \| \
32305
. : '\(.\)' 2>/dev/null ||
32307
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32308
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
32309
/^X\(\/\/\)$/{ s//\1/; q; }
32310
/^X\(\/\).*/{ s//\1/; q; }
32312
{ if $as_mkdir_p; then
32313
mkdir -p $dirpart/$fdir
32315
as_dir=$dirpart/$fdir
32317
while test ! -d "$as_dir"; do
32318
as_dirs="$as_dir $as_dirs"
32319
as_dir=`(dirname "$as_dir") 2>/dev/null ||
32320
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32321
X"$as_dir" : 'X\(//\)[^/]' \| \
32322
X"$as_dir" : 'X\(//\)$' \| \
32323
X"$as_dir" : 'X\(/\)' \| \
32324
. : '\(.\)' 2>/dev/null ||
32326
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32327
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
32328
/^X\(\/\/\)$/{ s//\1/; q; }
32329
/^X\(\/\).*/{ s//\1/; q; }
32332
test ! -n "$as_dirs" || mkdir $as_dirs
32333
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
32334
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
32335
{ (exit 1); exit 1; }; }; }
32337
# echo "creating $dirpart/$file"
32338
echo '# dummy' > "$dirpart/$file"
32343
for ac_file in $CONFIG_FILES; do
32344
# Support "outfile[:infile[:infile...]]"
32346
*:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32348
# PO directories have a Makefile.in generated from Makefile.in.in.
32349
case "$ac_file" in */Makefile.in)
32350
# Adjust a relative srcdir.
32351
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32352
ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32353
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32354
# In autoconf-2.13 it is called $ac_given_srcdir.
32355
# In autoconf-2.50 it is called $srcdir.
32356
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32357
case "$ac_given_srcdir" in
32358
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32359
/*) top_srcdir="$ac_given_srcdir" ;;
32360
*) top_srcdir="$ac_dots$ac_given_srcdir" ;;
32362
if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32363
rm -f "$ac_dir/POTFILES"
32364
test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32365
cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32366
POMAKEFILEDEPS="POTFILES.in"
32367
# ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32368
# on $ac_dir but don't depend on user-specified configuration
32370
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32371
# The LINGUAS file contains the set of available languages.
32372
if test -n "$OBSOLETE_ALL_LINGUAS"; then
32373
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32375
ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32376
# Hide the ALL_LINGUAS assigment from automake.
32377
eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32378
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32380
# The set of available languages was given in configure.in.
32381
eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32384
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32385
# Compute UPDATEPOFILES
32386
# as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32387
# Compute DUMMYPOFILES
32388
# as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32390
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32391
case "$ac_given_srcdir" in
32393
*) srcdirpre='$(srcdir)/' ;;
32399
for lang in $ALL_LINGUAS; do
32400
POFILES="$POFILES $srcdirpre$lang.po"
32401
UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32402
DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32403
GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32405
# CATALOGS depends on both $ac_dir and the user's LINGUAS
32406
# environment variable.
32408
if test -n "$ALL_LINGUAS"; then
32409
for presentlang in $ALL_LINGUAS; do
32411
if test "%UNSET%" != "$LINGUAS"; then
32412
desiredlanguages="$LINGUAS"
32414
desiredlanguages="$ALL_LINGUAS"
32416
for desiredlang in $desiredlanguages; do
32417
# Use the presentlang catalog if desiredlang is
32418
# a. equal to presentlang, or
32419
# b. a variant of presentlang (because in this case,
32420
# presentlang can be used as a fallback for messages
32421
# which are not translated in the desiredlang catalog).
32422
case "$desiredlang" in
32423
"$presentlang"*) useit=yes;;
32426
if test $useit = yes; then
32427
INST_LINGUAS="$INST_LINGUAS $presentlang"
32432
if test -n "$INST_LINGUAS"; then
32433
for lang in $INST_LINGUAS; do
32434
CATALOGS="$CATALOGS $lang.gmo"
32437
test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32438
sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
32439
for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32440
if test -f "$f"; then
32442
*.orig | *.bak | *~) ;;
32443
*) cat "$f" >> "$ac_dir/Makefile" ;;
32455
cat >>$CONFIG_STATUS <<\_ACEOF
32457
{ (exit 0); exit 0; }
32459
chmod +x $CONFIG_STATUS
32460
ac_clean_files=$ac_clean_files_save
32463
# configure is writing to config.log, and then calls config.status.
32464
# config.status does its own redirection, appending to config.log.
32465
# Unfortunately, on DOS this fails, as config.log is still kept open
32466
# by configure, so config.status won't be able to write to it; its
32467
# output is simply discarded. So we exec the FD to /dev/null,
32468
# effectively closing config.log, so it can be properly (re)opened and
32469
# appended to by config.status. When coming back to configure, we
32470
# need to make the FD available again.
32471
if test "$no_create" != yes; then
32473
ac_config_status_args=
32474
test "$silent" = yes &&
32475
ac_config_status_args="$ac_config_status_args --quiet"
32477
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32479
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
32480
# would make configure fail if this is the last instruction.
32481
$ac_cs_success || { (exit 1); exit 1; }
32485
# CONFIG_SUBDIRS section.
32487
if test "$no_recursion" != yes; then
32489
# Remove --cache-file and --srcdir arguments so they do not pile up.
32490
ac_sub_configure_args=
32492
for ac_arg in $ac_configure_args; do
32493
if test -n "$ac_prev"; then
32498
-cache-file | --cache-file | --cache-fil | --cache-fi \
32499
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32500
ac_prev=cache_file ;;
32501
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32502
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32505
--config-cache | -C)
32507
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32509
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32511
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32513
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32515
*) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32519
# Always prepend --prefix to ensure using the same prefix
32520
# in subdir configurations.
32521
ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32524
for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32526
# Do not complain, so a configure script can configure whichever
32527
# parts of a large source tree are present.
32528
test -d $srcdir/$ac_dir || continue
32530
{ echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32531
echo "$as_me: configuring in $ac_dir" >&6;}
32532
{ if $as_mkdir_p; then
32537
while test ! -d "$as_dir"; do
32538
as_dirs="$as_dir $as_dirs"
32539
as_dir=`(dirname "$as_dir") 2>/dev/null ||
32540
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32541
X"$as_dir" : 'X\(//\)[^/]' \| \
32542
X"$as_dir" : 'X\(//\)$' \| \
32543
X"$as_dir" : 'X\(/\)' \| \
32544
. : '\(.\)' 2>/dev/null ||
32546
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32547
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
32548
/^X\(\/\/\)$/{ s//\1/; q; }
32549
/^X\(\/\).*/{ s//\1/; q; }
32552
test ! -n "$as_dirs" || mkdir $as_dirs
32553
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32554
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32555
{ (exit 1); exit 1; }; }; }
32559
if test "$ac_dir" != .; then
32560
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32561
# A "../" for each directory in $ac_dir_suffix.
32562
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32564
ac_dir_suffix= ac_top_builddir=
32568
.) # No --srcdir option. We are building in place.
32570
if test -z "$ac_top_builddir"; then
32573
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32575
[\\/]* | ?:[\\/]* ) # Absolute path.
32576
ac_srcdir=$srcdir$ac_dir_suffix;
32577
ac_top_srcdir=$srcdir ;;
32578
*) # Relative path.
32579
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32580
ac_top_srcdir=$ac_top_builddir$srcdir ;;
32583
# Do not use `cd foo && pwd` to compute absolute paths, because
32584
# the directories may not exist.
32586
.) ac_abs_builddir="$ac_dir";;
32589
.) ac_abs_builddir=`pwd`;;
32590
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32591
*) ac_abs_builddir=`pwd`/"$ac_dir";;
32594
case $ac_abs_builddir in
32595
.) ac_abs_top_builddir=${ac_top_builddir}.;;
32597
case ${ac_top_builddir}. in
32598
.) ac_abs_top_builddir=$ac_abs_builddir;;
32599
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32600
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32603
case $ac_abs_builddir in
32604
.) ac_abs_srcdir=$ac_srcdir;;
32607
.) ac_abs_srcdir=$ac_abs_builddir;;
32608
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32609
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32612
case $ac_abs_builddir in
32613
.) ac_abs_top_srcdir=$ac_top_srcdir;;
32615
case $ac_top_srcdir in
32616
.) ac_abs_top_srcdir=$ac_abs_builddir;;
32617
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32618
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32625
# Check for guested configure; otherwise get Cygnus style configure.
32626
if test -f $ac_srcdir/configure.gnu; then
32627
ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32628
elif test -f $ac_srcdir/configure; then
32629
ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32630
elif test -f $ac_srcdir/configure.in; then
32631
ac_sub_configure=$ac_configure
32633
{ echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32634
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32638
# The recursion is here.
32639
if test -n "$ac_sub_configure"; then
32640
# Make the cache file name correct relative to the subdirectory.
32641
case $cache_file in
32642
[\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32643
*) # Relative path.
32644
ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32647
{ echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32648
echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32649
# The eval makes quoting arguments work.
32650
eval $ac_sub_configure $ac_sub_configure_args \
32651
--cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32652
{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32653
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32654
{ (exit 1); exit 1; }; }