2
# From configure.in Revision: 1.37 .
3
# Guess values for system-dependent variables and create Makefiles.
4
# Generated by GNU Autoconf 2.59.
6
# Copyright (C) 2003 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization. ##
11
## --------------------- ##
13
# Be Bourne compatible
14
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18
# is contrary to our usage. Disable this feature.
19
alias -g '${1+"$@"}'='"$@"'
20
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23
DUALCASE=1; export DUALCASE # for MKS sh
25
# Support unset when possible.
26
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33
# Work around bugs in pre-3.0 UWIN ksh.
34
$as_unset ENV MAIL MAILPATH
41
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46
eval $as_var=C; export $as_var
52
# Required to use basename.
53
if expr a : '\(a\)' >/dev/null 2>&1; then
59
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66
# Name of the executable.
67
as_me=`$as_basename "$0" ||
68
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69
X"$0" : 'X\(//\)$' \| \
70
X"$0" : 'X\(/\)$' \| \
71
. : '\(.\)' 2>/dev/null ||
73
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74
/^X\/\(\/\/\)$/{ s//\1/; q; }
75
/^X\/\(\/\).*/{ s//\1/; q; }
79
# PATH needs CR, and LINENO needs CR and PATH.
80
# Avoid depending upon Character Ranges.
81
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84
as_cr_digits='0123456789'
85
as_cr_alnum=$as_cr_Letters$as_cr_digits
87
# The user is always right.
88
if test "${PATH_SEPARATOR+set}" != set; then
89
echo "#! /bin/sh" >conf$$.sh
90
echo "exit 0" >>conf$$.sh
92
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
103
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104
test "x$as_lineno_1" != "x$as_lineno_2" &&
105
test "x$as_lineno_3" = "x$as_lineno_2" || {
106
# Find who we are. Look in the path if we contain no path at all
109
*[\\/]* ) as_myself=$0 ;;
110
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114
test -z "$as_dir" && as_dir=.
115
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120
# We did not find ourselves, most probably we were run as `sh COMMAND'
121
# in which case we are not to be found in the path.
122
if test "x$as_myself" = x; then
125
if test ! -f "$as_myself"; then
126
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127
{ (exit 1); exit 1; }; }
129
case $CONFIG_SHELL in
131
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135
test -z "$as_dir" && as_dir=.
136
for as_base in sh bash ksh sh5; do
139
if ("$as_dir/$as_base" -c '
142
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143
test "x$as_lineno_1" != "x$as_lineno_2" &&
144
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147
CONFIG_SHELL=$as_dir/$as_base
149
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158
# uniformly replaced by the line number. The first 'sed' inserts a
159
# line-number line before each line; the second 'sed' does the real
160
# work. The second script uses 'N' to pair each line-number line
161
# with the numbered line, and appends trailing '-' during
162
# substitution so that $LINENO is not a special case at line end.
163
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165
sed '=' <$as_myself |
170
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173
s,^['$as_cr_digits']*\n,,
175
chmod +x $as_me.lineno ||
176
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177
{ (exit 1); exit 1; }; }
179
# Don't try to exec as it changes $[0], causing all sort of problems
180
# (the dirname of $[0] is not the place where we might find the
181
# original and so on. Autoconf is especially sensible to this).
183
# Exit status is that of the last command.
188
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189
*c*,-n*) ECHO_N= ECHO_C='
191
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195
if expr a : '\(a\)' >/dev/null 2>&1; then
201
rm -f conf$$ conf$$.exe conf$$.file
203
if ln -s conf$$.file conf$$ 2>/dev/null; then
204
# We could just check for DJGPP; but this test a) works b) is more generic
205
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206
if test -f conf$$.exe; then
207
# Don't use ln at all; we don't have any links
212
elif ln conf$$.file conf$$ 2>/dev/null; then
217
rm -f conf$$ conf$$.exe conf$$.file
219
if mkdir -p . 2>/dev/null; then
222
test -d ./-p && rmdir ./-p
226
as_executable_p="test -f"
228
# Sed expression to map a string onto a valid CPP name.
229
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
# Sed expression to map a string onto a valid variable name.
232
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
# We need space, tab and new line, in precisely that order.
246
# Check that we are running under the correct shell.
247
SHELL=${CONFIG_SHELL-/bin/sh}
251
# Remove one level of quotation (which was required for Make).
252
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
257
if test "X$1" = X--no-reexec; then
258
# Discard the --no-reexec flag, and continue.
260
elif test "X$1" = X--fallback-echo; then
261
# Avoid inline document here, it may be left over
263
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264
# Yippee, $echo works!
267
# Restart under the correct shell.
268
exec $SHELL "$0" --no-reexec ${1+"$@"}
271
if test "X$1" = X--fallback-echo; then
272
# used as fallback echo
280
# The HP-UX ksh and POSIX shell print the target directory to stdout
282
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
if test -z "$ECHO"; then
285
if test "X${echo_test_string+set}" != Xset; then
286
# find a string as large as possible, as long as the shell can cope with it
287
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290
echo_test_string="`eval $cmd`" &&
291
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
298
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300
test "X$echo_testing_string" = "X$echo_test_string"; then
303
# The Solaris, AIX, and Digital Unix default echo programs unquote
304
# backslashes. This makes it impossible to quote backslashes using
305
# echo "$something" | sed 's/\\/\\\\/g'
307
# So, first we look for a working echo in the user's PATH.
309
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310
for dir in $PATH /usr/ucb; do
312
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315
test "X$echo_testing_string" = "X$echo_test_string"; then
322
if test "X$echo" = Xecho; then
323
# We didn't find a better echo, so look for alternatives.
324
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326
test "X$echo_testing_string" = "X$echo_test_string"; then
327
# This shell has a builtin print -r that does the trick.
329
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330
test "X$CONFIG_SHELL" != X/bin/ksh; then
331
# If we have ksh, try running configure again with it.
332
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333
export ORIGINAL_CONFIG_SHELL
334
CONFIG_SHELL=/bin/ksh
336
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342
test "X$echo_testing_string" = "X$echo_test_string"; then
345
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346
test "X$echo_testing_string" = 'X\t' &&
347
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348
test "X$echo_testing_string" = "X$echo_test_string"; then
349
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351
SHELL="$CONFIG_SHELL"
353
echo="$CONFIG_SHELL $0 --fallback-echo"
354
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355
test "X$echo_testing_string" = 'X\t' &&
356
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357
test "X$echo_testing_string" = "X$echo_test_string"; then
358
echo="$CONFIG_SHELL $0 --fallback-echo"
360
# maybe with a smaller string...
363
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
371
if test "$prev" != 'sed 50q "$0"'; then
372
echo_test_string=`eval $prev`
373
export echo_test_string
374
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376
# Oops. We lost completely, so just stick with echo.
385
# Copy echo and quote the copy suitably for passing to libtool from
386
# the Makefile, instead of quoting the original, which is used later.
388
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
395
tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
397
tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
400
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401
# so uname gets run too.
402
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
409
ac_default_prefix=/usr/local
410
ac_config_libobj_dir=.
415
SHELL=${CONFIG_SHELL-/bin/sh}
417
# Maximum number of lines to put in a shell here document.
418
# This variable seems obsolete. It should probably be removed, and
419
# only ac_max_sed_lines should be used.
420
: ${ac_max_here_lines=38}
422
# Identity of this package.
429
ac_unique_file="README"
430
ac_default_prefix=/usr/local
431
# Factoring default headers for most tests.
432
ac_includes_default="\
435
# include <sys/types.h>
438
# include <sys/stat.h>
449
# if !STDC_HEADERS && HAVE_MEMORY_H
455
# include <strings.h>
458
# include <inttypes.h>
468
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS DEVIL_LTVERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK am__leading_dot DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT VERSIONINFO LIBZ LIBJPG LIBTIFF LIBPNG LIBLCMS LIBMNG SDL_CONFIG sdl_major_version sdl_minor_version sdl_micro_version SDL_CFLAGS SDL_LIBS LIBSDL HSDL LIBGL allegro_config LIBALLEGRO HALLEGRO LIBGDI32 IL_NO_BMP_TRUE IL_NO_BMP_FALSE IL_NO_DCX_TRUE IL_NO_DCX_FALSE IL_NO_DDS_TRUE IL_NO_DDS_FALSE IL_NO_DOOM_TRUE IL_NO_DOOM_FALSE IL_NO_GIF_TRUE IL_NO_GIF_FALSE IL_NO_HDR_TRUE IL_NO_HDR_FALSE IL_NO_ICO_TRUE IL_NO_ICO_FALSE IL_NO_JPG_TRUE IL_NO_JPG_FALSE IL_NO_LIF_TRUE IL_NO_LIF_FALSE IL_NO_LCMS_TRUE IL_NO_LCMS_FALSE IL_NO_MDL_TRUE IL_NO_MDL_FALSE IL_NO_MNG_TRUE IL_NO_MNG_FALSE IL_NO_PCD_TRUE IL_NO_PCD_FALSE IL_NO_PCX_TRUE IL_NO_PCX_FALSE IL_NO_PIC_TRUE IL_NO_PIC_FALSE IL_NO_PIX_TRUE IL_NO_PIX_FALSE IL_NO_PNG_TRUE IL_NO_PNG_FALSE IL_NO_PNM_TRUE IL_NO_PNM_FALSE IL_NO_PSD_TRUE IL_NO_PSD_FALSE IL_NO_PSP_TRUE IL_NO_PSP_FALSE IL_NO_PXR_TRUE IL_NO_PXR_FALSE IL_NO_RAW_TRUE IL_NO_RAW_FALSE IL_NO_SGI_TRUE IL_NO_SGI_FALSE IL_NO_TGA_TRUE IL_NO_TGA_FALSE IL_NO_TIF_TRUE IL_NO_TIF_FALSE IL_NO_WAL_TRUE IL_NO_WAL_FALSE IL_NO_XPM_TRUE IL_NO_XPM_FALSE LIBIL_CFLAGS LIBILU_CFLAGS LIBILUT_CFLAGS LIBILUT_WIN32LIBPATH LIBOBJS LTLIBOBJS'
471
# Initialize some variables set by options.
473
ac_init_version=false
474
# The variables have the same names as the options, with
475
# dashes changed to underlines.
483
program_transform_name=s,x,x,
491
# Installation directory options.
492
# These are left unexpanded so users can "make install exec_prefix=/foo"
493
# and all the variables that are supposed to be based on exec_prefix
494
# by default will actually change.
495
# Use braces instead of parens because sh, perl, etc. also accept them.
496
bindir='${exec_prefix}/bin'
497
sbindir='${exec_prefix}/sbin'
498
libexecdir='${exec_prefix}/libexec'
499
datadir='${prefix}/share'
500
sysconfdir='${prefix}/etc'
501
sharedstatedir='${prefix}/com'
502
localstatedir='${prefix}/var'
503
libdir='${exec_prefix}/lib'
504
includedir='${prefix}/include'
505
oldincludedir='/usr/include'
506
infodir='${prefix}/info'
507
mandir='${prefix}/man'
512
# If the previous option needs an argument, assign it.
513
if test -n "$ac_prev"; then
514
eval "$ac_prev=\$ac_option"
519
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
# Accept the important Cygnus configure options, so we can diagnose typos.
525
-bindir | --bindir | --bindi | --bind | --bin | --bi)
527
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530
-build | --build | --buil | --bui | --bu)
531
ac_prev=build_alias ;;
532
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
533
build_alias=$ac_optarg ;;
535
-cache-file | --cache-file | --cache-fil | --cache-fi \
536
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537
ac_prev=cache_file ;;
538
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540
cache_file=$ac_optarg ;;
543
cache_file=config.cache ;;
545
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549
datadir=$ac_optarg ;;
551
-disable-* | --disable-*)
552
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553
# Reject names that are not valid shell variable names.
554
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
556
{ (exit 1); exit 1; }; }
557
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558
eval "enable_$ac_feature=no" ;;
560
-enable-* | --enable-*)
561
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562
# Reject names that are not valid shell variable names.
563
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
565
{ (exit 1); exit 1; }; }
566
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571
eval "enable_$ac_feature='$ac_optarg'" ;;
573
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575
| --exec | --exe | --ex)
576
ac_prev=exec_prefix ;;
577
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579
| --exec=* | --exe=* | --ex=*)
580
exec_prefix=$ac_optarg ;;
582
-gas | --gas | --ga | --g)
583
# Obsolete; use --with-gas.
586
-help | --help | --hel | --he | -h)
588
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589
ac_init_help=recursive ;;
590
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591
ac_init_help=short ;;
593
-host | --host | --hos | --ho)
594
ac_prev=host_alias ;;
595
-host=* | --host=* | --hos=* | --ho=*)
596
host_alias=$ac_optarg ;;
598
-includedir | --includedir | --includedi | --included | --include \
599
| --includ | --inclu | --incl | --inc)
600
ac_prev=includedir ;;
601
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602
| --includ=* | --inclu=* | --incl=* | --inc=*)
603
includedir=$ac_optarg ;;
605
-infodir | --infodir | --infodi | --infod | --info | --inf)
607
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608
infodir=$ac_optarg ;;
610
-libdir | --libdir | --libdi | --libd)
612
-libdir=* | --libdir=* | --libdi=* | --libd=*)
615
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616
| --libexe | --libex | --libe)
617
ac_prev=libexecdir ;;
618
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619
| --libexe=* | --libex=* | --libe=*)
620
libexecdir=$ac_optarg ;;
622
-localstatedir | --localstatedir | --localstatedi | --localstated \
623
| --localstate | --localstat | --localsta | --localst \
624
| --locals | --local | --loca | --loc | --lo)
625
ac_prev=localstatedir ;;
626
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
628
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629
localstatedir=$ac_optarg ;;
631
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637
# Obsolete; use --without-fp.
640
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
641
| --no-cr | --no-c | -n)
644
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
645
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650
| --oldin | --oldi | --old | --ol | --o)
651
ac_prev=oldincludedir ;;
652
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655
oldincludedir=$ac_optarg ;;
657
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662
-program-prefix | --program-prefix | --program-prefi | --program-pref \
663
| --program-pre | --program-pr | --program-p)
664
ac_prev=program_prefix ;;
665
-program-prefix=* | --program-prefix=* | --program-prefi=* \
666
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667
program_prefix=$ac_optarg ;;
669
-program-suffix | --program-suffix | --program-suffi | --program-suff \
670
| --program-suf | --program-su | --program-s)
671
ac_prev=program_suffix ;;
672
-program-suffix=* | --program-suffix=* | --program-suffi=* \
673
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674
program_suffix=$ac_optarg ;;
676
-program-transform-name | --program-transform-name \
677
| --program-transform-nam | --program-transform-na \
678
| --program-transform-n | --program-transform- \
679
| --program-transform | --program-transfor \
680
| --program-transfo | --program-transf \
681
| --program-trans | --program-tran \
682
| --progr-tra | --program-tr | --program-t)
683
ac_prev=program_transform_name ;;
684
-program-transform-name=* | --program-transform-name=* \
685
| --program-transform-nam=* | --program-transform-na=* \
686
| --program-transform-n=* | --program-transform-=* \
687
| --program-transform=* | --program-transfor=* \
688
| --program-transfo=* | --program-transf=* \
689
| --program-trans=* | --program-tran=* \
690
| --progr-tra=* | --program-tr=* | --program-t=*)
691
program_transform_name=$ac_optarg ;;
693
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
694
| -silent | --silent | --silen | --sile | --sil)
697
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701
sbindir=$ac_optarg ;;
703
-sharedstatedir | --sharedstatedir | --sharedstatedi \
704
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705
| --sharedst | --shareds | --shared | --share | --shar \
707
ac_prev=sharedstatedir ;;
708
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712
sharedstatedir=$ac_optarg ;;
714
-site | --site | --sit)
716
-site=* | --site=* | --sit=*)
719
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725
| --syscon | --sysco | --sysc | --sys | --sy)
726
ac_prev=sysconfdir ;;
727
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729
sysconfdir=$ac_optarg ;;
731
-target | --target | --targe | --targ | --tar | --ta | --t)
732
ac_prev=target_alias ;;
733
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734
target_alias=$ac_optarg ;;
736
-v | -verbose | --verbose | --verbos | --verbo | --verb)
739
-version | --version | --versio | --versi | --vers | -V)
743
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744
# Reject names that are not valid shell variable names.
745
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746
{ echo "$as_me: error: invalid package name: $ac_package" >&2
747
{ (exit 1); exit 1; }; }
748
ac_package=`echo $ac_package| sed 's/-/_/g'`
750
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753
eval "with_$ac_package='$ac_optarg'" ;;
755
-without-* | --without-*)
756
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757
# Reject names that are not valid shell variable names.
758
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759
{ echo "$as_me: error: invalid package name: $ac_package" >&2
760
{ (exit 1); exit 1; }; }
761
ac_package=`echo $ac_package | sed 's/-/_/g'`
762
eval "with_$ac_package=no" ;;
765
# Obsolete; use --with-x.
768
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769
| --x-incl | --x-inc | --x-in | --x-i)
770
ac_prev=x_includes ;;
771
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773
x_includes=$ac_optarg ;;
775
-x-libraries | --x-libraries | --x-librarie | --x-librari \
776
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777
ac_prev=x_libraries ;;
778
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780
x_libraries=$ac_optarg ;;
782
-*) { echo "$as_me: error: unrecognized option: $ac_option
783
Try \`$0 --help' for more information." >&2
784
{ (exit 1); exit 1; }; }
788
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789
# Reject names that are not valid shell variable names.
790
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792
{ (exit 1); exit 1; }; }
793
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794
eval "$ac_envvar='$ac_optarg'"
798
# FIXME: should be removed in autoconf 3.0.
799
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808
if test -n "$ac_prev"; then
809
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810
{ echo "$as_me: error: missing argument to $ac_option" >&2
811
{ (exit 1); exit 1; }; }
814
# Be sure to have absolute paths.
815
for ac_var in exec_prefix prefix
817
eval ac_val=$`echo $ac_var`
819
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821
{ (exit 1); exit 1; }; };;
825
# Be sure to have absolute paths.
826
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827
localstatedir libdir includedir oldincludedir infodir mandir
829
eval ac_val=$`echo $ac_var`
831
[\\/$]* | ?:[\\/]* ) ;;
832
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833
{ (exit 1); exit 1; }; };;
837
# There might be people who depend on the old broken behavior: `$host'
838
# used to hold the argument of --host etc.
839
# FIXME: To remove some day.
844
# FIXME: To remove some day.
845
if test "x$host_alias" != x; then
846
if test "x$build_alias" = x; then
847
cross_compiling=maybe
848
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849
If a cross compiler is detected then cross compile mode will be used." >&2
850
elif test "x$build_alias" != "x$host_alias"; then
856
test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
test "$silent" = yes && exec 6>/dev/null
861
# Find the source files, if location was not specified.
862
if test -z "$srcdir"; then
863
ac_srcdir_defaulted=yes
864
# Try the directory containing this script, then its parent.
865
ac_confdir=`(dirname "$0") 2>/dev/null ||
866
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867
X"$0" : 'X\(//\)[^/]' \| \
868
X"$0" : 'X\(//\)$' \| \
869
X"$0" : 'X\(/\)' \| \
870
. : '\(.\)' 2>/dev/null ||
872
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
874
/^X\(\/\/\)$/{ s//\1/; q; }
875
/^X\(\/\).*/{ s//\1/; q; }
878
if test ! -r $srcdir/$ac_unique_file; then
882
ac_srcdir_defaulted=no
884
if test ! -r $srcdir/$ac_unique_file; then
885
if test "$ac_srcdir_defaulted" = yes; then
886
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887
{ (exit 1); exit 1; }; }
889
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890
{ (exit 1); exit 1; }; }
893
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895
{ (exit 1); exit 1; }; }
896
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897
ac_env_build_alias_set=${build_alias+set}
898
ac_env_build_alias_value=$build_alias
899
ac_cv_env_build_alias_set=${build_alias+set}
900
ac_cv_env_build_alias_value=$build_alias
901
ac_env_host_alias_set=${host_alias+set}
902
ac_env_host_alias_value=$host_alias
903
ac_cv_env_host_alias_set=${host_alias+set}
904
ac_cv_env_host_alias_value=$host_alias
905
ac_env_target_alias_set=${target_alias+set}
906
ac_env_target_alias_value=$target_alias
907
ac_cv_env_target_alias_set=${target_alias+set}
908
ac_cv_env_target_alias_value=$target_alias
909
ac_env_CC_set=${CC+set}
911
ac_cv_env_CC_set=${CC+set}
912
ac_cv_env_CC_value=$CC
913
ac_env_CFLAGS_set=${CFLAGS+set}
914
ac_env_CFLAGS_value=$CFLAGS
915
ac_cv_env_CFLAGS_set=${CFLAGS+set}
916
ac_cv_env_CFLAGS_value=$CFLAGS
917
ac_env_LDFLAGS_set=${LDFLAGS+set}
918
ac_env_LDFLAGS_value=$LDFLAGS
919
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920
ac_cv_env_LDFLAGS_value=$LDFLAGS
921
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922
ac_env_CPPFLAGS_value=$CPPFLAGS
923
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925
ac_env_CPP_set=${CPP+set}
926
ac_env_CPP_value=$CPP
927
ac_cv_env_CPP_set=${CPP+set}
928
ac_cv_env_CPP_value=$CPP
929
ac_env_CXX_set=${CXX+set}
930
ac_env_CXX_value=$CXX
931
ac_cv_env_CXX_set=${CXX+set}
932
ac_cv_env_CXX_value=$CXX
933
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934
ac_env_CXXFLAGS_value=$CXXFLAGS
935
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937
ac_env_CXXCPP_set=${CXXCPP+set}
938
ac_env_CXXCPP_value=$CXXCPP
939
ac_cv_env_CXXCPP_set=${CXXCPP+set}
940
ac_cv_env_CXXCPP_value=$CXXCPP
941
ac_env_F77_set=${F77+set}
942
ac_env_F77_value=$F77
943
ac_cv_env_F77_set=${F77+set}
944
ac_cv_env_F77_value=$F77
945
ac_env_FFLAGS_set=${FFLAGS+set}
946
ac_env_FFLAGS_value=$FFLAGS
947
ac_cv_env_FFLAGS_set=${FFLAGS+set}
948
ac_cv_env_FFLAGS_value=$FFLAGS
951
# Report the --help message.
953
if test "$ac_init_help" = "long"; then
954
# Omit some internal or obsolete options to make the list less imposing.
955
# This message is too long to be a string in the A/UX 3.1 sh.
957
\`configure' configures this package to adapt to many kinds of systems.
959
Usage: $0 [OPTION]... [VAR=VALUE]...
961
To assign environment variables (e.g., CC, CFLAGS...), specify them as
962
VAR=VALUE. See below for descriptions of some of the useful variables.
964
Defaults for the options are specified in brackets.
967
-h, --help display this help and exit
968
--help=short display options specific to this package
969
--help=recursive display the short help of all the included packages
970
-V, --version display version information and exit
971
-q, --quiet, --silent do not print \`checking...' messages
972
--cache-file=FILE cache test results in FILE [disabled]
973
-C, --config-cache alias for \`--cache-file=config.cache'
974
-n, --no-create do not create output files
975
--srcdir=DIR find the sources in DIR [configure dir or \`..']
980
Installation directories:
981
--prefix=PREFIX install architecture-independent files in PREFIX
983
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986
By default, \`make install' will install all the files in
987
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989
for instance \`--prefix=\$HOME'.
991
For better control, use the options below.
993
Fine tuning of the installation directories:
994
--bindir=DIR user executables [EPREFIX/bin]
995
--sbindir=DIR system admin executables [EPREFIX/sbin]
996
--libexecdir=DIR program executables [EPREFIX/libexec]
997
--datadir=DIR read-only architecture-independent data [PREFIX/share]
998
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001
--libdir=DIR object code libraries [EPREFIX/lib]
1002
--includedir=DIR C header files [PREFIX/include]
1003
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1004
--infodir=DIR info documentation [PREFIX/info]
1005
--mandir=DIR man documentation [PREFIX/man]
1011
--x-includes=DIR X include files are in DIR
1012
--x-libraries=DIR X library files are in DIR
1015
--program-prefix=PREFIX prepend PREFIX to installed program names
1016
--program-suffix=SUFFIX append SUFFIX to installed program names
1017
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1020
--build=BUILD configure for building on BUILD [guessed]
1021
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1022
--target=TARGET configure for building compilers for TARGET [HOST]
1026
if test -n "$ac_init_help"; then
1031
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1032
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1033
--disable-dependency-tracking speeds up one-time build
1034
--enable-dependency-tracking do not reject slow dependency extractors
1035
--enable-static[=PKGS]
1036
build static libraries [default=no]
1037
--enable-shared[=PKGS]
1038
build shared libraries [default=yes]
1039
--enable-fast-install[=PKGS]
1040
optimize for fast installation [default=yes]
1041
--disable-libtool-lock avoid locking (might break parallel builds)
1042
--enable-maintainer-mode enable make rules and dependencies not useful
1043
(and sometimes confusing) to the casual installer
1044
--disable-bmp Doesn't compile bmp support
1045
--disable-dcx Doesn't compile dcx support
1046
--disable-doom Doesn't compile wad support
1047
--disable-gif Doesn't compile gif support
1048
--disable-hdr Doesn't compile hdr support
1049
--disable-icon Doesn't compile icon support
1050
--disable-jpeg Doesn't compile jpeg support
1051
--disable-lif Doesn't compile lif support
1052
--disable-lcms Doesn't compile lcms support
1053
--disable-mdl Doesn't compile mdl support
1054
--disable-mng Doesn't compile mng support
1055
--disable-pcd Doesn't compile pcd support
1056
--disable-pcx Doesn't compile pcx support
1057
--disable-pic Doesn't compile pic support
1058
--disable-pix Doesn't compile pix support
1059
--disable-png Doesn't compile png support
1060
--disable-pnm Doesn't compile pnm support
1061
--disable-psd Doesn't compile psd support
1062
--disable-psp Doesn't compile psp support
1063
--disable-pxr Doesn't compile pxr support
1064
--disable-raw Doesn't compile raw support
1065
--disable-sgi Doesn't compile sgi support
1066
--disable-tga Doesn't compile tga support
1067
--disable-tiff Doesn't compile tiff support
1068
--disable-wal Doesn't compile wal support
1069
--disable-xpm Doesn't compile xpm support
1070
--disable-allegro Doesn't compile allegro support
1071
--disable-directx Doesn't compile directx support
1072
--disable-opengl Doesn't compile opengl support
1073
--disable-sdl Doesn't compile sdl support
1074
--disable-win32 Doesn't compile win32 support
1075
--disable-release Compile a debug version of the library
1076
--disable-sdltest Do not try to compile and run a test SDL program
1079
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1080
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1081
--with-x use the X Window System
1082
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1083
--with-pic try to use only PIC/non-PIC objects [default=use
1086
include additional configurations [automatic]
1087
--with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1088
--with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1090
Some influential environment variables:
1091
CC C compiler command
1092
CFLAGS C compiler flags
1093
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1094
nonstandard directory <lib dir>
1095
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1096
headers in a nonstandard directory <include dir>
1098
CXX C++ compiler command
1099
CXXFLAGS C++ compiler flags
1100
CXXCPP C++ preprocessor
1101
F77 Fortran 77 compiler command
1102
FFLAGS Fortran 77 compiler flags
1104
Use these variables to override the choices made by `configure' or to help
1105
it to find libraries and programs with nonstandard names/locations.
1110
if test "$ac_init_help" = "recursive"; then
1111
# If there are subdirs, report their specific --help.
1113
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1114
test -d $ac_dir || continue
1117
if test "$ac_dir" != .; then
1118
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1119
# A "../" for each directory in $ac_dir_suffix.
1120
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1122
ac_dir_suffix= ac_top_builddir=
1126
.) # No --srcdir option. We are building in place.
1128
if test -z "$ac_top_builddir"; then
1131
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1133
[\\/]* | ?:[\\/]* ) # Absolute path.
1134
ac_srcdir=$srcdir$ac_dir_suffix;
1135
ac_top_srcdir=$srcdir ;;
1137
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1138
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1141
# Do not use `cd foo && pwd` to compute absolute paths, because
1142
# the directories may not exist.
1144
.) ac_abs_builddir="$ac_dir";;
1147
.) ac_abs_builddir=`pwd`;;
1148
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1149
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1152
case $ac_abs_builddir in
1153
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1155
case ${ac_top_builddir}. in
1156
.) ac_abs_top_builddir=$ac_abs_builddir;;
1157
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1158
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1161
case $ac_abs_builddir in
1162
.) ac_abs_srcdir=$ac_srcdir;;
1165
.) ac_abs_srcdir=$ac_abs_builddir;;
1166
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1167
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1170
case $ac_abs_builddir in
1171
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1173
case $ac_top_srcdir in
1174
.) ac_abs_top_srcdir=$ac_abs_builddir;;
1175
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1176
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1181
# Check for guested configure; otherwise get Cygnus style configure.
1182
if test -f $ac_srcdir/configure.gnu; then
1184
$SHELL $ac_srcdir/configure.gnu --help=recursive
1185
elif test -f $ac_srcdir/configure; then
1187
$SHELL $ac_srcdir/configure --help=recursive
1188
elif test -f $ac_srcdir/configure.ac ||
1189
test -f $ac_srcdir/configure.in; then
1191
$ac_configure --help
1193
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1199
test -n "$ac_init_help" && exit 0
1200
if $ac_init_version; then
1203
Copyright (C) 2003 Free Software Foundation, Inc.
1204
This configure script is free software; the Free Software Foundation
1205
gives unlimited permission to copy, distribute and modify it.
1211
This file contains any messages produced by compilers while
1212
running configure, to aid debugging if configure makes a mistake.
1214
It was created by $as_me, which was
1215
generated by GNU Autoconf 2.59. Invocation command line was
1226
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1227
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1228
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1229
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1230
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1232
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1233
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1235
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1236
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1237
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1238
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1239
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1240
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1241
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1245
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1249
test -z "$as_dir" && as_dir=.
1250
echo "PATH: $as_dir"
1265
# Keep a trace of the command line.
1266
# Strip out --no-create and --no-recursion so they do not pile up.
1267
# Strip out --silent because we don't want to record it for future runs.
1268
# Also quote any args containing shell meta-characters.
1269
# Make two passes to allow for proper duplicate-argument suppression.
1274
ac_must_keep_next=false
1280
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1281
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1282
| -silent | --silent | --silen | --sile | --sil)
1284
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1288
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1290
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1291
if test $ac_must_keep_next = true; then
1292
ac_must_keep_next=false # Got value, back to normal.
1295
*=* | --config-cache | -C | -disable-* | --disable-* \
1296
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1297
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1298
| -with-* | --with-* | -without-* | --without-* | --x)
1299
case "$ac_configure_args0 " in
1300
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1303
-* ) ac_must_keep_next=true ;;
1306
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1307
# Get rid of the leading space.
1313
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1314
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1316
# When interrupted or exit'd, cleanup temporary files, and complete
1317
# config.log. We remove comments because anyway the quotes in there
1318
# would cause problems or look ugly.
1319
# WARNING: Be sure not to use single quotes in there, as some shells,
1320
# such as our DU 5.0 friend, will then `close' the trap.
1321
trap 'exit_status=$?
1322
# Save into config.log some information that might help in debugging.
1327
## ---------------- ##
1328
## Cache variables. ##
1329
## ---------------- ##
1332
# The following way of writing the cache mishandles newlines in values,
1335
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1338
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1339
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1343
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1350
## ----------------- ##
1351
## Output variables. ##
1352
## ----------------- ##
1355
for ac_var in $ac_subst_vars
1357
eval ac_val=$`echo $ac_var`
1358
echo "$ac_var='"'"'$ac_val'"'"'"
1362
if test -n "$ac_subst_files"; then
1369
for ac_var in $ac_subst_files
1371
eval ac_val=$`echo $ac_var`
1372
echo "$ac_var='"'"'$ac_val'"'"'"
1377
if test -s confdefs.h; then
1384
sed "/^$/d" confdefs.h | sort
1387
test "$ac_signal" != 0 &&
1388
echo "$as_me: caught signal $ac_signal"
1389
echo "$as_me: exit $exit_status"
1391
rm -f core *.core &&
1392
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1395
for ac_signal in 1 2 13 15; do
1396
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1400
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1401
rm -rf conftest* confdefs.h
1402
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1405
# Predefined preprocessor variables.
1407
cat >>confdefs.h <<_ACEOF
1408
#define PACKAGE_NAME "$PACKAGE_NAME"
1412
cat >>confdefs.h <<_ACEOF
1413
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1417
cat >>confdefs.h <<_ACEOF
1418
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1422
cat >>confdefs.h <<_ACEOF
1423
#define PACKAGE_STRING "$PACKAGE_STRING"
1427
cat >>confdefs.h <<_ACEOF
1428
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1432
# Let the site file select an alternate cache file if it wants to.
1433
# Prefer explicitly selected file to automatically selected ones.
1434
if test -z "$CONFIG_SITE"; then
1435
if test "x$prefix" != xNONE; then
1436
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1438
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1441
for ac_site_file in $CONFIG_SITE; do
1442
if test -r "$ac_site_file"; then
1443
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1444
echo "$as_me: loading site script $ac_site_file" >&6;}
1445
sed 's/^/| /' "$ac_site_file" >&5
1450
if test -r "$cache_file"; then
1451
# Some versions of bash will fail to source /dev/null (special
1452
# files actually), so we avoid doing that.
1453
if test -f "$cache_file"; then
1454
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1455
echo "$as_me: loading cache $cache_file" >&6;}
1457
[\\/]* | ?:[\\/]* ) . $cache_file;;
1458
*) . ./$cache_file;;
1462
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1463
echo "$as_me: creating cache $cache_file" >&6;}
1467
# Check that the precious variables saved in the cache have kept the same
1469
ac_cache_corrupted=false
1470
for ac_var in `(set) 2>&1 |
1471
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1472
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1473
eval ac_new_set=\$ac_env_${ac_var}_set
1474
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1475
eval ac_new_val="\$ac_env_${ac_var}_value"
1476
case $ac_old_set,$ac_new_set in
1478
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1479
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1480
ac_cache_corrupted=: ;;
1482
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1483
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1484
ac_cache_corrupted=: ;;
1487
if test "x$ac_old_val" != "x$ac_new_val"; then
1488
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1489
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1490
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1491
echo "$as_me: former value: $ac_old_val" >&2;}
1492
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1493
echo "$as_me: current value: $ac_new_val" >&2;}
1494
ac_cache_corrupted=:
1497
# Pass precious variables to config.status.
1498
if test "$ac_new_set" = set; then
1500
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1501
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1502
*) ac_arg=$ac_var=$ac_new_val ;;
1504
case " $ac_configure_args " in
1505
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1506
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1510
if $ac_cache_corrupted; then
1511
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1512
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1513
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1514
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1515
{ (exit 1); exit 1; }; }
1519
ac_cpp='$CPP $CPPFLAGS'
1520
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1521
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1522
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1550
DEVIL_VERSION=$DEVIL_MAJOR$DEVIL_MINOR$DEVIL_REVISION
1552
DEVIL_LTVERSION=1:0:0
1558
for ac_dir in libtools $srcdir/libtools; do
1559
if test -f $ac_dir/install-sh; then
1561
ac_install_sh="$ac_aux_dir/install-sh -c"
1563
elif test -f $ac_dir/install.sh; then
1565
ac_install_sh="$ac_aux_dir/install.sh -c"
1567
elif test -f $ac_dir/shtool; then
1569
ac_install_sh="$ac_aux_dir/shtool install -c"
1573
if test -z "$ac_aux_dir"; then
1574
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in libtools $srcdir/libtools" >&5
1575
echo "$as_me: error: cannot find install-sh or install.sh in libtools $srcdir/libtools" >&2;}
1576
{ (exit 1); exit 1; }; }
1578
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1579
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1580
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1583
# Make sure we can run config.sub.
1584
$ac_config_sub sun4 >/dev/null 2>&1 ||
1585
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1586
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1587
{ (exit 1); exit 1; }; }
1589
echo "$as_me:$LINENO: checking build system type" >&5
1590
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1591
if test "${ac_cv_build+set}" = set; then
1592
echo $ECHO_N "(cached) $ECHO_C" >&6
1594
ac_cv_build_alias=$build_alias
1595
test -z "$ac_cv_build_alias" &&
1596
ac_cv_build_alias=`$ac_config_guess`
1597
test -z "$ac_cv_build_alias" &&
1598
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1599
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1600
{ (exit 1); exit 1; }; }
1601
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1602
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1603
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1604
{ (exit 1); exit 1; }; }
1607
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1608
echo "${ECHO_T}$ac_cv_build" >&6
1610
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1611
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1612
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1615
echo "$as_me:$LINENO: checking host system type" >&5
1616
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1617
if test "${ac_cv_host+set}" = set; then
1618
echo $ECHO_N "(cached) $ECHO_C" >&6
1620
ac_cv_host_alias=$host_alias
1621
test -z "$ac_cv_host_alias" &&
1622
ac_cv_host_alias=$ac_cv_build_alias
1623
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1624
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1625
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1626
{ (exit 1); exit 1; }; }
1629
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1630
echo "${ECHO_T}$ac_cv_host" >&6
1632
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1633
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1634
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1637
echo "$as_me:$LINENO: checking target system type" >&5
1638
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1639
if test "${ac_cv_target+set}" = set; then
1640
echo $ECHO_N "(cached) $ECHO_C" >&6
1642
ac_cv_target_alias=$target_alias
1643
test "x$ac_cv_target_alias" = "x" &&
1644
ac_cv_target_alias=$ac_cv_host_alias
1645
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1646
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1647
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1648
{ (exit 1); exit 1; }; }
1651
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1652
echo "${ECHO_T}$ac_cv_target" >&6
1653
target=$ac_cv_target
1654
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1655
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1656
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1659
# The aliases save the names the user supplied, while $host etc.
1660
# will get canonicalized.
1661
test -n "$target_alias" &&
1662
test "$program_prefix$program_suffix$program_transform_name" = \
1664
program_prefix=${target_alias}-
1666
ac_cpp='$CPP $CPPFLAGS'
1667
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1668
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1669
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1672
ac_cpp='$CPP $CPPFLAGS'
1673
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1674
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1675
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1676
if test -n "$ac_tool_prefix"; then
1677
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1678
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1679
echo "$as_me:$LINENO: checking for $ac_word" >&5
1680
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681
if test "${ac_cv_prog_CC+set}" = set; then
1682
echo $ECHO_N "(cached) $ECHO_C" >&6
1684
if test -n "$CC"; then
1685
ac_cv_prog_CC="$CC" # Let the user override the test.
1687
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691
test -z "$as_dir" && as_dir=.
1692
for ac_exec_ext in '' $ac_executable_extensions; do
1693
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1695
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1704
if test -n "$CC"; then
1705
echo "$as_me:$LINENO: result: $CC" >&5
1706
echo "${ECHO_T}$CC" >&6
1708
echo "$as_me:$LINENO: result: no" >&5
1709
echo "${ECHO_T}no" >&6
1713
if test -z "$ac_cv_prog_CC"; then
1715
# Extract the first word of "gcc", so it can be a program name with args.
1716
set dummy gcc; ac_word=$2
1717
echo "$as_me:$LINENO: checking for $ac_word" >&5
1718
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1720
echo $ECHO_N "(cached) $ECHO_C" >&6
1722
if test -n "$ac_ct_CC"; then
1723
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1725
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729
test -z "$as_dir" && as_dir=.
1730
for ac_exec_ext in '' $ac_executable_extensions; do
1731
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732
ac_cv_prog_ac_ct_CC="gcc"
1733
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1742
if test -n "$ac_ct_CC"; then
1743
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1744
echo "${ECHO_T}$ac_ct_CC" >&6
1746
echo "$as_me:$LINENO: result: no" >&5
1747
echo "${ECHO_T}no" >&6
1755
if test -z "$CC"; then
1756
if test -n "$ac_tool_prefix"; then
1757
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1758
set dummy ${ac_tool_prefix}cc; ac_word=$2
1759
echo "$as_me:$LINENO: checking for $ac_word" >&5
1760
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1761
if test "${ac_cv_prog_CC+set}" = set; then
1762
echo $ECHO_N "(cached) $ECHO_C" >&6
1764
if test -n "$CC"; then
1765
ac_cv_prog_CC="$CC" # Let the user override the test.
1767
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1771
test -z "$as_dir" && as_dir=.
1772
for ac_exec_ext in '' $ac_executable_extensions; do
1773
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1774
ac_cv_prog_CC="${ac_tool_prefix}cc"
1775
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1784
if test -n "$CC"; then
1785
echo "$as_me:$LINENO: result: $CC" >&5
1786
echo "${ECHO_T}$CC" >&6
1788
echo "$as_me:$LINENO: result: no" >&5
1789
echo "${ECHO_T}no" >&6
1793
if test -z "$ac_cv_prog_CC"; then
1795
# Extract the first word of "cc", so it can be a program name with args.
1796
set dummy cc; ac_word=$2
1797
echo "$as_me:$LINENO: checking for $ac_word" >&5
1798
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1800
echo $ECHO_N "(cached) $ECHO_C" >&6
1802
if test -n "$ac_ct_CC"; then
1803
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1805
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1809
test -z "$as_dir" && as_dir=.
1810
for ac_exec_ext in '' $ac_executable_extensions; do
1811
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1812
ac_cv_prog_ac_ct_CC="cc"
1813
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1822
if test -n "$ac_ct_CC"; then
1823
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1824
echo "${ECHO_T}$ac_ct_CC" >&6
1826
echo "$as_me:$LINENO: result: no" >&5
1827
echo "${ECHO_T}no" >&6
1836
if test -z "$CC"; then
1837
# Extract the first word of "cc", so it can be a program name with args.
1838
set dummy cc; ac_word=$2
1839
echo "$as_me:$LINENO: checking for $ac_word" >&5
1840
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1841
if test "${ac_cv_prog_CC+set}" = set; then
1842
echo $ECHO_N "(cached) $ECHO_C" >&6
1844
if test -n "$CC"; then
1845
ac_cv_prog_CC="$CC" # Let the user override the test.
1848
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852
test -z "$as_dir" && as_dir=.
1853
for ac_exec_ext in '' $ac_executable_extensions; do
1854
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1855
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1856
ac_prog_rejected=yes
1860
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866
if test $ac_prog_rejected = yes; then
1867
# We found a bogon in the path, so make sure we never use it.
1868
set dummy $ac_cv_prog_CC
1870
if test $# != 0; then
1871
# We chose a different compiler from the bogus one.
1872
# However, it has the same basename, so the bogon will be chosen
1873
# first if we set CC to just the basename; use the full file name.
1875
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1881
if test -n "$CC"; then
1882
echo "$as_me:$LINENO: result: $CC" >&5
1883
echo "${ECHO_T}$CC" >&6
1885
echo "$as_me:$LINENO: result: no" >&5
1886
echo "${ECHO_T}no" >&6
1890
if test -z "$CC"; then
1891
if test -n "$ac_tool_prefix"; then
1894
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1895
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1896
echo "$as_me:$LINENO: checking for $ac_word" >&5
1897
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898
if test "${ac_cv_prog_CC+set}" = set; then
1899
echo $ECHO_N "(cached) $ECHO_C" >&6
1901
if test -n "$CC"; then
1902
ac_cv_prog_CC="$CC" # Let the user override the test.
1904
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908
test -z "$as_dir" && as_dir=.
1909
for ac_exec_ext in '' $ac_executable_extensions; do
1910
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1912
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921
if test -n "$CC"; then
1922
echo "$as_me:$LINENO: result: $CC" >&5
1923
echo "${ECHO_T}$CC" >&6
1925
echo "$as_me:$LINENO: result: no" >&5
1926
echo "${ECHO_T}no" >&6
1929
test -n "$CC" && break
1932
if test -z "$CC"; then
1936
# Extract the first word of "$ac_prog", so it can be a program name with args.
1937
set dummy $ac_prog; ac_word=$2
1938
echo "$as_me:$LINENO: checking for $ac_word" >&5
1939
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1941
echo $ECHO_N "(cached) $ECHO_C" >&6
1943
if test -n "$ac_ct_CC"; then
1944
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1946
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1950
test -z "$as_dir" && as_dir=.
1951
for ac_exec_ext in '' $ac_executable_extensions; do
1952
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953
ac_cv_prog_ac_ct_CC="$ac_prog"
1954
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1963
if test -n "$ac_ct_CC"; then
1964
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1965
echo "${ECHO_T}$ac_ct_CC" >&6
1967
echo "$as_me:$LINENO: result: no" >&5
1968
echo "${ECHO_T}no" >&6
1971
test -n "$ac_ct_CC" && break
1980
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1981
See \`config.log' for more details." >&5
1982
echo "$as_me: error: no acceptable C compiler found in \$PATH
1983
See \`config.log' for more details." >&2;}
1984
{ (exit 1); exit 1; }; }
1986
# Provide some information about the compiler.
1987
echo "$as_me:$LINENO:" \
1988
"checking for C compiler version" >&5
1989
ac_compiler=`set X $ac_compile; echo $2`
1990
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1991
(eval $ac_compiler --version </dev/null >&5) 2>&5
1993
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994
(exit $ac_status); }
1995
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1996
(eval $ac_compiler -v </dev/null >&5) 2>&5
1998
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999
(exit $ac_status); }
2000
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2001
(eval $ac_compiler -V </dev/null >&5) 2>&5
2003
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004
(exit $ac_status); }
2006
cat >conftest.$ac_ext <<_ACEOF
2009
cat confdefs.h >>conftest.$ac_ext
2010
cat >>conftest.$ac_ext <<_ACEOF
2011
/* end confdefs.h. */
2021
ac_clean_files_save=$ac_clean_files
2022
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2023
# Try to create an executable without -o first, disregard a.out.
2024
# It will help us diagnose broken compilers, and finding out an intuition
2026
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2027
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2028
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2029
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2030
(eval $ac_link_default) 2>&5
2032
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033
(exit $ac_status); }; then
2034
# Find the output, starting from the most likely. This scheme is
2035
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2038
# Be careful to initialize this variable, since it used to be cached.
2039
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2041
# b.out is created by i960 compilers.
2042
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2044
test -f "$ac_file" || continue
2046
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2049
# This is the source file.
2052
# We found the default executable, but exeext='' is most
2056
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2057
# FIXME: I believe we export ac_cv_exeext for Libtool,
2058
# but it would be cool to find out if it's true. Does anybody
2059
# maintain Libtool? --akim.
2067
echo "$as_me: failed program was:" >&5
2068
sed 's/^/| /' conftest.$ac_ext >&5
2070
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2071
See \`config.log' for more details." >&5
2072
echo "$as_me: error: C compiler cannot create executables
2073
See \`config.log' for more details." >&2;}
2074
{ (exit 77); exit 77; }; }
2077
ac_exeext=$ac_cv_exeext
2078
echo "$as_me:$LINENO: result: $ac_file" >&5
2079
echo "${ECHO_T}$ac_file" >&6
2081
# Check the compiler produces executables we can run. If not, either
2082
# the compiler is broken, or we cross compile.
2083
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2084
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2085
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2086
# If not cross compiling, check that we can run a simple program.
2087
if test "$cross_compiling" != yes; then
2088
if { ac_try='./$ac_file'
2089
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093
(exit $ac_status); }; }; then
2096
if test "$cross_compiling" = maybe; then
2099
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2100
If you meant to cross compile, use \`--host'.
2101
See \`config.log' for more details." >&5
2102
echo "$as_me: error: cannot run C compiled programs.
2103
If you meant to cross compile, use \`--host'.
2104
See \`config.log' for more details." >&2;}
2105
{ (exit 1); exit 1; }; }
2109
echo "$as_me:$LINENO: result: yes" >&5
2110
echo "${ECHO_T}yes" >&6
2112
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2113
ac_clean_files=$ac_clean_files_save
2114
# Check the compiler produces executables we can run. If not, either
2115
# the compiler is broken, or we cross compile.
2116
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2117
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2118
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2119
echo "${ECHO_T}$cross_compiling" >&6
2121
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2122
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2123
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2124
(eval $ac_link) 2>&5
2126
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127
(exit $ac_status); }; then
2128
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2129
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2130
# work properly (i.e., refer to `conftest.exe'), while it won't with
2132
for ac_file in conftest.exe conftest conftest.*; do
2133
test -f "$ac_file" || continue
2135
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2136
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2143
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2144
See \`config.log' for more details." >&5
2145
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2146
See \`config.log' for more details." >&2;}
2147
{ (exit 1); exit 1; }; }
2150
rm -f conftest$ac_cv_exeext
2151
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2152
echo "${ECHO_T}$ac_cv_exeext" >&6
2154
rm -f conftest.$ac_ext
2155
EXEEXT=$ac_cv_exeext
2157
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2158
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2159
if test "${ac_cv_objext+set}" = set; then
2160
echo $ECHO_N "(cached) $ECHO_C" >&6
2162
cat >conftest.$ac_ext <<_ACEOF
2165
cat confdefs.h >>conftest.$ac_ext
2166
cat >>conftest.$ac_ext <<_ACEOF
2167
/* end confdefs.h. */
2177
rm -f conftest.o conftest.obj
2178
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2179
(eval $ac_compile) 2>&5
2181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182
(exit $ac_status); }; then
2183
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2185
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2186
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2191
echo "$as_me: failed program was:" >&5
2192
sed 's/^/| /' conftest.$ac_ext >&5
2194
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2195
See \`config.log' for more details." >&5
2196
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2197
See \`config.log' for more details." >&2;}
2198
{ (exit 1); exit 1; }; }
2201
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2203
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2204
echo "${ECHO_T}$ac_cv_objext" >&6
2205
OBJEXT=$ac_cv_objext
2207
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2208
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2209
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2210
echo $ECHO_N "(cached) $ECHO_C" >&6
2212
cat >conftest.$ac_ext <<_ACEOF
2215
cat confdefs.h >>conftest.$ac_ext
2216
cat >>conftest.$ac_ext <<_ACEOF
2217
/* end confdefs.h. */
2230
rm -f conftest.$ac_objext
2231
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2232
(eval $ac_compile) 2>conftest.er1
2234
grep -v '^ *+' conftest.er1 >conftest.err
2236
cat conftest.err >&5
2237
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238
(exit $ac_status); } &&
2239
{ ac_try='test -z "$ac_c_werror_flag"
2240
|| test ! -s conftest.err'
2241
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245
(exit $ac_status); }; } &&
2246
{ ac_try='test -s conftest.$ac_objext'
2247
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251
(exit $ac_status); }; }; then
2254
echo "$as_me: failed program was:" >&5
2255
sed 's/^/| /' conftest.$ac_ext >&5
2259
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2260
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2263
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2264
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2265
GCC=`test $ac_compiler_gnu = yes && echo yes`
2266
ac_test_CFLAGS=${CFLAGS+set}
2267
ac_save_CFLAGS=$CFLAGS
2269
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2270
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2271
if test "${ac_cv_prog_cc_g+set}" = set; then
2272
echo $ECHO_N "(cached) $ECHO_C" >&6
2274
cat >conftest.$ac_ext <<_ACEOF
2277
cat confdefs.h >>conftest.$ac_ext
2278
cat >>conftest.$ac_ext <<_ACEOF
2279
/* end confdefs.h. */
2289
rm -f conftest.$ac_objext
2290
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2291
(eval $ac_compile) 2>conftest.er1
2293
grep -v '^ *+' conftest.er1 >conftest.err
2295
cat conftest.err >&5
2296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297
(exit $ac_status); } &&
2298
{ ac_try='test -z "$ac_c_werror_flag"
2299
|| test ! -s conftest.err'
2300
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304
(exit $ac_status); }; } &&
2305
{ ac_try='test -s conftest.$ac_objext'
2306
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310
(exit $ac_status); }; }; then
2313
echo "$as_me: failed program was:" >&5
2314
sed 's/^/| /' conftest.$ac_ext >&5
2318
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2320
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2321
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2322
if test "$ac_test_CFLAGS" = set; then
2323
CFLAGS=$ac_save_CFLAGS
2324
elif test $ac_cv_prog_cc_g = yes; then
2325
if test "$GCC" = yes; then
2331
if test "$GCC" = yes; then
2337
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2338
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2339
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2340
echo $ECHO_N "(cached) $ECHO_C" >&6
2342
ac_cv_prog_cc_stdc=no
2344
cat >conftest.$ac_ext <<_ACEOF
2347
cat confdefs.h >>conftest.$ac_ext
2348
cat >>conftest.$ac_ext <<_ACEOF
2349
/* end confdefs.h. */
2352
#include <sys/types.h>
2353
#include <sys/stat.h>
2354
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2355
struct buf { int x; };
2356
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2357
static char *e (p, i)
2363
static char *f (char * (*g) (char **, int), char **p, ...)
2368
s = g (p, va_arg (v,int));
2373
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2374
function prototypes and stuff, but not '\xHH' hex character constants.
2375
These don't provoke an error unfortunately, instead are silently treated
2376
as 'x'. The following induces an error, until -std1 is added to get
2377
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2378
array size at least. It's necessary to write '\x00'==0 to get something
2379
that's true only with -std1. */
2380
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2382
int test (int i, double x);
2383
struct s1 {int (*f) (int a);};
2384
struct s2 {int (*f) (double a);};
2385
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2391
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2396
# Don't try gcc -ansi; that turns off useful extensions and
2397
# breaks some systems' header files.
2398
# AIX -qlanglvl=ansi
2399
# Ultrix and OSF/1 -std1
2400
# HP-UX 10.20 and later -Ae
2401
# HP-UX older versions -Aa -D_HPUX_SOURCE
2402
# SVR4 -Xc -D__EXTENSIONS__
2403
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2405
CC="$ac_save_CC $ac_arg"
2406
rm -f conftest.$ac_objext
2407
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2408
(eval $ac_compile) 2>conftest.er1
2410
grep -v '^ *+' conftest.er1 >conftest.err
2412
cat conftest.err >&5
2413
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414
(exit $ac_status); } &&
2415
{ ac_try='test -z "$ac_c_werror_flag"
2416
|| test ! -s conftest.err'
2417
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421
(exit $ac_status); }; } &&
2422
{ ac_try='test -s conftest.$ac_objext'
2423
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427
(exit $ac_status); }; }; then
2428
ac_cv_prog_cc_stdc=$ac_arg
2431
echo "$as_me: failed program was:" >&5
2432
sed 's/^/| /' conftest.$ac_ext >&5
2435
rm -f conftest.err conftest.$ac_objext
2437
rm -f conftest.$ac_ext conftest.$ac_objext
2442
case "x$ac_cv_prog_cc_stdc" in
2444
echo "$as_me:$LINENO: result: none needed" >&5
2445
echo "${ECHO_T}none needed" >&6 ;;
2447
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2448
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2449
CC="$CC $ac_cv_prog_cc_stdc" ;;
2452
# Some people use a C++ compiler to compile C. Since we use `exit',
2453
# in C++ we need to declare it. In case someone uses the same compiler
2454
# for both compiling C and C++ we need to have the C++ compiler decide
2455
# the declaration of exit, since it's the most demanding environment.
2456
cat >conftest.$ac_ext <<_ACEOF
2461
rm -f conftest.$ac_objext
2462
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2463
(eval $ac_compile) 2>conftest.er1
2465
grep -v '^ *+' conftest.er1 >conftest.err
2467
cat conftest.err >&5
2468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469
(exit $ac_status); } &&
2470
{ ac_try='test -z "$ac_c_werror_flag"
2471
|| test ! -s conftest.err'
2472
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476
(exit $ac_status); }; } &&
2477
{ ac_try='test -s conftest.$ac_objext'
2478
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482
(exit $ac_status); }; }; then
2483
for ac_declaration in \
2485
'extern "C" void std::exit (int) throw (); using std::exit;' \
2486
'extern "C" void std::exit (int); using std::exit;' \
2487
'extern "C" void exit (int) throw ();' \
2488
'extern "C" void exit (int);' \
2491
cat >conftest.$ac_ext <<_ACEOF
2494
cat confdefs.h >>conftest.$ac_ext
2495
cat >>conftest.$ac_ext <<_ACEOF
2496
/* end confdefs.h. */
2507
rm -f conftest.$ac_objext
2508
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509
(eval $ac_compile) 2>conftest.er1
2511
grep -v '^ *+' conftest.er1 >conftest.err
2513
cat conftest.err >&5
2514
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515
(exit $ac_status); } &&
2516
{ ac_try='test -z "$ac_c_werror_flag"
2517
|| test ! -s conftest.err'
2518
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522
(exit $ac_status); }; } &&
2523
{ ac_try='test -s conftest.$ac_objext'
2524
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528
(exit $ac_status); }; }; then
2531
echo "$as_me: failed program was:" >&5
2532
sed 's/^/| /' conftest.$ac_ext >&5
2536
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2537
cat >conftest.$ac_ext <<_ACEOF
2540
cat confdefs.h >>conftest.$ac_ext
2541
cat >>conftest.$ac_ext <<_ACEOF
2542
/* end confdefs.h. */
2552
rm -f conftest.$ac_objext
2553
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554
(eval $ac_compile) 2>conftest.er1
2556
grep -v '^ *+' conftest.er1 >conftest.err
2558
cat conftest.err >&5
2559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560
(exit $ac_status); } &&
2561
{ ac_try='test -z "$ac_c_werror_flag"
2562
|| test ! -s conftest.err'
2563
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567
(exit $ac_status); }; } &&
2568
{ ac_try='test -s conftest.$ac_objext'
2569
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573
(exit $ac_status); }; }; then
2576
echo "$as_me: failed program was:" >&5
2577
sed 's/^/| /' conftest.$ac_ext >&5
2580
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2583
if test -n "$ac_declaration"; then
2584
echo '#ifdef __cplusplus' >>confdefs.h
2585
echo $ac_declaration >>confdefs.h
2586
echo '#endif' >>confdefs.h
2590
echo "$as_me: failed program was:" >&5
2591
sed 's/^/| /' conftest.$ac_ext >&5
2594
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2596
ac_cpp='$CPP $CPPFLAGS'
2597
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2598
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2599
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2601
# Find a good install program. We prefer a C program (faster),
2602
# so one script is as good as another. But avoid the broken or
2603
# incompatible versions:
2604
# SysV /etc/install, /usr/sbin/install
2605
# SunOS /usr/etc/install
2606
# IRIX /sbin/install
2608
# AmigaOS /C/install, which installs bootblocks on floppy discs
2609
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2610
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2611
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2612
# OS/2's system install, which has a completely different semantic
2613
# ./install, which can be erroneously created by make from ./install.sh.
2614
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2615
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2616
if test -z "$INSTALL"; then
2617
if test "${ac_cv_path_install+set}" = set; then
2618
echo $ECHO_N "(cached) $ECHO_C" >&6
2620
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624
test -z "$as_dir" && as_dir=.
2625
# Account for people who put trailing slashes in PATH elements.
2627
./ | .// | /cC/* | \
2628
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2629
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2632
# OSF1 and SCO ODT 3.0 have their own names for install.
2633
# Don't use installbsd from OSF since it installs stuff as root
2635
for ac_prog in ginstall scoinst install; do
2636
for ac_exec_ext in '' $ac_executable_extensions; do
2637
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2638
if test $ac_prog = install &&
2639
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2640
# AIX install. It has an incompatible calling convention.
2642
elif test $ac_prog = install &&
2643
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2644
# program-specific install script used by HP pwplus--don't use.
2647
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2659
if test "${ac_cv_path_install+set}" = set; then
2660
INSTALL=$ac_cv_path_install
2662
# As a last resort, use the slow shell script. We don't cache a
2663
# path for INSTALL within a source directory, because that will
2664
# break other packages using the cache if that directory is
2665
# removed, or if the path is relative.
2666
INSTALL=$ac_install_sh
2669
echo "$as_me:$LINENO: result: $INSTALL" >&5
2670
echo "${ECHO_T}$INSTALL" >&6
2672
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2673
# It thinks the first close brace ends the variable substitution.
2674
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2676
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2678
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2680
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2681
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2682
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2683
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2684
echo $ECHO_N "(cached) $ECHO_C" >&6
2686
cat >conftest.make <<\_ACEOF
2688
@echo 'ac_maketemp="$(MAKE)"'
2690
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2691
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2692
if test -n "$ac_maketemp"; then
2693
eval ac_cv_prog_make_${ac_make}_set=yes
2695
eval ac_cv_prog_make_${ac_make}_set=no
2699
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2700
echo "$as_me:$LINENO: result: yes" >&5
2701
echo "${ECHO_T}yes" >&6
2704
echo "$as_me:$LINENO: result: no" >&5
2705
echo "${ECHO_T}no" >&6
2706
SET_MAKE="MAKE=${MAKE-make}"
2710
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2711
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2712
if test "${ac_cv_c_bigendian+set}" = set; then
2713
echo $ECHO_N "(cached) $ECHO_C" >&6
2715
# See if sys/param.h defines the BYTE_ORDER macro.
2716
cat >conftest.$ac_ext <<_ACEOF
2719
cat confdefs.h >>conftest.$ac_ext
2720
cat >>conftest.$ac_ext <<_ACEOF
2721
/* end confdefs.h. */
2722
#include <sys/types.h>
2723
#include <sys/param.h>
2728
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2736
rm -f conftest.$ac_objext
2737
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2738
(eval $ac_compile) 2>conftest.er1
2740
grep -v '^ *+' conftest.er1 >conftest.err
2742
cat conftest.err >&5
2743
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744
(exit $ac_status); } &&
2745
{ ac_try='test -z "$ac_c_werror_flag"
2746
|| test ! -s conftest.err'
2747
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751
(exit $ac_status); }; } &&
2752
{ ac_try='test -s conftest.$ac_objext'
2753
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757
(exit $ac_status); }; }; then
2758
# It does; now see whether it defined to BIG_ENDIAN or not.
2759
cat >conftest.$ac_ext <<_ACEOF
2762
cat confdefs.h >>conftest.$ac_ext
2763
cat >>conftest.$ac_ext <<_ACEOF
2764
/* end confdefs.h. */
2765
#include <sys/types.h>
2766
#include <sys/param.h>
2771
#if BYTE_ORDER != BIG_ENDIAN
2779
rm -f conftest.$ac_objext
2780
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781
(eval $ac_compile) 2>conftest.er1
2783
grep -v '^ *+' conftest.er1 >conftest.err
2785
cat conftest.err >&5
2786
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787
(exit $ac_status); } &&
2788
{ ac_try='test -z "$ac_c_werror_flag"
2789
|| test ! -s conftest.err'
2790
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794
(exit $ac_status); }; } &&
2795
{ ac_try='test -s conftest.$ac_objext'
2796
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800
(exit $ac_status); }; }; then
2801
ac_cv_c_bigendian=yes
2803
echo "$as_me: failed program was:" >&5
2804
sed 's/^/| /' conftest.$ac_ext >&5
2806
ac_cv_c_bigendian=no
2808
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2810
echo "$as_me: failed program was:" >&5
2811
sed 's/^/| /' conftest.$ac_ext >&5
2813
# It does not; compile a test program.
2814
if test "$cross_compiling" = yes; then
2815
# try to guess the endianness by grepping values into an object file
2816
ac_cv_c_bigendian=unknown
2817
cat >conftest.$ac_ext <<_ACEOF
2820
cat confdefs.h >>conftest.$ac_ext
2821
cat >>conftest.$ac_ext <<_ACEOF
2822
/* end confdefs.h. */
2823
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2824
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2825
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2826
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2827
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2828
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2832
_ascii (); _ebcdic ();
2837
rm -f conftest.$ac_objext
2838
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2839
(eval $ac_compile) 2>conftest.er1
2841
grep -v '^ *+' conftest.er1 >conftest.err
2843
cat conftest.err >&5
2844
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845
(exit $ac_status); } &&
2846
{ ac_try='test -z "$ac_c_werror_flag"
2847
|| test ! -s conftest.err'
2848
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852
(exit $ac_status); }; } &&
2853
{ ac_try='test -s conftest.$ac_objext'
2854
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858
(exit $ac_status); }; }; then
2859
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2860
ac_cv_c_bigendian=yes
2862
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2863
if test "$ac_cv_c_bigendian" = unknown; then
2864
ac_cv_c_bigendian=no
2866
# finding both strings is unlikely to happen, but who knows?
2867
ac_cv_c_bigendian=unknown
2871
echo "$as_me: failed program was:" >&5
2872
sed 's/^/| /' conftest.$ac_ext >&5
2875
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2877
cat >conftest.$ac_ext <<_ACEOF
2880
cat confdefs.h >>conftest.$ac_ext
2881
cat >>conftest.$ac_ext <<_ACEOF
2882
/* end confdefs.h. */
2886
/* Are we little or big endian? From Harbison&Steele. */
2890
char c[sizeof (long)];
2893
exit (u.c[sizeof (long) - 1] == 1);
2896
rm -f conftest$ac_exeext
2897
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2898
(eval $ac_link) 2>&5
2900
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2902
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906
(exit $ac_status); }; }; then
2907
ac_cv_c_bigendian=no
2909
echo "$as_me: program exited with status $ac_status" >&5
2910
echo "$as_me: failed program was:" >&5
2911
sed 's/^/| /' conftest.$ac_ext >&5
2914
ac_cv_c_bigendian=yes
2916
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2919
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2921
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2922
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2923
case $ac_cv_c_bigendian in
2926
cat >>confdefs.h <<\_ACEOF
2927
#define WORDS_BIGENDIAN 1
2933
{ { echo "$as_me:$LINENO: error: unknown endianness
2934
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2935
echo "$as_me: error: unknown endianness
2936
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2937
{ (exit 1); exit 1; }; } ;;
2943
ac_cpp='$CPP $CPPFLAGS'
2944
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2948
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2949
# On Suns, sometimes $CPP names a directory.
2950
if test -n "$CPP" && test -d "$CPP"; then
2953
if test -z "$CPP"; then
2954
if test "${ac_cv_prog_CPP+set}" = set; then
2955
echo $ECHO_N "(cached) $ECHO_C" >&6
2957
# Double quotes because CPP needs to be expanded
2958
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2961
for ac_c_preproc_warn_flag in '' yes
2963
# Use a header file that comes with gcc, so configuring glibc
2964
# with a fresh cross-compiler works.
2965
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2966
# <limits.h> exists even on freestanding compilers.
2967
# On the NeXT, cc -E runs the code through the compiler's parser,
2968
# not just through cpp. "Syntax error" is here to catch this case.
2969
cat >conftest.$ac_ext <<_ACEOF
2972
cat confdefs.h >>conftest.$ac_ext
2973
cat >>conftest.$ac_ext <<_ACEOF
2974
/* end confdefs.h. */
2976
# include <limits.h>
2978
# include <assert.h>
2982
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2983
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2985
grep -v '^ *+' conftest.er1 >conftest.err
2987
cat conftest.err >&5
2988
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989
(exit $ac_status); } >/dev/null; then
2990
if test -s conftest.err; then
2991
ac_cpp_err=$ac_c_preproc_warn_flag
2992
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2999
if test -z "$ac_cpp_err"; then
3002
echo "$as_me: failed program was:" >&5
3003
sed 's/^/| /' conftest.$ac_ext >&5
3005
# Broken: fails on valid input.
3008
rm -f conftest.err conftest.$ac_ext
3010
# OK, works on sane cases. Now check whether non-existent headers
3011
# can be detected and how.
3012
cat >conftest.$ac_ext <<_ACEOF
3015
cat confdefs.h >>conftest.$ac_ext
3016
cat >>conftest.$ac_ext <<_ACEOF
3017
/* end confdefs.h. */
3018
#include <ac_nonexistent.h>
3020
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3021
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3023
grep -v '^ *+' conftest.er1 >conftest.err
3025
cat conftest.err >&5
3026
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027
(exit $ac_status); } >/dev/null; then
3028
if test -s conftest.err; then
3029
ac_cpp_err=$ac_c_preproc_warn_flag
3030
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3037
if test -z "$ac_cpp_err"; then
3038
# Broken: success on invalid input.
3041
echo "$as_me: failed program was:" >&5
3042
sed 's/^/| /' conftest.$ac_ext >&5
3044
# Passes both tests.
3048
rm -f conftest.err conftest.$ac_ext
3051
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3052
rm -f conftest.err conftest.$ac_ext
3053
if $ac_preproc_ok; then
3065
echo "$as_me:$LINENO: result: $CPP" >&5
3066
echo "${ECHO_T}$CPP" >&6
3068
for ac_c_preproc_warn_flag in '' yes
3070
# Use a header file that comes with gcc, so configuring glibc
3071
# with a fresh cross-compiler works.
3072
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3073
# <limits.h> exists even on freestanding compilers.
3074
# On the NeXT, cc -E runs the code through the compiler's parser,
3075
# not just through cpp. "Syntax error" is here to catch this case.
3076
cat >conftest.$ac_ext <<_ACEOF
3079
cat confdefs.h >>conftest.$ac_ext
3080
cat >>conftest.$ac_ext <<_ACEOF
3081
/* end confdefs.h. */
3083
# include <limits.h>
3085
# include <assert.h>
3089
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3090
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3092
grep -v '^ *+' conftest.er1 >conftest.err
3094
cat conftest.err >&5
3095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096
(exit $ac_status); } >/dev/null; then
3097
if test -s conftest.err; then
3098
ac_cpp_err=$ac_c_preproc_warn_flag
3099
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3106
if test -z "$ac_cpp_err"; then
3109
echo "$as_me: failed program was:" >&5
3110
sed 's/^/| /' conftest.$ac_ext >&5
3112
# Broken: fails on valid input.
3115
rm -f conftest.err conftest.$ac_ext
3117
# OK, works on sane cases. Now check whether non-existent headers
3118
# can be detected and how.
3119
cat >conftest.$ac_ext <<_ACEOF
3122
cat confdefs.h >>conftest.$ac_ext
3123
cat >>conftest.$ac_ext <<_ACEOF
3124
/* end confdefs.h. */
3125
#include <ac_nonexistent.h>
3127
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3128
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3130
grep -v '^ *+' conftest.er1 >conftest.err
3132
cat conftest.err >&5
3133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134
(exit $ac_status); } >/dev/null; then
3135
if test -s conftest.err; then
3136
ac_cpp_err=$ac_c_preproc_warn_flag
3137
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3144
if test -z "$ac_cpp_err"; then
3145
# Broken: success on invalid input.
3148
echo "$as_me: failed program was:" >&5
3149
sed 's/^/| /' conftest.$ac_ext >&5
3151
# Passes both tests.
3155
rm -f conftest.err conftest.$ac_ext
3158
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3159
rm -f conftest.err conftest.$ac_ext
3160
if $ac_preproc_ok; then
3163
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3164
See \`config.log' for more details." >&5
3165
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3166
See \`config.log' for more details." >&2;}
3167
{ (exit 1); exit 1; }; }
3171
ac_cpp='$CPP $CPPFLAGS'
3172
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3173
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3174
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3177
echo "$as_me:$LINENO: checking for X" >&5
3178
echo $ECHO_N "checking for X... $ECHO_C" >&6
3181
# Check whether --with-x or --without-x was given.
3182
if test "${with_x+set}" = set; then
3186
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3187
if test "x$with_x" = xno; then
3188
# The user explicitly disabled X.
3191
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3192
# Both variables are already set.
3195
if test "${ac_cv_have_x+set}" = set; then
3196
echo $ECHO_N "(cached) $ECHO_C" >&6
3198
# One or both of the vars are not set, and there is no cached value.
3199
ac_x_includes=no ac_x_libraries=no
3201
if mkdir conftest.dir; then
3203
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
3204
cat >Imakefile <<'_ACEOF'
3206
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3208
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3209
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3210
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3211
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3212
for ac_extension in a so sl; do
3213
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3214
test -f $ac_im_libdir/libX11.$ac_extension; then
3215
ac_im_usrlibdir=$ac_im_libdir; break
3218
# Screen out bogus values from the imake configuration. They are
3219
# bogus both because they are the default anyway, and because
3220
# using them would break gcc on systems where it needs fixed includes.
3221
case $ac_im_incroot in
3223
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3225
case $ac_im_usrlibdir in
3227
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3234
# Standard set of common directories for X headers.
3235
# Check X11 before X11Rn because it is often a symlink to the current release.
3247
/usr/local/X11/include
3248
/usr/local/X11R6/include
3249
/usr/local/X11R5/include
3250
/usr/local/X11R4/include
3252
/usr/local/include/X11
3253
/usr/local/include/X11R6
3254
/usr/local/include/X11R5
3255
/usr/local/include/X11R4
3259
/usr/XFree86/include/X11
3263
/usr/unsupported/include
3265
/usr/local/x11r5/include
3266
/usr/lpp/Xamples/include
3268
/usr/openwin/include
3269
/usr/openwin/share/include'
3271
if test "$ac_x_includes" = no; then
3272
# Guess where to find include files, by looking for Intrinsic.h.
3273
# First, try using that file with no special directory specified.
3274
cat >conftest.$ac_ext <<_ACEOF
3277
cat confdefs.h >>conftest.$ac_ext
3278
cat >>conftest.$ac_ext <<_ACEOF
3279
/* end confdefs.h. */
3280
#include <X11/Intrinsic.h>
3282
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3283
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3285
grep -v '^ *+' conftest.er1 >conftest.err
3287
cat conftest.err >&5
3288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289
(exit $ac_status); } >/dev/null; then
3290
if test -s conftest.err; then
3291
ac_cpp_err=$ac_c_preproc_warn_flag
3292
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3299
if test -z "$ac_cpp_err"; then
3300
# We can compile using X headers with no special include directory.
3303
echo "$as_me: failed program was:" >&5
3304
sed 's/^/| /' conftest.$ac_ext >&5
3306
for ac_dir in $ac_x_header_dirs; do
3307
if test -r "$ac_dir/X11/Intrinsic.h"; then
3308
ac_x_includes=$ac_dir
3313
rm -f conftest.err conftest.$ac_ext
3314
fi # $ac_x_includes = no
3316
if test "$ac_x_libraries" = no; then
3317
# Check for the libraries.
3318
# See if we find them without any special options.
3319
# Don't add to $LIBS permanently.
3322
cat >conftest.$ac_ext <<_ACEOF
3325
cat confdefs.h >>conftest.$ac_ext
3326
cat >>conftest.$ac_ext <<_ACEOF
3327
/* end confdefs.h. */
3328
#include <X11/Intrinsic.h>
3337
rm -f conftest.$ac_objext conftest$ac_exeext
3338
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3339
(eval $ac_link) 2>conftest.er1
3341
grep -v '^ *+' conftest.er1 >conftest.err
3343
cat conftest.err >&5
3344
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345
(exit $ac_status); } &&
3346
{ ac_try='test -z "$ac_c_werror_flag"
3347
|| test ! -s conftest.err'
3348
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352
(exit $ac_status); }; } &&
3353
{ ac_try='test -s conftest$ac_exeext'
3354
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358
(exit $ac_status); }; }; then
3360
# We can link X programs with no special library path.
3363
echo "$as_me: failed program was:" >&5
3364
sed 's/^/| /' conftest.$ac_ext >&5
3367
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3369
# Don't even attempt the hair of trying to link an X program!
3370
for ac_extension in a so sl; do
3371
if test -r $ac_dir/libXt.$ac_extension; then
3372
ac_x_libraries=$ac_dir
3378
rm -f conftest.err conftest.$ac_objext \
3379
conftest$ac_exeext conftest.$ac_ext
3380
fi # $ac_x_libraries = no
3382
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3383
# Didn't find X anywhere. Cache the known absence of X.
3384
ac_cv_have_x="have_x=no"
3386
# Record where we found X for the cache.
3387
ac_cv_have_x="have_x=yes \
3388
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3393
eval "$ac_cv_have_x"
3396
if test "$have_x" != yes; then
3397
echo "$as_me:$LINENO: result: $have_x" >&5
3398
echo "${ECHO_T}$have_x" >&6
3401
# If each of the values was on the command line, it overrides each guess.
3402
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3403
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3404
# Update the cache value to reflect the command line values.
3405
ac_cv_have_x="have_x=yes \
3406
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3407
echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3408
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3411
if test "$no_x" = yes; then
3412
# Not all programs may use this symbol, but it does not hurt to define it.
3414
cat >>confdefs.h <<\_ACEOF
3415
#define X_DISPLAY_MISSING 1
3418
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3420
if test -n "$x_includes"; then
3421
X_CFLAGS="$X_CFLAGS -I$x_includes"
3424
# It would also be nice to do this for all -L options, not just this one.
3425
if test -n "$x_libraries"; then
3426
X_LIBS="$X_LIBS -L$x_libraries"
3427
# For Solaris; some versions of Sun CC require a space after -R and
3428
# others require no space. Words are not sufficient . . . .
3429
case `(uname -sr) 2>/dev/null` in
3431
echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3432
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3433
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3434
cat >conftest.$ac_ext <<_ACEOF
3437
cat confdefs.h >>conftest.$ac_ext
3438
cat >>conftest.$ac_ext <<_ACEOF
3439
/* end confdefs.h. */
3449
rm -f conftest.$ac_objext conftest$ac_exeext
3450
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3451
(eval $ac_link) 2>conftest.er1
3453
grep -v '^ *+' conftest.er1 >conftest.err
3455
cat conftest.err >&5
3456
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457
(exit $ac_status); } &&
3458
{ ac_try='test -z "$ac_c_werror_flag"
3459
|| test ! -s conftest.err'
3460
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464
(exit $ac_status); }; } &&
3465
{ ac_try='test -s conftest$ac_exeext'
3466
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470
(exit $ac_status); }; }; then
3473
echo "$as_me: failed program was:" >&5
3474
sed 's/^/| /' conftest.$ac_ext >&5
3478
rm -f conftest.err conftest.$ac_objext \
3479
conftest$ac_exeext conftest.$ac_ext
3480
if test $ac_R_nospace = yes; then
3481
echo "$as_me:$LINENO: result: no" >&5
3482
echo "${ECHO_T}no" >&6
3483
X_LIBS="$X_LIBS -R$x_libraries"
3485
LIBS="$ac_xsave_LIBS -R $x_libraries"
3486
cat >conftest.$ac_ext <<_ACEOF
3489
cat confdefs.h >>conftest.$ac_ext
3490
cat >>conftest.$ac_ext <<_ACEOF
3491
/* end confdefs.h. */
3501
rm -f conftest.$ac_objext conftest$ac_exeext
3502
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3503
(eval $ac_link) 2>conftest.er1
3505
grep -v '^ *+' conftest.er1 >conftest.err
3507
cat conftest.err >&5
3508
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509
(exit $ac_status); } &&
3510
{ ac_try='test -z "$ac_c_werror_flag"
3511
|| test ! -s conftest.err'
3512
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516
(exit $ac_status); }; } &&
3517
{ ac_try='test -s conftest$ac_exeext'
3518
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522
(exit $ac_status); }; }; then
3525
echo "$as_me: failed program was:" >&5
3526
sed 's/^/| /' conftest.$ac_ext >&5
3530
rm -f conftest.err conftest.$ac_objext \
3531
conftest$ac_exeext conftest.$ac_ext
3532
if test $ac_R_space = yes; then
3533
echo "$as_me:$LINENO: result: yes" >&5
3534
echo "${ECHO_T}yes" >&6
3535
X_LIBS="$X_LIBS -R $x_libraries"
3537
echo "$as_me:$LINENO: result: neither works" >&5
3538
echo "${ECHO_T}neither works" >&6
3545
# Check for system-dependent libraries X programs must link with.
3546
# Do this before checking for the system-independent R6 libraries
3547
# (-lICE), since we may need -lsocket or whatever for X linking.
3549
if test "$ISC" = yes; then
3550
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3552
# Martyn Johnson says this is needed for Ultrix, if the X
3553
# libraries were built with DECnet support. And Karl Berry says
3554
# the Alpha needs dnet_stub (dnet does not exist).
3555
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3556
cat >conftest.$ac_ext <<_ACEOF
3559
cat confdefs.h >>conftest.$ac_ext
3560
cat >>conftest.$ac_ext <<_ACEOF
3561
/* end confdefs.h. */
3563
/* Override any gcc2 internal prototype to avoid an error. */
3567
/* We use char because int might match the return type of a gcc2
3568
builtin and then its argument prototype would still apply. */
3569
char XOpenDisplay ();
3578
rm -f conftest.$ac_objext conftest$ac_exeext
3579
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3580
(eval $ac_link) 2>conftest.er1
3582
grep -v '^ *+' conftest.er1 >conftest.err
3584
cat conftest.err >&5
3585
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586
(exit $ac_status); } &&
3587
{ ac_try='test -z "$ac_c_werror_flag"
3588
|| test ! -s conftest.err'
3589
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593
(exit $ac_status); }; } &&
3594
{ ac_try='test -s conftest$ac_exeext'
3595
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599
(exit $ac_status); }; }; then
3602
echo "$as_me: failed program was:" >&5
3603
sed 's/^/| /' conftest.$ac_ext >&5
3605
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3606
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3607
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3608
echo $ECHO_N "(cached) $ECHO_C" >&6
3610
ac_check_lib_save_LIBS=$LIBS
3612
cat >conftest.$ac_ext <<_ACEOF
3615
cat confdefs.h >>conftest.$ac_ext
3616
cat >>conftest.$ac_ext <<_ACEOF
3617
/* end confdefs.h. */
3619
/* Override any gcc2 internal prototype to avoid an error. */
3623
/* We use char because int might match the return type of a gcc2
3624
builtin and then its argument prototype would still apply. */
3634
rm -f conftest.$ac_objext conftest$ac_exeext
3635
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3636
(eval $ac_link) 2>conftest.er1
3638
grep -v '^ *+' conftest.er1 >conftest.err
3640
cat conftest.err >&5
3641
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642
(exit $ac_status); } &&
3643
{ ac_try='test -z "$ac_c_werror_flag"
3644
|| test ! -s conftest.err'
3645
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649
(exit $ac_status); }; } &&
3650
{ ac_try='test -s conftest$ac_exeext'
3651
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655
(exit $ac_status); }; }; then
3656
ac_cv_lib_dnet_dnet_ntoa=yes
3658
echo "$as_me: failed program was:" >&5
3659
sed 's/^/| /' conftest.$ac_ext >&5
3661
ac_cv_lib_dnet_dnet_ntoa=no
3663
rm -f conftest.err conftest.$ac_objext \
3664
conftest$ac_exeext conftest.$ac_ext
3665
LIBS=$ac_check_lib_save_LIBS
3667
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3668
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3669
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3670
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3673
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3674
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3675
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3676
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3677
echo $ECHO_N "(cached) $ECHO_C" >&6
3679
ac_check_lib_save_LIBS=$LIBS
3680
LIBS="-ldnet_stub $LIBS"
3681
cat >conftest.$ac_ext <<_ACEOF
3684
cat confdefs.h >>conftest.$ac_ext
3685
cat >>conftest.$ac_ext <<_ACEOF
3686
/* end confdefs.h. */
3688
/* Override any gcc2 internal prototype to avoid an error. */
3692
/* We use char because int might match the return type of a gcc2
3693
builtin and then its argument prototype would still apply. */
3703
rm -f conftest.$ac_objext conftest$ac_exeext
3704
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3705
(eval $ac_link) 2>conftest.er1
3707
grep -v '^ *+' conftest.er1 >conftest.err
3709
cat conftest.err >&5
3710
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711
(exit $ac_status); } &&
3712
{ ac_try='test -z "$ac_c_werror_flag"
3713
|| test ! -s conftest.err'
3714
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718
(exit $ac_status); }; } &&
3719
{ ac_try='test -s conftest$ac_exeext'
3720
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724
(exit $ac_status); }; }; then
3725
ac_cv_lib_dnet_stub_dnet_ntoa=yes
3727
echo "$as_me: failed program was:" >&5
3728
sed 's/^/| /' conftest.$ac_ext >&5
3730
ac_cv_lib_dnet_stub_dnet_ntoa=no
3732
rm -f conftest.err conftest.$ac_objext \
3733
conftest$ac_exeext conftest.$ac_ext
3734
LIBS=$ac_check_lib_save_LIBS
3736
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3737
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3738
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3739
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3744
rm -f conftest.err conftest.$ac_objext \
3745
conftest$ac_exeext conftest.$ac_ext
3746
LIBS="$ac_xsave_LIBS"
3748
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3749
# to get the SysV transport functions.
3750
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3752
# The nsl library prevents programs from opening the X display
3753
# on Irix 5.2, according to T.E. Dickey.
3754
# The functions gethostbyname, getservbyname, and inet_addr are
3755
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3756
echo "$as_me:$LINENO: checking for gethostbyname" >&5
3757
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3758
if test "${ac_cv_func_gethostbyname+set}" = set; then
3759
echo $ECHO_N "(cached) $ECHO_C" >&6
3761
cat >conftest.$ac_ext <<_ACEOF
3764
cat confdefs.h >>conftest.$ac_ext
3765
cat >>conftest.$ac_ext <<_ACEOF
3766
/* end confdefs.h. */
3767
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3768
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3769
#define gethostbyname innocuous_gethostbyname
3771
/* System header to define __stub macros and hopefully few prototypes,
3772
which can conflict with char gethostbyname (); below.
3773
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3774
<limits.h> exists even on freestanding compilers. */
3777
# include <limits.h>
3779
# include <assert.h>
3782
#undef gethostbyname
3784
/* Override any gcc2 internal prototype to avoid an error. */
3789
/* We use char because int might match the return type of a gcc2
3790
builtin and then its argument prototype would still apply. */
3791
char gethostbyname ();
3792
/* The GNU C library defines this for functions which it implements
3793
to always fail with ENOSYS. Some functions are actually named
3794
something starting with __ and the normal name is an alias. */
3795
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3798
char (*f) () = gethostbyname;
3807
return f != gethostbyname;
3812
rm -f conftest.$ac_objext conftest$ac_exeext
3813
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3814
(eval $ac_link) 2>conftest.er1
3816
grep -v '^ *+' conftest.er1 >conftest.err
3818
cat conftest.err >&5
3819
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820
(exit $ac_status); } &&
3821
{ ac_try='test -z "$ac_c_werror_flag"
3822
|| test ! -s conftest.err'
3823
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827
(exit $ac_status); }; } &&
3828
{ ac_try='test -s conftest$ac_exeext'
3829
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833
(exit $ac_status); }; }; then
3834
ac_cv_func_gethostbyname=yes
3836
echo "$as_me: failed program was:" >&5
3837
sed 's/^/| /' conftest.$ac_ext >&5
3839
ac_cv_func_gethostbyname=no
3841
rm -f conftest.err conftest.$ac_objext \
3842
conftest$ac_exeext conftest.$ac_ext
3844
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3845
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3847
if test $ac_cv_func_gethostbyname = no; then
3848
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3849
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3850
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3851
echo $ECHO_N "(cached) $ECHO_C" >&6
3853
ac_check_lib_save_LIBS=$LIBS
3855
cat >conftest.$ac_ext <<_ACEOF
3858
cat confdefs.h >>conftest.$ac_ext
3859
cat >>conftest.$ac_ext <<_ACEOF
3860
/* end confdefs.h. */
3862
/* Override any gcc2 internal prototype to avoid an error. */
3866
/* We use char because int might match the return type of a gcc2
3867
builtin and then its argument prototype would still apply. */
3868
char gethostbyname ();
3877
rm -f conftest.$ac_objext conftest$ac_exeext
3878
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3879
(eval $ac_link) 2>conftest.er1
3881
grep -v '^ *+' conftest.er1 >conftest.err
3883
cat conftest.err >&5
3884
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885
(exit $ac_status); } &&
3886
{ ac_try='test -z "$ac_c_werror_flag"
3887
|| test ! -s conftest.err'
3888
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892
(exit $ac_status); }; } &&
3893
{ ac_try='test -s conftest$ac_exeext'
3894
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3897
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898
(exit $ac_status); }; }; then
3899
ac_cv_lib_nsl_gethostbyname=yes
3901
echo "$as_me: failed program was:" >&5
3902
sed 's/^/| /' conftest.$ac_ext >&5
3904
ac_cv_lib_nsl_gethostbyname=no
3906
rm -f conftest.err conftest.$ac_objext \
3907
conftest$ac_exeext conftest.$ac_ext
3908
LIBS=$ac_check_lib_save_LIBS
3910
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3911
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3912
if test $ac_cv_lib_nsl_gethostbyname = yes; then
3913
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3916
if test $ac_cv_lib_nsl_gethostbyname = no; then
3917
echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3918
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3919
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3920
echo $ECHO_N "(cached) $ECHO_C" >&6
3922
ac_check_lib_save_LIBS=$LIBS
3924
cat >conftest.$ac_ext <<_ACEOF
3927
cat confdefs.h >>conftest.$ac_ext
3928
cat >>conftest.$ac_ext <<_ACEOF
3929
/* end confdefs.h. */
3931
/* Override any gcc2 internal prototype to avoid an error. */
3935
/* We use char because int might match the return type of a gcc2
3936
builtin and then its argument prototype would still apply. */
3937
char gethostbyname ();
3946
rm -f conftest.$ac_objext conftest$ac_exeext
3947
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3948
(eval $ac_link) 2>conftest.er1
3950
grep -v '^ *+' conftest.er1 >conftest.err
3952
cat conftest.err >&5
3953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954
(exit $ac_status); } &&
3955
{ ac_try='test -z "$ac_c_werror_flag"
3956
|| test ! -s conftest.err'
3957
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961
(exit $ac_status); }; } &&
3962
{ ac_try='test -s conftest$ac_exeext'
3963
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967
(exit $ac_status); }; }; then
3968
ac_cv_lib_bsd_gethostbyname=yes
3970
echo "$as_me: failed program was:" >&5
3971
sed 's/^/| /' conftest.$ac_ext >&5
3973
ac_cv_lib_bsd_gethostbyname=no
3975
rm -f conftest.err conftest.$ac_objext \
3976
conftest$ac_exeext conftest.$ac_ext
3977
LIBS=$ac_check_lib_save_LIBS
3979
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3980
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3981
if test $ac_cv_lib_bsd_gethostbyname = yes; then
3982
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3988
# lieder@skyler.mavd.honeywell.com says without -lsocket,
3989
# socket/setsockopt and other routines are undefined under SCO ODT
3990
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3991
# on later versions), says Simon Leinen: it contains gethostby*
3992
# variants that don't use the name server (or something). -lsocket
3993
# must be given before -lnsl if both are needed. We assume that
3994
# if connect needs -lnsl, so does gethostbyname.
3995
echo "$as_me:$LINENO: checking for connect" >&5
3996
echo $ECHO_N "checking for connect... $ECHO_C" >&6
3997
if test "${ac_cv_func_connect+set}" = set; then
3998
echo $ECHO_N "(cached) $ECHO_C" >&6
4000
cat >conftest.$ac_ext <<_ACEOF
4003
cat confdefs.h >>conftest.$ac_ext
4004
cat >>conftest.$ac_ext <<_ACEOF
4005
/* end confdefs.h. */
4006
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
4007
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4008
#define connect innocuous_connect
4010
/* System header to define __stub macros and hopefully few prototypes,
4011
which can conflict with char connect (); below.
4012
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4013
<limits.h> exists even on freestanding compilers. */
4016
# include <limits.h>
4018
# include <assert.h>
4023
/* Override any gcc2 internal prototype to avoid an error. */
4028
/* We use char because int might match the return type of a gcc2
4029
builtin and then its argument prototype would still apply. */
4031
/* The GNU C library defines this for functions which it implements
4032
to always fail with ENOSYS. Some functions are actually named
4033
something starting with __ and the normal name is an alias. */
4034
#if defined (__stub_connect) || defined (__stub___connect)
4037
char (*f) () = connect;
4046
return f != connect;
4051
rm -f conftest.$ac_objext conftest$ac_exeext
4052
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4053
(eval $ac_link) 2>conftest.er1
4055
grep -v '^ *+' conftest.er1 >conftest.err
4057
cat conftest.err >&5
4058
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059
(exit $ac_status); } &&
4060
{ ac_try='test -z "$ac_c_werror_flag"
4061
|| test ! -s conftest.err'
4062
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066
(exit $ac_status); }; } &&
4067
{ ac_try='test -s conftest$ac_exeext'
4068
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072
(exit $ac_status); }; }; then
4073
ac_cv_func_connect=yes
4075
echo "$as_me: failed program was:" >&5
4076
sed 's/^/| /' conftest.$ac_ext >&5
4078
ac_cv_func_connect=no
4080
rm -f conftest.err conftest.$ac_objext \
4081
conftest$ac_exeext conftest.$ac_ext
4083
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4084
echo "${ECHO_T}$ac_cv_func_connect" >&6
4086
if test $ac_cv_func_connect = no; then
4087
echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4088
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4089
if test "${ac_cv_lib_socket_connect+set}" = set; then
4090
echo $ECHO_N "(cached) $ECHO_C" >&6
4092
ac_check_lib_save_LIBS=$LIBS
4093
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4094
cat >conftest.$ac_ext <<_ACEOF
4097
cat confdefs.h >>conftest.$ac_ext
4098
cat >>conftest.$ac_ext <<_ACEOF
4099
/* end confdefs.h. */
4101
/* Override any gcc2 internal prototype to avoid an error. */
4105
/* We use char because int might match the return type of a gcc2
4106
builtin and then its argument prototype would still apply. */
4116
rm -f conftest.$ac_objext conftest$ac_exeext
4117
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4118
(eval $ac_link) 2>conftest.er1
4120
grep -v '^ *+' conftest.er1 >conftest.err
4122
cat conftest.err >&5
4123
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124
(exit $ac_status); } &&
4125
{ ac_try='test -z "$ac_c_werror_flag"
4126
|| test ! -s conftest.err'
4127
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4130
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131
(exit $ac_status); }; } &&
4132
{ ac_try='test -s conftest$ac_exeext'
4133
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4136
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137
(exit $ac_status); }; }; then
4138
ac_cv_lib_socket_connect=yes
4140
echo "$as_me: failed program was:" >&5
4141
sed 's/^/| /' conftest.$ac_ext >&5
4143
ac_cv_lib_socket_connect=no
4145
rm -f conftest.err conftest.$ac_objext \
4146
conftest$ac_exeext conftest.$ac_ext
4147
LIBS=$ac_check_lib_save_LIBS
4149
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4150
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4151
if test $ac_cv_lib_socket_connect = yes; then
4152
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4157
# Guillermo Gomez says -lposix is necessary on A/UX.
4158
echo "$as_me:$LINENO: checking for remove" >&5
4159
echo $ECHO_N "checking for remove... $ECHO_C" >&6
4160
if test "${ac_cv_func_remove+set}" = set; then
4161
echo $ECHO_N "(cached) $ECHO_C" >&6
4163
cat >conftest.$ac_ext <<_ACEOF
4166
cat confdefs.h >>conftest.$ac_ext
4167
cat >>conftest.$ac_ext <<_ACEOF
4168
/* end confdefs.h. */
4169
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
4170
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4171
#define remove innocuous_remove
4173
/* System header to define __stub macros and hopefully few prototypes,
4174
which can conflict with char remove (); below.
4175
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4176
<limits.h> exists even on freestanding compilers. */
4179
# include <limits.h>
4181
# include <assert.h>
4186
/* Override any gcc2 internal prototype to avoid an error. */
4191
/* We use char because int might match the return type of a gcc2
4192
builtin and then its argument prototype would still apply. */
4194
/* The GNU C library defines this for functions which it implements
4195
to always fail with ENOSYS. Some functions are actually named
4196
something starting with __ and the normal name is an alias. */
4197
#if defined (__stub_remove) || defined (__stub___remove)
4200
char (*f) () = remove;
4214
rm -f conftest.$ac_objext conftest$ac_exeext
4215
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4216
(eval $ac_link) 2>conftest.er1
4218
grep -v '^ *+' conftest.er1 >conftest.err
4220
cat conftest.err >&5
4221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222
(exit $ac_status); } &&
4223
{ ac_try='test -z "$ac_c_werror_flag"
4224
|| test ! -s conftest.err'
4225
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4228
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229
(exit $ac_status); }; } &&
4230
{ ac_try='test -s conftest$ac_exeext'
4231
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235
(exit $ac_status); }; }; then
4236
ac_cv_func_remove=yes
4238
echo "$as_me: failed program was:" >&5
4239
sed 's/^/| /' conftest.$ac_ext >&5
4241
ac_cv_func_remove=no
4243
rm -f conftest.err conftest.$ac_objext \
4244
conftest$ac_exeext conftest.$ac_ext
4246
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4247
echo "${ECHO_T}$ac_cv_func_remove" >&6
4249
if test $ac_cv_func_remove = no; then
4250
echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4251
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4252
if test "${ac_cv_lib_posix_remove+set}" = set; then
4253
echo $ECHO_N "(cached) $ECHO_C" >&6
4255
ac_check_lib_save_LIBS=$LIBS
4256
LIBS="-lposix $LIBS"
4257
cat >conftest.$ac_ext <<_ACEOF
4260
cat confdefs.h >>conftest.$ac_ext
4261
cat >>conftest.$ac_ext <<_ACEOF
4262
/* end confdefs.h. */
4264
/* Override any gcc2 internal prototype to avoid an error. */
4268
/* We use char because int might match the return type of a gcc2
4269
builtin and then its argument prototype would still apply. */
4279
rm -f conftest.$ac_objext conftest$ac_exeext
4280
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4281
(eval $ac_link) 2>conftest.er1
4283
grep -v '^ *+' conftest.er1 >conftest.err
4285
cat conftest.err >&5
4286
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287
(exit $ac_status); } &&
4288
{ ac_try='test -z "$ac_c_werror_flag"
4289
|| test ! -s conftest.err'
4290
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294
(exit $ac_status); }; } &&
4295
{ ac_try='test -s conftest$ac_exeext'
4296
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300
(exit $ac_status); }; }; then
4301
ac_cv_lib_posix_remove=yes
4303
echo "$as_me: failed program was:" >&5
4304
sed 's/^/| /' conftest.$ac_ext >&5
4306
ac_cv_lib_posix_remove=no
4308
rm -f conftest.err conftest.$ac_objext \
4309
conftest$ac_exeext conftest.$ac_ext
4310
LIBS=$ac_check_lib_save_LIBS
4312
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4313
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4314
if test $ac_cv_lib_posix_remove = yes; then
4315
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4320
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4321
echo "$as_me:$LINENO: checking for shmat" >&5
4322
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4323
if test "${ac_cv_func_shmat+set}" = set; then
4324
echo $ECHO_N "(cached) $ECHO_C" >&6
4326
cat >conftest.$ac_ext <<_ACEOF
4329
cat confdefs.h >>conftest.$ac_ext
4330
cat >>conftest.$ac_ext <<_ACEOF
4331
/* end confdefs.h. */
4332
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4333
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4334
#define shmat innocuous_shmat
4336
/* System header to define __stub macros and hopefully few prototypes,
4337
which can conflict with char shmat (); below.
4338
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4339
<limits.h> exists even on freestanding compilers. */
4342
# include <limits.h>
4344
# include <assert.h>
4349
/* Override any gcc2 internal prototype to avoid an error. */
4354
/* We use char because int might match the return type of a gcc2
4355
builtin and then its argument prototype would still apply. */
4357
/* The GNU C library defines this for functions which it implements
4358
to always fail with ENOSYS. Some functions are actually named
4359
something starting with __ and the normal name is an alias. */
4360
#if defined (__stub_shmat) || defined (__stub___shmat)
4363
char (*f) () = shmat;
4377
rm -f conftest.$ac_objext conftest$ac_exeext
4378
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4379
(eval $ac_link) 2>conftest.er1
4381
grep -v '^ *+' conftest.er1 >conftest.err
4383
cat conftest.err >&5
4384
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385
(exit $ac_status); } &&
4386
{ ac_try='test -z "$ac_c_werror_flag"
4387
|| test ! -s conftest.err'
4388
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392
(exit $ac_status); }; } &&
4393
{ ac_try='test -s conftest$ac_exeext'
4394
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398
(exit $ac_status); }; }; then
4399
ac_cv_func_shmat=yes
4401
echo "$as_me: failed program was:" >&5
4402
sed 's/^/| /' conftest.$ac_ext >&5
4406
rm -f conftest.err conftest.$ac_objext \
4407
conftest$ac_exeext conftest.$ac_ext
4409
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4410
echo "${ECHO_T}$ac_cv_func_shmat" >&6
4412
if test $ac_cv_func_shmat = no; then
4413
echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4414
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4415
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4416
echo $ECHO_N "(cached) $ECHO_C" >&6
4418
ac_check_lib_save_LIBS=$LIBS
4420
cat >conftest.$ac_ext <<_ACEOF
4423
cat confdefs.h >>conftest.$ac_ext
4424
cat >>conftest.$ac_ext <<_ACEOF
4425
/* end confdefs.h. */
4427
/* Override any gcc2 internal prototype to avoid an error. */
4431
/* We use char because int might match the return type of a gcc2
4432
builtin and then its argument prototype would still apply. */
4442
rm -f conftest.$ac_objext conftest$ac_exeext
4443
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4444
(eval $ac_link) 2>conftest.er1
4446
grep -v '^ *+' conftest.er1 >conftest.err
4448
cat conftest.err >&5
4449
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450
(exit $ac_status); } &&
4451
{ ac_try='test -z "$ac_c_werror_flag"
4452
|| test ! -s conftest.err'
4453
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457
(exit $ac_status); }; } &&
4458
{ ac_try='test -s conftest$ac_exeext'
4459
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463
(exit $ac_status); }; }; then
4464
ac_cv_lib_ipc_shmat=yes
4466
echo "$as_me: failed program was:" >&5
4467
sed 's/^/| /' conftest.$ac_ext >&5
4469
ac_cv_lib_ipc_shmat=no
4471
rm -f conftest.err conftest.$ac_objext \
4472
conftest$ac_exeext conftest.$ac_ext
4473
LIBS=$ac_check_lib_save_LIBS
4475
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4476
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4477
if test $ac_cv_lib_ipc_shmat = yes; then
4478
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4484
# Check for libraries that X11R6 Xt/Xaw programs need.
4485
ac_save_LDFLAGS=$LDFLAGS
4486
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4487
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4488
# check for ICE first), but we must link in the order -lSM -lICE or
4489
# we get undefined symbols. So assume we have SM if we have ICE.
4490
# These have to be linked with before -lX11, unlike the other
4491
# libraries we check for below, so use a different variable.
4492
# John Interrante, Karl Berry
4493
echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4494
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4495
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4496
echo $ECHO_N "(cached) $ECHO_C" >&6
4498
ac_check_lib_save_LIBS=$LIBS
4499
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4500
cat >conftest.$ac_ext <<_ACEOF
4503
cat confdefs.h >>conftest.$ac_ext
4504
cat >>conftest.$ac_ext <<_ACEOF
4505
/* end confdefs.h. */
4507
/* Override any gcc2 internal prototype to avoid an error. */
4511
/* We use char because int might match the return type of a gcc2
4512
builtin and then its argument prototype would still apply. */
4513
char IceConnectionNumber ();
4517
IceConnectionNumber ();
4522
rm -f conftest.$ac_objext conftest$ac_exeext
4523
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4524
(eval $ac_link) 2>conftest.er1
4526
grep -v '^ *+' conftest.er1 >conftest.err
4528
cat conftest.err >&5
4529
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530
(exit $ac_status); } &&
4531
{ ac_try='test -z "$ac_c_werror_flag"
4532
|| test ! -s conftest.err'
4533
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537
(exit $ac_status); }; } &&
4538
{ ac_try='test -s conftest$ac_exeext'
4539
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543
(exit $ac_status); }; }; then
4544
ac_cv_lib_ICE_IceConnectionNumber=yes
4546
echo "$as_me: failed program was:" >&5
4547
sed 's/^/| /' conftest.$ac_ext >&5
4549
ac_cv_lib_ICE_IceConnectionNumber=no
4551
rm -f conftest.err conftest.$ac_objext \
4552
conftest$ac_exeext conftest.$ac_ext
4553
LIBS=$ac_check_lib_save_LIBS
4555
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4556
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4557
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4558
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4561
LDFLAGS=$ac_save_LDFLAGS
4566
am__api_version="1.8"
4567
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4568
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4571
echo timestamp > conftest.file
4572
# Do `set' in a subshell so we don't clobber the current shell's
4573
# arguments. Must try -L first in case configure is actually a
4574
# symlink; some systems play weird games with the mod time of symlinks
4575
# (eg FreeBSD returns the mod time of the symlink's containing
4578
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4579
if test "$*" = "X"; then
4581
set X `ls -t $srcdir/configure conftest.file`
4584
if test "$*" != "X $srcdir/configure conftest.file" \
4585
&& test "$*" != "X conftest.file $srcdir/configure"; then
4587
# If neither matched, then we have a broken ls. This can happen
4588
# if, for instance, CONFIG_SHELL is bash and it inherits a
4589
# broken ls alias from the environment. This has actually
4590
# happened. Such a system could not be considered "sane".
4591
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
4592
alias in your environment" >&5
4593
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
4594
alias in your environment" >&2;}
4595
{ (exit 1); exit 1; }; }
4598
test "$2" = conftest.file
4604
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4605
Check your system clock" >&5
4606
echo "$as_me: error: newly created file is older than distributed files!
4607
Check your system clock" >&2;}
4608
{ (exit 1); exit 1; }; }
4610
echo "$as_me:$LINENO: result: yes" >&5
4611
echo "${ECHO_T}yes" >&6
4612
test "$program_prefix" != NONE &&
4613
program_transform_name="s,^,$program_prefix,;$program_transform_name"
4614
# Use a double $ so make ignores it.
4615
test "$program_suffix" != NONE &&
4616
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4617
# Double any \ or $. echo might interpret backslashes.
4618
# By default was `s,x,x', remove it if useless.
4619
cat <<\_ACEOF >conftest.sed
4620
s/[\\$]/&&/g;s/;s,x,x,$//
4622
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4625
# expand $ac_aux_dir to an absolute path
4626
am_aux_dir=`cd $ac_aux_dir && pwd`
4628
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4629
# Use eval to expand $SHELL
4630
if eval "$MISSING --run true"; then
4631
am_missing_run="$MISSING --run "
4634
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4635
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4638
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4639
# Keeping the `.' argument allows $(mkdir_p) to be used without
4640
# argument. Indeed, we sometimes output rules like
4641
# $(mkdir_p) $(somedir)
4642
# where $(somedir) is conditionally defined.
4643
# (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
4644
# expensive solution, as it forces Make to start a sub-shell.)
4645
mkdir_p='mkdir -p -- .'
4647
# On NextStep and OpenStep, the `mkdir' command does not
4648
# recognize any option. It will interpret all options as
4649
# directories to create, and then abort because `.' already
4651
for d in ./-p ./--version;
4653
test -d $d && rmdir $d
4655
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4656
if test -f "$ac_aux_dir/mkinstalldirs"; then
4657
mkdir_p='$(mkinstalldirs)'
4659
mkdir_p='$(install_sh) -d'
4663
for ac_prog in gawk mawk nawk awk
4665
# Extract the first word of "$ac_prog", so it can be a program name with args.
4666
set dummy $ac_prog; ac_word=$2
4667
echo "$as_me:$LINENO: checking for $ac_word" >&5
4668
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4669
if test "${ac_cv_prog_AWK+set}" = set; then
4670
echo $ECHO_N "(cached) $ECHO_C" >&6
4672
if test -n "$AWK"; then
4673
ac_cv_prog_AWK="$AWK" # Let the user override the test.
4675
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679
test -z "$as_dir" && as_dir=.
4680
for ac_exec_ext in '' $ac_executable_extensions; do
4681
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4682
ac_cv_prog_AWK="$ac_prog"
4683
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4692
if test -n "$AWK"; then
4693
echo "$as_me:$LINENO: result: $AWK" >&5
4694
echo "${ECHO_T}$AWK" >&6
4696
echo "$as_me:$LINENO: result: no" >&5
4697
echo "${ECHO_T}no" >&6
4700
test -n "$AWK" && break
4703
rm -rf .tst 2>/dev/null
4704
mkdir .tst 2>/dev/null
4705
if test -d .tst; then
4710
rmdir .tst 2>/dev/null
4712
DEPDIR="${am__leading_dot}deps"
4714
ac_config_commands="$ac_config_commands depfiles"
4717
am_make=${MAKE-make}
4718
cat > confinc << 'END'
4723
# If we don't find an include directive, just comment out the code.
4724
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4725
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4729
# First try GNU make style include.
4730
echo "include confinc" > confmf
4731
# We grep out `Entering directory' and `Leaving directory'
4732
# messages which can occur if `w' ends up in MAKEFLAGS.
4733
# In particular we don't look at `^make:' because GNU make might
4734
# be invoked under some other name (usually "gmake"), in which
4735
# case it prints its new name instead of `make'.
4736
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4741
# Now try BSD make style include.
4742
if test "$am__include" = "#"; then
4743
echo '.include "confinc"' > confmf
4744
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4745
am__include=.include
4752
echo "$as_me:$LINENO: result: $_am_result" >&5
4753
echo "${ECHO_T}$_am_result" >&6
4754
rm -f confinc confmf
4756
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4757
if test "${enable_dependency_tracking+set}" = set; then
4758
enableval="$enable_dependency_tracking"
4761
if test "x$enable_dependency_tracking" != xno; then
4762
am_depcomp="$ac_aux_dir/depcomp"
4767
if test "x$enable_dependency_tracking" != xno; then
4777
# test to see if srcdir already configured
4778
if test "`cd $srcdir && pwd`" != "`pwd`" &&
4779
test -f $srcdir/config.status; then
4780
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4781
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4782
{ (exit 1); exit 1; }; }
4785
# test whether we have cygpath
4786
if test -z "$CYGPATH_W"; then
4787
if (cygpath --version) >/dev/null 2>/dev/null; then
4788
CYGPATH_W='cygpath -w'
4795
# Define the identity of the package.
4797
VERSION=$DEVIL_MAJOR.$DEVIL_MINOR.$DEVIL_REVISION
4800
cat >>confdefs.h <<_ACEOF
4801
#define PACKAGE "$PACKAGE"
4805
cat >>confdefs.h <<_ACEOF
4806
#define VERSION "$VERSION"
4809
# Some tools Automake needs.
4811
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4814
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4817
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4820
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4823
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4826
AMTAR=${AMTAR-"${am_missing_run}tar"}
4828
install_sh=${install_sh-"$am_aux_dir/install-sh"}
4830
# Installed binaries are usually stripped using `strip' when the user
4831
# run `make install-strip'. However `strip' might not be the right
4832
# tool to use in cross-compilation environments, therefore Automake
4833
# will honor the `STRIP' environment variable to overrule this program.
4834
if test "$cross_compiling" != no; then
4835
if test -n "$ac_tool_prefix"; then
4836
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4837
set dummy ${ac_tool_prefix}strip; ac_word=$2
4838
echo "$as_me:$LINENO: checking for $ac_word" >&5
4839
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4840
if test "${ac_cv_prog_STRIP+set}" = set; then
4841
echo $ECHO_N "(cached) $ECHO_C" >&6
4843
if test -n "$STRIP"; then
4844
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4846
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850
test -z "$as_dir" && as_dir=.
4851
for ac_exec_ext in '' $ac_executable_extensions; do
4852
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4853
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4854
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4862
STRIP=$ac_cv_prog_STRIP
4863
if test -n "$STRIP"; then
4864
echo "$as_me:$LINENO: result: $STRIP" >&5
4865
echo "${ECHO_T}$STRIP" >&6
4867
echo "$as_me:$LINENO: result: no" >&5
4868
echo "${ECHO_T}no" >&6
4872
if test -z "$ac_cv_prog_STRIP"; then
4874
# Extract the first word of "strip", so it can be a program name with args.
4875
set dummy strip; ac_word=$2
4876
echo "$as_me:$LINENO: checking for $ac_word" >&5
4877
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4878
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4879
echo $ECHO_N "(cached) $ECHO_C" >&6
4881
if test -n "$ac_ct_STRIP"; then
4882
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4884
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888
test -z "$as_dir" && as_dir=.
4889
for ac_exec_ext in '' $ac_executable_extensions; do
4890
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4891
ac_cv_prog_ac_ct_STRIP="strip"
4892
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4898
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4901
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4902
if test -n "$ac_ct_STRIP"; then
4903
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4904
echo "${ECHO_T}$ac_ct_STRIP" >&6
4906
echo "$as_me:$LINENO: result: no" >&5
4907
echo "${ECHO_T}no" >&6
4912
STRIP="$ac_cv_prog_STRIP"
4916
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4918
# We need awk for the "check" target. The system "awk" is bad on
4922
depcc="$CC" am_compiler_list=
4924
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4925
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4926
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4927
echo $ECHO_N "(cached) $ECHO_C" >&6
4929
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4930
# We make a subdir and do the tests there. Otherwise we can end up
4931
# making bogus files that we don't know about and never remove. For
4932
# instance it was reported that on HP-UX the gcc test will end up
4933
# making a dummy file named `D' -- because `-MD' means `put the output
4936
# Copy depcomp to subdir because otherwise we won't find it if we're
4937
# using a relative directory.
4938
cp "$am_depcomp" conftest.dir
4940
# We will build objects and dependencies in a subdirectory because
4941
# it helps to detect inapplicable dependency modes. For instance
4942
# both Tru64's cc and ICC support -MD to output dependencies as a
4943
# side effect of compilation, but ICC will put the dependencies in
4944
# the current directory while Tru64 will put them in the object
4948
am_cv_CC_dependencies_compiler_type=none
4949
if test "$am_compiler_list" = ""; then
4950
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4952
for depmode in $am_compiler_list; do
4953
# Setup a source with many dependencies, because some compilers
4954
# like to wrap large dependency lists on column 80 (with \), and
4955
# we should not choose a depcomp mode which is confused by this.
4957
# We need to recreate these files for each test, as the compiler may
4958
# overwrite some of them when testing with obscure command lines.
4959
# This happens at least with the AIX C compiler.
4961
for i in 1 2 3 4 5 6; do
4962
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4963
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4964
# Solaris 8's {/usr,}/bin/sh.
4965
touch sub/conftst$i.h
4967
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4971
# after this tag, mechanisms are not by side-effect, so they'll
4972
# only be used when explicitly requested
4973
if test "x$enable_dependency_tracking" = xyes; then
4981
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4982
# mode. It turns out that the SunPro C++ compiler does not properly
4983
# handle `-M -o', and we need to detect this.
4984
if depmode=$depmode \
4985
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4986
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4987
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4988
>/dev/null 2>conftest.err &&
4989
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4990
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4991
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4992
# icc doesn't choke on unknown options, it will just issue warnings
4993
# (even with -Werror). So we grep stderr for any message
4994
# that says an option was ignored.
4995
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4996
am_cv_CC_dependencies_compiler_type=$depmode
5005
am_cv_CC_dependencies_compiler_type=none
5009
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5010
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5011
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5016
test "x$enable_dependency_tracking" != xno \
5017
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5019
am__fastdepCC_FALSE='#'
5021
am__fastdepCC_TRUE='#'
5022
am__fastdepCC_FALSE=
5027
ac_config_headers="$ac_config_headers include/IL/config.h"
5029
# Check whether --enable-static or --disable-static was given.
5030
if test "${enable_static+set}" = set; then
5031
enableval="$enable_static"
5032
p=${PACKAGE-default}
5034
yes) enable_static=yes ;;
5035
no) enable_static=no ;;
5038
# Look at the argument we got. We use all the common list separators.
5039
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5040
for pkg in $enableval; do
5042
if test "X$pkg" = "X$p"; then
5054
# Check whether --enable-shared or --disable-shared was given.
5055
if test "${enable_shared+set}" = set; then
5056
enableval="$enable_shared"
5057
p=${PACKAGE-default}
5059
yes) enable_shared=yes ;;
5060
no) enable_shared=no ;;
5063
# Look at the argument we got. We use all the common list separators.
5064
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5065
for pkg in $enableval; do
5067
if test "X$pkg" = "X$p"; then
5078
# Check whether --enable-fast-install or --disable-fast-install was given.
5079
if test "${enable_fast_install+set}" = set; then
5080
enableval="$enable_fast_install"
5081
p=${PACKAGE-default}
5083
yes) enable_fast_install=yes ;;
5084
no) enable_fast_install=no ;;
5086
enable_fast_install=no
5087
# Look at the argument we got. We use all the common list separators.
5088
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5089
for pkg in $enableval; do
5091
if test "X$pkg" = "X$p"; then
5092
enable_fast_install=yes
5099
enable_fast_install=yes
5102
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5103
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5104
if test "${lt_cv_path_SED+set}" = set; then
5105
echo $ECHO_N "(cached) $ECHO_C" >&6
5107
# Loop through the user's path and test for sed and gsed.
5108
# Then use that list of sed's as ones to test for truncation.
5109
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113
test -z "$as_dir" && as_dir=.
5114
for lt_ac_prog in sed gsed; do
5115
for ac_exec_ext in '' $ac_executable_extensions; do
5116
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5117
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5124
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5125
# along with /bin/sed that truncates output.
5126
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5127
test ! -f $lt_ac_sed && break
5128
cat /dev/null > conftest.in
5130
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5131
# Check for GNU sed and select it if it is found.
5132
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5133
lt_cv_path_SED=$lt_ac_sed
5137
cat conftest.in conftest.in >conftest.tmp
5138
mv conftest.tmp conftest.in
5139
cp conftest.in conftest.nl
5141
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5142
cmp -s conftest.out conftest.nl || break
5143
# 10000 chars as input seems more than enough
5144
test $lt_ac_count -gt 10 && break
5145
lt_ac_count=`expr $lt_ac_count + 1`
5146
if test $lt_ac_count -gt $lt_ac_max; then
5147
lt_ac_max=$lt_ac_count
5148
lt_cv_path_SED=$lt_ac_sed
5156
echo "$as_me:$LINENO: result: $SED" >&5
5157
echo "${ECHO_T}$SED" >&6
5159
echo "$as_me:$LINENO: checking for egrep" >&5
5160
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5161
if test "${ac_cv_prog_egrep+set}" = set; then
5162
echo $ECHO_N "(cached) $ECHO_C" >&6
5164
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5165
then ac_cv_prog_egrep='grep -E'
5166
else ac_cv_prog_egrep='egrep'
5169
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5170
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5171
EGREP=$ac_cv_prog_egrep
5175
# Check whether --with-gnu-ld or --without-gnu-ld was given.
5176
if test "${with_gnu_ld+set}" = set; then
5177
withval="$with_gnu_ld"
5178
test "$withval" = no || with_gnu_ld=yes
5183
if test "$GCC" = yes; then
5184
# Check if gcc -print-prog-name=ld gives a path.
5185
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5186
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5189
# gcc leaves a trailing carriage return which upsets mingw
5190
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5192
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5195
# Accept absolute paths.
5197
re_direlt='/[^/][^/]*/\.\./'
5198
# Canonicalize the path of ld
5199
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5200
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5201
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5203
test -z "$LD" && LD="$ac_prog"
5206
# If it fails, then pretend we aren't using GCC.
5210
# If it is relative, then search for the first ld in PATH.
5214
elif test "$with_gnu_ld" = yes; then
5215
echo "$as_me:$LINENO: checking for GNU ld" >&5
5216
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5218
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5219
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5221
if test "${lt_cv_path_LD+set}" = set; then
5222
echo $ECHO_N "(cached) $ECHO_C" >&6
5224
if test -z "$LD"; then
5225
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5226
for ac_dir in $PATH; do
5228
test -z "$ac_dir" && ac_dir=.
5229
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5230
lt_cv_path_LD="$ac_dir/$ac_prog"
5231
# Check to see if the program is GNU ld. I'd rather use --version,
5232
# but apparently some GNU ld's only accept -v.
5233
# Break only if it was the GNU/non-GNU ld that we prefer.
5234
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5235
*GNU* | *'with BFD'*)
5236
test "$with_gnu_ld" != no && break
5239
test "$with_gnu_ld" != yes && break
5246
lt_cv_path_LD="$LD" # Let the user override the test with a path.
5251
if test -n "$LD"; then
5252
echo "$as_me:$LINENO: result: $LD" >&5
5253
echo "${ECHO_T}$LD" >&6
5255
echo "$as_me:$LINENO: result: no" >&5
5256
echo "${ECHO_T}no" >&6
5258
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5259
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5260
{ (exit 1); exit 1; }; }
5261
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5262
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5263
if test "${lt_cv_prog_gnu_ld+set}" = set; then
5264
echo $ECHO_N "(cached) $ECHO_C" >&6
5266
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
5267
case `"$LD" -v 2>&1 </dev/null` in
5268
*GNU* | *'with BFD'*)
5269
lt_cv_prog_gnu_ld=yes
5272
lt_cv_prog_gnu_ld=no
5276
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5277
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5278
with_gnu_ld=$lt_cv_prog_gnu_ld
5281
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5282
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5283
if test "${lt_cv_ld_reload_flag+set}" = set; then
5284
echo $ECHO_N "(cached) $ECHO_C" >&6
5286
lt_cv_ld_reload_flag='-r'
5288
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5289
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5290
reload_flag=$lt_cv_ld_reload_flag
5291
case $reload_flag in
5293
*) reload_flag=" $reload_flag" ;;
5295
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5297
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5298
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5299
if test "${lt_cv_path_NM+set}" = set; then
5300
echo $ECHO_N "(cached) $ECHO_C" >&6
5302
if test -n "$NM"; then
5303
# Let the user override the test.
5306
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5307
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5309
test -z "$ac_dir" && ac_dir=.
5310
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5311
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5312
# Check to see if the nm accepts a BSD-compat flag.
5313
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5314
# nm: unknown option "B" ignored
5315
# Tru64's nm complains that /dev/null is an invalid object file
5316
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5317
*/dev/null* | *'Invalid file or object type'*)
5318
lt_cv_path_NM="$tmp_nm -B"
5322
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5324
lt_cv_path_NM="$tmp_nm -p"
5328
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5329
continue # so that we can try to find one that supports BSD flags
5336
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5339
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5340
echo "${ECHO_T}$lt_cv_path_NM" >&6
5343
echo "$as_me:$LINENO: checking whether ln -s works" >&5
5344
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5346
if test "$LN_S" = "ln -s"; then
5347
echo "$as_me:$LINENO: result: yes" >&5
5348
echo "${ECHO_T}yes" >&6
5350
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5351
echo "${ECHO_T}no, using $LN_S" >&6
5354
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5355
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5356
if test "${lt_cv_deplibs_check_method+set}" = set; then
5357
echo $ECHO_N "(cached) $ECHO_C" >&6
5359
lt_cv_file_magic_cmd='$MAGIC_CMD'
5360
lt_cv_file_magic_test_file=
5361
lt_cv_deplibs_check_method='unknown'
5362
# Need to set the preceding variable on all platforms that support
5363
# interlibrary dependencies.
5364
# 'none' -- dependencies not supported.
5365
# `unknown' -- same as none, but documents that we really don't know.
5366
# 'pass_all' -- all dependencies passed with no checks.
5367
# 'test_compile' -- check by making test program.
5368
# 'file_magic [[regex]]' -- check by looking for files in library path
5369
# which responds to the $file_magic_cmd with a given extended regex.
5370
# If you have `file' or equivalent on your system and you're not sure
5371
# whether `pass_all' will *always* work, you probably want this one.
5375
lt_cv_deplibs_check_method=pass_all
5379
lt_cv_deplibs_check_method=pass_all
5383
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5384
lt_cv_file_magic_cmd='/usr/bin/file -L'
5385
lt_cv_file_magic_test_file=/shlib/libc.so
5388
cygwin* | mingw* | pw32*)
5389
# win32_libid is a shell function defined in ltmain.sh
5390
#lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5391
lt_cv_deplibs_check_method=pass_all
5392
lt_cv_file_magic_cmd='win32_libid'
5395
darwin* | rhapsody*)
5396
# this will be overwritten by pass_all, but leave it in just in case
5397
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5398
lt_cv_file_magic_cmd='/usr/bin/file -L'
5400
rhapsody* | darwin1.[012])
5401
lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
5404
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5407
lt_cv_deplibs_check_method=pass_all
5411
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5414
# Not sure whether the presence of OpenBSD here was a mistake.
5415
# Let's accept both of them until this is cleared up.
5416
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5417
lt_cv_file_magic_cmd=/usr/bin/file
5418
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5422
lt_cv_deplibs_check_method=pass_all
5427
lt_cv_deplibs_check_method=pass_all
5430
hpux10.20* | hpux11*)
5431
lt_cv_file_magic_cmd=/usr/bin/file
5434
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5435
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5438
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]'
5439
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5442
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5443
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5448
irix5* | irix6* | nonstopux*)
5450
irix5* | nonstopux*)
5451
# this will be overridden with pass_all, but let us keep it just in case
5452
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5456
*-32|*"-32 ") libmagic=32-bit;;
5457
*-n32|*"-n32 ") libmagic=N32;;
5458
*-64|*"-64 ") libmagic=64-bit;;
5459
*) libmagic=never-match;;
5461
# this will be overridden with pass_all, but let us keep it just in case
5462
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5465
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5466
lt_cv_deplibs_check_method=pass_all
5469
# This must be Linux ELF.
5472
alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
5473
lt_cv_deplibs_check_method=pass_all ;;
5475
# glibc up to 2.1.1 does not perform some relocations on ARM
5476
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
5478
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
5482
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5483
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5485
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5490
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5491
lt_cv_file_magic_cmd=/usr/bin/file
5492
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5496
lt_cv_deplibs_check_method=unknown
5500
lt_cv_file_magic_cmd=/usr/bin/file
5501
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5502
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5503
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
5505
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
5509
osf3* | osf4* | osf5*)
5510
# this will be overridden with pass_all, but let us keep it just in case
5511
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5512
lt_cv_file_magic_test_file=/shlib/libc.so
5513
lt_cv_deplibs_check_method=pass_all
5517
lt_cv_deplibs_check_method=pass_all
5521
lt_cv_deplibs_check_method=pass_all
5522
lt_cv_file_magic_test_file=/lib/libc.so
5525
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5526
case $host_vendor in
5528
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]'
5529
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5532
lt_cv_deplibs_check_method=pass_all
5535
lt_cv_file_magic_cmd='/bin/file'
5536
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5539
lt_cv_file_magic_cmd='/bin/file'
5540
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5541
lt_cv_file_magic_test_file=/lib/libc.so
5544
lt_cv_deplibs_check_method=pass_all
5549
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5550
lt_cv_deplibs_check_method=pass_all
5555
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5556
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5557
file_magic_cmd=$lt_cv_file_magic_cmd
5558
deplibs_check_method=$lt_cv_deplibs_check_method
5559
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5564
# If no C compiler was specified, use CC.
5567
# Allow CC to be a program name with arguments.
5570
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5571
if test "${enable_libtool_lock+set}" = set; then
5572
enableval="$enable_libtool_lock"
5575
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5577
# Some flags need to be propagated to the compiler or linker for good
5581
# Find out which ABI we are using.
5582
echo 'int i;' > conftest.$ac_ext
5583
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5584
(eval $ac_compile) 2>&5
5586
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587
(exit $ac_status); }; then
5588
case `/usr/bin/file conftest.$ac_objext` in
5600
# Find out which ABI we are using.
5601
echo '#line 5601 "configure"' > conftest.$ac_ext
5602
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5603
(eval $ac_compile) 2>&5
5605
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606
(exit $ac_status); }; then
5607
if test "$lt_cv_prog_gnu_ld" = yes; then
5608
case `/usr/bin/file conftest.$ac_objext` in
5610
LD="${LD-ld} -melf32bsmip"
5613
LD="${LD-ld} -melf32bmipn32"
5616
LD="${LD-ld} -melf64bmip"
5620
case `/usr/bin/file conftest.$ac_objext` in
5636
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5637
# Find out which ABI we are using.
5638
echo 'int i;' > conftest.$ac_ext
5639
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5640
(eval $ac_compile) 2>&5
5642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643
(exit $ac_status); }; then
5644
case "`/usr/bin/file conftest.o`" in
5648
LD="${LD-ld} -m elf_i386"
5651
LD="${LD-ld} -m elf32ppclinux"
5654
LD="${LD-ld} -m elf_s390"
5657
LD="${LD-ld} -m elf32_sparc"
5664
LD="${LD-ld} -m elf_x86_64"
5666
ppc*-*linux*|powerpc*-*linux*)
5667
LD="${LD-ld} -m elf64ppc"
5670
LD="${LD-ld} -m elf64_s390"
5673
LD="${LD-ld} -m elf64_sparc"
5683
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
5684
SAVE_CFLAGS="$CFLAGS"
5685
CFLAGS="$CFLAGS -belf"
5686
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5687
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5688
if test "${lt_cv_cc_needs_belf+set}" = set; then
5689
echo $ECHO_N "(cached) $ECHO_C" >&6
5692
ac_cpp='$CPP $CPPFLAGS'
5693
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5694
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5695
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5697
cat >conftest.$ac_ext <<_ACEOF
5700
cat confdefs.h >>conftest.$ac_ext
5701
cat >>conftest.$ac_ext <<_ACEOF
5702
/* end confdefs.h. */
5712
rm -f conftest.$ac_objext conftest$ac_exeext
5713
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5714
(eval $ac_link) 2>conftest.er1
5716
grep -v '^ *+' conftest.er1 >conftest.err
5718
cat conftest.err >&5
5719
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720
(exit $ac_status); } &&
5721
{ ac_try='test -z "$ac_c_werror_flag"
5722
|| test ! -s conftest.err'
5723
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727
(exit $ac_status); }; } &&
5728
{ ac_try='test -s conftest$ac_exeext'
5729
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733
(exit $ac_status); }; }; then
5734
lt_cv_cc_needs_belf=yes
5736
echo "$as_me: failed program was:" >&5
5737
sed 's/^/| /' conftest.$ac_ext >&5
5739
lt_cv_cc_needs_belf=no
5741
rm -f conftest.err conftest.$ac_objext \
5742
conftest$ac_exeext conftest.$ac_ext
5744
ac_cpp='$CPP $CPPFLAGS'
5745
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5746
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5747
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5750
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5751
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5752
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5753
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5754
CFLAGS="$SAVE_CFLAGS"
5757
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
5758
if test -n "$ac_tool_prefix"; then
5759
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5760
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5761
echo "$as_me:$LINENO: checking for $ac_word" >&5
5762
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5763
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5764
echo $ECHO_N "(cached) $ECHO_C" >&6
5766
if test -n "$DLLTOOL"; then
5767
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5769
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773
test -z "$as_dir" && as_dir=.
5774
for ac_exec_ext in '' $ac_executable_extensions; do
5775
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5776
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5777
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5785
DLLTOOL=$ac_cv_prog_DLLTOOL
5786
if test -n "$DLLTOOL"; then
5787
echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5788
echo "${ECHO_T}$DLLTOOL" >&6
5790
echo "$as_me:$LINENO: result: no" >&5
5791
echo "${ECHO_T}no" >&6
5795
if test -z "$ac_cv_prog_DLLTOOL"; then
5796
ac_ct_DLLTOOL=$DLLTOOL
5797
# Extract the first word of "dlltool", so it can be a program name with args.
5798
set dummy dlltool; ac_word=$2
5799
echo "$as_me:$LINENO: checking for $ac_word" >&5
5800
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5801
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5802
echo $ECHO_N "(cached) $ECHO_C" >&6
5804
if test -n "$ac_ct_DLLTOOL"; then
5805
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5807
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811
test -z "$as_dir" && as_dir=.
5812
for ac_exec_ext in '' $ac_executable_extensions; do
5813
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5814
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5815
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5821
test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5824
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5825
if test -n "$ac_ct_DLLTOOL"; then
5826
echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5827
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5829
echo "$as_me:$LINENO: result: no" >&5
5830
echo "${ECHO_T}no" >&6
5833
DLLTOOL=$ac_ct_DLLTOOL
5835
DLLTOOL="$ac_cv_prog_DLLTOOL"
5838
if test -n "$ac_tool_prefix"; then
5839
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5840
set dummy ${ac_tool_prefix}as; ac_word=$2
5841
echo "$as_me:$LINENO: checking for $ac_word" >&5
5842
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5843
if test "${ac_cv_prog_AS+set}" = set; then
5844
echo $ECHO_N "(cached) $ECHO_C" >&6
5846
if test -n "$AS"; then
5847
ac_cv_prog_AS="$AS" # Let the user override the test.
5849
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853
test -z "$as_dir" && as_dir=.
5854
for ac_exec_ext in '' $ac_executable_extensions; do
5855
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5856
ac_cv_prog_AS="${ac_tool_prefix}as"
5857
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866
if test -n "$AS"; then
5867
echo "$as_me:$LINENO: result: $AS" >&5
5868
echo "${ECHO_T}$AS" >&6
5870
echo "$as_me:$LINENO: result: no" >&5
5871
echo "${ECHO_T}no" >&6
5875
if test -z "$ac_cv_prog_AS"; then
5877
# Extract the first word of "as", so it can be a program name with args.
5878
set dummy as; ac_word=$2
5879
echo "$as_me:$LINENO: checking for $ac_word" >&5
5880
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5881
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5882
echo $ECHO_N "(cached) $ECHO_C" >&6
5884
if test -n "$ac_ct_AS"; then
5885
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5887
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891
test -z "$as_dir" && as_dir=.
5892
for ac_exec_ext in '' $ac_executable_extensions; do
5893
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5894
ac_cv_prog_ac_ct_AS="as"
5895
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5901
test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5904
ac_ct_AS=$ac_cv_prog_ac_ct_AS
5905
if test -n "$ac_ct_AS"; then
5906
echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5907
echo "${ECHO_T}$ac_ct_AS" >&6
5909
echo "$as_me:$LINENO: result: no" >&5
5910
echo "${ECHO_T}no" >&6
5918
if test -n "$ac_tool_prefix"; then
5919
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5920
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5921
echo "$as_me:$LINENO: checking for $ac_word" >&5
5922
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5923
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5924
echo $ECHO_N "(cached) $ECHO_C" >&6
5926
if test -n "$OBJDUMP"; then
5927
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5929
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933
test -z "$as_dir" && as_dir=.
5934
for ac_exec_ext in '' $ac_executable_extensions; do
5935
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5936
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5937
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5945
OBJDUMP=$ac_cv_prog_OBJDUMP
5946
if test -n "$OBJDUMP"; then
5947
echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5948
echo "${ECHO_T}$OBJDUMP" >&6
5950
echo "$as_me:$LINENO: result: no" >&5
5951
echo "${ECHO_T}no" >&6
5955
if test -z "$ac_cv_prog_OBJDUMP"; then
5956
ac_ct_OBJDUMP=$OBJDUMP
5957
# Extract the first word of "objdump", so it can be a program name with args.
5958
set dummy objdump; ac_word=$2
5959
echo "$as_me:$LINENO: checking for $ac_word" >&5
5960
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5961
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5962
echo $ECHO_N "(cached) $ECHO_C" >&6
5964
if test -n "$ac_ct_OBJDUMP"; then
5965
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5967
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971
test -z "$as_dir" && as_dir=.
5972
for ac_exec_ext in '' $ac_executable_extensions; do
5973
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5974
ac_cv_prog_ac_ct_OBJDUMP="objdump"
5975
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5981
test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5984
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5985
if test -n "$ac_ct_OBJDUMP"; then
5986
echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5987
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5989
echo "$as_me:$LINENO: result: no" >&5
5990
echo "${ECHO_T}no" >&6
5993
OBJDUMP=$ac_ct_OBJDUMP
5995
OBJDUMP="$ac_cv_prog_OBJDUMP"
6002
need_locks="$enable_libtool_lock"
6005
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6006
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6007
if test "${ac_cv_header_stdc+set}" = set; then
6008
echo $ECHO_N "(cached) $ECHO_C" >&6
6010
cat >conftest.$ac_ext <<_ACEOF
6013
cat confdefs.h >>conftest.$ac_ext
6014
cat >>conftest.$ac_ext <<_ACEOF
6015
/* end confdefs.h. */
6029
rm -f conftest.$ac_objext
6030
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6031
(eval $ac_compile) 2>conftest.er1
6033
grep -v '^ *+' conftest.er1 >conftest.err
6035
cat conftest.err >&5
6036
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037
(exit $ac_status); } &&
6038
{ ac_try='test -z "$ac_c_werror_flag"
6039
|| test ! -s conftest.err'
6040
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6043
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044
(exit $ac_status); }; } &&
6045
{ ac_try='test -s conftest.$ac_objext'
6046
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050
(exit $ac_status); }; }; then
6051
ac_cv_header_stdc=yes
6053
echo "$as_me: failed program was:" >&5
6054
sed 's/^/| /' conftest.$ac_ext >&5
6056
ac_cv_header_stdc=no
6058
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6060
if test $ac_cv_header_stdc = yes; then
6061
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6062
cat >conftest.$ac_ext <<_ACEOF
6065
cat confdefs.h >>conftest.$ac_ext
6066
cat >>conftest.$ac_ext <<_ACEOF
6067
/* end confdefs.h. */
6071
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6072
$EGREP "memchr" >/dev/null 2>&1; then
6075
ac_cv_header_stdc=no
6081
if test $ac_cv_header_stdc = yes; then
6082
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6083
cat >conftest.$ac_ext <<_ACEOF
6086
cat confdefs.h >>conftest.$ac_ext
6087
cat >>conftest.$ac_ext <<_ACEOF
6088
/* end confdefs.h. */
6092
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6093
$EGREP "free" >/dev/null 2>&1; then
6096
ac_cv_header_stdc=no
6102
if test $ac_cv_header_stdc = yes; then
6103
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6104
if test "$cross_compiling" = yes; then
6107
cat >conftest.$ac_ext <<_ACEOF
6110
cat confdefs.h >>conftest.$ac_ext
6111
cat >>conftest.$ac_ext <<_ACEOF
6112
/* end confdefs.h. */
6114
#if ((' ' & 0x0FF) == 0x020)
6115
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6116
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6118
# define ISLOWER(c) \
6119
(('a' <= (c) && (c) <= 'i') \
6120
|| ('j' <= (c) && (c) <= 'r') \
6121
|| ('s' <= (c) && (c) <= 'z'))
6122
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6125
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6130
for (i = 0; i < 256; i++)
6131
if (XOR (islower (i), ISLOWER (i))
6132
|| toupper (i) != TOUPPER (i))
6137
rm -f conftest$ac_exeext
6138
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6139
(eval $ac_link) 2>&5
6141
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6143
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147
(exit $ac_status); }; }; then
6150
echo "$as_me: program exited with status $ac_status" >&5
6151
echo "$as_me: failed program was:" >&5
6152
sed 's/^/| /' conftest.$ac_ext >&5
6155
ac_cv_header_stdc=no
6157
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6161
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6162
echo "${ECHO_T}$ac_cv_header_stdc" >&6
6163
if test $ac_cv_header_stdc = yes; then
6165
cat >>confdefs.h <<\_ACEOF
6166
#define STDC_HEADERS 1
6171
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6181
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6182
inttypes.h stdint.h unistd.h
6184
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6185
echo "$as_me:$LINENO: checking for $ac_header" >&5
6186
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6187
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6188
echo $ECHO_N "(cached) $ECHO_C" >&6
6190
cat >conftest.$ac_ext <<_ACEOF
6193
cat confdefs.h >>conftest.$ac_ext
6194
cat >>conftest.$ac_ext <<_ACEOF
6195
/* end confdefs.h. */
6196
$ac_includes_default
6198
#include <$ac_header>
6200
rm -f conftest.$ac_objext
6201
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6202
(eval $ac_compile) 2>conftest.er1
6204
grep -v '^ *+' conftest.er1 >conftest.err
6206
cat conftest.err >&5
6207
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208
(exit $ac_status); } &&
6209
{ ac_try='test -z "$ac_c_werror_flag"
6210
|| test ! -s conftest.err'
6211
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215
(exit $ac_status); }; } &&
6216
{ ac_try='test -s conftest.$ac_objext'
6217
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221
(exit $ac_status); }; }; then
6222
eval "$as_ac_Header=yes"
6224
echo "$as_me: failed program was:" >&5
6225
sed 's/^/| /' conftest.$ac_ext >&5
6227
eval "$as_ac_Header=no"
6229
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6231
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6232
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6233
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6234
cat >>confdefs.h <<_ACEOF
6235
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6244
for ac_header in dlfcn.h
6246
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6247
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6248
echo "$as_me:$LINENO: checking for $ac_header" >&5
6249
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6250
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6251
echo $ECHO_N "(cached) $ECHO_C" >&6
6253
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6254
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6256
# Is the header compilable?
6257
echo "$as_me:$LINENO: checking $ac_header usability" >&5
6258
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6259
cat >conftest.$ac_ext <<_ACEOF
6262
cat confdefs.h >>conftest.$ac_ext
6263
cat >>conftest.$ac_ext <<_ACEOF
6264
/* end confdefs.h. */
6265
$ac_includes_default
6266
#include <$ac_header>
6268
rm -f conftest.$ac_objext
6269
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6270
(eval $ac_compile) 2>conftest.er1
6272
grep -v '^ *+' conftest.er1 >conftest.err
6274
cat conftest.err >&5
6275
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276
(exit $ac_status); } &&
6277
{ ac_try='test -z "$ac_c_werror_flag"
6278
|| test ! -s conftest.err'
6279
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283
(exit $ac_status); }; } &&
6284
{ ac_try='test -s conftest.$ac_objext'
6285
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289
(exit $ac_status); }; }; then
6290
ac_header_compiler=yes
6292
echo "$as_me: failed program was:" >&5
6293
sed 's/^/| /' conftest.$ac_ext >&5
6295
ac_header_compiler=no
6297
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6298
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6299
echo "${ECHO_T}$ac_header_compiler" >&6
6301
# Is the header present?
6302
echo "$as_me:$LINENO: checking $ac_header presence" >&5
6303
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6304
cat >conftest.$ac_ext <<_ACEOF
6307
cat confdefs.h >>conftest.$ac_ext
6308
cat >>conftest.$ac_ext <<_ACEOF
6309
/* end confdefs.h. */
6310
#include <$ac_header>
6312
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6313
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6315
grep -v '^ *+' conftest.er1 >conftest.err
6317
cat conftest.err >&5
6318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319
(exit $ac_status); } >/dev/null; then
6320
if test -s conftest.err; then
6321
ac_cpp_err=$ac_c_preproc_warn_flag
6322
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6329
if test -z "$ac_cpp_err"; then
6330
ac_header_preproc=yes
6332
echo "$as_me: failed program was:" >&5
6333
sed 's/^/| /' conftest.$ac_ext >&5
6335
ac_header_preproc=no
6337
rm -f conftest.err conftest.$ac_ext
6338
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6339
echo "${ECHO_T}$ac_header_preproc" >&6
6341
# So? What about this header?
6342
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6344
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6345
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6346
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6347
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6348
ac_header_preproc=yes
6351
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6352
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6353
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6354
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6355
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6356
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6357
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6358
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6359
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6360
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6361
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6362
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6365
## ------------------------------------------ ##
6366
## Report this to the AC_PACKAGE_NAME lists. ##
6367
## ------------------------------------------ ##
6370
sed "s/^/$as_me: WARNING: /" >&2
6373
echo "$as_me:$LINENO: checking for $ac_header" >&5
6374
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6375
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6376
echo $ECHO_N "(cached) $ECHO_C" >&6
6378
eval "$as_ac_Header=\$ac_header_preproc"
6380
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6381
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6384
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6385
cat >>confdefs.h <<_ACEOF
6386
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6394
ac_cpp='$CXXCPP $CPPFLAGS'
6395
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6396
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6397
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6398
if test -n "$ac_tool_prefix"; then
6399
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6401
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6402
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6403
echo "$as_me:$LINENO: checking for $ac_word" >&5
6404
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6405
if test "${ac_cv_prog_CXX+set}" = set; then
6406
echo $ECHO_N "(cached) $ECHO_C" >&6
6408
if test -n "$CXX"; then
6409
ac_cv_prog_CXX="$CXX" # Let the user override the test.
6411
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415
test -z "$as_dir" && as_dir=.
6416
for ac_exec_ext in '' $ac_executable_extensions; do
6417
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6418
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6419
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6428
if test -n "$CXX"; then
6429
echo "$as_me:$LINENO: result: $CXX" >&5
6430
echo "${ECHO_T}$CXX" >&6
6432
echo "$as_me:$LINENO: result: no" >&5
6433
echo "${ECHO_T}no" >&6
6436
test -n "$CXX" && break
6439
if test -z "$CXX"; then
6441
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6443
# Extract the first word of "$ac_prog", so it can be a program name with args.
6444
set dummy $ac_prog; ac_word=$2
6445
echo "$as_me:$LINENO: checking for $ac_word" >&5
6446
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6447
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6448
echo $ECHO_N "(cached) $ECHO_C" >&6
6450
if test -n "$ac_ct_CXX"; then
6451
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6453
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457
test -z "$as_dir" && as_dir=.
6458
for ac_exec_ext in '' $ac_executable_extensions; do
6459
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6460
ac_cv_prog_ac_ct_CXX="$ac_prog"
6461
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6469
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6470
if test -n "$ac_ct_CXX"; then
6471
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6472
echo "${ECHO_T}$ac_ct_CXX" >&6
6474
echo "$as_me:$LINENO: result: no" >&5
6475
echo "${ECHO_T}no" >&6
6478
test -n "$ac_ct_CXX" && break
6480
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6486
# Provide some information about the compiler.
6487
echo "$as_me:$LINENO:" \
6488
"checking for C++ compiler version" >&5
6489
ac_compiler=`set X $ac_compile; echo $2`
6490
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6491
(eval $ac_compiler --version </dev/null >&5) 2>&5
6493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494
(exit $ac_status); }
6495
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6496
(eval $ac_compiler -v </dev/null >&5) 2>&5
6498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499
(exit $ac_status); }
6500
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6501
(eval $ac_compiler -V </dev/null >&5) 2>&5
6503
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504
(exit $ac_status); }
6506
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6507
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6508
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6509
echo $ECHO_N "(cached) $ECHO_C" >&6
6511
cat >conftest.$ac_ext <<_ACEOF
6514
cat confdefs.h >>conftest.$ac_ext
6515
cat >>conftest.$ac_ext <<_ACEOF
6516
/* end confdefs.h. */
6529
rm -f conftest.$ac_objext
6530
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6531
(eval $ac_compile) 2>conftest.er1
6533
grep -v '^ *+' conftest.er1 >conftest.err
6535
cat conftest.err >&5
6536
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537
(exit $ac_status); } &&
6538
{ ac_try='test -z "$ac_cxx_werror_flag"
6539
|| test ! -s conftest.err'
6540
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544
(exit $ac_status); }; } &&
6545
{ ac_try='test -s conftest.$ac_objext'
6546
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550
(exit $ac_status); }; }; then
6553
echo "$as_me: failed program was:" >&5
6554
sed 's/^/| /' conftest.$ac_ext >&5
6558
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6559
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6562
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6563
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6564
GXX=`test $ac_compiler_gnu = yes && echo yes`
6565
ac_test_CXXFLAGS=${CXXFLAGS+set}
6566
ac_save_CXXFLAGS=$CXXFLAGS
6568
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6569
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6570
if test "${ac_cv_prog_cxx_g+set}" = set; then
6571
echo $ECHO_N "(cached) $ECHO_C" >&6
6573
cat >conftest.$ac_ext <<_ACEOF
6576
cat confdefs.h >>conftest.$ac_ext
6577
cat >>conftest.$ac_ext <<_ACEOF
6578
/* end confdefs.h. */
6588
rm -f conftest.$ac_objext
6589
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6590
(eval $ac_compile) 2>conftest.er1
6592
grep -v '^ *+' conftest.er1 >conftest.err
6594
cat conftest.err >&5
6595
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596
(exit $ac_status); } &&
6597
{ ac_try='test -z "$ac_cxx_werror_flag"
6598
|| test ! -s conftest.err'
6599
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603
(exit $ac_status); }; } &&
6604
{ ac_try='test -s conftest.$ac_objext'
6605
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609
(exit $ac_status); }; }; then
6610
ac_cv_prog_cxx_g=yes
6612
echo "$as_me: failed program was:" >&5
6613
sed 's/^/| /' conftest.$ac_ext >&5
6617
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6619
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6620
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6621
if test "$ac_test_CXXFLAGS" = set; then
6622
CXXFLAGS=$ac_save_CXXFLAGS
6623
elif test $ac_cv_prog_cxx_g = yes; then
6624
if test "$GXX" = yes; then
6630
if test "$GXX" = yes; then
6636
for ac_declaration in \
6638
'extern "C" void std::exit (int) throw (); using std::exit;' \
6639
'extern "C" void std::exit (int); using std::exit;' \
6640
'extern "C" void exit (int) throw ();' \
6641
'extern "C" void exit (int);' \
6644
cat >conftest.$ac_ext <<_ACEOF
6647
cat confdefs.h >>conftest.$ac_ext
6648
cat >>conftest.$ac_ext <<_ACEOF
6649
/* end confdefs.h. */
6660
rm -f conftest.$ac_objext
6661
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6662
(eval $ac_compile) 2>conftest.er1
6664
grep -v '^ *+' conftest.er1 >conftest.err
6666
cat conftest.err >&5
6667
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668
(exit $ac_status); } &&
6669
{ ac_try='test -z "$ac_cxx_werror_flag"
6670
|| test ! -s conftest.err'
6671
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6674
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675
(exit $ac_status); }; } &&
6676
{ ac_try='test -s conftest.$ac_objext'
6677
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6680
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681
(exit $ac_status); }; }; then
6684
echo "$as_me: failed program was:" >&5
6685
sed 's/^/| /' conftest.$ac_ext >&5
6689
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6690
cat >conftest.$ac_ext <<_ACEOF
6693
cat confdefs.h >>conftest.$ac_ext
6694
cat >>conftest.$ac_ext <<_ACEOF
6695
/* end confdefs.h. */
6705
rm -f conftest.$ac_objext
6706
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6707
(eval $ac_compile) 2>conftest.er1
6709
grep -v '^ *+' conftest.er1 >conftest.err
6711
cat conftest.err >&5
6712
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713
(exit $ac_status); } &&
6714
{ ac_try='test -z "$ac_cxx_werror_flag"
6715
|| test ! -s conftest.err'
6716
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720
(exit $ac_status); }; } &&
6721
{ ac_try='test -s conftest.$ac_objext'
6722
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726
(exit $ac_status); }; }; then
6729
echo "$as_me: failed program was:" >&5
6730
sed 's/^/| /' conftest.$ac_ext >&5
6733
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6736
if test -n "$ac_declaration"; then
6737
echo '#ifdef __cplusplus' >>confdefs.h
6738
echo $ac_declaration >>confdefs.h
6739
echo '#endif' >>confdefs.h
6743
ac_cpp='$CXXCPP $CPPFLAGS'
6744
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6745
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6746
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6748
depcc="$CXX" am_compiler_list=
6750
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6751
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6752
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6753
echo $ECHO_N "(cached) $ECHO_C" >&6
6755
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6756
# We make a subdir and do the tests there. Otherwise we can end up
6757
# making bogus files that we don't know about and never remove. For
6758
# instance it was reported that on HP-UX the gcc test will end up
6759
# making a dummy file named `D' -- because `-MD' means `put the output
6762
# Copy depcomp to subdir because otherwise we won't find it if we're
6763
# using a relative directory.
6764
cp "$am_depcomp" conftest.dir
6766
# We will build objects and dependencies in a subdirectory because
6767
# it helps to detect inapplicable dependency modes. For instance
6768
# both Tru64's cc and ICC support -MD to output dependencies as a
6769
# side effect of compilation, but ICC will put the dependencies in
6770
# the current directory while Tru64 will put them in the object
6774
am_cv_CXX_dependencies_compiler_type=none
6775
if test "$am_compiler_list" = ""; then
6776
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6778
for depmode in $am_compiler_list; do
6779
# Setup a source with many dependencies, because some compilers
6780
# like to wrap large dependency lists on column 80 (with \), and
6781
# we should not choose a depcomp mode which is confused by this.
6783
# We need to recreate these files for each test, as the compiler may
6784
# overwrite some of them when testing with obscure command lines.
6785
# This happens at least with the AIX C compiler.
6787
for i in 1 2 3 4 5 6; do
6788
echo '#include "conftst'$i'.h"' >> sub/conftest.c
6789
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6790
# Solaris 8's {/usr,}/bin/sh.
6791
touch sub/conftst$i.h
6793
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6797
# after this tag, mechanisms are not by side-effect, so they'll
6798
# only be used when explicitly requested
6799
if test "x$enable_dependency_tracking" = xyes; then
6807
# We check with `-c' and `-o' for the sake of the "dashmstdout"
6808
# mode. It turns out that the SunPro C++ compiler does not properly
6809
# handle `-M -o', and we need to detect this.
6810
if depmode=$depmode \
6811
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6812
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6813
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6814
>/dev/null 2>conftest.err &&
6815
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6816
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6817
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6818
# icc doesn't choke on unknown options, it will just issue warnings
6819
# (even with -Werror). So we grep stderr for any message
6820
# that says an option was ignored.
6821
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
6822
am_cv_CXX_dependencies_compiler_type=$depmode
6831
am_cv_CXX_dependencies_compiler_type=none
6835
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6836
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6837
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6842
test "x$enable_dependency_tracking" != xno \
6843
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6844
am__fastdepCXX_TRUE=
6845
am__fastdepCXX_FALSE='#'
6847
am__fastdepCXX_TRUE='#'
6848
am__fastdepCXX_FALSE=
6853
ac_cpp='$CXXCPP $CPPFLAGS'
6854
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6855
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6856
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6857
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6858
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6859
if test -z "$CXXCPP"; then
6860
if test "${ac_cv_prog_CXXCPP+set}" = set; then
6861
echo $ECHO_N "(cached) $ECHO_C" >&6
6863
# Double quotes because CXXCPP needs to be expanded
6864
for CXXCPP in "$CXX -E" "/lib/cpp"
6867
for ac_cxx_preproc_warn_flag in '' yes
6869
# Use a header file that comes with gcc, so configuring glibc
6870
# with a fresh cross-compiler works.
6871
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6872
# <limits.h> exists even on freestanding compilers.
6873
# On the NeXT, cc -E runs the code through the compiler's parser,
6874
# not just through cpp. "Syntax error" is here to catch this case.
6875
cat >conftest.$ac_ext <<_ACEOF
6878
cat confdefs.h >>conftest.$ac_ext
6879
cat >>conftest.$ac_ext <<_ACEOF
6880
/* end confdefs.h. */
6882
# include <limits.h>
6884
# include <assert.h>
6888
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6889
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6891
grep -v '^ *+' conftest.er1 >conftest.err
6893
cat conftest.err >&5
6894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895
(exit $ac_status); } >/dev/null; then
6896
if test -s conftest.err; then
6897
ac_cpp_err=$ac_cxx_preproc_warn_flag
6898
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6905
if test -z "$ac_cpp_err"; then
6908
echo "$as_me: failed program was:" >&5
6909
sed 's/^/| /' conftest.$ac_ext >&5
6911
# Broken: fails on valid input.
6914
rm -f conftest.err conftest.$ac_ext
6916
# OK, works on sane cases. Now check whether non-existent headers
6917
# can be detected and how.
6918
cat >conftest.$ac_ext <<_ACEOF
6921
cat confdefs.h >>conftest.$ac_ext
6922
cat >>conftest.$ac_ext <<_ACEOF
6923
/* end confdefs.h. */
6924
#include <ac_nonexistent.h>
6926
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6927
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6929
grep -v '^ *+' conftest.er1 >conftest.err
6931
cat conftest.err >&5
6932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933
(exit $ac_status); } >/dev/null; then
6934
if test -s conftest.err; then
6935
ac_cpp_err=$ac_cxx_preproc_warn_flag
6936
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6943
if test -z "$ac_cpp_err"; then
6944
# Broken: success on invalid input.
6947
echo "$as_me: failed program was:" >&5
6948
sed 's/^/| /' conftest.$ac_ext >&5
6950
# Passes both tests.
6954
rm -f conftest.err conftest.$ac_ext
6957
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6958
rm -f conftest.err conftest.$ac_ext
6959
if $ac_preproc_ok; then
6964
ac_cv_prog_CXXCPP=$CXXCPP
6967
CXXCPP=$ac_cv_prog_CXXCPP
6969
ac_cv_prog_CXXCPP=$CXXCPP
6971
echo "$as_me:$LINENO: result: $CXXCPP" >&5
6972
echo "${ECHO_T}$CXXCPP" >&6
6974
for ac_cxx_preproc_warn_flag in '' yes
6976
# Use a header file that comes with gcc, so configuring glibc
6977
# with a fresh cross-compiler works.
6978
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6979
# <limits.h> exists even on freestanding compilers.
6980
# On the NeXT, cc -E runs the code through the compiler's parser,
6981
# not just through cpp. "Syntax error" is here to catch this case.
6982
cat >conftest.$ac_ext <<_ACEOF
6985
cat confdefs.h >>conftest.$ac_ext
6986
cat >>conftest.$ac_ext <<_ACEOF
6987
/* end confdefs.h. */
6989
# include <limits.h>
6991
# include <assert.h>
6995
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6996
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6998
grep -v '^ *+' conftest.er1 >conftest.err
7000
cat conftest.err >&5
7001
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002
(exit $ac_status); } >/dev/null; then
7003
if test -s conftest.err; then
7004
ac_cpp_err=$ac_cxx_preproc_warn_flag
7005
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7012
if test -z "$ac_cpp_err"; then
7015
echo "$as_me: failed program was:" >&5
7016
sed 's/^/| /' conftest.$ac_ext >&5
7018
# Broken: fails on valid input.
7021
rm -f conftest.err conftest.$ac_ext
7023
# OK, works on sane cases. Now check whether non-existent headers
7024
# can be detected and how.
7025
cat >conftest.$ac_ext <<_ACEOF
7028
cat confdefs.h >>conftest.$ac_ext
7029
cat >>conftest.$ac_ext <<_ACEOF
7030
/* end confdefs.h. */
7031
#include <ac_nonexistent.h>
7033
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7034
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7036
grep -v '^ *+' conftest.er1 >conftest.err
7038
cat conftest.err >&5
7039
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040
(exit $ac_status); } >/dev/null; then
7041
if test -s conftest.err; then
7042
ac_cpp_err=$ac_cxx_preproc_warn_flag
7043
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7050
if test -z "$ac_cpp_err"; then
7051
# Broken: success on invalid input.
7054
echo "$as_me: failed program was:" >&5
7055
sed 's/^/| /' conftest.$ac_ext >&5
7057
# Passes both tests.
7061
rm -f conftest.err conftest.$ac_ext
7064
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7065
rm -f conftest.err conftest.$ac_ext
7066
if $ac_preproc_ok; then
7069
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7070
See \`config.log' for more details." >&5
7071
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7072
See \`config.log' for more details." >&2;}
7073
{ (exit 1); exit 1; }; }
7077
ac_cpp='$CXXCPP $CPPFLAGS'
7078
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7079
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7080
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7084
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7085
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7086
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7087
if test -n "$ac_tool_prefix"; then
7088
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7090
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7091
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7092
echo "$as_me:$LINENO: checking for $ac_word" >&5
7093
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7094
if test "${ac_cv_prog_F77+set}" = set; then
7095
echo $ECHO_N "(cached) $ECHO_C" >&6
7097
if test -n "$F77"; then
7098
ac_cv_prog_F77="$F77" # Let the user override the test.
7100
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104
test -z "$as_dir" && as_dir=.
7105
for ac_exec_ext in '' $ac_executable_extensions; do
7106
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7107
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7108
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117
if test -n "$F77"; then
7118
echo "$as_me:$LINENO: result: $F77" >&5
7119
echo "${ECHO_T}$F77" >&6
7121
echo "$as_me:$LINENO: result: no" >&5
7122
echo "${ECHO_T}no" >&6
7125
test -n "$F77" && break
7128
if test -z "$F77"; then
7130
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7132
# Extract the first word of "$ac_prog", so it can be a program name with args.
7133
set dummy $ac_prog; ac_word=$2
7134
echo "$as_me:$LINENO: checking for $ac_word" >&5
7135
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7136
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7137
echo $ECHO_N "(cached) $ECHO_C" >&6
7139
if test -n "$ac_ct_F77"; then
7140
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7142
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146
test -z "$as_dir" && as_dir=.
7147
for ac_exec_ext in '' $ac_executable_extensions; do
7148
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7149
ac_cv_prog_ac_ct_F77="$ac_prog"
7150
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7158
ac_ct_F77=$ac_cv_prog_ac_ct_F77
7159
if test -n "$ac_ct_F77"; then
7160
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7161
echo "${ECHO_T}$ac_ct_F77" >&6
7163
echo "$as_me:$LINENO: result: no" >&5
7164
echo "${ECHO_T}no" >&6
7167
test -n "$ac_ct_F77" && break
7174
# Provide some information about the compiler.
7175
echo "$as_me:7175:" \
7176
"checking for Fortran 77 compiler version" >&5
7177
ac_compiler=`set X $ac_compile; echo $2`
7178
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7179
(eval $ac_compiler --version </dev/null >&5) 2>&5
7181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182
(exit $ac_status); }
7183
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7184
(eval $ac_compiler -v </dev/null >&5) 2>&5
7186
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187
(exit $ac_status); }
7188
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7189
(eval $ac_compiler -V </dev/null >&5) 2>&5
7191
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192
(exit $ac_status); }
7195
# If we don't use `.F' as extension, the preprocessor is not run on the
7196
# input file. (Note that this only needs to work for GNU compilers.)
7199
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7200
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7201
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7202
echo $ECHO_N "(cached) $ECHO_C" >&6
7204
cat >conftest.$ac_ext <<_ACEOF
7212
rm -f conftest.$ac_objext
7213
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7214
(eval $ac_compile) 2>conftest.er1
7216
grep -v '^ *+' conftest.er1 >conftest.err
7218
cat conftest.err >&5
7219
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220
(exit $ac_status); } &&
7221
{ ac_try='test -z "$ac_f77_werror_flag"
7222
|| test ! -s conftest.err'
7223
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227
(exit $ac_status); }; } &&
7228
{ ac_try='test -s conftest.$ac_objext'
7229
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233
(exit $ac_status); }; }; then
7236
echo "$as_me: failed program was:" >&5
7237
sed 's/^/| /' conftest.$ac_ext >&5
7241
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7242
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7245
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7246
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7248
ac_test_FFLAGS=${FFLAGS+set}
7249
ac_save_FFLAGS=$FFLAGS
7251
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7252
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7253
if test "${ac_cv_prog_f77_g+set}" = set; then
7254
echo $ECHO_N "(cached) $ECHO_C" >&6
7257
cat >conftest.$ac_ext <<_ACEOF
7262
rm -f conftest.$ac_objext
7263
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7264
(eval $ac_compile) 2>conftest.er1
7266
grep -v '^ *+' conftest.er1 >conftest.err
7268
cat conftest.err >&5
7269
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270
(exit $ac_status); } &&
7271
{ ac_try='test -z "$ac_f77_werror_flag"
7272
|| test ! -s conftest.err'
7273
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7276
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277
(exit $ac_status); }; } &&
7278
{ ac_try='test -s conftest.$ac_objext'
7279
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7282
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283
(exit $ac_status); }; }; then
7284
ac_cv_prog_f77_g=yes
7286
echo "$as_me: failed program was:" >&5
7287
sed 's/^/| /' conftest.$ac_ext >&5
7291
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7294
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7295
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7296
if test "$ac_test_FFLAGS" = set; then
7297
FFLAGS=$ac_save_FFLAGS
7298
elif test $ac_cv_prog_f77_g = yes; then
7299
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7305
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7312
G77=`test $ac_compiler_gnu = yes && echo yes`
7314
ac_cpp='$CPP $CPPFLAGS'
7315
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7316
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7317
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7321
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7323
# find the maximum length of command line arguments
7324
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7325
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7326
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7327
echo $ECHO_N "(cached) $ECHO_C" >&6
7334
# On DJGPP, this test can blow up pretty badly due to problems in libc
7335
# (any single argument exceeding 2000 bytes causes a buffer overrun
7336
# during glob expansion). Even if it were fixed, the result of this
7337
# check would be larger than it should be.
7338
lt_cv_sys_max_cmd_len=12288; # 12K is about right
7342
# Under GNU Hurd, this test is not required because there is
7343
# no limit to the length of command line arguments.
7344
# Libtool will interpret -1 as no limit whatsoever
7345
lt_cv_sys_max_cmd_len=-1;
7349
# On Win9x/ME, this test blows up -- it succeeds, but takes
7350
# about 5 minutes as the teststring grows exponentially.
7351
# Worse, since 9x/ME are not pre-emptively multitasking,
7352
# you end up with a "frozen" computer, even though with patience
7353
# the test eventually succeeds (with a max line length of 256k).
7354
# Instead, let's just punt: use the minimum linelength reported by
7355
# all of the supported platforms: 8192 (on NT/2K/XP).
7356
lt_cv_sys_max_cmd_len=8192;
7360
# If test is not a shell built-in, we'll probably end up computing a
7361
# maximum length that is only half of the actual maximum length, but
7363
while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
7364
= "XX$testring") >/dev/null 2>&1 &&
7365
new_result=`expr "X$testring" : ".*" 2>&1` &&
7366
lt_cv_sys_max_cmd_len=$new_result &&
7367
test $i != 17 # 1/2 MB should be enough
7370
testring=$testring$testring
7373
# Add a significant safety factor because C++ compilers can tack on massive
7374
# amounts of additional arguments before passing them to the linker.
7375
# It appears as though 1/2 is a usable value.
7376
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7382
if test -n $lt_cv_sys_max_cmd_len ; then
7383
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7384
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7386
echo "$as_me:$LINENO: result: none" >&5
7387
echo "${ECHO_T}none" >&6
7393
# Check for command to grab the raw symbol name followed by C symbol from nm.
7394
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7395
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7396
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7397
echo $ECHO_N "(cached) $ECHO_C" >&6
7400
# These are sane defaults that work on at least a few old systems.
7401
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7403
# Character class describing NM global symbol codes.
7404
symcode='[BCDEGRST]'
7406
# Regexp to match symbols that can be accessed directly from C.
7407
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7409
# Transform the above into a raw symbol and a C symbol.
7410
symxfrm='\1 \2\3 \3'
7412
# Transform an extracted symbol line into a proper C declaration
7413
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7415
# Transform an extracted symbol line into symbol name and symbol address
7416
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'"
7418
# Define system-specific variables.
7423
cygwin* | mingw* | pw32*)
7424
symcode='[ABCDGISTW]'
7426
hpux*) # Its linker distinguishes data from code symbols
7427
if test "$host_cpu" = ia64; then
7428
symcode='[ABCDEGRST]'
7430
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7431
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'"
7434
symcode='[BCDEGRST]'
7437
symcode='[BCDEGQRST]'
7447
# Handle CRLF in mingw tool chain
7451
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7455
# If we're using GNU nm, then use its standard symbol codes.
7456
case `$NM -V 2>&1` in
7457
*GNU* | *'with BFD'*)
7458
symcode='[ABCDGISTW]' ;;
7461
# Try without a prefix undercore, then with it.
7462
for ac_symprfx in "" "_"; do
7464
# Write the raw and C identifiers.
7465
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7467
# Check to see that the pipe works correctly.
7471
cat > conftest.$ac_ext <<EOF
7476
void nm_test_func(){}
7480
int main(){nm_test_var='a';nm_test_func();return(0);}
7483
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7484
(eval $ac_compile) 2>&5
7486
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487
(exit $ac_status); }; then
7488
# Now try to grab the symbols.
7490
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7491
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494
(exit $ac_status); } && test -s "$nlist"; then
7495
# Try sorting and uniquifying the output.
7496
if sort "$nlist" | uniq > "$nlist"T; then
7497
mv -f "$nlist"T "$nlist"
7502
# Make sure that we snagged all the symbols we need.
7503
if grep ' nm_test_var$' "$nlist" >/dev/null; then
7504
if grep ' nm_test_func$' "$nlist" >/dev/null; then
7505
cat <<EOF > conftest.$ac_ext
7511
# Now generate the symbol file.
7512
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7514
cat <<EOF >> conftest.$ac_ext
7515
#if defined (__STDC__) && __STDC__
7516
# define lt_ptr_t void *
7518
# define lt_ptr_t char *
7522
/* The mapping between symbol names and symbols. */
7527
lt_preloaded_symbols[] =
7530
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7531
cat <<\EOF >> conftest.$ac_ext
7539
# Now try linking the two files.
7540
mv conftest.$ac_objext conftstm.$ac_objext
7541
lt_save_LIBS="$LIBS"
7542
lt_save_CFLAGS="$CFLAGS"
7543
LIBS="conftstm.$ac_objext"
7544
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7545
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7546
(eval $ac_link) 2>&5
7548
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549
(exit $ac_status); } && test -s conftest${ac_exeext}; then
7552
LIBS="$lt_save_LIBS"
7553
CFLAGS="$lt_save_CFLAGS"
7555
echo "cannot find nm_test_func in $nlist" >&5
7558
echo "cannot find nm_test_var in $nlist" >&5
7561
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7564
echo "$progname: failed program was:" >&5
7565
cat conftest.$ac_ext >&5
7567
rm -f conftest* conftst*
7569
# Do not use the global_symbol_pipe unless it works.
7570
if test "$pipe_works" = yes; then
7573
lt_cv_sys_global_symbol_pipe=
7579
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7580
lt_cv_sys_global_symbol_to_cdecl=
7582
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7583
echo "$as_me:$LINENO: result: failed" >&5
7584
echo "${ECHO_T}failed" >&6
7586
echo "$as_me:$LINENO: result: ok" >&5
7587
echo "${ECHO_T}ok" >&6
7590
echo "$as_me:$LINENO: checking for objdir" >&5
7591
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7592
if test "${lt_cv_objdir+set}" = set; then
7593
echo $ECHO_N "(cached) $ECHO_C" >&6
7595
rm -f .libs 2>/dev/null
7596
mkdir .libs 2>/dev/null
7597
if test -d .libs; then
7600
# MS-DOS does not allow filenames that begin with a dot.
7603
rmdir .libs 2>/dev/null
7605
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7606
echo "${ECHO_T}$lt_cv_objdir" >&6
7607
objdir=$lt_cv_objdir
7615
# AIX sometimes has problems with the GCC collect2 program. For some
7616
# reason, if we set the COLLECT_NAMES environment variable, the problems
7617
# vanish in a puff of smoke.
7618
if test "X${COLLECT_NAMES+set}" != Xset; then
7620
export COLLECT_NAMES
7625
# Sed substitution that helps us do robust quoting. It backslashifies
7626
# metacharacters that are still active within double-quoted strings.
7627
Xsed='sed -e s/^X//'
7628
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7630
# Same as above, but do not quote variable references.
7631
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7633
# Sed substitution to delay expansion of an escaped shell variable in a
7634
# double_quote_subst'ed string.
7635
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7637
# Sed substitution to avoid accidental globbing in evaled expressions
7638
no_glob_subst='s/\*/\\\*/g'
7644
default_ofile=libtool
7645
can_build_shared=yes
7647
# All known linkers require a `.a' archive for static linking (except M$VC,
7648
# which needs '.lib').
7650
ltmain="$ac_aux_dir/ltmain.sh"
7651
ofile="$default_ofile"
7652
with_gnu_ld="$lt_cv_prog_gnu_ld"
7654
if test -n "$ac_tool_prefix"; then
7655
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7656
set dummy ${ac_tool_prefix}ar; ac_word=$2
7657
echo "$as_me:$LINENO: checking for $ac_word" >&5
7658
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7659
if test "${ac_cv_prog_AR+set}" = set; then
7660
echo $ECHO_N "(cached) $ECHO_C" >&6
7662
if test -n "$AR"; then
7663
ac_cv_prog_AR="$AR" # Let the user override the test.
7665
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669
test -z "$as_dir" && as_dir=.
7670
for ac_exec_ext in '' $ac_executable_extensions; do
7671
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7672
ac_cv_prog_AR="${ac_tool_prefix}ar"
7673
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7682
if test -n "$AR"; then
7683
echo "$as_me:$LINENO: result: $AR" >&5
7684
echo "${ECHO_T}$AR" >&6
7686
echo "$as_me:$LINENO: result: no" >&5
7687
echo "${ECHO_T}no" >&6
7691
if test -z "$ac_cv_prog_AR"; then
7693
# Extract the first word of "ar", so it can be a program name with args.
7694
set dummy ar; ac_word=$2
7695
echo "$as_me:$LINENO: checking for $ac_word" >&5
7696
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7697
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7698
echo $ECHO_N "(cached) $ECHO_C" >&6
7700
if test -n "$ac_ct_AR"; then
7701
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7703
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707
test -z "$as_dir" && as_dir=.
7708
for ac_exec_ext in '' $ac_executable_extensions; do
7709
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7710
ac_cv_prog_ac_ct_AR="ar"
7711
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7717
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7720
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7721
if test -n "$ac_ct_AR"; then
7722
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7723
echo "${ECHO_T}$ac_ct_AR" >&6
7725
echo "$as_me:$LINENO: result: no" >&5
7726
echo "${ECHO_T}no" >&6
7734
if test -n "$ac_tool_prefix"; then
7735
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7736
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7737
echo "$as_me:$LINENO: checking for $ac_word" >&5
7738
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7739
if test "${ac_cv_prog_RANLIB+set}" = set; then
7740
echo $ECHO_N "(cached) $ECHO_C" >&6
7742
if test -n "$RANLIB"; then
7743
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7745
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749
test -z "$as_dir" && as_dir=.
7750
for ac_exec_ext in '' $ac_executable_extensions; do
7751
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7752
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7753
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7761
RANLIB=$ac_cv_prog_RANLIB
7762
if test -n "$RANLIB"; then
7763
echo "$as_me:$LINENO: result: $RANLIB" >&5
7764
echo "${ECHO_T}$RANLIB" >&6
7766
echo "$as_me:$LINENO: result: no" >&5
7767
echo "${ECHO_T}no" >&6
7771
if test -z "$ac_cv_prog_RANLIB"; then
7772
ac_ct_RANLIB=$RANLIB
7773
# Extract the first word of "ranlib", so it can be a program name with args.
7774
set dummy ranlib; ac_word=$2
7775
echo "$as_me:$LINENO: checking for $ac_word" >&5
7776
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7777
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7778
echo $ECHO_N "(cached) $ECHO_C" >&6
7780
if test -n "$ac_ct_RANLIB"; then
7781
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7783
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787
test -z "$as_dir" && as_dir=.
7788
for ac_exec_ext in '' $ac_executable_extensions; do
7789
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7790
ac_cv_prog_ac_ct_RANLIB="ranlib"
7791
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7797
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7800
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7801
if test -n "$ac_ct_RANLIB"; then
7802
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7803
echo "${ECHO_T}$ac_ct_RANLIB" >&6
7805
echo "$as_me:$LINENO: result: no" >&5
7806
echo "${ECHO_T}no" >&6
7809
RANLIB=$ac_ct_RANLIB
7811
RANLIB="$ac_cv_prog_RANLIB"
7814
if test -n "$ac_tool_prefix"; then
7815
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7816
set dummy ${ac_tool_prefix}strip; ac_word=$2
7817
echo "$as_me:$LINENO: checking for $ac_word" >&5
7818
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7819
if test "${ac_cv_prog_STRIP+set}" = set; then
7820
echo $ECHO_N "(cached) $ECHO_C" >&6
7822
if test -n "$STRIP"; then
7823
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7825
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829
test -z "$as_dir" && as_dir=.
7830
for ac_exec_ext in '' $ac_executable_extensions; do
7831
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7832
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7833
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7841
STRIP=$ac_cv_prog_STRIP
7842
if test -n "$STRIP"; then
7843
echo "$as_me:$LINENO: result: $STRIP" >&5
7844
echo "${ECHO_T}$STRIP" >&6
7846
echo "$as_me:$LINENO: result: no" >&5
7847
echo "${ECHO_T}no" >&6
7851
if test -z "$ac_cv_prog_STRIP"; then
7853
# Extract the first word of "strip", so it can be a program name with args.
7854
set dummy strip; ac_word=$2
7855
echo "$as_me:$LINENO: checking for $ac_word" >&5
7856
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7857
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7858
echo $ECHO_N "(cached) $ECHO_C" >&6
7860
if test -n "$ac_ct_STRIP"; then
7861
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7863
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867
test -z "$as_dir" && as_dir=.
7868
for ac_exec_ext in '' $ac_executable_extensions; do
7869
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7870
ac_cv_prog_ac_ct_STRIP="strip"
7871
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7877
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7880
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7881
if test -n "$ac_ct_STRIP"; then
7882
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7883
echo "${ECHO_T}$ac_ct_STRIP" >&6
7885
echo "$as_me:$LINENO: result: no" >&5
7886
echo "${ECHO_T}no" >&6
7891
STRIP="$ac_cv_prog_STRIP"
7896
old_CFLAGS="$CFLAGS"
7898
# Set sane defaults for various variables
7899
test -z "$AR" && AR=ar
7900
test -z "$AR_FLAGS" && AR_FLAGS=cru
7901
test -z "$AS" && AS=as
7902
test -z "$CC" && CC=cc
7903
test -z "$LTCC" && LTCC=$CC
7904
test -z "$DLLTOOL" && DLLTOOL=dlltool
7905
test -z "$LD" && LD=ld
7906
test -z "$LN_S" && LN_S="ln -s"
7907
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7908
test -z "$NM" && NM=nm
7909
test -z "$SED" && SED=sed
7910
test -z "$OBJDUMP" && OBJDUMP=objdump
7911
test -z "$RANLIB" && RANLIB=:
7912
test -z "$STRIP" && STRIP=:
7913
test -z "$ac_objext" && ac_objext=o
7915
# Determine commands to create old-style static archives.
7916
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7917
old_postinstall_cmds='chmod 644 $oldlib'
7918
old_postuninstall_cmds=
7920
if test -n "$RANLIB"; then
7923
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7926
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7929
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7932
# Only perform the check for file, if the check method requires it
7933
case $deplibs_check_method in
7935
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7936
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7937
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7938
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7939
echo $ECHO_N "(cached) $ECHO_C" >&6
7943
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7946
lt_save_MAGIC_CMD="$MAGIC_CMD"
7947
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7948
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7949
for ac_dir in $ac_dummy; do
7951
test -z "$ac_dir" && ac_dir=.
7952
if test -f $ac_dir/${ac_tool_prefix}file; then
7953
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7954
if test -n "$file_magic_test_file"; then
7955
case $deplibs_check_method in
7957
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7958
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7959
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7960
$EGREP "$file_magic_regex" > /dev/null; then
7965
*** Warning: the command libtool uses to detect shared libraries,
7966
*** $file_magic_cmd, produces output that libtool cannot recognize.
7967
*** The result is that libtool may fail to recognize shared libraries
7968
*** as such. This will affect the creation of libtool libraries that
7969
*** depend on shared libraries, but programs linked with such libtool
7970
*** libraries will work regardless of this problem. Nevertheless, you
7971
*** may want to report the problem to your system manager and/or to
7972
*** bug-libtool@gnu.org
7982
MAGIC_CMD="$lt_save_MAGIC_CMD"
7987
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7988
if test -n "$MAGIC_CMD"; then
7989
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7990
echo "${ECHO_T}$MAGIC_CMD" >&6
7992
echo "$as_me:$LINENO: result: no" >&5
7993
echo "${ECHO_T}no" >&6
7996
if test -z "$lt_cv_path_MAGIC_CMD"; then
7997
if test -n "$ac_tool_prefix"; then
7998
echo "$as_me:$LINENO: checking for file" >&5
7999
echo $ECHO_N "checking for file... $ECHO_C" >&6
8000
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8001
echo $ECHO_N "(cached) $ECHO_C" >&6
8005
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8008
lt_save_MAGIC_CMD="$MAGIC_CMD"
8009
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8010
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8011
for ac_dir in $ac_dummy; do
8013
test -z "$ac_dir" && ac_dir=.
8014
if test -f $ac_dir/file; then
8015
lt_cv_path_MAGIC_CMD="$ac_dir/file"
8016
if test -n "$file_magic_test_file"; then
8017
case $deplibs_check_method in
8019
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8020
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8021
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8022
$EGREP "$file_magic_regex" > /dev/null; then
8027
*** Warning: the command libtool uses to detect shared libraries,
8028
*** $file_magic_cmd, produces output that libtool cannot recognize.
8029
*** The result is that libtool may fail to recognize shared libraries
8030
*** as such. This will affect the creation of libtool libraries that
8031
*** depend on shared libraries, but programs linked with such libtool
8032
*** libraries will work regardless of this problem. Nevertheless, you
8033
*** may want to report the problem to your system manager and/or to
8034
*** bug-libtool@gnu.org
8044
MAGIC_CMD="$lt_save_MAGIC_CMD"
8049
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8050
if test -n "$MAGIC_CMD"; then
8051
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8052
echo "${ECHO_T}$MAGIC_CMD" >&6
8054
echo "$as_me:$LINENO: result: no" >&5
8055
echo "${ECHO_T}no" >&6
8068
enable_win32_dll=yes
8070
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8071
if test "${enable_libtool_lock+set}" = set; then
8072
enableval="$enable_libtool_lock"
8075
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8078
# Check whether --with-pic or --without-pic was given.
8079
if test "${with_pic+set}" = set; then
8085
test -z "$pic_mode" && pic_mode=default
8087
# Use C for the default configuration in the libtool script
8091
ac_cpp='$CPP $CPPFLAGS'
8092
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8093
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8094
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8097
# Source file extension for C test sources.
8100
# Object file extension for compiled C test sources.
8104
# Code to be used in simple compile tests
8105
lt_simple_compile_test_code="int some_variable = 0;\n"
8107
# Code to be used in simple link tests
8108
lt_simple_link_test_code='int main(){return(0);}\n'
8111
# If no C compiler was specified, use CC.
8114
# Allow CC to be a program name with arguments.
8119
# Check for any special shared library compilation flags.
8122
if test "$GCC" = no; then
8125
lt_prog_cc_shlib='-belf'
8129
if test -n "$lt_prog_cc_shlib"; then
8130
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8131
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8132
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8134
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8135
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8136
lt_cv_prog_cc_can_build_shared=no
8142
# Check to make sure the static flag actually works.
8144
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8145
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8146
if test "${lt_prog_compiler_static_works+set}" = set; then
8147
echo $ECHO_N "(cached) $ECHO_C" >&6
8149
lt_prog_compiler_static_works=no
8150
save_LDFLAGS="$LDFLAGS"
8151
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8152
printf "$lt_simple_link_test_code" > conftest.$ac_ext
8153
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8154
# The compiler can only warn and ignore the option if not recognized
8155
# So say no if there are warnings
8156
if test -s conftest.err; then
8157
# Append any errors to the config.log.
8158
cat conftest.err 1>&5
8160
lt_prog_compiler_static_works=yes
8164
LDFLAGS="$save_LDFLAGS"
8167
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8168
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8170
if test x"$lt_prog_compiler_static_works" = xyes; then
8173
lt_prog_compiler_static=
8179
## There is no encapsulation within the following macros, do not change
8180
## the running order or otherwise move them around unless you know exactly
8181
## what you are doing...
8183
lt_prog_compiler_no_builtin_flag=
8185
if test "$GCC" = yes; then
8186
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8188
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8189
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8190
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8191
echo $ECHO_N "(cached) $ECHO_C" >&6
8193
lt_cv_prog_compiler_rtti_exceptions=no
8194
ac_outfile=conftest.$ac_objext
8195
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8196
lt_compiler_flag="-fno-rtti -fno-exceptions"
8197
# Insert the option either (1) after the last *FLAGS variable, or
8198
# (2) before a word containing "conftest.", or (3) at the end.
8199
# Note that $ac_compile itself does not contain backslashes and begins
8200
# with a dollar sign (not a hyphen), so the echo should work correctly.
8201
# The option is referenced via a variable to avoid confusing sed.
8202
lt_compile=`echo "$ac_compile" | $SED \
8203
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8204
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8205
-e 's:$: $lt_compiler_flag:'`
8206
(eval echo "\"\$as_me:8206: $lt_compile\"" >&5)
8207
(eval "$lt_compile" 2>conftest.err)
8209
cat conftest.err >&5
8210
echo "$as_me:8210: \$? = $ac_status" >&5
8211
if (exit $ac_status) && test -s "$ac_outfile"; then
8212
# The compiler can only warn and ignore the option if not recognized
8213
# So say no if there are warnings
8214
if test ! -s conftest.err; then
8215
lt_cv_prog_compiler_rtti_exceptions=yes
8221
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8222
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8224
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8225
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8232
lt_prog_compiler_wl=
8233
lt_prog_compiler_pic=
8234
lt_prog_compiler_static=
8236
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8237
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8239
if test "$GCC" = yes; then
8240
lt_prog_compiler_wl='-Wl,'
8241
lt_prog_compiler_static='-static'
8245
# All AIX code is PIC.
8246
if test "$host_cpu" = ia64; then
8247
# AIX 5 now supports IA64 processor
8248
lt_prog_compiler_static='-Bstatic'
8253
# FIXME: we need at least 68020 code to build shared libraries, but
8254
# adding the `-m68020' flag to GCC prevents building anything better,
8256
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8259
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8260
# PIC is the default for these OSes.
8263
mingw* | pw32* | os2*)
8264
# This hack is so that the source file can tell whether it is being
8265
# built for inclusion in a dll (and should export symbols for example).
8266
lt_prog_compiler_pic='-DDLL_EXPORT'
8269
darwin* | rhapsody*)
8270
# PIC is the default on this platform
8271
# Common symbols not allowed in MH_DYLIB files
8272
lt_prog_compiler_pic='-fno-common'
8276
# Just because we use GCC doesn't mean we suddenly get shared libraries
8277
# on systems that don't support them.
8278
lt_prog_compiler_can_build_shared=no
8283
if test -d /usr/nec; then
8284
lt_prog_compiler_pic=-Kconform_pic
8289
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8296
lt_prog_compiler_pic='-fPIC'
8302
lt_prog_compiler_pic='-fPIC'
8306
# PORTME Check for flag to pass linker flags through the system compiler.
8309
lt_prog_compiler_wl='-Wl,'
8310
if test "$host_cpu" = ia64; then
8311
# AIX 5 now supports IA64 processor
8312
lt_prog_compiler_static='-Bstatic'
8314
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8318
mingw* | pw32* | os2*)
8319
# This hack is so that the source file can tell whether it is being
8320
# built for inclusion in a dll (and should export symbols for example).
8321
lt_prog_compiler_pic='-DDLL_EXPORT'
8324
hpux9* | hpux10* | hpux11*)
8325
lt_prog_compiler_wl='-Wl,'
8326
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8333
lt_prog_compiler_pic='+Z'
8336
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8337
lt_prog_compiler_static='${wl}-a ${wl}archive'
8340
irix5* | irix6* | nonstopux*)
8341
lt_prog_compiler_wl='-Wl,'
8342
# PIC (with -KPIC) is the default.
8343
lt_prog_compiler_static='-non_shared'
8347
lt_prog_compiler_pic='-KPIC'
8348
lt_prog_compiler_static='-Bstatic'
8354
lt_prog_compiler_wl='-Wl,'
8355
lt_prog_compiler_pic='-KPIC'
8356
lt_prog_compiler_static='-static'
8359
lt_prog_compiler_wl='-Wl,'
8360
# All Alpha code is PIC.
8361
lt_prog_compiler_static='-non_shared'
8366
osf3* | osf4* | osf5*)
8367
lt_prog_compiler_wl='-Wl,'
8368
# All OSF/1 code is PIC.
8369
lt_prog_compiler_static='-non_shared'
8373
lt_prog_compiler_pic='-Kpic'
8374
lt_prog_compiler_static='-dn'
8378
lt_prog_compiler_wl='-Wl,'
8379
lt_prog_compiler_pic='-KPIC'
8380
lt_prog_compiler_static='-Bstatic'
8384
lt_prog_compiler_wl='-Qoption ld '
8385
lt_prog_compiler_pic='-PIC'
8386
lt_prog_compiler_static='-Bstatic'
8389
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8390
lt_prog_compiler_wl='-Wl,'
8391
lt_prog_compiler_pic='-KPIC'
8392
lt_prog_compiler_static='-Bstatic'
8396
if test -d /usr/nec ;then
8397
lt_prog_compiler_pic='-Kconform_pic'
8398
lt_prog_compiler_static='-Bstatic'
8403
lt_prog_compiler_pic='-pic'
8404
lt_prog_compiler_static='-Bstatic'
8408
lt_prog_compiler_can_build_shared=no
8413
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8414
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8417
# Check to make sure the PIC flag actually works.
8419
if test -n "$lt_prog_compiler_pic"; then
8420
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8421
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8422
if test "${lt_prog_compiler_pic_works+set}" = set; then
8423
echo $ECHO_N "(cached) $ECHO_C" >&6
8425
lt_prog_compiler_pic_works=no
8426
ac_outfile=conftest.$ac_objext
8427
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8428
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8429
# Insert the option either (1) after the last *FLAGS variable, or
8430
# (2) before a word containing "conftest.", or (3) at the end.
8431
# Note that $ac_compile itself does not contain backslashes and begins
8432
# with a dollar sign (not a hyphen), so the echo should work correctly.
8433
# The option is referenced via a variable to avoid confusing sed.
8434
lt_compile=`echo "$ac_compile" | $SED \
8435
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8436
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8437
-e 's:$: $lt_compiler_flag:'`
8438
(eval echo "\"\$as_me:8438: $lt_compile\"" >&5)
8439
(eval "$lt_compile" 2>conftest.err)
8441
cat conftest.err >&5
8442
echo "$as_me:8442: \$? = $ac_status" >&5
8443
if (exit $ac_status) && test -s "$ac_outfile"; then
8444
# The compiler can only warn and ignore the option if not recognized
8445
# So say no if there are warnings
8446
if test ! -s conftest.err; then
8447
lt_prog_compiler_pic_works=yes
8453
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8454
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8456
if test x"$lt_prog_compiler_pic_works" = xyes; then
8457
case $lt_prog_compiler_pic in
8459
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8462
lt_prog_compiler_pic=
8463
lt_prog_compiler_can_build_shared=no
8468
# For platforms which do not support PIC, -DPIC is meaningless:
8470
lt_prog_compiler_pic=
8473
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8477
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8478
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8479
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8480
echo $ECHO_N "(cached) $ECHO_C" >&6
8482
lt_cv_prog_compiler_c_o=no
8483
$rm -r conftest 2>/dev/null
8487
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8489
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
8490
# that will create temporary files in the current directory regardless of
8491
# the output directory. Thus, making CWD read-only will cause this test
8492
# to fail, enabling locking or at least warning the user not to do parallel
8496
lt_compiler_flag="-o out/conftest2.$ac_objext"
8497
# Insert the option either (1) after the last *FLAGS variable, or
8498
# (2) before a word containing "conftest.", or (3) at the end.
8499
# Note that $ac_compile itself does not contain backslashes and begins
8500
# with a dollar sign (not a hyphen), so the echo should work correctly.
8501
lt_compile=`echo "$ac_compile" | $SED \
8502
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8503
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8504
-e 's:$: $lt_compiler_flag:'`
8505
(eval echo "\"\$as_me:8505: $lt_compile\"" >&5)
8506
(eval "$lt_compile" 2>out/conftest.err)
8508
cat out/conftest.err >&5
8509
echo "$as_me:8509: \$? = $ac_status" >&5
8510
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8512
# The compiler can only warn and ignore the option if not recognized
8513
# So say no if there are warnings
8514
if test ! -s out/conftest.err; then
8515
lt_cv_prog_compiler_c_o=yes
8526
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8527
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8530
hard_links="nottested"
8531
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8532
# do not overwrite the value of need_locks provided by the user
8533
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8534
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8537
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8539
ln conftest.a conftest.b 2>&5 || hard_links=no
8540
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8541
echo "$as_me:$LINENO: result: $hard_links" >&5
8542
echo "${ECHO_T}$hard_links" >&6
8543
if test "$hard_links" = no; then
8544
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8545
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8552
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8553
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8556
allow_undefined_flag=
8557
enable_shared_with_static_runtimes=no
8559
archive_expsym_cmds=
8560
old_archive_From_new_cmds=
8561
old_archive_from_expsyms_cmds=
8562
export_dynamic_flag_spec=
8563
whole_archive_flag_spec=
8564
thread_safe_flag_spec=
8565
hardcode_libdir_flag_spec=
8566
hardcode_libdir_flag_spec_ld=
8567
hardcode_libdir_separator=
8570
hardcode_shlibpath_var=unsupported
8571
link_all_deplibs=unknown
8572
hardcode_automatic=no
8575
always_export_symbols=no
8576
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8577
# include_expsyms should be a list of space-separated symbols to be *always*
8578
# included in the symbol list
8580
# exclude_expsyms can be an extended regexp of symbols to exclude
8581
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8582
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8583
# as well as any symbol that contains `d'.
8584
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8585
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8586
# platforms (ab)use it in PIC code, but their linkers get confused if
8587
# the symbol is explicitly referenced. Since portable code cannot
8588
# rely on this symbol name, it's probably fine to never include it in
8589
# preloaded symbol tables.
8590
extract_expsyms_cmds=
8593
cygwin* | mingw* | pw32*)
8594
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8595
# When not using gcc, we currently assume that we are using
8596
# Microsoft Visual C++.
8597
if test "$GCC" != yes; then
8607
if test "$with_gnu_ld" = yes; then
8608
# If archive_cmds runs LD, not CC, wlarc should be empty
8611
# See if GNU ld supports shared libraries.
8613
aix3* | aix4* | aix5*)
8614
# On AIX/PPC, the GNU linker is very broken
8615
if test "$host_cpu" != ia64; then
8619
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8620
*** to be unable to reliably create shared libraries on AIX.
8621
*** Therefore, libtool is disabling shared libraries support. If you
8622
*** really care for shared libraries, you may want to modify your PATH
8623
*** so that a non-GNU linker is found, and then restart.
8630
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)'
8631
hardcode_libdir_flag_spec='-L$libdir'
8632
hardcode_minus_L=yes
8634
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8635
# that the semantics of dynamic libraries on AmigaOS, at least up
8636
# to version 4, is to share data among multiple programs linked
8637
# with the same dynamic library. Since this doesn't match the
8638
# behavior of shared libraries on other platforms, we can't use
8644
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8645
allow_undefined_flag=unsupported
8646
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8647
# support --undefined. This deserves some investigation. FIXME
8648
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8654
cygwin* | mingw* | pw32*)
8655
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8656
# as there is no search path for DLLs.
8657
hardcode_libdir_flag_spec='-L$libdir'
8658
allow_undefined_flag=unsupported
8659
always_export_symbols=no
8660
enable_shared_with_static_runtimes=yes
8661
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8663
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8664
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
8665
# If the export-symbols file already is a .def file (1st line
8666
# is EXPORTS), use it as is; otherwise, prepend...
8667
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8668
cp $export_symbols $output_objdir/$soname.def;
8670
echo EXPORTS > $output_objdir/$soname.def;
8671
cat $export_symbols >> $output_objdir/$soname.def;
8673
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
8680
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8681
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8684
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8685
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8690
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8694
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8695
*** create shared libraries on Solaris systems. Therefore, libtool
8696
*** is disabling shared libraries support. We urge you to upgrade GNU
8697
*** binutils to release 2.9.1 or newer. Another option is to modify
8698
*** your PATH or compiler configuration so that the native linker is
8699
*** used, and then restart.
8702
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8703
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8704
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8711
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8714
hardcode_shlibpath_var=no
8718
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8719
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8720
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8727
if test "$ld_shlibs" = yes; then
8728
runpath_var=LD_RUN_PATH
8729
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8730
export_dynamic_flag_spec='${wl}--export-dynamic'
8731
# ancient GNU ld didn't support --whole-archive et. al.
8732
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8733
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8735
whole_archive_flag_spec=
8739
# PORTME fill in a description of your system's linker (not GNU ld)
8742
allow_undefined_flag=unsupported
8743
always_export_symbols=yes
8744
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'
8745
# Note: this linker hardcodes the directories in LIBPATH if there
8746
# are no directories specified by -L.
8747
hardcode_minus_L=yes
8748
if test "$GCC" = yes && test -z "$link_static_flag"; then
8749
# Neither direct hardcoding nor static linking is supported with a
8751
hardcode_direct=unsupported
8756
if test "$host_cpu" = ia64; then
8757
# On IA64, the linker does run time linking by default, so we don't
8758
# have to do anything special.
8759
aix_use_runtimelinking=no
8760
exp_sym_flag='-Bexport'
8763
# If we're using GNU nm, then we don't want the "-C" option.
8764
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8765
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8766
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'
8768
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'
8770
aix_use_runtimelinking=no
8772
# Test if we are trying to use run time linking or normal
8773
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8774
# need to do runtime linking.
8775
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8776
for ld_flag in $LDFLAGS; do
8777
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8778
aix_use_runtimelinking=yes
8784
exp_sym_flag='-bexport'
8785
no_entry_flag='-bnoentry'
8788
# When large executables or shared objects are built, AIX ld can
8789
# have problems creating the table of contents. If linking a library
8790
# or program results in "error TOC overflow" add -mminimal-toc to
8791
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8792
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8796
hardcode_libdir_separator=':'
8797
link_all_deplibs=yes
8799
if test "$GCC" = yes; then
8800
case $host_os in aix4.012|aix4.012.*)
8801
# We only want to do this on AIX 4.2 and lower, the check
8802
# below for broken collect2 doesn't work under 4.3+
8803
collect2name=`${CC} -print-prog-name=collect2`
8804
if test -f "$collect2name" && \
8805
strings "$collect2name" | grep resolve_lib_name >/dev/null
8807
# We have reworked collect2
8810
# We have old collect2
8811
hardcode_direct=unsupported
8812
# It fails to find uninstalled libraries when the uninstalled
8813
# path is not listed in the libpath. Setting hardcode_minus_L
8814
# to unsupported forces relinking
8815
hardcode_minus_L=yes
8816
hardcode_libdir_flag_spec='-L$libdir'
8817
hardcode_libdir_separator=
8820
shared_flag='-shared'
8823
if test "$host_cpu" = ia64; then
8824
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8825
# chokes on -Wl,-G. The following line is correct:
8828
if test "$aix_use_runtimelinking" = yes; then
8829
shared_flag='${wl}-G'
8831
shared_flag='${wl}-bM:SRE'
8836
# It seems that -bexpall does not export symbols beginning with
8837
# underscore (_), so it is better to generate a list of symbols to export.
8838
always_export_symbols=yes
8839
if test "$aix_use_runtimelinking" = yes; then
8840
# Warning - without using the other runtime loading flags (-brtl),
8841
# -berok will link without error, but may produce a broken library.
8842
allow_undefined_flag='-berok'
8843
# Determine the default libpath from the value encoded in an empty executable.
8844
cat >conftest.$ac_ext <<_ACEOF
8847
cat confdefs.h >>conftest.$ac_ext
8848
cat >>conftest.$ac_ext <<_ACEOF
8849
/* end confdefs.h. */
8859
rm -f conftest.$ac_objext conftest$ac_exeext
8860
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8861
(eval $ac_link) 2>conftest.er1
8863
grep -v '^ *+' conftest.er1 >conftest.err
8865
cat conftest.err >&5
8866
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867
(exit $ac_status); } &&
8868
{ ac_try='test -z "$ac_c_werror_flag"
8869
|| test ! -s conftest.err'
8870
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874
(exit $ac_status); }; } &&
8875
{ ac_try='test -s conftest$ac_exeext'
8876
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880
(exit $ac_status); }; }; then
8882
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8884
# Check for a 64-bit object if we didn't find anything.
8885
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; }
8888
echo "$as_me: failed program was:" >&5
8889
sed 's/^/| /' conftest.$ac_ext >&5
8892
rm -f conftest.err conftest.$ac_objext \
8893
conftest$ac_exeext conftest.$ac_ext
8894
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8896
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8897
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"
8899
if test "$host_cpu" = ia64; then
8900
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8901
allow_undefined_flag="-z nodefs"
8902
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"
8904
# Determine the default libpath from the value encoded in an empty executable.
8905
cat >conftest.$ac_ext <<_ACEOF
8908
cat confdefs.h >>conftest.$ac_ext
8909
cat >>conftest.$ac_ext <<_ACEOF
8910
/* end confdefs.h. */
8920
rm -f conftest.$ac_objext conftest$ac_exeext
8921
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8922
(eval $ac_link) 2>conftest.er1
8924
grep -v '^ *+' conftest.er1 >conftest.err
8926
cat conftest.err >&5
8927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928
(exit $ac_status); } &&
8929
{ ac_try='test -z "$ac_c_werror_flag"
8930
|| test ! -s conftest.err'
8931
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935
(exit $ac_status); }; } &&
8936
{ ac_try='test -s conftest$ac_exeext'
8937
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941
(exit $ac_status); }; }; then
8943
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8945
# Check for a 64-bit object if we didn't find anything.
8946
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; }
8949
echo "$as_me: failed program was:" >&5
8950
sed 's/^/| /' conftest.$ac_ext >&5
8953
rm -f conftest.err conftest.$ac_objext \
8954
conftest$ac_exeext conftest.$ac_ext
8955
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8957
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8958
# Warning - without using the other run time loading flags,
8959
# -berok will link without error, but may produce a broken library.
8960
no_undefined_flag=' ${wl}-bernotok'
8961
allow_undefined_flag=' ${wl}-berok'
8962
# -bexpall does not export symbols beginning with underscore (_)
8963
always_export_symbols=yes
8964
# Exported symbols can be pulled into shared objects from archives
8965
whole_archive_flag_spec=' '
8966
archive_cmds_need_lc=yes
8967
# This is similar to how AIX traditionally builds it's shared libraries.
8968
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'
8974
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)'
8975
hardcode_libdir_flag_spec='-L$libdir'
8976
hardcode_minus_L=yes
8977
# see comment about different semantics on the GNU ld section
8982
export_dynamic_flag_spec=-rdynamic
8985
cygwin* | mingw* | pw32*)
8986
# When not using gcc, we currently assume that we are using
8987
# Microsoft Visual C++.
8988
# hardcode_libdir_flag_spec is actually meaningless, as there is
8989
# no search path for DLLs.
8990
hardcode_libdir_flag_spec=' '
8991
allow_undefined_flag=unsupported
8992
# Tell ltmain to make .lib files, not .a files.
8994
# Tell ltmain to make .dll files, not .so files.
8996
# FIXME: Setting linknames here is a bad hack.
8997
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8998
# The linker will automatically build a .lib file if we build a DLL.
8999
old_archive_From_new_cmds='true'
9000
# FIXME: Should let the user specify the lib program.
9001
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9002
fix_srcfile_path='`cygpath -w "$srcfile"`'
9003
enable_shared_with_static_runtimes=yes
9006
darwin* | rhapsody*)
9007
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9008
archive_cmds_need_lc=no
9010
rhapsody* | darwin1.[012])
9011
allow_undefined_flag='-undefined suppress'
9014
test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
9017
# FIXME: Relying on posixy $() will cause problems for
9018
# cross-compilation, but unfortunately the echo tests do not
9019
# yet detect zsh echo's removal of \ escapes. Also zsh mangles
9020
# `"' quotes if we put them in here... so don't!
9021
lt_int_apple_cc_single_mod=no
9022
output_verbose_link_cmd='echo'
9023
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9024
lt_int_apple_cc_single_mod=yes
9026
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9027
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9029
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'
9031
module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9032
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9033
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9034
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}'
9036
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}'
9038
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9040
hardcode_automatic=yes
9041
hardcode_shlibpath_var=unsupported
9042
whole_archive_flag_spec='-all_load $convenience'
9043
link_all_deplibs=yes
9048
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9049
hardcode_libdir_flag_spec='-L$libdir'
9050
hardcode_shlibpath_var=no
9057
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9058
# support. Future versions do this automatically, but an explicit c++rt0.o
9059
# does not break anything, and helps significantly (at the cost of a little
9062
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9063
hardcode_libdir_flag_spec='-R$libdir'
9065
hardcode_shlibpath_var=no
9068
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9070
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9072
hardcode_minus_L=yes
9073
hardcode_shlibpath_var=no
9076
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9078
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9079
hardcode_libdir_flag_spec='-R$libdir'
9081
hardcode_shlibpath_var=no
9085
if test "$GCC" = yes; then
9086
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'
9088
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'
9090
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9091
hardcode_libdir_separator=:
9094
# hardcode_minus_L: Not really in the search PATH,
9095
# but as the default location of the library.
9096
hardcode_minus_L=yes
9097
export_dynamic_flag_spec='${wl}-E'
9101
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9104
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9107
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9113
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9116
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9120
if test "$with_gnu_ld" = no; then
9123
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9124
hardcode_libdir_flag_spec_ld='+b $libdir'
9125
hardcode_libdir_separator=:
9127
hardcode_shlibpath_var=no
9130
hardcode_libdir_flag_spec='-L$libdir'
9132
hardcode_shlibpath_var=no
9134
# hardcode_minus_L: Not really in the search PATH,
9135
# but as the default location of the library.
9136
hardcode_minus_L=yes
9139
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9140
hardcode_libdir_separator=:
9142
export_dynamic_flag_spec='${wl}-E'
9144
# hardcode_minus_L: Not really in the search PATH,
9145
# but as the default location of the library.
9146
hardcode_minus_L=yes
9152
irix5* | irix6* | nonstopux*)
9153
if test "$GCC" = yes; then
9154
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'
9156
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'
9157
hardcode_libdir_flag_spec_ld='-rpath $libdir'
9159
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9160
hardcode_libdir_separator=:
9161
link_all_deplibs=yes
9165
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9166
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9168
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9170
hardcode_libdir_flag_spec='-R$libdir'
9172
hardcode_shlibpath_var=no
9176
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9178
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9179
hardcode_libdir_separator=:
9180
hardcode_shlibpath_var=no
9185
hardcode_shlibpath_var=no
9186
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9187
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9188
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9189
export_dynamic_flag_spec='${wl}-E'
9192
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9193
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9194
hardcode_libdir_flag_spec='-R$libdir'
9197
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9198
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9205
hardcode_libdir_flag_spec='-L$libdir'
9206
hardcode_minus_L=yes
9207
allow_undefined_flag=unsupported
9208
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'
9209
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9213
if test "$GCC" = yes; then
9214
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9215
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'
9217
allow_undefined_flag=' -expect_unresolved \*'
9218
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'
9220
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9221
hardcode_libdir_separator=:
9224
osf4* | osf5*) # as osf3* with the addition of -msym flag
9225
if test "$GCC" = yes; then
9226
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9227
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'
9228
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9230
allow_undefined_flag=' -expect_unresolved \*'
9231
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'
9232
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9233
$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'
9235
# Both c and cxx compiler support -rpath directly
9236
hardcode_libdir_flag_spec='-rpath $libdir'
9238
hardcode_libdir_separator=:
9242
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9243
hardcode_shlibpath_var=no
9244
export_dynamic_flag_spec='${wl}-Bexport'
9245
runpath_var=LD_RUN_PATH
9246
hardcode_runpath_var=yes
9250
no_undefined_flag=' -z text'
9251
if test "$GCC" = yes; then
9252
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9253
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9254
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9256
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9257
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9258
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9260
hardcode_libdir_flag_spec='-R$libdir'
9261
hardcode_shlibpath_var=no
9263
solaris2.[0-5] | solaris2.[0-5].*) ;;
9264
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
9265
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9267
link_all_deplibs=yes
9271
if test "x$host_vendor" = xsequent; then
9272
# Use $CC to link under sequent, because it throws in some extra .o
9273
# files that make .init and .fini sections work.
9274
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9276
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9278
hardcode_libdir_flag_spec='-L$libdir'
9280
hardcode_minus_L=yes
9281
hardcode_shlibpath_var=no
9285
case $host_vendor in
9287
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9288
hardcode_direct=yes # is this really true???
9291
## LD is ld it makes a PLAMLIB
9292
## CC just makes a GrossModule.
9293
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9294
reload_cmds='$CC -r -o $output$reload_objs'
9298
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9299
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9302
runpath_var='LD_RUN_PATH'
9303
hardcode_shlibpath_var=no
9307
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9308
hardcode_shlibpath_var=no
9309
export_dynamic_flag_spec='-Bexport'
9313
if test -d /usr/nec; then
9314
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9315
hardcode_shlibpath_var=no
9316
runpath_var=LD_RUN_PATH
9317
hardcode_runpath_var=yes
9323
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9326
hardcode_shlibpath_var=no
9327
hardcode_runpath_var=yes
9328
runpath_var=LD_RUN_PATH
9331
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9332
no_undefined_flag='${wl}-z ${wl}text'
9333
if test "$GCC" = yes; then
9334
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9336
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9338
runpath_var='LD_RUN_PATH'
9339
hardcode_shlibpath_var=no
9343
no_undefined_flag=' -z text'
9344
# $CC -shared without GNU ld will not create a library from C++
9345
# object files and a static libstdc++, better avoid it by now
9346
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9347
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9348
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9349
hardcode_libdir_flag_spec=
9350
hardcode_shlibpath_var=no
9351
runpath_var='LD_RUN_PATH'
9355
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9356
hardcode_libdir_flag_spec='-L$libdir'
9357
hardcode_shlibpath_var=no
9366
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9367
echo "${ECHO_T}$ld_shlibs" >&6
9368
test "$ld_shlibs" = no && can_build_shared=no
9370
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9371
if test "$GCC" = yes; then
9372
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9376
# Do we need to explicitly link libc?
9378
case "x$archive_cmds_need_lc" in
9380
# Assume -lc should be added
9381
archive_cmds_need_lc=yes
9383
if test "$enable_shared" = yes && test "$GCC" = yes; then
9384
case $archive_cmds in
9386
# FIXME: we may have to deal with multi-command sequences.
9389
# Test whether the compiler implicitly links with -lc since on some
9390
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9391
# to ld, don't add -lc before -lgcc.
9392
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9393
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9395
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9397
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9398
(eval $ac_compile) 2>&5
9400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401
(exit $ac_status); } 2>conftest.err; then
9404
libobjs=conftest.$ac_objext
9406
wl=$lt_prog_compiler_wl
9412
lt_save_allow_undefined_flag=$allow_undefined_flag
9413
allow_undefined_flag=
9414
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9415
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418
(exit $ac_status); }
9420
archive_cmds_need_lc=no
9422
archive_cmds_need_lc=yes
9424
allow_undefined_flag=$lt_save_allow_undefined_flag
9426
cat conftest.err 1>&5
9429
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9430
echo "${ECHO_T}$archive_cmds_need_lc" >&6
9437
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9438
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9440
if test -n "$hardcode_libdir_flag_spec" || \
9441
test -n "$runpath_var " || \
9442
test "X$hardcode_automatic"="Xyes" ; then
9444
# We can hardcode non-existant directories.
9445
if test "$hardcode_direct" != no &&
9446
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9447
# have to relink, otherwise we might link with an installed library
9448
# when we should be linking with a yet-to-be-installed one
9449
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9450
test "$hardcode_minus_L" != no; then
9451
# Linking always hardcodes the temporary library directory.
9452
hardcode_action=relink
9454
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9455
hardcode_action=immediate
9458
# We cannot hardcode anything, or else we can only hardcode existing
9460
hardcode_action=unsupported
9462
echo "$as_me:$LINENO: result: $hardcode_action" >&5
9463
echo "${ECHO_T}$hardcode_action" >&6
9465
if test "$hardcode_action" = relink; then
9466
# Fast installation is not supported
9467
enable_fast_install=no
9468
elif test "$shlibpath_overrides_runpath" = yes ||
9469
test "$enable_shared" = no; then
9470
# Fast installation is not necessary
9471
enable_fast_install=needless
9476
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9477
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9478
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9479
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9480
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9481
echo "$as_me:$LINENO: result: yes" >&5
9482
echo "${ECHO_T}yes" >&6
9484
# FIXME - insert some real tests, host_os isn't really good enough
9487
if test -n "$STRIP" ; then
9488
striplib="$STRIP -x"
9489
echo "$as_me:$LINENO: result: yes" >&5
9490
echo "${ECHO_T}yes" >&6
9492
echo "$as_me:$LINENO: result: no" >&5
9493
echo "${ECHO_T}no" >&6
9497
echo "$as_me:$LINENO: result: no" >&5
9498
echo "${ECHO_T}no" >&6
9503
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9504
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9506
libname_spec='lib$name'
9514
shlibpath_overrides_runpath=unknown
9516
dynamic_linker="$host_os ld.so"
9517
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9518
if test "$GCC" = yes; then
9519
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9520
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9521
# if the path contains ";" then we assume it to be the separator
9522
# otherwise default to the standard path separator (i.e. ":") - it is
9523
# assumed that no part of a normal pathname contains ";" but that should
9524
# okay in the real world where ";" in dirpaths is itself problematic.
9525
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9527
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9530
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9532
need_lib_prefix=unknown
9533
hardcode_into_libs=no
9535
# when you set need_version to no, make sure it does not cause -set_version
9536
# flags to be left without arguments
9537
need_version=unknown
9542
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9543
shlibpath_var=LIBPATH
9545
# AIX 3 has no versioning support, so we append a major version to the name.
9546
soname_spec='${libname}${release}${shared_ext}$major'
9553
hardcode_into_libs=yes
9554
if test "$host_cpu" = ia64; then
9555
# AIX 5 supports IA64
9556
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9557
shlibpath_var=LD_LIBRARY_PATH
9559
# With GCC up to 2.95.x, collect2 would create an import file
9560
# for dependence libraries. The import file would start with
9561
# the line `#! .'. This would cause the generated library to
9562
# depend on `.', always an invalid library. This was fixed in
9563
# development snapshots of GCC prior to 3.0.
9565
aix4 | aix4.[01] | aix4.[01].*)
9566
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9568
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9575
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9576
# soname into executable. Probably we can add versioning support to
9577
# collect2, so additional links can be useful in future.
9578
if test "$aix_use_runtimelinking" = yes; then
9579
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9580
# instead of lib<name>.a to let people know that these are not
9581
# typical AIX shared libraries.
9582
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9584
# We preserve .a as extension for shared libraries through AIX4.2
9585
# and later when we are not doing run time linking.
9586
library_names_spec='${libname}${release}.a $libname.a'
9587
soname_spec='${libname}${release}${shared_ext}$major'
9589
shlibpath_var=LIBPATH
9594
library_names_spec='$libname.ixlibrary $libname.a'
9595
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9596
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'
9600
library_names_spec='${libname}${shared_ext}'
9601
dynamic_linker="$host_os ld.so"
9602
shlibpath_var=LIBRARY_PATH
9608
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9609
soname_spec='${libname}${release}${shared_ext}$major'
9610
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9611
shlibpath_var=LD_LIBRARY_PATH
9612
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9613
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9614
# the default ld.so.conf also contains /usr/contrib/lib and
9615
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9616
# libtool to hard-code these into programs
9619
cygwin* | mingw* | pw32*)
9620
version_type=windows
9625
case $GCC,$host_os in
9626
yes,cygwin* | yes,mingw* | yes,pw32*)
9627
library_names_spec='$libname.dll.a'
9628
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9629
postinstall_cmds='base_file=`basename \${file}`~
9630
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9631
dldir=$destdir/`dirname \$dlpath`~
9632
test -d \$dldir || mkdir -p \$dldir~
9633
$install_prog $dir/$dlname \$dldir/$dlname'
9634
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9635
dlpath=$dir/\$dldll~
9637
shlibpath_overrides_runpath=yes
9641
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9642
#soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
9643
soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
9644
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9647
# MinGW DLLs use traditional 'lib' prefix
9648
#soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
9649
soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
9650
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9651
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9652
# It is most probably a Windows format PATH printed by
9653
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9654
# path with ; separators, and with drive letters. We can handle the
9655
# drive letters (cygwin fileutils understands them), so leave them,
9656
# especially as we might pass files found there to a mingw objdump,
9657
# which wouldn't understand a cygwinified path. Ahh.
9658
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9660
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9664
# pw32 DLLs use 'pw' prefix rather than 'lib'
9665
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9671
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9674
dynamic_linker='Win32 ld.exe'
9675
# FIXME: first we should search . and the directory the executable is in
9679
darwin* | rhapsody*)
9680
dynamic_linker="$host_os dyld"
9684
# FIXME: Relying on posixy $() will cause problems for
9685
# cross-compilation, but unfortunately the echo tests do not
9686
# yet detect zsh echo's removal of \ escapes.
9687
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9688
soname_spec='${libname}${release}${major}$shared_ext'
9689
shlibpath_overrides_runpath=yes
9690
shlibpath_var=DYLD_LIBRARY_PATH
9691
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
9692
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9693
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9694
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"`
9696
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9703
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9704
soname_spec='${libname}${release}${shared_ext}$major'
9705
shlibpath_var=LD_LIBRARY_PATH
9713
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9714
version_type=freebsd-$objformat
9715
case $version_type in
9717
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9722
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9726
shlibpath_var=LD_LIBRARY_PATH
9729
shlibpath_overrides_runpath=yes
9731
freebsd3.01* | freebsdelf3.01*)
9732
shlibpath_overrides_runpath=yes
9733
hardcode_into_libs=yes
9736
shlibpath_overrides_runpath=no
9737
hardcode_into_libs=yes
9746
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9747
soname_spec='${libname}${release}${shared_ext}$major'
9748
shlibpath_var=LD_LIBRARY_PATH
9749
hardcode_into_libs=yes
9752
hpux9* | hpux10* | hpux11*)
9753
# Give a soname corresponding to the major version so that dld.sl refuses to
9754
# link against other versions.
9761
hardcode_into_libs=yes
9762
dynamic_linker="$host_os dld.so"
9763
shlibpath_var=LD_LIBRARY_PATH
9764
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9765
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9766
soname_spec='${libname}${release}${shared_ext}$major'
9767
if test "X$HPUX_IA64_MODE" = X32; then
9768
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9770
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9772
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9776
hardcode_into_libs=yes
9777
dynamic_linker="$host_os dld.sl"
9778
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9779
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9780
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9781
soname_spec='${libname}${release}${shared_ext}$major'
9782
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9783
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9787
dynamic_linker="$host_os dld.sl"
9788
shlibpath_var=SHLIB_PATH
9789
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9790
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9791
soname_spec='${libname}${release}${shared_ext}$major'
9794
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9795
postinstall_cmds='chmod 555 $lib'
9798
irix5* | irix6* | nonstopux*)
9800
nonstopux*) version_type=nonstopux ;;
9802
if test "$lt_cv_prog_gnu_ld" = yes; then
9810
soname_spec='${libname}${release}${shared_ext}$major'
9811
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9813
irix5* | nonstopux*)
9817
case $LD in # libtool.m4 will add one of these switches to LD
9818
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9819
libsuff= shlibsuff= libmagic=32-bit;;
9820
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9821
libsuff=32 shlibsuff=N32 libmagic=N32;;
9822
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9823
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9824
*) libsuff= shlibsuff= libmagic=never-match;;
9828
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9829
shlibpath_overrides_runpath=no
9830
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9831
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9832
hardcode_into_libs=yes
9835
# No shared lib support for Linux oldld, aout, or coff.
9836
linux*oldld* | linux*aout* | linux*coff*)
9840
# This must be Linux ELF.
9845
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9846
soname_spec='${libname}${release}${shared_ext}$major'
9847
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9848
shlibpath_var=LD_LIBRARY_PATH
9849
shlibpath_overrides_runpath=no
9850
# This implies no fast_install, which is unacceptable.
9851
# Some rework will be needed to allow for fast_install
9852
# before this can be enabled.
9853
hardcode_into_libs=yes
9855
# We used to test for /lib/ld.so.1 and disable shared libraries on
9856
# powerpc, because MkLinux only supported shared libraries with the
9857
# GNU dynamic linker. Since this was broken with cross compilers,
9858
# most powerpc-linux boxes support dynamic linking these days and
9859
# people can always --disable-shared, the test was removed, and we
9860
# assume the GNU/Linux dynamic linker is in use.
9861
dynamic_linker='GNU/Linux ld.so'
9868
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9869
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9870
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9871
dynamic_linker='NetBSD (a.out) ld.so'
9873
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
9874
soname_spec='${libname}${release}${shared_ext}$major'
9875
dynamic_linker='NetBSD ld.elf_so'
9877
shlibpath_var=LD_LIBRARY_PATH
9878
shlibpath_overrides_runpath=yes
9879
hardcode_into_libs=yes
9884
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9885
shlibpath_var=LD_LIBRARY_PATH
9886
shlibpath_overrides_runpath=yes
9893
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9894
soname_spec='${libname}${release}${shared_ext}$major'
9895
shlibpath_var=LD_LIBRARY_PATH
9896
shlibpath_overrides_runpath=yes
9903
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9904
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9905
shlibpath_var=LD_LIBRARY_PATH
9906
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9908
openbsd2.[89] | openbsd2.[89].*)
9909
shlibpath_overrides_runpath=no
9912
shlibpath_overrides_runpath=yes
9916
shlibpath_overrides_runpath=yes
9921
libname_spec='$name'
9924
library_names_spec='$libname${shared_ext} $libname.a'
9925
dynamic_linker='OS/2 ld.exe'
9926
shlibpath_var=LIBPATH
9929
osf3* | osf4* | osf5*)
9933
soname_spec='${libname}${release}${shared_ext}$major'
9934
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9935
shlibpath_var=LD_LIBRARY_PATH
9936
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9937
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9942
soname_spec='${libname}${release}${shared_ext}$major'
9943
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9944
shlibpath_var=LD_LIBRARY_PATH
9951
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952
soname_spec='${libname}${release}${shared_ext}$major'
9953
shlibpath_var=LD_LIBRARY_PATH
9954
shlibpath_overrides_runpath=yes
9955
hardcode_into_libs=yes
9956
# ldd complains unless libraries are executable
9957
postinstall_cmds='chmod +x $lib'
9962
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9963
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9964
shlibpath_var=LD_LIBRARY_PATH
9965
shlibpath_overrides_runpath=yes
9966
if test "$with_gnu_ld" = yes; then
9972
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9974
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9975
soname_spec='${libname}${release}${shared_ext}$major'
9976
shlibpath_var=LD_LIBRARY_PATH
9977
case $host_vendor in
9979
shlibpath_overrides_runpath=no
9981
export_dynamic_flag_spec='${wl}-Blargedynsym'
9982
runpath_var=LD_RUN_PATH
9990
shlibpath_overrides_runpath=no
9991
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9997
if test -d /usr/nec ;then
9999
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10000
soname_spec='$libname${shared_ext}.$major'
10001
shlibpath_var=LD_LIBRARY_PATH
10007
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10008
soname_spec='${libname}${release}${shared_ext}$major'
10009
shlibpath_var=LD_LIBRARY_PATH
10016
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10017
echo "${ECHO_T}$dynamic_linker" >&6
10018
test "$dynamic_linker" = no && can_build_shared=no
10020
if test "x$enable_dlopen" != xyes; then
10021
enable_dlopen=unknown
10022
enable_dlopen_self=unknown
10023
enable_dlopen_self_static=unknown
10030
lt_cv_dlopen="load_add_on"
10032
lt_cv_dlopen_self=yes
10036
lt_cv_dlopen="LoadLibrary"
10041
lt_cv_dlopen="dlopen"
10046
# if libdl is installed we need to link against it
10047
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10048
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10049
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10050
echo $ECHO_N "(cached) $ECHO_C" >&6
10052
ac_check_lib_save_LIBS=$LIBS
10054
cat >conftest.$ac_ext <<_ACEOF
10057
cat confdefs.h >>conftest.$ac_ext
10058
cat >>conftest.$ac_ext <<_ACEOF
10059
/* end confdefs.h. */
10061
/* Override any gcc2 internal prototype to avoid an error. */
10065
/* We use char because int might match the return type of a gcc2
10066
builtin and then its argument prototype would still apply. */
10076
rm -f conftest.$ac_objext conftest$ac_exeext
10077
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10078
(eval $ac_link) 2>conftest.er1
10080
grep -v '^ *+' conftest.er1 >conftest.err
10082
cat conftest.err >&5
10083
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084
(exit $ac_status); } &&
10085
{ ac_try='test -z "$ac_c_werror_flag"
10086
|| test ! -s conftest.err'
10087
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10088
(eval $ac_try) 2>&5
10090
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091
(exit $ac_status); }; } &&
10092
{ ac_try='test -s conftest$ac_exeext'
10093
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10094
(eval $ac_try) 2>&5
10096
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097
(exit $ac_status); }; }; then
10098
ac_cv_lib_dl_dlopen=yes
10100
echo "$as_me: failed program was:" >&5
10101
sed 's/^/| /' conftest.$ac_ext >&5
10103
ac_cv_lib_dl_dlopen=no
10105
rm -f conftest.err conftest.$ac_objext \
10106
conftest$ac_exeext conftest.$ac_ext
10107
LIBS=$ac_check_lib_save_LIBS
10109
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10110
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10111
if test $ac_cv_lib_dl_dlopen = yes; then
10112
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10115
lt_cv_dlopen="dyld"
10117
lt_cv_dlopen_self=yes
10124
echo "$as_me:$LINENO: checking for shl_load" >&5
10125
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10126
if test "${ac_cv_func_shl_load+set}" = set; then
10127
echo $ECHO_N "(cached) $ECHO_C" >&6
10129
cat >conftest.$ac_ext <<_ACEOF
10132
cat confdefs.h >>conftest.$ac_ext
10133
cat >>conftest.$ac_ext <<_ACEOF
10134
/* end confdefs.h. */
10135
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10136
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10137
#define shl_load innocuous_shl_load
10139
/* System header to define __stub macros and hopefully few prototypes,
10140
which can conflict with char shl_load (); below.
10141
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10142
<limits.h> exists even on freestanding compilers. */
10145
# include <limits.h>
10147
# include <assert.h>
10152
/* Override any gcc2 internal prototype to avoid an error. */
10157
/* We use char because int might match the return type of a gcc2
10158
builtin and then its argument prototype would still apply. */
10160
/* The GNU C library defines this for functions which it implements
10161
to always fail with ENOSYS. Some functions are actually named
10162
something starting with __ and the normal name is an alias. */
10163
#if defined (__stub_shl_load) || defined (__stub___shl_load)
10166
char (*f) () = shl_load;
10175
return f != shl_load;
10180
rm -f conftest.$ac_objext conftest$ac_exeext
10181
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10182
(eval $ac_link) 2>conftest.er1
10184
grep -v '^ *+' conftest.er1 >conftest.err
10186
cat conftest.err >&5
10187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188
(exit $ac_status); } &&
10189
{ ac_try='test -z "$ac_c_werror_flag"
10190
|| test ! -s conftest.err'
10191
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192
(eval $ac_try) 2>&5
10194
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195
(exit $ac_status); }; } &&
10196
{ ac_try='test -s conftest$ac_exeext'
10197
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198
(eval $ac_try) 2>&5
10200
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201
(exit $ac_status); }; }; then
10202
ac_cv_func_shl_load=yes
10204
echo "$as_me: failed program was:" >&5
10205
sed 's/^/| /' conftest.$ac_ext >&5
10207
ac_cv_func_shl_load=no
10209
rm -f conftest.err conftest.$ac_objext \
10210
conftest$ac_exeext conftest.$ac_ext
10212
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10213
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10214
if test $ac_cv_func_shl_load = yes; then
10215
lt_cv_dlopen="shl_load"
10217
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10218
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10219
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10220
echo $ECHO_N "(cached) $ECHO_C" >&6
10222
ac_check_lib_save_LIBS=$LIBS
10224
cat >conftest.$ac_ext <<_ACEOF
10227
cat confdefs.h >>conftest.$ac_ext
10228
cat >>conftest.$ac_ext <<_ACEOF
10229
/* end confdefs.h. */
10231
/* Override any gcc2 internal prototype to avoid an error. */
10235
/* We use char because int might match the return type of a gcc2
10236
builtin and then its argument prototype would still apply. */
10246
rm -f conftest.$ac_objext conftest$ac_exeext
10247
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10248
(eval $ac_link) 2>conftest.er1
10250
grep -v '^ *+' conftest.er1 >conftest.err
10252
cat conftest.err >&5
10253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254
(exit $ac_status); } &&
10255
{ ac_try='test -z "$ac_c_werror_flag"
10256
|| test ! -s conftest.err'
10257
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258
(eval $ac_try) 2>&5
10260
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261
(exit $ac_status); }; } &&
10262
{ ac_try='test -s conftest$ac_exeext'
10263
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10264
(eval $ac_try) 2>&5
10266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267
(exit $ac_status); }; }; then
10268
ac_cv_lib_dld_shl_load=yes
10270
echo "$as_me: failed program was:" >&5
10271
sed 's/^/| /' conftest.$ac_ext >&5
10273
ac_cv_lib_dld_shl_load=no
10275
rm -f conftest.err conftest.$ac_objext \
10276
conftest$ac_exeext conftest.$ac_ext
10277
LIBS=$ac_check_lib_save_LIBS
10279
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10280
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10281
if test $ac_cv_lib_dld_shl_load = yes; then
10282
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10284
echo "$as_me:$LINENO: checking for dlopen" >&5
10285
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10286
if test "${ac_cv_func_dlopen+set}" = set; then
10287
echo $ECHO_N "(cached) $ECHO_C" >&6
10289
cat >conftest.$ac_ext <<_ACEOF
10292
cat confdefs.h >>conftest.$ac_ext
10293
cat >>conftest.$ac_ext <<_ACEOF
10294
/* end confdefs.h. */
10295
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10296
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10297
#define dlopen innocuous_dlopen
10299
/* System header to define __stub macros and hopefully few prototypes,
10300
which can conflict with char dlopen (); below.
10301
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10302
<limits.h> exists even on freestanding compilers. */
10305
# include <limits.h>
10307
# include <assert.h>
10312
/* Override any gcc2 internal prototype to avoid an error. */
10317
/* We use char because int might match the return type of a gcc2
10318
builtin and then its argument prototype would still apply. */
10320
/* The GNU C library defines this for functions which it implements
10321
to always fail with ENOSYS. Some functions are actually named
10322
something starting with __ and the normal name is an alias. */
10323
#if defined (__stub_dlopen) || defined (__stub___dlopen)
10326
char (*f) () = dlopen;
10335
return f != dlopen;
10340
rm -f conftest.$ac_objext conftest$ac_exeext
10341
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10342
(eval $ac_link) 2>conftest.er1
10344
grep -v '^ *+' conftest.er1 >conftest.err
10346
cat conftest.err >&5
10347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348
(exit $ac_status); } &&
10349
{ ac_try='test -z "$ac_c_werror_flag"
10350
|| test ! -s conftest.err'
10351
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10352
(eval $ac_try) 2>&5
10354
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355
(exit $ac_status); }; } &&
10356
{ ac_try='test -s conftest$ac_exeext'
10357
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10358
(eval $ac_try) 2>&5
10360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361
(exit $ac_status); }; }; then
10362
ac_cv_func_dlopen=yes
10364
echo "$as_me: failed program was:" >&5
10365
sed 's/^/| /' conftest.$ac_ext >&5
10367
ac_cv_func_dlopen=no
10369
rm -f conftest.err conftest.$ac_objext \
10370
conftest$ac_exeext conftest.$ac_ext
10372
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10373
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10374
if test $ac_cv_func_dlopen = yes; then
10375
lt_cv_dlopen="dlopen"
10377
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10378
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10379
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10380
echo $ECHO_N "(cached) $ECHO_C" >&6
10382
ac_check_lib_save_LIBS=$LIBS
10384
cat >conftest.$ac_ext <<_ACEOF
10387
cat confdefs.h >>conftest.$ac_ext
10388
cat >>conftest.$ac_ext <<_ACEOF
10389
/* end confdefs.h. */
10391
/* Override any gcc2 internal prototype to avoid an error. */
10395
/* We use char because int might match the return type of a gcc2
10396
builtin and then its argument prototype would still apply. */
10406
rm -f conftest.$ac_objext conftest$ac_exeext
10407
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10408
(eval $ac_link) 2>conftest.er1
10410
grep -v '^ *+' conftest.er1 >conftest.err
10412
cat conftest.err >&5
10413
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414
(exit $ac_status); } &&
10415
{ ac_try='test -z "$ac_c_werror_flag"
10416
|| test ! -s conftest.err'
10417
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418
(eval $ac_try) 2>&5
10420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421
(exit $ac_status); }; } &&
10422
{ ac_try='test -s conftest$ac_exeext'
10423
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424
(eval $ac_try) 2>&5
10426
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427
(exit $ac_status); }; }; then
10428
ac_cv_lib_dl_dlopen=yes
10430
echo "$as_me: failed program was:" >&5
10431
sed 's/^/| /' conftest.$ac_ext >&5
10433
ac_cv_lib_dl_dlopen=no
10435
rm -f conftest.err conftest.$ac_objext \
10436
conftest$ac_exeext conftest.$ac_ext
10437
LIBS=$ac_check_lib_save_LIBS
10439
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10440
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10441
if test $ac_cv_lib_dl_dlopen = yes; then
10442
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10444
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10445
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10446
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10447
echo $ECHO_N "(cached) $ECHO_C" >&6
10449
ac_check_lib_save_LIBS=$LIBS
10450
LIBS="-lsvld $LIBS"
10451
cat >conftest.$ac_ext <<_ACEOF
10454
cat confdefs.h >>conftest.$ac_ext
10455
cat >>conftest.$ac_ext <<_ACEOF
10456
/* end confdefs.h. */
10458
/* Override any gcc2 internal prototype to avoid an error. */
10462
/* We use char because int might match the return type of a gcc2
10463
builtin and then its argument prototype would still apply. */
10473
rm -f conftest.$ac_objext conftest$ac_exeext
10474
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10475
(eval $ac_link) 2>conftest.er1
10477
grep -v '^ *+' conftest.er1 >conftest.err
10479
cat conftest.err >&5
10480
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481
(exit $ac_status); } &&
10482
{ ac_try='test -z "$ac_c_werror_flag"
10483
|| test ! -s conftest.err'
10484
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10485
(eval $ac_try) 2>&5
10487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488
(exit $ac_status); }; } &&
10489
{ ac_try='test -s conftest$ac_exeext'
10490
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10491
(eval $ac_try) 2>&5
10493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494
(exit $ac_status); }; }; then
10495
ac_cv_lib_svld_dlopen=yes
10497
echo "$as_me: failed program was:" >&5
10498
sed 's/^/| /' conftest.$ac_ext >&5
10500
ac_cv_lib_svld_dlopen=no
10502
rm -f conftest.err conftest.$ac_objext \
10503
conftest$ac_exeext conftest.$ac_ext
10504
LIBS=$ac_check_lib_save_LIBS
10506
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10507
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10508
if test $ac_cv_lib_svld_dlopen = yes; then
10509
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10511
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10512
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10513
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10514
echo $ECHO_N "(cached) $ECHO_C" >&6
10516
ac_check_lib_save_LIBS=$LIBS
10518
cat >conftest.$ac_ext <<_ACEOF
10521
cat confdefs.h >>conftest.$ac_ext
10522
cat >>conftest.$ac_ext <<_ACEOF
10523
/* end confdefs.h. */
10525
/* Override any gcc2 internal prototype to avoid an error. */
10529
/* We use char because int might match the return type of a gcc2
10530
builtin and then its argument prototype would still apply. */
10540
rm -f conftest.$ac_objext conftest$ac_exeext
10541
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10542
(eval $ac_link) 2>conftest.er1
10544
grep -v '^ *+' conftest.er1 >conftest.err
10546
cat conftest.err >&5
10547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548
(exit $ac_status); } &&
10549
{ ac_try='test -z "$ac_c_werror_flag"
10550
|| test ! -s conftest.err'
10551
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552
(eval $ac_try) 2>&5
10554
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555
(exit $ac_status); }; } &&
10556
{ ac_try='test -s conftest$ac_exeext'
10557
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558
(eval $ac_try) 2>&5
10560
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561
(exit $ac_status); }; }; then
10562
ac_cv_lib_dld_dld_link=yes
10564
echo "$as_me: failed program was:" >&5
10565
sed 's/^/| /' conftest.$ac_ext >&5
10567
ac_cv_lib_dld_dld_link=no
10569
rm -f conftest.err conftest.$ac_objext \
10570
conftest$ac_exeext conftest.$ac_ext
10571
LIBS=$ac_check_lib_save_LIBS
10573
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10574
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10575
if test $ac_cv_lib_dld_dld_link = yes; then
10576
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10597
if test "x$lt_cv_dlopen" != xno; then
10603
case $lt_cv_dlopen in
10605
save_CPPFLAGS="$CPPFLAGS"
10606
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10608
save_LDFLAGS="$LDFLAGS"
10609
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10612
LIBS="$lt_cv_dlopen_libs $LIBS"
10614
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10615
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10616
if test "${lt_cv_dlopen_self+set}" = set; then
10617
echo $ECHO_N "(cached) $ECHO_C" >&6
10619
if test "$cross_compiling" = yes; then :
10620
lt_cv_dlopen_self=cross
10622
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10623
lt_status=$lt_dlunknown
10624
cat > conftest.$ac_ext <<EOF
10625
#line 10625 "configure"
10626
#include "confdefs.h"
10635
# define LT_DLGLOBAL RTLD_GLOBAL
10638
# define LT_DLGLOBAL DL_GLOBAL
10640
# define LT_DLGLOBAL 0
10644
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10645
find out it does not work in some platform. */
10646
#ifndef LT_DLLAZY_OR_NOW
10648
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10651
# define LT_DLLAZY_OR_NOW DL_LAZY
10654
# define LT_DLLAZY_OR_NOW RTLD_NOW
10657
# define LT_DLLAZY_OR_NOW DL_NOW
10659
# define LT_DLLAZY_OR_NOW 0
10667
extern "C" void exit (int);
10670
void fnord() { int i=42;}
10673
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10674
int status = $lt_dlunknown;
10678
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10679
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10680
/* dlclose (self); */
10686
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10687
(eval $ac_link) 2>&5
10689
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10691
(./conftest; exit; ) 2>/dev/null
10693
case x$lt_status in
10694
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10695
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10696
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10699
# compilation failed
10700
lt_cv_dlopen_self=no
10707
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10708
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10710
if test "x$lt_cv_dlopen_self" = xyes; then
10711
LDFLAGS="$LDFLAGS $link_static_flag"
10712
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10713
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10714
if test "${lt_cv_dlopen_self_static+set}" = set; then
10715
echo $ECHO_N "(cached) $ECHO_C" >&6
10717
if test "$cross_compiling" = yes; then :
10718
lt_cv_dlopen_self_static=cross
10720
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10721
lt_status=$lt_dlunknown
10722
cat > conftest.$ac_ext <<EOF
10723
#line 10723 "configure"
10724
#include "confdefs.h"
10733
# define LT_DLGLOBAL RTLD_GLOBAL
10736
# define LT_DLGLOBAL DL_GLOBAL
10738
# define LT_DLGLOBAL 0
10742
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10743
find out it does not work in some platform. */
10744
#ifndef LT_DLLAZY_OR_NOW
10746
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10749
# define LT_DLLAZY_OR_NOW DL_LAZY
10752
# define LT_DLLAZY_OR_NOW RTLD_NOW
10755
# define LT_DLLAZY_OR_NOW DL_NOW
10757
# define LT_DLLAZY_OR_NOW 0
10765
extern "C" void exit (int);
10768
void fnord() { int i=42;}
10771
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10772
int status = $lt_dlunknown;
10776
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10777
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10778
/* dlclose (self); */
10784
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10785
(eval $ac_link) 2>&5
10787
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10789
(./conftest; exit; ) 2>/dev/null
10791
case x$lt_status in
10792
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10793
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10794
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10797
# compilation failed
10798
lt_cv_dlopen_self_static=no
10805
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10806
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10809
CPPFLAGS="$save_CPPFLAGS"
10810
LDFLAGS="$save_LDFLAGS"
10815
case $lt_cv_dlopen_self in
10816
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10817
*) enable_dlopen_self=unknown ;;
10820
case $lt_cv_dlopen_self_static in
10821
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10822
*) enable_dlopen_self_static=unknown ;;
10827
# Report which librarie types wil actually be built
10828
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10829
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10830
echo "$as_me:$LINENO: result: $can_build_shared" >&5
10831
echo "${ECHO_T}$can_build_shared" >&6
10833
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10834
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10835
test "$can_build_shared" = "no" && enable_shared=no
10837
# On AIX, shared libraries and static libraries use the same namespace, and
10838
# are all built from PIC.
10841
test "$enable_shared" = yes && enable_static=no
10842
if test -n "$RANLIB"; then
10843
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10844
postinstall_cmds='$RANLIB $lib'
10849
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10850
test "$enable_shared" = yes && enable_static=no
10853
darwin* | rhapsody*)
10854
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10855
archive_cmds_need_lc=no
10857
rhapsody* | darwin1.[012])
10858
allow_undefined_flag='-undefined suppress'
10861
test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
10864
# FIXME: Relying on posixy $() will cause problems for
10865
# cross-compilation, but unfortunately the echo tests do not
10866
# yet detect zsh echo's removal of \ escapes. Also zsh mangles
10867
# `"' quotes if we put them in here... so don't!
10868
output_verbose_link_cmd='echo'
10869
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
10870
module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
10871
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10872
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}'
10873
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10875
hardcode_automatic=yes
10876
hardcode_shlibpath_var=unsupported
10877
whole_archive_flag_spec='-all_load $convenience'
10878
link_all_deplibs=yes
10882
echo "$as_me:$LINENO: result: $enable_shared" >&5
10883
echo "${ECHO_T}$enable_shared" >&6
10885
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10886
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10887
# Make sure either enable_shared or enable_static is yes.
10888
test "$enable_shared" = yes || enable_static=yes
10889
echo "$as_me:$LINENO: result: $enable_static" >&5
10890
echo "${ECHO_T}$enable_static" >&6
10892
# The else clause should only fire when bootstrapping the
10893
# libtool distribution, otherwise you forgot to ship ltmain.sh
10894
# with your package, and you will get complaints that there are
10895
# no rules to generate ltmain.sh.
10896
if test -f "$ltmain"; then
10897
# See if we are running on zsh, and set the options which allow our commands through
10898
# without removal of \ escapes.
10899
if test -n "${ZSH_VERSION+set}" ; then
10900
setopt NO_GLOB_SUBST
10902
# Now quote all the things that may contain metacharacters while being
10903
# careful not to overquote the AC_SUBSTed values. We take copies of the
10904
# variables and quote the copies for generation of the libtool script.
10905
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
10906
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10907
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10908
deplibs_check_method reload_flag reload_cmds need_locks \
10909
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10910
lt_cv_sys_global_symbol_to_c_name_address \
10911
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10912
old_postinstall_cmds old_postuninstall_cmds \
10916
lt_prog_compiler_wl \
10917
lt_prog_compiler_pic \
10918
lt_prog_compiler_static \
10919
lt_prog_compiler_no_builtin_flag \
10920
export_dynamic_flag_spec \
10921
thread_safe_flag_spec \
10922
whole_archive_flag_spec \
10923
enable_shared_with_static_runtimes \
10925
old_archive_from_new_cmds \
10930
compiler_lib_search_path \
10932
archive_expsym_cmds \
10934
postuninstall_cmds \
10935
old_archive_from_expsyms_cmds \
10936
allow_undefined_flag \
10937
no_undefined_flag \
10938
export_symbols_cmds \
10939
hardcode_libdir_flag_spec \
10940
hardcode_libdir_flag_spec_ld \
10941
hardcode_libdir_separator \
10942
hardcode_automatic \
10944
module_expsym_cmds \
10945
lt_cv_prog_compiler_c_o \
10947
include_expsyms; do
10950
old_archive_cmds | \
10951
old_archive_from_new_cmds | \
10953
archive_expsym_cmds | \
10955
module_expsym_cmds | \
10956
old_archive_from_expsyms_cmds | \
10957
export_symbols_cmds | \
10958
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10959
postinstall_cmds | postuninstall_cmds | \
10960
old_postinstall_cmds | old_postuninstall_cmds | \
10961
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10962
# Double-quote double-evaled strings.
10963
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10966
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10972
*'\$0 --fallback-echo"')
10973
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10977
cfgfile="${ofile}T"
10978
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10980
{ echo "$as_me:$LINENO: creating $ofile" >&5
10981
echo "$as_me: creating $ofile" >&6;}
10983
cat <<__EOF__ >> "$cfgfile"
10986
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10987
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10988
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10990
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10991
# Free Software Foundation, Inc.
10993
# This file is part of GNU Libtool:
10994
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10996
# This program is free software; you can redistribute it and/or modify
10997
# it under the terms of the GNU General Public License as published by
10998
# the Free Software Foundation; either version 2 of the License, or
10999
# (at your option) any later version.
11001
# This program is distributed in the hope that it will be useful, but
11002
# WITHOUT ANY WARRANTY; without even the implied warranty of
11003
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11004
# General Public License for more details.
11006
# You should have received a copy of the GNU General Public License
11007
# along with this program; if not, write to the Free Software
11008
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
11010
# As a special exception to the GNU General Public License, if you
11011
# distribute this file as part of a program that contains a
11012
# configuration script generated by Autoconf, you may include it under
11013
# the same distribution terms that you use for the rest of that program.
11015
# A sed program that does not truncate output.
11018
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11019
Xsed="$SED -e s/^X//"
11021
# The HP-UX ksh and POSIX shell print the target directory to stdout
11022
# if CDPATH is set.
11023
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
11025
# The names of the tagged configurations supported by this script.
11028
# ### BEGIN LIBTOOL CONFIG
11030
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11032
# Shell to use when invoking shell scripts.
11035
# Whether or not to build shared libraries.
11036
build_libtool_libs=$enable_shared
11038
# Whether or not to build static libraries.
11039
build_old_libs=$enable_static
11041
# Whether or not to add -lc for building shared libraries.
11042
build_libtool_need_lc=$archive_cmds_need_lc
11044
# Whether or not to disallow shared libs when runtime libs are static
11045
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11047
# Whether or not to optimize for fast installation.
11048
fast_install=$enable_fast_install
11051
host_alias=$host_alias
11054
# An echo program that does not interpret backslashes.
11059
AR_FLAGS=$lt_AR_FLAGS
11064
# A language-specific compiler.
11067
# Is the compiler the GNU C compiler?
11073
# The linker used to build libraries.
11076
# Whether we need hard or soft links.
11079
# A BSD-compatible nm program.
11082
# A symbol stripping program
11085
# Used to examine libraries when file_magic_cmd begins "file"
11086
MAGIC_CMD=$MAGIC_CMD
11088
# Used on cygwin: DLL creation program.
11091
# Used on cygwin: object dumper.
11094
# Used on cygwin: assembler.
11097
# The name of the directory that contains temporary libtool files.
11100
# How to create reloadable object files.
11101
reload_flag=$lt_reload_flag
11102
reload_cmds=$lt_reload_cmds
11104
# How to pass a linker flag through the compiler.
11105
wl=$lt_lt_prog_compiler_wl
11107
# Object file suffix (normally "o").
11108
objext="$ac_objext"
11110
# Old archive suffix (normally "a").
11113
# Shared library suffix (normally ".so").
11116
# Executable file suffix (normally "").
11119
# Additional compiler flags for building library objects.
11120
pic_flag=$lt_lt_prog_compiler_pic
11123
# What is the maximum length of a command?
11124
max_cmd_len=$lt_cv_sys_max_cmd_len
11126
# Does compiler simultaneously support -c and -o options?
11127
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11129
# Must we lock files when doing compilation ?
11130
need_locks=$lt_need_locks
11132
# Do we need the lib prefix for modules?
11133
need_lib_prefix=$need_lib_prefix
11135
# Do we need a version for libraries?
11136
need_version=$need_version
11138
# Whether dlopen is supported.
11139
dlopen_support=$enable_dlopen
11141
# Whether dlopen of programs is supported.
11142
dlopen_self=$enable_dlopen_self
11144
# Whether dlopen of statically linked programs is supported.
11145
dlopen_self_static=$enable_dlopen_self_static
11147
# Compiler flag to prevent dynamic linking.
11148
link_static_flag=$lt_lt_prog_compiler_static
11150
# Compiler flag to turn off builtin functions.
11151
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11153
# Compiler flag to allow reflexive dlopens.
11154
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11156
# Compiler flag to generate shared objects directly from archives.
11157
whole_archive_flag_spec=$lt_whole_archive_flag_spec
11159
# Compiler flag to generate thread-safe objects.
11160
thread_safe_flag_spec=$lt_thread_safe_flag_spec
11162
# Library versioning type.
11163
version_type=$version_type
11165
# Format of library name prefix.
11166
libname_spec=$lt_libname_spec
11168
# List of archive names. First name is the real one, the rest are links.
11169
# The last name is the one that the linker finds with -lNAME.
11170
library_names_spec=$lt_library_names_spec
11172
# The coded name of the library, if different from the real name.
11173
soname_spec=$lt_soname_spec
11175
# Commands used to build and install an old-style archive.
11177
old_archive_cmds=$lt_old_archive_cmds
11178
old_postinstall_cmds=$lt_old_postinstall_cmds
11179
old_postuninstall_cmds=$lt_old_postuninstall_cmds
11181
# Create an old-style archive from a shared archive.
11182
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11184
# Create a temporary old-style archive to link instead of a shared archive.
11185
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11187
# Commands used to build and install a shared archive.
11188
archive_cmds=$lt_archive_cmds
11189
archive_expsym_cmds=$lt_archive_expsym_cmds
11190
postinstall_cmds=$lt_postinstall_cmds
11191
postuninstall_cmds=$lt_postuninstall_cmds
11193
# Commands used to build a loadable module (assumed same as above if empty)
11194
module_cmds=$lt_module_cmds
11195
module_expsym_cmds=$lt_module_expsym_cmds
11197
# Commands to strip libraries.
11198
old_striplib=$lt_old_striplib
11199
striplib=$lt_striplib
11201
# Dependencies to place before the objects being linked to create a
11203
predep_objects=$lt_predep_objects
11205
# Dependencies to place after the objects being linked to create a
11207
postdep_objects=$lt_postdep_objects
11209
# Dependencies to place before the objects being linked to create a
11211
predeps=$lt_predeps
11213
# Dependencies to place after the objects being linked to create a
11215
postdeps=$lt_postdeps
11217
# The library search path used internally by the compiler when linking
11218
# a shared library.
11219
compiler_lib_search_path=$lt_compiler_lib_search_path
11221
# Method to check whether dependent libraries are shared objects.
11222
deplibs_check_method=$lt_deplibs_check_method
11224
# Command to use when deplibs_check_method == file_magic.
11225
file_magic_cmd=$lt_file_magic_cmd
11227
# Flag that allows shared libraries with undefined symbols to be built.
11228
allow_undefined_flag=$lt_allow_undefined_flag
11230
# Flag that forces no undefined symbols.
11231
no_undefined_flag=$lt_no_undefined_flag
11233
# Commands used to finish a libtool library installation in a directory.
11234
finish_cmds=$lt_finish_cmds
11236
# Same as above, but a single script fragment to be evaled but not shown.
11237
finish_eval=$lt_finish_eval
11239
# Take the output of nm and produce a listing of raw symbols and C names.
11240
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11242
# Transform the output of nm in a proper C declaration
11243
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11245
# Transform the output of nm in a C name address pair
11246
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11248
# This is the shared library runtime path variable.
11249
runpath_var=$runpath_var
11251
# This is the shared library path variable.
11252
shlibpath_var=$shlibpath_var
11254
# Is shlibpath searched before the hard-coded library search path?
11255
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11257
# How to hardcode a shared library path into an executable.
11258
hardcode_action=$hardcode_action
11260
# Whether we should hardcode library paths into libraries.
11261
hardcode_into_libs=$hardcode_into_libs
11263
# Flag to hardcode \$libdir into a binary during linking.
11264
# This must work even if \$libdir does not exist.
11265
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11267
# If ld is used when linking, flag to hardcode \$libdir into
11268
# a binary during linking. This must work even if \$libdir does
11270
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11272
# Whether we need a single -rpath flag with a separated argument.
11273
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11275
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11276
# resulting binary.
11277
hardcode_direct=$hardcode_direct
11279
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11280
# resulting binary.
11281
hardcode_minus_L=$hardcode_minus_L
11283
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11284
# the resulting binary.
11285
hardcode_shlibpath_var=$hardcode_shlibpath_var
11287
# Set to yes if building a shared library automatically hardcodes DIR into the library
11288
# and all subsequent libraries and executables linked against it.
11289
hardcode_automatic=$hardcode_automatic
11291
# Variables whose values should be saved in libtool wrapper scripts and
11292
# restored at relink time.
11293
variables_saved_for_relink="$variables_saved_for_relink"
11295
# Whether libtool must link a program against all its dependency libraries.
11296
link_all_deplibs=$link_all_deplibs
11298
# Compile-time system search path for libraries
11299
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11301
# Run-time system search path for libraries
11302
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11304
# Fix the shell variable \$srcfile for the compiler.
11305
fix_srcfile_path="$fix_srcfile_path"
11307
# Set to yes if exported symbols are required.
11308
always_export_symbols=$always_export_symbols
11310
# The commands to list exported symbols.
11311
export_symbols_cmds=$lt_export_symbols_cmds
11313
# The commands to extract the exported symbol list from a shared archive.
11314
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11316
# Symbols that should not be listed in the preloaded symbols.
11317
exclude_expsyms=$lt_exclude_expsyms
11319
# Symbols that must always be exported.
11320
include_expsyms=$lt_include_expsyms
11322
# ### END LIBTOOL CONFIG
11329
cat <<\EOF >> "$cfgfile"
11331
# AIX sometimes has problems with the GCC collect2 program. For some
11332
# reason, if we set the COLLECT_NAMES environment variable, the problems
11333
# vanish in a puff of smoke.
11334
if test "X${COLLECT_NAMES+set}" != Xset; then
11336
export COLLECT_NAMES
11342
# We use sed instead of cat because bash on DJGPP gets confused if
11343
# if finds mixed CR/LF and LF-only lines. Since sed operates in
11344
# text mode, it properly converts lines to CR/LF. This bash problem
11345
# is reportedly fixed, but why not run on old versions too?
11346
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11348
mv -f "$cfgfile" "$ofile" || \
11349
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11353
# If there is no Makefile yet, we rely on a make rule to execute
11354
# `config.status --recheck' to rerun these tests and create the
11355
# libtool script then.
11356
test -f Makefile && make "$ltmain"
11361
ac_cpp='$CPP $CPPFLAGS'
11362
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11363
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11364
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11369
# Check whether --with-tags or --without-tags was given.
11370
if test "${with_tags+set}" = set; then
11371
withval="$with_tags"
11372
tagnames="$withval"
11375
if test -f "$ltmain" && test -n "$tagnames"; then
11376
if test ! -f "${ofile}"; then
11377
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11378
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11381
if test -z "$LTCC"; then
11382
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11383
if test -z "$LTCC"; then
11384
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11385
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11387
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11388
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11392
# Extract list of available tagged configurations in $ofile.
11393
# Note that this assumes the entire list is on one line.
11394
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11396
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11397
for tagname in $tagnames; do
11399
# Check whether tagname contains only valid characters
11400
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11402
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11403
echo "$as_me: error: invalid tag name: $tagname" >&2;}
11404
{ (exit 1); exit 1; }; }
11408
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11410
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11411
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11412
{ (exit 1); exit 1; }; }
11415
# Update the list of available tags.
11416
if test -n "$tagname"; then
11417
echo appending configuration tag \"$tagname\" to $ofile
11421
if test -n "$CXX" && test "X$CXX" != "Xno"; then
11423
ac_cpp='$CXXCPP $CPPFLAGS'
11424
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11425
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11426
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11431
archive_cmds_need_lc_CXX=no
11432
allow_undefined_flag_CXX=
11433
always_export_symbols_CXX=no
11434
archive_expsym_cmds_CXX=
11435
export_dynamic_flag_spec_CXX=
11436
hardcode_direct_CXX=no
11437
hardcode_libdir_flag_spec_CXX=
11438
hardcode_libdir_flag_spec_ld_CXX=
11439
hardcode_libdir_separator_CXX=
11440
hardcode_minus_L_CXX=no
11441
hardcode_automatic_CXX=no
11443
module_expsym_cmds_CXX=
11444
link_all_deplibs_CXX=unknown
11445
old_archive_cmds_CXX=$old_archive_cmds
11446
no_undefined_flag_CXX=
11447
whole_archive_flag_spec_CXX=
11448
enable_shared_with_static_runtimes_CXX=no
11450
# Dependencies to place before and after the object being linked:
11451
predep_objects_CXX=
11452
postdep_objects_CXX=
11455
compiler_lib_search_path_CXX=
11457
# Source file extension for C++ test sources.
11460
# Object file extension for compiled C++ test sources.
11464
# Code to be used in simple compile tests
11465
lt_simple_compile_test_code="int some_variable = 0;\n"
11467
# Code to be used in simple link tests
11468
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11470
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11472
# If no C compiler was specified, use CC.
11475
# Allow CC to be a program name with arguments.
11479
# Allow CC to be a program name with arguments.
11484
lt_save_with_gnu_ld=$with_gnu_ld
11485
lt_save_path_LD=$lt_cv_path_LD
11486
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11487
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11489
unset lt_cv_prog_gnu_ld
11491
if test -n "${lt_cv_path_LDCXX+set}"; then
11492
lt_cv_path_LD=$lt_cv_path_LDCXX
11494
unset lt_cv_path_LD
11496
test -z "${LDCXX+set}" || LD=$LDCXX
11500
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11502
# We don't want -fno-exception wen compiling C++ code, so set the
11503
# no_builtin_flag separately
11504
if test "$GXX" = yes; then
11505
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11507
lt_prog_compiler_no_builtin_flag_CXX=
11510
if test "$GXX" = yes; then
11511
# Set up default GNU C++ configuration
11514
# Check whether --with-gnu-ld or --without-gnu-ld was given.
11515
if test "${with_gnu_ld+set}" = set; then
11516
withval="$with_gnu_ld"
11517
test "$withval" = no || with_gnu_ld=yes
11522
if test "$GCC" = yes; then
11523
# Check if gcc -print-prog-name=ld gives a path.
11524
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11525
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11528
# gcc leaves a trailing carriage return which upsets mingw
11529
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11531
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11534
# Accept absolute paths.
11536
re_direlt='/[^/][^/]*/\.\./'
11537
# Canonicalize the path of ld
11538
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11539
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11540
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11542
test -z "$LD" && LD="$ac_prog"
11545
# If it fails, then pretend we aren't using GCC.
11549
# If it is relative, then search for the first ld in PATH.
11550
with_gnu_ld=unknown
11553
elif test "$with_gnu_ld" = yes; then
11554
echo "$as_me:$LINENO: checking for GNU ld" >&5
11555
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11557
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11558
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11560
if test "${lt_cv_path_LD+set}" = set; then
11561
echo $ECHO_N "(cached) $ECHO_C" >&6
11563
if test -z "$LD"; then
11564
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11565
for ac_dir in $PATH; do
11567
test -z "$ac_dir" && ac_dir=.
11568
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11569
lt_cv_path_LD="$ac_dir/$ac_prog"
11570
# Check to see if the program is GNU ld. I'd rather use --version,
11571
# but apparently some GNU ld's only accept -v.
11572
# Break only if it was the GNU/non-GNU ld that we prefer.
11573
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11574
*GNU* | *'with BFD'*)
11575
test "$with_gnu_ld" != no && break
11578
test "$with_gnu_ld" != yes && break
11585
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11589
LD="$lt_cv_path_LD"
11590
if test -n "$LD"; then
11591
echo "$as_me:$LINENO: result: $LD" >&5
11592
echo "${ECHO_T}$LD" >&6
11594
echo "$as_me:$LINENO: result: no" >&5
11595
echo "${ECHO_T}no" >&6
11597
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11598
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11599
{ (exit 1); exit 1; }; }
11600
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11601
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11602
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11603
echo $ECHO_N "(cached) $ECHO_C" >&6
11605
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
11606
case `"$LD" -v 2>&1 </dev/null` in
11607
*GNU* | *'with BFD'*)
11608
lt_cv_prog_gnu_ld=yes
11611
lt_cv_prog_gnu_ld=no
11615
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11616
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11617
with_gnu_ld=$lt_cv_prog_gnu_ld
11621
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11622
# archiving commands below assume that GNU ld is being used.
11623
if test "$with_gnu_ld" = yes; then
11624
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11625
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'
11627
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11628
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11630
# If archive_cmds runs LD, not CC, wlarc should be empty
11631
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11632
# investigate it a little bit more. (MM)
11635
# ancient GNU ld didn't support --whole-archive et. al.
11636
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11637
grep 'no-whole-archive' > /dev/null; then
11638
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11640
whole_archive_flag_spec_CXX=
11646
# A generic and very simple default shared library creation
11647
# command for GNU C++ for the case where it uses the native
11648
# linker, instead of GNU ld. If possible, this setting should
11649
# overridden to take advantage of the native linker features on
11650
# the platform it is being used on.
11651
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11654
# Commands to make compiler produce verbose output that lists
11655
# what "hidden" libraries, object files and flags are used when
11656
# linking a shared library.
11657
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11665
# PORTME: fill in a description of your system's C++ link characteristics
11666
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11667
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11671
# FIXME: insert proper C++ library support
11675
if test "$host_cpu" = ia64; then
11676
# On IA64, the linker does run time linking by default, so we don't
11677
# have to do anything special.
11678
aix_use_runtimelinking=no
11679
exp_sym_flag='-Bexport'
11682
aix_use_runtimelinking=no
11684
# Test if we are trying to use run time linking or normal
11685
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11686
# need to do runtime linking.
11687
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11688
for ld_flag in $LDFLAGS; do
11691
aix_use_runtimelinking=yes
11698
exp_sym_flag='-bexport'
11699
no_entry_flag='-bnoentry'
11702
# When large executables or shared objects are built, AIX ld can
11703
# have problems creating the table of contents. If linking a library
11704
# or program results in "error TOC overflow" add -mminimal-toc to
11705
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11706
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11708
archive_cmds_CXX=''
11709
hardcode_direct_CXX=yes
11710
hardcode_libdir_separator_CXX=':'
11711
link_all_deplibs_CXX=yes
11713
if test "$GXX" = yes; then
11714
case $host_os in aix4.012|aix4.012.*)
11715
# We only want to do this on AIX 4.2 and lower, the check
11716
# below for broken collect2 doesn't work under 4.3+
11717
collect2name=`${CC} -print-prog-name=collect2`
11718
if test -f "$collect2name" && \
11719
strings "$collect2name" | grep resolve_lib_name >/dev/null
11721
# We have reworked collect2
11722
hardcode_direct_CXX=yes
11724
# We have old collect2
11725
hardcode_direct_CXX=unsupported
11726
# It fails to find uninstalled libraries when the uninstalled
11727
# path is not listed in the libpath. Setting hardcode_minus_L
11728
# to unsupported forces relinking
11729
hardcode_minus_L_CXX=yes
11730
hardcode_libdir_flag_spec_CXX='-L$libdir'
11731
hardcode_libdir_separator_CXX=
11734
shared_flag='-shared'
11737
if test "$host_cpu" = ia64; then
11738
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11739
# chokes on -Wl,-G. The following line is correct:
11742
if test "$aix_use_runtimelinking" = yes; then
11743
shared_flag='${wl}-G'
11745
shared_flag='${wl}-bM:SRE'
11750
# It seems that -bexpall does not export symbols beginning with
11751
# underscore (_), so it is better to generate a list of symbols to export.
11752
always_export_symbols_CXX=yes
11753
if test "$aix_use_runtimelinking" = yes; then
11754
# Warning - without using the other runtime loading flags (-brtl),
11755
# -berok will link without error, but may produce a broken library.
11756
allow_undefined_flag_CXX='-berok'
11757
# Determine the default libpath from the value encoded in an empty executable.
11758
cat >conftest.$ac_ext <<_ACEOF
11761
cat confdefs.h >>conftest.$ac_ext
11762
cat >>conftest.$ac_ext <<_ACEOF
11763
/* end confdefs.h. */
11773
rm -f conftest.$ac_objext conftest$ac_exeext
11774
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11775
(eval $ac_link) 2>conftest.er1
11777
grep -v '^ *+' conftest.er1 >conftest.err
11779
cat conftest.err >&5
11780
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781
(exit $ac_status); } &&
11782
{ ac_try='test -z "$ac_cxx_werror_flag"
11783
|| test ! -s conftest.err'
11784
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785
(eval $ac_try) 2>&5
11787
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788
(exit $ac_status); }; } &&
11789
{ ac_try='test -s conftest$ac_exeext'
11790
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791
(eval $ac_try) 2>&5
11793
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794
(exit $ac_status); }; }; then
11796
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11798
# Check for a 64-bit object if we didn't find anything.
11799
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; }
11802
echo "$as_me: failed program was:" >&5
11803
sed 's/^/| /' conftest.$ac_ext >&5
11806
rm -f conftest.err conftest.$ac_objext \
11807
conftest$ac_exeext conftest.$ac_ext
11808
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11810
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11812
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"
11814
if test "$host_cpu" = ia64; then
11815
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11816
allow_undefined_flag_CXX="-z nodefs"
11817
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"
11819
# Determine the default libpath from the value encoded in an empty executable.
11820
cat >conftest.$ac_ext <<_ACEOF
11823
cat confdefs.h >>conftest.$ac_ext
11824
cat >>conftest.$ac_ext <<_ACEOF
11825
/* end confdefs.h. */
11835
rm -f conftest.$ac_objext conftest$ac_exeext
11836
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11837
(eval $ac_link) 2>conftest.er1
11839
grep -v '^ *+' conftest.er1 >conftest.err
11841
cat conftest.err >&5
11842
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843
(exit $ac_status); } &&
11844
{ ac_try='test -z "$ac_cxx_werror_flag"
11845
|| test ! -s conftest.err'
11846
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11847
(eval $ac_try) 2>&5
11849
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850
(exit $ac_status); }; } &&
11851
{ ac_try='test -s conftest$ac_exeext'
11852
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11853
(eval $ac_try) 2>&5
11855
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856
(exit $ac_status); }; }; then
11858
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11860
# Check for a 64-bit object if we didn't find anything.
11861
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; }
11864
echo "$as_me: failed program was:" >&5
11865
sed 's/^/| /' conftest.$ac_ext >&5
11868
rm -f conftest.err conftest.$ac_objext \
11869
conftest$ac_exeext conftest.$ac_ext
11870
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11872
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11873
# Warning - without using the other run time loading flags,
11874
# -berok will link without error, but may produce a broken library.
11875
no_undefined_flag_CXX=' ${wl}-bernotok'
11876
allow_undefined_flag_CXX=' ${wl}-berok'
11877
# -bexpall does not export symbols beginning with underscore (_)
11878
always_export_symbols_CXX=yes
11879
# Exported symbols can be pulled into shared objects from archives
11880
whole_archive_flag_spec_CXX=' '
11881
archive_cmds_need_lc_CXX=yes
11882
# This is similar to how AIX traditionally builds it's shared libraries.
11883
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'
11888
case $cc_basename in
11890
# FIXME: insert proper C++ library support
11896
cygwin* | mingw* | pw32*)
11897
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11898
# as there is no search path for DLLs.
11899
hardcode_libdir_flag_spec_CXX='-L$libdir'
11900
allow_undefined_flag_CXX=unsupported
11901
always_export_symbols_CXX=no
11902
enable_shared_with_static_runtimes_CXX=yes
11904
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11905
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
11906
# If the export-symbols file already is a .def file (1st line
11907
# is EXPORTS), use it as is; otherwise, prepend...
11908
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11909
cp $export_symbols $output_objdir/$soname.def;
11911
echo EXPORTS > $output_objdir/$soname.def;
11912
cat $export_symbols >> $output_objdir/$soname.def;
11914
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
11920
darwin* | rhapsody*)
11921
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11922
archive_cmds_need_lc_CXX=no
11924
rhapsody* | darwin1.[012])
11925
allow_undefined_flag_CXX='-undefined suppress'
11928
test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11931
lt_int_apple_cc_single_mod=no
11932
output_verbose_link_cmd='echo'
11933
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
11934
lt_int_apple_cc_single_mod=yes
11936
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11937
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11939
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'
11941
module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
11943
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11944
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11945
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}'
11947
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}'
11949
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11950
hardcode_direct_CXX=no
11951
hardcode_automatic_CXX=yes
11952
hardcode_shlibpath_var_CXX=unsupported
11953
whole_archive_flag_spec_CXX='-all_load $convenience'
11954
link_all_deplibs_CXX=yes
11959
case $cc_basename in
11961
# FIXME: insert proper C++ library support
11965
# Green Hills C++ Compiler
11966
# FIXME: insert proper C++ library support
11970
# FIXME: insert proper C++ library support
11976
# C++ shared libraries reported to be fairly broken before switch to ELF
11980
archive_cmds_need_lc_CXX=no
11983
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11990
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11991
hardcode_libdir_separator_CXX=:
11992
export_dynamic_flag_spec_CXX='${wl}-E'
11993
hardcode_direct_CXX=yes
11994
hardcode_minus_L_CXX=yes # Not in the search PATH,
11995
# but as the default
11996
# location of the library.
11998
case $cc_basename in
12000
# FIXME: insert proper C++ library support
12004
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'
12005
# Commands to make compiler produce verbose output that lists
12006
# what "hidden" libraries, object files and flags are used when
12007
# linking a shared library.
12009
# There doesn't appear to be a way to prevent this compiler from
12010
# explicitly linking system object files so we need to strip them
12011
# from the output so that they don't get included in the library
12013
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'
12016
if test "$GXX" = yes; then
12017
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'
12019
# FIXME: insert proper C++ library support
12026
if test $with_gnu_ld = no; then
12027
case "$host_cpu" in
12029
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12030
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12031
hardcode_libdir_separator_CXX=:
12034
hardcode_libdir_flag_spec_CXX='-L$libdir'
12037
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12038
hardcode_libdir_separator_CXX=:
12039
export_dynamic_flag_spec_CXX='${wl}-E'
12043
case "$host_cpu" in
12045
hardcode_direct_CXX=no
12046
hardcode_shlibpath_var_CXX=no
12049
hardcode_direct_CXX=no
12050
hardcode_shlibpath_var_CXX=no
12051
hardcode_minus_L_CXX=yes # Not in the search PATH,
12052
# but as the default
12053
# location of the library.
12056
hardcode_direct_CXX=yes
12057
hardcode_minus_L_CXX=yes # Not in the search PATH,
12058
# but as the default
12059
# location of the library.
12063
case $cc_basename in
12065
# FIXME: insert proper C++ library support
12069
case "$host_cpu" in
12071
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12074
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12077
# Commands to make compiler produce verbose output that lists
12078
# what "hidden" libraries, object files and flags are used when
12079
# linking a shared library.
12081
# There doesn't appear to be a way to prevent this compiler from
12082
# explicitly linking system object files so we need to strip them
12083
# from the output so that they don't get included in the library
12085
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'
12088
if test "$GXX" = yes; then
12089
if test $with_gnu_ld = no; then
12090
case "$host_cpu" in
12092
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12095
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'
12100
# FIXME: insert proper C++ library support
12107
case $cc_basename in
12110
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'
12112
# Archives containing C++ object files must be created using
12113
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12114
# necessary to make sure instantiated templates are included
12116
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12119
if test "$GXX" = yes; then
12120
if test "$with_gnu_ld" = no; then
12121
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'
12123
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'
12126
link_all_deplibs_CXX=yes
12129
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12130
hardcode_libdir_separator_CXX=:
12133
case $cc_basename in
12135
# Kuck and Associates, Inc. (KAI) C++ Compiler
12137
# KCC will only create a shared library if the output file
12138
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12139
# to its proper name (with version) after linking.
12140
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'
12141
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'
12142
# Commands to make compiler produce verbose output that lists
12143
# what "hidden" libraries, object files and flags are used when
12144
# linking a shared library.
12146
# There doesn't appear to be a way to prevent this compiler from
12147
# explicitly linking system object files so we need to strip them
12148
# from the output so that they don't get included in the library
12150
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'
12152
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12153
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12155
# Archives containing C++ object files must be created using
12156
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12157
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12162
archive_cmds_need_lc_CXX=no
12163
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12164
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'
12165
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12166
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12167
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12171
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12172
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'
12174
runpath_var=LD_RUN_PATH
12175
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12176
hardcode_libdir_separator_CXX=:
12178
# Commands to make compiler produce verbose output that lists
12179
# what "hidden" libraries, object files and flags are used when
12180
# linking a shared library.
12182
# There doesn't appear to be a way to prevent this compiler from
12183
# explicitly linking system object files so we need to strip them
12184
# from the output so that they don't get included in the library
12186
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'
12191
# FIXME: insert proper C++ library support
12195
# FIXME: insert proper C++ library support
12199
case $cc_basename in
12201
# FIXME: insert proper C++ library support
12205
# FIXME: insert proper C++ library support
12211
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12212
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12214
hardcode_libdir_flag_spec_CXX='-R$libdir'
12215
hardcode_direct_CXX=yes
12216
hardcode_shlibpath_var_CXX=no
12218
# Workaround some broken pre-1.5 toolchains
12219
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12222
case $cc_basename in
12224
# Kuck and Associates, Inc. (KAI) C++ Compiler
12226
# KCC will only create a shared library if the output file
12227
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12228
# to its proper name (with version) after linking.
12229
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'
12231
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12232
hardcode_libdir_separator_CXX=:
12234
# Archives containing C++ object files must be created using
12235
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12236
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12240
# Rational C++ 2.4.1
12241
# FIXME: insert proper C++ library support
12245
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12246
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'
12248
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12249
hardcode_libdir_separator_CXX=:
12251
# Commands to make compiler produce verbose output that lists
12252
# what "hidden" libraries, object files and flags are used when
12253
# linking a shared library.
12255
# There doesn't appear to be a way to prevent this compiler from
12256
# explicitly linking system object files so we need to strip them
12257
# from the output so that they don't get included in the library
12259
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'
12262
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12263
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12264
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'
12266
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12267
hardcode_libdir_separator_CXX=:
12269
# Commands to make compiler produce verbose output that lists
12270
# what "hidden" libraries, object files and flags are used when
12271
# linking a shared library.
12272
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12275
# FIXME: insert proper C++ library support
12282
case $cc_basename in
12284
# Kuck and Associates, Inc. (KAI) C++ Compiler
12286
# KCC will only create a shared library if the output file
12287
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12288
# to its proper name (with version) after linking.
12289
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'
12291
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12292
hardcode_libdir_separator_CXX=:
12294
# Archives containing C++ object files must be created using
12295
# the KAI C++ compiler.
12296
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12299
# Rational C++ 2.4.1
12300
# FIXME: insert proper C++ library support
12304
allow_undefined_flag_CXX=' -expect_unresolved \*'
12305
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'
12306
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12307
echo "-hidden">> $lib.exp~
12308
$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~
12311
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12312
hardcode_libdir_separator_CXX=:
12314
# Commands to make compiler produce verbose output that lists
12315
# what "hidden" libraries, object files and flags are used when
12316
# linking a shared library.
12318
# There doesn't appear to be a way to prevent this compiler from
12319
# explicitly linking system object files so we need to strip them
12320
# from the output so that they don't get included in the library
12322
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'
12325
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12326
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12327
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'
12329
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12330
hardcode_libdir_separator_CXX=:
12332
# Commands to make compiler produce verbose output that lists
12333
# what "hidden" libraries, object files and flags are used when
12334
# linking a shared library.
12335
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12338
# FIXME: insert proper C++ library support
12345
# FIXME: insert proper C++ library support
12349
archive_cmds_need_lc_CXX=no
12350
case $cc_basename in
12352
# FIXME: insert proper C++ library support
12356
# FIXME: insert proper C++ library support
12362
case $cc_basename in
12365
# FIXME: insert proper C++ library support
12370
# FIXME: insert proper C++ library support
12374
# FIXME: insert proper C++ library support
12380
case $cc_basename in
12382
# Sun C++ 4.2, 5.x and Centerline C++
12383
no_undefined_flag_CXX=' -zdefs'
12384
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12385
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12386
$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'
12388
hardcode_libdir_flag_spec_CXX='-R$libdir'
12389
hardcode_shlibpath_var_CXX=no
12391
solaris2.0-5 | solaris2.0-5.*) ;;
12393
# The C++ compiler is used as linker so we must use $wl
12394
# flag to pass the commands to the underlying system
12396
# Supported since Solaris 2.6 (maybe 2.5.1?)
12397
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12400
link_all_deplibs_CXX=yes
12402
# Commands to make compiler produce verbose output that lists
12403
# what "hidden" libraries, object files and flags are used when
12404
# linking a shared library.
12406
# There doesn't appear to be a way to prevent this compiler from
12407
# explicitly linking system object files so we need to strip them
12408
# from the output so that they don't get included in the library
12410
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'
12412
# Archives containing C++ object files must be created using
12413
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12414
# necessary to make sure instantiated templates are included
12416
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12419
# Green Hills C++ Compiler
12420
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12422
# The C++ compiler must be used to create the archive.
12423
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12426
# GNU C++ compiler with Solaris linker
12427
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12428
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12429
if $CC --version | grep -v '^2\.7' > /dev/null; then
12430
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12431
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12432
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12434
# Commands to make compiler produce verbose output that lists
12435
# what "hidden" libraries, object files and flags are used when
12436
# linking a shared library.
12437
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12439
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12441
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12442
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12443
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12445
# Commands to make compiler produce verbose output that lists
12446
# what "hidden" libraries, object files and flags are used when
12447
# linking a shared library.
12448
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12451
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12456
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12457
archive_cmds_need_lc_CXX=no
12460
case $cc_basename in
12462
# NonStop-UX NCC 3.20
12463
# FIXME: insert proper C++ library support
12467
# FIXME: insert proper C++ library support
12473
# FIXME: insert proper C++ library support
12477
# FIXME: insert proper C++ library support
12481
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12482
echo "${ECHO_T}$ld_shlibs_CXX" >&6
12483
test "$ld_shlibs_CXX" = no && can_build_shared=no
12489
## There is no encapsulation within the following macros, do not change
12490
## the running order or otherwise move them around unless you know exactly
12491
## what you are doing...
12493
cat > conftest.$ac_ext <<EOF
12497
Foo (void) { a = 0; }
12503
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12504
(eval $ac_compile) 2>&5
12506
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507
(exit $ac_status); }; then
12508
# Parse the compiler output and extract the necessary
12509
# objects, libraries and library flags.
12511
# Sentinel used to keep track of whether or not we are before
12512
# the conftest object file.
12513
pre_test_object_deps_done=no
12515
# The `*' in the case matches for architectures that use `case' in
12516
# $output_verbose_cmd can trigger glob expansion during the loop
12517
# eval without this substitution.
12518
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12520
for p in `eval $output_verbose_link_cmd`; do
12524
# Some compilers place space between "-{L,R}" and the path.
12525
# Remove the space.
12526
if test $p = "-L" \
12527
|| test $p = "-R"; then
12534
if test "$pre_test_object_deps_done" = no; then
12537
# Internal compiler library paths should come after those
12538
# provided the user. The postdeps already come after the
12539
# user supplied libs so there is no need to process them.
12540
if test -z "$compiler_lib_search_path_CXX"; then
12541
compiler_lib_search_path_CXX="${prev}${p}"
12543
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12546
# The "-l" case would never come before the object being
12547
# linked, so don't bother handling this case.
12550
if test -z "$postdeps_CXX"; then
12551
postdeps_CXX="${prev}${p}"
12553
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12559
# This assumes that the test object file only shows up
12560
# once in the compiler output.
12561
if test "$p" = "conftest.$objext"; then
12562
pre_test_object_deps_done=yes
12566
if test "$pre_test_object_deps_done" = no; then
12567
if test -z "$predep_objects_CXX"; then
12568
predep_objects_CXX="$p"
12570
predep_objects_CXX="$predep_objects_CXX $p"
12573
if test -z "$postdep_objects_CXX"; then
12574
postdep_objects_CXX="$p"
12576
postdep_objects_CXX="$postdep_objects_CXX $p"
12581
*) ;; # Ignore the rest.
12589
echo "libtool.m4: error: problem compiling CXX test program"
12592
$rm -f confest.$objext
12594
case " $postdeps_CXX " in
12595
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12598
lt_prog_compiler_wl_CXX=
12599
lt_prog_compiler_pic_CXX=
12600
lt_prog_compiler_static_CXX=
12602
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12603
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12605
# C++ specific cases for pic, static, wl, etc.
12606
if test "$GXX" = yes; then
12607
lt_prog_compiler_wl_CXX='-Wl,'
12608
lt_prog_compiler_static_CXX='-static'
12612
# All AIX code is PIC.
12613
if test "$host_cpu" = ia64; then
12614
# AIX 5 now supports IA64 processor
12615
lt_prog_compiler_static_CXX='-Bstatic'
12619
# FIXME: we need at least 68020 code to build shared libraries, but
12620
# adding the `-m68020' flag to GCC prevents building anything better,
12622
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12624
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12625
# PIC is the default for these OSes.
12627
mingw* | os2* | pw32*)
12628
# This hack is so that the source file can tell whether it is being
12629
# built for inclusion in a dll (and should export symbols for example).
12630
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12632
darwin* | rhapsody*)
12633
# PIC is the default on this platform
12634
# Common symbols not allowed in MH_DYLIB files
12635
lt_prog_compiler_pic_CXX='-fno-common'
12638
# DJGPP does not support shared libraries at all
12639
lt_prog_compiler_pic_CXX=
12642
if test -d /usr/nec; then
12643
lt_prog_compiler_pic_CXX=-Kconform_pic
12647
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12648
# not for PA HP-UX.
12649
case "$host_cpu" in
12653
lt_prog_compiler_pic_CXX='-fPIC'
12658
lt_prog_compiler_pic_CXX='-fPIC'
12664
# All AIX code is PIC.
12665
if test "$host_cpu" = ia64; then
12666
# AIX 5 now supports IA64 processor
12667
lt_prog_compiler_static_CXX='-Bstatic'
12669
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12673
case $cc_basename in
12675
# Green Hills C++ Compiler
12676
# _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"
12681
case $cc_basename in
12683
lt_prog_compiler_pic_CXX='-KPIC'
12686
# Green Hills C++ Compiler
12687
lt_prog_compiler_pic_CXX='-pic'
12694
# FreeBSD uses GNU C++
12696
hpux9* | hpux10* | hpux11*)
12697
case $cc_basename in
12699
lt_prog_compiler_wl_CXX='-Wl,'
12700
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12701
if test "$host_cpu" != ia64; then
12702
lt_prog_compiler_pic_CXX='+Z'
12706
lt_prog_compiler_wl_CXX='-Wl,'
12707
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12708
case "$host_cpu" in
12713
lt_prog_compiler_pic_CXX='+Z'
12721
irix5* | irix6* | nonstopux*)
12722
case $cc_basename in
12724
lt_prog_compiler_wl_CXX='-Wl,'
12725
lt_prog_compiler_static_CXX='-non_shared'
12726
# CC pic flag -KPIC is the default.
12733
case $cc_basename in
12736
lt_prog_compiler_wl_CXX='--backend -Wl,'
12737
lt_prog_compiler_pic_CXX='-fPIC'
12741
lt_prog_compiler_wl_CXX='-Wl,'
12742
lt_prog_compiler_pic_CXX='-KPIC'
12743
lt_prog_compiler_static_CXX='-static'
12747
# Make sure the PIC flag is empty. It appears that all Alpha
12748
# Linux and Compaq Tru64 Unix objects are PIC.
12749
lt_prog_compiler_pic_CXX=
12750
lt_prog_compiler_static_CXX='-non_shared'
12761
case $cc_basename in
12763
lt_prog_compiler_pic_CXX='-W c,exportall'
12771
osf3* | osf4* | osf5*)
12772
case $cc_basename in
12774
lt_prog_compiler_wl_CXX='--backend -Wl,'
12777
# Rational C++ 2.4.1
12778
lt_prog_compiler_pic_CXX='-pic'
12781
# Digital/Compaq C++
12782
lt_prog_compiler_wl_CXX='-Wl,'
12783
# Make sure the PIC flag is empty. It appears that all Alpha
12784
# Linux and Compaq Tru64 Unix objects are PIC.
12785
lt_prog_compiler_pic_CXX=
12786
lt_prog_compiler_static_CXX='-non_shared'
12795
case $cc_basename in
12797
lt_prog_compiler_pic_CXX='-fPIC'
12804
case $cc_basename in
12806
# Sun C++ 4.2, 5.x and Centerline C++
12807
lt_prog_compiler_pic_CXX='-KPIC'
12808
lt_prog_compiler_static_CXX='-Bstatic'
12809
lt_prog_compiler_wl_CXX='-Qoption ld '
12812
# Green Hills C++ Compiler
12813
lt_prog_compiler_pic_CXX='-PIC'
12820
case $cc_basename in
12823
lt_prog_compiler_pic_CXX='-pic'
12824
lt_prog_compiler_static_CXX='-Bstatic'
12828
lt_prog_compiler_pic_CXX='-pic'
12835
case $cc_basename in
12837
# NonStop-UX NCC 3.20
12838
lt_prog_compiler_pic_CXX='-KPIC'
12849
lt_prog_compiler_can_build_shared_CXX=no
12854
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12855
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12858
# Check to make sure the PIC flag actually works.
12860
if test -n "$lt_prog_compiler_pic_CXX"; then
12861
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12862
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12863
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12864
echo $ECHO_N "(cached) $ECHO_C" >&6
12866
lt_prog_compiler_pic_works_CXX=no
12867
ac_outfile=conftest.$ac_objext
12868
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12869
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12870
# Insert the option either (1) after the last *FLAGS variable, or
12871
# (2) before a word containing "conftest.", or (3) at the end.
12872
# Note that $ac_compile itself does not contain backslashes and begins
12873
# with a dollar sign (not a hyphen), so the echo should work correctly.
12874
# The option is referenced via a variable to avoid confusing sed.
12875
lt_compile=`echo "$ac_compile" | $SED \
12876
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12877
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12878
-e 's:$: $lt_compiler_flag:'`
12879
(eval echo "\"\$as_me:12879: $lt_compile\"" >&5)
12880
(eval "$lt_compile" 2>conftest.err)
12882
cat conftest.err >&5
12883
echo "$as_me:12883: \$? = $ac_status" >&5
12884
if (exit $ac_status) && test -s "$ac_outfile"; then
12885
# The compiler can only warn and ignore the option if not recognized
12886
# So say no if there are warnings
12887
if test ! -s conftest.err; then
12888
lt_prog_compiler_pic_works_CXX=yes
12894
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12895
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12897
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12898
case $lt_prog_compiler_pic_CXX in
12900
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12903
lt_prog_compiler_pic_CXX=
12904
lt_prog_compiler_can_build_shared_CXX=no
12909
# For platforms which do not support PIC, -DPIC is meaningless:
12911
lt_prog_compiler_pic_CXX=
12914
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12918
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12919
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12920
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12921
echo $ECHO_N "(cached) $ECHO_C" >&6
12923
lt_cv_prog_compiler_c_o_CXX=no
12924
$rm -r conftest 2>/dev/null
12928
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12930
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12931
# that will create temporary files in the current directory regardless of
12932
# the output directory. Thus, making CWD read-only will cause this test
12933
# to fail, enabling locking or at least warning the user not to do parallel
12937
lt_compiler_flag="-o out/conftest2.$ac_objext"
12938
# Insert the option either (1) after the last *FLAGS variable, or
12939
# (2) before a word containing "conftest.", or (3) at the end.
12940
# Note that $ac_compile itself does not contain backslashes and begins
12941
# with a dollar sign (not a hyphen), so the echo should work correctly.
12942
lt_compile=`echo "$ac_compile" | $SED \
12943
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12944
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12945
-e 's:$: $lt_compiler_flag:'`
12946
(eval echo "\"\$as_me:12946: $lt_compile\"" >&5)
12947
(eval "$lt_compile" 2>out/conftest.err)
12949
cat out/conftest.err >&5
12950
echo "$as_me:12950: \$? = $ac_status" >&5
12951
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12953
# The compiler can only warn and ignore the option if not recognized
12954
# So say no if there are warnings
12955
if test ! -s out/conftest.err; then
12956
lt_cv_prog_compiler_c_o_CXX=yes
12960
$rm conftest* out/*
12967
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12968
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12971
hard_links="nottested"
12972
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12973
# do not overwrite the value of need_locks provided by the user
12974
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12975
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12978
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12980
ln conftest.a conftest.b 2>&5 || hard_links=no
12981
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12982
echo "$as_me:$LINENO: result: $hard_links" >&5
12983
echo "${ECHO_T}$hard_links" >&6
12984
if test "$hard_links" = no; then
12985
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12986
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12993
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12994
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12996
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12999
# If we're using GNU nm, then we don't want the "-C" option.
13000
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13001
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13002
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'
13004
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'
13008
export_symbols_cmds_CXX="$ltdll_cmds"
13011
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13014
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13018
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13019
echo "${ECHO_T}$ld_shlibs_CXX" >&6
13020
test "$ld_shlibs_CXX" = no && can_build_shared=no
13022
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13023
if test "$GCC" = yes; then
13024
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13028
# Do we need to explicitly link libc?
13030
case "x$archive_cmds_need_lc_CXX" in
13032
# Assume -lc should be added
13033
archive_cmds_need_lc_CXX=yes
13035
if test "$enable_shared" = yes && test "$GCC" = yes; then
13036
case $archive_cmds_CXX in
13038
# FIXME: we may have to deal with multi-command sequences.
13041
# Test whether the compiler implicitly links with -lc since on some
13042
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13043
# to ld, don't add -lc before -lgcc.
13044
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13045
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13047
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13049
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13050
(eval $ac_compile) 2>&5
13052
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053
(exit $ac_status); } 2>conftest.err; then
13056
libobjs=conftest.$ac_objext
13058
wl=$lt_prog_compiler_wl_CXX
13064
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13065
allow_undefined_flag_CXX=
13066
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13067
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13069
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070
(exit $ac_status); }
13072
archive_cmds_need_lc_CXX=no
13074
archive_cmds_need_lc_CXX=yes
13076
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13078
cat conftest.err 1>&5
13081
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13082
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13089
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13090
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13091
hardcode_action_CXX=
13092
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13093
test -n "$runpath_var CXX" || \
13094
test "X$hardcode_automatic_CXX"="Xyes" ; then
13096
# We can hardcode non-existant directories.
13097
if test "$hardcode_direct_CXX" != no &&
13098
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13099
# have to relink, otherwise we might link with an installed library
13100
# when we should be linking with a yet-to-be-installed one
13101
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13102
test "$hardcode_minus_L_CXX" != no; then
13103
# Linking always hardcodes the temporary library directory.
13104
hardcode_action_CXX=relink
13106
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13107
hardcode_action_CXX=immediate
13110
# We cannot hardcode anything, or else we can only hardcode existing
13112
hardcode_action_CXX=unsupported
13114
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13115
echo "${ECHO_T}$hardcode_action_CXX" >&6
13117
if test "$hardcode_action_CXX" = relink; then
13118
# Fast installation is not supported
13119
enable_fast_install=no
13120
elif test "$shlibpath_overrides_runpath" = yes ||
13121
test "$enable_shared" = no; then
13122
# Fast installation is not necessary
13123
enable_fast_install=needless
13128
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13129
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13130
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13131
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13132
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13133
echo "$as_me:$LINENO: result: yes" >&5
13134
echo "${ECHO_T}yes" >&6
13136
# FIXME - insert some real tests, host_os isn't really good enough
13139
if test -n "$STRIP" ; then
13140
striplib="$STRIP -x"
13141
echo "$as_me:$LINENO: result: yes" >&5
13142
echo "${ECHO_T}yes" >&6
13144
echo "$as_me:$LINENO: result: no" >&5
13145
echo "${ECHO_T}no" >&6
13149
echo "$as_me:$LINENO: result: no" >&5
13150
echo "${ECHO_T}no" >&6
13155
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13156
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13157
library_names_spec=
13158
libname_spec='lib$name'
13162
postuninstall_cmds=
13166
shlibpath_overrides_runpath=unknown
13168
dynamic_linker="$host_os ld.so"
13169
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13170
if test "$GCC" = yes; then
13171
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13172
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13173
# if the path contains ";" then we assume it to be the separator
13174
# otherwise default to the standard path separator (i.e. ":") - it is
13175
# assumed that no part of a normal pathname contains ";" but that should
13176
# okay in the real world where ";" in dirpaths is itself problematic.
13177
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13179
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13182
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13184
need_lib_prefix=unknown
13185
hardcode_into_libs=no
13187
# when you set need_version to no, make sure it does not cause -set_version
13188
# flags to be left without arguments
13189
need_version=unknown
13194
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13195
shlibpath_var=LIBPATH
13197
# AIX 3 has no versioning support, so we append a major version to the name.
13198
soname_spec='${libname}${release}${shared_ext}$major'
13205
hardcode_into_libs=yes
13206
if test "$host_cpu" = ia64; then
13207
# AIX 5 supports IA64
13208
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13209
shlibpath_var=LD_LIBRARY_PATH
13211
# With GCC up to 2.95.x, collect2 would create an import file
13212
# for dependence libraries. The import file would start with
13213
# the line `#! .'. This would cause the generated library to
13214
# depend on `.', always an invalid library. This was fixed in
13215
# development snapshots of GCC prior to 3.0.
13217
aix4 | aix4.[01] | aix4.[01].*)
13218
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13220
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13223
can_build_shared=no
13227
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13228
# soname into executable. Probably we can add versioning support to
13229
# collect2, so additional links can be useful in future.
13230
if test "$aix_use_runtimelinking" = yes; then
13231
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13232
# instead of lib<name>.a to let people know that these are not
13233
# typical AIX shared libraries.
13234
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13236
# We preserve .a as extension for shared libraries through AIX4.2
13237
# and later when we are not doing run time linking.
13238
library_names_spec='${libname}${release}.a $libname.a'
13239
soname_spec='${libname}${release}${shared_ext}$major'
13241
shlibpath_var=LIBPATH
13246
library_names_spec='$libname.ixlibrary $libname.a'
13247
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13248
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'
13252
library_names_spec='${libname}${shared_ext}'
13253
dynamic_linker="$host_os ld.so"
13254
shlibpath_var=LIBRARY_PATH
13260
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13261
soname_spec='${libname}${release}${shared_ext}$major'
13262
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13263
shlibpath_var=LD_LIBRARY_PATH
13264
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13265
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13266
# the default ld.so.conf also contains /usr/contrib/lib and
13267
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13268
# libtool to hard-code these into programs
13271
cygwin* | mingw* | pw32*)
13272
version_type=windows
13277
case $GCC,$host_os in
13278
yes,cygwin* | yes,mingw* | yes,pw32*)
13279
library_names_spec='$libname.dll.a'
13280
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13281
postinstall_cmds='base_file=`basename \${file}`~
13282
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13283
dldir=$destdir/`dirname \$dlpath`~
13284
test -d \$dldir || mkdir -p \$dldir~
13285
$install_prog $dir/$dlname \$dldir/$dlname'
13286
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13287
dlpath=$dir/\$dldll~
13289
shlibpath_overrides_runpath=yes
13293
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13294
#soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
13295
soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
13296
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13299
# MinGW DLLs use traditional 'lib' prefix
13300
#soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
13301
soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
13302
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13303
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13304
# It is most probably a Windows format PATH printed by
13305
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13306
# path with ; separators, and with drive letters. We can handle the
13307
# drive letters (cygwin fileutils understands them), so leave them,
13308
# especially as we might pass files found there to a mingw objdump,
13309
# which wouldn't understand a cygwinified path. Ahh.
13310
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13312
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13316
# pw32 DLLs use 'pw' prefix rather than 'lib'
13317
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13323
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13326
dynamic_linker='Win32 ld.exe'
13327
# FIXME: first we should search . and the directory the executable is in
13331
darwin* | rhapsody*)
13332
dynamic_linker="$host_os dyld"
13333
version_type=darwin
13336
# FIXME: Relying on posixy $() will cause problems for
13337
# cross-compilation, but unfortunately the echo tests do not
13338
# yet detect zsh echo's removal of \ escapes.
13339
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13340
soname_spec='${libname}${release}${major}$shared_ext'
13341
shlibpath_overrides_runpath=yes
13342
shlibpath_var=DYLD_LIBRARY_PATH
13343
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13344
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13345
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13346
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"`
13348
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13355
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13356
soname_spec='${libname}${release}${shared_ext}$major'
13357
shlibpath_var=LD_LIBRARY_PATH
13365
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13366
version_type=freebsd-$objformat
13367
case $version_type in
13369
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13374
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13378
shlibpath_var=LD_LIBRARY_PATH
13381
shlibpath_overrides_runpath=yes
13383
freebsd3.01* | freebsdelf3.01*)
13384
shlibpath_overrides_runpath=yes
13385
hardcode_into_libs=yes
13388
shlibpath_overrides_runpath=no
13389
hardcode_into_libs=yes
13398
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13399
soname_spec='${libname}${release}${shared_ext}$major'
13400
shlibpath_var=LD_LIBRARY_PATH
13401
hardcode_into_libs=yes
13404
hpux9* | hpux10* | hpux11*)
13405
# Give a soname corresponding to the major version so that dld.sl refuses to
13406
# link against other versions.
13410
case "$host_cpu" in
13413
hardcode_into_libs=yes
13414
dynamic_linker="$host_os dld.so"
13415
shlibpath_var=LD_LIBRARY_PATH
13416
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13417
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13418
soname_spec='${libname}${release}${shared_ext}$major'
13419
if test "X$HPUX_IA64_MODE" = X32; then
13420
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13422
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13424
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13428
hardcode_into_libs=yes
13429
dynamic_linker="$host_os dld.sl"
13430
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13431
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13432
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13433
soname_spec='${libname}${release}${shared_ext}$major'
13434
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13435
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13439
dynamic_linker="$host_os dld.sl"
13440
shlibpath_var=SHLIB_PATH
13441
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13442
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13443
soname_spec='${libname}${release}${shared_ext}$major'
13446
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13447
postinstall_cmds='chmod 555 $lib'
13450
irix5* | irix6* | nonstopux*)
13452
nonstopux*) version_type=nonstopux ;;
13454
if test "$lt_cv_prog_gnu_ld" = yes; then
13462
soname_spec='${libname}${release}${shared_ext}$major'
13463
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13465
irix5* | nonstopux*)
13466
libsuff= shlibsuff=
13469
case $LD in # libtool.m4 will add one of these switches to LD
13470
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13471
libsuff= shlibsuff= libmagic=32-bit;;
13472
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13473
libsuff=32 shlibsuff=N32 libmagic=N32;;
13474
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13475
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13476
*) libsuff= shlibsuff= libmagic=never-match;;
13480
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13481
shlibpath_overrides_runpath=no
13482
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13483
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13484
hardcode_into_libs=yes
13487
# No shared lib support for Linux oldld, aout, or coff.
13488
linux*oldld* | linux*aout* | linux*coff*)
13492
# This must be Linux ELF.
13497
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13498
soname_spec='${libname}${release}${shared_ext}$major'
13499
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13500
shlibpath_var=LD_LIBRARY_PATH
13501
shlibpath_overrides_runpath=no
13502
# This implies no fast_install, which is unacceptable.
13503
# Some rework will be needed to allow for fast_install
13504
# before this can be enabled.
13505
hardcode_into_libs=yes
13507
# We used to test for /lib/ld.so.1 and disable shared libraries on
13508
# powerpc, because MkLinux only supported shared libraries with the
13509
# GNU dynamic linker. Since this was broken with cross compilers,
13510
# most powerpc-linux boxes support dynamic linking these days and
13511
# people can always --disable-shared, the test was removed, and we
13512
# assume the GNU/Linux dynamic linker is in use.
13513
dynamic_linker='GNU/Linux ld.so'
13520
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13521
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13522
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13523
dynamic_linker='NetBSD (a.out) ld.so'
13525
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
13526
soname_spec='${libname}${release}${shared_ext}$major'
13527
dynamic_linker='NetBSD ld.elf_so'
13529
shlibpath_var=LD_LIBRARY_PATH
13530
shlibpath_overrides_runpath=yes
13531
hardcode_into_libs=yes
13536
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13537
shlibpath_var=LD_LIBRARY_PATH
13538
shlibpath_overrides_runpath=yes
13545
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13546
soname_spec='${libname}${release}${shared_ext}$major'
13547
shlibpath_var=LD_LIBRARY_PATH
13548
shlibpath_overrides_runpath=yes
13555
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13556
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13557
shlibpath_var=LD_LIBRARY_PATH
13558
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13560
openbsd2.[89] | openbsd2.[89].*)
13561
shlibpath_overrides_runpath=no
13564
shlibpath_overrides_runpath=yes
13568
shlibpath_overrides_runpath=yes
13573
libname_spec='$name'
13576
library_names_spec='$libname${shared_ext} $libname.a'
13577
dynamic_linker='OS/2 ld.exe'
13578
shlibpath_var=LIBPATH
13581
osf3* | osf4* | osf5*)
13585
soname_spec='${libname}${release}${shared_ext}$major'
13586
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13587
shlibpath_var=LD_LIBRARY_PATH
13588
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13589
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13594
soname_spec='${libname}${release}${shared_ext}$major'
13595
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13596
shlibpath_var=LD_LIBRARY_PATH
13603
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13604
soname_spec='${libname}${release}${shared_ext}$major'
13605
shlibpath_var=LD_LIBRARY_PATH
13606
shlibpath_overrides_runpath=yes
13607
hardcode_into_libs=yes
13608
# ldd complains unless libraries are executable
13609
postinstall_cmds='chmod +x $lib'
13614
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13615
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13616
shlibpath_var=LD_LIBRARY_PATH
13617
shlibpath_overrides_runpath=yes
13618
if test "$with_gnu_ld" = yes; then
13624
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13626
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13627
soname_spec='${libname}${release}${shared_ext}$major'
13628
shlibpath_var=LD_LIBRARY_PATH
13629
case $host_vendor in
13631
shlibpath_overrides_runpath=no
13633
export_dynamic_flag_spec='${wl}-Blargedynsym'
13634
runpath_var=LD_RUN_PATH
13642
shlibpath_overrides_runpath=no
13643
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13649
if test -d /usr/nec ;then
13651
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13652
soname_spec='$libname${shared_ext}.$major'
13653
shlibpath_var=LD_LIBRARY_PATH
13659
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13660
soname_spec='${libname}${release}${shared_ext}$major'
13661
shlibpath_var=LD_LIBRARY_PATH
13668
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13669
echo "${ECHO_T}$dynamic_linker" >&6
13670
test "$dynamic_linker" = no && can_build_shared=no
13672
if test "x$enable_dlopen" != xyes; then
13673
enable_dlopen=unknown
13674
enable_dlopen_self=unknown
13675
enable_dlopen_self_static=unknown
13682
lt_cv_dlopen="load_add_on"
13684
lt_cv_dlopen_self=yes
13688
lt_cv_dlopen="LoadLibrary"
13693
lt_cv_dlopen="dlopen"
13698
# if libdl is installed we need to link against it
13699
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13700
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13701
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13702
echo $ECHO_N "(cached) $ECHO_C" >&6
13704
ac_check_lib_save_LIBS=$LIBS
13706
cat >conftest.$ac_ext <<_ACEOF
13709
cat confdefs.h >>conftest.$ac_ext
13710
cat >>conftest.$ac_ext <<_ACEOF
13711
/* end confdefs.h. */
13713
/* Override any gcc2 internal prototype to avoid an error. */
13717
/* We use char because int might match the return type of a gcc2
13718
builtin and then its argument prototype would still apply. */
13728
rm -f conftest.$ac_objext conftest$ac_exeext
13729
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13730
(eval $ac_link) 2>conftest.er1
13732
grep -v '^ *+' conftest.er1 >conftest.err
13734
cat conftest.err >&5
13735
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736
(exit $ac_status); } &&
13737
{ ac_try='test -z "$ac_cxx_werror_flag"
13738
|| test ! -s conftest.err'
13739
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740
(eval $ac_try) 2>&5
13742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743
(exit $ac_status); }; } &&
13744
{ ac_try='test -s conftest$ac_exeext'
13745
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746
(eval $ac_try) 2>&5
13748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749
(exit $ac_status); }; }; then
13750
ac_cv_lib_dl_dlopen=yes
13752
echo "$as_me: failed program was:" >&5
13753
sed 's/^/| /' conftest.$ac_ext >&5
13755
ac_cv_lib_dl_dlopen=no
13757
rm -f conftest.err conftest.$ac_objext \
13758
conftest$ac_exeext conftest.$ac_ext
13759
LIBS=$ac_check_lib_save_LIBS
13761
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13762
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13763
if test $ac_cv_lib_dl_dlopen = yes; then
13764
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13767
lt_cv_dlopen="dyld"
13769
lt_cv_dlopen_self=yes
13776
echo "$as_me:$LINENO: checking for shl_load" >&5
13777
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13778
if test "${ac_cv_func_shl_load+set}" = set; then
13779
echo $ECHO_N "(cached) $ECHO_C" >&6
13781
cat >conftest.$ac_ext <<_ACEOF
13784
cat confdefs.h >>conftest.$ac_ext
13785
cat >>conftest.$ac_ext <<_ACEOF
13786
/* end confdefs.h. */
13787
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13788
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13789
#define shl_load innocuous_shl_load
13791
/* System header to define __stub macros and hopefully few prototypes,
13792
which can conflict with char shl_load (); below.
13793
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13794
<limits.h> exists even on freestanding compilers. */
13797
# include <limits.h>
13799
# include <assert.h>
13804
/* Override any gcc2 internal prototype to avoid an error. */
13809
/* We use char because int might match the return type of a gcc2
13810
builtin and then its argument prototype would still apply. */
13812
/* The GNU C library defines this for functions which it implements
13813
to always fail with ENOSYS. Some functions are actually named
13814
something starting with __ and the normal name is an alias. */
13815
#if defined (__stub_shl_load) || defined (__stub___shl_load)
13818
char (*f) () = shl_load;
13827
return f != shl_load;
13832
rm -f conftest.$ac_objext conftest$ac_exeext
13833
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13834
(eval $ac_link) 2>conftest.er1
13836
grep -v '^ *+' conftest.er1 >conftest.err
13838
cat conftest.err >&5
13839
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840
(exit $ac_status); } &&
13841
{ ac_try='test -z "$ac_cxx_werror_flag"
13842
|| test ! -s conftest.err'
13843
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844
(eval $ac_try) 2>&5
13846
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847
(exit $ac_status); }; } &&
13848
{ ac_try='test -s conftest$ac_exeext'
13849
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850
(eval $ac_try) 2>&5
13852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853
(exit $ac_status); }; }; then
13854
ac_cv_func_shl_load=yes
13856
echo "$as_me: failed program was:" >&5
13857
sed 's/^/| /' conftest.$ac_ext >&5
13859
ac_cv_func_shl_load=no
13861
rm -f conftest.err conftest.$ac_objext \
13862
conftest$ac_exeext conftest.$ac_ext
13864
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13865
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13866
if test $ac_cv_func_shl_load = yes; then
13867
lt_cv_dlopen="shl_load"
13869
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13870
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13871
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13872
echo $ECHO_N "(cached) $ECHO_C" >&6
13874
ac_check_lib_save_LIBS=$LIBS
13876
cat >conftest.$ac_ext <<_ACEOF
13879
cat confdefs.h >>conftest.$ac_ext
13880
cat >>conftest.$ac_ext <<_ACEOF
13881
/* end confdefs.h. */
13883
/* Override any gcc2 internal prototype to avoid an error. */
13887
/* We use char because int might match the return type of a gcc2
13888
builtin and then its argument prototype would still apply. */
13898
rm -f conftest.$ac_objext conftest$ac_exeext
13899
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13900
(eval $ac_link) 2>conftest.er1
13902
grep -v '^ *+' conftest.er1 >conftest.err
13904
cat conftest.err >&5
13905
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906
(exit $ac_status); } &&
13907
{ ac_try='test -z "$ac_cxx_werror_flag"
13908
|| test ! -s conftest.err'
13909
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13910
(eval $ac_try) 2>&5
13912
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913
(exit $ac_status); }; } &&
13914
{ ac_try='test -s conftest$ac_exeext'
13915
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13916
(eval $ac_try) 2>&5
13918
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919
(exit $ac_status); }; }; then
13920
ac_cv_lib_dld_shl_load=yes
13922
echo "$as_me: failed program was:" >&5
13923
sed 's/^/| /' conftest.$ac_ext >&5
13925
ac_cv_lib_dld_shl_load=no
13927
rm -f conftest.err conftest.$ac_objext \
13928
conftest$ac_exeext conftest.$ac_ext
13929
LIBS=$ac_check_lib_save_LIBS
13931
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13932
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13933
if test $ac_cv_lib_dld_shl_load = yes; then
13934
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13936
echo "$as_me:$LINENO: checking for dlopen" >&5
13937
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13938
if test "${ac_cv_func_dlopen+set}" = set; then
13939
echo $ECHO_N "(cached) $ECHO_C" >&6
13941
cat >conftest.$ac_ext <<_ACEOF
13944
cat confdefs.h >>conftest.$ac_ext
13945
cat >>conftest.$ac_ext <<_ACEOF
13946
/* end confdefs.h. */
13947
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13948
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13949
#define dlopen innocuous_dlopen
13951
/* System header to define __stub macros and hopefully few prototypes,
13952
which can conflict with char dlopen (); below.
13953
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13954
<limits.h> exists even on freestanding compilers. */
13957
# include <limits.h>
13959
# include <assert.h>
13964
/* Override any gcc2 internal prototype to avoid an error. */
13969
/* We use char because int might match the return type of a gcc2
13970
builtin and then its argument prototype would still apply. */
13972
/* The GNU C library defines this for functions which it implements
13973
to always fail with ENOSYS. Some functions are actually named
13974
something starting with __ and the normal name is an alias. */
13975
#if defined (__stub_dlopen) || defined (__stub___dlopen)
13978
char (*f) () = dlopen;
13987
return f != dlopen;
13992
rm -f conftest.$ac_objext conftest$ac_exeext
13993
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13994
(eval $ac_link) 2>conftest.er1
13996
grep -v '^ *+' conftest.er1 >conftest.err
13998
cat conftest.err >&5
13999
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000
(exit $ac_status); } &&
14001
{ ac_try='test -z "$ac_cxx_werror_flag"
14002
|| test ! -s conftest.err'
14003
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14004
(eval $ac_try) 2>&5
14006
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007
(exit $ac_status); }; } &&
14008
{ ac_try='test -s conftest$ac_exeext'
14009
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010
(eval $ac_try) 2>&5
14012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013
(exit $ac_status); }; }; then
14014
ac_cv_func_dlopen=yes
14016
echo "$as_me: failed program was:" >&5
14017
sed 's/^/| /' conftest.$ac_ext >&5
14019
ac_cv_func_dlopen=no
14021
rm -f conftest.err conftest.$ac_objext \
14022
conftest$ac_exeext conftest.$ac_ext
14024
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14025
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14026
if test $ac_cv_func_dlopen = yes; then
14027
lt_cv_dlopen="dlopen"
14029
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14030
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14031
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14032
echo $ECHO_N "(cached) $ECHO_C" >&6
14034
ac_check_lib_save_LIBS=$LIBS
14036
cat >conftest.$ac_ext <<_ACEOF
14039
cat confdefs.h >>conftest.$ac_ext
14040
cat >>conftest.$ac_ext <<_ACEOF
14041
/* end confdefs.h. */
14043
/* Override any gcc2 internal prototype to avoid an error. */
14047
/* We use char because int might match the return type of a gcc2
14048
builtin and then its argument prototype would still apply. */
14058
rm -f conftest.$ac_objext conftest$ac_exeext
14059
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14060
(eval $ac_link) 2>conftest.er1
14062
grep -v '^ *+' conftest.er1 >conftest.err
14064
cat conftest.err >&5
14065
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066
(exit $ac_status); } &&
14067
{ ac_try='test -z "$ac_cxx_werror_flag"
14068
|| test ! -s conftest.err'
14069
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14070
(eval $ac_try) 2>&5
14072
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073
(exit $ac_status); }; } &&
14074
{ ac_try='test -s conftest$ac_exeext'
14075
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14076
(eval $ac_try) 2>&5
14078
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079
(exit $ac_status); }; }; then
14080
ac_cv_lib_dl_dlopen=yes
14082
echo "$as_me: failed program was:" >&5
14083
sed 's/^/| /' conftest.$ac_ext >&5
14085
ac_cv_lib_dl_dlopen=no
14087
rm -f conftest.err conftest.$ac_objext \
14088
conftest$ac_exeext conftest.$ac_ext
14089
LIBS=$ac_check_lib_save_LIBS
14091
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14092
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14093
if test $ac_cv_lib_dl_dlopen = yes; then
14094
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14096
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14097
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14098
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14099
echo $ECHO_N "(cached) $ECHO_C" >&6
14101
ac_check_lib_save_LIBS=$LIBS
14102
LIBS="-lsvld $LIBS"
14103
cat >conftest.$ac_ext <<_ACEOF
14106
cat confdefs.h >>conftest.$ac_ext
14107
cat >>conftest.$ac_ext <<_ACEOF
14108
/* end confdefs.h. */
14110
/* Override any gcc2 internal prototype to avoid an error. */
14114
/* We use char because int might match the return type of a gcc2
14115
builtin and then its argument prototype would still apply. */
14125
rm -f conftest.$ac_objext conftest$ac_exeext
14126
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14127
(eval $ac_link) 2>conftest.er1
14129
grep -v '^ *+' conftest.er1 >conftest.err
14131
cat conftest.err >&5
14132
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133
(exit $ac_status); } &&
14134
{ ac_try='test -z "$ac_cxx_werror_flag"
14135
|| test ! -s conftest.err'
14136
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14137
(eval $ac_try) 2>&5
14139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140
(exit $ac_status); }; } &&
14141
{ ac_try='test -s conftest$ac_exeext'
14142
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143
(eval $ac_try) 2>&5
14145
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146
(exit $ac_status); }; }; then
14147
ac_cv_lib_svld_dlopen=yes
14149
echo "$as_me: failed program was:" >&5
14150
sed 's/^/| /' conftest.$ac_ext >&5
14152
ac_cv_lib_svld_dlopen=no
14154
rm -f conftest.err conftest.$ac_objext \
14155
conftest$ac_exeext conftest.$ac_ext
14156
LIBS=$ac_check_lib_save_LIBS
14158
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14159
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14160
if test $ac_cv_lib_svld_dlopen = yes; then
14161
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14163
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14164
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14165
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14166
echo $ECHO_N "(cached) $ECHO_C" >&6
14168
ac_check_lib_save_LIBS=$LIBS
14170
cat >conftest.$ac_ext <<_ACEOF
14173
cat confdefs.h >>conftest.$ac_ext
14174
cat >>conftest.$ac_ext <<_ACEOF
14175
/* end confdefs.h. */
14177
/* Override any gcc2 internal prototype to avoid an error. */
14181
/* We use char because int might match the return type of a gcc2
14182
builtin and then its argument prototype would still apply. */
14192
rm -f conftest.$ac_objext conftest$ac_exeext
14193
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14194
(eval $ac_link) 2>conftest.er1
14196
grep -v '^ *+' conftest.er1 >conftest.err
14198
cat conftest.err >&5
14199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200
(exit $ac_status); } &&
14201
{ ac_try='test -z "$ac_cxx_werror_flag"
14202
|| test ! -s conftest.err'
14203
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14204
(eval $ac_try) 2>&5
14206
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207
(exit $ac_status); }; } &&
14208
{ ac_try='test -s conftest$ac_exeext'
14209
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14210
(eval $ac_try) 2>&5
14212
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213
(exit $ac_status); }; }; then
14214
ac_cv_lib_dld_dld_link=yes
14216
echo "$as_me: failed program was:" >&5
14217
sed 's/^/| /' conftest.$ac_ext >&5
14219
ac_cv_lib_dld_dld_link=no
14221
rm -f conftest.err conftest.$ac_objext \
14222
conftest$ac_exeext conftest.$ac_ext
14223
LIBS=$ac_check_lib_save_LIBS
14225
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14226
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14227
if test $ac_cv_lib_dld_dld_link = yes; then
14228
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14249
if test "x$lt_cv_dlopen" != xno; then
14255
case $lt_cv_dlopen in
14257
save_CPPFLAGS="$CPPFLAGS"
14258
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14260
save_LDFLAGS="$LDFLAGS"
14261
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14264
LIBS="$lt_cv_dlopen_libs $LIBS"
14266
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14267
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14268
if test "${lt_cv_dlopen_self+set}" = set; then
14269
echo $ECHO_N "(cached) $ECHO_C" >&6
14271
if test "$cross_compiling" = yes; then :
14272
lt_cv_dlopen_self=cross
14274
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14275
lt_status=$lt_dlunknown
14276
cat > conftest.$ac_ext <<EOF
14277
#line 14277 "configure"
14278
#include "confdefs.h"
14287
# define LT_DLGLOBAL RTLD_GLOBAL
14290
# define LT_DLGLOBAL DL_GLOBAL
14292
# define LT_DLGLOBAL 0
14296
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14297
find out it does not work in some platform. */
14298
#ifndef LT_DLLAZY_OR_NOW
14300
# define LT_DLLAZY_OR_NOW RTLD_LAZY
14303
# define LT_DLLAZY_OR_NOW DL_LAZY
14306
# define LT_DLLAZY_OR_NOW RTLD_NOW
14309
# define LT_DLLAZY_OR_NOW DL_NOW
14311
# define LT_DLLAZY_OR_NOW 0
14319
extern "C" void exit (int);
14322
void fnord() { int i=42;}
14325
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14326
int status = $lt_dlunknown;
14330
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14331
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14332
/* dlclose (self); */
14338
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14339
(eval $ac_link) 2>&5
14341
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14343
(./conftest; exit; ) 2>/dev/null
14345
case x$lt_status in
14346
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14347
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14348
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14351
# compilation failed
14352
lt_cv_dlopen_self=no
14359
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14360
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14362
if test "x$lt_cv_dlopen_self" = xyes; then
14363
LDFLAGS="$LDFLAGS $link_static_flag"
14364
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14365
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14366
if test "${lt_cv_dlopen_self_static+set}" = set; then
14367
echo $ECHO_N "(cached) $ECHO_C" >&6
14369
if test "$cross_compiling" = yes; then :
14370
lt_cv_dlopen_self_static=cross
14372
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14373
lt_status=$lt_dlunknown
14374
cat > conftest.$ac_ext <<EOF
14375
#line 14375 "configure"
14376
#include "confdefs.h"
14385
# define LT_DLGLOBAL RTLD_GLOBAL
14388
# define LT_DLGLOBAL DL_GLOBAL
14390
# define LT_DLGLOBAL 0
14394
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14395
find out it does not work in some platform. */
14396
#ifndef LT_DLLAZY_OR_NOW
14398
# define LT_DLLAZY_OR_NOW RTLD_LAZY
14401
# define LT_DLLAZY_OR_NOW DL_LAZY
14404
# define LT_DLLAZY_OR_NOW RTLD_NOW
14407
# define LT_DLLAZY_OR_NOW DL_NOW
14409
# define LT_DLLAZY_OR_NOW 0
14417
extern "C" void exit (int);
14420
void fnord() { int i=42;}
14423
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14424
int status = $lt_dlunknown;
14428
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14429
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14430
/* dlclose (self); */
14436
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14437
(eval $ac_link) 2>&5
14439
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14441
(./conftest; exit; ) 2>/dev/null
14443
case x$lt_status in
14444
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14445
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14446
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14449
# compilation failed
14450
lt_cv_dlopen_self_static=no
14457
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14458
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14461
CPPFLAGS="$save_CPPFLAGS"
14462
LDFLAGS="$save_LDFLAGS"
14467
case $lt_cv_dlopen_self in
14468
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14469
*) enable_dlopen_self=unknown ;;
14472
case $lt_cv_dlopen_self_static in
14473
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14474
*) enable_dlopen_self_static=unknown ;;
14479
# The else clause should only fire when bootstrapping the
14480
# libtool distribution, otherwise you forgot to ship ltmain.sh
14481
# with your package, and you will get complaints that there are
14482
# no rules to generate ltmain.sh.
14483
if test -f "$ltmain"; then
14484
# See if we are running on zsh, and set the options which allow our commands through
14485
# without removal of \ escapes.
14486
if test -n "${ZSH_VERSION+set}" ; then
14487
setopt NO_GLOB_SUBST
14489
# Now quote all the things that may contain metacharacters while being
14490
# careful not to overquote the AC_SUBSTed values. We take copies of the
14491
# variables and quote the copies for generation of the libtool script.
14492
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14493
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14494
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14495
deplibs_check_method reload_flag reload_cmds need_locks \
14496
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14497
lt_cv_sys_global_symbol_to_c_name_address \
14498
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14499
old_postinstall_cmds old_postuninstall_cmds \
14503
lt_prog_compiler_wl_CXX \
14504
lt_prog_compiler_pic_CXX \
14505
lt_prog_compiler_static_CXX \
14506
lt_prog_compiler_no_builtin_flag_CXX \
14507
export_dynamic_flag_spec_CXX \
14508
thread_safe_flag_spec_CXX \
14509
whole_archive_flag_spec_CXX \
14510
enable_shared_with_static_runtimes_CXX \
14511
old_archive_cmds_CXX \
14512
old_archive_from_new_cmds_CXX \
14513
predep_objects_CXX \
14514
postdep_objects_CXX \
14517
compiler_lib_search_path_CXX \
14519
archive_expsym_cmds_CXX \
14520
postinstall_cmds_CXX \
14521
postuninstall_cmds_CXX \
14522
old_archive_from_expsyms_cmds_CXX \
14523
allow_undefined_flag_CXX \
14524
no_undefined_flag_CXX \
14525
export_symbols_cmds_CXX \
14526
hardcode_libdir_flag_spec_CXX \
14527
hardcode_libdir_flag_spec_ld_CXX \
14528
hardcode_libdir_separator_CXX \
14529
hardcode_automatic_CXX \
14531
module_expsym_cmds_CXX \
14532
lt_cv_prog_compiler_c_o_CXX \
14533
exclude_expsyms_CXX \
14534
include_expsyms_CXX; do
14537
old_archive_cmds_CXX | \
14538
old_archive_from_new_cmds_CXX | \
14539
archive_cmds_CXX | \
14540
archive_expsym_cmds_CXX | \
14541
module_cmds_CXX | \
14542
module_expsym_cmds_CXX | \
14543
old_archive_from_expsyms_cmds_CXX | \
14544
export_symbols_cmds_CXX | \
14545
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14546
postinstall_cmds | postuninstall_cmds | \
14547
old_postinstall_cmds | old_postuninstall_cmds | \
14548
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14549
# Double-quote double-evaled strings.
14550
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14553
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14559
*'\$0 --fallback-echo"')
14560
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14566
cat <<__EOF__ >> "$cfgfile"
14567
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14569
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14571
# Shell to use when invoking shell scripts.
14574
# Whether or not to build shared libraries.
14575
build_libtool_libs=$enable_shared
14577
# Whether or not to build static libraries.
14578
build_old_libs=$enable_static
14580
# Whether or not to add -lc for building shared libraries.
14581
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14583
# Whether or not to disallow shared libs when runtime libs are static
14584
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14586
# Whether or not to optimize for fast installation.
14587
fast_install=$enable_fast_install
14590
host_alias=$host_alias
14593
# An echo program that does not interpret backslashes.
14598
AR_FLAGS=$lt_AR_FLAGS
14603
# A language-specific compiler.
14604
CC=$lt_compiler_CXX
14606
# Is the compiler the GNU C compiler?
14612
# The linker used to build libraries.
14615
# Whether we need hard or soft links.
14618
# A BSD-compatible nm program.
14621
# A symbol stripping program
14624
# Used to examine libraries when file_magic_cmd begins "file"
14625
MAGIC_CMD=$MAGIC_CMD
14627
# Used on cygwin: DLL creation program.
14630
# Used on cygwin: object dumper.
14633
# Used on cygwin: assembler.
14636
# The name of the directory that contains temporary libtool files.
14639
# How to create reloadable object files.
14640
reload_flag=$lt_reload_flag
14641
reload_cmds=$lt_reload_cmds
14643
# How to pass a linker flag through the compiler.
14644
wl=$lt_lt_prog_compiler_wl_CXX
14646
# Object file suffix (normally "o").
14647
objext="$ac_objext"
14649
# Old archive suffix (normally "a").
14652
# Shared library suffix (normally ".so").
14655
# Executable file suffix (normally "").
14658
# Additional compiler flags for building library objects.
14659
pic_flag=$lt_lt_prog_compiler_pic_CXX
14662
# What is the maximum length of a command?
14663
max_cmd_len=$lt_cv_sys_max_cmd_len
14665
# Does compiler simultaneously support -c and -o options?
14666
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14668
# Must we lock files when doing compilation ?
14669
need_locks=$lt_need_locks
14671
# Do we need the lib prefix for modules?
14672
need_lib_prefix=$need_lib_prefix
14674
# Do we need a version for libraries?
14675
need_version=$need_version
14677
# Whether dlopen is supported.
14678
dlopen_support=$enable_dlopen
14680
# Whether dlopen of programs is supported.
14681
dlopen_self=$enable_dlopen_self
14683
# Whether dlopen of statically linked programs is supported.
14684
dlopen_self_static=$enable_dlopen_self_static
14686
# Compiler flag to prevent dynamic linking.
14687
link_static_flag=$lt_lt_prog_compiler_static_CXX
14689
# Compiler flag to turn off builtin functions.
14690
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14692
# Compiler flag to allow reflexive dlopens.
14693
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14695
# Compiler flag to generate shared objects directly from archives.
14696
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14698
# Compiler flag to generate thread-safe objects.
14699
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14701
# Library versioning type.
14702
version_type=$version_type
14704
# Format of library name prefix.
14705
libname_spec=$lt_libname_spec
14707
# List of archive names. First name is the real one, the rest are links.
14708
# The last name is the one that the linker finds with -lNAME.
14709
library_names_spec=$lt_library_names_spec
14711
# The coded name of the library, if different from the real name.
14712
soname_spec=$lt_soname_spec
14714
# Commands used to build and install an old-style archive.
14716
old_archive_cmds=$lt_old_archive_cmds_CXX
14717
old_postinstall_cmds=$lt_old_postinstall_cmds
14718
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14720
# Create an old-style archive from a shared archive.
14721
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14723
# Create a temporary old-style archive to link instead of a shared archive.
14724
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14726
# Commands used to build and install a shared archive.
14727
archive_cmds=$lt_archive_cmds_CXX
14728
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14729
postinstall_cmds=$lt_postinstall_cmds
14730
postuninstall_cmds=$lt_postuninstall_cmds
14732
# Commands used to build a loadable module (assumed same as above if empty)
14733
module_cmds=$lt_module_cmds_CXX
14734
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14736
# Commands to strip libraries.
14737
old_striplib=$lt_old_striplib
14738
striplib=$lt_striplib
14740
# Dependencies to place before the objects being linked to create a
14742
predep_objects=$lt_predep_objects_CXX
14744
# Dependencies to place after the objects being linked to create a
14746
postdep_objects=$lt_postdep_objects_CXX
14748
# Dependencies to place before the objects being linked to create a
14750
predeps=$lt_predeps_CXX
14752
# Dependencies to place after the objects being linked to create a
14754
postdeps=$lt_postdeps_CXX
14756
# The library search path used internally by the compiler when linking
14757
# a shared library.
14758
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14760
# Method to check whether dependent libraries are shared objects.
14761
deplibs_check_method=$lt_deplibs_check_method
14763
# Command to use when deplibs_check_method == file_magic.
14764
file_magic_cmd=$lt_file_magic_cmd
14766
# Flag that allows shared libraries with undefined symbols to be built.
14767
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14769
# Flag that forces no undefined symbols.
14770
no_undefined_flag=$lt_no_undefined_flag_CXX
14772
# Commands used to finish a libtool library installation in a directory.
14773
finish_cmds=$lt_finish_cmds
14775
# Same as above, but a single script fragment to be evaled but not shown.
14776
finish_eval=$lt_finish_eval
14778
# Take the output of nm and produce a listing of raw symbols and C names.
14779
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14781
# Transform the output of nm in a proper C declaration
14782
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14784
# Transform the output of nm in a C name address pair
14785
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14787
# This is the shared library runtime path variable.
14788
runpath_var=$runpath_var
14790
# This is the shared library path variable.
14791
shlibpath_var=$shlibpath_var
14793
# Is shlibpath searched before the hard-coded library search path?
14794
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14796
# How to hardcode a shared library path into an executable.
14797
hardcode_action=$hardcode_action_CXX
14799
# Whether we should hardcode library paths into libraries.
14800
hardcode_into_libs=$hardcode_into_libs
14802
# Flag to hardcode \$libdir into a binary during linking.
14803
# This must work even if \$libdir does not exist.
14804
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14806
# If ld is used when linking, flag to hardcode \$libdir into
14807
# a binary during linking. This must work even if \$libdir does
14809
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14811
# Whether we need a single -rpath flag with a separated argument.
14812
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14814
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14815
# resulting binary.
14816
hardcode_direct=$hardcode_direct_CXX
14818
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14819
# resulting binary.
14820
hardcode_minus_L=$hardcode_minus_L_CXX
14822
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14823
# the resulting binary.
14824
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14826
# Set to yes if building a shared library automatically hardcodes DIR into the library
14827
# and all subsequent libraries and executables linked against it.
14828
hardcode_automatic=$hardcode_automatic_CXX
14830
# Variables whose values should be saved in libtool wrapper scripts and
14831
# restored at relink time.
14832
variables_saved_for_relink="$variables_saved_for_relink"
14834
# Whether libtool must link a program against all its dependency libraries.
14835
link_all_deplibs=$link_all_deplibs_CXX
14837
# Compile-time system search path for libraries
14838
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14840
# Run-time system search path for libraries
14841
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14843
# Fix the shell variable \$srcfile for the compiler.
14844
fix_srcfile_path="$fix_srcfile_path_CXX"
14846
# Set to yes if exported symbols are required.
14847
always_export_symbols=$always_export_symbols_CXX
14849
# The commands to list exported symbols.
14850
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14852
# The commands to extract the exported symbol list from a shared archive.
14853
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14855
# Symbols that should not be listed in the preloaded symbols.
14856
exclude_expsyms=$lt_exclude_expsyms_CXX
14858
# Symbols that must always be exported.
14859
include_expsyms=$lt_include_expsyms_CXX
14861
# ### END LIBTOOL TAG CONFIG: $tagname
14867
# If there is no Makefile yet, we rely on a make rule to execute
14868
# `config.status --recheck' to rerun these tests and create the
14869
# libtool script then.
14870
test -f Makefile && make "$ltmain"
14875
ac_cpp='$CPP $CPPFLAGS'
14876
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14877
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14878
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14884
with_gnu_ldcxx=$with_gnu_ld
14885
with_gnu_ld=$lt_save_with_gnu_ld
14886
lt_cv_path_LDCXX=$lt_cv_path_LD
14887
lt_cv_path_LD=$lt_save_path_LD
14888
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14889
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14897
if test -n "$F77" && test "X$F77" != "Xno"; then
14900
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14901
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14902
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14905
archive_cmds_need_lc_F77=no
14906
allow_undefined_flag_F77=
14907
always_export_symbols_F77=no
14908
archive_expsym_cmds_F77=
14909
export_dynamic_flag_spec_F77=
14910
hardcode_direct_F77=no
14911
hardcode_libdir_flag_spec_F77=
14912
hardcode_libdir_flag_spec_ld_F77=
14913
hardcode_libdir_separator_F77=
14914
hardcode_minus_L_F77=no
14915
hardcode_automatic_F77=no
14917
module_expsym_cmds_F77=
14918
link_all_deplibs_F77=unknown
14919
old_archive_cmds_F77=$old_archive_cmds
14920
no_undefined_flag_F77=
14921
whole_archive_flag_spec_F77=
14922
enable_shared_with_static_runtimes_F77=no
14924
# Source file extension for f77 test sources.
14927
# Object file extension for compiled f77 test sources.
14931
# Code to be used in simple compile tests
14932
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14934
# Code to be used in simple link tests
14935
lt_simple_link_test_code=" program t\n end\n"
14937
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14939
# If no C compiler was specified, use CC.
14942
# Allow CC to be a program name with arguments.
14946
# Allow CC to be a program name with arguments.
14951
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14953
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14954
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14955
echo "$as_me:$LINENO: result: $can_build_shared" >&5
14956
echo "${ECHO_T}$can_build_shared" >&6
14958
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14959
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14960
test "$can_build_shared" = "no" && enable_shared=no
14962
# On AIX, shared libraries and static libraries use the same namespace, and
14963
# are all built from PIC.
14966
test "$enable_shared" = yes && enable_static=no
14967
if test -n "$RANLIB"; then
14968
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14969
postinstall_cmds='$RANLIB $lib'
14973
test "$enable_shared" = yes && enable_static=no
14976
echo "$as_me:$LINENO: result: $enable_shared" >&5
14977
echo "${ECHO_T}$enable_shared" >&6
14979
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14980
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14981
# Make sure either enable_shared or enable_static is yes.
14982
test "$enable_shared" = yes || enable_static=yes
14983
echo "$as_me:$LINENO: result: $enable_static" >&5
14984
echo "${ECHO_T}$enable_static" >&6
14986
test "$ld_shlibs_F77" = no && can_build_shared=no
14991
lt_prog_compiler_wl_F77=
14992
lt_prog_compiler_pic_F77=
14993
lt_prog_compiler_static_F77=
14995
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14996
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14998
if test "$GCC" = yes; then
14999
lt_prog_compiler_wl_F77='-Wl,'
15000
lt_prog_compiler_static_F77='-static'
15004
# All AIX code is PIC.
15005
if test "$host_cpu" = ia64; then
15006
# AIX 5 now supports IA64 processor
15007
lt_prog_compiler_static_F77='-Bstatic'
15012
# FIXME: we need at least 68020 code to build shared libraries, but
15013
# adding the `-m68020' flag to GCC prevents building anything better,
15015
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15018
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15019
# PIC is the default for these OSes.
15022
mingw* | pw32* | os2*)
15023
# This hack is so that the source file can tell whether it is being
15024
# built for inclusion in a dll (and should export symbols for example).
15025
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15028
darwin* | rhapsody*)
15029
# PIC is the default on this platform
15030
# Common symbols not allowed in MH_DYLIB files
15031
lt_prog_compiler_pic_F77='-fno-common'
15035
# Just because we use GCC doesn't mean we suddenly get shared libraries
15036
# on systems that don't support them.
15037
lt_prog_compiler_can_build_shared_F77=no
15042
if test -d /usr/nec; then
15043
lt_prog_compiler_pic_F77=-Kconform_pic
15048
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15049
# not for PA HP-UX.
15050
case "$host_cpu" in
15055
lt_prog_compiler_pic_F77='-fPIC'
15061
lt_prog_compiler_pic_F77='-fPIC'
15065
# PORTME Check for flag to pass linker flags through the system compiler.
15068
lt_prog_compiler_wl_F77='-Wl,'
15069
if test "$host_cpu" = ia64; then
15070
# AIX 5 now supports IA64 processor
15071
lt_prog_compiler_static_F77='-Bstatic'
15073
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15077
mingw* | pw32* | os2*)
15078
# This hack is so that the source file can tell whether it is being
15079
# built for inclusion in a dll (and should export symbols for example).
15080
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15083
hpux9* | hpux10* | hpux11*)
15084
lt_prog_compiler_wl_F77='-Wl,'
15085
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15086
# not for PA HP-UX.
15087
case "$host_cpu" in
15092
lt_prog_compiler_pic_F77='+Z'
15095
# Is there a better lt_prog_compiler_static that works with the bundled CC?
15096
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15099
irix5* | irix6* | nonstopux*)
15100
lt_prog_compiler_wl_F77='-Wl,'
15101
# PIC (with -KPIC) is the default.
15102
lt_prog_compiler_static_F77='-non_shared'
15106
lt_prog_compiler_pic_F77='-KPIC'
15107
lt_prog_compiler_static_F77='-Bstatic'
15113
lt_prog_compiler_wl_F77='-Wl,'
15114
lt_prog_compiler_pic_F77='-KPIC'
15115
lt_prog_compiler_static_F77='-static'
15118
lt_prog_compiler_wl_F77='-Wl,'
15119
# All Alpha code is PIC.
15120
lt_prog_compiler_static_F77='-non_shared'
15125
osf3* | osf4* | osf5*)
15126
lt_prog_compiler_wl_F77='-Wl,'
15127
# All OSF/1 code is PIC.
15128
lt_prog_compiler_static_F77='-non_shared'
15132
lt_prog_compiler_pic_F77='-Kpic'
15133
lt_prog_compiler_static_F77='-dn'
15137
lt_prog_compiler_wl_F77='-Wl,'
15138
lt_prog_compiler_pic_F77='-KPIC'
15139
lt_prog_compiler_static_F77='-Bstatic'
15143
lt_prog_compiler_wl_F77='-Qoption ld '
15144
lt_prog_compiler_pic_F77='-PIC'
15145
lt_prog_compiler_static_F77='-Bstatic'
15148
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15149
lt_prog_compiler_wl_F77='-Wl,'
15150
lt_prog_compiler_pic_F77='-KPIC'
15151
lt_prog_compiler_static_F77='-Bstatic'
15155
if test -d /usr/nec ;then
15156
lt_prog_compiler_pic_F77='-Kconform_pic'
15157
lt_prog_compiler_static_F77='-Bstatic'
15162
lt_prog_compiler_pic_F77='-pic'
15163
lt_prog_compiler_static_F77='-Bstatic'
15167
lt_prog_compiler_can_build_shared_F77=no
15172
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15173
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15176
# Check to make sure the PIC flag actually works.
15178
if test -n "$lt_prog_compiler_pic_F77"; then
15179
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15180
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15181
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15182
echo $ECHO_N "(cached) $ECHO_C" >&6
15184
lt_prog_compiler_pic_works_F77=no
15185
ac_outfile=conftest.$ac_objext
15186
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15187
lt_compiler_flag="$lt_prog_compiler_pic_F77"
15188
# Insert the option either (1) after the last *FLAGS variable, or
15189
# (2) before a word containing "conftest.", or (3) at the end.
15190
# Note that $ac_compile itself does not contain backslashes and begins
15191
# with a dollar sign (not a hyphen), so the echo should work correctly.
15192
# The option is referenced via a variable to avoid confusing sed.
15193
lt_compile=`echo "$ac_compile" | $SED \
15194
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15195
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15196
-e 's:$: $lt_compiler_flag:'`
15197
(eval echo "\"\$as_me:15197: $lt_compile\"" >&5)
15198
(eval "$lt_compile" 2>conftest.err)
15200
cat conftest.err >&5
15201
echo "$as_me:15201: \$? = $ac_status" >&5
15202
if (exit $ac_status) && test -s "$ac_outfile"; then
15203
# The compiler can only warn and ignore the option if not recognized
15204
# So say no if there are warnings
15205
if test ! -s conftest.err; then
15206
lt_prog_compiler_pic_works_F77=yes
15212
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15213
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15215
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15216
case $lt_prog_compiler_pic_F77 in
15218
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15221
lt_prog_compiler_pic_F77=
15222
lt_prog_compiler_can_build_shared_F77=no
15227
# For platforms which do not support PIC, -DPIC is meaningless:
15229
lt_prog_compiler_pic_F77=
15232
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15236
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15237
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15238
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15239
echo $ECHO_N "(cached) $ECHO_C" >&6
15241
lt_cv_prog_compiler_c_o_F77=no
15242
$rm -r conftest 2>/dev/null
15246
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15248
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15249
# that will create temporary files in the current directory regardless of
15250
# the output directory. Thus, making CWD read-only will cause this test
15251
# to fail, enabling locking or at least warning the user not to do parallel
15255
lt_compiler_flag="-o out/conftest2.$ac_objext"
15256
# Insert the option either (1) after the last *FLAGS variable, or
15257
# (2) before a word containing "conftest.", or (3) at the end.
15258
# Note that $ac_compile itself does not contain backslashes and begins
15259
# with a dollar sign (not a hyphen), so the echo should work correctly.
15260
lt_compile=`echo "$ac_compile" | $SED \
15261
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15262
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15263
-e 's:$: $lt_compiler_flag:'`
15264
(eval echo "\"\$as_me:15264: $lt_compile\"" >&5)
15265
(eval "$lt_compile" 2>out/conftest.err)
15267
cat out/conftest.err >&5
15268
echo "$as_me:15268: \$? = $ac_status" >&5
15269
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15271
# The compiler can only warn and ignore the option if not recognized
15272
# So say no if there are warnings
15273
if test ! -s out/conftest.err; then
15274
lt_cv_prog_compiler_c_o_F77=yes
15278
$rm conftest* out/*
15285
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15286
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15289
hard_links="nottested"
15290
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15291
# do not overwrite the value of need_locks provided by the user
15292
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15293
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15296
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15298
ln conftest.a conftest.b 2>&5 || hard_links=no
15299
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15300
echo "$as_me:$LINENO: result: $hard_links" >&5
15301
echo "${ECHO_T}$hard_links" >&6
15302
if test "$hard_links" = no; then
15303
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15304
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15311
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15312
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15315
allow_undefined_flag_F77=
15316
enable_shared_with_static_runtimes_F77=no
15318
archive_expsym_cmds_F77=
15319
old_archive_From_new_cmds_F77=
15320
old_archive_from_expsyms_cmds_F77=
15321
export_dynamic_flag_spec_F77=
15322
whole_archive_flag_spec_F77=
15323
thread_safe_flag_spec_F77=
15324
hardcode_libdir_flag_spec_F77=
15325
hardcode_libdir_flag_spec_ld_F77=
15326
hardcode_libdir_separator_F77=
15327
hardcode_direct_F77=no
15328
hardcode_minus_L_F77=no
15329
hardcode_shlibpath_var_F77=unsupported
15330
link_all_deplibs_F77=unknown
15331
hardcode_automatic_F77=no
15333
module_expsym_cmds_F77=
15334
always_export_symbols_F77=no
15335
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15336
# include_expsyms should be a list of space-separated symbols to be *always*
15337
# included in the symbol list
15338
include_expsyms_F77=
15339
# exclude_expsyms can be an extended regexp of symbols to exclude
15340
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15341
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15342
# as well as any symbol that contains `d'.
15343
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15344
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15345
# platforms (ab)use it in PIC code, but their linkers get confused if
15346
# the symbol is explicitly referenced. Since portable code cannot
15347
# rely on this symbol name, it's probably fine to never include it in
15348
# preloaded symbol tables.
15349
extract_expsyms_cmds=
15352
cygwin* | mingw* | pw32*)
15353
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15354
# When not using gcc, we currently assume that we are using
15355
# Microsoft Visual C++.
15356
if test "$GCC" != yes; then
15366
if test "$with_gnu_ld" = yes; then
15367
# If archive_cmds runs LD, not CC, wlarc should be empty
15370
# See if GNU ld supports shared libraries.
15372
aix3* | aix4* | aix5*)
15373
# On AIX/PPC, the GNU linker is very broken
15374
if test "$host_cpu" != ia64; then
15378
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15379
*** to be unable to reliably create shared libraries on AIX.
15380
*** Therefore, libtool is disabling shared libraries support. If you
15381
*** really care for shared libraries, you may want to modify your PATH
15382
*** so that a non-GNU linker is found, and then restart.
15389
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)'
15390
hardcode_libdir_flag_spec_F77='-L$libdir'
15391
hardcode_minus_L_F77=yes
15393
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15394
# that the semantics of dynamic libraries on AmigaOS, at least up
15395
# to version 4, is to share data among multiple programs linked
15396
# with the same dynamic library. Since this doesn't match the
15397
# behavior of shared libraries on other platforms, we can't use
15403
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15404
allow_undefined_flag_F77=unsupported
15405
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15406
# support --undefined. This deserves some investigation. FIXME
15407
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15413
cygwin* | mingw* | pw32*)
15414
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15415
# as there is no search path for DLLs.
15416
hardcode_libdir_flag_spec_F77='-L$libdir'
15417
allow_undefined_flag_F77=unsupported
15418
always_export_symbols_F77=no
15419
enable_shared_with_static_runtimes_F77=yes
15420
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15422
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15423
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
15424
# If the export-symbols file already is a .def file (1st line
15425
# is EXPORTS), use it as is; otherwise, prepend...
15426
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15427
cp $export_symbols $output_objdir/$soname.def;
15429
echo EXPORTS > $output_objdir/$soname.def;
15430
cat $export_symbols >> $output_objdir/$soname.def;
15432
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
15439
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15440
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15443
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15444
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15449
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15453
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15454
*** create shared libraries on Solaris systems. Therefore, libtool
15455
*** is disabling shared libraries support. We urge you to upgrade GNU
15456
*** binutils to release 2.9.1 or newer. Another option is to modify
15457
*** your PATH or compiler configuration so that the native linker is
15458
*** used, and then restart.
15461
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15462
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15463
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15470
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15472
hardcode_direct_F77=yes
15473
hardcode_shlibpath_var_F77=no
15477
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15478
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15479
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15486
if test "$ld_shlibs_F77" = yes; then
15487
runpath_var=LD_RUN_PATH
15488
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15489
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15490
# ancient GNU ld didn't support --whole-archive et. al.
15491
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15492
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15494
whole_archive_flag_spec_F77=
15498
# PORTME fill in a description of your system's linker (not GNU ld)
15501
allow_undefined_flag_F77=unsupported
15502
always_export_symbols_F77=yes
15503
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'
15504
# Note: this linker hardcodes the directories in LIBPATH if there
15505
# are no directories specified by -L.
15506
hardcode_minus_L_F77=yes
15507
if test "$GCC" = yes && test -z "$link_static_flag"; then
15508
# Neither direct hardcoding nor static linking is supported with a
15510
hardcode_direct_F77=unsupported
15515
if test "$host_cpu" = ia64; then
15516
# On IA64, the linker does run time linking by default, so we don't
15517
# have to do anything special.
15518
aix_use_runtimelinking=no
15519
exp_sym_flag='-Bexport'
15522
# If we're using GNU nm, then we don't want the "-C" option.
15523
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15524
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15525
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'
15527
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'
15529
aix_use_runtimelinking=no
15531
# Test if we are trying to use run time linking or normal
15532
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15533
# need to do runtime linking.
15534
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15535
for ld_flag in $LDFLAGS; do
15536
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15537
aix_use_runtimelinking=yes
15543
exp_sym_flag='-bexport'
15544
no_entry_flag='-bnoentry'
15547
# When large executables or shared objects are built, AIX ld can
15548
# have problems creating the table of contents. If linking a library
15549
# or program results in "error TOC overflow" add -mminimal-toc to
15550
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15551
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15553
archive_cmds_F77=''
15554
hardcode_direct_F77=yes
15555
hardcode_libdir_separator_F77=':'
15556
link_all_deplibs_F77=yes
15558
if test "$GCC" = yes; then
15559
case $host_os in aix4.012|aix4.012.*)
15560
# We only want to do this on AIX 4.2 and lower, the check
15561
# below for broken collect2 doesn't work under 4.3+
15562
collect2name=`${CC} -print-prog-name=collect2`
15563
if test -f "$collect2name" && \
15564
strings "$collect2name" | grep resolve_lib_name >/dev/null
15566
# We have reworked collect2
15567
hardcode_direct_F77=yes
15569
# We have old collect2
15570
hardcode_direct_F77=unsupported
15571
# It fails to find uninstalled libraries when the uninstalled
15572
# path is not listed in the libpath. Setting hardcode_minus_L
15573
# to unsupported forces relinking
15574
hardcode_minus_L_F77=yes
15575
hardcode_libdir_flag_spec_F77='-L$libdir'
15576
hardcode_libdir_separator_F77=
15579
shared_flag='-shared'
15582
if test "$host_cpu" = ia64; then
15583
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15584
# chokes on -Wl,-G. The following line is correct:
15587
if test "$aix_use_runtimelinking" = yes; then
15588
shared_flag='${wl}-G'
15590
shared_flag='${wl}-bM:SRE'
15595
# It seems that -bexpall does not export symbols beginning with
15596
# underscore (_), so it is better to generate a list of symbols to export.
15597
always_export_symbols_F77=yes
15598
if test "$aix_use_runtimelinking" = yes; then
15599
# Warning - without using the other runtime loading flags (-brtl),
15600
# -berok will link without error, but may produce a broken library.
15601
allow_undefined_flag_F77='-berok'
15602
# Determine the default libpath from the value encoded in an empty executable.
15603
cat >conftest.$ac_ext <<_ACEOF
15608
rm -f conftest.$ac_objext conftest$ac_exeext
15609
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15610
(eval $ac_link) 2>conftest.er1
15612
grep -v '^ *+' conftest.er1 >conftest.err
15614
cat conftest.err >&5
15615
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616
(exit $ac_status); } &&
15617
{ ac_try='test -z "$ac_f77_werror_flag"
15618
|| test ! -s conftest.err'
15619
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15620
(eval $ac_try) 2>&5
15622
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623
(exit $ac_status); }; } &&
15624
{ ac_try='test -s conftest$ac_exeext'
15625
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15626
(eval $ac_try) 2>&5
15628
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629
(exit $ac_status); }; }; then
15631
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15633
# Check for a 64-bit object if we didn't find anything.
15634
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; }
15637
echo "$as_me: failed program was:" >&5
15638
sed 's/^/| /' conftest.$ac_ext >&5
15641
rm -f conftest.err conftest.$ac_objext \
15642
conftest$ac_exeext conftest.$ac_ext
15643
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15645
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15646
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"
15648
if test "$host_cpu" = ia64; then
15649
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15650
allow_undefined_flag_F77="-z nodefs"
15651
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"
15653
# Determine the default libpath from the value encoded in an empty executable.
15654
cat >conftest.$ac_ext <<_ACEOF
15659
rm -f conftest.$ac_objext conftest$ac_exeext
15660
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15661
(eval $ac_link) 2>conftest.er1
15663
grep -v '^ *+' conftest.er1 >conftest.err
15665
cat conftest.err >&5
15666
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667
(exit $ac_status); } &&
15668
{ ac_try='test -z "$ac_f77_werror_flag"
15669
|| test ! -s conftest.err'
15670
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15671
(eval $ac_try) 2>&5
15673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674
(exit $ac_status); }; } &&
15675
{ ac_try='test -s conftest$ac_exeext'
15676
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15677
(eval $ac_try) 2>&5
15679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680
(exit $ac_status); }; }; then
15682
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15684
# Check for a 64-bit object if we didn't find anything.
15685
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; }
15688
echo "$as_me: failed program was:" >&5
15689
sed 's/^/| /' conftest.$ac_ext >&5
15692
rm -f conftest.err conftest.$ac_objext \
15693
conftest$ac_exeext conftest.$ac_ext
15694
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15696
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15697
# Warning - without using the other run time loading flags,
15698
# -berok will link without error, but may produce a broken library.
15699
no_undefined_flag_F77=' ${wl}-bernotok'
15700
allow_undefined_flag_F77=' ${wl}-berok'
15701
# -bexpall does not export symbols beginning with underscore (_)
15702
always_export_symbols_F77=yes
15703
# Exported symbols can be pulled into shared objects from archives
15704
whole_archive_flag_spec_F77=' '
15705
archive_cmds_need_lc_F77=yes
15706
# This is similar to how AIX traditionally builds it's shared libraries.
15707
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'
15713
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)'
15714
hardcode_libdir_flag_spec_F77='-L$libdir'
15715
hardcode_minus_L_F77=yes
15716
# see comment about different semantics on the GNU ld section
15721
export_dynamic_flag_spec_F77=-rdynamic
15724
cygwin* | mingw* | pw32*)
15725
# When not using gcc, we currently assume that we are using
15726
# Microsoft Visual C++.
15727
# hardcode_libdir_flag_spec is actually meaningless, as there is
15728
# no search path for DLLs.
15729
hardcode_libdir_flag_spec_F77=' '
15730
allow_undefined_flag_F77=unsupported
15731
# Tell ltmain to make .lib files, not .a files.
15733
# Tell ltmain to make .dll files, not .so files.
15735
# FIXME: Setting linknames here is a bad hack.
15736
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15737
# The linker will automatically build a .lib file if we build a DLL.
15738
old_archive_From_new_cmds_F77='true'
15739
# FIXME: Should let the user specify the lib program.
15740
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15741
fix_srcfile_path='`cygpath -w "$srcfile"`'
15742
enable_shared_with_static_runtimes_F77=yes
15745
darwin* | rhapsody*)
15746
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15747
archive_cmds_need_lc_F77=no
15749
rhapsody* | darwin1.[012])
15750
allow_undefined_flag_F77='-undefined suppress'
15753
test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15756
# FIXME: Relying on posixy $() will cause problems for
15757
# cross-compilation, but unfortunately the echo tests do not
15758
# yet detect zsh echo's removal of \ escapes. Also zsh mangles
15759
# `"' quotes if we put them in here... so don't!
15760
lt_int_apple_cc_single_mod=no
15761
output_verbose_link_cmd='echo'
15762
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15763
lt_int_apple_cc_single_mod=yes
15765
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15766
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15768
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'
15770
module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15771
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15772
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15773
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}'
15775
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}'
15777
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15778
hardcode_direct_F77=no
15779
hardcode_automatic_F77=yes
15780
hardcode_shlibpath_var_F77=unsupported
15781
whole_archive_flag_spec_F77='-all_load $convenience'
15782
link_all_deplibs_F77=yes
15787
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15788
hardcode_libdir_flag_spec_F77='-L$libdir'
15789
hardcode_shlibpath_var_F77=no
15796
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15797
# support. Future versions do this automatically, but an explicit c++rt0.o
15798
# does not break anything, and helps significantly (at the cost of a little
15801
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15802
hardcode_libdir_flag_spec_F77='-R$libdir'
15803
hardcode_direct_F77=yes
15804
hardcode_shlibpath_var_F77=no
15807
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15809
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15810
hardcode_direct_F77=yes
15811
hardcode_minus_L_F77=yes
15812
hardcode_shlibpath_var_F77=no
15815
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15817
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15818
hardcode_libdir_flag_spec_F77='-R$libdir'
15819
hardcode_direct_F77=yes
15820
hardcode_shlibpath_var_F77=no
15824
if test "$GCC" = yes; then
15825
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'
15827
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'
15829
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15830
hardcode_libdir_separator_F77=:
15831
hardcode_direct_F77=yes
15833
# hardcode_minus_L: Not really in the search PATH,
15834
# but as the default location of the library.
15835
hardcode_minus_L_F77=yes
15836
export_dynamic_flag_spec_F77='${wl}-E'
15840
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15841
case "$host_cpu" in
15843
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15846
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15850
case "$host_cpu" in
15852
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15855
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15859
if test "$with_gnu_ld" = no; then
15860
case "$host_cpu" in
15862
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15863
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15864
hardcode_libdir_separator_F77=:
15865
hardcode_direct_F77=no
15866
hardcode_shlibpath_var_F77=no
15869
hardcode_libdir_flag_spec_F77='-L$libdir'
15870
hardcode_direct_F77=no
15871
hardcode_shlibpath_var_F77=no
15873
# hardcode_minus_L: Not really in the search PATH,
15874
# but as the default location of the library.
15875
hardcode_minus_L_F77=yes
15878
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15879
hardcode_libdir_separator_F77=:
15880
hardcode_direct_F77=yes
15881
export_dynamic_flag_spec_F77='${wl}-E'
15883
# hardcode_minus_L: Not really in the search PATH,
15884
# but as the default location of the library.
15885
hardcode_minus_L_F77=yes
15891
irix5* | irix6* | nonstopux*)
15892
if test "$GCC" = yes; then
15893
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'
15895
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'
15896
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15898
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15899
hardcode_libdir_separator_F77=:
15900
link_all_deplibs_F77=yes
15904
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15905
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15907
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15909
hardcode_libdir_flag_spec_F77='-R$libdir'
15910
hardcode_direct_F77=yes
15911
hardcode_shlibpath_var_F77=no
15915
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15916
hardcode_direct_F77=yes
15917
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15918
hardcode_libdir_separator_F77=:
15919
hardcode_shlibpath_var_F77=no
15923
hardcode_direct_F77=yes
15924
hardcode_shlibpath_var_F77=no
15925
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15926
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15927
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15928
export_dynamic_flag_spec_F77='${wl}-E'
15931
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15932
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15933
hardcode_libdir_flag_spec_F77='-R$libdir'
15936
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15937
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15944
hardcode_libdir_flag_spec_F77='-L$libdir'
15945
hardcode_minus_L_F77=yes
15946
allow_undefined_flag_F77=unsupported
15947
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'
15948
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15952
if test "$GCC" = yes; then
15953
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15954
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'
15956
allow_undefined_flag_F77=' -expect_unresolved \*'
15957
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'
15959
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15960
hardcode_libdir_separator_F77=:
15963
osf4* | osf5*) # as osf3* with the addition of -msym flag
15964
if test "$GCC" = yes; then
15965
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15966
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'
15967
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15969
allow_undefined_flag_F77=' -expect_unresolved \*'
15970
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'
15971
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~
15972
$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'
15974
# Both c and cxx compiler support -rpath directly
15975
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15977
hardcode_libdir_separator_F77=:
15981
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15982
hardcode_shlibpath_var_F77=no
15983
export_dynamic_flag_spec_F77='${wl}-Bexport'
15984
runpath_var=LD_RUN_PATH
15985
hardcode_runpath_var=yes
15989
no_undefined_flag_F77=' -z text'
15990
if test "$GCC" = yes; then
15991
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15992
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15993
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15995
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15996
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15997
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15999
hardcode_libdir_flag_spec_F77='-R$libdir'
16000
hardcode_shlibpath_var_F77=no
16002
solaris2.[0-5] | solaris2.[0-5].*) ;;
16003
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
16004
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16006
link_all_deplibs_F77=yes
16010
if test "x$host_vendor" = xsequent; then
16011
# Use $CC to link under sequent, because it throws in some extra .o
16012
# files that make .init and .fini sections work.
16013
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16015
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16017
hardcode_libdir_flag_spec_F77='-L$libdir'
16018
hardcode_direct_F77=yes
16019
hardcode_minus_L_F77=yes
16020
hardcode_shlibpath_var_F77=no
16024
case $host_vendor in
16026
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16027
hardcode_direct_F77=yes # is this really true???
16030
## LD is ld it makes a PLAMLIB
16031
## CC just makes a GrossModule.
16032
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16033
reload_cmds_F77='$CC -r -o $output$reload_objs'
16034
hardcode_direct_F77=no
16037
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16038
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16041
runpath_var='LD_RUN_PATH'
16042
hardcode_shlibpath_var_F77=no
16046
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16047
hardcode_shlibpath_var_F77=no
16048
export_dynamic_flag_spec_F77='-Bexport'
16052
if test -d /usr/nec; then
16053
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16054
hardcode_shlibpath_var_F77=no
16055
runpath_var=LD_RUN_PATH
16056
hardcode_runpath_var=yes
16062
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16063
hardcode_direct_F77=yes
16064
hardcode_minus_L_F77=no
16065
hardcode_shlibpath_var_F77=no
16066
hardcode_runpath_var=yes
16067
runpath_var=LD_RUN_PATH
16070
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16071
no_undefined_flag_F77='${wl}-z ${wl}text'
16072
if test "$GCC" = yes; then
16073
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16075
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16077
runpath_var='LD_RUN_PATH'
16078
hardcode_shlibpath_var_F77=no
16082
no_undefined_flag_F77=' -z text'
16083
# $CC -shared without GNU ld will not create a library from C++
16084
# object files and a static libstdc++, better avoid it by now
16085
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16086
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16087
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16088
hardcode_libdir_flag_spec_F77=
16089
hardcode_shlibpath_var_F77=no
16090
runpath_var='LD_RUN_PATH'
16094
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16095
hardcode_libdir_flag_spec_F77='-L$libdir'
16096
hardcode_shlibpath_var_F77=no
16105
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16106
echo "${ECHO_T}$ld_shlibs_F77" >&6
16107
test "$ld_shlibs_F77" = no && can_build_shared=no
16109
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16110
if test "$GCC" = yes; then
16111
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16115
# Do we need to explicitly link libc?
16117
case "x$archive_cmds_need_lc_F77" in
16119
# Assume -lc should be added
16120
archive_cmds_need_lc_F77=yes
16122
if test "$enable_shared" = yes && test "$GCC" = yes; then
16123
case $archive_cmds_F77 in
16125
# FIXME: we may have to deal with multi-command sequences.
16128
# Test whether the compiler implicitly links with -lc since on some
16129
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16130
# to ld, don't add -lc before -lgcc.
16131
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16132
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16134
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16136
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16137
(eval $ac_compile) 2>&5
16139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140
(exit $ac_status); } 2>conftest.err; then
16143
libobjs=conftest.$ac_objext
16145
wl=$lt_prog_compiler_wl_F77
16151
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16152
allow_undefined_flag_F77=
16153
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16154
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16156
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157
(exit $ac_status); }
16159
archive_cmds_need_lc_F77=no
16161
archive_cmds_need_lc_F77=yes
16163
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16165
cat conftest.err 1>&5
16168
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16169
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16176
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16177
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16178
hardcode_action_F77=
16179
if test -n "$hardcode_libdir_flag_spec_F77" || \
16180
test -n "$runpath_var F77" || \
16181
test "X$hardcode_automatic_F77"="Xyes" ; then
16183
# We can hardcode non-existant directories.
16184
if test "$hardcode_direct_F77" != no &&
16185
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16186
# have to relink, otherwise we might link with an installed library
16187
# when we should be linking with a yet-to-be-installed one
16188
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16189
test "$hardcode_minus_L_F77" != no; then
16190
# Linking always hardcodes the temporary library directory.
16191
hardcode_action_F77=relink
16193
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16194
hardcode_action_F77=immediate
16197
# We cannot hardcode anything, or else we can only hardcode existing
16199
hardcode_action_F77=unsupported
16201
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16202
echo "${ECHO_T}$hardcode_action_F77" >&6
16204
if test "$hardcode_action_F77" = relink; then
16205
# Fast installation is not supported
16206
enable_fast_install=no
16207
elif test "$shlibpath_overrides_runpath" = yes ||
16208
test "$enable_shared" = no; then
16209
# Fast installation is not necessary
16210
enable_fast_install=needless
16215
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16216
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16217
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16218
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16219
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16220
echo "$as_me:$LINENO: result: yes" >&5
16221
echo "${ECHO_T}yes" >&6
16223
# FIXME - insert some real tests, host_os isn't really good enough
16226
if test -n "$STRIP" ; then
16227
striplib="$STRIP -x"
16228
echo "$as_me:$LINENO: result: yes" >&5
16229
echo "${ECHO_T}yes" >&6
16231
echo "$as_me:$LINENO: result: no" >&5
16232
echo "${ECHO_T}no" >&6
16236
echo "$as_me:$LINENO: result: no" >&5
16237
echo "${ECHO_T}no" >&6
16242
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16243
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16244
library_names_spec=
16245
libname_spec='lib$name'
16249
postuninstall_cmds=
16253
shlibpath_overrides_runpath=unknown
16255
dynamic_linker="$host_os ld.so"
16256
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16257
if test "$GCC" = yes; then
16258
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16259
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16260
# if the path contains ";" then we assume it to be the separator
16261
# otherwise default to the standard path separator (i.e. ":") - it is
16262
# assumed that no part of a normal pathname contains ";" but that should
16263
# okay in the real world where ";" in dirpaths is itself problematic.
16264
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16266
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16269
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16271
need_lib_prefix=unknown
16272
hardcode_into_libs=no
16274
# when you set need_version to no, make sure it does not cause -set_version
16275
# flags to be left without arguments
16276
need_version=unknown
16281
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16282
shlibpath_var=LIBPATH
16284
# AIX 3 has no versioning support, so we append a major version to the name.
16285
soname_spec='${libname}${release}${shared_ext}$major'
16292
hardcode_into_libs=yes
16293
if test "$host_cpu" = ia64; then
16294
# AIX 5 supports IA64
16295
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16296
shlibpath_var=LD_LIBRARY_PATH
16298
# With GCC up to 2.95.x, collect2 would create an import file
16299
# for dependence libraries. The import file would start with
16300
# the line `#! .'. This would cause the generated library to
16301
# depend on `.', always an invalid library. This was fixed in
16302
# development snapshots of GCC prior to 3.0.
16304
aix4 | aix4.[01] | aix4.[01].*)
16305
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16307
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16310
can_build_shared=no
16314
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16315
# soname into executable. Probably we can add versioning support to
16316
# collect2, so additional links can be useful in future.
16317
if test "$aix_use_runtimelinking" = yes; then
16318
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16319
# instead of lib<name>.a to let people know that these are not
16320
# typical AIX shared libraries.
16321
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16323
# We preserve .a as extension for shared libraries through AIX4.2
16324
# and later when we are not doing run time linking.
16325
library_names_spec='${libname}${release}.a $libname.a'
16326
soname_spec='${libname}${release}${shared_ext}$major'
16328
shlibpath_var=LIBPATH
16333
library_names_spec='$libname.ixlibrary $libname.a'
16334
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16335
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'
16339
library_names_spec='${libname}${shared_ext}'
16340
dynamic_linker="$host_os ld.so"
16341
shlibpath_var=LIBRARY_PATH
16347
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16348
soname_spec='${libname}${release}${shared_ext}$major'
16349
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16350
shlibpath_var=LD_LIBRARY_PATH
16351
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16352
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16353
# the default ld.so.conf also contains /usr/contrib/lib and
16354
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16355
# libtool to hard-code these into programs
16358
cygwin* | mingw* | pw32*)
16359
version_type=windows
16364
case $GCC,$host_os in
16365
yes,cygwin* | yes,mingw* | yes,pw32*)
16366
library_names_spec='$libname.dll.a'
16367
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16368
postinstall_cmds='base_file=`basename \${file}`~
16369
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16370
dldir=$destdir/`dirname \$dlpath`~
16371
test -d \$dldir || mkdir -p \$dldir~
16372
$install_prog $dir/$dlname \$dldir/$dlname'
16373
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16374
dlpath=$dir/\$dldll~
16376
shlibpath_overrides_runpath=yes
16380
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16381
#soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
16382
soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
16383
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16386
# MinGW DLLs use traditional 'lib' prefix
16387
#soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
16388
soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
16389
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16390
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16391
# It is most probably a Windows format PATH printed by
16392
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16393
# path with ; separators, and with drive letters. We can handle the
16394
# drive letters (cygwin fileutils understands them), so leave them,
16395
# especially as we might pass files found there to a mingw objdump,
16396
# which wouldn't understand a cygwinified path. Ahh.
16397
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16399
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16403
# pw32 DLLs use 'pw' prefix rather than 'lib'
16404
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16410
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16413
dynamic_linker='Win32 ld.exe'
16414
# FIXME: first we should search . and the directory the executable is in
16418
darwin* | rhapsody*)
16419
dynamic_linker="$host_os dyld"
16420
version_type=darwin
16423
# FIXME: Relying on posixy $() will cause problems for
16424
# cross-compilation, but unfortunately the echo tests do not
16425
# yet detect zsh echo's removal of \ escapes.
16426
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16427
soname_spec='${libname}${release}${major}$shared_ext'
16428
shlibpath_overrides_runpath=yes
16429
shlibpath_var=DYLD_LIBRARY_PATH
16430
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16431
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16432
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16433
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"`
16435
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16442
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16443
soname_spec='${libname}${release}${shared_ext}$major'
16444
shlibpath_var=LD_LIBRARY_PATH
16452
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16453
version_type=freebsd-$objformat
16454
case $version_type in
16456
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16461
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16465
shlibpath_var=LD_LIBRARY_PATH
16468
shlibpath_overrides_runpath=yes
16470
freebsd3.01* | freebsdelf3.01*)
16471
shlibpath_overrides_runpath=yes
16472
hardcode_into_libs=yes
16475
shlibpath_overrides_runpath=no
16476
hardcode_into_libs=yes
16485
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16486
soname_spec='${libname}${release}${shared_ext}$major'
16487
shlibpath_var=LD_LIBRARY_PATH
16488
hardcode_into_libs=yes
16491
hpux9* | hpux10* | hpux11*)
16492
# Give a soname corresponding to the major version so that dld.sl refuses to
16493
# link against other versions.
16497
case "$host_cpu" in
16500
hardcode_into_libs=yes
16501
dynamic_linker="$host_os dld.so"
16502
shlibpath_var=LD_LIBRARY_PATH
16503
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16504
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16505
soname_spec='${libname}${release}${shared_ext}$major'
16506
if test "X$HPUX_IA64_MODE" = X32; then
16507
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16509
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16511
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16515
hardcode_into_libs=yes
16516
dynamic_linker="$host_os dld.sl"
16517
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16518
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16519
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16520
soname_spec='${libname}${release}${shared_ext}$major'
16521
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16522
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16526
dynamic_linker="$host_os dld.sl"
16527
shlibpath_var=SHLIB_PATH
16528
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16529
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16530
soname_spec='${libname}${release}${shared_ext}$major'
16533
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16534
postinstall_cmds='chmod 555 $lib'
16537
irix5* | irix6* | nonstopux*)
16539
nonstopux*) version_type=nonstopux ;;
16541
if test "$lt_cv_prog_gnu_ld" = yes; then
16549
soname_spec='${libname}${release}${shared_ext}$major'
16550
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16552
irix5* | nonstopux*)
16553
libsuff= shlibsuff=
16556
case $LD in # libtool.m4 will add one of these switches to LD
16557
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16558
libsuff= shlibsuff= libmagic=32-bit;;
16559
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16560
libsuff=32 shlibsuff=N32 libmagic=N32;;
16561
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16562
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16563
*) libsuff= shlibsuff= libmagic=never-match;;
16567
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16568
shlibpath_overrides_runpath=no
16569
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16570
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16571
hardcode_into_libs=yes
16574
# No shared lib support for Linux oldld, aout, or coff.
16575
linux*oldld* | linux*aout* | linux*coff*)
16579
# This must be Linux ELF.
16584
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16585
soname_spec='${libname}${release}${shared_ext}$major'
16586
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16587
shlibpath_var=LD_LIBRARY_PATH
16588
shlibpath_overrides_runpath=no
16589
# This implies no fast_install, which is unacceptable.
16590
# Some rework will be needed to allow for fast_install
16591
# before this can be enabled.
16592
hardcode_into_libs=yes
16594
# We used to test for /lib/ld.so.1 and disable shared libraries on
16595
# powerpc, because MkLinux only supported shared libraries with the
16596
# GNU dynamic linker. Since this was broken with cross compilers,
16597
# most powerpc-linux boxes support dynamic linking these days and
16598
# people can always --disable-shared, the test was removed, and we
16599
# assume the GNU/Linux dynamic linker is in use.
16600
dynamic_linker='GNU/Linux ld.so'
16607
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16608
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16609
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16610
dynamic_linker='NetBSD (a.out) ld.so'
16612
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16613
soname_spec='${libname}${release}${shared_ext}$major'
16614
dynamic_linker='NetBSD ld.elf_so'
16616
shlibpath_var=LD_LIBRARY_PATH
16617
shlibpath_overrides_runpath=yes
16618
hardcode_into_libs=yes
16623
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16624
shlibpath_var=LD_LIBRARY_PATH
16625
shlibpath_overrides_runpath=yes
16632
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16633
soname_spec='${libname}${release}${shared_ext}$major'
16634
shlibpath_var=LD_LIBRARY_PATH
16635
shlibpath_overrides_runpath=yes
16642
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16643
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16644
shlibpath_var=LD_LIBRARY_PATH
16645
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16647
openbsd2.[89] | openbsd2.[89].*)
16648
shlibpath_overrides_runpath=no
16651
shlibpath_overrides_runpath=yes
16655
shlibpath_overrides_runpath=yes
16660
libname_spec='$name'
16663
library_names_spec='$libname${shared_ext} $libname.a'
16664
dynamic_linker='OS/2 ld.exe'
16665
shlibpath_var=LIBPATH
16668
osf3* | osf4* | osf5*)
16672
soname_spec='${libname}${release}${shared_ext}$major'
16673
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16674
shlibpath_var=LD_LIBRARY_PATH
16675
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16676
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16681
soname_spec='${libname}${release}${shared_ext}$major'
16682
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16683
shlibpath_var=LD_LIBRARY_PATH
16690
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16691
soname_spec='${libname}${release}${shared_ext}$major'
16692
shlibpath_var=LD_LIBRARY_PATH
16693
shlibpath_overrides_runpath=yes
16694
hardcode_into_libs=yes
16695
# ldd complains unless libraries are executable
16696
postinstall_cmds='chmod +x $lib'
16701
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16702
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16703
shlibpath_var=LD_LIBRARY_PATH
16704
shlibpath_overrides_runpath=yes
16705
if test "$with_gnu_ld" = yes; then
16711
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16713
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16714
soname_spec='${libname}${release}${shared_ext}$major'
16715
shlibpath_var=LD_LIBRARY_PATH
16716
case $host_vendor in
16718
shlibpath_overrides_runpath=no
16720
export_dynamic_flag_spec='${wl}-Blargedynsym'
16721
runpath_var=LD_RUN_PATH
16729
shlibpath_overrides_runpath=no
16730
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16736
if test -d /usr/nec ;then
16738
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16739
soname_spec='$libname${shared_ext}.$major'
16740
shlibpath_var=LD_LIBRARY_PATH
16746
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16747
soname_spec='${libname}${release}${shared_ext}$major'
16748
shlibpath_var=LD_LIBRARY_PATH
16755
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16756
echo "${ECHO_T}$dynamic_linker" >&6
16757
test "$dynamic_linker" = no && can_build_shared=no
16760
# The else clause should only fire when bootstrapping the
16761
# libtool distribution, otherwise you forgot to ship ltmain.sh
16762
# with your package, and you will get complaints that there are
16763
# no rules to generate ltmain.sh.
16764
if test -f "$ltmain"; then
16765
# See if we are running on zsh, and set the options which allow our commands through
16766
# without removal of \ escapes.
16767
if test -n "${ZSH_VERSION+set}" ; then
16768
setopt NO_GLOB_SUBST
16770
# Now quote all the things that may contain metacharacters while being
16771
# careful not to overquote the AC_SUBSTed values. We take copies of the
16772
# variables and quote the copies for generation of the libtool script.
16773
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
16774
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16775
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16776
deplibs_check_method reload_flag reload_cmds need_locks \
16777
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16778
lt_cv_sys_global_symbol_to_c_name_address \
16779
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16780
old_postinstall_cmds old_postuninstall_cmds \
16784
lt_prog_compiler_wl_F77 \
16785
lt_prog_compiler_pic_F77 \
16786
lt_prog_compiler_static_F77 \
16787
lt_prog_compiler_no_builtin_flag_F77 \
16788
export_dynamic_flag_spec_F77 \
16789
thread_safe_flag_spec_F77 \
16790
whole_archive_flag_spec_F77 \
16791
enable_shared_with_static_runtimes_F77 \
16792
old_archive_cmds_F77 \
16793
old_archive_from_new_cmds_F77 \
16794
predep_objects_F77 \
16795
postdep_objects_F77 \
16798
compiler_lib_search_path_F77 \
16800
archive_expsym_cmds_F77 \
16801
postinstall_cmds_F77 \
16802
postuninstall_cmds_F77 \
16803
old_archive_from_expsyms_cmds_F77 \
16804
allow_undefined_flag_F77 \
16805
no_undefined_flag_F77 \
16806
export_symbols_cmds_F77 \
16807
hardcode_libdir_flag_spec_F77 \
16808
hardcode_libdir_flag_spec_ld_F77 \
16809
hardcode_libdir_separator_F77 \
16810
hardcode_automatic_F77 \
16812
module_expsym_cmds_F77 \
16813
lt_cv_prog_compiler_c_o_F77 \
16814
exclude_expsyms_F77 \
16815
include_expsyms_F77; do
16818
old_archive_cmds_F77 | \
16819
old_archive_from_new_cmds_F77 | \
16820
archive_cmds_F77 | \
16821
archive_expsym_cmds_F77 | \
16822
module_cmds_F77 | \
16823
module_expsym_cmds_F77 | \
16824
old_archive_from_expsyms_cmds_F77 | \
16825
export_symbols_cmds_F77 | \
16826
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16827
postinstall_cmds | postuninstall_cmds | \
16828
old_postinstall_cmds | old_postuninstall_cmds | \
16829
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16830
# Double-quote double-evaled strings.
16831
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16834
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16840
*'\$0 --fallback-echo"')
16841
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16847
cat <<__EOF__ >> "$cfgfile"
16848
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16850
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16852
# Shell to use when invoking shell scripts.
16855
# Whether or not to build shared libraries.
16856
build_libtool_libs=$enable_shared
16858
# Whether or not to build static libraries.
16859
build_old_libs=$enable_static
16861
# Whether or not to add -lc for building shared libraries.
16862
build_libtool_need_lc=$archive_cmds_need_lc_F77
16864
# Whether or not to disallow shared libs when runtime libs are static
16865
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16867
# Whether or not to optimize for fast installation.
16868
fast_install=$enable_fast_install
16871
host_alias=$host_alias
16874
# An echo program that does not interpret backslashes.
16879
AR_FLAGS=$lt_AR_FLAGS
16884
# A language-specific compiler.
16885
CC=$lt_compiler_F77
16887
# Is the compiler the GNU C compiler?
16893
# The linker used to build libraries.
16896
# Whether we need hard or soft links.
16899
# A BSD-compatible nm program.
16902
# A symbol stripping program
16905
# Used to examine libraries when file_magic_cmd begins "file"
16906
MAGIC_CMD=$MAGIC_CMD
16908
# Used on cygwin: DLL creation program.
16911
# Used on cygwin: object dumper.
16914
# Used on cygwin: assembler.
16917
# The name of the directory that contains temporary libtool files.
16920
# How to create reloadable object files.
16921
reload_flag=$lt_reload_flag
16922
reload_cmds=$lt_reload_cmds
16924
# How to pass a linker flag through the compiler.
16925
wl=$lt_lt_prog_compiler_wl_F77
16927
# Object file suffix (normally "o").
16928
objext="$ac_objext"
16930
# Old archive suffix (normally "a").
16933
# Shared library suffix (normally ".so").
16936
# Executable file suffix (normally "").
16939
# Additional compiler flags for building library objects.
16940
pic_flag=$lt_lt_prog_compiler_pic_F77
16943
# What is the maximum length of a command?
16944
max_cmd_len=$lt_cv_sys_max_cmd_len
16946
# Does compiler simultaneously support -c and -o options?
16947
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16949
# Must we lock files when doing compilation ?
16950
need_locks=$lt_need_locks
16952
# Do we need the lib prefix for modules?
16953
need_lib_prefix=$need_lib_prefix
16955
# Do we need a version for libraries?
16956
need_version=$need_version
16958
# Whether dlopen is supported.
16959
dlopen_support=$enable_dlopen
16961
# Whether dlopen of programs is supported.
16962
dlopen_self=$enable_dlopen_self
16964
# Whether dlopen of statically linked programs is supported.
16965
dlopen_self_static=$enable_dlopen_self_static
16967
# Compiler flag to prevent dynamic linking.
16968
link_static_flag=$lt_lt_prog_compiler_static_F77
16970
# Compiler flag to turn off builtin functions.
16971
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16973
# Compiler flag to allow reflexive dlopens.
16974
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16976
# Compiler flag to generate shared objects directly from archives.
16977
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16979
# Compiler flag to generate thread-safe objects.
16980
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16982
# Library versioning type.
16983
version_type=$version_type
16985
# Format of library name prefix.
16986
libname_spec=$lt_libname_spec
16988
# List of archive names. First name is the real one, the rest are links.
16989
# The last name is the one that the linker finds with -lNAME.
16990
library_names_spec=$lt_library_names_spec
16992
# The coded name of the library, if different from the real name.
16993
soname_spec=$lt_soname_spec
16995
# Commands used to build and install an old-style archive.
16997
old_archive_cmds=$lt_old_archive_cmds_F77
16998
old_postinstall_cmds=$lt_old_postinstall_cmds
16999
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17001
# Create an old-style archive from a shared archive.
17002
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17004
# Create a temporary old-style archive to link instead of a shared archive.
17005
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17007
# Commands used to build and install a shared archive.
17008
archive_cmds=$lt_archive_cmds_F77
17009
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17010
postinstall_cmds=$lt_postinstall_cmds
17011
postuninstall_cmds=$lt_postuninstall_cmds
17013
# Commands used to build a loadable module (assumed same as above if empty)
17014
module_cmds=$lt_module_cmds_F77
17015
module_expsym_cmds=$lt_module_expsym_cmds_F77
17017
# Commands to strip libraries.
17018
old_striplib=$lt_old_striplib
17019
striplib=$lt_striplib
17021
# Dependencies to place before the objects being linked to create a
17023
predep_objects=$lt_predep_objects_F77
17025
# Dependencies to place after the objects being linked to create a
17027
postdep_objects=$lt_postdep_objects_F77
17029
# Dependencies to place before the objects being linked to create a
17031
predeps=$lt_predeps_F77
17033
# Dependencies to place after the objects being linked to create a
17035
postdeps=$lt_postdeps_F77
17037
# The library search path used internally by the compiler when linking
17038
# a shared library.
17039
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17041
# Method to check whether dependent libraries are shared objects.
17042
deplibs_check_method=$lt_deplibs_check_method
17044
# Command to use when deplibs_check_method == file_magic.
17045
file_magic_cmd=$lt_file_magic_cmd
17047
# Flag that allows shared libraries with undefined symbols to be built.
17048
allow_undefined_flag=$lt_allow_undefined_flag_F77
17050
# Flag that forces no undefined symbols.
17051
no_undefined_flag=$lt_no_undefined_flag_F77
17053
# Commands used to finish a libtool library installation in a directory.
17054
finish_cmds=$lt_finish_cmds
17056
# Same as above, but a single script fragment to be evaled but not shown.
17057
finish_eval=$lt_finish_eval
17059
# Take the output of nm and produce a listing of raw symbols and C names.
17060
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17062
# Transform the output of nm in a proper C declaration
17063
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17065
# Transform the output of nm in a C name address pair
17066
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17068
# This is the shared library runtime path variable.
17069
runpath_var=$runpath_var
17071
# This is the shared library path variable.
17072
shlibpath_var=$shlibpath_var
17074
# Is shlibpath searched before the hard-coded library search path?
17075
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17077
# How to hardcode a shared library path into an executable.
17078
hardcode_action=$hardcode_action_F77
17080
# Whether we should hardcode library paths into libraries.
17081
hardcode_into_libs=$hardcode_into_libs
17083
# Flag to hardcode \$libdir into a binary during linking.
17084
# This must work even if \$libdir does not exist.
17085
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17087
# If ld is used when linking, flag to hardcode \$libdir into
17088
# a binary during linking. This must work even if \$libdir does
17090
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17092
# Whether we need a single -rpath flag with a separated argument.
17093
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17095
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17096
# resulting binary.
17097
hardcode_direct=$hardcode_direct_F77
17099
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17100
# resulting binary.
17101
hardcode_minus_L=$hardcode_minus_L_F77
17103
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17104
# the resulting binary.
17105
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17107
# Set to yes if building a shared library automatically hardcodes DIR into the library
17108
# and all subsequent libraries and executables linked against it.
17109
hardcode_automatic=$hardcode_automatic_F77
17111
# Variables whose values should be saved in libtool wrapper scripts and
17112
# restored at relink time.
17113
variables_saved_for_relink="$variables_saved_for_relink"
17115
# Whether libtool must link a program against all its dependency libraries.
17116
link_all_deplibs=$link_all_deplibs_F77
17118
# Compile-time system search path for libraries
17119
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17121
# Run-time system search path for libraries
17122
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17124
# Fix the shell variable \$srcfile for the compiler.
17125
fix_srcfile_path="$fix_srcfile_path_F77"
17127
# Set to yes if exported symbols are required.
17128
always_export_symbols=$always_export_symbols_F77
17130
# The commands to list exported symbols.
17131
export_symbols_cmds=$lt_export_symbols_cmds_F77
17133
# The commands to extract the exported symbol list from a shared archive.
17134
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17136
# Symbols that should not be listed in the preloaded symbols.
17137
exclude_expsyms=$lt_exclude_expsyms_F77
17139
# Symbols that must always be exported.
17140
include_expsyms=$lt_include_expsyms_F77
17142
# ### END LIBTOOL TAG CONFIG: $tagname
17148
# If there is no Makefile yet, we rely on a make rule to execute
17149
# `config.status --recheck' to rerun these tests and create the
17150
# libtool script then.
17151
test -f Makefile && make "$ltmain"
17156
ac_cpp='$CPP $CPPFLAGS'
17157
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17158
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17159
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17169
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17173
# Source file extension for Java test sources.
17176
# Object file extension for compiled Java test sources.
17180
# Code to be used in simple compile tests
17181
lt_simple_compile_test_code="class foo {}\n"
17183
# Code to be used in simple link tests
17184
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
17186
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17188
# If no C compiler was specified, use CC.
17191
# Allow CC to be a program name with arguments.
17195
# Allow CC to be a program name with arguments.
17201
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17202
archive_cmds_need_lc_GCJ=no
17205
## There is no encapsulation within the following macros, do not change
17206
## the running order or otherwise move them around unless you know exactly
17207
## what you are doing...
17209
lt_prog_compiler_no_builtin_flag_GCJ=
17211
if test "$GCC" = yes; then
17212
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17214
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17215
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17216
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17217
echo $ECHO_N "(cached) $ECHO_C" >&6
17219
lt_cv_prog_compiler_rtti_exceptions=no
17220
ac_outfile=conftest.$ac_objext
17221
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17222
lt_compiler_flag="-fno-rtti -fno-exceptions"
17223
# Insert the option either (1) after the last *FLAGS variable, or
17224
# (2) before a word containing "conftest.", or (3) at the end.
17225
# Note that $ac_compile itself does not contain backslashes and begins
17226
# with a dollar sign (not a hyphen), so the echo should work correctly.
17227
# The option is referenced via a variable to avoid confusing sed.
17228
lt_compile=`echo "$ac_compile" | $SED \
17229
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17230
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17231
-e 's:$: $lt_compiler_flag:'`
17232
(eval echo "\"\$as_me:17232: $lt_compile\"" >&5)
17233
(eval "$lt_compile" 2>conftest.err)
17235
cat conftest.err >&5
17236
echo "$as_me:17236: \$? = $ac_status" >&5
17237
if (exit $ac_status) && test -s "$ac_outfile"; then
17238
# The compiler can only warn and ignore the option if not recognized
17239
# So say no if there are warnings
17240
if test ! -s conftest.err; then
17241
lt_cv_prog_compiler_rtti_exceptions=yes
17247
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17248
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17250
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17251
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17258
lt_prog_compiler_wl_GCJ=
17259
lt_prog_compiler_pic_GCJ=
17260
lt_prog_compiler_static_GCJ=
17262
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17263
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17265
if test "$GCC" = yes; then
17266
lt_prog_compiler_wl_GCJ='-Wl,'
17267
lt_prog_compiler_static_GCJ='-static'
17271
# All AIX code is PIC.
17272
if test "$host_cpu" = ia64; then
17273
# AIX 5 now supports IA64 processor
17274
lt_prog_compiler_static_GCJ='-Bstatic'
17279
# FIXME: we need at least 68020 code to build shared libraries, but
17280
# adding the `-m68020' flag to GCC prevents building anything better,
17282
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17285
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17286
# PIC is the default for these OSes.
17289
mingw* | pw32* | os2*)
17290
# This hack is so that the source file can tell whether it is being
17291
# built for inclusion in a dll (and should export symbols for example).
17292
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17295
darwin* | rhapsody*)
17296
# PIC is the default on this platform
17297
# Common symbols not allowed in MH_DYLIB files
17298
lt_prog_compiler_pic_GCJ='-fno-common'
17302
# Just because we use GCC doesn't mean we suddenly get shared libraries
17303
# on systems that don't support them.
17304
lt_prog_compiler_can_build_shared_GCJ=no
17309
if test -d /usr/nec; then
17310
lt_prog_compiler_pic_GCJ=-Kconform_pic
17315
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17316
# not for PA HP-UX.
17317
case "$host_cpu" in
17322
lt_prog_compiler_pic_GCJ='-fPIC'
17328
lt_prog_compiler_pic_GCJ='-fPIC'
17332
# PORTME Check for flag to pass linker flags through the system compiler.
17335
lt_prog_compiler_wl_GCJ='-Wl,'
17336
if test "$host_cpu" = ia64; then
17337
# AIX 5 now supports IA64 processor
17338
lt_prog_compiler_static_GCJ='-Bstatic'
17340
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17344
mingw* | pw32* | os2*)
17345
# This hack is so that the source file can tell whether it is being
17346
# built for inclusion in a dll (and should export symbols for example).
17347
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17350
hpux9* | hpux10* | hpux11*)
17351
lt_prog_compiler_wl_GCJ='-Wl,'
17352
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17353
# not for PA HP-UX.
17354
case "$host_cpu" in
17359
lt_prog_compiler_pic_GCJ='+Z'
17362
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17363
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17366
irix5* | irix6* | nonstopux*)
17367
lt_prog_compiler_wl_GCJ='-Wl,'
17368
# PIC (with -KPIC) is the default.
17369
lt_prog_compiler_static_GCJ='-non_shared'
17373
lt_prog_compiler_pic_GCJ='-KPIC'
17374
lt_prog_compiler_static_GCJ='-Bstatic'
17380
lt_prog_compiler_wl_GCJ='-Wl,'
17381
lt_prog_compiler_pic_GCJ='-KPIC'
17382
lt_prog_compiler_static_GCJ='-static'
17385
lt_prog_compiler_wl_GCJ='-Wl,'
17386
# All Alpha code is PIC.
17387
lt_prog_compiler_static_GCJ='-non_shared'
17392
osf3* | osf4* | osf5*)
17393
lt_prog_compiler_wl_GCJ='-Wl,'
17394
# All OSF/1 code is PIC.
17395
lt_prog_compiler_static_GCJ='-non_shared'
17399
lt_prog_compiler_pic_GCJ='-Kpic'
17400
lt_prog_compiler_static_GCJ='-dn'
17404
lt_prog_compiler_wl_GCJ='-Wl,'
17405
lt_prog_compiler_pic_GCJ='-KPIC'
17406
lt_prog_compiler_static_GCJ='-Bstatic'
17410
lt_prog_compiler_wl_GCJ='-Qoption ld '
17411
lt_prog_compiler_pic_GCJ='-PIC'
17412
lt_prog_compiler_static_GCJ='-Bstatic'
17415
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17416
lt_prog_compiler_wl_GCJ='-Wl,'
17417
lt_prog_compiler_pic_GCJ='-KPIC'
17418
lt_prog_compiler_static_GCJ='-Bstatic'
17422
if test -d /usr/nec ;then
17423
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17424
lt_prog_compiler_static_GCJ='-Bstatic'
17429
lt_prog_compiler_pic_GCJ='-pic'
17430
lt_prog_compiler_static_GCJ='-Bstatic'
17434
lt_prog_compiler_can_build_shared_GCJ=no
17439
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17440
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17443
# Check to make sure the PIC flag actually works.
17445
if test -n "$lt_prog_compiler_pic_GCJ"; then
17446
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17447
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17448
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17449
echo $ECHO_N "(cached) $ECHO_C" >&6
17451
lt_prog_compiler_pic_works_GCJ=no
17452
ac_outfile=conftest.$ac_objext
17453
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17454
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17455
# Insert the option either (1) after the last *FLAGS variable, or
17456
# (2) before a word containing "conftest.", or (3) at the end.
17457
# Note that $ac_compile itself does not contain backslashes and begins
17458
# with a dollar sign (not a hyphen), so the echo should work correctly.
17459
# The option is referenced via a variable to avoid confusing sed.
17460
lt_compile=`echo "$ac_compile" | $SED \
17461
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17462
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17463
-e 's:$: $lt_compiler_flag:'`
17464
(eval echo "\"\$as_me:17464: $lt_compile\"" >&5)
17465
(eval "$lt_compile" 2>conftest.err)
17467
cat conftest.err >&5
17468
echo "$as_me:17468: \$? = $ac_status" >&5
17469
if (exit $ac_status) && test -s "$ac_outfile"; then
17470
# The compiler can only warn and ignore the option if not recognized
17471
# So say no if there are warnings
17472
if test ! -s conftest.err; then
17473
lt_prog_compiler_pic_works_GCJ=yes
17479
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17480
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17482
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17483
case $lt_prog_compiler_pic_GCJ in
17485
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17488
lt_prog_compiler_pic_GCJ=
17489
lt_prog_compiler_can_build_shared_GCJ=no
17494
# For platforms which do not support PIC, -DPIC is meaningless:
17496
lt_prog_compiler_pic_GCJ=
17499
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17503
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17504
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17505
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17506
echo $ECHO_N "(cached) $ECHO_C" >&6
17508
lt_cv_prog_compiler_c_o_GCJ=no
17509
$rm -r conftest 2>/dev/null
17513
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17515
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
17516
# that will create temporary files in the current directory regardless of
17517
# the output directory. Thus, making CWD read-only will cause this test
17518
# to fail, enabling locking or at least warning the user not to do parallel
17522
lt_compiler_flag="-o out/conftest2.$ac_objext"
17523
# Insert the option either (1) after the last *FLAGS variable, or
17524
# (2) before a word containing "conftest.", or (3) at the end.
17525
# Note that $ac_compile itself does not contain backslashes and begins
17526
# with a dollar sign (not a hyphen), so the echo should work correctly.
17527
lt_compile=`echo "$ac_compile" | $SED \
17528
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17529
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17530
-e 's:$: $lt_compiler_flag:'`
17531
(eval echo "\"\$as_me:17531: $lt_compile\"" >&5)
17532
(eval "$lt_compile" 2>out/conftest.err)
17534
cat out/conftest.err >&5
17535
echo "$as_me:17535: \$? = $ac_status" >&5
17536
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17538
# The compiler can only warn and ignore the option if not recognized
17539
# So say no if there are warnings
17540
if test ! -s out/conftest.err; then
17541
lt_cv_prog_compiler_c_o_GCJ=yes
17545
$rm conftest* out/*
17552
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17553
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17556
hard_links="nottested"
17557
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17558
# do not overwrite the value of need_locks provided by the user
17559
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17560
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17563
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17565
ln conftest.a conftest.b 2>&5 || hard_links=no
17566
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17567
echo "$as_me:$LINENO: result: $hard_links" >&5
17568
echo "${ECHO_T}$hard_links" >&6
17569
if test "$hard_links" = no; then
17570
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17571
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17578
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17579
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17582
allow_undefined_flag_GCJ=
17583
enable_shared_with_static_runtimes_GCJ=no
17585
archive_expsym_cmds_GCJ=
17586
old_archive_From_new_cmds_GCJ=
17587
old_archive_from_expsyms_cmds_GCJ=
17588
export_dynamic_flag_spec_GCJ=
17589
whole_archive_flag_spec_GCJ=
17590
thread_safe_flag_spec_GCJ=
17591
hardcode_libdir_flag_spec_GCJ=
17592
hardcode_libdir_flag_spec_ld_GCJ=
17593
hardcode_libdir_separator_GCJ=
17594
hardcode_direct_GCJ=no
17595
hardcode_minus_L_GCJ=no
17596
hardcode_shlibpath_var_GCJ=unsupported
17597
link_all_deplibs_GCJ=unknown
17598
hardcode_automatic_GCJ=no
17600
module_expsym_cmds_GCJ=
17601
always_export_symbols_GCJ=no
17602
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17603
# include_expsyms should be a list of space-separated symbols to be *always*
17604
# included in the symbol list
17605
include_expsyms_GCJ=
17606
# exclude_expsyms can be an extended regexp of symbols to exclude
17607
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17608
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17609
# as well as any symbol that contains `d'.
17610
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17611
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17612
# platforms (ab)use it in PIC code, but their linkers get confused if
17613
# the symbol is explicitly referenced. Since portable code cannot
17614
# rely on this symbol name, it's probably fine to never include it in
17615
# preloaded symbol tables.
17616
extract_expsyms_cmds=
17619
cygwin* | mingw* | pw32*)
17620
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17621
# When not using gcc, we currently assume that we are using
17622
# Microsoft Visual C++.
17623
if test "$GCC" != yes; then
17633
if test "$with_gnu_ld" = yes; then
17634
# If archive_cmds runs LD, not CC, wlarc should be empty
17637
# See if GNU ld supports shared libraries.
17639
aix3* | aix4* | aix5*)
17640
# On AIX/PPC, the GNU linker is very broken
17641
if test "$host_cpu" != ia64; then
17645
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17646
*** to be unable to reliably create shared libraries on AIX.
17647
*** Therefore, libtool is disabling shared libraries support. If you
17648
*** really care for shared libraries, you may want to modify your PATH
17649
*** so that a non-GNU linker is found, and then restart.
17656
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)'
17657
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17658
hardcode_minus_L_GCJ=yes
17660
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17661
# that the semantics of dynamic libraries on AmigaOS, at least up
17662
# to version 4, is to share data among multiple programs linked
17663
# with the same dynamic library. Since this doesn't match the
17664
# behavior of shared libraries on other platforms, we can't use
17670
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17671
allow_undefined_flag_GCJ=unsupported
17672
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17673
# support --undefined. This deserves some investigation. FIXME
17674
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17680
cygwin* | mingw* | pw32*)
17681
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17682
# as there is no search path for DLLs.
17683
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17684
allow_undefined_flag_GCJ=unsupported
17685
always_export_symbols_GCJ=no
17686
enable_shared_with_static_runtimes_GCJ=yes
17687
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17689
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17690
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
17691
# If the export-symbols file already is a .def file (1st line
17692
# is EXPORTS), use it as is; otherwise, prepend...
17693
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17694
cp $export_symbols $output_objdir/$soname.def;
17696
echo EXPORTS > $output_objdir/$soname.def;
17697
cat $export_symbols >> $output_objdir/$soname.def;
17699
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
17706
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17707
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17710
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17711
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17716
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17720
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17721
*** create shared libraries on Solaris systems. Therefore, libtool
17722
*** is disabling shared libraries support. We urge you to upgrade GNU
17723
*** binutils to release 2.9.1 or newer. Another option is to modify
17724
*** your PATH or compiler configuration so that the native linker is
17725
*** used, and then restart.
17728
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17729
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17730
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17737
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17739
hardcode_direct_GCJ=yes
17740
hardcode_shlibpath_var_GCJ=no
17744
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17745
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17746
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17753
if test "$ld_shlibs_GCJ" = yes; then
17754
runpath_var=LD_RUN_PATH
17755
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17756
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17757
# ancient GNU ld didn't support --whole-archive et. al.
17758
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17759
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17761
whole_archive_flag_spec_GCJ=
17765
# PORTME fill in a description of your system's linker (not GNU ld)
17768
allow_undefined_flag_GCJ=unsupported
17769
always_export_symbols_GCJ=yes
17770
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'
17771
# Note: this linker hardcodes the directories in LIBPATH if there
17772
# are no directories specified by -L.
17773
hardcode_minus_L_GCJ=yes
17774
if test "$GCC" = yes && test -z "$link_static_flag"; then
17775
# Neither direct hardcoding nor static linking is supported with a
17777
hardcode_direct_GCJ=unsupported
17782
if test "$host_cpu" = ia64; then
17783
# On IA64, the linker does run time linking by default, so we don't
17784
# have to do anything special.
17785
aix_use_runtimelinking=no
17786
exp_sym_flag='-Bexport'
17789
# If we're using GNU nm, then we don't want the "-C" option.
17790
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17791
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17792
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'
17794
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'
17796
aix_use_runtimelinking=no
17798
# Test if we are trying to use run time linking or normal
17799
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17800
# need to do runtime linking.
17801
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17802
for ld_flag in $LDFLAGS; do
17803
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17804
aix_use_runtimelinking=yes
17810
exp_sym_flag='-bexport'
17811
no_entry_flag='-bnoentry'
17814
# When large executables or shared objects are built, AIX ld can
17815
# have problems creating the table of contents. If linking a library
17816
# or program results in "error TOC overflow" add -mminimal-toc to
17817
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17818
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17820
archive_cmds_GCJ=''
17821
hardcode_direct_GCJ=yes
17822
hardcode_libdir_separator_GCJ=':'
17823
link_all_deplibs_GCJ=yes
17825
if test "$GCC" = yes; then
17826
case $host_os in aix4.012|aix4.012.*)
17827
# We only want to do this on AIX 4.2 and lower, the check
17828
# below for broken collect2 doesn't work under 4.3+
17829
collect2name=`${CC} -print-prog-name=collect2`
17830
if test -f "$collect2name" && \
17831
strings "$collect2name" | grep resolve_lib_name >/dev/null
17833
# We have reworked collect2
17834
hardcode_direct_GCJ=yes
17836
# We have old collect2
17837
hardcode_direct_GCJ=unsupported
17838
# It fails to find uninstalled libraries when the uninstalled
17839
# path is not listed in the libpath. Setting hardcode_minus_L
17840
# to unsupported forces relinking
17841
hardcode_minus_L_GCJ=yes
17842
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17843
hardcode_libdir_separator_GCJ=
17846
shared_flag='-shared'
17849
if test "$host_cpu" = ia64; then
17850
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17851
# chokes on -Wl,-G. The following line is correct:
17854
if test "$aix_use_runtimelinking" = yes; then
17855
shared_flag='${wl}-G'
17857
shared_flag='${wl}-bM:SRE'
17862
# It seems that -bexpall does not export symbols beginning with
17863
# underscore (_), so it is better to generate a list of symbols to export.
17864
always_export_symbols_GCJ=yes
17865
if test "$aix_use_runtimelinking" = yes; then
17866
# Warning - without using the other runtime loading flags (-brtl),
17867
# -berok will link without error, but may produce a broken library.
17868
allow_undefined_flag_GCJ='-berok'
17869
# Determine the default libpath from the value encoded in an empty executable.
17870
cat >conftest.$ac_ext <<_ACEOF
17873
cat confdefs.h >>conftest.$ac_ext
17874
cat >>conftest.$ac_ext <<_ACEOF
17875
/* end confdefs.h. */
17885
rm -f conftest.$ac_objext conftest$ac_exeext
17886
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17887
(eval $ac_link) 2>conftest.er1
17889
grep -v '^ *+' conftest.er1 >conftest.err
17891
cat conftest.err >&5
17892
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893
(exit $ac_status); } &&
17894
{ ac_try='test -z "$ac_c_werror_flag"
17895
|| test ! -s conftest.err'
17896
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17897
(eval $ac_try) 2>&5
17899
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900
(exit $ac_status); }; } &&
17901
{ ac_try='test -s conftest$ac_exeext'
17902
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17903
(eval $ac_try) 2>&5
17905
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906
(exit $ac_status); }; }; then
17908
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17910
# Check for a 64-bit object if we didn't find anything.
17911
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; }
17914
echo "$as_me: failed program was:" >&5
17915
sed 's/^/| /' conftest.$ac_ext >&5
17918
rm -f conftest.err conftest.$ac_objext \
17919
conftest$ac_exeext conftest.$ac_ext
17920
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17922
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17923
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"
17925
if test "$host_cpu" = ia64; then
17926
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17927
allow_undefined_flag_GCJ="-z nodefs"
17928
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"
17930
# Determine the default libpath from the value encoded in an empty executable.
17931
cat >conftest.$ac_ext <<_ACEOF
17934
cat confdefs.h >>conftest.$ac_ext
17935
cat >>conftest.$ac_ext <<_ACEOF
17936
/* end confdefs.h. */
17946
rm -f conftest.$ac_objext conftest$ac_exeext
17947
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17948
(eval $ac_link) 2>conftest.er1
17950
grep -v '^ *+' conftest.er1 >conftest.err
17952
cat conftest.err >&5
17953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954
(exit $ac_status); } &&
17955
{ ac_try='test -z "$ac_c_werror_flag"
17956
|| test ! -s conftest.err'
17957
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17958
(eval $ac_try) 2>&5
17960
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961
(exit $ac_status); }; } &&
17962
{ ac_try='test -s conftest$ac_exeext'
17963
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964
(eval $ac_try) 2>&5
17966
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967
(exit $ac_status); }; }; then
17969
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17971
# Check for a 64-bit object if we didn't find anything.
17972
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; }
17975
echo "$as_me: failed program was:" >&5
17976
sed 's/^/| /' conftest.$ac_ext >&5
17979
rm -f conftest.err conftest.$ac_objext \
17980
conftest$ac_exeext conftest.$ac_ext
17981
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17983
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17984
# Warning - without using the other run time loading flags,
17985
# -berok will link without error, but may produce a broken library.
17986
no_undefined_flag_GCJ=' ${wl}-bernotok'
17987
allow_undefined_flag_GCJ=' ${wl}-berok'
17988
# -bexpall does not export symbols beginning with underscore (_)
17989
always_export_symbols_GCJ=yes
17990
# Exported symbols can be pulled into shared objects from archives
17991
whole_archive_flag_spec_GCJ=' '
17992
archive_cmds_need_lc_GCJ=yes
17993
# This is similar to how AIX traditionally builds it's shared libraries.
17994
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'
18000
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)'
18001
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18002
hardcode_minus_L_GCJ=yes
18003
# see comment about different semantics on the GNU ld section
18008
export_dynamic_flag_spec_GCJ=-rdynamic
18011
cygwin* | mingw* | pw32*)
18012
# When not using gcc, we currently assume that we are using
18013
# Microsoft Visual C++.
18014
# hardcode_libdir_flag_spec is actually meaningless, as there is
18015
# no search path for DLLs.
18016
hardcode_libdir_flag_spec_GCJ=' '
18017
allow_undefined_flag_GCJ=unsupported
18018
# Tell ltmain to make .lib files, not .a files.
18020
# Tell ltmain to make .dll files, not .so files.
18022
# FIXME: Setting linknames here is a bad hack.
18023
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18024
# The linker will automatically build a .lib file if we build a DLL.
18025
old_archive_From_new_cmds_GCJ='true'
18026
# FIXME: Should let the user specify the lib program.
18027
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18028
fix_srcfile_path='`cygpath -w "$srcfile"`'
18029
enable_shared_with_static_runtimes_GCJ=yes
18032
darwin* | rhapsody*)
18033
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
18034
archive_cmds_need_lc_GCJ=no
18036
rhapsody* | darwin1.[012])
18037
allow_undefined_flag_GCJ='-undefined suppress'
18040
test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
18043
# FIXME: Relying on posixy $() will cause problems for
18044
# cross-compilation, but unfortunately the echo tests do not
18045
# yet detect zsh echo's removal of \ escapes. Also zsh mangles
18046
# `"' quotes if we put them in here... so don't!
18047
lt_int_apple_cc_single_mod=no
18048
output_verbose_link_cmd='echo'
18049
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
18050
lt_int_apple_cc_single_mod=yes
18052
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18053
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18055
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'
18057
module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
18058
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18059
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18060
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}'
18062
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}'
18064
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18065
hardcode_direct_GCJ=no
18066
hardcode_automatic_GCJ=yes
18067
hardcode_shlibpath_var_GCJ=unsupported
18068
whole_archive_flag_spec_GCJ='-all_load $convenience'
18069
link_all_deplibs_GCJ=yes
18074
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18075
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18076
hardcode_shlibpath_var_GCJ=no
18083
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18084
# support. Future versions do this automatically, but an explicit c++rt0.o
18085
# does not break anything, and helps significantly (at the cost of a little
18088
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18089
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18090
hardcode_direct_GCJ=yes
18091
hardcode_shlibpath_var_GCJ=no
18094
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
18096
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18097
hardcode_direct_GCJ=yes
18098
hardcode_minus_L_GCJ=yes
18099
hardcode_shlibpath_var_GCJ=no
18102
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18104
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18105
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18106
hardcode_direct_GCJ=yes
18107
hardcode_shlibpath_var_GCJ=no
18111
if test "$GCC" = yes; then
18112
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'
18114
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'
18116
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18117
hardcode_libdir_separator_GCJ=:
18118
hardcode_direct_GCJ=yes
18120
# hardcode_minus_L: Not really in the search PATH,
18121
# but as the default location of the library.
18122
hardcode_minus_L_GCJ=yes
18123
export_dynamic_flag_spec_GCJ='${wl}-E'
18127
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18128
case "$host_cpu" in
18130
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18133
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18137
case "$host_cpu" in
18139
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18142
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18146
if test "$with_gnu_ld" = no; then
18147
case "$host_cpu" in
18149
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18150
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18151
hardcode_libdir_separator_GCJ=:
18152
hardcode_direct_GCJ=no
18153
hardcode_shlibpath_var_GCJ=no
18156
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18157
hardcode_direct_GCJ=no
18158
hardcode_shlibpath_var_GCJ=no
18160
# hardcode_minus_L: Not really in the search PATH,
18161
# but as the default location of the library.
18162
hardcode_minus_L_GCJ=yes
18165
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18166
hardcode_libdir_separator_GCJ=:
18167
hardcode_direct_GCJ=yes
18168
export_dynamic_flag_spec_GCJ='${wl}-E'
18170
# hardcode_minus_L: Not really in the search PATH,
18171
# but as the default location of the library.
18172
hardcode_minus_L_GCJ=yes
18178
irix5* | irix6* | nonstopux*)
18179
if test "$GCC" = yes; then
18180
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'
18182
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'
18183
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18185
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18186
hardcode_libdir_separator_GCJ=:
18187
link_all_deplibs_GCJ=yes
18191
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18192
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18194
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18196
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18197
hardcode_direct_GCJ=yes
18198
hardcode_shlibpath_var_GCJ=no
18202
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18203
hardcode_direct_GCJ=yes
18204
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18205
hardcode_libdir_separator_GCJ=:
18206
hardcode_shlibpath_var_GCJ=no
18210
hardcode_direct_GCJ=yes
18211
hardcode_shlibpath_var_GCJ=no
18212
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18213
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18214
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18215
export_dynamic_flag_spec_GCJ='${wl}-E'
18218
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18219
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18220
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18223
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18224
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18231
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18232
hardcode_minus_L_GCJ=yes
18233
allow_undefined_flag_GCJ=unsupported
18234
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'
18235
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18239
if test "$GCC" = yes; then
18240
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18241
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'
18243
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18244
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'
18246
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18247
hardcode_libdir_separator_GCJ=:
18250
osf4* | osf5*) # as osf3* with the addition of -msym flag
18251
if test "$GCC" = yes; then
18252
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18253
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'
18254
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18256
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18257
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'
18258
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~
18259
$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'
18261
# Both c and cxx compiler support -rpath directly
18262
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18264
hardcode_libdir_separator_GCJ=:
18268
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18269
hardcode_shlibpath_var_GCJ=no
18270
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18271
runpath_var=LD_RUN_PATH
18272
hardcode_runpath_var=yes
18276
no_undefined_flag_GCJ=' -z text'
18277
if test "$GCC" = yes; then
18278
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18279
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18280
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18282
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18283
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18284
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18286
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18287
hardcode_shlibpath_var_GCJ=no
18289
solaris2.[0-5] | solaris2.[0-5].*) ;;
18290
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
18291
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18293
link_all_deplibs_GCJ=yes
18297
if test "x$host_vendor" = xsequent; then
18298
# Use $CC to link under sequent, because it throws in some extra .o
18299
# files that make .init and .fini sections work.
18300
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18302
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18304
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18305
hardcode_direct_GCJ=yes
18306
hardcode_minus_L_GCJ=yes
18307
hardcode_shlibpath_var_GCJ=no
18311
case $host_vendor in
18313
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18314
hardcode_direct_GCJ=yes # is this really true???
18317
## LD is ld it makes a PLAMLIB
18318
## CC just makes a GrossModule.
18319
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18320
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18321
hardcode_direct_GCJ=no
18324
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18325
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18328
runpath_var='LD_RUN_PATH'
18329
hardcode_shlibpath_var_GCJ=no
18333
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18334
hardcode_shlibpath_var_GCJ=no
18335
export_dynamic_flag_spec_GCJ='-Bexport'
18339
if test -d /usr/nec; then
18340
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18341
hardcode_shlibpath_var_GCJ=no
18342
runpath_var=LD_RUN_PATH
18343
hardcode_runpath_var=yes
18349
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18350
hardcode_direct_GCJ=yes
18351
hardcode_minus_L_GCJ=no
18352
hardcode_shlibpath_var_GCJ=no
18353
hardcode_runpath_var=yes
18354
runpath_var=LD_RUN_PATH
18357
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18358
no_undefined_flag_GCJ='${wl}-z ${wl}text'
18359
if test "$GCC" = yes; then
18360
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18362
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18364
runpath_var='LD_RUN_PATH'
18365
hardcode_shlibpath_var_GCJ=no
18369
no_undefined_flag_GCJ=' -z text'
18370
# $CC -shared without GNU ld will not create a library from C++
18371
# object files and a static libstdc++, better avoid it by now
18372
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18373
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18374
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18375
hardcode_libdir_flag_spec_GCJ=
18376
hardcode_shlibpath_var_GCJ=no
18377
runpath_var='LD_RUN_PATH'
18381
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18382
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18383
hardcode_shlibpath_var_GCJ=no
18392
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18393
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18394
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18396
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18397
if test "$GCC" = yes; then
18398
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18402
# Do we need to explicitly link libc?
18404
case "x$archive_cmds_need_lc_GCJ" in
18406
# Assume -lc should be added
18407
archive_cmds_need_lc_GCJ=yes
18409
if test "$enable_shared" = yes && test "$GCC" = yes; then
18410
case $archive_cmds_GCJ in
18412
# FIXME: we may have to deal with multi-command sequences.
18415
# Test whether the compiler implicitly links with -lc since on some
18416
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18417
# to ld, don't add -lc before -lgcc.
18418
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18419
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18421
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18423
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18424
(eval $ac_compile) 2>&5
18426
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427
(exit $ac_status); } 2>conftest.err; then
18430
libobjs=conftest.$ac_objext
18432
wl=$lt_prog_compiler_wl_GCJ
18438
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18439
allow_undefined_flag_GCJ=
18440
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18441
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18443
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444
(exit $ac_status); }
18446
archive_cmds_need_lc_GCJ=no
18448
archive_cmds_need_lc_GCJ=yes
18450
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18452
cat conftest.err 1>&5
18455
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18456
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18463
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18464
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18465
hardcode_action_GCJ=
18466
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18467
test -n "$runpath_var GCJ" || \
18468
test "X$hardcode_automatic_GCJ"="Xyes" ; then
18470
# We can hardcode non-existant directories.
18471
if test "$hardcode_direct_GCJ" != no &&
18472
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18473
# have to relink, otherwise we might link with an installed library
18474
# when we should be linking with a yet-to-be-installed one
18475
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18476
test "$hardcode_minus_L_GCJ" != no; then
18477
# Linking always hardcodes the temporary library directory.
18478
hardcode_action_GCJ=relink
18480
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18481
hardcode_action_GCJ=immediate
18484
# We cannot hardcode anything, or else we can only hardcode existing
18486
hardcode_action_GCJ=unsupported
18488
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18489
echo "${ECHO_T}$hardcode_action_GCJ" >&6
18491
if test "$hardcode_action_GCJ" = relink; then
18492
# Fast installation is not supported
18493
enable_fast_install=no
18494
elif test "$shlibpath_overrides_runpath" = yes ||
18495
test "$enable_shared" = no; then
18496
# Fast installation is not necessary
18497
enable_fast_install=needless
18502
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18503
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18504
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18505
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18506
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18507
echo "$as_me:$LINENO: result: yes" >&5
18508
echo "${ECHO_T}yes" >&6
18510
# FIXME - insert some real tests, host_os isn't really good enough
18513
if test -n "$STRIP" ; then
18514
striplib="$STRIP -x"
18515
echo "$as_me:$LINENO: result: yes" >&5
18516
echo "${ECHO_T}yes" >&6
18518
echo "$as_me:$LINENO: result: no" >&5
18519
echo "${ECHO_T}no" >&6
18523
echo "$as_me:$LINENO: result: no" >&5
18524
echo "${ECHO_T}no" >&6
18529
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18530
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18531
library_names_spec=
18532
libname_spec='lib$name'
18536
postuninstall_cmds=
18540
shlibpath_overrides_runpath=unknown
18542
dynamic_linker="$host_os ld.so"
18543
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18544
if test "$GCC" = yes; then
18545
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18546
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18547
# if the path contains ";" then we assume it to be the separator
18548
# otherwise default to the standard path separator (i.e. ":") - it is
18549
# assumed that no part of a normal pathname contains ";" but that should
18550
# okay in the real world where ";" in dirpaths is itself problematic.
18551
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18553
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18556
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18558
need_lib_prefix=unknown
18559
hardcode_into_libs=no
18561
# when you set need_version to no, make sure it does not cause -set_version
18562
# flags to be left without arguments
18563
need_version=unknown
18568
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18569
shlibpath_var=LIBPATH
18571
# AIX 3 has no versioning support, so we append a major version to the name.
18572
soname_spec='${libname}${release}${shared_ext}$major'
18579
hardcode_into_libs=yes
18580
if test "$host_cpu" = ia64; then
18581
# AIX 5 supports IA64
18582
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18583
shlibpath_var=LD_LIBRARY_PATH
18585
# With GCC up to 2.95.x, collect2 would create an import file
18586
# for dependence libraries. The import file would start with
18587
# the line `#! .'. This would cause the generated library to
18588
# depend on `.', always an invalid library. This was fixed in
18589
# development snapshots of GCC prior to 3.0.
18591
aix4 | aix4.[01] | aix4.[01].*)
18592
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18594
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18597
can_build_shared=no
18601
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18602
# soname into executable. Probably we can add versioning support to
18603
# collect2, so additional links can be useful in future.
18604
if test "$aix_use_runtimelinking" = yes; then
18605
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18606
# instead of lib<name>.a to let people know that these are not
18607
# typical AIX shared libraries.
18608
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18610
# We preserve .a as extension for shared libraries through AIX4.2
18611
# and later when we are not doing run time linking.
18612
library_names_spec='${libname}${release}.a $libname.a'
18613
soname_spec='${libname}${release}${shared_ext}$major'
18615
shlibpath_var=LIBPATH
18620
library_names_spec='$libname.ixlibrary $libname.a'
18621
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18622
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'
18626
library_names_spec='${libname}${shared_ext}'
18627
dynamic_linker="$host_os ld.so"
18628
shlibpath_var=LIBRARY_PATH
18634
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18635
soname_spec='${libname}${release}${shared_ext}$major'
18636
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18637
shlibpath_var=LD_LIBRARY_PATH
18638
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18639
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18640
# the default ld.so.conf also contains /usr/contrib/lib and
18641
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18642
# libtool to hard-code these into programs
18645
cygwin* | mingw* | pw32*)
18646
version_type=windows
18651
case $GCC,$host_os in
18652
yes,cygwin* | yes,mingw* | yes,pw32*)
18653
library_names_spec='$libname.dll.a'
18654
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18655
postinstall_cmds='base_file=`basename \${file}`~
18656
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18657
dldir=$destdir/`dirname \$dlpath`~
18658
test -d \$dldir || mkdir -p \$dldir~
18659
$install_prog $dir/$dlname \$dldir/$dlname'
18660
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18661
dlpath=$dir/\$dldll~
18663
shlibpath_overrides_runpath=yes
18667
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18668
#soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
18669
soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
18670
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18673
# MinGW DLLs use traditional 'lib' prefix
18674
#soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
18675
soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
18676
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18677
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18678
# It is most probably a Windows format PATH printed by
18679
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18680
# path with ; separators, and with drive letters. We can handle the
18681
# drive letters (cygwin fileutils understands them), so leave them,
18682
# especially as we might pass files found there to a mingw objdump,
18683
# which wouldn't understand a cygwinified path. Ahh.
18684
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18686
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18690
# pw32 DLLs use 'pw' prefix rather than 'lib'
18691
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18697
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18700
dynamic_linker='Win32 ld.exe'
18701
# FIXME: first we should search . and the directory the executable is in
18705
darwin* | rhapsody*)
18706
dynamic_linker="$host_os dyld"
18707
version_type=darwin
18710
# FIXME: Relying on posixy $() will cause problems for
18711
# cross-compilation, but unfortunately the echo tests do not
18712
# yet detect zsh echo's removal of \ escapes.
18713
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18714
soname_spec='${libname}${release}${major}$shared_ext'
18715
shlibpath_overrides_runpath=yes
18716
shlibpath_var=DYLD_LIBRARY_PATH
18717
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
18718
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18719
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
18720
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"`
18722
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18729
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18730
soname_spec='${libname}${release}${shared_ext}$major'
18731
shlibpath_var=LD_LIBRARY_PATH
18739
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18740
version_type=freebsd-$objformat
18741
case $version_type in
18743
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18748
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18752
shlibpath_var=LD_LIBRARY_PATH
18755
shlibpath_overrides_runpath=yes
18757
freebsd3.01* | freebsdelf3.01*)
18758
shlibpath_overrides_runpath=yes
18759
hardcode_into_libs=yes
18762
shlibpath_overrides_runpath=no
18763
hardcode_into_libs=yes
18772
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18773
soname_spec='${libname}${release}${shared_ext}$major'
18774
shlibpath_var=LD_LIBRARY_PATH
18775
hardcode_into_libs=yes
18778
hpux9* | hpux10* | hpux11*)
18779
# Give a soname corresponding to the major version so that dld.sl refuses to
18780
# link against other versions.
18784
case "$host_cpu" in
18787
hardcode_into_libs=yes
18788
dynamic_linker="$host_os dld.so"
18789
shlibpath_var=LD_LIBRARY_PATH
18790
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18791
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18792
soname_spec='${libname}${release}${shared_ext}$major'
18793
if test "X$HPUX_IA64_MODE" = X32; then
18794
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18796
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18798
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18802
hardcode_into_libs=yes
18803
dynamic_linker="$host_os dld.sl"
18804
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18805
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18806
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18807
soname_spec='${libname}${release}${shared_ext}$major'
18808
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18809
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18813
dynamic_linker="$host_os dld.sl"
18814
shlibpath_var=SHLIB_PATH
18815
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18816
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18817
soname_spec='${libname}${release}${shared_ext}$major'
18820
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18821
postinstall_cmds='chmod 555 $lib'
18824
irix5* | irix6* | nonstopux*)
18826
nonstopux*) version_type=nonstopux ;;
18828
if test "$lt_cv_prog_gnu_ld" = yes; then
18836
soname_spec='${libname}${release}${shared_ext}$major'
18837
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18839
irix5* | nonstopux*)
18840
libsuff= shlibsuff=
18843
case $LD in # libtool.m4 will add one of these switches to LD
18844
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18845
libsuff= shlibsuff= libmagic=32-bit;;
18846
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18847
libsuff=32 shlibsuff=N32 libmagic=N32;;
18848
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18849
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18850
*) libsuff= shlibsuff= libmagic=never-match;;
18854
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18855
shlibpath_overrides_runpath=no
18856
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18857
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18858
hardcode_into_libs=yes
18861
# No shared lib support for Linux oldld, aout, or coff.
18862
linux*oldld* | linux*aout* | linux*coff*)
18866
# This must be Linux ELF.
18871
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18872
soname_spec='${libname}${release}${shared_ext}$major'
18873
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18874
shlibpath_var=LD_LIBRARY_PATH
18875
shlibpath_overrides_runpath=no
18876
# This implies no fast_install, which is unacceptable.
18877
# Some rework will be needed to allow for fast_install
18878
# before this can be enabled.
18879
hardcode_into_libs=yes
18881
# We used to test for /lib/ld.so.1 and disable shared libraries on
18882
# powerpc, because MkLinux only supported shared libraries with the
18883
# GNU dynamic linker. Since this was broken with cross compilers,
18884
# most powerpc-linux boxes support dynamic linking these days and
18885
# people can always --disable-shared, the test was removed, and we
18886
# assume the GNU/Linux dynamic linker is in use.
18887
dynamic_linker='GNU/Linux ld.so'
18894
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18895
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18896
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18897
dynamic_linker='NetBSD (a.out) ld.so'
18899
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
18900
soname_spec='${libname}${release}${shared_ext}$major'
18901
dynamic_linker='NetBSD ld.elf_so'
18903
shlibpath_var=LD_LIBRARY_PATH
18904
shlibpath_overrides_runpath=yes
18905
hardcode_into_libs=yes
18910
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18911
shlibpath_var=LD_LIBRARY_PATH
18912
shlibpath_overrides_runpath=yes
18919
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18920
soname_spec='${libname}${release}${shared_ext}$major'
18921
shlibpath_var=LD_LIBRARY_PATH
18922
shlibpath_overrides_runpath=yes
18929
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18930
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18931
shlibpath_var=LD_LIBRARY_PATH
18932
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18934
openbsd2.[89] | openbsd2.[89].*)
18935
shlibpath_overrides_runpath=no
18938
shlibpath_overrides_runpath=yes
18942
shlibpath_overrides_runpath=yes
18947
libname_spec='$name'
18950
library_names_spec='$libname${shared_ext} $libname.a'
18951
dynamic_linker='OS/2 ld.exe'
18952
shlibpath_var=LIBPATH
18955
osf3* | osf4* | osf5*)
18959
soname_spec='${libname}${release}${shared_ext}$major'
18960
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18961
shlibpath_var=LD_LIBRARY_PATH
18962
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18963
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18968
soname_spec='${libname}${release}${shared_ext}$major'
18969
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18970
shlibpath_var=LD_LIBRARY_PATH
18977
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18978
soname_spec='${libname}${release}${shared_ext}$major'
18979
shlibpath_var=LD_LIBRARY_PATH
18980
shlibpath_overrides_runpath=yes
18981
hardcode_into_libs=yes
18982
# ldd complains unless libraries are executable
18983
postinstall_cmds='chmod +x $lib'
18988
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18989
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18990
shlibpath_var=LD_LIBRARY_PATH
18991
shlibpath_overrides_runpath=yes
18992
if test "$with_gnu_ld" = yes; then
18998
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19000
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19001
soname_spec='${libname}${release}${shared_ext}$major'
19002
shlibpath_var=LD_LIBRARY_PATH
19003
case $host_vendor in
19005
shlibpath_overrides_runpath=no
19007
export_dynamic_flag_spec='${wl}-Blargedynsym'
19008
runpath_var=LD_RUN_PATH
19016
shlibpath_overrides_runpath=no
19017
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19023
if test -d /usr/nec ;then
19025
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19026
soname_spec='$libname${shared_ext}.$major'
19027
shlibpath_var=LD_LIBRARY_PATH
19033
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19034
soname_spec='${libname}${release}${shared_ext}$major'
19035
shlibpath_var=LD_LIBRARY_PATH
19042
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19043
echo "${ECHO_T}$dynamic_linker" >&6
19044
test "$dynamic_linker" = no && can_build_shared=no
19046
if test "x$enable_dlopen" != xyes; then
19047
enable_dlopen=unknown
19048
enable_dlopen_self=unknown
19049
enable_dlopen_self_static=unknown
19056
lt_cv_dlopen="load_add_on"
19058
lt_cv_dlopen_self=yes
19062
lt_cv_dlopen="LoadLibrary"
19067
lt_cv_dlopen="dlopen"
19072
# if libdl is installed we need to link against it
19073
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19074
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19075
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19076
echo $ECHO_N "(cached) $ECHO_C" >&6
19078
ac_check_lib_save_LIBS=$LIBS
19080
cat >conftest.$ac_ext <<_ACEOF
19083
cat confdefs.h >>conftest.$ac_ext
19084
cat >>conftest.$ac_ext <<_ACEOF
19085
/* end confdefs.h. */
19087
/* Override any gcc2 internal prototype to avoid an error. */
19091
/* We use char because int might match the return type of a gcc2
19092
builtin and then its argument prototype would still apply. */
19102
rm -f conftest.$ac_objext conftest$ac_exeext
19103
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19104
(eval $ac_link) 2>conftest.er1
19106
grep -v '^ *+' conftest.er1 >conftest.err
19108
cat conftest.err >&5
19109
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110
(exit $ac_status); } &&
19111
{ ac_try='test -z "$ac_c_werror_flag"
19112
|| test ! -s conftest.err'
19113
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19114
(eval $ac_try) 2>&5
19116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117
(exit $ac_status); }; } &&
19118
{ ac_try='test -s conftest$ac_exeext'
19119
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19120
(eval $ac_try) 2>&5
19122
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123
(exit $ac_status); }; }; then
19124
ac_cv_lib_dl_dlopen=yes
19126
echo "$as_me: failed program was:" >&5
19127
sed 's/^/| /' conftest.$ac_ext >&5
19129
ac_cv_lib_dl_dlopen=no
19131
rm -f conftest.err conftest.$ac_objext \
19132
conftest$ac_exeext conftest.$ac_ext
19133
LIBS=$ac_check_lib_save_LIBS
19135
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19136
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19137
if test $ac_cv_lib_dl_dlopen = yes; then
19138
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19141
lt_cv_dlopen="dyld"
19143
lt_cv_dlopen_self=yes
19150
echo "$as_me:$LINENO: checking for shl_load" >&5
19151
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19152
if test "${ac_cv_func_shl_load+set}" = set; then
19153
echo $ECHO_N "(cached) $ECHO_C" >&6
19155
cat >conftest.$ac_ext <<_ACEOF
19158
cat confdefs.h >>conftest.$ac_ext
19159
cat >>conftest.$ac_ext <<_ACEOF
19160
/* end confdefs.h. */
19161
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19162
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19163
#define shl_load innocuous_shl_load
19165
/* System header to define __stub macros and hopefully few prototypes,
19166
which can conflict with char shl_load (); below.
19167
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19168
<limits.h> exists even on freestanding compilers. */
19171
# include <limits.h>
19173
# include <assert.h>
19178
/* Override any gcc2 internal prototype to avoid an error. */
19183
/* We use char because int might match the return type of a gcc2
19184
builtin and then its argument prototype would still apply. */
19186
/* The GNU C library defines this for functions which it implements
19187
to always fail with ENOSYS. Some functions are actually named
19188
something starting with __ and the normal name is an alias. */
19189
#if defined (__stub_shl_load) || defined (__stub___shl_load)
19192
char (*f) () = shl_load;
19201
return f != shl_load;
19206
rm -f conftest.$ac_objext conftest$ac_exeext
19207
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19208
(eval $ac_link) 2>conftest.er1
19210
grep -v '^ *+' conftest.er1 >conftest.err
19212
cat conftest.err >&5
19213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214
(exit $ac_status); } &&
19215
{ ac_try='test -z "$ac_c_werror_flag"
19216
|| test ! -s conftest.err'
19217
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19218
(eval $ac_try) 2>&5
19220
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221
(exit $ac_status); }; } &&
19222
{ ac_try='test -s conftest$ac_exeext'
19223
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19224
(eval $ac_try) 2>&5
19226
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227
(exit $ac_status); }; }; then
19228
ac_cv_func_shl_load=yes
19230
echo "$as_me: failed program was:" >&5
19231
sed 's/^/| /' conftest.$ac_ext >&5
19233
ac_cv_func_shl_load=no
19235
rm -f conftest.err conftest.$ac_objext \
19236
conftest$ac_exeext conftest.$ac_ext
19238
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19239
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19240
if test $ac_cv_func_shl_load = yes; then
19241
lt_cv_dlopen="shl_load"
19243
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19244
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19245
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19246
echo $ECHO_N "(cached) $ECHO_C" >&6
19248
ac_check_lib_save_LIBS=$LIBS
19250
cat >conftest.$ac_ext <<_ACEOF
19253
cat confdefs.h >>conftest.$ac_ext
19254
cat >>conftest.$ac_ext <<_ACEOF
19255
/* end confdefs.h. */
19257
/* Override any gcc2 internal prototype to avoid an error. */
19261
/* We use char because int might match the return type of a gcc2
19262
builtin and then its argument prototype would still apply. */
19272
rm -f conftest.$ac_objext conftest$ac_exeext
19273
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19274
(eval $ac_link) 2>conftest.er1
19276
grep -v '^ *+' conftest.er1 >conftest.err
19278
cat conftest.err >&5
19279
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280
(exit $ac_status); } &&
19281
{ ac_try='test -z "$ac_c_werror_flag"
19282
|| test ! -s conftest.err'
19283
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19284
(eval $ac_try) 2>&5
19286
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287
(exit $ac_status); }; } &&
19288
{ ac_try='test -s conftest$ac_exeext'
19289
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19290
(eval $ac_try) 2>&5
19292
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293
(exit $ac_status); }; }; then
19294
ac_cv_lib_dld_shl_load=yes
19296
echo "$as_me: failed program was:" >&5
19297
sed 's/^/| /' conftest.$ac_ext >&5
19299
ac_cv_lib_dld_shl_load=no
19301
rm -f conftest.err conftest.$ac_objext \
19302
conftest$ac_exeext conftest.$ac_ext
19303
LIBS=$ac_check_lib_save_LIBS
19305
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19306
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19307
if test $ac_cv_lib_dld_shl_load = yes; then
19308
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19310
echo "$as_me:$LINENO: checking for dlopen" >&5
19311
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19312
if test "${ac_cv_func_dlopen+set}" = set; then
19313
echo $ECHO_N "(cached) $ECHO_C" >&6
19315
cat >conftest.$ac_ext <<_ACEOF
19318
cat confdefs.h >>conftest.$ac_ext
19319
cat >>conftest.$ac_ext <<_ACEOF
19320
/* end confdefs.h. */
19321
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19322
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19323
#define dlopen innocuous_dlopen
19325
/* System header to define __stub macros and hopefully few prototypes,
19326
which can conflict with char dlopen (); below.
19327
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19328
<limits.h> exists even on freestanding compilers. */
19331
# include <limits.h>
19333
# include <assert.h>
19338
/* Override any gcc2 internal prototype to avoid an error. */
19343
/* We use char because int might match the return type of a gcc2
19344
builtin and then its argument prototype would still apply. */
19346
/* The GNU C library defines this for functions which it implements
19347
to always fail with ENOSYS. Some functions are actually named
19348
something starting with __ and the normal name is an alias. */
19349
#if defined (__stub_dlopen) || defined (__stub___dlopen)
19352
char (*f) () = dlopen;
19361
return f != dlopen;
19366
rm -f conftest.$ac_objext conftest$ac_exeext
19367
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19368
(eval $ac_link) 2>conftest.er1
19370
grep -v '^ *+' conftest.er1 >conftest.err
19372
cat conftest.err >&5
19373
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374
(exit $ac_status); } &&
19375
{ ac_try='test -z "$ac_c_werror_flag"
19376
|| test ! -s conftest.err'
19377
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19378
(eval $ac_try) 2>&5
19380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381
(exit $ac_status); }; } &&
19382
{ ac_try='test -s conftest$ac_exeext'
19383
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19384
(eval $ac_try) 2>&5
19386
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387
(exit $ac_status); }; }; then
19388
ac_cv_func_dlopen=yes
19390
echo "$as_me: failed program was:" >&5
19391
sed 's/^/| /' conftest.$ac_ext >&5
19393
ac_cv_func_dlopen=no
19395
rm -f conftest.err conftest.$ac_objext \
19396
conftest$ac_exeext conftest.$ac_ext
19398
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19399
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19400
if test $ac_cv_func_dlopen = yes; then
19401
lt_cv_dlopen="dlopen"
19403
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19404
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19405
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19406
echo $ECHO_N "(cached) $ECHO_C" >&6
19408
ac_check_lib_save_LIBS=$LIBS
19410
cat >conftest.$ac_ext <<_ACEOF
19413
cat confdefs.h >>conftest.$ac_ext
19414
cat >>conftest.$ac_ext <<_ACEOF
19415
/* end confdefs.h. */
19417
/* Override any gcc2 internal prototype to avoid an error. */
19421
/* We use char because int might match the return type of a gcc2
19422
builtin and then its argument prototype would still apply. */
19432
rm -f conftest.$ac_objext conftest$ac_exeext
19433
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19434
(eval $ac_link) 2>conftest.er1
19436
grep -v '^ *+' conftest.er1 >conftest.err
19438
cat conftest.err >&5
19439
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440
(exit $ac_status); } &&
19441
{ ac_try='test -z "$ac_c_werror_flag"
19442
|| test ! -s conftest.err'
19443
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19444
(eval $ac_try) 2>&5
19446
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447
(exit $ac_status); }; } &&
19448
{ ac_try='test -s conftest$ac_exeext'
19449
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450
(eval $ac_try) 2>&5
19452
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453
(exit $ac_status); }; }; then
19454
ac_cv_lib_dl_dlopen=yes
19456
echo "$as_me: failed program was:" >&5
19457
sed 's/^/| /' conftest.$ac_ext >&5
19459
ac_cv_lib_dl_dlopen=no
19461
rm -f conftest.err conftest.$ac_objext \
19462
conftest$ac_exeext conftest.$ac_ext
19463
LIBS=$ac_check_lib_save_LIBS
19465
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19466
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19467
if test $ac_cv_lib_dl_dlopen = yes; then
19468
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19470
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19471
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19472
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19473
echo $ECHO_N "(cached) $ECHO_C" >&6
19475
ac_check_lib_save_LIBS=$LIBS
19476
LIBS="-lsvld $LIBS"
19477
cat >conftest.$ac_ext <<_ACEOF
19480
cat confdefs.h >>conftest.$ac_ext
19481
cat >>conftest.$ac_ext <<_ACEOF
19482
/* end confdefs.h. */
19484
/* Override any gcc2 internal prototype to avoid an error. */
19488
/* We use char because int might match the return type of a gcc2
19489
builtin and then its argument prototype would still apply. */
19499
rm -f conftest.$ac_objext conftest$ac_exeext
19500
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19501
(eval $ac_link) 2>conftest.er1
19503
grep -v '^ *+' conftest.er1 >conftest.err
19505
cat conftest.err >&5
19506
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507
(exit $ac_status); } &&
19508
{ ac_try='test -z "$ac_c_werror_flag"
19509
|| test ! -s conftest.err'
19510
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19511
(eval $ac_try) 2>&5
19513
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514
(exit $ac_status); }; } &&
19515
{ ac_try='test -s conftest$ac_exeext'
19516
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19517
(eval $ac_try) 2>&5
19519
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520
(exit $ac_status); }; }; then
19521
ac_cv_lib_svld_dlopen=yes
19523
echo "$as_me: failed program was:" >&5
19524
sed 's/^/| /' conftest.$ac_ext >&5
19526
ac_cv_lib_svld_dlopen=no
19528
rm -f conftest.err conftest.$ac_objext \
19529
conftest$ac_exeext conftest.$ac_ext
19530
LIBS=$ac_check_lib_save_LIBS
19532
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19533
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19534
if test $ac_cv_lib_svld_dlopen = yes; then
19535
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19537
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19538
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19539
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19540
echo $ECHO_N "(cached) $ECHO_C" >&6
19542
ac_check_lib_save_LIBS=$LIBS
19544
cat >conftest.$ac_ext <<_ACEOF
19547
cat confdefs.h >>conftest.$ac_ext
19548
cat >>conftest.$ac_ext <<_ACEOF
19549
/* end confdefs.h. */
19551
/* Override any gcc2 internal prototype to avoid an error. */
19555
/* We use char because int might match the return type of a gcc2
19556
builtin and then its argument prototype would still apply. */
19566
rm -f conftest.$ac_objext conftest$ac_exeext
19567
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19568
(eval $ac_link) 2>conftest.er1
19570
grep -v '^ *+' conftest.er1 >conftest.err
19572
cat conftest.err >&5
19573
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574
(exit $ac_status); } &&
19575
{ ac_try='test -z "$ac_c_werror_flag"
19576
|| test ! -s conftest.err'
19577
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578
(eval $ac_try) 2>&5
19580
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581
(exit $ac_status); }; } &&
19582
{ ac_try='test -s conftest$ac_exeext'
19583
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584
(eval $ac_try) 2>&5
19586
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587
(exit $ac_status); }; }; then
19588
ac_cv_lib_dld_dld_link=yes
19590
echo "$as_me: failed program was:" >&5
19591
sed 's/^/| /' conftest.$ac_ext >&5
19593
ac_cv_lib_dld_dld_link=no
19595
rm -f conftest.err conftest.$ac_objext \
19596
conftest$ac_exeext conftest.$ac_ext
19597
LIBS=$ac_check_lib_save_LIBS
19599
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19600
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19601
if test $ac_cv_lib_dld_dld_link = yes; then
19602
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19623
if test "x$lt_cv_dlopen" != xno; then
19629
case $lt_cv_dlopen in
19631
save_CPPFLAGS="$CPPFLAGS"
19632
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19634
save_LDFLAGS="$LDFLAGS"
19635
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19638
LIBS="$lt_cv_dlopen_libs $LIBS"
19640
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19641
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19642
if test "${lt_cv_dlopen_self+set}" = set; then
19643
echo $ECHO_N "(cached) $ECHO_C" >&6
19645
if test "$cross_compiling" = yes; then :
19646
lt_cv_dlopen_self=cross
19648
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19649
lt_status=$lt_dlunknown
19650
cat > conftest.$ac_ext <<EOF
19651
#line 19651 "configure"
19652
#include "confdefs.h"
19661
# define LT_DLGLOBAL RTLD_GLOBAL
19664
# define LT_DLGLOBAL DL_GLOBAL
19666
# define LT_DLGLOBAL 0
19670
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19671
find out it does not work in some platform. */
19672
#ifndef LT_DLLAZY_OR_NOW
19674
# define LT_DLLAZY_OR_NOW RTLD_LAZY
19677
# define LT_DLLAZY_OR_NOW DL_LAZY
19680
# define LT_DLLAZY_OR_NOW RTLD_NOW
19683
# define LT_DLLAZY_OR_NOW DL_NOW
19685
# define LT_DLLAZY_OR_NOW 0
19693
extern "C" void exit (int);
19696
void fnord() { int i=42;}
19699
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19700
int status = $lt_dlunknown;
19704
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19705
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19706
/* dlclose (self); */
19712
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19713
(eval $ac_link) 2>&5
19715
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19717
(./conftest; exit; ) 2>/dev/null
19719
case x$lt_status in
19720
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19721
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19722
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19725
# compilation failed
19726
lt_cv_dlopen_self=no
19733
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19734
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19736
if test "x$lt_cv_dlopen_self" = xyes; then
19737
LDFLAGS="$LDFLAGS $link_static_flag"
19738
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19739
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19740
if test "${lt_cv_dlopen_self_static+set}" = set; then
19741
echo $ECHO_N "(cached) $ECHO_C" >&6
19743
if test "$cross_compiling" = yes; then :
19744
lt_cv_dlopen_self_static=cross
19746
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19747
lt_status=$lt_dlunknown
19748
cat > conftest.$ac_ext <<EOF
19749
#line 19749 "configure"
19750
#include "confdefs.h"
19759
# define LT_DLGLOBAL RTLD_GLOBAL
19762
# define LT_DLGLOBAL DL_GLOBAL
19764
# define LT_DLGLOBAL 0
19768
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19769
find out it does not work in some platform. */
19770
#ifndef LT_DLLAZY_OR_NOW
19772
# define LT_DLLAZY_OR_NOW RTLD_LAZY
19775
# define LT_DLLAZY_OR_NOW DL_LAZY
19778
# define LT_DLLAZY_OR_NOW RTLD_NOW
19781
# define LT_DLLAZY_OR_NOW DL_NOW
19783
# define LT_DLLAZY_OR_NOW 0
19791
extern "C" void exit (int);
19794
void fnord() { int i=42;}
19797
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19798
int status = $lt_dlunknown;
19802
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19803
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19804
/* dlclose (self); */
19810
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19811
(eval $ac_link) 2>&5
19813
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19815
(./conftest; exit; ) 2>/dev/null
19817
case x$lt_status in
19818
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19819
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19820
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19823
# compilation failed
19824
lt_cv_dlopen_self_static=no
19831
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19832
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19835
CPPFLAGS="$save_CPPFLAGS"
19836
LDFLAGS="$save_LDFLAGS"
19841
case $lt_cv_dlopen_self in
19842
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19843
*) enable_dlopen_self=unknown ;;
19846
case $lt_cv_dlopen_self_static in
19847
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19848
*) enable_dlopen_self_static=unknown ;;
19853
# The else clause should only fire when bootstrapping the
19854
# libtool distribution, otherwise you forgot to ship ltmain.sh
19855
# with your package, and you will get complaints that there are
19856
# no rules to generate ltmain.sh.
19857
if test -f "$ltmain"; then
19858
# See if we are running on zsh, and set the options which allow our commands through
19859
# without removal of \ escapes.
19860
if test -n "${ZSH_VERSION+set}" ; then
19861
setopt NO_GLOB_SUBST
19863
# Now quote all the things that may contain metacharacters while being
19864
# careful not to overquote the AC_SUBSTed values. We take copies of the
19865
# variables and quote the copies for generation of the libtool script.
19866
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
19867
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19868
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19869
deplibs_check_method reload_flag reload_cmds need_locks \
19870
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19871
lt_cv_sys_global_symbol_to_c_name_address \
19872
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19873
old_postinstall_cmds old_postuninstall_cmds \
19877
lt_prog_compiler_wl_GCJ \
19878
lt_prog_compiler_pic_GCJ \
19879
lt_prog_compiler_static_GCJ \
19880
lt_prog_compiler_no_builtin_flag_GCJ \
19881
export_dynamic_flag_spec_GCJ \
19882
thread_safe_flag_spec_GCJ \
19883
whole_archive_flag_spec_GCJ \
19884
enable_shared_with_static_runtimes_GCJ \
19885
old_archive_cmds_GCJ \
19886
old_archive_from_new_cmds_GCJ \
19887
predep_objects_GCJ \
19888
postdep_objects_GCJ \
19891
compiler_lib_search_path_GCJ \
19893
archive_expsym_cmds_GCJ \
19894
postinstall_cmds_GCJ \
19895
postuninstall_cmds_GCJ \
19896
old_archive_from_expsyms_cmds_GCJ \
19897
allow_undefined_flag_GCJ \
19898
no_undefined_flag_GCJ \
19899
export_symbols_cmds_GCJ \
19900
hardcode_libdir_flag_spec_GCJ \
19901
hardcode_libdir_flag_spec_ld_GCJ \
19902
hardcode_libdir_separator_GCJ \
19903
hardcode_automatic_GCJ \
19905
module_expsym_cmds_GCJ \
19906
lt_cv_prog_compiler_c_o_GCJ \
19907
exclude_expsyms_GCJ \
19908
include_expsyms_GCJ; do
19911
old_archive_cmds_GCJ | \
19912
old_archive_from_new_cmds_GCJ | \
19913
archive_cmds_GCJ | \
19914
archive_expsym_cmds_GCJ | \
19915
module_cmds_GCJ | \
19916
module_expsym_cmds_GCJ | \
19917
old_archive_from_expsyms_cmds_GCJ | \
19918
export_symbols_cmds_GCJ | \
19919
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19920
postinstall_cmds | postuninstall_cmds | \
19921
old_postinstall_cmds | old_postuninstall_cmds | \
19922
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19923
# Double-quote double-evaled strings.
19924
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19927
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19933
*'\$0 --fallback-echo"')
19934
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19940
cat <<__EOF__ >> "$cfgfile"
19941
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19943
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19945
# Shell to use when invoking shell scripts.
19948
# Whether or not to build shared libraries.
19949
build_libtool_libs=$enable_shared
19951
# Whether or not to build static libraries.
19952
build_old_libs=$enable_static
19954
# Whether or not to add -lc for building shared libraries.
19955
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19957
# Whether or not to disallow shared libs when runtime libs are static
19958
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19960
# Whether or not to optimize for fast installation.
19961
fast_install=$enable_fast_install
19964
host_alias=$host_alias
19967
# An echo program that does not interpret backslashes.
19972
AR_FLAGS=$lt_AR_FLAGS
19977
# A language-specific compiler.
19978
CC=$lt_compiler_GCJ
19980
# Is the compiler the GNU C compiler?
19986
# The linker used to build libraries.
19989
# Whether we need hard or soft links.
19992
# A BSD-compatible nm program.
19995
# A symbol stripping program
19998
# Used to examine libraries when file_magic_cmd begins "file"
19999
MAGIC_CMD=$MAGIC_CMD
20001
# Used on cygwin: DLL creation program.
20004
# Used on cygwin: object dumper.
20007
# Used on cygwin: assembler.
20010
# The name of the directory that contains temporary libtool files.
20013
# How to create reloadable object files.
20014
reload_flag=$lt_reload_flag
20015
reload_cmds=$lt_reload_cmds
20017
# How to pass a linker flag through the compiler.
20018
wl=$lt_lt_prog_compiler_wl_GCJ
20020
# Object file suffix (normally "o").
20021
objext="$ac_objext"
20023
# Old archive suffix (normally "a").
20026
# Shared library suffix (normally ".so").
20029
# Executable file suffix (normally "").
20032
# Additional compiler flags for building library objects.
20033
pic_flag=$lt_lt_prog_compiler_pic_GCJ
20036
# What is the maximum length of a command?
20037
max_cmd_len=$lt_cv_sys_max_cmd_len
20039
# Does compiler simultaneously support -c and -o options?
20040
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20042
# Must we lock files when doing compilation ?
20043
need_locks=$lt_need_locks
20045
# Do we need the lib prefix for modules?
20046
need_lib_prefix=$need_lib_prefix
20048
# Do we need a version for libraries?
20049
need_version=$need_version
20051
# Whether dlopen is supported.
20052
dlopen_support=$enable_dlopen
20054
# Whether dlopen of programs is supported.
20055
dlopen_self=$enable_dlopen_self
20057
# Whether dlopen of statically linked programs is supported.
20058
dlopen_self_static=$enable_dlopen_self_static
20060
# Compiler flag to prevent dynamic linking.
20061
link_static_flag=$lt_lt_prog_compiler_static_GCJ
20063
# Compiler flag to turn off builtin functions.
20064
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20066
# Compiler flag to allow reflexive dlopens.
20067
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20069
# Compiler flag to generate shared objects directly from archives.
20070
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20072
# Compiler flag to generate thread-safe objects.
20073
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20075
# Library versioning type.
20076
version_type=$version_type
20078
# Format of library name prefix.
20079
libname_spec=$lt_libname_spec
20081
# List of archive names. First name is the real one, the rest are links.
20082
# The last name is the one that the linker finds with -lNAME.
20083
library_names_spec=$lt_library_names_spec
20085
# The coded name of the library, if different from the real name.
20086
soname_spec=$lt_soname_spec
20088
# Commands used to build and install an old-style archive.
20090
old_archive_cmds=$lt_old_archive_cmds_GCJ
20091
old_postinstall_cmds=$lt_old_postinstall_cmds
20092
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20094
# Create an old-style archive from a shared archive.
20095
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20097
# Create a temporary old-style archive to link instead of a shared archive.
20098
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20100
# Commands used to build and install a shared archive.
20101
archive_cmds=$lt_archive_cmds_GCJ
20102
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20103
postinstall_cmds=$lt_postinstall_cmds
20104
postuninstall_cmds=$lt_postuninstall_cmds
20106
# Commands used to build a loadable module (assumed same as above if empty)
20107
module_cmds=$lt_module_cmds_GCJ
20108
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20110
# Commands to strip libraries.
20111
old_striplib=$lt_old_striplib
20112
striplib=$lt_striplib
20114
# Dependencies to place before the objects being linked to create a
20116
predep_objects=$lt_predep_objects_GCJ
20118
# Dependencies to place after the objects being linked to create a
20120
postdep_objects=$lt_postdep_objects_GCJ
20122
# Dependencies to place before the objects being linked to create a
20124
predeps=$lt_predeps_GCJ
20126
# Dependencies to place after the objects being linked to create a
20128
postdeps=$lt_postdeps_GCJ
20130
# The library search path used internally by the compiler when linking
20131
# a shared library.
20132
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20134
# Method to check whether dependent libraries are shared objects.
20135
deplibs_check_method=$lt_deplibs_check_method
20137
# Command to use when deplibs_check_method == file_magic.
20138
file_magic_cmd=$lt_file_magic_cmd
20140
# Flag that allows shared libraries with undefined symbols to be built.
20141
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20143
# Flag that forces no undefined symbols.
20144
no_undefined_flag=$lt_no_undefined_flag_GCJ
20146
# Commands used to finish a libtool library installation in a directory.
20147
finish_cmds=$lt_finish_cmds
20149
# Same as above, but a single script fragment to be evaled but not shown.
20150
finish_eval=$lt_finish_eval
20152
# Take the output of nm and produce a listing of raw symbols and C names.
20153
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20155
# Transform the output of nm in a proper C declaration
20156
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20158
# Transform the output of nm in a C name address pair
20159
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20161
# This is the shared library runtime path variable.
20162
runpath_var=$runpath_var
20164
# This is the shared library path variable.
20165
shlibpath_var=$shlibpath_var
20167
# Is shlibpath searched before the hard-coded library search path?
20168
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20170
# How to hardcode a shared library path into an executable.
20171
hardcode_action=$hardcode_action_GCJ
20173
# Whether we should hardcode library paths into libraries.
20174
hardcode_into_libs=$hardcode_into_libs
20176
# Flag to hardcode \$libdir into a binary during linking.
20177
# This must work even if \$libdir does not exist.
20178
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20180
# If ld is used when linking, flag to hardcode \$libdir into
20181
# a binary during linking. This must work even if \$libdir does
20183
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20185
# Whether we need a single -rpath flag with a separated argument.
20186
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20188
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20189
# resulting binary.
20190
hardcode_direct=$hardcode_direct_GCJ
20192
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20193
# resulting binary.
20194
hardcode_minus_L=$hardcode_minus_L_GCJ
20196
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20197
# the resulting binary.
20198
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20200
# Set to yes if building a shared library automatically hardcodes DIR into the library
20201
# and all subsequent libraries and executables linked against it.
20202
hardcode_automatic=$hardcode_automatic_GCJ
20204
# Variables whose values should be saved in libtool wrapper scripts and
20205
# restored at relink time.
20206
variables_saved_for_relink="$variables_saved_for_relink"
20208
# Whether libtool must link a program against all its dependency libraries.
20209
link_all_deplibs=$link_all_deplibs_GCJ
20211
# Compile-time system search path for libraries
20212
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20214
# Run-time system search path for libraries
20215
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20217
# Fix the shell variable \$srcfile for the compiler.
20218
fix_srcfile_path="$fix_srcfile_path_GCJ"
20220
# Set to yes if exported symbols are required.
20221
always_export_symbols=$always_export_symbols_GCJ
20223
# The commands to list exported symbols.
20224
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20226
# The commands to extract the exported symbol list from a shared archive.
20227
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20229
# Symbols that should not be listed in the preloaded symbols.
20230
exclude_expsyms=$lt_exclude_expsyms_GCJ
20232
# Symbols that must always be exported.
20233
include_expsyms=$lt_include_expsyms_GCJ
20235
# ### END LIBTOOL TAG CONFIG: $tagname
20241
# If there is no Makefile yet, we rely on a make rule to execute
20242
# `config.status --recheck' to rerun these tests and create the
20243
# libtool script then.
20244
test -f Makefile && make "$ltmain"
20249
ac_cpp='$CPP $CPPFLAGS'
20250
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20251
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20252
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20265
# Source file extension for RC test sources.
20268
# Object file extension for compiled RC test sources.
20272
# Code to be used in simple compile tests
20273
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20275
# Code to be used in simple link tests
20276
lt_simple_link_test_code="$lt_simple_compile_test_code"
20278
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20280
# If no C compiler was specified, use CC.
20283
# Allow CC to be a program name with arguments.
20287
# Allow CC to be a program name with arguments.
20292
lt_cv_prog_compiler_c_o_RC=yes
20294
# The else clause should only fire when bootstrapping the
20295
# libtool distribution, otherwise you forgot to ship ltmain.sh
20296
# with your package, and you will get complaints that there are
20297
# no rules to generate ltmain.sh.
20298
if test -f "$ltmain"; then
20299
# See if we are running on zsh, and set the options which allow our commands through
20300
# without removal of \ escapes.
20301
if test -n "${ZSH_VERSION+set}" ; then
20302
setopt NO_GLOB_SUBST
20304
# Now quote all the things that may contain metacharacters while being
20305
# careful not to overquote the AC_SUBSTed values. We take copies of the
20306
# variables and quote the copies for generation of the libtool script.
20307
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
20308
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20309
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20310
deplibs_check_method reload_flag reload_cmds need_locks \
20311
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20312
lt_cv_sys_global_symbol_to_c_name_address \
20313
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20314
old_postinstall_cmds old_postuninstall_cmds \
20318
lt_prog_compiler_wl_RC \
20319
lt_prog_compiler_pic_RC \
20320
lt_prog_compiler_static_RC \
20321
lt_prog_compiler_no_builtin_flag_RC \
20322
export_dynamic_flag_spec_RC \
20323
thread_safe_flag_spec_RC \
20324
whole_archive_flag_spec_RC \
20325
enable_shared_with_static_runtimes_RC \
20326
old_archive_cmds_RC \
20327
old_archive_from_new_cmds_RC \
20328
predep_objects_RC \
20329
postdep_objects_RC \
20332
compiler_lib_search_path_RC \
20334
archive_expsym_cmds_RC \
20335
postinstall_cmds_RC \
20336
postuninstall_cmds_RC \
20337
old_archive_from_expsyms_cmds_RC \
20338
allow_undefined_flag_RC \
20339
no_undefined_flag_RC \
20340
export_symbols_cmds_RC \
20341
hardcode_libdir_flag_spec_RC \
20342
hardcode_libdir_flag_spec_ld_RC \
20343
hardcode_libdir_separator_RC \
20344
hardcode_automatic_RC \
20346
module_expsym_cmds_RC \
20347
lt_cv_prog_compiler_c_o_RC \
20348
exclude_expsyms_RC \
20349
include_expsyms_RC; do
20352
old_archive_cmds_RC | \
20353
old_archive_from_new_cmds_RC | \
20354
archive_cmds_RC | \
20355
archive_expsym_cmds_RC | \
20357
module_expsym_cmds_RC | \
20358
old_archive_from_expsyms_cmds_RC | \
20359
export_symbols_cmds_RC | \
20360
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20361
postinstall_cmds | postuninstall_cmds | \
20362
old_postinstall_cmds | old_postuninstall_cmds | \
20363
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20364
# Double-quote double-evaled strings.
20365
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20368
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20374
*'\$0 --fallback-echo"')
20375
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20381
cat <<__EOF__ >> "$cfgfile"
20382
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20384
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20386
# Shell to use when invoking shell scripts.
20389
# Whether or not to build shared libraries.
20390
build_libtool_libs=$enable_shared
20392
# Whether or not to build static libraries.
20393
build_old_libs=$enable_static
20395
# Whether or not to add -lc for building shared libraries.
20396
build_libtool_need_lc=$archive_cmds_need_lc_RC
20398
# Whether or not to disallow shared libs when runtime libs are static
20399
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20401
# Whether or not to optimize for fast installation.
20402
fast_install=$enable_fast_install
20405
host_alias=$host_alias
20408
# An echo program that does not interpret backslashes.
20413
AR_FLAGS=$lt_AR_FLAGS
20418
# A language-specific compiler.
20421
# Is the compiler the GNU C compiler?
20427
# The linker used to build libraries.
20430
# Whether we need hard or soft links.
20433
# A BSD-compatible nm program.
20436
# A symbol stripping program
20439
# Used to examine libraries when file_magic_cmd begins "file"
20440
MAGIC_CMD=$MAGIC_CMD
20442
# Used on cygwin: DLL creation program.
20445
# Used on cygwin: object dumper.
20448
# Used on cygwin: assembler.
20451
# The name of the directory that contains temporary libtool files.
20454
# How to create reloadable object files.
20455
reload_flag=$lt_reload_flag
20456
reload_cmds=$lt_reload_cmds
20458
# How to pass a linker flag through the compiler.
20459
wl=$lt_lt_prog_compiler_wl_RC
20461
# Object file suffix (normally "o").
20462
objext="$ac_objext"
20464
# Old archive suffix (normally "a").
20467
# Shared library suffix (normally ".so").
20470
# Executable file suffix (normally "").
20473
# Additional compiler flags for building library objects.
20474
pic_flag=$lt_lt_prog_compiler_pic_RC
20477
# What is the maximum length of a command?
20478
max_cmd_len=$lt_cv_sys_max_cmd_len
20480
# Does compiler simultaneously support -c and -o options?
20481
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20483
# Must we lock files when doing compilation ?
20484
need_locks=$lt_need_locks
20486
# Do we need the lib prefix for modules?
20487
need_lib_prefix=$need_lib_prefix
20489
# Do we need a version for libraries?
20490
need_version=$need_version
20492
# Whether dlopen is supported.
20493
dlopen_support=$enable_dlopen
20495
# Whether dlopen of programs is supported.
20496
dlopen_self=$enable_dlopen_self
20498
# Whether dlopen of statically linked programs is supported.
20499
dlopen_self_static=$enable_dlopen_self_static
20501
# Compiler flag to prevent dynamic linking.
20502
link_static_flag=$lt_lt_prog_compiler_static_RC
20504
# Compiler flag to turn off builtin functions.
20505
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20507
# Compiler flag to allow reflexive dlopens.
20508
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20510
# Compiler flag to generate shared objects directly from archives.
20511
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20513
# Compiler flag to generate thread-safe objects.
20514
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20516
# Library versioning type.
20517
version_type=$version_type
20519
# Format of library name prefix.
20520
libname_spec=$lt_libname_spec
20522
# List of archive names. First name is the real one, the rest are links.
20523
# The last name is the one that the linker finds with -lNAME.
20524
library_names_spec=$lt_library_names_spec
20526
# The coded name of the library, if different from the real name.
20527
soname_spec=$lt_soname_spec
20529
# Commands used to build and install an old-style archive.
20531
old_archive_cmds=$lt_old_archive_cmds_RC
20532
old_postinstall_cmds=$lt_old_postinstall_cmds
20533
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20535
# Create an old-style archive from a shared archive.
20536
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20538
# Create a temporary old-style archive to link instead of a shared archive.
20539
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20541
# Commands used to build and install a shared archive.
20542
archive_cmds=$lt_archive_cmds_RC
20543
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20544
postinstall_cmds=$lt_postinstall_cmds
20545
postuninstall_cmds=$lt_postuninstall_cmds
20547
# Commands used to build a loadable module (assumed same as above if empty)
20548
module_cmds=$lt_module_cmds_RC
20549
module_expsym_cmds=$lt_module_expsym_cmds_RC
20551
# Commands to strip libraries.
20552
old_striplib=$lt_old_striplib
20553
striplib=$lt_striplib
20555
# Dependencies to place before the objects being linked to create a
20557
predep_objects=$lt_predep_objects_RC
20559
# Dependencies to place after the objects being linked to create a
20561
postdep_objects=$lt_postdep_objects_RC
20563
# Dependencies to place before the objects being linked to create a
20565
predeps=$lt_predeps_RC
20567
# Dependencies to place after the objects being linked to create a
20569
postdeps=$lt_postdeps_RC
20571
# The library search path used internally by the compiler when linking
20572
# a shared library.
20573
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20575
# Method to check whether dependent libraries are shared objects.
20576
deplibs_check_method=$lt_deplibs_check_method
20578
# Command to use when deplibs_check_method == file_magic.
20579
file_magic_cmd=$lt_file_magic_cmd
20581
# Flag that allows shared libraries with undefined symbols to be built.
20582
allow_undefined_flag=$lt_allow_undefined_flag_RC
20584
# Flag that forces no undefined symbols.
20585
no_undefined_flag=$lt_no_undefined_flag_RC
20587
# Commands used to finish a libtool library installation in a directory.
20588
finish_cmds=$lt_finish_cmds
20590
# Same as above, but a single script fragment to be evaled but not shown.
20591
finish_eval=$lt_finish_eval
20593
# Take the output of nm and produce a listing of raw symbols and C names.
20594
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20596
# Transform the output of nm in a proper C declaration
20597
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20599
# Transform the output of nm in a C name address pair
20600
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20602
# This is the shared library runtime path variable.
20603
runpath_var=$runpath_var
20605
# This is the shared library path variable.
20606
shlibpath_var=$shlibpath_var
20608
# Is shlibpath searched before the hard-coded library search path?
20609
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20611
# How to hardcode a shared library path into an executable.
20612
hardcode_action=$hardcode_action_RC
20614
# Whether we should hardcode library paths into libraries.
20615
hardcode_into_libs=$hardcode_into_libs
20617
# Flag to hardcode \$libdir into a binary during linking.
20618
# This must work even if \$libdir does not exist.
20619
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20621
# If ld is used when linking, flag to hardcode \$libdir into
20622
# a binary during linking. This must work even if \$libdir does
20624
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20626
# Whether we need a single -rpath flag with a separated argument.
20627
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20629
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20630
# resulting binary.
20631
hardcode_direct=$hardcode_direct_RC
20633
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20634
# resulting binary.
20635
hardcode_minus_L=$hardcode_minus_L_RC
20637
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20638
# the resulting binary.
20639
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20641
# Set to yes if building a shared library automatically hardcodes DIR into the library
20642
# and all subsequent libraries and executables linked against it.
20643
hardcode_automatic=$hardcode_automatic_RC
20645
# Variables whose values should be saved in libtool wrapper scripts and
20646
# restored at relink time.
20647
variables_saved_for_relink="$variables_saved_for_relink"
20649
# Whether libtool must link a program against all its dependency libraries.
20650
link_all_deplibs=$link_all_deplibs_RC
20652
# Compile-time system search path for libraries
20653
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20655
# Run-time system search path for libraries
20656
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20658
# Fix the shell variable \$srcfile for the compiler.
20659
fix_srcfile_path="$fix_srcfile_path_RC"
20661
# Set to yes if exported symbols are required.
20662
always_export_symbols=$always_export_symbols_RC
20664
# The commands to list exported symbols.
20665
export_symbols_cmds=$lt_export_symbols_cmds_RC
20667
# The commands to extract the exported symbol list from a shared archive.
20668
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20670
# Symbols that should not be listed in the preloaded symbols.
20671
exclude_expsyms=$lt_exclude_expsyms_RC
20673
# Symbols that must always be exported.
20674
include_expsyms=$lt_include_expsyms_RC
20676
# ### END LIBTOOL TAG CONFIG: $tagname
20682
# If there is no Makefile yet, we rely on a make rule to execute
20683
# `config.status --recheck' to rerun these tests and create the
20684
# libtool script then.
20685
test -f Makefile && make "$ltmain"
20690
ac_cpp='$CPP $CPPFLAGS'
20691
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20692
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20693
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20700
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20701
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20702
{ (exit 1); exit 1; }; }
20706
# Append the new tag name to the list of available tags.
20707
if test -n "$tagname" ; then
20708
available_tags="$available_tags $tagname"
20714
# Now substitute the updated list of available tags.
20715
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20716
mv "${ofile}T" "$ofile"
20720
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20721
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20722
{ (exit 1); exit 1; }; }
20728
# This can be used to rebuild libtool when needed
20729
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20731
# Always use our own libtool.
20732
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20734
# Prevent multiple expansion
20755
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
20756
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
20757
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
20758
if test "${enable_maintainer_mode+set}" = set; then
20759
enableval="$enable_maintainer_mode"
20760
USE_MAINTAINER_MODE=$enableval
20762
USE_MAINTAINER_MODE=no
20764
echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
20765
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
20768
if test $USE_MAINTAINER_MODE = yes; then
20769
MAINTAINER_MODE_TRUE=
20770
MAINTAINER_MODE_FALSE='#'
20772
MAINTAINER_MODE_TRUE='#'
20773
MAINTAINER_MODE_FALSE=
20776
MAINT=$MAINTAINER_MODE_TRUE
20780
CFLAGS="-Wall -funroll-loops -ffast-math -fomit-frame-pointer -fexpensive-optimizations $CFLAGS"
20781
LIBIL_CFLAGS="$CFLAGS"
20782
LIBILU_CFLAGS="$CFLAGS"
20783
LIBILUT_CFLAGS="$CFLAGS"
20786
# Check whether --enable-bmp or --disable-bmp was given.
20787
if test "${enable_bmp+set}" = set; then
20788
enableval="$enable_bmp"
20789
case "$enable_bmp" in
20801
# Check whether --enable-dcx or --disable-dcx was given.
20802
if test "${enable_dcx+set}" = set; then
20803
enableval="$enable_dcx"
20804
case "$enable_dcx" in
20816
# Check whether --enable-doom or --disable-doom was given.
20817
if test "${enable_doom+set}" = set; then
20818
enableval="$enable_doom"
20819
case "$enable_doom" in
20831
# Check whether --enable-gif or --disable-gif was given.
20832
if test "${enable_gif+set}" = set; then
20833
enableval="$enable_gif"
20834
case "$enable_gif" in
20846
# Check whether --enable-hdr or --disable-hdr was given.
20847
if test "${enable_hdr+set}" = set; then
20848
enableval="$enable_hdr"
20849
case "$enable_hdr" in
20861
# Check whether --enable-icon or --disable-icon was given.
20862
if test "${enable_icon+set}" = set; then
20863
enableval="$enable_icon"
20864
case "$enable_icon" in
20876
# Check whether --enable-jpeg or --disable-jpeg was given.
20877
if test "${enable_jpeg+set}" = set; then
20878
enableval="$enable_jpeg"
20879
case "$enable_jpeg" in
20891
# Check whether --enable-lif or --disable-lif was given.
20892
if test "${enable_lif+set}" = set; then
20893
enableval="$enable_lif"
20894
case "$enable_lif" in
20906
# Check whether --enable-lcms or --disable-lcms was given.
20907
if test "${enable_lcms+set}" = set; then
20908
enableval="$enable_lcms"
20909
case "$enable_lcms" in
20921
# Check whether --enable-mdl or --disable-mdl was given.
20922
if test "${enable_mdl+set}" = set; then
20923
enableval="$enable_mdl"
20924
case "$enable_mdl" in
20936
# Check whether --enable-mng or --disable-mng was given.
20937
if test "${enable_mng+set}" = set; then
20938
enableval="$enable_mng"
20939
case "$enable_mng" in
20951
# Check whether --enable-pcd or --disable-pcd was given.
20952
if test "${enable_pcd+set}" = set; then
20953
enableval="$enable_pcd"
20954
case "$enable_pcd" in
20966
# Check whether --enable-pcx or --disable-pcx was given.
20967
if test "${enable_pcx+set}" = set; then
20968
enableval="$enable_pcx"
20969
case "$enable_pcx" in
20981
# Check whether --enable-pic or --disable-pic was given.
20982
if test "${enable_pic+set}" = set; then
20983
enableval="$enable_pic"
20984
case "$enable_pic" in
20996
# Check whether --enable-pix or --disable-pix was given.
20997
if test "${enable_pix+set}" = set; then
20998
enableval="$enable_pix"
20999
case "$enable_pix" in
21011
# Check whether --enable-png or --disable-png was given.
21012
if test "${enable_png+set}" = set; then
21013
enableval="$enable_png"
21014
case "$enable_png" in
21026
# Check whether --enable-pnm or --disable-pnm was given.
21027
if test "${enable_pnm+set}" = set; then
21028
enableval="$enable_pnm"
21029
case "$enable_pnm" in
21041
# Check whether --enable-psd or --disable-psd was given.
21042
if test "${enable_psd+set}" = set; then
21043
enableval="$enable_psd"
21044
case "$enable_psd" in
21056
# Check whether --enable-psp or --disable-psp was given.
21057
if test "${enable_psp+set}" = set; then
21058
enableval="$enable_psp"
21059
case "$enable_psp" in
21071
# Check whether --enable-pxr or --disable-pxr was given.
21072
if test "${enable_pxr+set}" = set; then
21073
enableval="$enable_pxr"
21074
case "$enable_pxr" in
21086
# Check whether --enable-lcms or --disable-lcms was given.
21087
if test "${enable_lcms+set}" = set; then
21088
enableval="$enable_lcms"
21089
case "$enable_lcms" in
21101
# Check whether --enable-raw or --disable-raw was given.
21102
if test "${enable_raw+set}" = set; then
21103
enableval="$enable_raw"
21104
case "$enable_raw" in
21116
# Check whether --enable-sgi or --disable-sgi was given.
21117
if test "${enable_sgi+set}" = set; then
21118
enableval="$enable_sgi"
21119
case "$enable_sgi" in
21131
# Check whether --enable-tga or --disable-tga was given.
21132
if test "${enable_tga+set}" = set; then
21133
enableval="$enable_tga"
21134
case "$enable_tga" in
21146
# Check whether --enable-tiff or --disable-tiff was given.
21147
if test "${enable_tiff+set}" = set; then
21148
enableval="$enable_tiff"
21149
case "$enable_tiff" in
21161
# Check whether --enable-wal or --disable-wal was given.
21162
if test "${enable_wal+set}" = set; then
21163
enableval="$enable_wal"
21164
case "$enable_wal" in
21176
# Check whether --enable-xpm or --disable-xpm was given.
21177
if test "${enable_xpm+set}" = set; then
21178
enableval="$enable_xpm"
21179
case "$enable_xpm" in
21191
# Check whether --enable-allegro or --disable-allegro was given.
21192
if test "${enable_allegro+set}" = set; then
21193
enableval="$enable_allegro"
21194
use_allegro=$enable_allegro
21199
# Check whether --enable-directx or --disable-directx was given.
21200
if test "${enable_directx+set}" = set; then
21201
enableval="$enable_directx"
21202
use_directx=$enable_directx
21207
# Check whether --enable-opengl or --disable-opengl was given.
21208
if test "${enable_opengl+set}" = set; then
21209
enableval="$enable_opengl"
21210
use_opengl=$enable_opengl
21215
# Check whether --enable-sdl or --disable-sdl was given.
21216
if test "${enable_sdl+set}" = set; then
21217
enableval="$enable_sdl"
21218
use_sdl=$enable_sdl
21223
# Check whether --enable-win32 or --disable-win32 was given.
21224
if test "${enable_win32+set}" = set; then
21225
enableval="$enable_win32"
21226
use_win32=$enable_win32
21231
# Check whether --enable-release or --disable-release was given.
21232
if test "${enable_release+set}" = set; then
21233
enableval="$enable_release"
21234
case "$enable_release" in
21239
debug_symbols="yes"
21246
if test "$debug_symbols" = "yes" ; then
21248
LIBIL_CFLAGS="-Wall -g"
21249
LIBILU_CFLAGS="-Wall -g"
21250
LIBILUT_CFLAGS="-Wall -g"
21255
LIBIL_CFLAGS=$LIBIL_CFLAGS" -mno-cygwin"
21256
LIBILU_CFLAGS=$LIBILU_CFLAGS" -mno-cygwin"
21257
LIBILUT_CFLAGS=$LIBILUT_CFLAGS" -mno-cygwin"
21261
LIBILUT_WIN32LIBPATH="-L/usr/lib/w32api"
21267
VERSIONINFO="-version-info $DEVIL_LTVERSION"
21274
if test "${ac_cv_header_jpeglib_h+set}" = set; then
21275
echo "$as_me:$LINENO: checking for jpeglib.h" >&5
21276
echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
21277
if test "${ac_cv_header_jpeglib_h+set}" = set; then
21278
echo $ECHO_N "(cached) $ECHO_C" >&6
21280
echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21281
echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21283
# Is the header compilable?
21284
echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
21285
echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6
21286
cat >conftest.$ac_ext <<_ACEOF
21289
cat confdefs.h >>conftest.$ac_ext
21290
cat >>conftest.$ac_ext <<_ACEOF
21291
/* end confdefs.h. */
21292
$ac_includes_default
21293
#include <jpeglib.h>
21295
rm -f conftest.$ac_objext
21296
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21297
(eval $ac_compile) 2>conftest.er1
21299
grep -v '^ *+' conftest.er1 >conftest.err
21301
cat conftest.err >&5
21302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303
(exit $ac_status); } &&
21304
{ ac_try='test -z "$ac_c_werror_flag"
21305
|| test ! -s conftest.err'
21306
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21307
(eval $ac_try) 2>&5
21309
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310
(exit $ac_status); }; } &&
21311
{ ac_try='test -s conftest.$ac_objext'
21312
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21313
(eval $ac_try) 2>&5
21315
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316
(exit $ac_status); }; }; then
21317
ac_header_compiler=yes
21319
echo "$as_me: failed program was:" >&5
21320
sed 's/^/| /' conftest.$ac_ext >&5
21322
ac_header_compiler=no
21324
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21325
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21326
echo "${ECHO_T}$ac_header_compiler" >&6
21328
# Is the header present?
21329
echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
21330
echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6
21331
cat >conftest.$ac_ext <<_ACEOF
21334
cat confdefs.h >>conftest.$ac_ext
21335
cat >>conftest.$ac_ext <<_ACEOF
21336
/* end confdefs.h. */
21337
#include <jpeglib.h>
21339
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21340
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21342
grep -v '^ *+' conftest.er1 >conftest.err
21344
cat conftest.err >&5
21345
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346
(exit $ac_status); } >/dev/null; then
21347
if test -s conftest.err; then
21348
ac_cpp_err=$ac_c_preproc_warn_flag
21349
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21356
if test -z "$ac_cpp_err"; then
21357
ac_header_preproc=yes
21359
echo "$as_me: failed program was:" >&5
21360
sed 's/^/| /' conftest.$ac_ext >&5
21362
ac_header_preproc=no
21364
rm -f conftest.err conftest.$ac_ext
21365
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21366
echo "${ECHO_T}$ac_header_preproc" >&6
21368
# So? What about this header?
21369
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21371
{ echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
21372
echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21373
{ echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
21374
echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
21375
ac_header_preproc=yes
21378
{ echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
21379
echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
21380
{ echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
21381
echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
21382
{ echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
21383
echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
21384
{ echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
21385
echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
21386
{ echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
21387
echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
21388
{ echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
21389
echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
21392
## ------------------------------------------ ##
21393
## Report this to the AC_PACKAGE_NAME lists. ##
21394
## ------------------------------------------ ##
21397
sed "s/^/$as_me: WARNING: /" >&2
21400
echo "$as_me:$LINENO: checking for jpeglib.h" >&5
21401
echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
21402
if test "${ac_cv_header_jpeglib_h+set}" = set; then
21403
echo $ECHO_N "(cached) $ECHO_C" >&6
21405
ac_cv_header_jpeglib_h=$ac_header_preproc
21407
echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21408
echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21411
if test $ac_cv_header_jpeglib_h = yes; then
21418
if test "${ac_cv_header_tiffio_h+set}" = set; then
21419
echo "$as_me:$LINENO: checking for tiffio.h" >&5
21420
echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21421
if test "${ac_cv_header_tiffio_h+set}" = set; then
21422
echo $ECHO_N "(cached) $ECHO_C" >&6
21424
echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21425
echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21427
# Is the header compilable?
21428
echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21429
echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21430
cat >conftest.$ac_ext <<_ACEOF
21433
cat confdefs.h >>conftest.$ac_ext
21434
cat >>conftest.$ac_ext <<_ACEOF
21435
/* end confdefs.h. */
21436
$ac_includes_default
21437
#include <tiffio.h>
21439
rm -f conftest.$ac_objext
21440
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21441
(eval $ac_compile) 2>conftest.er1
21443
grep -v '^ *+' conftest.er1 >conftest.err
21445
cat conftest.err >&5
21446
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447
(exit $ac_status); } &&
21448
{ ac_try='test -z "$ac_c_werror_flag"
21449
|| test ! -s conftest.err'
21450
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21451
(eval $ac_try) 2>&5
21453
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454
(exit $ac_status); }; } &&
21455
{ ac_try='test -s conftest.$ac_objext'
21456
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21457
(eval $ac_try) 2>&5
21459
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460
(exit $ac_status); }; }; then
21461
ac_header_compiler=yes
21463
echo "$as_me: failed program was:" >&5
21464
sed 's/^/| /' conftest.$ac_ext >&5
21466
ac_header_compiler=no
21468
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21469
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21470
echo "${ECHO_T}$ac_header_compiler" >&6
21472
# Is the header present?
21473
echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21474
echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21475
cat >conftest.$ac_ext <<_ACEOF
21478
cat confdefs.h >>conftest.$ac_ext
21479
cat >>conftest.$ac_ext <<_ACEOF
21480
/* end confdefs.h. */
21481
#include <tiffio.h>
21483
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21484
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21486
grep -v '^ *+' conftest.er1 >conftest.err
21488
cat conftest.err >&5
21489
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490
(exit $ac_status); } >/dev/null; then
21491
if test -s conftest.err; then
21492
ac_cpp_err=$ac_c_preproc_warn_flag
21493
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21500
if test -z "$ac_cpp_err"; then
21501
ac_header_preproc=yes
21503
echo "$as_me: failed program was:" >&5
21504
sed 's/^/| /' conftest.$ac_ext >&5
21506
ac_header_preproc=no
21508
rm -f conftest.err conftest.$ac_ext
21509
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21510
echo "${ECHO_T}$ac_header_preproc" >&6
21512
# So? What about this header?
21513
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21515
{ echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21516
echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21517
{ echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21518
echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21519
ac_header_preproc=yes
21522
{ echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21523
echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
21524
{ echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21525
echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21526
{ echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21527
echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21528
{ echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21529
echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
21530
{ echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21531
echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
21532
{ echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21533
echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
21536
## ------------------------------------------ ##
21537
## Report this to the AC_PACKAGE_NAME lists. ##
21538
## ------------------------------------------ ##
21541
sed "s/^/$as_me: WARNING: /" >&2
21544
echo "$as_me:$LINENO: checking for tiffio.h" >&5
21545
echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21546
if test "${ac_cv_header_tiffio_h+set}" = set; then
21547
echo $ECHO_N "(cached) $ECHO_C" >&6
21549
ac_cv_header_tiffio_h=$ac_header_preproc
21551
echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21552
echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21555
if test $ac_cv_header_tiffio_h = yes; then
21562
if test "${ac_cv_header_png_h+set}" = set; then
21563
echo "$as_me:$LINENO: checking for png.h" >&5
21564
echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21565
if test "${ac_cv_header_png_h+set}" = set; then
21566
echo $ECHO_N "(cached) $ECHO_C" >&6
21568
echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21569
echo "${ECHO_T}$ac_cv_header_png_h" >&6
21571
# Is the header compilable?
21572
echo "$as_me:$LINENO: checking png.h usability" >&5
21573
echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
21574
cat >conftest.$ac_ext <<_ACEOF
21577
cat confdefs.h >>conftest.$ac_ext
21578
cat >>conftest.$ac_ext <<_ACEOF
21579
/* end confdefs.h. */
21580
$ac_includes_default
21583
rm -f conftest.$ac_objext
21584
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21585
(eval $ac_compile) 2>conftest.er1
21587
grep -v '^ *+' conftest.er1 >conftest.err
21589
cat conftest.err >&5
21590
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591
(exit $ac_status); } &&
21592
{ ac_try='test -z "$ac_c_werror_flag"
21593
|| test ! -s conftest.err'
21594
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21595
(eval $ac_try) 2>&5
21597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598
(exit $ac_status); }; } &&
21599
{ ac_try='test -s conftest.$ac_objext'
21600
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21601
(eval $ac_try) 2>&5
21603
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604
(exit $ac_status); }; }; then
21605
ac_header_compiler=yes
21607
echo "$as_me: failed program was:" >&5
21608
sed 's/^/| /' conftest.$ac_ext >&5
21610
ac_header_compiler=no
21612
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21613
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21614
echo "${ECHO_T}$ac_header_compiler" >&6
21616
# Is the header present?
21617
echo "$as_me:$LINENO: checking png.h presence" >&5
21618
echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
21619
cat >conftest.$ac_ext <<_ACEOF
21622
cat confdefs.h >>conftest.$ac_ext
21623
cat >>conftest.$ac_ext <<_ACEOF
21624
/* end confdefs.h. */
21627
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21628
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21630
grep -v '^ *+' conftest.er1 >conftest.err
21632
cat conftest.err >&5
21633
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634
(exit $ac_status); } >/dev/null; then
21635
if test -s conftest.err; then
21636
ac_cpp_err=$ac_c_preproc_warn_flag
21637
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21644
if test -z "$ac_cpp_err"; then
21645
ac_header_preproc=yes
21647
echo "$as_me: failed program was:" >&5
21648
sed 's/^/| /' conftest.$ac_ext >&5
21650
ac_header_preproc=no
21652
rm -f conftest.err conftest.$ac_ext
21653
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21654
echo "${ECHO_T}$ac_header_preproc" >&6
21656
# So? What about this header?
21657
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21659
{ echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
21660
echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21661
{ echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
21662
echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
21663
ac_header_preproc=yes
21666
{ echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
21667
echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
21668
{ echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
21669
echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
21670
{ echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
21671
echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
21672
{ echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
21673
echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
21674
{ echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
21675
echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
21676
{ echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
21677
echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
21680
## ------------------------------------------ ##
21681
## Report this to the AC_PACKAGE_NAME lists. ##
21682
## ------------------------------------------ ##
21685
sed "s/^/$as_me: WARNING: /" >&2
21688
echo "$as_me:$LINENO: checking for png.h" >&5
21689
echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21690
if test "${ac_cv_header_png_h+set}" = set; then
21691
echo $ECHO_N "(cached) $ECHO_C" >&6
21693
ac_cv_header_png_h=$ac_header_preproc
21695
echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21696
echo "${ECHO_T}$ac_cv_header_png_h" >&6
21699
if test $ac_cv_header_png_h = yes; then
21706
if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
21707
echo "$as_me:$LINENO: checking for lcms/lcms.h" >&5
21708
echo $ECHO_N "checking for lcms/lcms.h... $ECHO_C" >&6
21709
if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
21710
echo $ECHO_N "(cached) $ECHO_C" >&6
21712
echo "$as_me:$LINENO: result: $ac_cv_header_lcms_lcms_h" >&5
21713
echo "${ECHO_T}$ac_cv_header_lcms_lcms_h" >&6
21715
# Is the header compilable?
21716
echo "$as_me:$LINENO: checking lcms/lcms.h usability" >&5
21717
echo $ECHO_N "checking lcms/lcms.h usability... $ECHO_C" >&6
21718
cat >conftest.$ac_ext <<_ACEOF
21721
cat confdefs.h >>conftest.$ac_ext
21722
cat >>conftest.$ac_ext <<_ACEOF
21723
/* end confdefs.h. */
21724
$ac_includes_default
21725
#include <lcms/lcms.h>
21727
rm -f conftest.$ac_objext
21728
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21729
(eval $ac_compile) 2>conftest.er1
21731
grep -v '^ *+' conftest.er1 >conftest.err
21733
cat conftest.err >&5
21734
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735
(exit $ac_status); } &&
21736
{ ac_try='test -z "$ac_c_werror_flag"
21737
|| test ! -s conftest.err'
21738
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21739
(eval $ac_try) 2>&5
21741
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742
(exit $ac_status); }; } &&
21743
{ ac_try='test -s conftest.$ac_objext'
21744
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21745
(eval $ac_try) 2>&5
21747
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748
(exit $ac_status); }; }; then
21749
ac_header_compiler=yes
21751
echo "$as_me: failed program was:" >&5
21752
sed 's/^/| /' conftest.$ac_ext >&5
21754
ac_header_compiler=no
21756
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21757
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21758
echo "${ECHO_T}$ac_header_compiler" >&6
21760
# Is the header present?
21761
echo "$as_me:$LINENO: checking lcms/lcms.h presence" >&5
21762
echo $ECHO_N "checking lcms/lcms.h presence... $ECHO_C" >&6
21763
cat >conftest.$ac_ext <<_ACEOF
21766
cat confdefs.h >>conftest.$ac_ext
21767
cat >>conftest.$ac_ext <<_ACEOF
21768
/* end confdefs.h. */
21769
#include <lcms/lcms.h>
21771
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21772
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21774
grep -v '^ *+' conftest.er1 >conftest.err
21776
cat conftest.err >&5
21777
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778
(exit $ac_status); } >/dev/null; then
21779
if test -s conftest.err; then
21780
ac_cpp_err=$ac_c_preproc_warn_flag
21781
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21788
if test -z "$ac_cpp_err"; then
21789
ac_header_preproc=yes
21791
echo "$as_me: failed program was:" >&5
21792
sed 's/^/| /' conftest.$ac_ext >&5
21794
ac_header_preproc=no
21796
rm -f conftest.err conftest.$ac_ext
21797
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21798
echo "${ECHO_T}$ac_header_preproc" >&6
21800
# So? What about this header?
21801
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21803
{ echo "$as_me:$LINENO: WARNING: lcms/lcms.h: accepted by the compiler, rejected by the preprocessor!" >&5
21804
echo "$as_me: WARNING: lcms/lcms.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21805
{ echo "$as_me:$LINENO: WARNING: lcms/lcms.h: proceeding with the compiler's result" >&5
21806
echo "$as_me: WARNING: lcms/lcms.h: proceeding with the compiler's result" >&2;}
21807
ac_header_preproc=yes
21810
{ echo "$as_me:$LINENO: WARNING: lcms/lcms.h: present but cannot be compiled" >&5
21811
echo "$as_me: WARNING: lcms/lcms.h: present but cannot be compiled" >&2;}
21812
{ echo "$as_me:$LINENO: WARNING: lcms/lcms.h: check for missing prerequisite headers?" >&5
21813
echo "$as_me: WARNING: lcms/lcms.h: check for missing prerequisite headers?" >&2;}
21814
{ echo "$as_me:$LINENO: WARNING: lcms/lcms.h: see the Autoconf documentation" >&5
21815
echo "$as_me: WARNING: lcms/lcms.h: see the Autoconf documentation" >&2;}
21816
{ echo "$as_me:$LINENO: WARNING: lcms/lcms.h: section \"Present But Cannot Be Compiled\"" >&5
21817
echo "$as_me: WARNING: lcms/lcms.h: section \"Present But Cannot Be Compiled\"" >&2;}
21818
{ echo "$as_me:$LINENO: WARNING: lcms/lcms.h: proceeding with the preprocessor's result" >&5
21819
echo "$as_me: WARNING: lcms/lcms.h: proceeding with the preprocessor's result" >&2;}
21820
{ echo "$as_me:$LINENO: WARNING: lcms/lcms.h: in the future, the compiler will take precedence" >&5
21821
echo "$as_me: WARNING: lcms/lcms.h: in the future, the compiler will take precedence" >&2;}
21824
## ------------------------------------------ ##
21825
## Report this to the AC_PACKAGE_NAME lists. ##
21826
## ------------------------------------------ ##
21829
sed "s/^/$as_me: WARNING: /" >&2
21832
echo "$as_me:$LINENO: checking for lcms/lcms.h" >&5
21833
echo $ECHO_N "checking for lcms/lcms.h... $ECHO_C" >&6
21834
if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
21835
echo $ECHO_N "(cached) $ECHO_C" >&6
21837
ac_cv_header_lcms_lcms_h=$ac_header_preproc
21839
echo "$as_me:$LINENO: result: $ac_cv_header_lcms_lcms_h" >&5
21840
echo "${ECHO_T}$ac_cv_header_lcms_lcms_h" >&6
21843
if test $ac_cv_header_lcms_lcms_h = yes; then
21850
if test "${ac_cv_header_libmng_h+set}" = set; then
21851
echo "$as_me:$LINENO: checking for libmng.h" >&5
21852
echo $ECHO_N "checking for libmng.h... $ECHO_C" >&6
21853
if test "${ac_cv_header_libmng_h+set}" = set; then
21854
echo $ECHO_N "(cached) $ECHO_C" >&6
21856
echo "$as_me:$LINENO: result: $ac_cv_header_libmng_h" >&5
21857
echo "${ECHO_T}$ac_cv_header_libmng_h" >&6
21859
# Is the header compilable?
21860
echo "$as_me:$LINENO: checking libmng.h usability" >&5
21861
echo $ECHO_N "checking libmng.h usability... $ECHO_C" >&6
21862
cat >conftest.$ac_ext <<_ACEOF
21865
cat confdefs.h >>conftest.$ac_ext
21866
cat >>conftest.$ac_ext <<_ACEOF
21867
/* end confdefs.h. */
21868
$ac_includes_default
21869
#include <libmng.h>
21871
rm -f conftest.$ac_objext
21872
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21873
(eval $ac_compile) 2>conftest.er1
21875
grep -v '^ *+' conftest.er1 >conftest.err
21877
cat conftest.err >&5
21878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879
(exit $ac_status); } &&
21880
{ ac_try='test -z "$ac_c_werror_flag"
21881
|| test ! -s conftest.err'
21882
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21883
(eval $ac_try) 2>&5
21885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886
(exit $ac_status); }; } &&
21887
{ ac_try='test -s conftest.$ac_objext'
21888
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21889
(eval $ac_try) 2>&5
21891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892
(exit $ac_status); }; }; then
21893
ac_header_compiler=yes
21895
echo "$as_me: failed program was:" >&5
21896
sed 's/^/| /' conftest.$ac_ext >&5
21898
ac_header_compiler=no
21900
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21901
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21902
echo "${ECHO_T}$ac_header_compiler" >&6
21904
# Is the header present?
21905
echo "$as_me:$LINENO: checking libmng.h presence" >&5
21906
echo $ECHO_N "checking libmng.h presence... $ECHO_C" >&6
21907
cat >conftest.$ac_ext <<_ACEOF
21910
cat confdefs.h >>conftest.$ac_ext
21911
cat >>conftest.$ac_ext <<_ACEOF
21912
/* end confdefs.h. */
21913
#include <libmng.h>
21915
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21916
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21918
grep -v '^ *+' conftest.er1 >conftest.err
21920
cat conftest.err >&5
21921
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922
(exit $ac_status); } >/dev/null; then
21923
if test -s conftest.err; then
21924
ac_cpp_err=$ac_c_preproc_warn_flag
21925
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21932
if test -z "$ac_cpp_err"; then
21933
ac_header_preproc=yes
21935
echo "$as_me: failed program was:" >&5
21936
sed 's/^/| /' conftest.$ac_ext >&5
21938
ac_header_preproc=no
21940
rm -f conftest.err conftest.$ac_ext
21941
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21942
echo "${ECHO_T}$ac_header_preproc" >&6
21944
# So? What about this header?
21945
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21947
{ echo "$as_me:$LINENO: WARNING: libmng.h: accepted by the compiler, rejected by the preprocessor!" >&5
21948
echo "$as_me: WARNING: libmng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21949
{ echo "$as_me:$LINENO: WARNING: libmng.h: proceeding with the compiler's result" >&5
21950
echo "$as_me: WARNING: libmng.h: proceeding with the compiler's result" >&2;}
21951
ac_header_preproc=yes
21954
{ echo "$as_me:$LINENO: WARNING: libmng.h: present but cannot be compiled" >&5
21955
echo "$as_me: WARNING: libmng.h: present but cannot be compiled" >&2;}
21956
{ echo "$as_me:$LINENO: WARNING: libmng.h: check for missing prerequisite headers?" >&5
21957
echo "$as_me: WARNING: libmng.h: check for missing prerequisite headers?" >&2;}
21958
{ echo "$as_me:$LINENO: WARNING: libmng.h: see the Autoconf documentation" >&5
21959
echo "$as_me: WARNING: libmng.h: see the Autoconf documentation" >&2;}
21960
{ echo "$as_me:$LINENO: WARNING: libmng.h: section \"Present But Cannot Be Compiled\"" >&5
21961
echo "$as_me: WARNING: libmng.h: section \"Present But Cannot Be Compiled\"" >&2;}
21962
{ echo "$as_me:$LINENO: WARNING: libmng.h: proceeding with the preprocessor's result" >&5
21963
echo "$as_me: WARNING: libmng.h: proceeding with the preprocessor's result" >&2;}
21964
{ echo "$as_me:$LINENO: WARNING: libmng.h: in the future, the compiler will take precedence" >&5
21965
echo "$as_me: WARNING: libmng.h: in the future, the compiler will take precedence" >&2;}
21968
## ------------------------------------------ ##
21969
## Report this to the AC_PACKAGE_NAME lists. ##
21970
## ------------------------------------------ ##
21973
sed "s/^/$as_me: WARNING: /" >&2
21976
echo "$as_me:$LINENO: checking for libmng.h" >&5
21977
echo $ECHO_N "checking for libmng.h... $ECHO_C" >&6
21978
if test "${ac_cv_header_libmng_h+set}" = set; then
21979
echo $ECHO_N "(cached) $ECHO_C" >&6
21981
ac_cv_header_libmng_h=$ac_header_preproc
21983
echo "$as_me:$LINENO: result: $ac_cv_header_libmng_h" >&5
21984
echo "${ECHO_T}$ac_cv_header_libmng_h" >&6
21987
if test $ac_cv_header_libmng_h = yes; then
21994
if test "${ac_cv_header_GL_gl_h+set}" = set; then
21995
echo "$as_me:$LINENO: checking for GL/gl.h" >&5
21996
echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
21997
if test "${ac_cv_header_GL_gl_h+set}" = set; then
21998
echo $ECHO_N "(cached) $ECHO_C" >&6
22000
echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
22001
echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
22003
# Is the header compilable?
22004
echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
22005
echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
22006
cat >conftest.$ac_ext <<_ACEOF
22009
cat confdefs.h >>conftest.$ac_ext
22010
cat >>conftest.$ac_ext <<_ACEOF
22011
/* end confdefs.h. */
22012
$ac_includes_default
22015
rm -f conftest.$ac_objext
22016
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22017
(eval $ac_compile) 2>conftest.er1
22019
grep -v '^ *+' conftest.er1 >conftest.err
22021
cat conftest.err >&5
22022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023
(exit $ac_status); } &&
22024
{ ac_try='test -z "$ac_c_werror_flag"
22025
|| test ! -s conftest.err'
22026
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22027
(eval $ac_try) 2>&5
22029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030
(exit $ac_status); }; } &&
22031
{ ac_try='test -s conftest.$ac_objext'
22032
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22033
(eval $ac_try) 2>&5
22035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036
(exit $ac_status); }; }; then
22037
ac_header_compiler=yes
22039
echo "$as_me: failed program was:" >&5
22040
sed 's/^/| /' conftest.$ac_ext >&5
22042
ac_header_compiler=no
22044
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22045
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22046
echo "${ECHO_T}$ac_header_compiler" >&6
22048
# Is the header present?
22049
echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
22050
echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
22051
cat >conftest.$ac_ext <<_ACEOF
22054
cat confdefs.h >>conftest.$ac_ext
22055
cat >>conftest.$ac_ext <<_ACEOF
22056
/* end confdefs.h. */
22059
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22060
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22062
grep -v '^ *+' conftest.er1 >conftest.err
22064
cat conftest.err >&5
22065
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066
(exit $ac_status); } >/dev/null; then
22067
if test -s conftest.err; then
22068
ac_cpp_err=$ac_c_preproc_warn_flag
22069
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22076
if test -z "$ac_cpp_err"; then
22077
ac_header_preproc=yes
22079
echo "$as_me: failed program was:" >&5
22080
sed 's/^/| /' conftest.$ac_ext >&5
22082
ac_header_preproc=no
22084
rm -f conftest.err conftest.$ac_ext
22085
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22086
echo "${ECHO_T}$ac_header_preproc" >&6
22088
# So? What about this header?
22089
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22091
{ echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22092
echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22093
{ echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
22094
echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
22095
ac_header_preproc=yes
22098
{ echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
22099
echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
22100
{ echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
22101
echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
22102
{ echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
22103
echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
22104
{ echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
22105
echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
22106
{ echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
22107
echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
22108
{ echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
22109
echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
22112
## ------------------------------------------ ##
22113
## Report this to the AC_PACKAGE_NAME lists. ##
22114
## ------------------------------------------ ##
22117
sed "s/^/$as_me: WARNING: /" >&2
22120
echo "$as_me:$LINENO: checking for GL/gl.h" >&5
22121
echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
22122
if test "${ac_cv_header_GL_gl_h+set}" = set; then
22123
echo $ECHO_N "(cached) $ECHO_C" >&6
22125
ac_cv_header_GL_gl_h=$ac_header_preproc
22127
echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
22128
echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
22131
if test $ac_cv_header_GL_gl_h = yes; then
22138
if test "${ac_cv_header_d3d8_h+set}" = set; then
22139
echo "$as_me:$LINENO: checking for d3d8.h" >&5
22140
echo $ECHO_N "checking for d3d8.h... $ECHO_C" >&6
22141
if test "${ac_cv_header_d3d8_h+set}" = set; then
22142
echo $ECHO_N "(cached) $ECHO_C" >&6
22144
echo "$as_me:$LINENO: result: $ac_cv_header_d3d8_h" >&5
22145
echo "${ECHO_T}$ac_cv_header_d3d8_h" >&6
22147
# Is the header compilable?
22148
echo "$as_me:$LINENO: checking d3d8.h usability" >&5
22149
echo $ECHO_N "checking d3d8.h usability... $ECHO_C" >&6
22150
cat >conftest.$ac_ext <<_ACEOF
22153
cat confdefs.h >>conftest.$ac_ext
22154
cat >>conftest.$ac_ext <<_ACEOF
22155
/* end confdefs.h. */
22156
$ac_includes_default
22159
rm -f conftest.$ac_objext
22160
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22161
(eval $ac_compile) 2>conftest.er1
22163
grep -v '^ *+' conftest.er1 >conftest.err
22165
cat conftest.err >&5
22166
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167
(exit $ac_status); } &&
22168
{ ac_try='test -z "$ac_c_werror_flag"
22169
|| test ! -s conftest.err'
22170
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22171
(eval $ac_try) 2>&5
22173
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174
(exit $ac_status); }; } &&
22175
{ ac_try='test -s conftest.$ac_objext'
22176
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22177
(eval $ac_try) 2>&5
22179
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180
(exit $ac_status); }; }; then
22181
ac_header_compiler=yes
22183
echo "$as_me: failed program was:" >&5
22184
sed 's/^/| /' conftest.$ac_ext >&5
22186
ac_header_compiler=no
22188
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22189
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22190
echo "${ECHO_T}$ac_header_compiler" >&6
22192
# Is the header present?
22193
echo "$as_me:$LINENO: checking d3d8.h presence" >&5
22194
echo $ECHO_N "checking d3d8.h presence... $ECHO_C" >&6
22195
cat >conftest.$ac_ext <<_ACEOF
22198
cat confdefs.h >>conftest.$ac_ext
22199
cat >>conftest.$ac_ext <<_ACEOF
22200
/* end confdefs.h. */
22203
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22204
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22206
grep -v '^ *+' conftest.er1 >conftest.err
22208
cat conftest.err >&5
22209
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210
(exit $ac_status); } >/dev/null; then
22211
if test -s conftest.err; then
22212
ac_cpp_err=$ac_c_preproc_warn_flag
22213
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22220
if test -z "$ac_cpp_err"; then
22221
ac_header_preproc=yes
22223
echo "$as_me: failed program was:" >&5
22224
sed 's/^/| /' conftest.$ac_ext >&5
22226
ac_header_preproc=no
22228
rm -f conftest.err conftest.$ac_ext
22229
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22230
echo "${ECHO_T}$ac_header_preproc" >&6
22232
# So? What about this header?
22233
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22235
{ echo "$as_me:$LINENO: WARNING: d3d8.h: accepted by the compiler, rejected by the preprocessor!" >&5
22236
echo "$as_me: WARNING: d3d8.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22237
{ echo "$as_me:$LINENO: WARNING: d3d8.h: proceeding with the compiler's result" >&5
22238
echo "$as_me: WARNING: d3d8.h: proceeding with the compiler's result" >&2;}
22239
ac_header_preproc=yes
22242
{ echo "$as_me:$LINENO: WARNING: d3d8.h: present but cannot be compiled" >&5
22243
echo "$as_me: WARNING: d3d8.h: present but cannot be compiled" >&2;}
22244
{ echo "$as_me:$LINENO: WARNING: d3d8.h: check for missing prerequisite headers?" >&5
22245
echo "$as_me: WARNING: d3d8.h: check for missing prerequisite headers?" >&2;}
22246
{ echo "$as_me:$LINENO: WARNING: d3d8.h: see the Autoconf documentation" >&5
22247
echo "$as_me: WARNING: d3d8.h: see the Autoconf documentation" >&2;}
22248
{ echo "$as_me:$LINENO: WARNING: d3d8.h: section \"Present But Cannot Be Compiled\"" >&5
22249
echo "$as_me: WARNING: d3d8.h: section \"Present But Cannot Be Compiled\"" >&2;}
22250
{ echo "$as_me:$LINENO: WARNING: d3d8.h: proceeding with the preprocessor's result" >&5
22251
echo "$as_me: WARNING: d3d8.h: proceeding with the preprocessor's result" >&2;}
22252
{ echo "$as_me:$LINENO: WARNING: d3d8.h: in the future, the compiler will take precedence" >&5
22253
echo "$as_me: WARNING: d3d8.h: in the future, the compiler will take precedence" >&2;}
22256
## ------------------------------------------ ##
22257
## Report this to the AC_PACKAGE_NAME lists. ##
22258
## ------------------------------------------ ##
22261
sed "s/^/$as_me: WARNING: /" >&2
22264
echo "$as_me:$LINENO: checking for d3d8.h" >&5
22265
echo $ECHO_N "checking for d3d8.h... $ECHO_C" >&6
22266
if test "${ac_cv_header_d3d8_h+set}" = set; then
22267
echo $ECHO_N "(cached) $ECHO_C" >&6
22269
ac_cv_header_d3d8_h=$ac_header_preproc
22271
echo "$as_me:$LINENO: result: $ac_cv_header_d3d8_h" >&5
22272
echo "${ECHO_T}$ac_cv_header_d3d8_h" >&6
22275
if test $ac_cv_header_d3d8_h = yes; then
22282
if test "${ac_cv_header_SDL_h+set}" = set; then
22283
echo "$as_me:$LINENO: checking for SDL.h" >&5
22284
echo $ECHO_N "checking for SDL.h... $ECHO_C" >&6
22285
if test "${ac_cv_header_SDL_h+set}" = set; then
22286
echo $ECHO_N "(cached) $ECHO_C" >&6
22288
echo "$as_me:$LINENO: result: $ac_cv_header_SDL_h" >&5
22289
echo "${ECHO_T}$ac_cv_header_SDL_h" >&6
22291
# Is the header compilable?
22292
echo "$as_me:$LINENO: checking SDL.h usability" >&5
22293
echo $ECHO_N "checking SDL.h usability... $ECHO_C" >&6
22294
cat >conftest.$ac_ext <<_ACEOF
22297
cat confdefs.h >>conftest.$ac_ext
22298
cat >>conftest.$ac_ext <<_ACEOF
22299
/* end confdefs.h. */
22300
$ac_includes_default
22303
rm -f conftest.$ac_objext
22304
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22305
(eval $ac_compile) 2>conftest.er1
22307
grep -v '^ *+' conftest.er1 >conftest.err
22309
cat conftest.err >&5
22310
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311
(exit $ac_status); } &&
22312
{ ac_try='test -z "$ac_c_werror_flag"
22313
|| test ! -s conftest.err'
22314
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22315
(eval $ac_try) 2>&5
22317
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318
(exit $ac_status); }; } &&
22319
{ ac_try='test -s conftest.$ac_objext'
22320
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22321
(eval $ac_try) 2>&5
22323
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324
(exit $ac_status); }; }; then
22325
ac_header_compiler=yes
22327
echo "$as_me: failed program was:" >&5
22328
sed 's/^/| /' conftest.$ac_ext >&5
22330
ac_header_compiler=no
22332
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22333
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22334
echo "${ECHO_T}$ac_header_compiler" >&6
22336
# Is the header present?
22337
echo "$as_me:$LINENO: checking SDL.h presence" >&5
22338
echo $ECHO_N "checking SDL.h presence... $ECHO_C" >&6
22339
cat >conftest.$ac_ext <<_ACEOF
22342
cat confdefs.h >>conftest.$ac_ext
22343
cat >>conftest.$ac_ext <<_ACEOF
22344
/* end confdefs.h. */
22347
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22348
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22350
grep -v '^ *+' conftest.er1 >conftest.err
22352
cat conftest.err >&5
22353
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354
(exit $ac_status); } >/dev/null; then
22355
if test -s conftest.err; then
22356
ac_cpp_err=$ac_c_preproc_warn_flag
22357
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22364
if test -z "$ac_cpp_err"; then
22365
ac_header_preproc=yes
22367
echo "$as_me: failed program was:" >&5
22368
sed 's/^/| /' conftest.$ac_ext >&5
22370
ac_header_preproc=no
22372
rm -f conftest.err conftest.$ac_ext
22373
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22374
echo "${ECHO_T}$ac_header_preproc" >&6
22376
# So? What about this header?
22377
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22379
{ echo "$as_me:$LINENO: WARNING: SDL.h: accepted by the compiler, rejected by the preprocessor!" >&5
22380
echo "$as_me: WARNING: SDL.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22381
{ echo "$as_me:$LINENO: WARNING: SDL.h: proceeding with the compiler's result" >&5
22382
echo "$as_me: WARNING: SDL.h: proceeding with the compiler's result" >&2;}
22383
ac_header_preproc=yes
22386
{ echo "$as_me:$LINENO: WARNING: SDL.h: present but cannot be compiled" >&5
22387
echo "$as_me: WARNING: SDL.h: present but cannot be compiled" >&2;}
22388
{ echo "$as_me:$LINENO: WARNING: SDL.h: check for missing prerequisite headers?" >&5
22389
echo "$as_me: WARNING: SDL.h: check for missing prerequisite headers?" >&2;}
22390
{ echo "$as_me:$LINENO: WARNING: SDL.h: see the Autoconf documentation" >&5
22391
echo "$as_me: WARNING: SDL.h: see the Autoconf documentation" >&2;}
22392
{ echo "$as_me:$LINENO: WARNING: SDL.h: section \"Present But Cannot Be Compiled\"" >&5
22393
echo "$as_me: WARNING: SDL.h: section \"Present But Cannot Be Compiled\"" >&2;}
22394
{ echo "$as_me:$LINENO: WARNING: SDL.h: proceeding with the preprocessor's result" >&5
22395
echo "$as_me: WARNING: SDL.h: proceeding with the preprocessor's result" >&2;}
22396
{ echo "$as_me:$LINENO: WARNING: SDL.h: in the future, the compiler will take precedence" >&5
22397
echo "$as_me: WARNING: SDL.h: in the future, the compiler will take precedence" >&2;}
22400
## ------------------------------------------ ##
22401
## Report this to the AC_PACKAGE_NAME lists. ##
22402
## ------------------------------------------ ##
22405
sed "s/^/$as_me: WARNING: /" >&2
22408
echo "$as_me:$LINENO: checking for SDL.h" >&5
22409
echo $ECHO_N "checking for SDL.h... $ECHO_C" >&6
22410
if test "${ac_cv_header_SDL_h+set}" = set; then
22411
echo $ECHO_N "(cached) $ECHO_C" >&6
22413
ac_cv_header_SDL_h=$ac_header_preproc
22415
echo "$as_me:$LINENO: result: $ac_cv_header_SDL_h" >&5
22416
echo "${ECHO_T}$ac_cv_header_SDL_h" >&6
22419
if test $ac_cv_header_SDL_h = yes; then
22426
if test "${ac_cv_header_zlib_h+set}" = set; then
22427
echo "$as_me:$LINENO: checking for zlib.h" >&5
22428
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22429
if test "${ac_cv_header_zlib_h+set}" = set; then
22430
echo $ECHO_N "(cached) $ECHO_C" >&6
22432
echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22433
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22435
# Is the header compilable?
22436
echo "$as_me:$LINENO: checking zlib.h usability" >&5
22437
echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22438
cat >conftest.$ac_ext <<_ACEOF
22441
cat confdefs.h >>conftest.$ac_ext
22442
cat >>conftest.$ac_ext <<_ACEOF
22443
/* end confdefs.h. */
22444
$ac_includes_default
22447
rm -f conftest.$ac_objext
22448
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22449
(eval $ac_compile) 2>conftest.er1
22451
grep -v '^ *+' conftest.er1 >conftest.err
22453
cat conftest.err >&5
22454
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455
(exit $ac_status); } &&
22456
{ ac_try='test -z "$ac_c_werror_flag"
22457
|| test ! -s conftest.err'
22458
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22459
(eval $ac_try) 2>&5
22461
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462
(exit $ac_status); }; } &&
22463
{ ac_try='test -s conftest.$ac_objext'
22464
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22465
(eval $ac_try) 2>&5
22467
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468
(exit $ac_status); }; }; then
22469
ac_header_compiler=yes
22471
echo "$as_me: failed program was:" >&5
22472
sed 's/^/| /' conftest.$ac_ext >&5
22474
ac_header_compiler=no
22476
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22477
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22478
echo "${ECHO_T}$ac_header_compiler" >&6
22480
# Is the header present?
22481
echo "$as_me:$LINENO: checking zlib.h presence" >&5
22482
echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22483
cat >conftest.$ac_ext <<_ACEOF
22486
cat confdefs.h >>conftest.$ac_ext
22487
cat >>conftest.$ac_ext <<_ACEOF
22488
/* end confdefs.h. */
22491
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22492
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22494
grep -v '^ *+' conftest.er1 >conftest.err
22496
cat conftest.err >&5
22497
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498
(exit $ac_status); } >/dev/null; then
22499
if test -s conftest.err; then
22500
ac_cpp_err=$ac_c_preproc_warn_flag
22501
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22508
if test -z "$ac_cpp_err"; then
22509
ac_header_preproc=yes
22511
echo "$as_me: failed program was:" >&5
22512
sed 's/^/| /' conftest.$ac_ext >&5
22514
ac_header_preproc=no
22516
rm -f conftest.err conftest.$ac_ext
22517
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22518
echo "${ECHO_T}$ac_header_preproc" >&6
22520
# So? What about this header?
22521
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22523
{ echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22524
echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22525
{ echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22526
echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22527
ac_header_preproc=yes
22530
{ echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22531
echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
22532
{ echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22533
echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22534
{ echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22535
echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22536
{ echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22537
echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
22538
{ echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22539
echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
22540
{ echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22541
echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
22544
## ------------------------------------------ ##
22545
## Report this to the AC_PACKAGE_NAME lists. ##
22546
## ------------------------------------------ ##
22549
sed "s/^/$as_me: WARNING: /" >&2
22552
echo "$as_me:$LINENO: checking for zlib.h" >&5
22553
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22554
if test "${ac_cv_header_zlib_h+set}" = set; then
22555
echo $ECHO_N "(cached) $ECHO_C" >&6
22557
ac_cv_header_zlib_h=$ac_header_preproc
22559
echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22560
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22563
if test $ac_cv_header_zlib_h = yes; then
22572
if test "$no_jpeg" = "no" ; then
22573
echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
22574
echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
22575
if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
22576
echo $ECHO_N "(cached) $ECHO_C" >&6
22578
ac_check_lib_save_LIBS=$LIBS
22579
LIBS="-ljpeg $LIBS"
22580
cat >conftest.$ac_ext <<_ACEOF
22583
cat confdefs.h >>conftest.$ac_ext
22584
cat >>conftest.$ac_ext <<_ACEOF
22585
/* end confdefs.h. */
22587
/* Override any gcc2 internal prototype to avoid an error. */
22591
/* We use char because int might match the return type of a gcc2
22592
builtin and then its argument prototype would still apply. */
22593
char jpeg_start_decompress ();
22597
jpeg_start_decompress ();
22602
rm -f conftest.$ac_objext conftest$ac_exeext
22603
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22604
(eval $ac_link) 2>conftest.er1
22606
grep -v '^ *+' conftest.er1 >conftest.err
22608
cat conftest.err >&5
22609
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610
(exit $ac_status); } &&
22611
{ ac_try='test -z "$ac_c_werror_flag"
22612
|| test ! -s conftest.err'
22613
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22614
(eval $ac_try) 2>&5
22616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617
(exit $ac_status); }; } &&
22618
{ ac_try='test -s conftest$ac_exeext'
22619
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22620
(eval $ac_try) 2>&5
22622
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623
(exit $ac_status); }; }; then
22624
ac_cv_lib_jpeg_jpeg_start_decompress=yes
22626
echo "$as_me: failed program was:" >&5
22627
sed 's/^/| /' conftest.$ac_ext >&5
22629
ac_cv_lib_jpeg_jpeg_start_decompress=no
22631
rm -f conftest.err conftest.$ac_objext \
22632
conftest$ac_exeext conftest.$ac_ext
22633
LIBS=$ac_check_lib_save_LIBS
22635
echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
22636
echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
22637
if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
22643
if test "$LIBJPG" != "-ljpeg" ; then
22646
echo "$as_me:$LINENO: checking for jpeg_init_exif_field in -ljpeg" >&5
22647
echo $ECHO_N "checking for jpeg_init_exif_field in -ljpeg... $ECHO_C" >&6
22648
if test "${ac_cv_lib_jpeg_jpeg_init_exif_field+set}" = set; then
22649
echo $ECHO_N "(cached) $ECHO_C" >&6
22651
ac_check_lib_save_LIBS=$LIBS
22652
LIBS="-ljpeg $LIBS"
22653
cat >conftest.$ac_ext <<_ACEOF
22656
cat confdefs.h >>conftest.$ac_ext
22657
cat >>conftest.$ac_ext <<_ACEOF
22658
/* end confdefs.h. */
22660
/* Override any gcc2 internal prototype to avoid an error. */
22664
/* We use char because int might match the return type of a gcc2
22665
builtin and then its argument prototype would still apply. */
22666
char jpeg_init_exif_field ();
22670
jpeg_init_exif_field ();
22675
rm -f conftest.$ac_objext conftest$ac_exeext
22676
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22677
(eval $ac_link) 2>conftest.er1
22679
grep -v '^ *+' conftest.er1 >conftest.err
22681
cat conftest.err >&5
22682
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683
(exit $ac_status); } &&
22684
{ ac_try='test -z "$ac_c_werror_flag"
22685
|| test ! -s conftest.err'
22686
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22687
(eval $ac_try) 2>&5
22689
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690
(exit $ac_status); }; } &&
22691
{ ac_try='test -s conftest$ac_exeext'
22692
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22693
(eval $ac_try) 2>&5
22695
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22696
(exit $ac_status); }; }; then
22697
ac_cv_lib_jpeg_jpeg_init_exif_field=yes
22699
echo "$as_me: failed program was:" >&5
22700
sed 's/^/| /' conftest.$ac_ext >&5
22702
ac_cv_lib_jpeg_jpeg_init_exif_field=no
22704
rm -f conftest.err conftest.$ac_objext \
22705
conftest$ac_exeext conftest.$ac_ext
22706
LIBS=$ac_check_lib_save_LIBS
22708
echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_init_exif_field" >&5
22709
echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_init_exif_field" >&6
22710
if test $ac_cv_lib_jpeg_jpeg_init_exif_field = yes; then
22716
if test "$use_exif" = "no" ; then
22717
cat >>confdefs.h <<\_ACEOF
22718
#define IL_USE_JPEGLIB_UNMODIFIED 1
22722
cat >>confdefs.h <<\_ACEOF
22723
#define IL_USE_JPEGLIB_UNMODIFIED 1
22735
cat >>confdefs.h <<\_ACEOF
22736
#define IL_USE_JPEGLIB_UNMODIFIED 1
22741
if test "$no_tiff" = "no" ; then
22742
echo "$as_me:$LINENO: checking for TIFFReadRGBAImage in -ltiff" >&5
22743
echo $ECHO_N "checking for TIFFReadRGBAImage in -ltiff... $ECHO_C" >&6
22744
if test "${ac_cv_lib_tiff_TIFFReadRGBAImage+set}" = set; then
22745
echo $ECHO_N "(cached) $ECHO_C" >&6
22747
ac_check_lib_save_LIBS=$LIBS
22748
LIBS="-ltiff -lm $LIBS"
22749
cat >conftest.$ac_ext <<_ACEOF
22752
cat confdefs.h >>conftest.$ac_ext
22753
cat >>conftest.$ac_ext <<_ACEOF
22754
/* end confdefs.h. */
22756
/* Override any gcc2 internal prototype to avoid an error. */
22760
/* We use char because int might match the return type of a gcc2
22761
builtin and then its argument prototype would still apply. */
22762
char TIFFReadRGBAImage ();
22766
TIFFReadRGBAImage ();
22771
rm -f conftest.$ac_objext conftest$ac_exeext
22772
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22773
(eval $ac_link) 2>conftest.er1
22775
grep -v '^ *+' conftest.er1 >conftest.err
22777
cat conftest.err >&5
22778
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779
(exit $ac_status); } &&
22780
{ ac_try='test -z "$ac_c_werror_flag"
22781
|| test ! -s conftest.err'
22782
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22783
(eval $ac_try) 2>&5
22785
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786
(exit $ac_status); }; } &&
22787
{ ac_try='test -s conftest$ac_exeext'
22788
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22789
(eval $ac_try) 2>&5
22791
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792
(exit $ac_status); }; }; then
22793
ac_cv_lib_tiff_TIFFReadRGBAImage=yes
22795
echo "$as_me: failed program was:" >&5
22796
sed 's/^/| /' conftest.$ac_ext >&5
22798
ac_cv_lib_tiff_TIFFReadRGBAImage=no
22800
rm -f conftest.err conftest.$ac_objext \
22801
conftest$ac_exeext conftest.$ac_ext
22802
LIBS=$ac_check_lib_save_LIBS
22804
echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFReadRGBAImage" >&5
22805
echo "${ECHO_T}$ac_cv_lib_tiff_TIFFReadRGBAImage" >&6
22806
if test $ac_cv_lib_tiff_TIFFReadRGBAImage = yes; then
22812
if test "$LIBTIFF" != "-ltiff" ; then
22820
if test "$no_png" = "no" ; then
22821
echo "$as_me:$LINENO: checking for png_start_read_image in -lpng" >&5
22822
echo $ECHO_N "checking for png_start_read_image in -lpng... $ECHO_C" >&6
22823
if test "${ac_cv_lib_png_png_start_read_image+set}" = set; then
22824
echo $ECHO_N "(cached) $ECHO_C" >&6
22826
ac_check_lib_save_LIBS=$LIBS
22827
LIBS="-lpng `libpng-config --libs` $LIBS"
22828
cat >conftest.$ac_ext <<_ACEOF
22831
cat confdefs.h >>conftest.$ac_ext
22832
cat >>conftest.$ac_ext <<_ACEOF
22833
/* end confdefs.h. */
22835
/* Override any gcc2 internal prototype to avoid an error. */
22839
/* We use char because int might match the return type of a gcc2
22840
builtin and then its argument prototype would still apply. */
22841
char png_start_read_image ();
22845
png_start_read_image ();
22850
rm -f conftest.$ac_objext conftest$ac_exeext
22851
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22852
(eval $ac_link) 2>conftest.er1
22854
grep -v '^ *+' conftest.er1 >conftest.err
22856
cat conftest.err >&5
22857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858
(exit $ac_status); } &&
22859
{ ac_try='test -z "$ac_c_werror_flag"
22860
|| test ! -s conftest.err'
22861
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22862
(eval $ac_try) 2>&5
22864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865
(exit $ac_status); }; } &&
22866
{ ac_try='test -s conftest$ac_exeext'
22867
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22868
(eval $ac_try) 2>&5
22870
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871
(exit $ac_status); }; }; then
22872
ac_cv_lib_png_png_start_read_image=yes
22874
echo "$as_me: failed program was:" >&5
22875
sed 's/^/| /' conftest.$ac_ext >&5
22877
ac_cv_lib_png_png_start_read_image=no
22879
rm -f conftest.err conftest.$ac_objext \
22880
conftest$ac_exeext conftest.$ac_ext
22881
LIBS=$ac_check_lib_save_LIBS
22883
echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_start_read_image" >&5
22884
echo "${ECHO_T}$ac_cv_lib_png_png_start_read_image" >&6
22885
if test $ac_cv_lib_png_png_start_read_image = yes; then
22891
if test "$LIBPNG" != "-lpng" ; then
22899
if test "$no_lcms" = "no" ; then
22900
echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
22901
echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6
22902
if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
22903
echo $ECHO_N "(cached) $ECHO_C" >&6
22905
ac_check_lib_save_LIBS=$LIBS
22906
LIBS="-llcms -lm $LIBS"
22907
cat >conftest.$ac_ext <<_ACEOF
22910
cat confdefs.h >>conftest.$ac_ext
22911
cat >>conftest.$ac_ext <<_ACEOF
22912
/* end confdefs.h. */
22914
/* Override any gcc2 internal prototype to avoid an error. */
22918
/* We use char because int might match the return type of a gcc2
22919
builtin and then its argument prototype would still apply. */
22920
char cmsOpenProfileFromFile ();
22924
cmsOpenProfileFromFile ();
22929
rm -f conftest.$ac_objext conftest$ac_exeext
22930
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22931
(eval $ac_link) 2>conftest.er1
22933
grep -v '^ *+' conftest.er1 >conftest.err
22935
cat conftest.err >&5
22936
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937
(exit $ac_status); } &&
22938
{ ac_try='test -z "$ac_c_werror_flag"
22939
|| test ! -s conftest.err'
22940
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22941
(eval $ac_try) 2>&5
22943
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944
(exit $ac_status); }; } &&
22945
{ ac_try='test -s conftest$ac_exeext'
22946
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22947
(eval $ac_try) 2>&5
22949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950
(exit $ac_status); }; }; then
22951
ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
22953
echo "$as_me: failed program was:" >&5
22954
sed 's/^/| /' conftest.$ac_ext >&5
22956
ac_cv_lib_lcms_cmsOpenProfileFromFile=no
22958
rm -f conftest.err conftest.$ac_objext \
22959
conftest$ac_exeext conftest.$ac_ext
22960
LIBS=$ac_check_lib_save_LIBS
22962
echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
22963
echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6
22964
if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
22970
if test "$LIBLCMS" != "-llcms" ; then
22978
if test "$no_mng" = "no" ; then
22979
echo "$as_me:$LINENO: checking for mng_setcb_openstream in -lmng" >&5
22980
echo $ECHO_N "checking for mng_setcb_openstream in -lmng... $ECHO_C" >&6
22981
if test "${ac_cv_lib_mng_mng_setcb_openstream+set}" = set; then
22982
echo $ECHO_N "(cached) $ECHO_C" >&6
22984
ac_check_lib_save_LIBS=$LIBS
22986
cat >conftest.$ac_ext <<_ACEOF
22989
cat confdefs.h >>conftest.$ac_ext
22990
cat >>conftest.$ac_ext <<_ACEOF
22991
/* end confdefs.h. */
22993
/* Override any gcc2 internal prototype to avoid an error. */
22997
/* We use char because int might match the return type of a gcc2
22998
builtin and then its argument prototype would still apply. */
22999
char mng_setcb_openstream ();
23003
mng_setcb_openstream ();
23008
rm -f conftest.$ac_objext conftest$ac_exeext
23009
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23010
(eval $ac_link) 2>conftest.er1
23012
grep -v '^ *+' conftest.er1 >conftest.err
23014
cat conftest.err >&5
23015
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23016
(exit $ac_status); } &&
23017
{ ac_try='test -z "$ac_c_werror_flag"
23018
|| test ! -s conftest.err'
23019
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23020
(eval $ac_try) 2>&5
23022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023
(exit $ac_status); }; } &&
23024
{ ac_try='test -s conftest$ac_exeext'
23025
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23026
(eval $ac_try) 2>&5
23028
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029
(exit $ac_status); }; }; then
23030
ac_cv_lib_mng_mng_setcb_openstream=yes
23032
echo "$as_me: failed program was:" >&5
23033
sed 's/^/| /' conftest.$ac_ext >&5
23035
ac_cv_lib_mng_mng_setcb_openstream=no
23037
rm -f conftest.err conftest.$ac_objext \
23038
conftest$ac_exeext conftest.$ac_ext
23039
LIBS=$ac_check_lib_save_LIBS
23041
echo "$as_me:$LINENO: result: $ac_cv_lib_mng_mng_setcb_openstream" >&5
23042
echo "${ECHO_T}$ac_cv_lib_mng_mng_setcb_openstream" >&6
23043
if test $ac_cv_lib_mng_mng_setcb_openstream = yes; then
23049
if test "$LIBMNG" != "-lmng" ; then
23059
# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
23060
if test "${with_sdl_prefix+set}" = set; then
23061
withval="$with_sdl_prefix"
23062
sdl_prefix="$withval"
23067
# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
23068
if test "${with_sdl_exec_prefix+set}" = set; then
23069
withval="$with_sdl_exec_prefix"
23070
sdl_exec_prefix="$withval"
23074
# Check whether --enable-sdltest or --disable-sdltest was given.
23075
if test "${enable_sdltest+set}" = set; then
23076
enableval="$enable_sdltest"
23082
if test x$sdl_exec_prefix != x ; then
23083
sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
23084
if test x${SDL_CONFIG+set} != xset ; then
23085
SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
23088
if test x$sdl_prefix != x ; then
23089
sdl_args="$sdl_args --prefix=$sdl_prefix"
23090
if test x${SDL_CONFIG+set} != xset ; then
23091
SDL_CONFIG=$sdl_prefix/bin/sdl-config
23096
PATH="$prefix/bin:$prefix/usr/bin:$PATH"
23097
# Extract the first word of "sdl-config", so it can be a program name with args.
23098
set dummy sdl-config; ac_word=$2
23099
echo "$as_me:$LINENO: checking for $ac_word" >&5
23100
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23101
if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
23102
echo $ECHO_N "(cached) $ECHO_C" >&6
23104
case $SDL_CONFIG in
23106
ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
23109
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23110
for as_dir in $PATH
23113
test -z "$as_dir" && as_dir=.
23114
for ac_exec_ext in '' $ac_executable_extensions; do
23115
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23116
ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23117
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23123
test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
23127
SDL_CONFIG=$ac_cv_path_SDL_CONFIG
23129
if test -n "$SDL_CONFIG"; then
23130
echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
23131
echo "${ECHO_T}$SDL_CONFIG" >&6
23133
echo "$as_me:$LINENO: result: no" >&5
23134
echo "${ECHO_T}no" >&6
23137
min_sdl_version=1.2.5
23138
echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
23139
echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
23141
if test "$SDL_CONFIG" = "no" ; then
23144
SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
23145
SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
23147
sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
23148
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23149
sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
23150
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23151
sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
23152
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23158
if test "x$enable_sdltest" = "xyes" ; then
23159
ac_save_CFLAGS="$CFLAGS"
23160
ac_save_LIBS="$LIBS"
23161
CFLAGS="$CFLAGS $SDL_CFLAGS"
23162
LIBS="$LIBS $SDL_LIBS"
23164
if test "$cross_compiling" = yes; then
23165
echo $ac_n "cross compiling; assumed OK... $ac_c"
23167
cat >conftest.$ac_ext <<_ACEOF
23170
cat confdefs.h >>conftest.$ac_ext
23171
cat >>conftest.$ac_ext <<_ACEOF
23172
/* end confdefs.h. */
23175
#include <stdlib.h>
23176
#include <string.h>
23180
my_strdup (char *str)
23186
new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
23187
strcpy (new_str, str);
23195
int main (int argc, char *argv[])
23197
int major, minor, micro;
23200
/* This hangs on some systems (?)
23201
system ("touch conf.sdltest");
23203
{ FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
23205
/* HP/UX 9 (%@#!) writes to sscanf strings */
23206
tmp_version = my_strdup("$min_sdl_version");
23207
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
23208
printf("%s, bad version string\n", "$min_sdl_version");
23212
if (($sdl_major_version > major) ||
23213
(($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
23214
(($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
23220
printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
23221
printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
23222
printf("*** best to upgrade to the required version.\n");
23223
printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
23224
printf("*** to point to the correct copy of sdl-config, and remove the file\n");
23225
printf("*** config.cache before re-running configure\n");
23232
rm -f conftest$ac_exeext
23233
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23234
(eval $ac_link) 2>&5
23236
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23237
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23238
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23239
(eval $ac_try) 2>&5
23241
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23242
(exit $ac_status); }; }; then
23245
echo "$as_me: program exited with status $ac_status" >&5
23246
echo "$as_me: failed program was:" >&5
23247
sed 's/^/| /' conftest.$ac_ext >&5
23249
( exit $ac_status )
23252
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23254
CFLAGS="$ac_save_CFLAGS"
23255
LIBS="$ac_save_LIBS"
23258
if test "x$no_sdl" = x ; then
23259
echo "$as_me:$LINENO: result: yes" >&5
23260
echo "${ECHO_T}yes" >&6
23263
echo "$as_me:$LINENO: result: no" >&5
23264
echo "${ECHO_T}no" >&6
23265
if test "$SDL_CONFIG" = "no" ; then
23266
echo "*** The sdl-config script installed by SDL could not be found"
23267
echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
23268
echo "*** your path, or set the SDL_CONFIG environment variable to the"
23269
echo "*** full path to sdl-config."
23271
if test -f conf.sdltest ; then
23274
echo "*** Could not run SDL test program, checking why..."
23275
CFLAGS="$CFLAGS $SDL_CFLAGS"
23276
LIBS="$LIBS $SDL_LIBS"
23277
cat >conftest.$ac_ext <<_ACEOF
23280
cat confdefs.h >>conftest.$ac_ext
23281
cat >>conftest.$ac_ext <<_ACEOF
23282
/* end confdefs.h. */
23287
int main(int argc, char *argv[])
23290
#define main K_and_R_C_main
23300
rm -f conftest.$ac_objext conftest$ac_exeext
23301
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23302
(eval $ac_link) 2>conftest.er1
23304
grep -v '^ *+' conftest.er1 >conftest.err
23306
cat conftest.err >&5
23307
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308
(exit $ac_status); } &&
23309
{ ac_try='test -z "$ac_c_werror_flag"
23310
|| test ! -s conftest.err'
23311
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23312
(eval $ac_try) 2>&5
23314
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315
(exit $ac_status); }; } &&
23316
{ ac_try='test -s conftest$ac_exeext'
23317
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23318
(eval $ac_try) 2>&5
23320
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321
(exit $ac_status); }; }; then
23322
echo "*** The test program compiled, but did not run. This usually means"
23323
echo "*** that the run-time linker is not finding SDL or finding the wrong"
23324
echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
23325
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23326
echo "*** to the installed location Also, make sure you have run ldconfig if that"
23327
echo "*** is required on your system"
23329
echo "*** If you have an old version installed, it is best to remove it, although"
23330
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23332
echo "$as_me: failed program was:" >&5
23333
sed 's/^/| /' conftest.$ac_ext >&5
23335
echo "*** The test program failed to compile or link. See the file config.log for the"
23336
echo "*** exact error that occured. This usually means SDL was incorrectly installed"
23337
echo "*** or that you have moved SDL since it was installed. In the latter case, you"
23338
echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
23340
rm -f conftest.err conftest.$ac_objext \
23341
conftest$ac_exeext conftest.$ac_ext
23342
CFLAGS="$ac_save_CFLAGS"
23343
LIBS="$ac_save_LIBS"
23360
if test "$use_opengl" = "yes" ; then
23361
if test "${ac_cv_header_GL_gl_h+set}" = set; then
23362
echo "$as_me:$LINENO: checking for GL/gl.h" >&5
23363
echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
23364
if test "${ac_cv_header_GL_gl_h+set}" = set; then
23365
echo $ECHO_N "(cached) $ECHO_C" >&6
23367
echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
23368
echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
23370
# Is the header compilable?
23371
echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
23372
echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
23373
cat >conftest.$ac_ext <<_ACEOF
23376
cat confdefs.h >>conftest.$ac_ext
23377
cat >>conftest.$ac_ext <<_ACEOF
23378
/* end confdefs.h. */
23379
$ac_includes_default
23382
rm -f conftest.$ac_objext
23383
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23384
(eval $ac_compile) 2>conftest.er1
23386
grep -v '^ *+' conftest.er1 >conftest.err
23388
cat conftest.err >&5
23389
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390
(exit $ac_status); } &&
23391
{ ac_try='test -z "$ac_c_werror_flag"
23392
|| test ! -s conftest.err'
23393
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23394
(eval $ac_try) 2>&5
23396
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397
(exit $ac_status); }; } &&
23398
{ ac_try='test -s conftest.$ac_objext'
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); }; }; then
23404
ac_header_compiler=yes
23406
echo "$as_me: failed program was:" >&5
23407
sed 's/^/| /' conftest.$ac_ext >&5
23409
ac_header_compiler=no
23411
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23412
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23413
echo "${ECHO_T}$ac_header_compiler" >&6
23415
# Is the header present?
23416
echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
23417
echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
23418
cat >conftest.$ac_ext <<_ACEOF
23421
cat confdefs.h >>conftest.$ac_ext
23422
cat >>conftest.$ac_ext <<_ACEOF
23423
/* end confdefs.h. */
23426
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23427
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23429
grep -v '^ *+' conftest.er1 >conftest.err
23431
cat conftest.err >&5
23432
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433
(exit $ac_status); } >/dev/null; then
23434
if test -s conftest.err; then
23435
ac_cpp_err=$ac_c_preproc_warn_flag
23436
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23443
if test -z "$ac_cpp_err"; then
23444
ac_header_preproc=yes
23446
echo "$as_me: failed program was:" >&5
23447
sed 's/^/| /' conftest.$ac_ext >&5
23449
ac_header_preproc=no
23451
rm -f conftest.err conftest.$ac_ext
23452
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23453
echo "${ECHO_T}$ac_header_preproc" >&6
23455
# So? What about this header?
23456
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23458
{ echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
23459
echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23460
{ echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
23461
echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
23462
ac_header_preproc=yes
23465
{ echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
23466
echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
23467
{ echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
23468
echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
23469
{ echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
23470
echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
23471
{ echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
23472
echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
23473
{ echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
23474
echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
23475
{ echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
23476
echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
23479
## ------------------------------------------ ##
23480
## Report this to the AC_PACKAGE_NAME lists. ##
23481
## ------------------------------------------ ##
23484
sed "s/^/$as_me: WARNING: /" >&2
23487
echo "$as_me:$LINENO: checking for GL/gl.h" >&5
23488
echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
23489
if test "${ac_cv_header_GL_gl_h+set}" = set; then
23490
echo $ECHO_N "(cached) $ECHO_C" >&6
23492
ac_cv_header_GL_gl_h=$ac_header_preproc
23494
echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
23495
echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
23498
if test $ac_cv_header_GL_gl_h = yes; then
23504
*-*-cygwin* | *-*-mingw32*)
23505
LIBGL="-lopengl32 -lglu32"
23508
LIBGL="-framework OpenGL"
23511
echo "$as_me:$LINENO: checking for glLoadIdentity in -lGL" >&5
23512
echo $ECHO_N "checking for glLoadIdentity in -lGL... $ECHO_C" >&6
23513
if test "${ac_cv_lib_GL_glLoadIdentity+set}" = set; then
23514
echo $ECHO_N "(cached) $ECHO_C" >&6
23516
ac_check_lib_save_LIBS=$LIBS
23518
cat >conftest.$ac_ext <<_ACEOF
23521
cat confdefs.h >>conftest.$ac_ext
23522
cat >>conftest.$ac_ext <<_ACEOF
23523
/* end confdefs.h. */
23525
/* Override any gcc2 internal prototype to avoid an error. */
23529
/* We use char because int might match the return type of a gcc2
23530
builtin and then its argument prototype would still apply. */
23531
char glLoadIdentity ();
23540
rm -f conftest.$ac_objext conftest$ac_exeext
23541
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23542
(eval $ac_link) 2>conftest.er1
23544
grep -v '^ *+' conftest.er1 >conftest.err
23546
cat conftest.err >&5
23547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548
(exit $ac_status); } &&
23549
{ ac_try='test -z "$ac_c_werror_flag"
23550
|| test ! -s conftest.err'
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); }; } &&
23556
{ ac_try='test -s conftest$ac_exeext'
23557
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23558
(eval $ac_try) 2>&5
23560
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561
(exit $ac_status); }; }; then
23562
ac_cv_lib_GL_glLoadIdentity=yes
23564
echo "$as_me: failed program was:" >&5
23565
sed 's/^/| /' conftest.$ac_ext >&5
23567
ac_cv_lib_GL_glLoadIdentity=no
23569
rm -f conftest.err conftest.$ac_objext \
23570
conftest$ac_exeext conftest.$ac_ext
23571
LIBS=$ac_check_lib_save_LIBS
23573
echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glLoadIdentity" >&5
23574
echo "${ECHO_T}$ac_cv_lib_GL_glLoadIdentity" >&6
23575
if test $ac_cv_lib_GL_glLoadIdentity = yes; then
23579
echo "$as_me:$LINENO: checking for gluPerspective in -lGLU" >&5
23580
echo $ECHO_N "checking for gluPerspective in -lGLU... $ECHO_C" >&6
23581
if test "${ac_cv_lib_GLU_gluPerspective+set}" = set; then
23582
echo $ECHO_N "(cached) $ECHO_C" >&6
23584
ac_check_lib_save_LIBS=$LIBS
23585
LIBS="-lGLU $LIBGL $LIBS"
23586
cat >conftest.$ac_ext <<_ACEOF
23589
cat confdefs.h >>conftest.$ac_ext
23590
cat >>conftest.$ac_ext <<_ACEOF
23591
/* end confdefs.h. */
23593
/* Override any gcc2 internal prototype to avoid an error. */
23597
/* We use char because int might match the return type of a gcc2
23598
builtin and then its argument prototype would still apply. */
23599
char gluPerspective ();
23608
rm -f conftest.$ac_objext conftest$ac_exeext
23609
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23610
(eval $ac_link) 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"
23618
|| test ! -s conftest.err'
23619
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23620
(eval $ac_try) 2>&5
23622
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623
(exit $ac_status); }; } &&
23624
{ ac_try='test -s conftest$ac_exeext'
23625
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23626
(eval $ac_try) 2>&5
23628
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23629
(exit $ac_status); }; }; then
23630
ac_cv_lib_GLU_gluPerspective=yes
23632
echo "$as_me: failed program was:" >&5
23633
sed 's/^/| /' conftest.$ac_ext >&5
23635
ac_cv_lib_GLU_gluPerspective=no
23637
rm -f conftest.err conftest.$ac_objext \
23638
conftest$ac_exeext conftest.$ac_ext
23639
LIBS=$ac_check_lib_save_LIBS
23641
echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluPerspective" >&5
23642
echo "${ECHO_T}$ac_cv_lib_GLU_gluPerspective" >&6
23643
if test $ac_cv_lib_GLU_gluPerspective = yes; then
23649
if test "x$have_gl_hdr" != "xyes" ; then
23659
if test "$use_allegro" = "yes" ; then
23660
# Extract the first word of "allegro-config", so it can be a program name with args.
23661
set dummy allegro-config; ac_word=$2
23662
echo "$as_me:$LINENO: checking for $ac_word" >&5
23663
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23664
if test "${ac_cv_prog_allegro_config+set}" = set; then
23665
echo $ECHO_N "(cached) $ECHO_C" >&6
23667
if test -n "$allegro_config"; then
23668
ac_cv_prog_allegro_config="$allegro_config" # Let the user override the test.
23670
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23671
for as_dir in $PATH
23674
test -z "$as_dir" && as_dir=.
23675
for ac_exec_ext in '' $ac_executable_extensions; do
23676
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23677
ac_cv_prog_allegro_config="yes"
23678
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23684
test -z "$ac_cv_prog_allegro_config" && ac_cv_prog_allegro_config="no"
23687
allegro_config=$ac_cv_prog_allegro_config
23688
if test -n "$allegro_config"; then
23689
echo "$as_me:$LINENO: result: $allegro_config" >&5
23690
echo "${ECHO_T}$allegro_config" >&6
23692
echo "$as_me:$LINENO: result: no" >&5
23693
echo "${ECHO_T}no" >&6
23696
if test $allegro_config = no ; then
23701
LIBALLEGRO=`allegro-config --libs`
23702
HALLEGRO=`allegro-config --cflags`
23708
if test "$use_win32" = "no" ; then
23716
SUPPORTED_FORMATS=""
23718
if test "$no_bmp" = "yes" ; then
23719
cat >>confdefs.h <<\_ACEOF
23720
#define IL_NO_BMP 1
23724
SUPPORTED_FORMATS=$SUPPORTED_FORMATS"BMP "
23728
if test x$no_bmp != "xyes"; then
23730
IL_NO_BMP_FALSE='#'
23737
if test "$no_dcx" = "yes" ; then
23738
cat >>confdefs.h <<\_ACEOF
23739
#define IL_NO_DCX 1
23743
SUPPORTED_FORMATS=$SUPPORTED_FORMATS"DCX "
23747
if test x$no_dcx != "xyes"; then
23749
IL_NO_DCX_FALSE='#'
23756
if test "$no_dds" = "yes" ; then
23757
cat >>confdefs.h <<\_ACEOF
23758
#define IL_NO_DDS 1
23762
SUPPORTED_FORMATS=$SUPPORTED_FORMATS"DDS "
23766
if test x$no_dds != "xyes"; then
23768
IL_NO_DDS_FALSE='#'
23775
if test "$no_doom" = "yes" ; then
23776
cat >>confdefs.h <<\_ACEOF
23777
#define IL_NO_DOOM 1
23781
SUPPORTED_FORMATS=$SUPPORTED_FORMATS"WAD "
23785
if test x$no_doom != "xyes"; then
23787
IL_NO_DOOM_FALSE='#'
23789
IL_NO_DOOM_TRUE='#'
23794
if test "$no_gif" = "yes" ; then
23795
cat >>confdefs.h <<\_ACEOF
23796
#define IL_NO_GIF 1
23800
SUPPORTED_FORMATS=$SUPPORTED_FORMATS"GIF "
23804
if test x$no_gif != "xyes"; then
23806
IL_NO_GIF_FALSE='#'
23813
if test "$no_hdr" = "yes" ; then
23814
cat >>confdefs.h <<\_ACEOF
23815
#define IL_NO_HDR 1
23819
SUPPORTED_FORMATS=$SUPPORTED_FORMATS"HDR "
23823
if test x$no_hdr != "xyes"; then
23825
IL_NO_HDR_FALSE='#'
23832
if test "$no_icon" = "yes" ; then
23833
cat >>confdefs.h <<\_ACEOF
23834
#define IL_NO_ICO 1
23838
SUPPORTED_FORMATS=$SUPPORTED_FORMATS"ICO "
23842
if test x$no_icon != "xyes"; then
23844
IL_NO_ICO_FALSE='#'
23851
if test "$no_jpeg" = "yes" ; then
23852
cat >>confdefs.h <<\_ACEOF
23853
#define IL_NO_JPG 1
23857
SUPPORTED_FORMATS=$SUPPORTED_FORMATS"JPG "
23861
if test x$no_jpeg != "xyes"; then
23863
IL_NO_JPG_FALSE='#'
23870
if test "$no_lif" = "yes" ; then
23871
cat >>confdefs.h <<\_ACEOF
23872
#define IL_NO_LIF 1
23876
SUPPORTED_FORMATS=$SUPPORTED_FORMATS"LIF "
23880
if test x$no_lif != "xyes"; then
23882
IL_NO_LIF_FALSE='#'
23889
if test "$no_lcms" = "yes" ; then
23890
cat >>confdefs.h <<\_ACEOF
23891
#define IL_NO_LCMS 1
23895
SUPPORTED_FORMATS=$SUPPORTED_FORMATS"LCMS "
23899
if test x$no_lcms != "xyes"; then
23901
IL_NO_LCMS_FALSE='#'
23903
IL_NO_LCMS_TRUE='#'
23908
if test "$no_mdl" = "yes" ; then
23909
cat >>confdefs.h <<\_ACEOF
23910
#define IL_NO_MDL 1
23914
SUPPORTED_FORMATS=$SUPPORTED_FORMATS"MDL "
23918
if test x$no_mdl != "xyes"; then
23920
IL_NO_MDL_FALSE='#'
23927
if test "$no_mng" = "yes" ; then
23928
cat >>confdefs.h <<\_ACEOF
23929
#define IL_NO_MNG 1
23933
SUPPORTED_FORMATS=$SUPPORTED_FORMATS"MNG "
23937
if test x$no_mng != "xyes"; then
23939
IL_NO_MNG_FALSE='#'
23946
if test "$no_pcd" = "yes" ; then
23947
cat >>confdefs.h <<\_ACEOF
23948
#define IL_NO_PCD 1
23952
SUPPORTED_FORMATS=$SUPPORTED_FORMATS"PCD "
23956
if test x$no_pcd != "xyes"; then
23958
IL_NO_PCD_FALSE='#'
23965
if test "$no_pcx" = "yes" ; then
23966
cat >>confdefs.h <<\_ACEOF
23967
#define IL_NO_PCX 1
23971
SUPPORTED_FORMATS=$SUPPORTED_FORMATS"PCX "
23975
if test x$no_pcx != "xyes"; then
23977
IL_NO_PCX_FALSE='#'
23984
if test "$no_pic" = "yes" ; then
23985
cat >>confdefs.h <<\_ACEOF
23986
#define IL_NO_PIC 1
23990
SUPPORTED_FORMATS=$SUPPORTED_FORMATS"PIC "
23994
if test x$no_pic != "xyes"; then
23996
IL_NO_PIC_FALSE='#'
24003
if test "$no_pix" = "yes" ; then
24004
cat >>confdefs.h <<\_ACEOF
24005
#define IL_NO_PIX 1
24009
SUPPORTED_FORMATS=$SUPPORTED_FORMATS"PIX "
24013
if test x$no_pix != "xyes"; then
24015
IL_NO_PIX_FALSE='#'
24022
if test "$no_png" = "yes" ; then
24023
cat >>confdefs.h <<\_ACEOF
24024
#define IL_NO_PNG 1
24028
SUPPORTED_FORMATS=$SUPPORTED_FORMATS"PNG "
24032
if test x$no_png != "xyes"; then
24034
IL_NO_PNG_FALSE='#'
24041
if test "$no_pnm" = "yes" ; then
24042
cat >>confdefs.h <<\_ACEOF
24043
#define IL_NO_PNM 1
24047
SUPPORTED_FORMATS=$SUPPORTED_FORMATS"PNM "
24051
if test x$no_pnm != "xyes"; then
24053
IL_NO_PNM_FALSE='#'
24060
if test "$no_psd" = "yes" ; then
24061
cat >>confdefs.h <<\_ACEOF
24062
#define IL_NO_PSD 1
24066
SUPPORTED_FORMATS=$SUPPORTED_FORMATS"PSD "
24070
if test x$no_psd != "xyes"; then
24072
IL_NO_PSD_FALSE='#'
24079
if test "$no_psp" = "yes" ; then
24080
cat >>confdefs.h <<\_ACEOF
24081
#define IL_NO_PSP 1
24085
SUPPORTED_FORMATS=$SUPPORTED_FORMATS"PSP "
24089
if test x$no_psp != "xyes"; then
24091
IL_NO_PSP_FALSE='#'
24098
if test "$no_pxr" = "yes" ; then
24099
cat >>confdefs.h <<\_ACEOF
24100
#define IL_NO_PXR 1
24104
SUPPORTED_FORMATS=$SUPPORTED_FORMATS"PXR "
24108
if test x$no_pxr != "xyes"; then
24110
IL_NO_PXR_FALSE='#'
24117
if test "$no_raw" = "yes" ; then
24118
cat >>confdefs.h <<\_ACEOF
24119
#define IL_NO_RAW 1
24123
SUPPORTED_FORMATS=$SUPPORTED_FORMATS"RAW "
24127
if test x$no_raw != "xyes"; then
24129
IL_NO_RAW_FALSE='#'
24136
if test "$no_sgi" = "yes" ; then
24137
cat >>confdefs.h <<\_ACEOF
24138
#define IL_NO_SGI 1
24142
SUPPORTED_FORMATS=$SUPPORTED_FORMATS"SGI "
24146
if test x$no_sgi != "xyes"; then
24148
IL_NO_SGI_FALSE='#'
24155
if test "$no_tga" = "yes" ; then
24156
cat >>confdefs.h <<\_ACEOF
24157
#define IL_NO_TGA 1
24161
SUPPORTED_FORMATS=$SUPPORTED_FORMATS"TGA "
24165
if test x$no_tga != "xyes"; then
24167
IL_NO_TGA_FALSE='#'
24174
if test "$no_tiff" = "yes" ; then
24175
cat >>confdefs.h <<\_ACEOF
24176
#define IL_NO_TIF 1
24180
SUPPORTED_FORMATS=$SUPPORTED_FORMATS"TIF "
24184
if test x$no_tiff != "xyes"; then
24186
IL_NO_TIF_FALSE='#'
24193
if test "$no_wal" = "yes" ; then
24194
cat >>confdefs.h <<\_ACEOF
24195
#define IL_NO_WAL 1
24199
SUPPORTED_FORMATS=$SUPPORTED_FORMATS"WAL "
24203
if test x$no_wal != "xyes"; then
24205
IL_NO_WAL_FALSE='#'
24212
if test "$no_xpm" = "yes" ; then
24213
cat >>confdefs.h <<\_ACEOF
24214
#define IL_NO_XPM 1
24218
SUPPORTED_FORMATS=$SUPPORTED_FORMATS"XPM "
24222
if test x$no_xpm != "xyes"; then
24224
IL_NO_XPM_FALSE='#'
24232
echo "$as_me:$LINENO: result: " >&5
24233
echo "${ECHO_T} " >&6
24234
echo "$as_me:$LINENO: result: +----------------------------------------+" >&5
24235
echo "${ECHO_T}+----------------------------------------+" >&6
24236
echo "$as_me:$LINENO: result: | IL library Supported formats |" >&5
24237
echo "${ECHO_T}| IL library Supported formats |" >&6
24238
echo "$as_me:$LINENO: result: +----------------------------------------+-------+" >&5
24239
echo "${ECHO_T}+----------------------------------------+-------+" >&6
24240
echo "$as_me:$LINENO: result: $SUPPORTED_FORMATS" >&5
24241
echo "${ECHO_T}$SUPPORTED_FORMATS" >&6
24246
if test "$use_allegro" = "yes" ; then
24247
cat >>confdefs.h <<\_ACEOF
24248
#define ILUT_USE_ALLEGRO 1
24251
SUPPORTED_API=$SUPPORTED_API"Allegro "
24254
if test "$use_directx" = "yes" ; then
24255
cat >>confdefs.h <<\_ACEOF
24256
#define ILUT_USE_DIRECTX8 1
24259
SUPPORTED_APPI=$SUPPORTED_API"Directx8 "
24262
if test "$use_opengl" = "yes" ; then
24263
cat >>confdefs.h <<\_ACEOF
24264
#define ILUT_USE_OPENGL 1
24267
SUPPORTED_API=$SUPPORTED_API"OpenGL "
24270
if test "$use_sdl" = "yes" ; then
24271
cat >>confdefs.h <<\_ACEOF
24272
#define ILUT_USE_SDL 1
24275
SUPPORTED_API=$SUPPORTED_API"SDL "
24278
if test "$use_win32" = "yes" ; then
24279
cat >>confdefs.h <<\_ACEOF
24280
#define ILUT_USE_WIN32 1
24283
SUPPORTED_API=$SUPPORTED_API"Win32 "
24286
if test "$use_directx" = "yes" ; then
24287
cat >>confdefs.h <<\_ACEOF
24288
#define ILUT_USE_DIRECTX8 1
24291
SUPPORTED_API=$SUPPORTED_API"DirectX8 "
24294
echo "$as_me:$LINENO: result: " >&5
24295
echo "${ECHO_T} " >&6
24296
echo "$as_me:$LINENO: result: +----------------------------------------+" >&5
24297
echo "${ECHO_T}+----------------------------------------+" >&6
24298
echo "$as_me:$LINENO: result: | ILUT library Supported APIs |" >&5
24299
echo "${ECHO_T}| ILUT library Supported APIs |" >&6
24300
echo "$as_me:$LINENO: result: +----------------------------------------+-------+" >&5
24301
echo "${ECHO_T}+----------------------------------------+-------+" >&6
24302
echo "$as_me:$LINENO: result: $SUPPORTED_API" >&5
24303
echo "${ECHO_T}$SUPPORTED_API" >&6
24305
echo "$as_me:$LINENO: result: " >&5
24306
echo "${ECHO_T} " >&6
24313
ac_config_files="$ac_config_files Makefile src-IL/Makefile src-IL/src/Makefile src-IL/include/Makefile src-ILU/Makefile src-ILU/src/Makefile src-ILU/include/Makefile src-ILUT/Makefile src-ILUT/src/Makefile src-ILUT/include/Makefile include/Makefile include/IL/Makefile"
24315
cat >confcache <<\_ACEOF
24316
# This file is a shell script that caches the results of configure
24317
# tests run on this system so they can be shared between configure
24318
# scripts and configure runs, see configure's option --config-cache.
24319
# It is not useful on other systems. If it contains results you don't
24320
# want to keep, you may remove or edit it.
24322
# config.status only pays attention to the cache file if you give it
24323
# the --recheck option to rerun configure.
24325
# `ac_cv_env_foo' variables (set or unset) will be overridden when
24326
# loading this file, other *unset* `ac_cv_foo' will be assigned the
24327
# following values.
24331
# The following way of writing the cache mishandles newlines in values,
24332
# but we know of no workaround that is simple, portable, and efficient.
24333
# So, don't put newlines in cache variables' values.
24334
# Ultrix sh set writes to stderr and can't be redirected directly,
24335
# and sets the high bit in the cache file unless we assign to the vars.
24338
case `(ac_space=' '; set | grep ac_space) 2>&1` in
24340
# `set' does not quote correctly, so add quotes (double-quote
24341
# substitution turns \\\\ into \\, and sed turns \\ into \).
24344
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24347
# `set' quotes correctly as required by POSIX, so do not add quotes.
24349
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24356
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24358
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24360
if diff $cache_file confcache >/dev/null 2>&1; then :; else
24361
if test -w $cache_file; then
24362
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24363
cat confcache >$cache_file
24365
echo "not updating unwritable cache $cache_file"
24370
test "x$prefix" = xNONE && prefix=$ac_default_prefix
24371
# Let make expand exec_prefix.
24372
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24374
# VPATH may cause trouble with some makes, so we remove $(srcdir),
24375
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24376
# trailing colons and then remove the whole line if VPATH becomes empty
24377
# (actually we leave an empty line to preserve line numbers).
24378
if test "x$srcdir" = x.; then
24379
ac_vpsub='/^[ ]*VPATH[ ]*=/{
24380
s/:*\$(srcdir):*/:/;
24381
s/:*\${srcdir}:*/:/;
24383
s/^\([^=]*=[ ]*\):*/\1/;
24389
DEFS=-DHAVE_CONFIG_H
24393
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24394
# 1. Remove the extension, and $U if already installed.
24395
ac_i=`echo "$ac_i" |
24396
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24398
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24399
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24401
LIBOBJS=$ac_libobjs
24403
LTLIBOBJS=$ac_ltlibobjs
24406
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24407
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24408
Usually this means the macro was only invoked conditionally." >&5
24409
echo "$as_me: error: conditional \"AMDEP\" was never defined.
24410
Usually this means the macro was only invoked conditionally." >&2;}
24411
{ (exit 1); exit 1; }; }
24413
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24414
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24415
Usually this means the macro was only invoked conditionally." >&5
24416
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24417
Usually this means the macro was only invoked conditionally." >&2;}
24418
{ (exit 1); exit 1; }; }
24420
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24421
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24422
Usually this means the macro was only invoked conditionally." >&5
24423
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24424
Usually this means the macro was only invoked conditionally." >&2;}
24425
{ (exit 1); exit 1; }; }
24427
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24428
{ { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
24429
Usually this means the macro was only invoked conditionally." >&5
24430
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
24431
Usually this means the macro was only invoked conditionally." >&2;}
24432
{ (exit 1); exit 1; }; }
24434
if test -z "${IL_NO_BMP_TRUE}" && test -z "${IL_NO_BMP_FALSE}"; then
24435
{ { echo "$as_me:$LINENO: error: conditional \"IL_NO_BMP\" was never defined.
24436
Usually this means the macro was only invoked conditionally." >&5
24437
echo "$as_me: error: conditional \"IL_NO_BMP\" was never defined.
24438
Usually this means the macro was only invoked conditionally." >&2;}
24439
{ (exit 1); exit 1; }; }
24441
if test -z "${IL_NO_DCX_TRUE}" && test -z "${IL_NO_DCX_FALSE}"; then
24442
{ { echo "$as_me:$LINENO: error: conditional \"IL_NO_DCX\" was never defined.
24443
Usually this means the macro was only invoked conditionally." >&5
24444
echo "$as_me: error: conditional \"IL_NO_DCX\" was never defined.
24445
Usually this means the macro was only invoked conditionally." >&2;}
24446
{ (exit 1); exit 1; }; }
24448
if test -z "${IL_NO_DDS_TRUE}" && test -z "${IL_NO_DDS_FALSE}"; then
24449
{ { echo "$as_me:$LINENO: error: conditional \"IL_NO_DDS\" was never defined.
24450
Usually this means the macro was only invoked conditionally." >&5
24451
echo "$as_me: error: conditional \"IL_NO_DDS\" was never defined.
24452
Usually this means the macro was only invoked conditionally." >&2;}
24453
{ (exit 1); exit 1; }; }
24455
if test -z "${IL_NO_DOOM_TRUE}" && test -z "${IL_NO_DOOM_FALSE}"; then
24456
{ { echo "$as_me:$LINENO: error: conditional \"IL_NO_DOOM\" was never defined.
24457
Usually this means the macro was only invoked conditionally." >&5
24458
echo "$as_me: error: conditional \"IL_NO_DOOM\" was never defined.
24459
Usually this means the macro was only invoked conditionally." >&2;}
24460
{ (exit 1); exit 1; }; }
24462
if test -z "${IL_NO_GIF_TRUE}" && test -z "${IL_NO_GIF_FALSE}"; then
24463
{ { echo "$as_me:$LINENO: error: conditional \"IL_NO_GIF\" was never defined.
24464
Usually this means the macro was only invoked conditionally." >&5
24465
echo "$as_me: error: conditional \"IL_NO_GIF\" was never defined.
24466
Usually this means the macro was only invoked conditionally." >&2;}
24467
{ (exit 1); exit 1; }; }
24469
if test -z "${IL_NO_HDR_TRUE}" && test -z "${IL_NO_HDR_FALSE}"; then
24470
{ { echo "$as_me:$LINENO: error: conditional \"IL_NO_HDR\" was never defined.
24471
Usually this means the macro was only invoked conditionally." >&5
24472
echo "$as_me: error: conditional \"IL_NO_HDR\" was never defined.
24473
Usually this means the macro was only invoked conditionally." >&2;}
24474
{ (exit 1); exit 1; }; }
24476
if test -z "${IL_NO_ICO_TRUE}" && test -z "${IL_NO_ICO_FALSE}"; then
24477
{ { echo "$as_me:$LINENO: error: conditional \"IL_NO_ICO\" was never defined.
24478
Usually this means the macro was only invoked conditionally." >&5
24479
echo "$as_me: error: conditional \"IL_NO_ICO\" was never defined.
24480
Usually this means the macro was only invoked conditionally." >&2;}
24481
{ (exit 1); exit 1; }; }
24483
if test -z "${IL_NO_JPG_TRUE}" && test -z "${IL_NO_JPG_FALSE}"; then
24484
{ { echo "$as_me:$LINENO: error: conditional \"IL_NO_JPG\" was never defined.
24485
Usually this means the macro was only invoked conditionally." >&5
24486
echo "$as_me: error: conditional \"IL_NO_JPG\" was never defined.
24487
Usually this means the macro was only invoked conditionally." >&2;}
24488
{ (exit 1); exit 1; }; }
24490
if test -z "${IL_NO_LIF_TRUE}" && test -z "${IL_NO_LIF_FALSE}"; then
24491
{ { echo "$as_me:$LINENO: error: conditional \"IL_NO_LIF\" was never defined.
24492
Usually this means the macro was only invoked conditionally." >&5
24493
echo "$as_me: error: conditional \"IL_NO_LIF\" was never defined.
24494
Usually this means the macro was only invoked conditionally." >&2;}
24495
{ (exit 1); exit 1; }; }
24497
if test -z "${IL_NO_LCMS_TRUE}" && test -z "${IL_NO_LCMS_FALSE}"; then
24498
{ { echo "$as_me:$LINENO: error: conditional \"IL_NO_LCMS\" was never defined.
24499
Usually this means the macro was only invoked conditionally." >&5
24500
echo "$as_me: error: conditional \"IL_NO_LCMS\" was never defined.
24501
Usually this means the macro was only invoked conditionally." >&2;}
24502
{ (exit 1); exit 1; }; }
24504
if test -z "${IL_NO_MDL_TRUE}" && test -z "${IL_NO_MDL_FALSE}"; then
24505
{ { echo "$as_me:$LINENO: error: conditional \"IL_NO_MDL\" was never defined.
24506
Usually this means the macro was only invoked conditionally." >&5
24507
echo "$as_me: error: conditional \"IL_NO_MDL\" was never defined.
24508
Usually this means the macro was only invoked conditionally." >&2;}
24509
{ (exit 1); exit 1; }; }
24511
if test -z "${IL_NO_MNG_TRUE}" && test -z "${IL_NO_MNG_FALSE}"; then
24512
{ { echo "$as_me:$LINENO: error: conditional \"IL_NO_MNG\" was never defined.
24513
Usually this means the macro was only invoked conditionally." >&5
24514
echo "$as_me: error: conditional \"IL_NO_MNG\" was never defined.
24515
Usually this means the macro was only invoked conditionally." >&2;}
24516
{ (exit 1); exit 1; }; }
24518
if test -z "${IL_NO_PCD_TRUE}" && test -z "${IL_NO_PCD_FALSE}"; then
24519
{ { echo "$as_me:$LINENO: error: conditional \"IL_NO_PCD\" was never defined.
24520
Usually this means the macro was only invoked conditionally." >&5
24521
echo "$as_me: error: conditional \"IL_NO_PCD\" was never defined.
24522
Usually this means the macro was only invoked conditionally." >&2;}
24523
{ (exit 1); exit 1; }; }
24525
if test -z "${IL_NO_PCX_TRUE}" && test -z "${IL_NO_PCX_FALSE}"; then
24526
{ { echo "$as_me:$LINENO: error: conditional \"IL_NO_PCX\" was never defined.
24527
Usually this means the macro was only invoked conditionally." >&5
24528
echo "$as_me: error: conditional \"IL_NO_PCX\" was never defined.
24529
Usually this means the macro was only invoked conditionally." >&2;}
24530
{ (exit 1); exit 1; }; }
24532
if test -z "${IL_NO_PIC_TRUE}" && test -z "${IL_NO_PIC_FALSE}"; then
24533
{ { echo "$as_me:$LINENO: error: conditional \"IL_NO_PIC\" was never defined.
24534
Usually this means the macro was only invoked conditionally." >&5
24535
echo "$as_me: error: conditional \"IL_NO_PIC\" was never defined.
24536
Usually this means the macro was only invoked conditionally." >&2;}
24537
{ (exit 1); exit 1; }; }
24539
if test -z "${IL_NO_PIX_TRUE}" && test -z "${IL_NO_PIX_FALSE}"; then
24540
{ { echo "$as_me:$LINENO: error: conditional \"IL_NO_PIX\" was never defined.
24541
Usually this means the macro was only invoked conditionally." >&5
24542
echo "$as_me: error: conditional \"IL_NO_PIX\" was never defined.
24543
Usually this means the macro was only invoked conditionally." >&2;}
24544
{ (exit 1); exit 1; }; }
24546
if test -z "${IL_NO_PNG_TRUE}" && test -z "${IL_NO_PNG_FALSE}"; then
24547
{ { echo "$as_me:$LINENO: error: conditional \"IL_NO_PNG\" was never defined.
24548
Usually this means the macro was only invoked conditionally." >&5
24549
echo "$as_me: error: conditional \"IL_NO_PNG\" was never defined.
24550
Usually this means the macro was only invoked conditionally." >&2;}
24551
{ (exit 1); exit 1; }; }
24553
if test -z "${IL_NO_PNM_TRUE}" && test -z "${IL_NO_PNM_FALSE}"; then
24554
{ { echo "$as_me:$LINENO: error: conditional \"IL_NO_PNM\" was never defined.
24555
Usually this means the macro was only invoked conditionally." >&5
24556
echo "$as_me: error: conditional \"IL_NO_PNM\" was never defined.
24557
Usually this means the macro was only invoked conditionally." >&2;}
24558
{ (exit 1); exit 1; }; }
24560
if test -z "${IL_NO_PSD_TRUE}" && test -z "${IL_NO_PSD_FALSE}"; then
24561
{ { echo "$as_me:$LINENO: error: conditional \"IL_NO_PSD\" was never defined.
24562
Usually this means the macro was only invoked conditionally." >&5
24563
echo "$as_me: error: conditional \"IL_NO_PSD\" was never defined.
24564
Usually this means the macro was only invoked conditionally." >&2;}
24565
{ (exit 1); exit 1; }; }
24567
if test -z "${IL_NO_PSP_TRUE}" && test -z "${IL_NO_PSP_FALSE}"; then
24568
{ { echo "$as_me:$LINENO: error: conditional \"IL_NO_PSP\" was never defined.
24569
Usually this means the macro was only invoked conditionally." >&5
24570
echo "$as_me: error: conditional \"IL_NO_PSP\" was never defined.
24571
Usually this means the macro was only invoked conditionally." >&2;}
24572
{ (exit 1); exit 1; }; }
24574
if test -z "${IL_NO_PXR_TRUE}" && test -z "${IL_NO_PXR_FALSE}"; then
24575
{ { echo "$as_me:$LINENO: error: conditional \"IL_NO_PXR\" was never defined.
24576
Usually this means the macro was only invoked conditionally." >&5
24577
echo "$as_me: error: conditional \"IL_NO_PXR\" was never defined.
24578
Usually this means the macro was only invoked conditionally." >&2;}
24579
{ (exit 1); exit 1; }; }
24581
if test -z "${IL_NO_RAW_TRUE}" && test -z "${IL_NO_RAW_FALSE}"; then
24582
{ { echo "$as_me:$LINENO: error: conditional \"IL_NO_RAW\" was never defined.
24583
Usually this means the macro was only invoked conditionally." >&5
24584
echo "$as_me: error: conditional \"IL_NO_RAW\" was never defined.
24585
Usually this means the macro was only invoked conditionally." >&2;}
24586
{ (exit 1); exit 1; }; }
24588
if test -z "${IL_NO_SGI_TRUE}" && test -z "${IL_NO_SGI_FALSE}"; then
24589
{ { echo "$as_me:$LINENO: error: conditional \"IL_NO_SGI\" was never defined.
24590
Usually this means the macro was only invoked conditionally." >&5
24591
echo "$as_me: error: conditional \"IL_NO_SGI\" was never defined.
24592
Usually this means the macro was only invoked conditionally." >&2;}
24593
{ (exit 1); exit 1; }; }
24595
if test -z "${IL_NO_TGA_TRUE}" && test -z "${IL_NO_TGA_FALSE}"; then
24596
{ { echo "$as_me:$LINENO: error: conditional \"IL_NO_TGA\" was never defined.
24597
Usually this means the macro was only invoked conditionally." >&5
24598
echo "$as_me: error: conditional \"IL_NO_TGA\" was never defined.
24599
Usually this means the macro was only invoked conditionally." >&2;}
24600
{ (exit 1); exit 1; }; }
24602
if test -z "${IL_NO_TIF_TRUE}" && test -z "${IL_NO_TIF_FALSE}"; then
24603
{ { echo "$as_me:$LINENO: error: conditional \"IL_NO_TIF\" was never defined.
24604
Usually this means the macro was only invoked conditionally." >&5
24605
echo "$as_me: error: conditional \"IL_NO_TIF\" was never defined.
24606
Usually this means the macro was only invoked conditionally." >&2;}
24607
{ (exit 1); exit 1; }; }
24609
if test -z "${IL_NO_WAL_TRUE}" && test -z "${IL_NO_WAL_FALSE}"; then
24610
{ { echo "$as_me:$LINENO: error: conditional \"IL_NO_WAL\" was never defined.
24611
Usually this means the macro was only invoked conditionally." >&5
24612
echo "$as_me: error: conditional \"IL_NO_WAL\" was never defined.
24613
Usually this means the macro was only invoked conditionally." >&2;}
24614
{ (exit 1); exit 1; }; }
24616
if test -z "${IL_NO_XPM_TRUE}" && test -z "${IL_NO_XPM_FALSE}"; then
24617
{ { echo "$as_me:$LINENO: error: conditional \"IL_NO_XPM\" was never defined.
24618
Usually this means the macro was only invoked conditionally." >&5
24619
echo "$as_me: error: conditional \"IL_NO_XPM\" was never defined.
24620
Usually this means the macro was only invoked conditionally." >&2;}
24621
{ (exit 1); exit 1; }; }
24624
: ${CONFIG_STATUS=./config.status}
24625
ac_clean_files_save=$ac_clean_files
24626
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24627
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24628
echo "$as_me: creating $CONFIG_STATUS" >&6;}
24629
cat >$CONFIG_STATUS <<_ACEOF
24631
# Generated by $as_me.
24632
# Run this file to recreate the current configuration.
24633
# Compiler output produced by configure, useful for debugging
24634
# configure, is in config.log if it exists.
24637
ac_cs_recheck=false
24639
SHELL=\${CONFIG_SHELL-$SHELL}
24642
cat >>$CONFIG_STATUS <<\_ACEOF
24643
## --------------------- ##
24644
## M4sh Initialization. ##
24645
## --------------------- ##
24647
# Be Bourne compatible
24648
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24651
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24652
# is contrary to our usage. Disable this feature.
24653
alias -g '${1+"$@"}'='"$@"'
24654
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24657
DUALCASE=1; export DUALCASE # for MKS sh
24659
# Support unset when possible.
24660
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24667
# Work around bugs in pre-3.0 UWIN ksh.
24668
$as_unset ENV MAIL MAILPATH
24675
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24676
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24677
LC_TELEPHONE LC_TIME
24679
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24680
eval $as_var=C; export $as_var
24686
# Required to use basename.
24687
if expr a : '\(a\)' >/dev/null 2>&1; then
24693
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24694
as_basename=basename
24700
# Name of the executable.
24701
as_me=`$as_basename "$0" ||
24702
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24703
X"$0" : 'X\(//\)$' \| \
24704
X"$0" : 'X\(/\)$' \| \
24705
. : '\(.\)' 2>/dev/null ||
24707
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24708
/^X\/\(\/\/\)$/{ s//\1/; q; }
24709
/^X\/\(\/\).*/{ s//\1/; q; }
24713
# PATH needs CR, and LINENO needs CR and PATH.
24714
# Avoid depending upon Character Ranges.
24715
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24716
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24717
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24718
as_cr_digits='0123456789'
24719
as_cr_alnum=$as_cr_Letters$as_cr_digits
24721
# The user is always right.
24722
if test "${PATH_SEPARATOR+set}" != set; then
24723
echo "#! /bin/sh" >conf$$.sh
24724
echo "exit 0" >>conf$$.sh
24726
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24735
as_lineno_1=$LINENO
24736
as_lineno_2=$LINENO
24737
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24738
test "x$as_lineno_1" != "x$as_lineno_2" &&
24739
test "x$as_lineno_3" = "x$as_lineno_2" || {
24740
# Find who we are. Look in the path if we contain no path at all
24743
*[\\/]* ) as_myself=$0 ;;
24744
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24745
for as_dir in $PATH
24748
test -z "$as_dir" && as_dir=.
24749
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24754
# We did not find ourselves, most probably we were run as `sh COMMAND'
24755
# in which case we are not to be found in the path.
24756
if test "x$as_myself" = x; then
24759
if test ! -f "$as_myself"; then
24760
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24761
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24762
{ (exit 1); exit 1; }; }
24764
case $CONFIG_SHELL in
24766
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24767
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24770
test -z "$as_dir" && as_dir=.
24771
for as_base in sh bash ksh sh5; do
24774
if ("$as_dir/$as_base" -c '
24775
as_lineno_1=$LINENO
24776
as_lineno_2=$LINENO
24777
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24778
test "x$as_lineno_1" != "x$as_lineno_2" &&
24779
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24780
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24781
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24782
CONFIG_SHELL=$as_dir/$as_base
24783
export CONFIG_SHELL
24784
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24792
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24793
# uniformly replaced by the line number. The first 'sed' inserts a
24794
# line-number line before each line; the second 'sed' does the real
24795
# work. The second script uses 'N' to pair each line-number line
24796
# with the numbered line, and appends trailing '-' during
24797
# substitution so that $LINENO is not a special case at line end.
24798
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24799
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24800
sed '=' <$as_myself |
24805
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24808
s,^['$as_cr_digits']*\n,,
24809
' >$as_me.lineno &&
24810
chmod +x $as_me.lineno ||
24811
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24812
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24813
{ (exit 1); exit 1; }; }
24815
# Don't try to exec as it changes $[0], causing all sort of problems
24816
# (the dirname of $[0] is not the place where we might find the
24817
# original and so on. Autoconf is especially sensible to this).
24819
# Exit status is that of the last command.
24824
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24825
*c*,-n*) ECHO_N= ECHO_C='
24827
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24828
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24831
if expr a : '\(a\)' >/dev/null 2>&1; then
24837
rm -f conf$$ conf$$.exe conf$$.file
24839
if ln -s conf$$.file conf$$ 2>/dev/null; then
24840
# We could just check for DJGPP; but this test a) works b) is more generic
24841
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24842
if test -f conf$$.exe; then
24843
# Don't use ln at all; we don't have any links
24848
elif ln conf$$.file conf$$ 2>/dev/null; then
24853
rm -f conf$$ conf$$.exe conf$$.file
24855
if mkdir -p . 2>/dev/null; then
24858
test -d ./-p && rmdir ./-p
24862
as_executable_p="test -f"
24864
# Sed expression to map a string onto a valid CPP name.
24865
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24867
# Sed expression to map a string onto a valid variable name.
24868
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24872
# We need space, tab and new line, in precisely that order.
24882
# Open the log real soon, to keep \$[0] and so on meaningful, and to
24883
# report actual input values of CONFIG_FILES etc. instead of their
24884
# values after options handling. Logging --version etc. is OK.
24888
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24889
## Running $as_me. ##
24894
This file was extended by $as_me, which was
24895
generated by GNU Autoconf 2.59. Invocation command line was
24897
CONFIG_FILES = $CONFIG_FILES
24898
CONFIG_HEADERS = $CONFIG_HEADERS
24899
CONFIG_LINKS = $CONFIG_LINKS
24900
CONFIG_COMMANDS = $CONFIG_COMMANDS
24904
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24908
# Files that config.status was made for.
24909
if test -n "$ac_config_files"; then
24910
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24913
if test -n "$ac_config_headers"; then
24914
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24917
if test -n "$ac_config_links"; then
24918
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24921
if test -n "$ac_config_commands"; then
24922
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24925
cat >>$CONFIG_STATUS <<\_ACEOF
24928
\`$as_me' instantiates files from templates according to the
24929
current configuration.
24931
Usage: $0 [OPTIONS] [FILE]...
24933
-h, --help print this help, then exit
24934
-V, --version print version number, then exit
24935
-q, --quiet do not print progress messages
24936
-d, --debug don't remove temporary files
24937
--recheck update $as_me by reconfiguring in the same conditions
24938
--file=FILE[:TEMPLATE]
24939
instantiate the configuration file FILE
24940
--header=FILE[:TEMPLATE]
24941
instantiate the configuration header FILE
24943
Configuration files:
24946
Configuration headers:
24949
Configuration commands:
24952
Report bugs to <bug-autoconf@gnu.org>."
24955
cat >>$CONFIG_STATUS <<_ACEOF
24958
configured by $0, generated by GNU Autoconf 2.59,
24959
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24961
Copyright (C) 2003 Free Software Foundation, Inc.
24962
This config.status script is free software; the Free Software Foundation
24963
gives unlimited permission to copy, distribute and modify it."
24968
cat >>$CONFIG_STATUS <<\_ACEOF
24969
# If no file are specified by the user, then we need to provide default
24970
# value. By we need to know if files were specified by the user.
24976
ac_option=`expr "x$1" : 'x\([^=]*\)='`
24977
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24985
*) # This is not an option, so the user has probably given explicit
24988
ac_need_defaults=false;;
24992
# Handling of the options.
24994
cat >>$CONFIG_STATUS <<\_ACEOF
24995
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24997
--version | --vers* | -V )
24998
echo "$ac_cs_version"; exit 0 ;;
25000
# Conflict between --help and --header
25001
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
25002
Try \`$0 --help' for more information." >&5
25003
echo "$as_me: error: ambiguous option: $1
25004
Try \`$0 --help' for more information." >&2;}
25005
{ (exit 1); exit 1; }; };;
25006
--help | --hel | -h )
25007
echo "$ac_cs_usage"; exit 0 ;;
25008
--debug | --d* | -d )
25010
--file | --fil | --fi | --f )
25012
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25013
ac_need_defaults=false;;
25014
--header | --heade | --head | --hea )
25016
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25017
ac_need_defaults=false;;
25018
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
25019
| -silent | --silent | --silen | --sile | --sil | --si | --s)
25022
# This is an error.
25023
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25024
Try \`$0 --help' for more information." >&5
25025
echo "$as_me: error: unrecognized option: $1
25026
Try \`$0 --help' for more information." >&2;}
25027
{ (exit 1); exit 1; }; } ;;
25029
*) ac_config_targets="$ac_config_targets $1" ;;
25035
ac_configure_extra_args=
25037
if $ac_cs_silent; then
25039
ac_configure_extra_args="$ac_configure_extra_args --silent"
25043
cat >>$CONFIG_STATUS <<_ACEOF
25044
if \$ac_cs_recheck; then
25045
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25046
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25051
cat >>$CONFIG_STATUS <<_ACEOF
25053
# INIT-COMMANDS section.
25056
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25062
cat >>$CONFIG_STATUS <<\_ACEOF
25063
for ac_config_target in $ac_config_targets
25065
case "$ac_config_target" in
25066
# Handling of arguments.
25067
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25068
"src-IL/Makefile" ) CONFIG_FILES="$CONFIG_FILES src-IL/Makefile" ;;
25069
"src-IL/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src-IL/src/Makefile" ;;
25070
"src-IL/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src-IL/include/Makefile" ;;
25071
"src-ILU/Makefile" ) CONFIG_FILES="$CONFIG_FILES src-ILU/Makefile" ;;
25072
"src-ILU/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src-ILU/src/Makefile" ;;
25073
"src-ILU/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src-ILU/include/Makefile" ;;
25074
"src-ILUT/Makefile" ) CONFIG_FILES="$CONFIG_FILES src-ILUT/Makefile" ;;
25075
"src-ILUT/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src-ILUT/src/Makefile" ;;
25076
"src-ILUT/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src-ILUT/include/Makefile" ;;
25077
"include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25078
"include/IL/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/IL/Makefile" ;;
25079
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25080
"include/IL/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/IL/config.h" ;;
25081
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25082
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25083
{ (exit 1); exit 1; }; };;
25087
# If the user did not use the arguments to specify the items to instantiate,
25088
# then the envvar interface is used. Set only those that are not.
25089
# We use the long form for the default assignment because of an extremely
25090
# bizarre bug on SunOS 4.1.3.
25091
if $ac_need_defaults; then
25092
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25093
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25094
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25097
# Have a temporary directory for convenience. Make it in the build tree
25098
# simply because there is no reason to put it here, and in addition,
25099
# creating and moving files from /tmp can sometimes cause problems.
25100
# Create a temporary directory, and hook for its removal unless debugging.
25103
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25104
trap '{ (exit 1); exit 1; }' 1 2 13 15
25107
# Create a (secure) tmp directory for tmp files.
25110
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25111
test -n "$tmp" && test -d "$tmp"
25114
tmp=./confstat$$-$RANDOM
25115
(umask 077 && mkdir $tmp)
25118
echo "$me: cannot create a temporary directory in ." >&2
25119
{ (exit 1); exit 1; }
25124
cat >>$CONFIG_STATUS <<_ACEOF
25127
# CONFIG_FILES section.
25130
# No need to generate the scripts if there are no CONFIG_FILES.
25131
# This happens for instance when ./config.status config.h
25132
if test -n "\$CONFIG_FILES"; then
25133
# Protect against being on the right side of a sed subst in config.status.
25134
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25135
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25136
s,@SHELL@,$SHELL,;t t
25137
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25138
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25139
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25140
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25141
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25142
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25143
s,@exec_prefix@,$exec_prefix,;t t
25144
s,@prefix@,$prefix,;t t
25145
s,@program_transform_name@,$program_transform_name,;t t
25146
s,@bindir@,$bindir,;t t
25147
s,@sbindir@,$sbindir,;t t
25148
s,@libexecdir@,$libexecdir,;t t
25149
s,@datadir@,$datadir,;t t
25150
s,@sysconfdir@,$sysconfdir,;t t
25151
s,@sharedstatedir@,$sharedstatedir,;t t
25152
s,@localstatedir@,$localstatedir,;t t
25153
s,@libdir@,$libdir,;t t
25154
s,@includedir@,$includedir,;t t
25155
s,@oldincludedir@,$oldincludedir,;t t
25156
s,@infodir@,$infodir,;t t
25157
s,@mandir@,$mandir,;t t
25158
s,@build_alias@,$build_alias,;t t
25159
s,@host_alias@,$host_alias,;t t
25160
s,@target_alias@,$target_alias,;t t
25161
s,@DEFS@,$DEFS,;t t
25162
s,@ECHO_C@,$ECHO_C,;t t
25163
s,@ECHO_N@,$ECHO_N,;t t
25164
s,@ECHO_T@,$ECHO_T,;t t
25165
s,@LIBS@,$LIBS,;t t
25166
s,@DEVIL_LTVERSION@,$DEVIL_LTVERSION,;t t
25167
s,@build@,$build,;t t
25168
s,@build_cpu@,$build_cpu,;t t
25169
s,@build_vendor@,$build_vendor,;t t
25170
s,@build_os@,$build_os,;t t
25171
s,@host@,$host,;t t
25172
s,@host_cpu@,$host_cpu,;t t
25173
s,@host_vendor@,$host_vendor,;t t
25174
s,@host_os@,$host_os,;t t
25175
s,@target@,$target,;t t
25176
s,@target_cpu@,$target_cpu,;t t
25177
s,@target_vendor@,$target_vendor,;t t
25178
s,@target_os@,$target_os,;t t
25180
s,@CFLAGS@,$CFLAGS,;t t
25181
s,@LDFLAGS@,$LDFLAGS,;t t
25182
s,@CPPFLAGS@,$CPPFLAGS,;t t
25183
s,@ac_ct_CC@,$ac_ct_CC,;t t
25184
s,@EXEEXT@,$EXEEXT,;t t
25185
s,@OBJEXT@,$OBJEXT,;t t
25186
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25187
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25188
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25189
s,@SET_MAKE@,$SET_MAKE,;t t
25191
s,@X_CFLAGS@,$X_CFLAGS,;t t
25192
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
25193
s,@X_LIBS@,$X_LIBS,;t t
25194
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
25195
s,@CYGPATH_W@,$CYGPATH_W,;t t
25196
s,@PACKAGE@,$PACKAGE,;t t
25197
s,@VERSION@,$VERSION,;t t
25198
s,@ACLOCAL@,$ACLOCAL,;t t
25199
s,@AUTOCONF@,$AUTOCONF,;t t
25200
s,@AUTOMAKE@,$AUTOMAKE,;t t
25201
s,@AUTOHEADER@,$AUTOHEADER,;t t
25202
s,@MAKEINFO@,$MAKEINFO,;t t
25203
s,@AMTAR@,$AMTAR,;t t
25204
s,@install_sh@,$install_sh,;t t
25205
s,@STRIP@,$STRIP,;t t
25206
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25207
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
25208
s,@mkdir_p@,$mkdir_p,;t t
25210
s,@am__leading_dot@,$am__leading_dot,;t t
25211
s,@DEPDIR@,$DEPDIR,;t t
25212
s,@am__include@,$am__include,;t t
25213
s,@am__quote@,$am__quote,;t t
25214
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
25215
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
25216
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
25217
s,@CCDEPMODE@,$CCDEPMODE,;t t
25218
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
25219
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
25220
s,@EGREP@,$EGREP,;t t
25221
s,@LN_S@,$LN_S,;t t
25222
s,@ECHO@,$ECHO,;t t
25224
s,@ac_ct_AR@,$ac_ct_AR,;t t
25225
s,@RANLIB@,$RANLIB,;t t
25226
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25227
s,@DLLTOOL@,$DLLTOOL,;t t
25228
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
25230
s,@ac_ct_AS@,$ac_ct_AS,;t t
25231
s,@OBJDUMP@,$OBJDUMP,;t t
25232
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
25234
s,@CXXFLAGS@,$CXXFLAGS,;t t
25235
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25236
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
25237
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
25238
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
25239
s,@CXXCPP@,$CXXCPP,;t t
25241
s,@FFLAGS@,$FFLAGS,;t t
25242
s,@ac_ct_F77@,$ac_ct_F77,;t t
25243
s,@LIBTOOL@,$LIBTOOL,;t t
25244
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
25245
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
25246
s,@MAINT@,$MAINT,;t t
25247
s,@VERSIONINFO@,$VERSIONINFO,;t t
25248
s,@LIBZ@,$LIBZ,;t t
25249
s,@LIBJPG@,$LIBJPG,;t t
25250
s,@LIBTIFF@,$LIBTIFF,;t t
25251
s,@LIBPNG@,$LIBPNG,;t t
25252
s,@LIBLCMS@,$LIBLCMS,;t t
25253
s,@LIBMNG@,$LIBMNG,;t t
25254
s,@SDL_CONFIG@,$SDL_CONFIG,;t t
25255
s,@sdl_major_version@,$sdl_major_version,;t t
25256
s,@sdl_minor_version@,$sdl_minor_version,;t t
25257
s,@sdl_micro_version@,$sdl_micro_version,;t t
25258
s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
25259
s,@SDL_LIBS@,$SDL_LIBS,;t t
25260
s,@LIBSDL@,$LIBSDL,;t t
25261
s,@HSDL@,$HSDL,;t t
25262
s,@LIBGL@,$LIBGL,;t t
25263
s,@allegro_config@,$allegro_config,;t t
25264
s,@LIBALLEGRO@,$LIBALLEGRO,;t t
25265
s,@HALLEGRO@,$HALLEGRO,;t t
25266
s,@LIBGDI32@,$LIBGDI32,;t t
25267
s,@IL_NO_BMP_TRUE@,$IL_NO_BMP_TRUE,;t t
25268
s,@IL_NO_BMP_FALSE@,$IL_NO_BMP_FALSE,;t t
25269
s,@IL_NO_DCX_TRUE@,$IL_NO_DCX_TRUE,;t t
25270
s,@IL_NO_DCX_FALSE@,$IL_NO_DCX_FALSE,;t t
25271
s,@IL_NO_DDS_TRUE@,$IL_NO_DDS_TRUE,;t t
25272
s,@IL_NO_DDS_FALSE@,$IL_NO_DDS_FALSE,;t t
25273
s,@IL_NO_DOOM_TRUE@,$IL_NO_DOOM_TRUE,;t t
25274
s,@IL_NO_DOOM_FALSE@,$IL_NO_DOOM_FALSE,;t t
25275
s,@IL_NO_GIF_TRUE@,$IL_NO_GIF_TRUE,;t t
25276
s,@IL_NO_GIF_FALSE@,$IL_NO_GIF_FALSE,;t t
25277
s,@IL_NO_HDR_TRUE@,$IL_NO_HDR_TRUE,;t t
25278
s,@IL_NO_HDR_FALSE@,$IL_NO_HDR_FALSE,;t t
25279
s,@IL_NO_ICO_TRUE@,$IL_NO_ICO_TRUE,;t t
25280
s,@IL_NO_ICO_FALSE@,$IL_NO_ICO_FALSE,;t t
25281
s,@IL_NO_JPG_TRUE@,$IL_NO_JPG_TRUE,;t t
25282
s,@IL_NO_JPG_FALSE@,$IL_NO_JPG_FALSE,;t t
25283
s,@IL_NO_LIF_TRUE@,$IL_NO_LIF_TRUE,;t t
25284
s,@IL_NO_LIF_FALSE@,$IL_NO_LIF_FALSE,;t t
25285
s,@IL_NO_LCMS_TRUE@,$IL_NO_LCMS_TRUE,;t t
25286
s,@IL_NO_LCMS_FALSE@,$IL_NO_LCMS_FALSE,;t t
25287
s,@IL_NO_MDL_TRUE@,$IL_NO_MDL_TRUE,;t t
25288
s,@IL_NO_MDL_FALSE@,$IL_NO_MDL_FALSE,;t t
25289
s,@IL_NO_MNG_TRUE@,$IL_NO_MNG_TRUE,;t t
25290
s,@IL_NO_MNG_FALSE@,$IL_NO_MNG_FALSE,;t t
25291
s,@IL_NO_PCD_TRUE@,$IL_NO_PCD_TRUE,;t t
25292
s,@IL_NO_PCD_FALSE@,$IL_NO_PCD_FALSE,;t t
25293
s,@IL_NO_PCX_TRUE@,$IL_NO_PCX_TRUE,;t t
25294
s,@IL_NO_PCX_FALSE@,$IL_NO_PCX_FALSE,;t t
25295
s,@IL_NO_PIC_TRUE@,$IL_NO_PIC_TRUE,;t t
25296
s,@IL_NO_PIC_FALSE@,$IL_NO_PIC_FALSE,;t t
25297
s,@IL_NO_PIX_TRUE@,$IL_NO_PIX_TRUE,;t t
25298
s,@IL_NO_PIX_FALSE@,$IL_NO_PIX_FALSE,;t t
25299
s,@IL_NO_PNG_TRUE@,$IL_NO_PNG_TRUE,;t t
25300
s,@IL_NO_PNG_FALSE@,$IL_NO_PNG_FALSE,;t t
25301
s,@IL_NO_PNM_TRUE@,$IL_NO_PNM_TRUE,;t t
25302
s,@IL_NO_PNM_FALSE@,$IL_NO_PNM_FALSE,;t t
25303
s,@IL_NO_PSD_TRUE@,$IL_NO_PSD_TRUE,;t t
25304
s,@IL_NO_PSD_FALSE@,$IL_NO_PSD_FALSE,;t t
25305
s,@IL_NO_PSP_TRUE@,$IL_NO_PSP_TRUE,;t t
25306
s,@IL_NO_PSP_FALSE@,$IL_NO_PSP_FALSE,;t t
25307
s,@IL_NO_PXR_TRUE@,$IL_NO_PXR_TRUE,;t t
25308
s,@IL_NO_PXR_FALSE@,$IL_NO_PXR_FALSE,;t t
25309
s,@IL_NO_RAW_TRUE@,$IL_NO_RAW_TRUE,;t t
25310
s,@IL_NO_RAW_FALSE@,$IL_NO_RAW_FALSE,;t t
25311
s,@IL_NO_SGI_TRUE@,$IL_NO_SGI_TRUE,;t t
25312
s,@IL_NO_SGI_FALSE@,$IL_NO_SGI_FALSE,;t t
25313
s,@IL_NO_TGA_TRUE@,$IL_NO_TGA_TRUE,;t t
25314
s,@IL_NO_TGA_FALSE@,$IL_NO_TGA_FALSE,;t t
25315
s,@IL_NO_TIF_TRUE@,$IL_NO_TIF_TRUE,;t t
25316
s,@IL_NO_TIF_FALSE@,$IL_NO_TIF_FALSE,;t t
25317
s,@IL_NO_WAL_TRUE@,$IL_NO_WAL_TRUE,;t t
25318
s,@IL_NO_WAL_FALSE@,$IL_NO_WAL_FALSE,;t t
25319
s,@IL_NO_XPM_TRUE@,$IL_NO_XPM_TRUE,;t t
25320
s,@IL_NO_XPM_FALSE@,$IL_NO_XPM_FALSE,;t t
25321
s,@LIBIL_CFLAGS@,$LIBIL_CFLAGS,;t t
25322
s,@LIBILU_CFLAGS@,$LIBILU_CFLAGS,;t t
25323
s,@LIBILUT_CFLAGS@,$LIBILUT_CFLAGS,;t t
25324
s,@LIBILUT_WIN32LIBPATH@,$LIBILUT_WIN32LIBPATH,;t t
25325
s,@LIBOBJS@,$LIBOBJS,;t t
25326
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25331
cat >>$CONFIG_STATUS <<\_ACEOF
25332
# Split the substitutions into bite-sized pieces for seds with
25333
# small command number limits, like on Digital OSF/1 and HP-UX.
25334
ac_max_sed_lines=48
25335
ac_sed_frag=1 # Number of current file.
25336
ac_beg=1 # First line for current file.
25337
ac_end=$ac_max_sed_lines # Line after last line for current file.
25340
while $ac_more_lines; do
25341
if test $ac_beg -gt 1; then
25342
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25344
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25346
if test ! -s $tmp/subs.frag; then
25347
ac_more_lines=false
25349
# The purpose of the label and of the branching condition is to
25350
# speed up the sed processing (if there are no `@' at all, there
25351
# is no need to browse any of the substitutions).
25352
# These are the two extra sed commands mentioned above.
25354
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25355
if test -z "$ac_sed_cmds"; then
25356
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25358
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25360
ac_sed_frag=`expr $ac_sed_frag + 1`
25362
ac_end=`expr $ac_end + $ac_max_sed_lines`
25365
if test -z "$ac_sed_cmds"; then
25368
fi # test -n "$CONFIG_FILES"
25371
cat >>$CONFIG_STATUS <<\_ACEOF
25372
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25373
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25375
- | *:- | *:-:* ) # input from stdin
25377
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25378
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25379
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25380
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25381
* ) ac_file_in=$ac_file.in ;;
25384
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25385
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25386
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25387
X"$ac_file" : 'X\(//\)[^/]' \| \
25388
X"$ac_file" : 'X\(//\)$' \| \
25389
X"$ac_file" : 'X\(/\)' \| \
25390
. : '\(.\)' 2>/dev/null ||
25392
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25393
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
25394
/^X\(\/\/\)$/{ s//\1/; q; }
25395
/^X\(\/\).*/{ s//\1/; q; }
25397
{ if $as_mkdir_p; then
25402
while test ! -d "$as_dir"; do
25403
as_dirs="$as_dir $as_dirs"
25404
as_dir=`(dirname "$as_dir") 2>/dev/null ||
25405
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25406
X"$as_dir" : 'X\(//\)[^/]' \| \
25407
X"$as_dir" : 'X\(//\)$' \| \
25408
X"$as_dir" : 'X\(/\)' \| \
25409
. : '\(.\)' 2>/dev/null ||
25411
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25412
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
25413
/^X\(\/\/\)$/{ s//\1/; q; }
25414
/^X\(\/\).*/{ s//\1/; q; }
25417
test ! -n "$as_dirs" || mkdir $as_dirs
25418
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25419
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25420
{ (exit 1); exit 1; }; }; }
25424
if test "$ac_dir" != .; then
25425
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25426
# A "../" for each directory in $ac_dir_suffix.
25427
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25429
ac_dir_suffix= ac_top_builddir=
25433
.) # No --srcdir option. We are building in place.
25435
if test -z "$ac_top_builddir"; then
25438
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25440
[\\/]* | ?:[\\/]* ) # Absolute path.
25441
ac_srcdir=$srcdir$ac_dir_suffix;
25442
ac_top_srcdir=$srcdir ;;
25443
*) # Relative path.
25444
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25445
ac_top_srcdir=$ac_top_builddir$srcdir ;;
25448
# Do not use `cd foo && pwd` to compute absolute paths, because
25449
# the directories may not exist.
25451
.) ac_abs_builddir="$ac_dir";;
25454
.) ac_abs_builddir=`pwd`;;
25455
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25456
*) ac_abs_builddir=`pwd`/"$ac_dir";;
25459
case $ac_abs_builddir in
25460
.) ac_abs_top_builddir=${ac_top_builddir}.;;
25462
case ${ac_top_builddir}. in
25463
.) ac_abs_top_builddir=$ac_abs_builddir;;
25464
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25465
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25468
case $ac_abs_builddir in
25469
.) ac_abs_srcdir=$ac_srcdir;;
25472
.) ac_abs_srcdir=$ac_abs_builddir;;
25473
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25474
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25477
case $ac_abs_builddir in
25478
.) ac_abs_top_srcdir=$ac_top_srcdir;;
25480
case $ac_top_srcdir in
25481
.) ac_abs_top_srcdir=$ac_abs_builddir;;
25482
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25483
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25489
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25490
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25493
if test x"$ac_file" != x-; then
25494
{ echo "$as_me:$LINENO: creating $ac_file" >&5
25495
echo "$as_me: creating $ac_file" >&6;}
25498
# Let's still pretend it is `configure' which instantiates (i.e., don't
25499
# use $as_me), people would be surprised to read:
25500
# /* config.h. Generated by config.status. */
25501
if test x"$ac_file" = x-; then
25504
configure_input="$ac_file. "
25506
configure_input=$configure_input"Generated from `echo $ac_file_in |
25507
sed 's,.*/,,'` by configure."
25509
# First look for the input files in the build tree, otherwise in the
25511
ac_file_inputs=`IFS=:
25512
for f in $ac_file_in; do
25514
-) echo $tmp/stdin ;;
25516
# Absolute (can't be DOS-style, as IFS=:)
25517
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25518
echo "$as_me: error: cannot find input file: $f" >&2;}
25519
{ (exit 1); exit 1; }; }
25522
if test -f "$f"; then
25525
elif test -f "$srcdir/$f"; then
25530
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25531
echo "$as_me: error: cannot find input file: $f" >&2;}
25532
{ (exit 1); exit 1; }; }
25535
done` || { (exit 1); exit 1; }
25537
cat >>$CONFIG_STATUS <<_ACEOF
25541
cat >>$CONFIG_STATUS <<\_ACEOF
25543
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25544
s,@configure_input@,$configure_input,;t t
25545
s,@srcdir@,$ac_srcdir,;t t
25546
s,@abs_srcdir@,$ac_abs_srcdir,;t t
25547
s,@top_srcdir@,$ac_top_srcdir,;t t
25548
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25549
s,@builddir@,$ac_builddir,;t t
25550
s,@abs_builddir@,$ac_abs_builddir,;t t
25551
s,@top_builddir@,$ac_top_builddir,;t t
25552
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25553
s,@INSTALL@,$ac_INSTALL,;t t
25554
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25556
if test x"$ac_file" != x-; then
25557
mv $tmp/out $ac_file
25565
cat >>$CONFIG_STATUS <<\_ACEOF
25568
# CONFIG_HEADER section.
25571
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25572
# NAME is the cpp macro being defined and VALUE is the value it is being given.
25574
# ac_d sets the value in "#define NAME VALUE" lines.
25575
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25576
ac_dB='[ ].*$,\1#\2'
25579
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25580
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25581
ac_uB='$,\1#\2define\3'
25585
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25586
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25588
- | *:- | *:-:* ) # input from stdin
25590
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25591
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25592
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25593
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25594
* ) ac_file_in=$ac_file.in ;;
25597
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25598
echo "$as_me: creating $ac_file" >&6;}
25600
# First look for the input files in the build tree, otherwise in the
25602
ac_file_inputs=`IFS=:
25603
for f in $ac_file_in; do
25605
-) echo $tmp/stdin ;;
25607
# Absolute (can't be DOS-style, as IFS=:)
25608
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25609
echo "$as_me: error: cannot find input file: $f" >&2;}
25610
{ (exit 1); exit 1; }; }
25611
# Do quote $f, to prevent DOS paths from being IFS'd.
25614
if test -f "$f"; then
25617
elif test -f "$srcdir/$f"; then
25622
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25623
echo "$as_me: error: cannot find input file: $f" >&2;}
25624
{ (exit 1); exit 1; }; }
25627
done` || { (exit 1); exit 1; }
25628
# Remove the trailing spaces.
25629
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25633
# Transform confdefs.h into two sed scripts, `conftest.defines' and
25634
# `conftest.undefs', that substitutes the proper values into
25635
# config.h.in to produce config.h. The first handles `#define'
25636
# templates, and the second `#undef' templates.
25637
# And first: Protect against being on the right side of a sed subst in
25638
# config.status. Protect against being in an unquoted here document
25639
# in config.status.
25640
rm -f conftest.defines conftest.undefs
25641
# Using a here document instead of a string reduces the quoting nightmare.
25642
# Putting comments in sed scripts is not portable.
25644
# `end' is used to avoid that the second main sed command (meant for
25645
# 0-ary CPP macros) applies to n-ary macro definitions.
25646
# See the Autoconf documentation for `clear'.
25647
cat >confdef2sed.sed <<\_ACEOF
25652
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25654
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25657
# If some macros were called several times there might be several times
25658
# the same #defines, which is useless. Nevertheless, we may not want to
25659
# sort them, since we want the *last* AC-DEFINE to be honored.
25660
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25661
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25662
rm -f confdef2sed.sed
25664
# This sed command replaces #undef with comments. This is necessary, for
25665
# example, in the case of _POSIX_SOURCE, which is predefined and required
25666
# on some systems where configure will not decide to define it.
25667
cat >>conftest.undefs <<\_ACEOF
25668
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25671
# Break up conftest.defines because some shells have a limit on the size
25672
# of here documents, and old seds have small limits too (100 cmds).
25673
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25674
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25675
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25676
echo ' :' >>$CONFIG_STATUS
25677
rm -f conftest.tail
25678
while grep . conftest.defines >/dev/null
25680
# Write a limited-size here document to $tmp/defines.sed.
25681
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25682
# Speed up: don't consider the non `#define' lines.
25683
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25684
# Work around the forget-to-reset-the-flag bug.
25685
echo 't clr' >>$CONFIG_STATUS
25686
echo ': clr' >>$CONFIG_STATUS
25687
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25689
sed -f $tmp/defines.sed $tmp/in >$tmp/out
25691
mv $tmp/out $tmp/in
25693
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25694
rm -f conftest.defines
25695
mv conftest.tail conftest.defines
25697
rm -f conftest.defines
25698
echo ' fi # grep' >>$CONFIG_STATUS
25699
echo >>$CONFIG_STATUS
25701
# Break up conftest.undefs because some shells have a limit on the size
25702
# of here documents, and old seds have small limits too (100 cmds).
25703
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25704
rm -f conftest.tail
25705
while grep . conftest.undefs >/dev/null
25707
# Write a limited-size here document to $tmp/undefs.sed.
25708
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25709
# Speed up: don't consider the non `#undef'
25710
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25711
# Work around the forget-to-reset-the-flag bug.
25712
echo 't clr' >>$CONFIG_STATUS
25713
echo ': clr' >>$CONFIG_STATUS
25714
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25716
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25718
mv $tmp/out $tmp/in
25720
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25721
rm -f conftest.undefs
25722
mv conftest.tail conftest.undefs
25724
rm -f conftest.undefs
25726
cat >>$CONFIG_STATUS <<\_ACEOF
25727
# Let's still pretend it is `configure' which instantiates (i.e., don't
25728
# use $as_me), people would be surprised to read:
25729
# /* config.h. Generated by config.status. */
25730
if test x"$ac_file" = x-; then
25731
echo "/* Generated by configure. */" >$tmp/config.h
25733
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25735
cat $tmp/in >>$tmp/config.h
25737
if test x"$ac_file" != x-; then
25738
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25739
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25740
echo "$as_me: $ac_file is unchanged" >&6;}
25742
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25743
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25744
X"$ac_file" : 'X\(//\)[^/]' \| \
25745
X"$ac_file" : 'X\(//\)$' \| \
25746
X"$ac_file" : 'X\(/\)' \| \
25747
. : '\(.\)' 2>/dev/null ||
25749
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25750
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
25751
/^X\(\/\/\)$/{ s//\1/; q; }
25752
/^X\(\/\).*/{ s//\1/; q; }
25754
{ if $as_mkdir_p; then
25759
while test ! -d "$as_dir"; do
25760
as_dirs="$as_dir $as_dirs"
25761
as_dir=`(dirname "$as_dir") 2>/dev/null ||
25762
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25763
X"$as_dir" : 'X\(//\)[^/]' \| \
25764
X"$as_dir" : 'X\(//\)$' \| \
25765
X"$as_dir" : 'X\(/\)' \| \
25766
. : '\(.\)' 2>/dev/null ||
25768
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25769
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
25770
/^X\(\/\/\)$/{ s//\1/; q; }
25771
/^X\(\/\).*/{ s//\1/; q; }
25774
test ! -n "$as_dirs" || mkdir $as_dirs
25775
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25776
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25777
{ (exit 1); exit 1; }; }; }
25780
mv $tmp/config.h $ac_file
25784
rm -f $tmp/config.h
25786
# Compute $ac_file's index in $config_headers.
25788
for _am_header in $config_headers :; do
25789
case $_am_header in
25790
$ac_file | $ac_file:* )
25793
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
25796
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
25797
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25798
X$ac_file : 'X\(//\)[^/]' \| \
25799
X$ac_file : 'X\(//\)$' \| \
25800
X$ac_file : 'X\(/\)' \| \
25801
. : '\(.\)' 2>/dev/null ||
25803
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25804
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
25805
/^X\(\/\/\)$/{ s//\1/; q; }
25806
/^X\(\/\).*/{ s//\1/; q; }
25807
s/.*/./; q'`/stamp-h$_am_stamp_count
25810
cat >>$CONFIG_STATUS <<\_ACEOF
25813
# CONFIG_COMMANDS section.
25815
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25816
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25817
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25818
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25819
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25820
X"$ac_dest" : 'X\(//\)[^/]' \| \
25821
X"$ac_dest" : 'X\(//\)$' \| \
25822
X"$ac_dest" : 'X\(/\)' \| \
25823
. : '\(.\)' 2>/dev/null ||
25825
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25826
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
25827
/^X\(\/\/\)$/{ s//\1/; q; }
25828
/^X\(\/\).*/{ s//\1/; q; }
25830
{ if $as_mkdir_p; then
25835
while test ! -d "$as_dir"; do
25836
as_dirs="$as_dir $as_dirs"
25837
as_dir=`(dirname "$as_dir") 2>/dev/null ||
25838
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25839
X"$as_dir" : 'X\(//\)[^/]' \| \
25840
X"$as_dir" : 'X\(//\)$' \| \
25841
X"$as_dir" : 'X\(/\)' \| \
25842
. : '\(.\)' 2>/dev/null ||
25844
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25845
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
25846
/^X\(\/\/\)$/{ s//\1/; q; }
25847
/^X\(\/\).*/{ s//\1/; q; }
25850
test ! -n "$as_dirs" || mkdir $as_dirs
25851
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25852
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25853
{ (exit 1); exit 1; }; }; }
25857
if test "$ac_dir" != .; then
25858
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25859
# A "../" for each directory in $ac_dir_suffix.
25860
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25862
ac_dir_suffix= ac_top_builddir=
25866
.) # No --srcdir option. We are building in place.
25868
if test -z "$ac_top_builddir"; then
25871
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25873
[\\/]* | ?:[\\/]* ) # Absolute path.
25874
ac_srcdir=$srcdir$ac_dir_suffix;
25875
ac_top_srcdir=$srcdir ;;
25876
*) # Relative path.
25877
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25878
ac_top_srcdir=$ac_top_builddir$srcdir ;;
25881
# Do not use `cd foo && pwd` to compute absolute paths, because
25882
# the directories may not exist.
25884
.) ac_abs_builddir="$ac_dir";;
25887
.) ac_abs_builddir=`pwd`;;
25888
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25889
*) ac_abs_builddir=`pwd`/"$ac_dir";;
25892
case $ac_abs_builddir in
25893
.) ac_abs_top_builddir=${ac_top_builddir}.;;
25895
case ${ac_top_builddir}. in
25896
.) ac_abs_top_builddir=$ac_abs_builddir;;
25897
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25898
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25901
case $ac_abs_builddir in
25902
.) ac_abs_srcdir=$ac_srcdir;;
25905
.) ac_abs_srcdir=$ac_abs_builddir;;
25906
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25907
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25910
case $ac_abs_builddir in
25911
.) ac_abs_top_srcdir=$ac_top_srcdir;;
25913
case $ac_top_srcdir in
25914
.) ac_abs_top_srcdir=$ac_abs_builddir;;
25915
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25916
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25921
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25922
echo "$as_me: executing $ac_dest commands" >&6;}
25924
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25925
# Strip MF so we end up with the name of the file.
25926
mf=`echo "$mf" | sed -e 's/:.*$//'`
25927
# Check whether this is an Automake generated Makefile or not.
25928
# We used to match only the files named `Makefile.in', but
25929
# some people rename them; so instead we look at the file content.
25930
# Grep'ing the first line is not enough: some people post-process
25931
# each Makefile.in and add a new line on top of each file to say so.
25932
# So let's grep whole file.
25933
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25934
dirpart=`(dirname "$mf") 2>/dev/null ||
25935
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25936
X"$mf" : 'X\(//\)[^/]' \| \
25937
X"$mf" : 'X\(//\)$' \| \
25938
X"$mf" : 'X\(/\)' \| \
25939
. : '\(.\)' 2>/dev/null ||
25941
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25942
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
25943
/^X\(\/\/\)$/{ s//\1/; q; }
25944
/^X\(\/\).*/{ s//\1/; q; }
25949
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
25950
# Extract the definition of DEP_FILES from the Makefile without
25952
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25953
test -z "$DEPDIR" && continue
25954
# When using ansi2knr, U may be empty or an underscore; expand it
25955
U=`sed -n 's/^U = //p' < "$mf"`
25956
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
25957
# We invoke sed twice because it is the simplest approach to
25958
# changing $(DEPDIR) to its actual value in the expansion.
25959
for file in `sed -n '
25960
/^DEP_FILES = .*\\\\$/ {
25969
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
25970
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25971
# Make sure the directory exists.
25972
test -f "$dirpart/$file" && continue
25973
fdir=`(dirname "$file") 2>/dev/null ||
25974
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25975
X"$file" : 'X\(//\)[^/]' \| \
25976
X"$file" : 'X\(//\)$' \| \
25977
X"$file" : 'X\(/\)' \| \
25978
. : '\(.\)' 2>/dev/null ||
25980
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25981
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
25982
/^X\(\/\/\)$/{ s//\1/; q; }
25983
/^X\(\/\).*/{ s//\1/; q; }
25985
{ if $as_mkdir_p; then
25986
mkdir -p $dirpart/$fdir
25988
as_dir=$dirpart/$fdir
25990
while test ! -d "$as_dir"; do
25991
as_dirs="$as_dir $as_dirs"
25992
as_dir=`(dirname "$as_dir") 2>/dev/null ||
25993
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25994
X"$as_dir" : 'X\(//\)[^/]' \| \
25995
X"$as_dir" : 'X\(//\)$' \| \
25996
X"$as_dir" : 'X\(/\)' \| \
25997
. : '\(.\)' 2>/dev/null ||
25999
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26000
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
26001
/^X\(\/\/\)$/{ s//\1/; q; }
26002
/^X\(\/\).*/{ s//\1/; q; }
26005
test ! -n "$as_dirs" || mkdir $as_dirs
26006
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
26007
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
26008
{ (exit 1); exit 1; }; }; }
26010
# echo "creating $dirpart/$file"
26011
echo '# dummy' > "$dirpart/$file"
26019
cat >>$CONFIG_STATUS <<\_ACEOF
26021
{ (exit 0); exit 0; }
26023
chmod +x $CONFIG_STATUS
26024
ac_clean_files=$ac_clean_files_save
26027
# configure is writing to config.log, and then calls config.status.
26028
# config.status does its own redirection, appending to config.log.
26029
# Unfortunately, on DOS this fails, as config.log is still kept open
26030
# by configure, so config.status won't be able to write to it; its
26031
# output is simply discarded. So we exec the FD to /dev/null,
26032
# effectively closing config.log, so it can be properly (re)opened and
26033
# appended to by config.status. When coming back to configure, we
26034
# need to make the FD available again.
26035
if test "$no_create" != yes; then
26037
ac_config_status_args=
26038
test "$silent" = yes &&
26039
ac_config_status_args="$ac_config_status_args --quiet"
26041
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26043
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
26044
# would make configure fail if this is the last instruction.
26045
$ac_cs_success || { (exit 1); exit 1; }