2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59.
5
# Copyright (C) 2003 Free Software Foundation, Inc.
6
# This configure script is free software; the Free Software Foundation
7
# gives unlimited permission to copy, distribute and modify it.
8
## --------------------- ##
9
## M4sh Initialization. ##
10
## --------------------- ##
12
# Be Bourne compatible
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
# is contrary to our usage. Disable this feature.
18
alias -g '${1+"$@"}'='"$@"'
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22
DUALCASE=1; export DUALCASE # for MKS sh
24
# Support unset when possible.
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
40
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
eval $as_var=C; export $as_var
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65
# Name of the executable.
66
as_me=`$as_basename "$0" ||
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
X"$0" : 'X\(//\)$' \| \
69
X"$0" : 'X\(/\)$' \| \
70
. : '\(.\)' 2>/dev/null ||
72
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
/^X\/\(\/\/\)$/{ s//\1/; q; }
74
/^X\/\(\/\).*/{ s//\1/; q; }
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
echo "#! /bin/sh" >conf$$.sh
89
echo "exit 0" >>conf$$.sh
91
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
test "x$as_lineno_1" != "x$as_lineno_2" &&
104
test "x$as_lineno_3" = "x$as_lineno_2" || {
105
# Find who we are. Look in the path if we contain no path at all
108
*[\\/]* ) as_myself=$0 ;;
109
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113
test -z "$as_dir" && as_dir=.
114
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119
# We did not find ourselves, most probably we were run as `sh COMMAND'
120
# in which case we are not to be found in the path.
121
if test "x$as_myself" = x; then
124
if test ! -f "$as_myself"; then
125
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
{ (exit 1); exit 1; }; }
128
case $CONFIG_SHELL in
130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
test -z "$as_dir" && as_dir=.
135
for as_base in sh bash ksh sh5; do
138
if ("$as_dir/$as_base" -c '
141
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
test "x$as_lineno_1" != "x$as_lineno_2" &&
143
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
CONFIG_SHELL=$as_dir/$as_base
148
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
# uniformly replaced by the line number. The first 'sed' inserts a
158
# line-number line before each line; the second 'sed' does the real
159
# work. The second script uses 'N' to pair each line-number line
160
# with the numbered line, and appends trailing '-' during
161
# substitution so that $LINENO is not a special case at line end.
162
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164
sed '=' <$as_myself |
169
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172
s,^['$as_cr_digits']*\n,,
174
chmod +x $as_me.lineno ||
175
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
{ (exit 1); exit 1; }; }
178
# Don't try to exec as it changes $[0], causing all sort of problems
179
# (the dirname of $[0] is not the place where we might find the
180
# original and so on. Autoconf is especially sensible to this).
182
# Exit status is that of the last command.
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
*c*,-n*) ECHO_N= ECHO_C='
190
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194
if expr a : '\(a\)' >/dev/null 2>&1; then
200
rm -f conf$$ conf$$.exe conf$$.file
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
# We could just check for DJGPP; but this test a) works b) is more generic
204
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
if test -f conf$$.exe; then
206
# Don't use ln at all; we don't have any links
211
elif ln conf$$.file conf$$ 2>/dev/null; then
216
rm -f conf$$ conf$$.exe conf$$.file
218
if mkdir -p . 2>/dev/null; then
221
test -d ./-p && rmdir ./-p
225
as_executable_p="test -f"
227
# Sed expression to map a string onto a valid CPP name.
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
# Sed expression to map a string onto a valid variable name.
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
# We need space, tab and new line, in precisely that order.
245
# Check that we are running under the correct shell.
246
SHELL=${CONFIG_SHELL-/bin/sh}
250
# Remove one level of quotation (which was required for Make).
251
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256
if test "X$1" = X--no-reexec; then
257
# Discard the --no-reexec flag, and continue.
259
elif test "X$1" = X--fallback-echo; then
260
# Avoid inline document here, it may be left over
262
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263
# Yippee, $echo works!
266
# Restart under the correct shell.
267
exec $SHELL "$0" --no-reexec ${1+"$@"}
270
if test "X$1" = X--fallback-echo; then
271
# used as fallback echo
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
281
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
if test -z "$ECHO"; then
284
if test "X${echo_test_string+set}" != Xset; then
285
# find a string as large as possible, as long as the shell can cope with it
286
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289
echo_test_string="`eval $cmd`" &&
290
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299
test "X$echo_testing_string" = "X$echo_test_string"; then
302
# The Solaris, AIX, and Digital Unix default echo programs unquote
303
# backslashes. This makes it impossible to quote backslashes using
304
# echo "$something" | sed 's/\\/\\\\/g'
306
# So, first we look for a working echo in the user's PATH.
308
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309
for dir in $PATH /usr/ucb; do
311
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314
test "X$echo_testing_string" = "X$echo_test_string"; then
321
if test "X$echo" = Xecho; then
322
# We didn't find a better echo, so look for alternatives.
323
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325
test "X$echo_testing_string" = "X$echo_test_string"; then
326
# This shell has a builtin print -r that does the trick.
328
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329
test "X$CONFIG_SHELL" != X/bin/ksh; then
330
# If we have ksh, try running configure again with it.
331
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332
export ORIGINAL_CONFIG_SHELL
333
CONFIG_SHELL=/bin/ksh
335
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341
test "X$echo_testing_string" = "X$echo_test_string"; then
344
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345
test "X$echo_testing_string" = 'X\t' &&
346
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347
test "X$echo_testing_string" = "X$echo_test_string"; then
348
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350
SHELL="$CONFIG_SHELL"
352
echo="$CONFIG_SHELL $0 --fallback-echo"
353
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354
test "X$echo_testing_string" = 'X\t' &&
355
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356
test "X$echo_testing_string" = "X$echo_test_string"; then
357
echo="$CONFIG_SHELL $0 --fallback-echo"
359
# maybe with a smaller string...
362
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370
if test "$prev" != 'sed 50q "$0"'; then
371
echo_test_string=`eval $prev`
372
export echo_test_string
373
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375
# Oops. We lost completely, so just stick with echo.
384
# Copy echo and quote the copy suitably for passing to libtool from
385
# the Makefile, instead of quoting the original, which is used later.
387
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394
tagnames=${tagnames+${tagnames},}CXX
396
tagnames=${tagnames+${tagnames},}F77
399
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400
# so uname gets run too.
401
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408
ac_default_prefix=/usr/local
409
ac_config_libobj_dir=.
414
SHELL=${CONFIG_SHELL-/bin/sh}
416
# Maximum number of lines to put in a shell here document.
417
# This variable seems obsolete. It should probably be removed, and
418
# only ac_max_sed_lines should be used.
419
: ${ac_max_here_lines=38}
421
# Identity of this package.
428
ac_unique_file="configure.in"
429
# Factoring default headers for most tests.
430
ac_includes_default="\
433
# include <sys/types.h>
436
# include <sys/stat.h>
447
# if !STDC_HEADERS && HAVE_MEMORY_H
453
# include <strings.h>
456
# include <inttypes.h>
466
ac_subdirs_all="$ac_subdirs_all ffmpeg speex oRTP osipua"
467
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CPP EGREP INTLTOOL_DESKTOP_RULE INTLTOOL_DIRECTORY_RULE INTLTOOL_KEYS_RULE INTLTOOL_PROP_RULE INTLTOOL_OAF_RULE INTLTOOL_PONG_RULE INTLTOOL_SERVER_RULE INTLTOOL_SHEET_RULE INTLTOOL_SOUNDLIST_RULE INTLTOOL_UI_RULE INTLTOOL_XAM_RULE INTLTOOL_KBD_RULE INTLTOOL_XML_RULE INTLTOOL_CAVES_RULE INTLTOOL_SCHEMAS_RULE INTLTOOL_THEME_RULE INTLTOOL_EXTRACT INTLTOOL_MERGE INTLTOOL_UPDATE INTLTOOL_PERL build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL GETTEXT_PACKAGE USE_NLS MSGFMT GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS PKG_CONFIG GLIB_CFLAGS GLIB_LIBS GLIB_GENMARSHAL GOBJECT_QUERY GLIB_MKENUMS LIBGNOMEUI_CFLAGS LIBGNOMEUI_LIBS LIBGNOME_CFLAGS LIBGNOME_LIBS GNOME_APPLETS_CFLAGS GNOME_APPLETS_LIBS PTHREAD_LDFLAGS GSMLIB_CFLAGS osip_prefix IPV6_CFLAGS TRUESPEECH_CFLAGS BUILD_TRUESPEECH_TRUE BUILD_TRUESPEECH_FALSE SPEEX_CFLAGS SPEEX_LIBS NASM AVCODEC_LIBS GDK_CFLAGS GDK_LIBS BUILD_MEDIASTREAMER_TRUE BUILD_MEDIASTREAMER_FALSE HAVE_XINELIB_TRUE HAVE_XINELIB_FALSE HAVE_SMPEG_TRUE HAVE_SMPEG_FALSE BUILD_FFMPEG_TRUE BUILD_FFMPEG_FALSE BUILD_GDK_VO_TRUE BUILD_GDK_VO_FALSE BUILD_V4L_TRUE BUILD_V4L_FALSE BUILD_MEDIA_API_TRUE BUILD_MEDIA_API_FALSE BUILD_UGLIB_TRUE BUILD_UGLIB_FALSE BUILD_GNOME_TRUE BUILD_GNOME_FALSE BUILD_GNOME_APPLET_TRUE BUILD_GNOME_APPLET_FALSE BUILD_SPEEX_TRUE BUILD_SPEEX_FALSE ALSA_LIBS subdirs HTML_DIR GTK_DOC_CFLAGS GTK_DOC_LIBS ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE LINPHONE_CFLAGS LINPHONE_LIBS SUPPORTLIB LIBOBJS LTLIBOBJS'
470
# Initialize some variables set by options.
472
ac_init_version=false
473
# The variables have the same names as the options, with
474
# dashes changed to underlines.
482
program_transform_name=s,x,x,
490
# Installation directory options.
491
# These are left unexpanded so users can "make install exec_prefix=/foo"
492
# and all the variables that are supposed to be based on exec_prefix
493
# by default will actually change.
494
# Use braces instead of parens because sh, perl, etc. also accept them.
495
bindir='${exec_prefix}/bin'
496
sbindir='${exec_prefix}/sbin'
497
libexecdir='${exec_prefix}/libexec'
498
datadir='${prefix}/share'
499
sysconfdir='${prefix}/etc'
500
sharedstatedir='${prefix}/com'
501
localstatedir='${prefix}/var'
502
libdir='${exec_prefix}/lib'
503
includedir='${prefix}/include'
504
oldincludedir='/usr/include'
505
infodir='${prefix}/info'
506
mandir='${prefix}/man'
511
# If the previous option needs an argument, assign it.
512
if test -n "$ac_prev"; then
513
eval "$ac_prev=\$ac_option"
518
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
# Accept the important Cygnus configure options, so we can diagnose typos.
524
-bindir | --bindir | --bindi | --bind | --bin | --bi)
526
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529
-build | --build | --buil | --bui | --bu)
530
ac_prev=build_alias ;;
531
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
532
build_alias=$ac_optarg ;;
534
-cache-file | --cache-file | --cache-fil | --cache-fi \
535
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536
ac_prev=cache_file ;;
537
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539
cache_file=$ac_optarg ;;
542
cache_file=config.cache ;;
544
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548
datadir=$ac_optarg ;;
550
-disable-* | --disable-*)
551
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552
# Reject names that are not valid shell variable names.
553
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
555
{ (exit 1); exit 1; }; }
556
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557
eval "enable_$ac_feature=no" ;;
559
-enable-* | --enable-*)
560
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561
# Reject names that are not valid shell variable names.
562
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
564
{ (exit 1); exit 1; }; }
565
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570
eval "enable_$ac_feature='$ac_optarg'" ;;
572
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574
| --exec | --exe | --ex)
575
ac_prev=exec_prefix ;;
576
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578
| --exec=* | --exe=* | --ex=*)
579
exec_prefix=$ac_optarg ;;
581
-gas | --gas | --ga | --g)
582
# Obsolete; use --with-gas.
585
-help | --help | --hel | --he | -h)
587
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588
ac_init_help=recursive ;;
589
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590
ac_init_help=short ;;
592
-host | --host | --hos | --ho)
593
ac_prev=host_alias ;;
594
-host=* | --host=* | --hos=* | --ho=*)
595
host_alias=$ac_optarg ;;
597
-includedir | --includedir | --includedi | --included | --include \
598
| --includ | --inclu | --incl | --inc)
599
ac_prev=includedir ;;
600
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601
| --includ=* | --inclu=* | --incl=* | --inc=*)
602
includedir=$ac_optarg ;;
604
-infodir | --infodir | --infodi | --infod | --info | --inf)
606
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607
infodir=$ac_optarg ;;
609
-libdir | --libdir | --libdi | --libd)
611
-libdir=* | --libdir=* | --libdi=* | --libd=*)
614
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615
| --libexe | --libex | --libe)
616
ac_prev=libexecdir ;;
617
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618
| --libexe=* | --libex=* | --libe=*)
619
libexecdir=$ac_optarg ;;
621
-localstatedir | --localstatedir | --localstatedi | --localstated \
622
| --localstate | --localstat | --localsta | --localst \
623
| --locals | --local | --loca | --loc | --lo)
624
ac_prev=localstatedir ;;
625
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
627
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628
localstatedir=$ac_optarg ;;
630
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636
# Obsolete; use --without-fp.
639
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
640
| --no-cr | --no-c | -n)
643
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
644
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649
| --oldin | --oldi | --old | --ol | --o)
650
ac_prev=oldincludedir ;;
651
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654
oldincludedir=$ac_optarg ;;
656
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661
-program-prefix | --program-prefix | --program-prefi | --program-pref \
662
| --program-pre | --program-pr | --program-p)
663
ac_prev=program_prefix ;;
664
-program-prefix=* | --program-prefix=* | --program-prefi=* \
665
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666
program_prefix=$ac_optarg ;;
668
-program-suffix | --program-suffix | --program-suffi | --program-suff \
669
| --program-suf | --program-su | --program-s)
670
ac_prev=program_suffix ;;
671
-program-suffix=* | --program-suffix=* | --program-suffi=* \
672
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673
program_suffix=$ac_optarg ;;
675
-program-transform-name | --program-transform-name \
676
| --program-transform-nam | --program-transform-na \
677
| --program-transform-n | --program-transform- \
678
| --program-transform | --program-transfor \
679
| --program-transfo | --program-transf \
680
| --program-trans | --program-tran \
681
| --progr-tra | --program-tr | --program-t)
682
ac_prev=program_transform_name ;;
683
-program-transform-name=* | --program-transform-name=* \
684
| --program-transform-nam=* | --program-transform-na=* \
685
| --program-transform-n=* | --program-transform-=* \
686
| --program-transform=* | --program-transfor=* \
687
| --program-transfo=* | --program-transf=* \
688
| --program-trans=* | --program-tran=* \
689
| --progr-tra=* | --program-tr=* | --program-t=*)
690
program_transform_name=$ac_optarg ;;
692
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
693
| -silent | --silent | --silen | --sile | --sil)
696
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700
sbindir=$ac_optarg ;;
702
-sharedstatedir | --sharedstatedir | --sharedstatedi \
703
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704
| --sharedst | --shareds | --shared | --share | --shar \
706
ac_prev=sharedstatedir ;;
707
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711
sharedstatedir=$ac_optarg ;;
713
-site | --site | --sit)
715
-site=* | --site=* | --sit=*)
718
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724
| --syscon | --sysco | --sysc | --sys | --sy)
725
ac_prev=sysconfdir ;;
726
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728
sysconfdir=$ac_optarg ;;
730
-target | --target | --targe | --targ | --tar | --ta | --t)
731
ac_prev=target_alias ;;
732
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733
target_alias=$ac_optarg ;;
735
-v | -verbose | --verbose | --verbos | --verbo | --verb)
738
-version | --version | --versio | --versi | --vers | -V)
742
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743
# Reject names that are not valid shell variable names.
744
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745
{ echo "$as_me: error: invalid package name: $ac_package" >&2
746
{ (exit 1); exit 1; }; }
747
ac_package=`echo $ac_package| sed 's/-/_/g'`
749
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752
eval "with_$ac_package='$ac_optarg'" ;;
754
-without-* | --without-*)
755
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756
# Reject names that are not valid shell variable names.
757
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758
{ echo "$as_me: error: invalid package name: $ac_package" >&2
759
{ (exit 1); exit 1; }; }
760
ac_package=`echo $ac_package | sed 's/-/_/g'`
761
eval "with_$ac_package=no" ;;
764
# Obsolete; use --with-x.
767
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768
| --x-incl | --x-inc | --x-in | --x-i)
769
ac_prev=x_includes ;;
770
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772
x_includes=$ac_optarg ;;
774
-x-libraries | --x-libraries | --x-librarie | --x-librari \
775
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776
ac_prev=x_libraries ;;
777
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779
x_libraries=$ac_optarg ;;
781
-*) { echo "$as_me: error: unrecognized option: $ac_option
782
Try \`$0 --help' for more information." >&2
783
{ (exit 1); exit 1; }; }
787
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788
# Reject names that are not valid shell variable names.
789
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791
{ (exit 1); exit 1; }; }
792
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793
eval "$ac_envvar='$ac_optarg'"
797
# FIXME: should be removed in autoconf 3.0.
798
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807
if test -n "$ac_prev"; then
808
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809
{ echo "$as_me: error: missing argument to $ac_option" >&2
810
{ (exit 1); exit 1; }; }
813
# Be sure to have absolute paths.
814
for ac_var in exec_prefix prefix
816
eval ac_val=$`echo $ac_var`
818
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820
{ (exit 1); exit 1; }; };;
824
# Be sure to have absolute paths.
825
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826
localstatedir libdir includedir oldincludedir infodir mandir
828
eval ac_val=$`echo $ac_var`
830
[\\/$]* | ?:[\\/]* ) ;;
831
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832
{ (exit 1); exit 1; }; };;
836
# There might be people who depend on the old broken behavior: `$host'
837
# used to hold the argument of --host etc.
838
# FIXME: To remove some day.
843
# FIXME: To remove some day.
844
if test "x$host_alias" != x; then
845
if test "x$build_alias" = x; then
846
cross_compiling=maybe
847
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848
If a cross compiler is detected then cross compile mode will be used." >&2
849
elif test "x$build_alias" != "x$host_alias"; then
855
test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
test "$silent" = yes && exec 6>/dev/null
860
# Find the source files, if location was not specified.
861
if test -z "$srcdir"; then
862
ac_srcdir_defaulted=yes
863
# Try the directory containing this script, then its parent.
864
ac_confdir=`(dirname "$0") 2>/dev/null ||
865
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866
X"$0" : 'X\(//\)[^/]' \| \
867
X"$0" : 'X\(//\)$' \| \
868
X"$0" : 'X\(/\)' \| \
869
. : '\(.\)' 2>/dev/null ||
871
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
873
/^X\(\/\/\)$/{ s//\1/; q; }
874
/^X\(\/\).*/{ s//\1/; q; }
877
if test ! -r $srcdir/$ac_unique_file; then
881
ac_srcdir_defaulted=no
883
if test ! -r $srcdir/$ac_unique_file; then
884
if test "$ac_srcdir_defaulted" = yes; then
885
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886
{ (exit 1); exit 1; }; }
888
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889
{ (exit 1); exit 1; }; }
892
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894
{ (exit 1); exit 1; }; }
895
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896
ac_env_build_alias_set=${build_alias+set}
897
ac_env_build_alias_value=$build_alias
898
ac_cv_env_build_alias_set=${build_alias+set}
899
ac_cv_env_build_alias_value=$build_alias
900
ac_env_host_alias_set=${host_alias+set}
901
ac_env_host_alias_value=$host_alias
902
ac_cv_env_host_alias_set=${host_alias+set}
903
ac_cv_env_host_alias_value=$host_alias
904
ac_env_target_alias_set=${target_alias+set}
905
ac_env_target_alias_value=$target_alias
906
ac_cv_env_target_alias_set=${target_alias+set}
907
ac_cv_env_target_alias_value=$target_alias
908
ac_env_CC_set=${CC+set}
910
ac_cv_env_CC_set=${CC+set}
911
ac_cv_env_CC_value=$CC
912
ac_env_CFLAGS_set=${CFLAGS+set}
913
ac_env_CFLAGS_value=$CFLAGS
914
ac_cv_env_CFLAGS_set=${CFLAGS+set}
915
ac_cv_env_CFLAGS_value=$CFLAGS
916
ac_env_LDFLAGS_set=${LDFLAGS+set}
917
ac_env_LDFLAGS_value=$LDFLAGS
918
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919
ac_cv_env_LDFLAGS_value=$LDFLAGS
920
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921
ac_env_CPPFLAGS_value=$CPPFLAGS
922
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924
ac_env_CPP_set=${CPP+set}
925
ac_env_CPP_value=$CPP
926
ac_cv_env_CPP_set=${CPP+set}
927
ac_cv_env_CPP_value=$CPP
928
ac_env_CXX_set=${CXX+set}
929
ac_env_CXX_value=$CXX
930
ac_cv_env_CXX_set=${CXX+set}
931
ac_cv_env_CXX_value=$CXX
932
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933
ac_env_CXXFLAGS_value=$CXXFLAGS
934
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936
ac_env_CXXCPP_set=${CXXCPP+set}
937
ac_env_CXXCPP_value=$CXXCPP
938
ac_cv_env_CXXCPP_set=${CXXCPP+set}
939
ac_cv_env_CXXCPP_value=$CXXCPP
940
ac_env_F77_set=${F77+set}
941
ac_env_F77_value=$F77
942
ac_cv_env_F77_set=${F77+set}
943
ac_cv_env_F77_value=$F77
944
ac_env_FFLAGS_set=${FFLAGS+set}
945
ac_env_FFLAGS_value=$FFLAGS
946
ac_cv_env_FFLAGS_set=${FFLAGS+set}
947
ac_cv_env_FFLAGS_value=$FFLAGS
950
# Report the --help message.
952
if test "$ac_init_help" = "long"; then
953
# Omit some internal or obsolete options to make the list less imposing.
954
# This message is too long to be a string in the A/UX 3.1 sh.
956
\`configure' configures this package to adapt to many kinds of systems.
958
Usage: $0 [OPTION]... [VAR=VALUE]...
960
To assign environment variables (e.g., CC, CFLAGS...), specify them as
961
VAR=VALUE. See below for descriptions of some of the useful variables.
963
Defaults for the options are specified in brackets.
966
-h, --help display this help and exit
967
--help=short display options specific to this package
968
--help=recursive display the short help of all the included packages
969
-V, --version display version information and exit
970
-q, --quiet, --silent do not print \`checking...' messages
971
--cache-file=FILE cache test results in FILE [disabled]
972
-C, --config-cache alias for \`--cache-file=config.cache'
973
-n, --no-create do not create output files
974
--srcdir=DIR find the sources in DIR [configure dir or \`..']
979
Installation directories:
980
--prefix=PREFIX install architecture-independent files in PREFIX
982
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985
By default, \`make install' will install all the files in
986
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988
for instance \`--prefix=\$HOME'.
990
For better control, use the options below.
992
Fine tuning of the installation directories:
993
--bindir=DIR user executables [EPREFIX/bin]
994
--sbindir=DIR system admin executables [EPREFIX/sbin]
995
--libexecdir=DIR program executables [EPREFIX/libexec]
996
--datadir=DIR read-only architecture-independent data [PREFIX/share]
997
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000
--libdir=DIR object code libraries [EPREFIX/lib]
1001
--includedir=DIR C header files [PREFIX/include]
1002
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1003
--infodir=DIR info documentation [PREFIX/info]
1004
--mandir=DIR man documentation [PREFIX/man]
1010
--program-prefix=PREFIX prepend PREFIX to installed program names
1011
--program-suffix=SUFFIX append SUFFIX to installed program names
1012
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1015
--build=BUILD configure for building on BUILD [guessed]
1016
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1020
if test -n "$ac_init_help"; then
1025
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1027
--disable-dependency-tracking Speeds up one-time builds
1028
--enable-dependency-tracking Do not reject slow dependency extractors
1029
--enable-shared[=PKGS]
1030
build shared libraries [default=yes]
1031
--enable-static[=PKGS]
1032
build static libraries [default=yes]
1033
--enable-fast-install[=PKGS]
1034
optimize for fast installation [default=yes]
1035
--disable-libtool-lock avoid locking (might break parallel builds)
1036
--enable-glib Turn on glib support
1037
--enable-gnome_ui=yes/no Turn on or off compilation of gnome interface default=yes
1038
--disable-glibtest do not try to compile and run a test GLIB program
1039
--enable-alsa Turn on alsa native support compiling
1040
--enable-ipv6 Turn on ipv6 support
1041
--enable-truespeech Turn on TrueSpeech support (x86 only)
1042
--enable-video Turn on video support compiling (requires nasm): not functionnal for the moment
1045
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1046
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1047
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1048
--with-pic try to use only PIC/non-PIC objects [default=use
1051
include additional configurations [automatic]
1052
--with-realprefix Set the real installation prefix. This option has to be used for cross-compilation only. (ex:/usr or /usr/local)default=none
1053
--with-osip Set prefix where osip can be found (ex:/usr or /usr/local)default=/usr/local
1054
--with-speex Set prefix where speex lib can be found (ex:/usr, /usr/local, embedded (=use speex sources embedded in linphone's distribution) )default=/usr
1055
--with-html-dir=PATH path to installed docs
1057
Some influential environment variables:
1058
CC C compiler command
1059
CFLAGS C compiler flags
1060
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1061
nonstandard directory <lib dir>
1062
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1063
headers in a nonstandard directory <include dir>
1065
CXX C++ compiler command
1066
CXXFLAGS C++ compiler flags
1067
CXXCPP C++ preprocessor
1068
F77 Fortran 77 compiler command
1069
FFLAGS Fortran 77 compiler flags
1071
Use these variables to override the choices made by `configure' or to help
1072
it to find libraries and programs with nonstandard names/locations.
1077
if test "$ac_init_help" = "recursive"; then
1078
# If there are subdirs, report their specific --help.
1080
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081
test -d $ac_dir || continue
1084
if test "$ac_dir" != .; then
1085
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086
# A "../" for each directory in $ac_dir_suffix.
1087
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1089
ac_dir_suffix= ac_top_builddir=
1093
.) # No --srcdir option. We are building in place.
1095
if test -z "$ac_top_builddir"; then
1098
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1100
[\\/]* | ?:[\\/]* ) # Absolute path.
1101
ac_srcdir=$srcdir$ac_dir_suffix;
1102
ac_top_srcdir=$srcdir ;;
1104
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1108
# Do not use `cd foo && pwd` to compute absolute paths, because
1109
# the directories may not exist.
1111
.) ac_abs_builddir="$ac_dir";;
1114
.) ac_abs_builddir=`pwd`;;
1115
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1116
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1119
case $ac_abs_builddir in
1120
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1122
case ${ac_top_builddir}. in
1123
.) ac_abs_top_builddir=$ac_abs_builddir;;
1124
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1125
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1128
case $ac_abs_builddir in
1129
.) ac_abs_srcdir=$ac_srcdir;;
1132
.) ac_abs_srcdir=$ac_abs_builddir;;
1133
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1134
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1137
case $ac_abs_builddir in
1138
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1140
case $ac_top_srcdir in
1141
.) ac_abs_top_srcdir=$ac_abs_builddir;;
1142
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1143
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1148
# Check for guested configure; otherwise get Cygnus style configure.
1149
if test -f $ac_srcdir/configure.gnu; then
1151
$SHELL $ac_srcdir/configure.gnu --help=recursive
1152
elif test -f $ac_srcdir/configure; then
1154
$SHELL $ac_srcdir/configure --help=recursive
1155
elif test -f $ac_srcdir/configure.ac ||
1156
test -f $ac_srcdir/configure.in; then
1158
$ac_configure --help
1160
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1166
test -n "$ac_init_help" && exit 0
1167
if $ac_init_version; then
1170
Copyright (C) 2003 Free Software Foundation, Inc.
1171
This configure script is free software; the Free Software Foundation
1172
gives unlimited permission to copy, distribute and modify it.
1178
This file contains any messages produced by compilers while
1179
running configure, to aid debugging if configure makes a mistake.
1181
It was created by $as_me, which was
1182
generated by GNU Autoconf 2.59. Invocation command line was
1193
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1194
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1195
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1196
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1197
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1199
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1200
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1202
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1203
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1204
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1205
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1206
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1207
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1208
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1212
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1216
test -z "$as_dir" && as_dir=.
1217
echo "PATH: $as_dir"
1232
# Keep a trace of the command line.
1233
# Strip out --no-create and --no-recursion so they do not pile up.
1234
# Strip out --silent because we don't want to record it for future runs.
1235
# Also quote any args containing shell meta-characters.
1236
# Make two passes to allow for proper duplicate-argument suppression.
1241
ac_must_keep_next=false
1247
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1248
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249
| -silent | --silent | --silen | --sile | --sil)
1251
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1255
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1257
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1258
if test $ac_must_keep_next = true; then
1259
ac_must_keep_next=false # Got value, back to normal.
1262
*=* | --config-cache | -C | -disable-* | --disable-* \
1263
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1264
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1265
| -with-* | --with-* | -without-* | --without-* | --x)
1266
case "$ac_configure_args0 " in
1267
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1270
-* ) ac_must_keep_next=true ;;
1273
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1274
# Get rid of the leading space.
1280
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1281
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1283
# When interrupted or exit'd, cleanup temporary files, and complete
1284
# config.log. We remove comments because anyway the quotes in there
1285
# would cause problems or look ugly.
1286
# WARNING: Be sure not to use single quotes in there, as some shells,
1287
# such as our DU 5.0 friend, will then `close' the trap.
1288
trap 'exit_status=$?
1289
# Save into config.log some information that might help in debugging.
1294
## ---------------- ##
1295
## Cache variables. ##
1296
## ---------------- ##
1299
# The following way of writing the cache mishandles newlines in values,
1302
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1305
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1306
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1310
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1317
## ----------------- ##
1318
## Output variables. ##
1319
## ----------------- ##
1322
for ac_var in $ac_subst_vars
1324
eval ac_val=$`echo $ac_var`
1325
echo "$ac_var='"'"'$ac_val'"'"'"
1329
if test -n "$ac_subst_files"; then
1336
for ac_var in $ac_subst_files
1338
eval ac_val=$`echo $ac_var`
1339
echo "$ac_var='"'"'$ac_val'"'"'"
1344
if test -s confdefs.h; then
1351
sed "/^$/d" confdefs.h | sort
1354
test "$ac_signal" != 0 &&
1355
echo "$as_me: caught signal $ac_signal"
1356
echo "$as_me: exit $exit_status"
1358
rm -f core *.core &&
1359
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1362
for ac_signal in 1 2 13 15; do
1363
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1367
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1368
rm -rf conftest* confdefs.h
1369
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1372
# Predefined preprocessor variables.
1374
cat >>confdefs.h <<_ACEOF
1375
#define PACKAGE_NAME "$PACKAGE_NAME"
1379
cat >>confdefs.h <<_ACEOF
1380
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1384
cat >>confdefs.h <<_ACEOF
1385
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1389
cat >>confdefs.h <<_ACEOF
1390
#define PACKAGE_STRING "$PACKAGE_STRING"
1394
cat >>confdefs.h <<_ACEOF
1395
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1399
# Let the site file select an alternate cache file if it wants to.
1400
# Prefer explicitly selected file to automatically selected ones.
1401
if test -z "$CONFIG_SITE"; then
1402
if test "x$prefix" != xNONE; then
1403
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1405
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1408
for ac_site_file in $CONFIG_SITE; do
1409
if test -r "$ac_site_file"; then
1410
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1411
echo "$as_me: loading site script $ac_site_file" >&6;}
1412
sed 's/^/| /' "$ac_site_file" >&5
1417
if test -r "$cache_file"; then
1418
# Some versions of bash will fail to source /dev/null (special
1419
# files actually), so we avoid doing that.
1420
if test -f "$cache_file"; then
1421
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1422
echo "$as_me: loading cache $cache_file" >&6;}
1424
[\\/]* | ?:[\\/]* ) . $cache_file;;
1425
*) . ./$cache_file;;
1429
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1430
echo "$as_me: creating cache $cache_file" >&6;}
1434
# Check that the precious variables saved in the cache have kept the same
1436
ac_cache_corrupted=false
1437
for ac_var in `(set) 2>&1 |
1438
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1439
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1440
eval ac_new_set=\$ac_env_${ac_var}_set
1441
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1442
eval ac_new_val="\$ac_env_${ac_var}_value"
1443
case $ac_old_set,$ac_new_set in
1445
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1446
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1447
ac_cache_corrupted=: ;;
1449
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1450
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1451
ac_cache_corrupted=: ;;
1454
if test "x$ac_old_val" != "x$ac_new_val"; then
1455
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1456
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1457
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1458
echo "$as_me: former value: $ac_old_val" >&2;}
1459
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1460
echo "$as_me: current value: $ac_new_val" >&2;}
1461
ac_cache_corrupted=:
1464
# Pass precious variables to config.status.
1465
if test "$ac_new_set" = set; then
1467
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1468
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1469
*) ac_arg=$ac_var=$ac_new_val ;;
1471
case " $ac_configure_args " in
1472
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1473
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1477
if $ac_cache_corrupted; then
1478
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1479
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1480
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1481
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1482
{ (exit 1); exit 1; }; }
1486
ac_cpp='$CPP $CPPFLAGS'
1487
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1488
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1489
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1514
am__api_version="1.6"
1516
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1517
if test -f $ac_dir/install-sh; then
1519
ac_install_sh="$ac_aux_dir/install-sh -c"
1521
elif test -f $ac_dir/install.sh; then
1523
ac_install_sh="$ac_aux_dir/install.sh -c"
1525
elif test -f $ac_dir/shtool; then
1527
ac_install_sh="$ac_aux_dir/shtool install -c"
1531
if test -z "$ac_aux_dir"; then
1532
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1533
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1534
{ (exit 1); exit 1; }; }
1536
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1537
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1538
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1540
# Find a good install program. We prefer a C program (faster),
1541
# so one script is as good as another. But avoid the broken or
1542
# incompatible versions:
1543
# SysV /etc/install, /usr/sbin/install
1544
# SunOS /usr/etc/install
1545
# IRIX /sbin/install
1547
# AmigaOS /C/install, which installs bootblocks on floppy discs
1548
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1549
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1550
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1551
# OS/2's system install, which has a completely different semantic
1552
# ./install, which can be erroneously created by make from ./install.sh.
1553
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1554
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1555
if test -z "$INSTALL"; then
1556
if test "${ac_cv_path_install+set}" = set; then
1557
echo $ECHO_N "(cached) $ECHO_C" >&6
1559
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563
test -z "$as_dir" && as_dir=.
1564
# Account for people who put trailing slashes in PATH elements.
1566
./ | .// | /cC/* | \
1567
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1568
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1571
# OSF1 and SCO ODT 3.0 have their own names for install.
1572
# Don't use installbsd from OSF since it installs stuff as root
1574
for ac_prog in ginstall scoinst install; do
1575
for ac_exec_ext in '' $ac_executable_extensions; do
1576
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1577
if test $ac_prog = install &&
1578
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1579
# AIX install. It has an incompatible calling convention.
1581
elif test $ac_prog = install &&
1582
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1583
# program-specific install script used by HP pwplus--don't use.
1586
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1598
if test "${ac_cv_path_install+set}" = set; then
1599
INSTALL=$ac_cv_path_install
1601
# As a last resort, use the slow shell script. We don't cache a
1602
# path for INSTALL within a source directory, because that will
1603
# break other packages using the cache if that directory is
1604
# removed, or if the path is relative.
1605
INSTALL=$ac_install_sh
1608
echo "$as_me:$LINENO: result: $INSTALL" >&5
1609
echo "${ECHO_T}$INSTALL" >&6
1611
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1612
# It thinks the first close brace ends the variable substitution.
1613
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1615
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1617
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1619
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1620
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1623
echo timestamp > conftest.file
1624
# Do `set' in a subshell so we don't clobber the current shell's
1625
# arguments. Must try -L first in case configure is actually a
1626
# symlink; some systems play weird games with the mod time of symlinks
1627
# (eg FreeBSD returns the mod time of the symlink's containing
1630
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1631
if test "$*" = "X"; then
1633
set X `ls -t $srcdir/configure conftest.file`
1636
if test "$*" != "X $srcdir/configure conftest.file" \
1637
&& test "$*" != "X conftest.file $srcdir/configure"; then
1639
# If neither matched, then we have a broken ls. This can happen
1640
# if, for instance, CONFIG_SHELL is bash and it inherits a
1641
# broken ls alias from the environment. This has actually
1642
# happened. Such a system could not be considered "sane".
1643
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1644
alias in your environment" >&5
1645
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1646
alias in your environment" >&2;}
1647
{ (exit 1); exit 1; }; }
1650
test "$2" = conftest.file
1656
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1657
Check your system clock" >&5
1658
echo "$as_me: error: newly created file is older than distributed files!
1659
Check your system clock" >&2;}
1660
{ (exit 1); exit 1; }; }
1662
echo "$as_me:$LINENO: result: yes" >&5
1663
echo "${ECHO_T}yes" >&6
1664
test "$program_prefix" != NONE &&
1665
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1666
# Use a double $ so make ignores it.
1667
test "$program_suffix" != NONE &&
1668
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1669
# Double any \ or $. echo might interpret backslashes.
1670
# By default was `s,x,x', remove it if useless.
1671
cat <<\_ACEOF >conftest.sed
1672
s/[\\$]/&&/g;s/;s,x,x,$//
1674
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1678
# expand $ac_aux_dir to an absolute path
1679
am_aux_dir=`cd $ac_aux_dir && pwd`
1681
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1682
# Use eval to expand $SHELL
1683
if eval "$MISSING --run true"; then
1684
am_missing_run="$MISSING --run "
1687
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1688
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1691
for ac_prog in gawk mawk nawk awk
1693
# Extract the first word of "$ac_prog", so it can be a program name with args.
1694
set dummy $ac_prog; ac_word=$2
1695
echo "$as_me:$LINENO: checking for $ac_word" >&5
1696
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1697
if test "${ac_cv_prog_AWK+set}" = set; then
1698
echo $ECHO_N "(cached) $ECHO_C" >&6
1700
if test -n "$AWK"; then
1701
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1703
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707
test -z "$as_dir" && as_dir=.
1708
for ac_exec_ext in '' $ac_executable_extensions; do
1709
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1710
ac_cv_prog_AWK="$ac_prog"
1711
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720
if test -n "$AWK"; then
1721
echo "$as_me:$LINENO: result: $AWK" >&5
1722
echo "${ECHO_T}$AWK" >&6
1724
echo "$as_me:$LINENO: result: no" >&5
1725
echo "${ECHO_T}no" >&6
1728
test -n "$AWK" && break
1731
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1732
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1733
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1734
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1735
echo $ECHO_N "(cached) $ECHO_C" >&6
1737
cat >conftest.make <<\_ACEOF
1739
@echo 'ac_maketemp="$(MAKE)"'
1741
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1742
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1743
if test -n "$ac_maketemp"; then
1744
eval ac_cv_prog_make_${ac_make}_set=yes
1746
eval ac_cv_prog_make_${ac_make}_set=no
1750
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1751
echo "$as_me:$LINENO: result: yes" >&5
1752
echo "${ECHO_T}yes" >&6
1755
echo "$as_me:$LINENO: result: no" >&5
1756
echo "${ECHO_T}no" >&6
1757
SET_MAKE="MAKE=${MAKE-make}"
1760
# test to see if srcdir already configured
1761
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1762
test -f $srcdir/config.status; then
1763
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1764
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1765
{ (exit 1); exit 1; }; }
1768
# Define the identity of the package.
1773
# Some tools Automake needs.
1775
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1778
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1781
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1784
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1787
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1790
AMTAR=${AMTAR-"${am_missing_run}tar"}
1792
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1794
# Installed binaries are usually stripped using `strip' when the user
1795
# run `make install-strip'. However `strip' might not be the right
1796
# tool to use in cross-compilation environments, therefore Automake
1797
# will honor the `STRIP' environment variable to overrule this program.
1798
if test "$cross_compiling" != no; then
1799
if test -n "$ac_tool_prefix"; then
1800
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1801
set dummy ${ac_tool_prefix}strip; ac_word=$2
1802
echo "$as_me:$LINENO: checking for $ac_word" >&5
1803
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1804
if test "${ac_cv_prog_STRIP+set}" = set; then
1805
echo $ECHO_N "(cached) $ECHO_C" >&6
1807
if test -n "$STRIP"; then
1808
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1810
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1814
test -z "$as_dir" && as_dir=.
1815
for ac_exec_ext in '' $ac_executable_extensions; do
1816
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1817
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1818
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826
STRIP=$ac_cv_prog_STRIP
1827
if test -n "$STRIP"; then
1828
echo "$as_me:$LINENO: result: $STRIP" >&5
1829
echo "${ECHO_T}$STRIP" >&6
1831
echo "$as_me:$LINENO: result: no" >&5
1832
echo "${ECHO_T}no" >&6
1836
if test -z "$ac_cv_prog_STRIP"; then
1838
# Extract the first word of "strip", so it can be a program name with args.
1839
set dummy strip; ac_word=$2
1840
echo "$as_me:$LINENO: checking for $ac_word" >&5
1841
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1842
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1843
echo $ECHO_N "(cached) $ECHO_C" >&6
1845
if test -n "$ac_ct_STRIP"; then
1846
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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
ac_cv_prog_ac_ct_STRIP="strip"
1856
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1865
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1866
if test -n "$ac_ct_STRIP"; then
1867
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1868
echo "${ECHO_T}$ac_ct_STRIP" >&6
1870
echo "$as_me:$LINENO: result: no" >&5
1871
echo "${ECHO_T}no" >&6
1876
STRIP="$ac_cv_prog_STRIP"
1880
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1882
# We need awk for the "check" target. The system "awk" is bad on
1887
# Add the stamp file to the list of files AC keeps track of,
1888
# along with our hook.
1889
ac_config_headers="$ac_config_headers config.h"
1895
rm -f .deps 2>/dev/null
1896
mkdir .deps 2>/dev/null
1897
if test -d .deps; then
1900
# MS-DOS does not allow filenames that begin with a dot.
1903
rmdir .deps 2>/dev/null
1906
ac_config_commands="$ac_config_commands depfiles"
1909
am_make=${MAKE-make}
1910
cat > confinc << 'END'
1914
# If we don't find an include directive, just comment out the code.
1915
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1916
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1920
# First try GNU make style include.
1921
echo "include confinc" > confmf
1922
# We grep out `Entering directory' and `Leaving directory'
1923
# messages which can occur if `w' ends up in MAKEFLAGS.
1924
# In particular we don't look at `^make:' because GNU make might
1925
# be invoked under some other name (usually "gmake"), in which
1926
# case it prints its new name instead of `make'.
1927
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1932
# Now try BSD make style include.
1933
if test "$am__include" = "#"; then
1934
echo '.include "confinc"' > confmf
1935
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1936
am__include=.include
1943
echo "$as_me:$LINENO: result: $_am_result" >&5
1944
echo "${ECHO_T}$_am_result" >&6
1945
rm -f confinc confmf
1947
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1948
if test "${enable_dependency_tracking+set}" = set; then
1949
enableval="$enable_dependency_tracking"
1952
if test "x$enable_dependency_tracking" != xno; then
1953
am_depcomp="$ac_aux_dir/depcomp"
1958
if test "x$enable_dependency_tracking" != xno; then
1969
ac_cpp='$CPP $CPPFLAGS'
1970
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1971
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1972
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1973
if test -n "$ac_tool_prefix"; then
1974
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1975
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1976
echo "$as_me:$LINENO: checking for $ac_word" >&5
1977
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1978
if test "${ac_cv_prog_CC+set}" = set; then
1979
echo $ECHO_N "(cached) $ECHO_C" >&6
1981
if test -n "$CC"; then
1982
ac_cv_prog_CC="$CC" # Let the user override the test.
1984
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988
test -z "$as_dir" && as_dir=.
1989
for ac_exec_ext in '' $ac_executable_extensions; do
1990
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1991
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1992
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001
if test -n "$CC"; then
2002
echo "$as_me:$LINENO: result: $CC" >&5
2003
echo "${ECHO_T}$CC" >&6
2005
echo "$as_me:$LINENO: result: no" >&5
2006
echo "${ECHO_T}no" >&6
2010
if test -z "$ac_cv_prog_CC"; then
2012
# Extract the first word of "gcc", so it can be a program name with args.
2013
set dummy gcc; ac_word=$2
2014
echo "$as_me:$LINENO: checking for $ac_word" >&5
2015
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2016
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2017
echo $ECHO_N "(cached) $ECHO_C" >&6
2019
if test -n "$ac_ct_CC"; then
2020
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2022
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026
test -z "$as_dir" && as_dir=.
2027
for ac_exec_ext in '' $ac_executable_extensions; do
2028
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2029
ac_cv_prog_ac_ct_CC="gcc"
2030
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2039
if test -n "$ac_ct_CC"; then
2040
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2041
echo "${ECHO_T}$ac_ct_CC" >&6
2043
echo "$as_me:$LINENO: result: no" >&5
2044
echo "${ECHO_T}no" >&6
2052
if test -z "$CC"; then
2053
if test -n "$ac_tool_prefix"; then
2054
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2055
set dummy ${ac_tool_prefix}cc; ac_word=$2
2056
echo "$as_me:$LINENO: checking for $ac_word" >&5
2057
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2058
if test "${ac_cv_prog_CC+set}" = set; then
2059
echo $ECHO_N "(cached) $ECHO_C" >&6
2061
if test -n "$CC"; then
2062
ac_cv_prog_CC="$CC" # Let the user override the test.
2064
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068
test -z "$as_dir" && as_dir=.
2069
for ac_exec_ext in '' $ac_executable_extensions; do
2070
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2071
ac_cv_prog_CC="${ac_tool_prefix}cc"
2072
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081
if test -n "$CC"; then
2082
echo "$as_me:$LINENO: result: $CC" >&5
2083
echo "${ECHO_T}$CC" >&6
2085
echo "$as_me:$LINENO: result: no" >&5
2086
echo "${ECHO_T}no" >&6
2090
if test -z "$ac_cv_prog_CC"; then
2092
# Extract the first word of "cc", so it can be a program name with args.
2093
set dummy cc; ac_word=$2
2094
echo "$as_me:$LINENO: checking for $ac_word" >&5
2095
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2096
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2097
echo $ECHO_N "(cached) $ECHO_C" >&6
2099
if test -n "$ac_ct_CC"; then
2100
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2102
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106
test -z "$as_dir" && as_dir=.
2107
for ac_exec_ext in '' $ac_executable_extensions; do
2108
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2109
ac_cv_prog_ac_ct_CC="cc"
2110
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2118
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2119
if test -n "$ac_ct_CC"; then
2120
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2121
echo "${ECHO_T}$ac_ct_CC" >&6
2123
echo "$as_me:$LINENO: result: no" >&5
2124
echo "${ECHO_T}no" >&6
2133
if test -z "$CC"; then
2134
# Extract the first word of "cc", so it can be a program name with args.
2135
set dummy cc; ac_word=$2
2136
echo "$as_me:$LINENO: checking for $ac_word" >&5
2137
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2138
if test "${ac_cv_prog_CC+set}" = set; then
2139
echo $ECHO_N "(cached) $ECHO_C" >&6
2141
if test -n "$CC"; then
2142
ac_cv_prog_CC="$CC" # Let the user override the test.
2145
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149
test -z "$as_dir" && as_dir=.
2150
for ac_exec_ext in '' $ac_executable_extensions; do
2151
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2152
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2153
ac_prog_rejected=yes
2157
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2163
if test $ac_prog_rejected = yes; then
2164
# We found a bogon in the path, so make sure we never use it.
2165
set dummy $ac_cv_prog_CC
2167
if test $# != 0; then
2168
# We chose a different compiler from the bogus one.
2169
# However, it has the same basename, so the bogon will be chosen
2170
# first if we set CC to just the basename; use the full file name.
2172
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2178
if test -n "$CC"; then
2179
echo "$as_me:$LINENO: result: $CC" >&5
2180
echo "${ECHO_T}$CC" >&6
2182
echo "$as_me:$LINENO: result: no" >&5
2183
echo "${ECHO_T}no" >&6
2187
if test -z "$CC"; then
2188
if test -n "$ac_tool_prefix"; then
2191
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2192
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2193
echo "$as_me:$LINENO: checking for $ac_word" >&5
2194
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2195
if test "${ac_cv_prog_CC+set}" = set; then
2196
echo $ECHO_N "(cached) $ECHO_C" >&6
2198
if test -n "$CC"; then
2199
ac_cv_prog_CC="$CC" # Let the user override the test.
2201
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205
test -z "$as_dir" && as_dir=.
2206
for ac_exec_ext in '' $ac_executable_extensions; do
2207
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2208
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2209
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218
if test -n "$CC"; then
2219
echo "$as_me:$LINENO: result: $CC" >&5
2220
echo "${ECHO_T}$CC" >&6
2222
echo "$as_me:$LINENO: result: no" >&5
2223
echo "${ECHO_T}no" >&6
2226
test -n "$CC" && break
2229
if test -z "$CC"; then
2233
# Extract the first word of "$ac_prog", so it can be a program name with args.
2234
set dummy $ac_prog; ac_word=$2
2235
echo "$as_me:$LINENO: checking for $ac_word" >&5
2236
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2237
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2238
echo $ECHO_N "(cached) $ECHO_C" >&6
2240
if test -n "$ac_ct_CC"; then
2241
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2243
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247
test -z "$as_dir" && as_dir=.
2248
for ac_exec_ext in '' $ac_executable_extensions; do
2249
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2250
ac_cv_prog_ac_ct_CC="$ac_prog"
2251
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2259
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2260
if test -n "$ac_ct_CC"; then
2261
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2262
echo "${ECHO_T}$ac_ct_CC" >&6
2264
echo "$as_me:$LINENO: result: no" >&5
2265
echo "${ECHO_T}no" >&6
2268
test -n "$ac_ct_CC" && break
2277
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2278
See \`config.log' for more details." >&5
2279
echo "$as_me: error: no acceptable C compiler found in \$PATH
2280
See \`config.log' for more details." >&2;}
2281
{ (exit 1); exit 1; }; }
2283
# Provide some information about the compiler.
2284
echo "$as_me:$LINENO:" \
2285
"checking for C compiler version" >&5
2286
ac_compiler=`set X $ac_compile; echo $2`
2287
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2288
(eval $ac_compiler --version </dev/null >&5) 2>&5
2290
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291
(exit $ac_status); }
2292
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2293
(eval $ac_compiler -v </dev/null >&5) 2>&5
2295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296
(exit $ac_status); }
2297
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2298
(eval $ac_compiler -V </dev/null >&5) 2>&5
2300
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301
(exit $ac_status); }
2303
cat >conftest.$ac_ext <<_ACEOF
2306
cat confdefs.h >>conftest.$ac_ext
2307
cat >>conftest.$ac_ext <<_ACEOF
2308
/* end confdefs.h. */
2318
ac_clean_files_save=$ac_clean_files
2319
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2320
# Try to create an executable without -o first, disregard a.out.
2321
# It will help us diagnose broken compilers, and finding out an intuition
2323
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2324
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2325
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2326
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2327
(eval $ac_link_default) 2>&5
2329
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330
(exit $ac_status); }; then
2331
# Find the output, starting from the most likely. This scheme is
2332
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2335
# Be careful to initialize this variable, since it used to be cached.
2336
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2338
# b.out is created by i960 compilers.
2339
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2341
test -f "$ac_file" || continue
2343
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2346
# This is the source file.
2349
# We found the default executable, but exeext='' is most
2353
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2354
# FIXME: I believe we export ac_cv_exeext for Libtool,
2355
# but it would be cool to find out if it's true. Does anybody
2356
# maintain Libtool? --akim.
2364
echo "$as_me: failed program was:" >&5
2365
sed 's/^/| /' conftest.$ac_ext >&5
2367
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2368
See \`config.log' for more details." >&5
2369
echo "$as_me: error: C compiler cannot create executables
2370
See \`config.log' for more details." >&2;}
2371
{ (exit 77); exit 77; }; }
2374
ac_exeext=$ac_cv_exeext
2375
echo "$as_me:$LINENO: result: $ac_file" >&5
2376
echo "${ECHO_T}$ac_file" >&6
2378
# Check the compiler produces executables we can run. If not, either
2379
# the compiler is broken, or we cross compile.
2380
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2381
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2382
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2383
# If not cross compiling, check that we can run a simple program.
2384
if test "$cross_compiling" != yes; then
2385
if { ac_try='./$ac_file'
2386
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390
(exit $ac_status); }; }; then
2393
if test "$cross_compiling" = maybe; then
2396
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2397
If you meant to cross compile, use \`--host'.
2398
See \`config.log' for more details." >&5
2399
echo "$as_me: error: cannot run C compiled programs.
2400
If you meant to cross compile, use \`--host'.
2401
See \`config.log' for more details." >&2;}
2402
{ (exit 1); exit 1; }; }
2406
echo "$as_me:$LINENO: result: yes" >&5
2407
echo "${ECHO_T}yes" >&6
2409
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2410
ac_clean_files=$ac_clean_files_save
2411
# Check the compiler produces executables we can run. If not, either
2412
# the compiler is broken, or we cross compile.
2413
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2414
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2415
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2416
echo "${ECHO_T}$cross_compiling" >&6
2418
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2419
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2420
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2421
(eval $ac_link) 2>&5
2423
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424
(exit $ac_status); }; then
2425
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2426
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2427
# work properly (i.e., refer to `conftest.exe'), while it won't with
2429
for ac_file in conftest.exe conftest conftest.*; do
2430
test -f "$ac_file" || continue
2432
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2433
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2440
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2441
See \`config.log' for more details." >&5
2442
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2443
See \`config.log' for more details." >&2;}
2444
{ (exit 1); exit 1; }; }
2447
rm -f conftest$ac_cv_exeext
2448
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2449
echo "${ECHO_T}$ac_cv_exeext" >&6
2451
rm -f conftest.$ac_ext
2452
EXEEXT=$ac_cv_exeext
2454
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2455
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2456
if test "${ac_cv_objext+set}" = set; then
2457
echo $ECHO_N "(cached) $ECHO_C" >&6
2459
cat >conftest.$ac_ext <<_ACEOF
2462
cat confdefs.h >>conftest.$ac_ext
2463
cat >>conftest.$ac_ext <<_ACEOF
2464
/* end confdefs.h. */
2474
rm -f conftest.o conftest.obj
2475
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476
(eval $ac_compile) 2>&5
2478
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479
(exit $ac_status); }; then
2480
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2482
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2483
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2488
echo "$as_me: failed program was:" >&5
2489
sed 's/^/| /' conftest.$ac_ext >&5
2491
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2492
See \`config.log' for more details." >&5
2493
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2494
See \`config.log' for more details." >&2;}
2495
{ (exit 1); exit 1; }; }
2498
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2500
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2501
echo "${ECHO_T}$ac_cv_objext" >&6
2502
OBJEXT=$ac_cv_objext
2504
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2505
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2506
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2507
echo $ECHO_N "(cached) $ECHO_C" >&6
2509
cat >conftest.$ac_ext <<_ACEOF
2512
cat confdefs.h >>conftest.$ac_ext
2513
cat >>conftest.$ac_ext <<_ACEOF
2514
/* end confdefs.h. */
2527
rm -f conftest.$ac_objext
2528
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529
(eval $ac_compile) 2>conftest.er1
2531
grep -v '^ *+' conftest.er1 >conftest.err
2533
cat conftest.err >&5
2534
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535
(exit $ac_status); } &&
2536
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2537
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541
(exit $ac_status); }; } &&
2542
{ ac_try='test -s conftest.$ac_objext'
2543
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547
(exit $ac_status); }; }; then
2550
echo "$as_me: failed program was:" >&5
2551
sed 's/^/| /' conftest.$ac_ext >&5
2555
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2556
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2559
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2560
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2561
GCC=`test $ac_compiler_gnu = yes && echo yes`
2562
ac_test_CFLAGS=${CFLAGS+set}
2563
ac_save_CFLAGS=$CFLAGS
2565
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2566
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2567
if test "${ac_cv_prog_cc_g+set}" = set; then
2568
echo $ECHO_N "(cached) $ECHO_C" >&6
2570
cat >conftest.$ac_ext <<_ACEOF
2573
cat confdefs.h >>conftest.$ac_ext
2574
cat >>conftest.$ac_ext <<_ACEOF
2575
/* end confdefs.h. */
2585
rm -f conftest.$ac_objext
2586
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2587
(eval $ac_compile) 2>conftest.er1
2589
grep -v '^ *+' conftest.er1 >conftest.err
2591
cat conftest.err >&5
2592
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593
(exit $ac_status); } &&
2594
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2595
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599
(exit $ac_status); }; } &&
2600
{ ac_try='test -s conftest.$ac_objext'
2601
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605
(exit $ac_status); }; }; then
2608
echo "$as_me: failed program was:" >&5
2609
sed 's/^/| /' conftest.$ac_ext >&5
2613
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2615
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2616
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2617
if test "$ac_test_CFLAGS" = set; then
2618
CFLAGS=$ac_save_CFLAGS
2619
elif test $ac_cv_prog_cc_g = yes; then
2620
if test "$GCC" = yes; then
2626
if test "$GCC" = yes; then
2632
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2633
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2634
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2635
echo $ECHO_N "(cached) $ECHO_C" >&6
2637
ac_cv_prog_cc_stdc=no
2639
cat >conftest.$ac_ext <<_ACEOF
2642
cat confdefs.h >>conftest.$ac_ext
2643
cat >>conftest.$ac_ext <<_ACEOF
2644
/* end confdefs.h. */
2647
#include <sys/types.h>
2648
#include <sys/stat.h>
2649
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2650
struct buf { int x; };
2651
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2652
static char *e (p, i)
2658
static char *f (char * (*g) (char **, int), char **p, ...)
2663
s = g (p, va_arg (v,int));
2668
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2669
function prototypes and stuff, but not '\xHH' hex character constants.
2670
These don't provoke an error unfortunately, instead are silently treated
2671
as 'x'. The following induces an error, until -std1 is added to get
2672
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2673
array size at least. It's necessary to write '\x00'==0 to get something
2674
that's true only with -std1. */
2675
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2677
int test (int i, double x);
2678
struct s1 {int (*f) (int a);};
2679
struct s2 {int (*f) (double a);};
2680
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2686
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2691
# Don't try gcc -ansi; that turns off useful extensions and
2692
# breaks some systems' header files.
2693
# AIX -qlanglvl=ansi
2694
# Ultrix and OSF/1 -std1
2695
# HP-UX 10.20 and later -Ae
2696
# HP-UX older versions -Aa -D_HPUX_SOURCE
2697
# SVR4 -Xc -D__EXTENSIONS__
2698
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2700
CC="$ac_save_CC $ac_arg"
2701
rm -f conftest.$ac_objext
2702
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2703
(eval $ac_compile) 2>conftest.er1
2705
grep -v '^ *+' conftest.er1 >conftest.err
2707
cat conftest.err >&5
2708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709
(exit $ac_status); } &&
2710
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2711
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715
(exit $ac_status); }; } &&
2716
{ ac_try='test -s conftest.$ac_objext'
2717
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721
(exit $ac_status); }; }; then
2722
ac_cv_prog_cc_stdc=$ac_arg
2725
echo "$as_me: failed program was:" >&5
2726
sed 's/^/| /' conftest.$ac_ext >&5
2729
rm -f conftest.err conftest.$ac_objext
2731
rm -f conftest.$ac_ext conftest.$ac_objext
2736
case "x$ac_cv_prog_cc_stdc" in
2738
echo "$as_me:$LINENO: result: none needed" >&5
2739
echo "${ECHO_T}none needed" >&6 ;;
2741
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2742
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2743
CC="$CC $ac_cv_prog_cc_stdc" ;;
2746
# Some people use a C++ compiler to compile C. Since we use `exit',
2747
# in C++ we need to declare it. In case someone uses the same compiler
2748
# for both compiling C and C++ we need to have the C++ compiler decide
2749
# the declaration of exit, since it's the most demanding environment.
2750
cat >conftest.$ac_ext <<_ACEOF
2755
rm -f conftest.$ac_objext
2756
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2757
(eval $ac_compile) 2>conftest.er1
2759
grep -v '^ *+' conftest.er1 >conftest.err
2761
cat conftest.err >&5
2762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763
(exit $ac_status); } &&
2764
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2765
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769
(exit $ac_status); }; } &&
2770
{ ac_try='test -s conftest.$ac_objext'
2771
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775
(exit $ac_status); }; }; then
2776
for ac_declaration in \
2778
'extern "C" void std::exit (int) throw (); using std::exit;' \
2779
'extern "C" void std::exit (int); using std::exit;' \
2780
'extern "C" void exit (int) throw ();' \
2781
'extern "C" void exit (int);' \
2784
cat >conftest.$ac_ext <<_ACEOF
2787
cat confdefs.h >>conftest.$ac_ext
2788
cat >>conftest.$ac_ext <<_ACEOF
2789
/* end confdefs.h. */
2800
rm -f conftest.$ac_objext
2801
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2802
(eval $ac_compile) 2>conftest.er1
2804
grep -v '^ *+' conftest.er1 >conftest.err
2806
cat conftest.err >&5
2807
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808
(exit $ac_status); } &&
2809
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2810
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814
(exit $ac_status); }; } &&
2815
{ ac_try='test -s conftest.$ac_objext'
2816
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820
(exit $ac_status); }; }; then
2823
echo "$as_me: failed program was:" >&5
2824
sed 's/^/| /' conftest.$ac_ext >&5
2828
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2829
cat >conftest.$ac_ext <<_ACEOF
2832
cat confdefs.h >>conftest.$ac_ext
2833
cat >>conftest.$ac_ext <<_ACEOF
2834
/* end confdefs.h. */
2844
rm -f conftest.$ac_objext
2845
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2846
(eval $ac_compile) 2>conftest.er1
2848
grep -v '^ *+' conftest.er1 >conftest.err
2850
cat conftest.err >&5
2851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852
(exit $ac_status); } &&
2853
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2854
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858
(exit $ac_status); }; } &&
2859
{ ac_try='test -s conftest.$ac_objext'
2860
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864
(exit $ac_status); }; }; then
2867
echo "$as_me: failed program was:" >&5
2868
sed 's/^/| /' conftest.$ac_ext >&5
2871
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2874
if test -n "$ac_declaration"; then
2875
echo '#ifdef __cplusplus' >>confdefs.h
2876
echo $ac_declaration >>confdefs.h
2877
echo '#endif' >>confdefs.h
2881
echo "$as_me: failed program was:" >&5
2882
sed 's/^/| /' conftest.$ac_ext >&5
2885
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2887
ac_cpp='$CPP $CPPFLAGS'
2888
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2889
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2890
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2892
depcc="$CC" am_compiler_list=
2894
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2895
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2896
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2897
echo $ECHO_N "(cached) $ECHO_C" >&6
2899
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2900
# We make a subdir and do the tests there. Otherwise we can end up
2901
# making bogus files that we don't know about and never remove. For
2902
# instance it was reported that on HP-UX the gcc test will end up
2903
# making a dummy file named `D' -- because `-MD' means `put the output
2906
# Copy depcomp to subdir because otherwise we won't find it if we're
2907
# using a relative directory.
2908
cp "$am_depcomp" conftest.dir
2911
am_cv_CC_dependencies_compiler_type=none
2912
if test "$am_compiler_list" = ""; then
2913
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2915
for depmode in $am_compiler_list; do
2916
# We need to recreate these files for each test, as the compiler may
2917
# overwrite some of them when testing with obscure command lines.
2918
# This happens at least with the AIX C compiler.
2919
echo '#include "conftest.h"' > conftest.c
2920
echo 'int i;' > conftest.h
2921
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2925
# after this tag, mechanisms are not by side-effect, so they'll
2926
# only be used when explicitly requested
2927
if test "x$enable_dependency_tracking" = xyes; then
2935
# We check with `-c' and `-o' for the sake of the "dashmstdout"
2936
# mode. It turns out that the SunPro C++ compiler does not properly
2937
# handle `-M -o', and we need to detect this.
2938
if depmode=$depmode \
2939
source=conftest.c object=conftest.o \
2940
depfile=conftest.Po tmpdepfile=conftest.TPo \
2941
$SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2942
grep conftest.h conftest.Po > /dev/null 2>&1 &&
2943
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2944
am_cv_CC_dependencies_compiler_type=$depmode
2952
am_cv_CC_dependencies_compiler_type=none
2956
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2957
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2958
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2963
echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2964
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2965
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2966
echo $ECHO_N "(cached) $ECHO_C" >&6
2968
ac_check_lib_save_LIBS=$LIBS
2969
LIBS="-lcposix $LIBS"
2970
cat >conftest.$ac_ext <<_ACEOF
2973
cat confdefs.h >>conftest.$ac_ext
2974
cat >>conftest.$ac_ext <<_ACEOF
2975
/* end confdefs.h. */
2977
/* Override any gcc2 internal prototype to avoid an error. */
2981
/* We use char because int might match the return type of a gcc2
2982
builtin and then its argument prototype would still apply. */
2992
rm -f conftest.$ac_objext conftest$ac_exeext
2993
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2994
(eval $ac_link) 2>conftest.er1
2996
grep -v '^ *+' conftest.er1 >conftest.err
2998
cat conftest.err >&5
2999
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000
(exit $ac_status); } &&
3001
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3002
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3005
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006
(exit $ac_status); }; } &&
3007
{ ac_try='test -s conftest$ac_exeext'
3008
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3011
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012
(exit $ac_status); }; }; then
3013
ac_cv_lib_cposix_strerror=yes
3015
echo "$as_me: failed program was:" >&5
3016
sed 's/^/| /' conftest.$ac_ext >&5
3018
ac_cv_lib_cposix_strerror=no
3020
rm -f conftest.err conftest.$ac_objext \
3021
conftest$ac_exeext conftest.$ac_ext
3022
LIBS=$ac_check_lib_save_LIBS
3024
echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3025
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3026
if test $ac_cv_lib_cposix_strerror = yes; then
3027
LIBS="$LIBS -lcposix"
3033
ac_cpp='$CPP $CPPFLAGS'
3034
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3035
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3036
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3037
if test -n "$ac_tool_prefix"; then
3038
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3039
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3040
echo "$as_me:$LINENO: checking for $ac_word" >&5
3041
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3042
if test "${ac_cv_prog_CC+set}" = set; then
3043
echo $ECHO_N "(cached) $ECHO_C" >&6
3045
if test -n "$CC"; then
3046
ac_cv_prog_CC="$CC" # Let the user override the test.
3048
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052
test -z "$as_dir" && as_dir=.
3053
for ac_exec_ext in '' $ac_executable_extensions; do
3054
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3055
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3056
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3065
if test -n "$CC"; then
3066
echo "$as_me:$LINENO: result: $CC" >&5
3067
echo "${ECHO_T}$CC" >&6
3069
echo "$as_me:$LINENO: result: no" >&5
3070
echo "${ECHO_T}no" >&6
3074
if test -z "$ac_cv_prog_CC"; then
3076
# Extract the first word of "gcc", so it can be a program name with args.
3077
set dummy gcc; ac_word=$2
3078
echo "$as_me:$LINENO: checking for $ac_word" >&5
3079
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3080
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3081
echo $ECHO_N "(cached) $ECHO_C" >&6
3083
if test -n "$ac_ct_CC"; then
3084
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3086
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090
test -z "$as_dir" && as_dir=.
3091
for ac_exec_ext in '' $ac_executable_extensions; do
3092
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093
ac_cv_prog_ac_ct_CC="gcc"
3094
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3102
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3103
if test -n "$ac_ct_CC"; then
3104
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3105
echo "${ECHO_T}$ac_ct_CC" >&6
3107
echo "$as_me:$LINENO: result: no" >&5
3108
echo "${ECHO_T}no" >&6
3116
if test -z "$CC"; then
3117
if test -n "$ac_tool_prefix"; then
3118
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3119
set dummy ${ac_tool_prefix}cc; ac_word=$2
3120
echo "$as_me:$LINENO: checking for $ac_word" >&5
3121
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3122
if test "${ac_cv_prog_CC+set}" = set; then
3123
echo $ECHO_N "(cached) $ECHO_C" >&6
3125
if test -n "$CC"; then
3126
ac_cv_prog_CC="$CC" # Let the user override the test.
3128
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132
test -z "$as_dir" && as_dir=.
3133
for ac_exec_ext in '' $ac_executable_extensions; do
3134
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135
ac_cv_prog_CC="${ac_tool_prefix}cc"
3136
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3145
if test -n "$CC"; then
3146
echo "$as_me:$LINENO: result: $CC" >&5
3147
echo "${ECHO_T}$CC" >&6
3149
echo "$as_me:$LINENO: result: no" >&5
3150
echo "${ECHO_T}no" >&6
3154
if test -z "$ac_cv_prog_CC"; then
3156
# Extract the first word of "cc", so it can be a program name with args.
3157
set dummy cc; ac_word=$2
3158
echo "$as_me:$LINENO: checking for $ac_word" >&5
3159
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3160
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3161
echo $ECHO_N "(cached) $ECHO_C" >&6
3163
if test -n "$ac_ct_CC"; then
3164
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3166
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170
test -z "$as_dir" && as_dir=.
3171
for ac_exec_ext in '' $ac_executable_extensions; do
3172
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3173
ac_cv_prog_ac_ct_CC="cc"
3174
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3182
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3183
if test -n "$ac_ct_CC"; then
3184
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3185
echo "${ECHO_T}$ac_ct_CC" >&6
3187
echo "$as_me:$LINENO: result: no" >&5
3188
echo "${ECHO_T}no" >&6
3197
if test -z "$CC"; then
3198
# Extract the first word of "cc", so it can be a program name with args.
3199
set dummy cc; ac_word=$2
3200
echo "$as_me:$LINENO: checking for $ac_word" >&5
3201
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3202
if test "${ac_cv_prog_CC+set}" = set; then
3203
echo $ECHO_N "(cached) $ECHO_C" >&6
3205
if test -n "$CC"; then
3206
ac_cv_prog_CC="$CC" # Let the user override the test.
3209
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213
test -z "$as_dir" && as_dir=.
3214
for ac_exec_ext in '' $ac_executable_extensions; do
3215
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3217
ac_prog_rejected=yes
3221
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3227
if test $ac_prog_rejected = yes; then
3228
# We found a bogon in the path, so make sure we never use it.
3229
set dummy $ac_cv_prog_CC
3231
if test $# != 0; then
3232
# We chose a different compiler from the bogus one.
3233
# However, it has the same basename, so the bogon will be chosen
3234
# first if we set CC to just the basename; use the full file name.
3236
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3242
if test -n "$CC"; then
3243
echo "$as_me:$LINENO: result: $CC" >&5
3244
echo "${ECHO_T}$CC" >&6
3246
echo "$as_me:$LINENO: result: no" >&5
3247
echo "${ECHO_T}no" >&6
3251
if test -z "$CC"; then
3252
if test -n "$ac_tool_prefix"; then
3255
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3256
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3257
echo "$as_me:$LINENO: checking for $ac_word" >&5
3258
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3259
if test "${ac_cv_prog_CC+set}" = set; then
3260
echo $ECHO_N "(cached) $ECHO_C" >&6
3262
if test -n "$CC"; then
3263
ac_cv_prog_CC="$CC" # Let the user override the test.
3265
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269
test -z "$as_dir" && as_dir=.
3270
for ac_exec_ext in '' $ac_executable_extensions; do
3271
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3272
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3273
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3282
if test -n "$CC"; then
3283
echo "$as_me:$LINENO: result: $CC" >&5
3284
echo "${ECHO_T}$CC" >&6
3286
echo "$as_me:$LINENO: result: no" >&5
3287
echo "${ECHO_T}no" >&6
3290
test -n "$CC" && break
3293
if test -z "$CC"; then
3297
# Extract the first word of "$ac_prog", so it can be a program name with args.
3298
set dummy $ac_prog; ac_word=$2
3299
echo "$as_me:$LINENO: checking for $ac_word" >&5
3300
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3301
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3302
echo $ECHO_N "(cached) $ECHO_C" >&6
3304
if test -n "$ac_ct_CC"; then
3305
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3307
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311
test -z "$as_dir" && as_dir=.
3312
for ac_exec_ext in '' $ac_executable_extensions; do
3313
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3314
ac_cv_prog_ac_ct_CC="$ac_prog"
3315
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3323
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3324
if test -n "$ac_ct_CC"; then
3325
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3326
echo "${ECHO_T}$ac_ct_CC" >&6
3328
echo "$as_me:$LINENO: result: no" >&5
3329
echo "${ECHO_T}no" >&6
3332
test -n "$ac_ct_CC" && break
3341
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3342
See \`config.log' for more details." >&5
3343
echo "$as_me: error: no acceptable C compiler found in \$PATH
3344
See \`config.log' for more details." >&2;}
3345
{ (exit 1); exit 1; }; }
3347
# Provide some information about the compiler.
3348
echo "$as_me:$LINENO:" \
3349
"checking for C compiler version" >&5
3350
ac_compiler=`set X $ac_compile; echo $2`
3351
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3352
(eval $ac_compiler --version </dev/null >&5) 2>&5
3354
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355
(exit $ac_status); }
3356
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3357
(eval $ac_compiler -v </dev/null >&5) 2>&5
3359
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360
(exit $ac_status); }
3361
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3362
(eval $ac_compiler -V </dev/null >&5) 2>&5
3364
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365
(exit $ac_status); }
3367
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3368
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3369
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3370
echo $ECHO_N "(cached) $ECHO_C" >&6
3372
cat >conftest.$ac_ext <<_ACEOF
3375
cat confdefs.h >>conftest.$ac_ext
3376
cat >>conftest.$ac_ext <<_ACEOF
3377
/* end confdefs.h. */
3390
rm -f conftest.$ac_objext
3391
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3392
(eval $ac_compile) 2>conftest.er1
3394
grep -v '^ *+' conftest.er1 >conftest.err
3396
cat conftest.err >&5
3397
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398
(exit $ac_status); } &&
3399
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3400
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3403
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404
(exit $ac_status); }; } &&
3405
{ ac_try='test -s conftest.$ac_objext'
3406
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410
(exit $ac_status); }; }; then
3413
echo "$as_me: failed program was:" >&5
3414
sed 's/^/| /' conftest.$ac_ext >&5
3418
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3419
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3422
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3423
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3424
GCC=`test $ac_compiler_gnu = yes && echo yes`
3425
ac_test_CFLAGS=${CFLAGS+set}
3426
ac_save_CFLAGS=$CFLAGS
3428
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3429
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3430
if test "${ac_cv_prog_cc_g+set}" = set; then
3431
echo $ECHO_N "(cached) $ECHO_C" >&6
3433
cat >conftest.$ac_ext <<_ACEOF
3436
cat confdefs.h >>conftest.$ac_ext
3437
cat >>conftest.$ac_ext <<_ACEOF
3438
/* end confdefs.h. */
3448
rm -f conftest.$ac_objext
3449
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3450
(eval $ac_compile) 2>conftest.er1
3452
grep -v '^ *+' conftest.er1 >conftest.err
3454
cat conftest.err >&5
3455
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456
(exit $ac_status); } &&
3457
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3458
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462
(exit $ac_status); }; } &&
3463
{ ac_try='test -s conftest.$ac_objext'
3464
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468
(exit $ac_status); }; }; then
3471
echo "$as_me: failed program was:" >&5
3472
sed 's/^/| /' conftest.$ac_ext >&5
3476
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3478
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3479
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3480
if test "$ac_test_CFLAGS" = set; then
3481
CFLAGS=$ac_save_CFLAGS
3482
elif test $ac_cv_prog_cc_g = yes; then
3483
if test "$GCC" = yes; then
3489
if test "$GCC" = yes; then
3495
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3496
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3497
if test "${ac_cv_prog_cc_stdc+set}" = set; then
3498
echo $ECHO_N "(cached) $ECHO_C" >&6
3500
ac_cv_prog_cc_stdc=no
3502
cat >conftest.$ac_ext <<_ACEOF
3505
cat confdefs.h >>conftest.$ac_ext
3506
cat >>conftest.$ac_ext <<_ACEOF
3507
/* end confdefs.h. */
3510
#include <sys/types.h>
3511
#include <sys/stat.h>
3512
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3513
struct buf { int x; };
3514
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3515
static char *e (p, i)
3521
static char *f (char * (*g) (char **, int), char **p, ...)
3526
s = g (p, va_arg (v,int));
3531
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3532
function prototypes and stuff, but not '\xHH' hex character constants.
3533
These don't provoke an error unfortunately, instead are silently treated
3534
as 'x'. The following induces an error, until -std1 is added to get
3535
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3536
array size at least. It's necessary to write '\x00'==0 to get something
3537
that's true only with -std1. */
3538
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3540
int test (int i, double x);
3541
struct s1 {int (*f) (int a);};
3542
struct s2 {int (*f) (double a);};
3543
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3549
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3554
# Don't try gcc -ansi; that turns off useful extensions and
3555
# breaks some systems' header files.
3556
# AIX -qlanglvl=ansi
3557
# Ultrix and OSF/1 -std1
3558
# HP-UX 10.20 and later -Ae
3559
# HP-UX older versions -Aa -D_HPUX_SOURCE
3560
# SVR4 -Xc -D__EXTENSIONS__
3561
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3563
CC="$ac_save_CC $ac_arg"
3564
rm -f conftest.$ac_objext
3565
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566
(eval $ac_compile) 2>conftest.er1
3568
grep -v '^ *+' conftest.er1 >conftest.err
3570
cat conftest.err >&5
3571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572
(exit $ac_status); } &&
3573
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3574
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578
(exit $ac_status); }; } &&
3579
{ ac_try='test -s conftest.$ac_objext'
3580
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584
(exit $ac_status); }; }; then
3585
ac_cv_prog_cc_stdc=$ac_arg
3588
echo "$as_me: failed program was:" >&5
3589
sed 's/^/| /' conftest.$ac_ext >&5
3592
rm -f conftest.err conftest.$ac_objext
3594
rm -f conftest.$ac_ext conftest.$ac_objext
3599
case "x$ac_cv_prog_cc_stdc" in
3601
echo "$as_me:$LINENO: result: none needed" >&5
3602
echo "${ECHO_T}none needed" >&6 ;;
3604
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3605
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3606
CC="$CC $ac_cv_prog_cc_stdc" ;;
3609
# Some people use a C++ compiler to compile C. Since we use `exit',
3610
# in C++ we need to declare it. In case someone uses the same compiler
3611
# for both compiling C and C++ we need to have the C++ compiler decide
3612
# the declaration of exit, since it's the most demanding environment.
3613
cat >conftest.$ac_ext <<_ACEOF
3618
rm -f conftest.$ac_objext
3619
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3620
(eval $ac_compile) 2>conftest.er1
3622
grep -v '^ *+' conftest.er1 >conftest.err
3624
cat conftest.err >&5
3625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626
(exit $ac_status); } &&
3627
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3628
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632
(exit $ac_status); }; } &&
3633
{ ac_try='test -s conftest.$ac_objext'
3634
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3637
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638
(exit $ac_status); }; }; then
3639
for ac_declaration in \
3641
'extern "C" void std::exit (int) throw (); using std::exit;' \
3642
'extern "C" void std::exit (int); using std::exit;' \
3643
'extern "C" void exit (int) throw ();' \
3644
'extern "C" void exit (int);' \
3647
cat >conftest.$ac_ext <<_ACEOF
3650
cat confdefs.h >>conftest.$ac_ext
3651
cat >>conftest.$ac_ext <<_ACEOF
3652
/* end confdefs.h. */
3663
rm -f conftest.$ac_objext
3664
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3665
(eval $ac_compile) 2>conftest.er1
3667
grep -v '^ *+' conftest.er1 >conftest.err
3669
cat conftest.err >&5
3670
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671
(exit $ac_status); } &&
3672
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3673
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3676
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677
(exit $ac_status); }; } &&
3678
{ ac_try='test -s conftest.$ac_objext'
3679
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3682
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683
(exit $ac_status); }; }; then
3686
echo "$as_me: failed program was:" >&5
3687
sed 's/^/| /' conftest.$ac_ext >&5
3691
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3692
cat >conftest.$ac_ext <<_ACEOF
3695
cat confdefs.h >>conftest.$ac_ext
3696
cat >>conftest.$ac_ext <<_ACEOF
3697
/* end confdefs.h. */
3707
rm -f conftest.$ac_objext
3708
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3709
(eval $ac_compile) 2>conftest.er1
3711
grep -v '^ *+' conftest.er1 >conftest.err
3713
cat conftest.err >&5
3714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715
(exit $ac_status); } &&
3716
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3717
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721
(exit $ac_status); }; } &&
3722
{ ac_try='test -s conftest.$ac_objext'
3723
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727
(exit $ac_status); }; }; then
3730
echo "$as_me: failed program was:" >&5
3731
sed 's/^/| /' conftest.$ac_ext >&5
3734
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3737
if test -n "$ac_declaration"; then
3738
echo '#ifdef __cplusplus' >>confdefs.h
3739
echo $ac_declaration >>confdefs.h
3740
echo '#endif' >>confdefs.h
3744
echo "$as_me: failed program was:" >&5
3745
sed 's/^/| /' conftest.$ac_ext >&5
3748
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3750
ac_cpp='$CPP $CPPFLAGS'
3751
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755
depcc="$CC" am_compiler_list=
3757
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3758
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3759
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3760
echo $ECHO_N "(cached) $ECHO_C" >&6
3762
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3763
# We make a subdir and do the tests there. Otherwise we can end up
3764
# making bogus files that we don't know about and never remove. For
3765
# instance it was reported that on HP-UX the gcc test will end up
3766
# making a dummy file named `D' -- because `-MD' means `put the output
3769
# Copy depcomp to subdir because otherwise we won't find it if we're
3770
# using a relative directory.
3771
cp "$am_depcomp" conftest.dir
3774
am_cv_CC_dependencies_compiler_type=none
3775
if test "$am_compiler_list" = ""; then
3776
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3778
for depmode in $am_compiler_list; do
3779
# We need to recreate these files for each test, as the compiler may
3780
# overwrite some of them when testing with obscure command lines.
3781
# This happens at least with the AIX C compiler.
3782
echo '#include "conftest.h"' > conftest.c
3783
echo 'int i;' > conftest.h
3784
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3788
# after this tag, mechanisms are not by side-effect, so they'll
3789
# only be used when explicitly requested
3790
if test "x$enable_dependency_tracking" = xyes; then
3798
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3799
# mode. It turns out that the SunPro C++ compiler does not properly
3800
# handle `-M -o', and we need to detect this.
3801
if depmode=$depmode \
3802
source=conftest.c object=conftest.o \
3803
depfile=conftest.Po tmpdepfile=conftest.TPo \
3804
$SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3805
grep conftest.h conftest.Po > /dev/null 2>&1 &&
3806
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3807
am_cv_CC_dependencies_compiler_type=$depmode
3815
am_cv_CC_dependencies_compiler_type=none
3819
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3820
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3821
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3827
echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3828
echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3829
if test "${am_cv_prog_cc_stdc+set}" = set; then
3830
echo $ECHO_N "(cached) $ECHO_C" >&6
3832
am_cv_prog_cc_stdc=no
3834
# Don't try gcc -ansi; that turns off useful extensions and
3835
# breaks some systems' header files.
3836
# AIX -qlanglvl=ansi
3837
# Ultrix and OSF/1 -std1
3838
# HP-UX 10.20 and later -Ae
3839
# HP-UX older versions -Aa -D_HPUX_SOURCE
3840
# SVR4 -Xc -D__EXTENSIONS__
3841
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3843
CC="$ac_save_CC $ac_arg"
3844
cat >conftest.$ac_ext <<_ACEOF
3847
cat confdefs.h >>conftest.$ac_ext
3848
cat >>conftest.$ac_ext <<_ACEOF
3849
/* end confdefs.h. */
3852
#include <sys/types.h>
3853
#include <sys/stat.h>
3854
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3855
struct buf { int x; };
3856
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3857
static char *e (p, i)
3863
static char *f (char * (*g) (char **, int), char **p, ...)
3868
s = g (p, va_arg (v,int));
3872
int test (int i, double x);
3873
struct s1 {int (*f) (int a);};
3874
struct s2 {int (*f) (double a);};
3875
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3883
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3889
rm -f conftest.$ac_objext
3890
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3891
(eval $ac_compile) 2>conftest.er1
3893
grep -v '^ *+' conftest.er1 >conftest.err
3895
cat conftest.err >&5
3896
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897
(exit $ac_status); } &&
3898
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3899
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903
(exit $ac_status); }; } &&
3904
{ ac_try='test -s conftest.$ac_objext'
3905
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909
(exit $ac_status); }; }; then
3910
am_cv_prog_cc_stdc="$ac_arg"; break
3912
echo "$as_me: failed program was:" >&5
3913
sed 's/^/| /' conftest.$ac_ext >&5
3916
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3922
if test -z "$am_cv_prog_cc_stdc"; then
3923
echo "$as_me:$LINENO: result: none needed" >&5
3924
echo "${ECHO_T}none needed" >&6
3926
echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3927
echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3929
case "x$am_cv_prog_cc_stdc" in
3931
*) CC="$CC $am_cv_prog_cc_stdc" ;;
3935
ac_cpp='$CPP $CPPFLAGS'
3936
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3937
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3938
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3939
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3940
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3941
# On Suns, sometimes $CPP names a directory.
3942
if test -n "$CPP" && test -d "$CPP"; then
3945
if test -z "$CPP"; then
3946
if test "${ac_cv_prog_CPP+set}" = set; then
3947
echo $ECHO_N "(cached) $ECHO_C" >&6
3949
# Double quotes because CPP needs to be expanded
3950
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3953
for ac_c_preproc_warn_flag in '' yes
3955
# Use a header file that comes with gcc, so configuring glibc
3956
# with a fresh cross-compiler works.
3957
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3958
# <limits.h> exists even on freestanding compilers.
3959
# On the NeXT, cc -E runs the code through the compiler's parser,
3960
# not just through cpp. "Syntax error" is here to catch this case.
3961
cat >conftest.$ac_ext <<_ACEOF
3964
cat confdefs.h >>conftest.$ac_ext
3965
cat >>conftest.$ac_ext <<_ACEOF
3966
/* end confdefs.h. */
3968
# include <limits.h>
3970
# include <assert.h>
3974
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3975
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3977
grep -v '^ *+' conftest.er1 >conftest.err
3979
cat conftest.err >&5
3980
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981
(exit $ac_status); } >/dev/null; then
3982
if test -s conftest.err; then
3983
ac_cpp_err=$ac_c_preproc_warn_flag
3984
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3991
if test -z "$ac_cpp_err"; then
3994
echo "$as_me: failed program was:" >&5
3995
sed 's/^/| /' conftest.$ac_ext >&5
3997
# Broken: fails on valid input.
4000
rm -f conftest.err conftest.$ac_ext
4002
# OK, works on sane cases. Now check whether non-existent headers
4003
# can be detected and how.
4004
cat >conftest.$ac_ext <<_ACEOF
4007
cat confdefs.h >>conftest.$ac_ext
4008
cat >>conftest.$ac_ext <<_ACEOF
4009
/* end confdefs.h. */
4010
#include <ac_nonexistent.h>
4012
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4013
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4015
grep -v '^ *+' conftest.er1 >conftest.err
4017
cat conftest.err >&5
4018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019
(exit $ac_status); } >/dev/null; then
4020
if test -s conftest.err; then
4021
ac_cpp_err=$ac_c_preproc_warn_flag
4022
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4029
if test -z "$ac_cpp_err"; then
4030
# Broken: success on invalid input.
4033
echo "$as_me: failed program was:" >&5
4034
sed 's/^/| /' conftest.$ac_ext >&5
4036
# Passes both tests.
4040
rm -f conftest.err conftest.$ac_ext
4043
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4044
rm -f conftest.err conftest.$ac_ext
4045
if $ac_preproc_ok; then
4057
echo "$as_me:$LINENO: result: $CPP" >&5
4058
echo "${ECHO_T}$CPP" >&6
4060
for ac_c_preproc_warn_flag in '' yes
4062
# Use a header file that comes with gcc, so configuring glibc
4063
# with a fresh cross-compiler works.
4064
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4065
# <limits.h> exists even on freestanding compilers.
4066
# On the NeXT, cc -E runs the code through the compiler's parser,
4067
# not just through cpp. "Syntax error" is here to catch this case.
4068
cat >conftest.$ac_ext <<_ACEOF
4071
cat confdefs.h >>conftest.$ac_ext
4072
cat >>conftest.$ac_ext <<_ACEOF
4073
/* end confdefs.h. */
4075
# include <limits.h>
4077
# include <assert.h>
4081
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4082
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4084
grep -v '^ *+' conftest.er1 >conftest.err
4086
cat conftest.err >&5
4087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088
(exit $ac_status); } >/dev/null; then
4089
if test -s conftest.err; then
4090
ac_cpp_err=$ac_c_preproc_warn_flag
4091
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4098
if test -z "$ac_cpp_err"; then
4101
echo "$as_me: failed program was:" >&5
4102
sed 's/^/| /' conftest.$ac_ext >&5
4104
# Broken: fails on valid input.
4107
rm -f conftest.err conftest.$ac_ext
4109
# OK, works on sane cases. Now check whether non-existent headers
4110
# can be detected and how.
4111
cat >conftest.$ac_ext <<_ACEOF
4114
cat confdefs.h >>conftest.$ac_ext
4115
cat >>conftest.$ac_ext <<_ACEOF
4116
/* end confdefs.h. */
4117
#include <ac_nonexistent.h>
4119
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4120
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4122
grep -v '^ *+' conftest.er1 >conftest.err
4124
cat conftest.err >&5
4125
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126
(exit $ac_status); } >/dev/null; then
4127
if test -s conftest.err; then
4128
ac_cpp_err=$ac_c_preproc_warn_flag
4129
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4136
if test -z "$ac_cpp_err"; then
4137
# Broken: success on invalid input.
4140
echo "$as_me: failed program was:" >&5
4141
sed 's/^/| /' conftest.$ac_ext >&5
4143
# Passes both tests.
4147
rm -f conftest.err conftest.$ac_ext
4150
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4151
rm -f conftest.err conftest.$ac_ext
4152
if $ac_preproc_ok; then
4155
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4156
See \`config.log' for more details." >&5
4157
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4158
See \`config.log' for more details." >&2;}
4159
{ (exit 1); exit 1; }; }
4163
ac_cpp='$CPP $CPPFLAGS'
4164
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4169
echo "$as_me:$LINENO: checking for egrep" >&5
4170
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4171
if test "${ac_cv_prog_egrep+set}" = set; then
4172
echo $ECHO_N "(cached) $ECHO_C" >&6
4174
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4175
then ac_cv_prog_egrep='grep -E'
4176
else ac_cv_prog_egrep='egrep'
4179
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4180
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4181
EGREP=$ac_cv_prog_egrep
4184
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4185
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4186
if test "${ac_cv_header_stdc+set}" = set; then
4187
echo $ECHO_N "(cached) $ECHO_C" >&6
4189
cat >conftest.$ac_ext <<_ACEOF
4192
cat confdefs.h >>conftest.$ac_ext
4193
cat >>conftest.$ac_ext <<_ACEOF
4194
/* end confdefs.h. */
4208
rm -f conftest.$ac_objext
4209
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4210
(eval $ac_compile) 2>conftest.er1
4212
grep -v '^ *+' conftest.er1 >conftest.err
4214
cat conftest.err >&5
4215
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216
(exit $ac_status); } &&
4217
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4218
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222
(exit $ac_status); }; } &&
4223
{ ac_try='test -s conftest.$ac_objext'
4224
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228
(exit $ac_status); }; }; then
4229
ac_cv_header_stdc=yes
4231
echo "$as_me: failed program was:" >&5
4232
sed 's/^/| /' conftest.$ac_ext >&5
4234
ac_cv_header_stdc=no
4236
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4238
if test $ac_cv_header_stdc = yes; then
4239
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4240
cat >conftest.$ac_ext <<_ACEOF
4243
cat confdefs.h >>conftest.$ac_ext
4244
cat >>conftest.$ac_ext <<_ACEOF
4245
/* end confdefs.h. */
4249
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4250
$EGREP "memchr" >/dev/null 2>&1; then
4253
ac_cv_header_stdc=no
4259
if test $ac_cv_header_stdc = yes; then
4260
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4261
cat >conftest.$ac_ext <<_ACEOF
4264
cat confdefs.h >>conftest.$ac_ext
4265
cat >>conftest.$ac_ext <<_ACEOF
4266
/* end confdefs.h. */
4270
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4271
$EGREP "free" >/dev/null 2>&1; then
4274
ac_cv_header_stdc=no
4280
if test $ac_cv_header_stdc = yes; then
4281
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4282
if test "$cross_compiling" = yes; then
4285
cat >conftest.$ac_ext <<_ACEOF
4288
cat confdefs.h >>conftest.$ac_ext
4289
cat >>conftest.$ac_ext <<_ACEOF
4290
/* end confdefs.h. */
4292
#if ((' ' & 0x0FF) == 0x020)
4293
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4294
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4296
# define ISLOWER(c) \
4297
(('a' <= (c) && (c) <= 'i') \
4298
|| ('j' <= (c) && (c) <= 'r') \
4299
|| ('s' <= (c) && (c) <= 'z'))
4300
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4303
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4308
for (i = 0; i < 256; i++)
4309
if (XOR (islower (i), ISLOWER (i))
4310
|| toupper (i) != TOUPPER (i))
4315
rm -f conftest$ac_exeext
4316
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4317
(eval $ac_link) 2>&5
4319
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4321
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325
(exit $ac_status); }; }; then
4328
echo "$as_me: program exited with status $ac_status" >&5
4329
echo "$as_me: failed program was:" >&5
4330
sed 's/^/| /' conftest.$ac_ext >&5
4333
ac_cv_header_stdc=no
4335
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4339
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4340
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4341
if test $ac_cv_header_stdc = yes; then
4343
cat >>confdefs.h <<\_ACEOF
4344
#define STDC_HEADERS 1
4352
echo "$as_me:$LINENO: checking for intltool >= " >&5
4353
echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6
4355
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
4356
INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }' < ${ac_aux_dir}/intltool-update.in`
4358
INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < ${ac_aux_dir}/intltool-update.in`
4361
if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
4362
echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
4363
echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6
4365
echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&5
4366
echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&6
4371
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
4372
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
4373
INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -k -u -c $(top_builddir)/po/.intltool-merge-cache'
4374
INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
4375
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -p'
4376
INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
4377
INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -u -c $(top_builddir)/po/.intltool-merge-cache'
4378
INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
4379
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
4380
INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
4381
INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
4382
INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
4383
INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -m -c $(top_builddir)/po/.intltool-merge-cache'
4384
INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
4385
INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -s -u -c $(top_builddir)/po/.intltool-merge-cache'
4386
INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
4405
# Use the tools built into the package, not the ones that are installed.
4407
INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
4408
INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
4409
INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
4415
# Extract the first word of "perl", so it can be a program name with args.
4416
set dummy perl; ac_word=$2
4417
echo "$as_me:$LINENO: checking for $ac_word" >&5
4418
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4419
if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
4420
echo $ECHO_N "(cached) $ECHO_C" >&6
4422
case $INTLTOOL_PERL in
4424
ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
4427
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431
test -z "$as_dir" && as_dir=.
4432
for ac_exec_ext in '' $ac_executable_extensions; do
4433
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4434
ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
4435
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444
INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
4446
if test -n "$INTLTOOL_PERL"; then
4447
echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
4448
echo "${ECHO_T}$INTLTOOL_PERL" >&6
4450
echo "$as_me:$LINENO: result: no" >&5
4451
echo "${ECHO_T}no" >&6
4454
if test -z "$INTLTOOL_PERL"; then
4455
{ { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
4456
echo "$as_me: error: perl not found; required for intltool" >&2;}
4457
{ (exit 1); exit 1; }; }
4459
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
4460
{ { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
4461
echo "$as_me: error: perl 5.x required for intltool" >&2;}
4462
{ (exit 1); exit 1; }; }
4464
if `perl -e "require XML::Parser" 2>/dev/null`; then
4467
{ { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
4468
echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
4469
{ (exit 1); exit 1; }; }
4472
# Remove file type tags (using []) from po/POTFILES.
4480
# Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
4482
ac_config_commands="$ac_config_commands default-1"
4486
# Check whether --enable-shared or --disable-shared was given.
4487
if test "${enable_shared+set}" = set; then
4488
enableval="$enable_shared"
4489
p=${PACKAGE-default}
4491
yes) enable_shared=yes ;;
4492
no) enable_shared=no ;;
4495
# Look at the argument we got. We use all the common list separators.
4496
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4497
for pkg in $enableval; do
4499
if test "X$pkg" = "X$p"; then
4510
# Check whether --enable-static or --disable-static was given.
4511
if test "${enable_static+set}" = set; then
4512
enableval="$enable_static"
4513
p=${PACKAGE-default}
4515
yes) enable_static=yes ;;
4516
no) enable_static=no ;;
4519
# Look at the argument we got. We use all the common list separators.
4520
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4521
for pkg in $enableval; do
4523
if test "X$pkg" = "X$p"; then
4534
# Check whether --enable-fast-install or --disable-fast-install was given.
4535
if test "${enable_fast_install+set}" = set; then
4536
enableval="$enable_fast_install"
4537
p=${PACKAGE-default}
4539
yes) enable_fast_install=yes ;;
4540
no) enable_fast_install=no ;;
4542
enable_fast_install=no
4543
# Look at the argument we got. We use all the common list separators.
4544
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4545
for pkg in $enableval; do
4547
if test "X$pkg" = "X$p"; then
4548
enable_fast_install=yes
4555
enable_fast_install=yes
4558
# Make sure we can run config.sub.
4559
$ac_config_sub sun4 >/dev/null 2>&1 ||
4560
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4561
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4562
{ (exit 1); exit 1; }; }
4564
echo "$as_me:$LINENO: checking build system type" >&5
4565
echo $ECHO_N "checking build system type... $ECHO_C" >&6
4566
if test "${ac_cv_build+set}" = set; then
4567
echo $ECHO_N "(cached) $ECHO_C" >&6
4569
ac_cv_build_alias=$build_alias
4570
test -z "$ac_cv_build_alias" &&
4571
ac_cv_build_alias=`$ac_config_guess`
4572
test -z "$ac_cv_build_alias" &&
4573
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4574
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4575
{ (exit 1); exit 1; }; }
4576
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4577
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4578
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4579
{ (exit 1); exit 1; }; }
4582
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4583
echo "${ECHO_T}$ac_cv_build" >&6
4585
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4586
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4587
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4590
echo "$as_me:$LINENO: checking host system type" >&5
4591
echo $ECHO_N "checking host system type... $ECHO_C" >&6
4592
if test "${ac_cv_host+set}" = set; then
4593
echo $ECHO_N "(cached) $ECHO_C" >&6
4595
ac_cv_host_alias=$host_alias
4596
test -z "$ac_cv_host_alias" &&
4597
ac_cv_host_alias=$ac_cv_build_alias
4598
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4599
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4600
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4601
{ (exit 1); exit 1; }; }
4604
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4605
echo "${ECHO_T}$ac_cv_host" >&6
4607
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4608
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4609
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4612
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4613
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4614
if test "${lt_cv_path_SED+set}" = set; then
4615
echo $ECHO_N "(cached) $ECHO_C" >&6
4617
# Loop through the user's path and test for sed and gsed.
4618
# Then use that list of sed's as ones to test for truncation.
4619
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623
test -z "$as_dir" && as_dir=.
4624
for lt_ac_prog in sed gsed; do
4625
for ac_exec_ext in '' $ac_executable_extensions; do
4626
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4627
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4634
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4635
# along with /bin/sed that truncates output.
4636
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4637
test ! -f $lt_ac_sed && break
4638
cat /dev/null > conftest.in
4640
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4641
# Check for GNU sed and select it if it is found.
4642
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4643
lt_cv_path_SED=$lt_ac_sed
4647
cat conftest.in conftest.in >conftest.tmp
4648
mv conftest.tmp conftest.in
4649
cp conftest.in conftest.nl
4651
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4652
cmp -s conftest.out conftest.nl || break
4653
# 10000 chars as input seems more than enough
4654
test $lt_ac_count -gt 10 && break
4655
lt_ac_count=`expr $lt_ac_count + 1`
4656
if test $lt_ac_count -gt $lt_ac_max; then
4657
lt_ac_max=$lt_ac_count
4658
lt_cv_path_SED=$lt_ac_sed
4666
echo "$as_me:$LINENO: result: $SED" >&5
4667
echo "${ECHO_T}$SED" >&6
4670
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4671
if test "${with_gnu_ld+set}" = set; then
4672
withval="$with_gnu_ld"
4673
test "$withval" = no || with_gnu_ld=yes
4678
if test "$GCC" = yes; then
4679
# Check if gcc -print-prog-name=ld gives a path.
4680
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4681
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4684
# gcc leaves a trailing carriage return which upsets mingw
4685
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4687
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4690
# Accept absolute paths.
4692
re_direlt='/[^/][^/]*/\.\./'
4693
# Canonicalize the pathname of ld
4694
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4695
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4696
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4698
test -z "$LD" && LD="$ac_prog"
4701
# If it fails, then pretend we aren't using GCC.
4705
# If it is relative, then search for the first ld in PATH.
4709
elif test "$with_gnu_ld" = yes; then
4710
echo "$as_me:$LINENO: checking for GNU ld" >&5
4711
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4713
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4714
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4716
if test "${lt_cv_path_LD+set}" = set; then
4717
echo $ECHO_N "(cached) $ECHO_C" >&6
4719
if test -z "$LD"; then
4720
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4721
for ac_dir in $PATH; do
4723
test -z "$ac_dir" && ac_dir=.
4724
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4725
lt_cv_path_LD="$ac_dir/$ac_prog"
4726
# Check to see if the program is GNU ld. I'd rather use --version,
4727
# but apparently some GNU ld's only accept -v.
4728
# Break only if it was the GNU/non-GNU ld that we prefer.
4729
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4730
*GNU* | *'with BFD'*)
4731
test "$with_gnu_ld" != no && break
4734
test "$with_gnu_ld" != yes && break
4741
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4746
if test -n "$LD"; then
4747
echo "$as_me:$LINENO: result: $LD" >&5
4748
echo "${ECHO_T}$LD" >&6
4750
echo "$as_me:$LINENO: result: no" >&5
4751
echo "${ECHO_T}no" >&6
4753
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4754
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4755
{ (exit 1); exit 1; }; }
4756
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4757
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4758
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4759
echo $ECHO_N "(cached) $ECHO_C" >&6
4761
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
4762
case `$LD -v 2>&1 </dev/null` in
4763
*GNU* | *'with BFD'*)
4764
lt_cv_prog_gnu_ld=yes
4767
lt_cv_prog_gnu_ld=no
4771
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4772
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4773
with_gnu_ld=$lt_cv_prog_gnu_ld
4776
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4777
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4778
if test "${lt_cv_ld_reload_flag+set}" = set; then
4779
echo $ECHO_N "(cached) $ECHO_C" >&6
4781
lt_cv_ld_reload_flag='-r'
4783
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4784
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4785
reload_flag=$lt_cv_ld_reload_flag
4786
case $reload_flag in
4788
*) reload_flag=" $reload_flag" ;;
4790
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4792
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4793
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4794
if test "${lt_cv_path_NM+set}" = set; then
4795
echo $ECHO_N "(cached) $ECHO_C" >&6
4797
if test -n "$NM"; then
4798
# Let the user override the test.
4801
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4802
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4804
test -z "$ac_dir" && ac_dir=.
4805
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4806
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4807
# Check to see if the nm accepts a BSD-compat flag.
4808
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4809
# nm: unknown option "B" ignored
4810
# Tru64's nm complains that /dev/null is an invalid object file
4811
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4812
*/dev/null* | *'Invalid file or object type'*)
4813
lt_cv_path_NM="$tmp_nm -B"
4817
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4819
lt_cv_path_NM="$tmp_nm -p"
4823
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4824
continue # so that we can try to find one that supports BSD flags
4831
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4834
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4835
echo "${ECHO_T}$lt_cv_path_NM" >&6
4838
echo "$as_me:$LINENO: checking whether ln -s works" >&5
4839
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4841
if test "$LN_S" = "ln -s"; then
4842
echo "$as_me:$LINENO: result: yes" >&5
4843
echo "${ECHO_T}yes" >&6
4845
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4846
echo "${ECHO_T}no, using $LN_S" >&6
4849
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4850
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4851
if test "${lt_cv_deplibs_check_method+set}" = set; then
4852
echo $ECHO_N "(cached) $ECHO_C" >&6
4854
lt_cv_file_magic_cmd='$MAGIC_CMD'
4855
lt_cv_file_magic_test_file=
4856
lt_cv_deplibs_check_method='unknown'
4857
# Need to set the preceding variable on all platforms that support
4858
# interlibrary dependencies.
4859
# 'none' -- dependencies not supported.
4860
# `unknown' -- same as none, but documents that we really don't know.
4861
# 'pass_all' -- all dependencies passed with no checks.
4862
# 'test_compile' -- check by making test program.
4863
# 'file_magic [[regex]]' -- check by looking for files in library path
4864
# which responds to the $file_magic_cmd with a given extended regex.
4865
# If you have `file' or equivalent on your system and you're not sure
4866
# whether `pass_all' will *always* work, you probably want this one.
4870
lt_cv_deplibs_check_method=pass_all
4874
lt_cv_deplibs_check_method=pass_all
4878
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4879
lt_cv_file_magic_cmd='/usr/bin/file -L'
4880
lt_cv_file_magic_test_file=/shlib/libc.so
4884
# win32_libid is a shell function defined in ltmain.sh
4885
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4886
lt_cv_file_magic_cmd='win32_libid'
4890
# Base MSYS/MinGW do not provide the 'file' command needed by
4891
# win32_libid shell function, so use a weaker test based on 'objdump'.
4892
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4893
lt_cv_file_magic_cmd='$OBJDUMP -f'
4896
darwin* | rhapsody*)
4897
lt_cv_deplibs_check_method=pass_all
4900
freebsd* | kfreebsd*-gnu)
4901
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4904
# Not sure whether the presence of OpenBSD here was a mistake.
4905
# Let's accept both of them until this is cleared up.
4906
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4907
lt_cv_file_magic_cmd=/usr/bin/file
4908
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4912
lt_cv_deplibs_check_method=pass_all
4917
lt_cv_deplibs_check_method=pass_all
4920
hpux10.20* | hpux11*)
4921
lt_cv_file_magic_cmd=/usr/bin/file
4924
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4925
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4928
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]'
4929
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4932
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4933
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4938
irix5* | irix6* | nonstopux*)
4940
*-32|*"-32 ") libmagic=32-bit;;
4941
*-n32|*"-n32 ") libmagic=N32;;
4942
*-64|*"-64 ") libmagic=64-bit;;
4943
*) libmagic=never-match;;
4945
lt_cv_deplibs_check_method=pass_all
4948
# This must be Linux ELF.
4950
lt_cv_deplibs_check_method=pass_all
4953
netbsd* | knetbsd*-gnu)
4954
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4955
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4957
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4962
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4963
lt_cv_file_magic_cmd=/usr/bin/file
4964
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4968
lt_cv_deplibs_check_method=unknown
4972
lt_cv_file_magic_cmd=/usr/bin/file
4973
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4974
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4975
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4977
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4981
osf3* | osf4* | osf5*)
4982
lt_cv_deplibs_check_method=pass_all
4986
lt_cv_deplibs_check_method=pass_all
4990
lt_cv_deplibs_check_method=pass_all
4993
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4994
case $host_vendor in
4996
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]'
4997
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5000
lt_cv_deplibs_check_method=pass_all
5003
lt_cv_file_magic_cmd='/bin/file'
5004
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5007
lt_cv_file_magic_cmd='/bin/file'
5008
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5009
lt_cv_file_magic_test_file=/lib/libc.so
5012
lt_cv_deplibs_check_method=pass_all
5017
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5018
lt_cv_deplibs_check_method=pass_all
5023
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5024
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5025
file_magic_cmd=$lt_cv_file_magic_cmd
5026
deplibs_check_method=$lt_cv_deplibs_check_method
5027
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5032
# If no C compiler was specified, use CC.
5035
# Allow CC to be a program name with arguments.
5038
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5039
if test "${enable_libtool_lock+set}" = set; then
5040
enableval="$enable_libtool_lock"
5043
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5045
# Some flags need to be propagated to the compiler or linker for good
5049
# Find out which ABI we are using.
5050
echo 'int i;' > conftest.$ac_ext
5051
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5052
(eval $ac_compile) 2>&5
5054
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055
(exit $ac_status); }; then
5056
case `/usr/bin/file conftest.$ac_objext` in
5068
# Find out which ABI we are using.
5069
echo '#line 5069 "configure"' > conftest.$ac_ext
5070
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5071
(eval $ac_compile) 2>&5
5073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074
(exit $ac_status); }; then
5075
if test "$lt_cv_prog_gnu_ld" = yes; then
5076
case `/usr/bin/file conftest.$ac_objext` in
5078
LD="${LD-ld} -melf32bsmip"
5081
LD="${LD-ld} -melf32bmipn32"
5084
LD="${LD-ld} -melf64bmip"
5088
case `/usr/bin/file conftest.$ac_objext` in
5104
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5105
# Find out which ABI we are using.
5106
echo 'int i;' > conftest.$ac_ext
5107
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5108
(eval $ac_compile) 2>&5
5110
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111
(exit $ac_status); }; then
5112
case "`/usr/bin/file conftest.o`" in
5116
LD="${LD-ld} -m elf_i386"
5118
ppc64-*linux*|powerpc64-*linux*)
5119
LD="${LD-ld} -m elf32ppclinux"
5122
LD="${LD-ld} -m elf_s390"
5125
LD="${LD-ld} -m elf32_sparc"
5132
LD="${LD-ld} -m elf_x86_64"
5134
ppc*-*linux*|powerpc*-*linux*)
5135
LD="${LD-ld} -m elf64ppc"
5138
LD="${LD-ld} -m elf64_s390"
5141
LD="${LD-ld} -m elf64_sparc"
5151
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
5152
SAVE_CFLAGS="$CFLAGS"
5153
CFLAGS="$CFLAGS -belf"
5154
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5155
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5156
if test "${lt_cv_cc_needs_belf+set}" = set; then
5157
echo $ECHO_N "(cached) $ECHO_C" >&6
5160
ac_cpp='$CPP $CPPFLAGS'
5161
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5162
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5163
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5165
cat >conftest.$ac_ext <<_ACEOF
5168
cat confdefs.h >>conftest.$ac_ext
5169
cat >>conftest.$ac_ext <<_ACEOF
5170
/* end confdefs.h. */
5180
rm -f conftest.$ac_objext conftest$ac_exeext
5181
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5182
(eval $ac_link) 2>conftest.er1
5184
grep -v '^ *+' conftest.er1 >conftest.err
5186
cat conftest.err >&5
5187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188
(exit $ac_status); } &&
5189
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5190
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194
(exit $ac_status); }; } &&
5195
{ ac_try='test -s conftest$ac_exeext'
5196
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200
(exit $ac_status); }; }; then
5201
lt_cv_cc_needs_belf=yes
5203
echo "$as_me: failed program was:" >&5
5204
sed 's/^/| /' conftest.$ac_ext >&5
5206
lt_cv_cc_needs_belf=no
5208
rm -f conftest.err conftest.$ac_objext \
5209
conftest$ac_exeext conftest.$ac_ext
5211
ac_cpp='$CPP $CPPFLAGS'
5212
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5217
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5218
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5219
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5220
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5221
CFLAGS="$SAVE_CFLAGS"
5227
need_locks="$enable_libtool_lock"
5230
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5240
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5241
inttypes.h stdint.h unistd.h
5243
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5244
echo "$as_me:$LINENO: checking for $ac_header" >&5
5245
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5246
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5247
echo $ECHO_N "(cached) $ECHO_C" >&6
5249
cat >conftest.$ac_ext <<_ACEOF
5252
cat confdefs.h >>conftest.$ac_ext
5253
cat >>conftest.$ac_ext <<_ACEOF
5254
/* end confdefs.h. */
5255
$ac_includes_default
5257
#include <$ac_header>
5259
rm -f conftest.$ac_objext
5260
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5261
(eval $ac_compile) 2>conftest.er1
5263
grep -v '^ *+' conftest.er1 >conftest.err
5265
cat conftest.err >&5
5266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267
(exit $ac_status); } &&
5268
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5269
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273
(exit $ac_status); }; } &&
5274
{ ac_try='test -s conftest.$ac_objext'
5275
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279
(exit $ac_status); }; }; then
5280
eval "$as_ac_Header=yes"
5282
echo "$as_me: failed program was:" >&5
5283
sed 's/^/| /' conftest.$ac_ext >&5
5285
eval "$as_ac_Header=no"
5287
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5289
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5290
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5291
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5292
cat >>confdefs.h <<_ACEOF
5293
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5302
for ac_header in dlfcn.h
5304
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5305
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5306
echo "$as_me:$LINENO: checking for $ac_header" >&5
5307
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5308
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5309
echo $ECHO_N "(cached) $ECHO_C" >&6
5311
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5312
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5314
# Is the header compilable?
5315
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5316
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5317
cat >conftest.$ac_ext <<_ACEOF
5320
cat confdefs.h >>conftest.$ac_ext
5321
cat >>conftest.$ac_ext <<_ACEOF
5322
/* end confdefs.h. */
5323
$ac_includes_default
5324
#include <$ac_header>
5326
rm -f conftest.$ac_objext
5327
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5328
(eval $ac_compile) 2>conftest.er1
5330
grep -v '^ *+' conftest.er1 >conftest.err
5332
cat conftest.err >&5
5333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334
(exit $ac_status); } &&
5335
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5336
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340
(exit $ac_status); }; } &&
5341
{ ac_try='test -s conftest.$ac_objext'
5342
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346
(exit $ac_status); }; }; then
5347
ac_header_compiler=yes
5349
echo "$as_me: failed program was:" >&5
5350
sed 's/^/| /' conftest.$ac_ext >&5
5352
ac_header_compiler=no
5354
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5355
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5356
echo "${ECHO_T}$ac_header_compiler" >&6
5358
# Is the header present?
5359
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5360
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5361
cat >conftest.$ac_ext <<_ACEOF
5364
cat confdefs.h >>conftest.$ac_ext
5365
cat >>conftest.$ac_ext <<_ACEOF
5366
/* end confdefs.h. */
5367
#include <$ac_header>
5369
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5370
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5372
grep -v '^ *+' conftest.er1 >conftest.err
5374
cat conftest.err >&5
5375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376
(exit $ac_status); } >/dev/null; then
5377
if test -s conftest.err; then
5378
ac_cpp_err=$ac_c_preproc_warn_flag
5379
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5386
if test -z "$ac_cpp_err"; then
5387
ac_header_preproc=yes
5389
echo "$as_me: failed program was:" >&5
5390
sed 's/^/| /' conftest.$ac_ext >&5
5392
ac_header_preproc=no
5394
rm -f conftest.err conftest.$ac_ext
5395
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5396
echo "${ECHO_T}$ac_header_preproc" >&6
5398
# So? What about this header?
5399
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5401
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5402
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5403
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5404
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5405
ac_header_preproc=yes
5408
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5409
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5410
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5411
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5412
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5413
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5414
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5415
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5416
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5417
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5418
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5419
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5422
## ------------------------------------------ ##
5423
## Report this to the AC_PACKAGE_NAME lists. ##
5424
## ------------------------------------------ ##
5427
sed "s/^/$as_me: WARNING: /" >&2
5430
echo "$as_me:$LINENO: checking for $ac_header" >&5
5431
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5432
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5433
echo $ECHO_N "(cached) $ECHO_C" >&6
5435
eval "$as_ac_Header=\$ac_header_preproc"
5437
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5438
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5441
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5442
cat >>confdefs.h <<_ACEOF
5443
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5451
ac_cpp='$CXXCPP $CPPFLAGS'
5452
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5453
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5454
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5455
if test -n "$ac_tool_prefix"; then
5456
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5458
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5459
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5460
echo "$as_me:$LINENO: checking for $ac_word" >&5
5461
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5462
if test "${ac_cv_prog_CXX+set}" = set; then
5463
echo $ECHO_N "(cached) $ECHO_C" >&6
5465
if test -n "$CXX"; then
5466
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5468
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472
test -z "$as_dir" && as_dir=.
5473
for ac_exec_ext in '' $ac_executable_extensions; do
5474
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5475
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5476
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5485
if test -n "$CXX"; then
5486
echo "$as_me:$LINENO: result: $CXX" >&5
5487
echo "${ECHO_T}$CXX" >&6
5489
echo "$as_me:$LINENO: result: no" >&5
5490
echo "${ECHO_T}no" >&6
5493
test -n "$CXX" && break
5496
if test -z "$CXX"; then
5498
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5500
# Extract the first word of "$ac_prog", so it can be a program name with args.
5501
set dummy $ac_prog; ac_word=$2
5502
echo "$as_me:$LINENO: checking for $ac_word" >&5
5503
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5504
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5505
echo $ECHO_N "(cached) $ECHO_C" >&6
5507
if test -n "$ac_ct_CXX"; then
5508
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5510
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514
test -z "$as_dir" && as_dir=.
5515
for ac_exec_ext in '' $ac_executable_extensions; do
5516
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5517
ac_cv_prog_ac_ct_CXX="$ac_prog"
5518
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5526
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5527
if test -n "$ac_ct_CXX"; then
5528
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5529
echo "${ECHO_T}$ac_ct_CXX" >&6
5531
echo "$as_me:$LINENO: result: no" >&5
5532
echo "${ECHO_T}no" >&6
5535
test -n "$ac_ct_CXX" && break
5537
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5543
# Provide some information about the compiler.
5544
echo "$as_me:$LINENO:" \
5545
"checking for C++ compiler version" >&5
5546
ac_compiler=`set X $ac_compile; echo $2`
5547
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5548
(eval $ac_compiler --version </dev/null >&5) 2>&5
5550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551
(exit $ac_status); }
5552
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5553
(eval $ac_compiler -v </dev/null >&5) 2>&5
5555
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556
(exit $ac_status); }
5557
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5558
(eval $ac_compiler -V </dev/null >&5) 2>&5
5560
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561
(exit $ac_status); }
5563
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5564
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5565
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5566
echo $ECHO_N "(cached) $ECHO_C" >&6
5568
cat >conftest.$ac_ext <<_ACEOF
5571
cat confdefs.h >>conftest.$ac_ext
5572
cat >>conftest.$ac_ext <<_ACEOF
5573
/* end confdefs.h. */
5586
rm -f conftest.$ac_objext
5587
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5588
(eval $ac_compile) 2>conftest.er1
5590
grep -v '^ *+' conftest.er1 >conftest.err
5592
cat conftest.err >&5
5593
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594
(exit $ac_status); } &&
5595
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5596
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600
(exit $ac_status); }; } &&
5601
{ ac_try='test -s conftest.$ac_objext'
5602
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606
(exit $ac_status); }; }; then
5609
echo "$as_me: failed program was:" >&5
5610
sed 's/^/| /' conftest.$ac_ext >&5
5614
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5615
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5618
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5619
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5620
GXX=`test $ac_compiler_gnu = yes && echo yes`
5621
ac_test_CXXFLAGS=${CXXFLAGS+set}
5622
ac_save_CXXFLAGS=$CXXFLAGS
5624
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5625
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5626
if test "${ac_cv_prog_cxx_g+set}" = set; then
5627
echo $ECHO_N "(cached) $ECHO_C" >&6
5629
cat >conftest.$ac_ext <<_ACEOF
5632
cat confdefs.h >>conftest.$ac_ext
5633
cat >>conftest.$ac_ext <<_ACEOF
5634
/* end confdefs.h. */
5644
rm -f conftest.$ac_objext
5645
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5646
(eval $ac_compile) 2>conftest.er1
5648
grep -v '^ *+' conftest.er1 >conftest.err
5650
cat conftest.err >&5
5651
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652
(exit $ac_status); } &&
5653
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5654
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658
(exit $ac_status); }; } &&
5659
{ ac_try='test -s conftest.$ac_objext'
5660
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664
(exit $ac_status); }; }; then
5665
ac_cv_prog_cxx_g=yes
5667
echo "$as_me: failed program was:" >&5
5668
sed 's/^/| /' conftest.$ac_ext >&5
5672
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5674
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5675
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5676
if test "$ac_test_CXXFLAGS" = set; then
5677
CXXFLAGS=$ac_save_CXXFLAGS
5678
elif test $ac_cv_prog_cxx_g = yes; then
5679
if test "$GXX" = yes; then
5685
if test "$GXX" = yes; then
5691
for ac_declaration in \
5693
'extern "C" void std::exit (int) throw (); using std::exit;' \
5694
'extern "C" void std::exit (int); using std::exit;' \
5695
'extern "C" void exit (int) throw ();' \
5696
'extern "C" void exit (int);' \
5699
cat >conftest.$ac_ext <<_ACEOF
5702
cat confdefs.h >>conftest.$ac_ext
5703
cat >>conftest.$ac_ext <<_ACEOF
5704
/* end confdefs.h. */
5715
rm -f conftest.$ac_objext
5716
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5717
(eval $ac_compile) 2>conftest.er1
5719
grep -v '^ *+' conftest.er1 >conftest.err
5721
cat conftest.err >&5
5722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723
(exit $ac_status); } &&
5724
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5725
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729
(exit $ac_status); }; } &&
5730
{ ac_try='test -s conftest.$ac_objext'
5731
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735
(exit $ac_status); }; }; then
5738
echo "$as_me: failed program was:" >&5
5739
sed 's/^/| /' conftest.$ac_ext >&5
5743
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5744
cat >conftest.$ac_ext <<_ACEOF
5747
cat confdefs.h >>conftest.$ac_ext
5748
cat >>conftest.$ac_ext <<_ACEOF
5749
/* end confdefs.h. */
5759
rm -f conftest.$ac_objext
5760
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5761
(eval $ac_compile) 2>conftest.er1
5763
grep -v '^ *+' conftest.er1 >conftest.err
5765
cat conftest.err >&5
5766
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767
(exit $ac_status); } &&
5768
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5769
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773
(exit $ac_status); }; } &&
5774
{ ac_try='test -s conftest.$ac_objext'
5775
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779
(exit $ac_status); }; }; then
5782
echo "$as_me: failed program was:" >&5
5783
sed 's/^/| /' conftest.$ac_ext >&5
5786
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5789
if test -n "$ac_declaration"; then
5790
echo '#ifdef __cplusplus' >>confdefs.h
5791
echo $ac_declaration >>confdefs.h
5792
echo '#endif' >>confdefs.h
5796
ac_cpp='$CXXCPP $CPPFLAGS'
5797
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5798
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5799
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5801
depcc="$CXX" am_compiler_list=
5803
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5804
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5805
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5806
echo $ECHO_N "(cached) $ECHO_C" >&6
5808
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5809
# We make a subdir and do the tests there. Otherwise we can end up
5810
# making bogus files that we don't know about and never remove. For
5811
# instance it was reported that on HP-UX the gcc test will end up
5812
# making a dummy file named `D' -- because `-MD' means `put the output
5815
# Copy depcomp to subdir because otherwise we won't find it if we're
5816
# using a relative directory.
5817
cp "$am_depcomp" conftest.dir
5820
am_cv_CXX_dependencies_compiler_type=none
5821
if test "$am_compiler_list" = ""; then
5822
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5824
for depmode in $am_compiler_list; do
5825
# We need to recreate these files for each test, as the compiler may
5826
# overwrite some of them when testing with obscure command lines.
5827
# This happens at least with the AIX C compiler.
5828
echo '#include "conftest.h"' > conftest.c
5829
echo 'int i;' > conftest.h
5830
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
5834
# after this tag, mechanisms are not by side-effect, so they'll
5835
# only be used when explicitly requested
5836
if test "x$enable_dependency_tracking" = xyes; then
5844
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5845
# mode. It turns out that the SunPro C++ compiler does not properly
5846
# handle `-M -o', and we need to detect this.
5847
if depmode=$depmode \
5848
source=conftest.c object=conftest.o \
5849
depfile=conftest.Po tmpdepfile=conftest.TPo \
5850
$SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
5851
grep conftest.h conftest.Po > /dev/null 2>&1 &&
5852
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5853
am_cv_CXX_dependencies_compiler_type=$depmode
5861
am_cv_CXX_dependencies_compiler_type=none
5865
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5866
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5867
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5871
ac_cpp='$CXXCPP $CPPFLAGS'
5872
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5873
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5874
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5875
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5876
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5877
if test -z "$CXXCPP"; then
5878
if test "${ac_cv_prog_CXXCPP+set}" = set; then
5879
echo $ECHO_N "(cached) $ECHO_C" >&6
5881
# Double quotes because CXXCPP needs to be expanded
5882
for CXXCPP in "$CXX -E" "/lib/cpp"
5885
for ac_cxx_preproc_warn_flag in '' yes
5887
# Use a header file that comes with gcc, so configuring glibc
5888
# with a fresh cross-compiler works.
5889
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5890
# <limits.h> exists even on freestanding compilers.
5891
# On the NeXT, cc -E runs the code through the compiler's parser,
5892
# not just through cpp. "Syntax error" is here to catch this case.
5893
cat >conftest.$ac_ext <<_ACEOF
5896
cat confdefs.h >>conftest.$ac_ext
5897
cat >>conftest.$ac_ext <<_ACEOF
5898
/* end confdefs.h. */
5900
# include <limits.h>
5902
# include <assert.h>
5906
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5907
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5909
grep -v '^ *+' conftest.er1 >conftest.err
5911
cat conftest.err >&5
5912
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913
(exit $ac_status); } >/dev/null; then
5914
if test -s conftest.err; then
5915
ac_cpp_err=$ac_cxx_preproc_warn_flag
5916
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5923
if test -z "$ac_cpp_err"; then
5926
echo "$as_me: failed program was:" >&5
5927
sed 's/^/| /' conftest.$ac_ext >&5
5929
# Broken: fails on valid input.
5932
rm -f conftest.err conftest.$ac_ext
5934
# OK, works on sane cases. Now check whether non-existent headers
5935
# can be detected and how.
5936
cat >conftest.$ac_ext <<_ACEOF
5939
cat confdefs.h >>conftest.$ac_ext
5940
cat >>conftest.$ac_ext <<_ACEOF
5941
/* end confdefs.h. */
5942
#include <ac_nonexistent.h>
5944
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5945
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5947
grep -v '^ *+' conftest.er1 >conftest.err
5949
cat conftest.err >&5
5950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951
(exit $ac_status); } >/dev/null; then
5952
if test -s conftest.err; then
5953
ac_cpp_err=$ac_cxx_preproc_warn_flag
5954
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5961
if test -z "$ac_cpp_err"; then
5962
# Broken: success on invalid input.
5965
echo "$as_me: failed program was:" >&5
5966
sed 's/^/| /' conftest.$ac_ext >&5
5968
# Passes both tests.
5972
rm -f conftest.err conftest.$ac_ext
5975
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5976
rm -f conftest.err conftest.$ac_ext
5977
if $ac_preproc_ok; then
5982
ac_cv_prog_CXXCPP=$CXXCPP
5985
CXXCPP=$ac_cv_prog_CXXCPP
5987
ac_cv_prog_CXXCPP=$CXXCPP
5989
echo "$as_me:$LINENO: result: $CXXCPP" >&5
5990
echo "${ECHO_T}$CXXCPP" >&6
5992
for ac_cxx_preproc_warn_flag in '' yes
5994
# Use a header file that comes with gcc, so configuring glibc
5995
# with a fresh cross-compiler works.
5996
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5997
# <limits.h> exists even on freestanding compilers.
5998
# On the NeXT, cc -E runs the code through the compiler's parser,
5999
# not just through cpp. "Syntax error" is here to catch this case.
6000
cat >conftest.$ac_ext <<_ACEOF
6003
cat confdefs.h >>conftest.$ac_ext
6004
cat >>conftest.$ac_ext <<_ACEOF
6005
/* end confdefs.h. */
6007
# include <limits.h>
6009
# include <assert.h>
6013
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6014
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6016
grep -v '^ *+' conftest.er1 >conftest.err
6018
cat conftest.err >&5
6019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020
(exit $ac_status); } >/dev/null; then
6021
if test -s conftest.err; then
6022
ac_cpp_err=$ac_cxx_preproc_warn_flag
6023
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6030
if test -z "$ac_cpp_err"; then
6033
echo "$as_me: failed program was:" >&5
6034
sed 's/^/| /' conftest.$ac_ext >&5
6036
# Broken: fails on valid input.
6039
rm -f conftest.err conftest.$ac_ext
6041
# OK, works on sane cases. Now check whether non-existent headers
6042
# can be detected and how.
6043
cat >conftest.$ac_ext <<_ACEOF
6046
cat confdefs.h >>conftest.$ac_ext
6047
cat >>conftest.$ac_ext <<_ACEOF
6048
/* end confdefs.h. */
6049
#include <ac_nonexistent.h>
6051
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6052
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6054
grep -v '^ *+' conftest.er1 >conftest.err
6056
cat conftest.err >&5
6057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058
(exit $ac_status); } >/dev/null; then
6059
if test -s conftest.err; then
6060
ac_cpp_err=$ac_cxx_preproc_warn_flag
6061
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6068
if test -z "$ac_cpp_err"; then
6069
# Broken: success on invalid input.
6072
echo "$as_me: failed program was:" >&5
6073
sed 's/^/| /' conftest.$ac_ext >&5
6075
# Passes both tests.
6079
rm -f conftest.err conftest.$ac_ext
6082
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6083
rm -f conftest.err conftest.$ac_ext
6084
if $ac_preproc_ok; then
6087
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6088
See \`config.log' for more details." >&5
6089
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6090
See \`config.log' for more details." >&2;}
6091
{ (exit 1); exit 1; }; }
6095
ac_cpp='$CXXCPP $CPPFLAGS'
6096
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6097
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6098
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6102
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6103
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6104
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6105
if test -n "$ac_tool_prefix"; then
6106
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6108
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6109
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6110
echo "$as_me:$LINENO: checking for $ac_word" >&5
6111
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6112
if test "${ac_cv_prog_F77+set}" = set; then
6113
echo $ECHO_N "(cached) $ECHO_C" >&6
6115
if test -n "$F77"; then
6116
ac_cv_prog_F77="$F77" # Let the user override the test.
6118
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122
test -z "$as_dir" && as_dir=.
6123
for ac_exec_ext in '' $ac_executable_extensions; do
6124
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6125
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6126
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6135
if test -n "$F77"; then
6136
echo "$as_me:$LINENO: result: $F77" >&5
6137
echo "${ECHO_T}$F77" >&6
6139
echo "$as_me:$LINENO: result: no" >&5
6140
echo "${ECHO_T}no" >&6
6143
test -n "$F77" && break
6146
if test -z "$F77"; then
6148
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6150
# Extract the first word of "$ac_prog", so it can be a program name with args.
6151
set dummy $ac_prog; ac_word=$2
6152
echo "$as_me:$LINENO: checking for $ac_word" >&5
6153
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6154
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6155
echo $ECHO_N "(cached) $ECHO_C" >&6
6157
if test -n "$ac_ct_F77"; then
6158
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6160
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164
test -z "$as_dir" && as_dir=.
6165
for ac_exec_ext in '' $ac_executable_extensions; do
6166
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6167
ac_cv_prog_ac_ct_F77="$ac_prog"
6168
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6176
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6177
if test -n "$ac_ct_F77"; then
6178
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6179
echo "${ECHO_T}$ac_ct_F77" >&6
6181
echo "$as_me:$LINENO: result: no" >&5
6182
echo "${ECHO_T}no" >&6
6185
test -n "$ac_ct_F77" && break
6192
# Provide some information about the compiler.
6193
echo "$as_me:6193:" \
6194
"checking for Fortran 77 compiler version" >&5
6195
ac_compiler=`set X $ac_compile; echo $2`
6196
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6197
(eval $ac_compiler --version </dev/null >&5) 2>&5
6199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200
(exit $ac_status); }
6201
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6202
(eval $ac_compiler -v </dev/null >&5) 2>&5
6204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205
(exit $ac_status); }
6206
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6207
(eval $ac_compiler -V </dev/null >&5) 2>&5
6209
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210
(exit $ac_status); }
6213
# If we don't use `.F' as extension, the preprocessor is not run on the
6214
# input file. (Note that this only needs to work for GNU compilers.)
6217
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6218
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6219
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6220
echo $ECHO_N "(cached) $ECHO_C" >&6
6222
cat >conftest.$ac_ext <<_ACEOF
6230
rm -f conftest.$ac_objext
6231
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6232
(eval $ac_compile) 2>conftest.er1
6234
grep -v '^ *+' conftest.er1 >conftest.err
6236
cat conftest.err >&5
6237
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238
(exit $ac_status); } &&
6239
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6240
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244
(exit $ac_status); }; } &&
6245
{ ac_try='test -s conftest.$ac_objext'
6246
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250
(exit $ac_status); }; }; then
6253
echo "$as_me: failed program was:" >&5
6254
sed 's/^/| /' conftest.$ac_ext >&5
6258
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6259
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6262
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6263
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6265
ac_test_FFLAGS=${FFLAGS+set}
6266
ac_save_FFLAGS=$FFLAGS
6268
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6269
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6270
if test "${ac_cv_prog_f77_g+set}" = set; then
6271
echo $ECHO_N "(cached) $ECHO_C" >&6
6274
cat >conftest.$ac_ext <<_ACEOF
6279
rm -f conftest.$ac_objext
6280
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6281
(eval $ac_compile) 2>conftest.er1
6283
grep -v '^ *+' conftest.er1 >conftest.err
6285
cat conftest.err >&5
6286
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287
(exit $ac_status); } &&
6288
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6289
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293
(exit $ac_status); }; } &&
6294
{ ac_try='test -s conftest.$ac_objext'
6295
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299
(exit $ac_status); }; }; then
6300
ac_cv_prog_f77_g=yes
6302
echo "$as_me: failed program was:" >&5
6303
sed 's/^/| /' conftest.$ac_ext >&5
6307
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6310
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6311
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6312
if test "$ac_test_FFLAGS" = set; then
6313
FFLAGS=$ac_save_FFLAGS
6314
elif test $ac_cv_prog_f77_g = yes; then
6315
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6321
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6328
G77=`test $ac_compiler_gnu = yes && echo yes`
6330
ac_cpp='$CPP $CPPFLAGS'
6331
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6332
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6333
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6337
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6339
# find the maximum length of command line arguments
6340
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6341
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6342
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6343
echo $ECHO_N "(cached) $ECHO_C" >&6
6350
# On DJGPP, this test can blow up pretty badly due to problems in libc
6351
# (any single argument exceeding 2000 bytes causes a buffer overrun
6352
# during glob expansion). Even if it were fixed, the result of this
6353
# check would be larger than it should be.
6354
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6358
# Under GNU Hurd, this test is not required because there is
6359
# no limit to the length of command line arguments.
6360
# Libtool will interpret -1 as no limit whatsoever
6361
lt_cv_sys_max_cmd_len=-1;
6365
# On Win9x/ME, this test blows up -- it succeeds, but takes
6366
# about 5 minutes as the teststring grows exponentially.
6367
# Worse, since 9x/ME are not pre-emptively multitasking,
6368
# you end up with a "frozen" computer, even though with patience
6369
# the test eventually succeeds (with a max line length of 256k).
6370
# Instead, let's just punt: use the minimum linelength reported by
6371
# all of the supported platforms: 8192 (on NT/2K/XP).
6372
lt_cv_sys_max_cmd_len=8192;
6376
# On AmigaOS with pdksh, this test takes hours, literally.
6377
# So we just punt and use a minimum line length of 8192.
6378
lt_cv_sys_max_cmd_len=8192;
6382
# If test is not a shell built-in, we'll probably end up computing a
6383
# maximum length that is only half of the actual maximum length, but
6385
while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
6386
= "XX$testring") >/dev/null 2>&1 &&
6387
new_result=`expr "X$testring" : ".*" 2>&1` &&
6388
lt_cv_sys_max_cmd_len=$new_result &&
6389
test $i != 17 # 1/2 MB should be enough
6392
testring=$testring$testring
6395
# Add a significant safety factor because C++ compilers can tack on massive
6396
# amounts of additional arguments before passing them to the linker.
6397
# It appears as though 1/2 is a usable value.
6398
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6404
if test -n $lt_cv_sys_max_cmd_len ; then
6405
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6406
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6408
echo "$as_me:$LINENO: result: none" >&5
6409
echo "${ECHO_T}none" >&6
6415
# Check for command to grab the raw symbol name followed by C symbol from nm.
6416
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6417
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6418
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6419
echo $ECHO_N "(cached) $ECHO_C" >&6
6422
# These are sane defaults that work on at least a few old systems.
6423
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6425
# Character class describing NM global symbol codes.
6426
symcode='[BCDEGRST]'
6428
# Regexp to match symbols that can be accessed directly from C.
6429
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6431
# Transform the above into a raw symbol and a C symbol.
6432
symxfrm='\1 \2\3 \3'
6434
# Transform an extracted symbol line into a proper C declaration
6435
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6437
# Transform an extracted symbol line into symbol name and symbol address
6438
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'"
6440
# Define system-specific variables.
6445
cygwin* | mingw* | pw32*)
6446
symcode='[ABCDGISTW]'
6448
hpux*) # Its linker distinguishes data from code symbols
6449
if test "$host_cpu" = ia64; then
6450
symcode='[ABCDEGRST]'
6452
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6453
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'"
6456
symcode='[BCDEGRST]'
6459
symcode='[BCDEGQRST]'
6469
# Handle CRLF in mingw tool chain
6473
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6477
# If we're using GNU nm, then use its standard symbol codes.
6478
case `$NM -V 2>&1` in
6479
*GNU* | *'with BFD'*)
6480
symcode='[ABCDGIRSTW]' ;;
6483
# Try without a prefix undercore, then with it.
6484
for ac_symprfx in "" "_"; do
6486
# Write the raw and C identifiers.
6487
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6489
# Check to see that the pipe works correctly.
6493
cat > conftest.$ac_ext <<EOF
6498
void nm_test_func(){}
6502
int main(){nm_test_var='a';nm_test_func();return(0);}
6505
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6506
(eval $ac_compile) 2>&5
6508
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509
(exit $ac_status); }; then
6510
# Now try to grab the symbols.
6512
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6513
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6515
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516
(exit $ac_status); } && test -s "$nlist"; then
6517
# Try sorting and uniquifying the output.
6518
if sort "$nlist" | uniq > "$nlist"T; then
6519
mv -f "$nlist"T "$nlist"
6524
# Make sure that we snagged all the symbols we need.
6525
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6526
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6527
cat <<EOF > conftest.$ac_ext
6533
# Now generate the symbol file.
6534
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6536
cat <<EOF >> conftest.$ac_ext
6537
#if defined (__STDC__) && __STDC__
6538
# define lt_ptr_t void *
6540
# define lt_ptr_t char *
6544
/* The mapping between symbol names and symbols. */
6549
lt_preloaded_symbols[] =
6552
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6553
cat <<\EOF >> conftest.$ac_ext
6561
# Now try linking the two files.
6562
mv conftest.$ac_objext conftstm.$ac_objext
6563
lt_save_LIBS="$LIBS"
6564
lt_save_CFLAGS="$CFLAGS"
6565
LIBS="conftstm.$ac_objext"
6566
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6567
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6568
(eval $ac_link) 2>&5
6570
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571
(exit $ac_status); } && test -s conftest${ac_exeext}; then
6574
LIBS="$lt_save_LIBS"
6575
CFLAGS="$lt_save_CFLAGS"
6577
echo "cannot find nm_test_func in $nlist" >&5
6580
echo "cannot find nm_test_var in $nlist" >&5
6583
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6586
echo "$progname: failed program was:" >&5
6587
cat conftest.$ac_ext >&5
6589
rm -f conftest* conftst*
6591
# Do not use the global_symbol_pipe unless it works.
6592
if test "$pipe_works" = yes; then
6595
lt_cv_sys_global_symbol_pipe=
6601
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6602
lt_cv_sys_global_symbol_to_cdecl=
6604
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6605
echo "$as_me:$LINENO: result: failed" >&5
6606
echo "${ECHO_T}failed" >&6
6608
echo "$as_me:$LINENO: result: ok" >&5
6609
echo "${ECHO_T}ok" >&6
6612
echo "$as_me:$LINENO: checking for objdir" >&5
6613
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6614
if test "${lt_cv_objdir+set}" = set; then
6615
echo $ECHO_N "(cached) $ECHO_C" >&6
6617
rm -f .libs 2>/dev/null
6618
mkdir .libs 2>/dev/null
6619
if test -d .libs; then
6622
# MS-DOS does not allow filenames that begin with a dot.
6625
rmdir .libs 2>/dev/null
6627
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6628
echo "${ECHO_T}$lt_cv_objdir" >&6
6629
objdir=$lt_cv_objdir
6637
# AIX sometimes has problems with the GCC collect2 program. For some
6638
# reason, if we set the COLLECT_NAMES environment variable, the problems
6639
# vanish in a puff of smoke.
6640
if test "X${COLLECT_NAMES+set}" != Xset; then
6642
export COLLECT_NAMES
6647
# Sed substitution that helps us do robust quoting. It backslashifies
6648
# metacharacters that are still active within double-quoted strings.
6649
Xsed='sed -e s/^X//'
6650
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6652
# Same as above, but do not quote variable references.
6653
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6655
# Sed substitution to delay expansion of an escaped shell variable in a
6656
# double_quote_subst'ed string.
6657
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6659
# Sed substitution to avoid accidental globbing in evaled expressions
6660
no_glob_subst='s/\*/\\\*/g'
6666
default_ofile=libtool
6667
can_build_shared=yes
6669
# All known linkers require a `.a' archive for static linking (except M$VC,
6670
# which needs '.lib').
6672
ltmain="$ac_aux_dir/ltmain.sh"
6673
ofile="$default_ofile"
6674
with_gnu_ld="$lt_cv_prog_gnu_ld"
6676
if test -n "$ac_tool_prefix"; then
6677
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6678
set dummy ${ac_tool_prefix}ar; ac_word=$2
6679
echo "$as_me:$LINENO: checking for $ac_word" >&5
6680
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6681
if test "${ac_cv_prog_AR+set}" = set; then
6682
echo $ECHO_N "(cached) $ECHO_C" >&6
6684
if test -n "$AR"; then
6685
ac_cv_prog_AR="$AR" # Let the user override the test.
6687
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691
test -z "$as_dir" && as_dir=.
6692
for ac_exec_ext in '' $ac_executable_extensions; do
6693
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6694
ac_cv_prog_AR="${ac_tool_prefix}ar"
6695
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6704
if test -n "$AR"; then
6705
echo "$as_me:$LINENO: result: $AR" >&5
6706
echo "${ECHO_T}$AR" >&6
6708
echo "$as_me:$LINENO: result: no" >&5
6709
echo "${ECHO_T}no" >&6
6713
if test -z "$ac_cv_prog_AR"; then
6715
# Extract the first word of "ar", so it can be a program name with args.
6716
set dummy ar; ac_word=$2
6717
echo "$as_me:$LINENO: checking for $ac_word" >&5
6718
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6719
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6720
echo $ECHO_N "(cached) $ECHO_C" >&6
6722
if test -n "$ac_ct_AR"; then
6723
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6725
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729
test -z "$as_dir" && as_dir=.
6730
for ac_exec_ext in '' $ac_executable_extensions; do
6731
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6732
ac_cv_prog_ac_ct_AR="ar"
6733
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6739
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6742
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6743
if test -n "$ac_ct_AR"; then
6744
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6745
echo "${ECHO_T}$ac_ct_AR" >&6
6747
echo "$as_me:$LINENO: result: no" >&5
6748
echo "${ECHO_T}no" >&6
6756
if test -n "$ac_tool_prefix"; then
6757
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6758
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6759
echo "$as_me:$LINENO: checking for $ac_word" >&5
6760
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6761
if test "${ac_cv_prog_RANLIB+set}" = set; then
6762
echo $ECHO_N "(cached) $ECHO_C" >&6
6764
if test -n "$RANLIB"; then
6765
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6767
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771
test -z "$as_dir" && as_dir=.
6772
for ac_exec_ext in '' $ac_executable_extensions; do
6773
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6774
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6775
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6783
RANLIB=$ac_cv_prog_RANLIB
6784
if test -n "$RANLIB"; then
6785
echo "$as_me:$LINENO: result: $RANLIB" >&5
6786
echo "${ECHO_T}$RANLIB" >&6
6788
echo "$as_me:$LINENO: result: no" >&5
6789
echo "${ECHO_T}no" >&6
6793
if test -z "$ac_cv_prog_RANLIB"; then
6794
ac_ct_RANLIB=$RANLIB
6795
# Extract the first word of "ranlib", so it can be a program name with args.
6796
set dummy ranlib; ac_word=$2
6797
echo "$as_me:$LINENO: checking for $ac_word" >&5
6798
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6799
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6800
echo $ECHO_N "(cached) $ECHO_C" >&6
6802
if test -n "$ac_ct_RANLIB"; then
6803
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6805
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809
test -z "$as_dir" && as_dir=.
6810
for ac_exec_ext in '' $ac_executable_extensions; do
6811
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6812
ac_cv_prog_ac_ct_RANLIB="ranlib"
6813
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6822
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6823
if test -n "$ac_ct_RANLIB"; then
6824
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6825
echo "${ECHO_T}$ac_ct_RANLIB" >&6
6827
echo "$as_me:$LINENO: result: no" >&5
6828
echo "${ECHO_T}no" >&6
6831
RANLIB=$ac_ct_RANLIB
6833
RANLIB="$ac_cv_prog_RANLIB"
6836
if test -n "$ac_tool_prefix"; then
6837
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6838
set dummy ${ac_tool_prefix}strip; ac_word=$2
6839
echo "$as_me:$LINENO: checking for $ac_word" >&5
6840
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6841
if test "${ac_cv_prog_STRIP+set}" = set; then
6842
echo $ECHO_N "(cached) $ECHO_C" >&6
6844
if test -n "$STRIP"; then
6845
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6847
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851
test -z "$as_dir" && as_dir=.
6852
for ac_exec_ext in '' $ac_executable_extensions; do
6853
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6854
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6855
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6863
STRIP=$ac_cv_prog_STRIP
6864
if test -n "$STRIP"; then
6865
echo "$as_me:$LINENO: result: $STRIP" >&5
6866
echo "${ECHO_T}$STRIP" >&6
6868
echo "$as_me:$LINENO: result: no" >&5
6869
echo "${ECHO_T}no" >&6
6873
if test -z "$ac_cv_prog_STRIP"; then
6875
# Extract the first word of "strip", so it can be a program name with args.
6876
set dummy strip; ac_word=$2
6877
echo "$as_me:$LINENO: checking for $ac_word" >&5
6878
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6879
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6880
echo $ECHO_N "(cached) $ECHO_C" >&6
6882
if test -n "$ac_ct_STRIP"; then
6883
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6885
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889
test -z "$as_dir" && as_dir=.
6890
for ac_exec_ext in '' $ac_executable_extensions; do
6891
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6892
ac_cv_prog_ac_ct_STRIP="strip"
6893
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6899
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6902
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6903
if test -n "$ac_ct_STRIP"; then
6904
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6905
echo "${ECHO_T}$ac_ct_STRIP" >&6
6907
echo "$as_me:$LINENO: result: no" >&5
6908
echo "${ECHO_T}no" >&6
6913
STRIP="$ac_cv_prog_STRIP"
6918
old_CFLAGS="$CFLAGS"
6920
# Set sane defaults for various variables
6921
test -z "$AR" && AR=ar
6922
test -z "$AR_FLAGS" && AR_FLAGS=cru
6923
test -z "$AS" && AS=as
6924
test -z "$CC" && CC=cc
6925
test -z "$LTCC" && LTCC=$CC
6926
test -z "$DLLTOOL" && DLLTOOL=dlltool
6927
test -z "$LD" && LD=ld
6928
test -z "$LN_S" && LN_S="ln -s"
6929
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6930
test -z "$NM" && NM=nm
6931
test -z "$SED" && SED=sed
6932
test -z "$OBJDUMP" && OBJDUMP=objdump
6933
test -z "$RANLIB" && RANLIB=:
6934
test -z "$STRIP" && STRIP=:
6935
test -z "$ac_objext" && ac_objext=o
6937
# Determine commands to create old-style static archives.
6938
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6939
old_postinstall_cmds='chmod 644 $oldlib'
6940
old_postuninstall_cmds=
6942
if test -n "$RANLIB"; then
6945
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6948
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6951
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6954
# Only perform the check for file, if the check method requires it
6955
case $deplibs_check_method in
6957
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6958
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6959
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6960
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6961
echo $ECHO_N "(cached) $ECHO_C" >&6
6965
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6968
lt_save_MAGIC_CMD="$MAGIC_CMD"
6969
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6970
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6971
for ac_dir in $ac_dummy; do
6973
test -z "$ac_dir" && ac_dir=.
6974
if test -f $ac_dir/${ac_tool_prefix}file; then
6975
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6976
if test -n "$file_magic_test_file"; then
6977
case $deplibs_check_method in
6979
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6980
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6981
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6982
$EGREP "$file_magic_regex" > /dev/null; then
6987
*** Warning: the command libtool uses to detect shared libraries,
6988
*** $file_magic_cmd, produces output that libtool cannot recognize.
6989
*** The result is that libtool may fail to recognize shared libraries
6990
*** as such. This will affect the creation of libtool libraries that
6991
*** depend on shared libraries, but programs linked with such libtool
6992
*** libraries will work regardless of this problem. Nevertheless, you
6993
*** may want to report the problem to your system manager and/or to
6994
*** bug-libtool@gnu.org
7004
MAGIC_CMD="$lt_save_MAGIC_CMD"
7009
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7010
if test -n "$MAGIC_CMD"; then
7011
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7012
echo "${ECHO_T}$MAGIC_CMD" >&6
7014
echo "$as_me:$LINENO: result: no" >&5
7015
echo "${ECHO_T}no" >&6
7018
if test -z "$lt_cv_path_MAGIC_CMD"; then
7019
if test -n "$ac_tool_prefix"; then
7020
echo "$as_me:$LINENO: checking for file" >&5
7021
echo $ECHO_N "checking for file... $ECHO_C" >&6
7022
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7023
echo $ECHO_N "(cached) $ECHO_C" >&6
7027
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7030
lt_save_MAGIC_CMD="$MAGIC_CMD"
7031
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7032
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7033
for ac_dir in $ac_dummy; do
7035
test -z "$ac_dir" && ac_dir=.
7036
if test -f $ac_dir/file; then
7037
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7038
if test -n "$file_magic_test_file"; then
7039
case $deplibs_check_method in
7041
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7042
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7043
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7044
$EGREP "$file_magic_regex" > /dev/null; then
7049
*** Warning: the command libtool uses to detect shared libraries,
7050
*** $file_magic_cmd, produces output that libtool cannot recognize.
7051
*** The result is that libtool may fail to recognize shared libraries
7052
*** as such. This will affect the creation of libtool libraries that
7053
*** depend on shared libraries, but programs linked with such libtool
7054
*** libraries will work regardless of this problem. Nevertheless, you
7055
*** may want to report the problem to your system manager and/or to
7056
*** bug-libtool@gnu.org
7066
MAGIC_CMD="$lt_save_MAGIC_CMD"
7071
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7072
if test -n "$MAGIC_CMD"; then
7073
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7074
echo "${ECHO_T}$MAGIC_CMD" >&6
7076
echo "$as_me:$LINENO: result: no" >&5
7077
echo "${ECHO_T}no" >&6
7092
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7093
if test "${enable_libtool_lock+set}" = set; then
7094
enableval="$enable_libtool_lock"
7097
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7100
# Check whether --with-pic or --without-pic was given.
7101
if test "${with_pic+set}" = set; then
7107
test -z "$pic_mode" && pic_mode=default
7109
# Use C for the default configuration in the libtool script
7113
ac_cpp='$CPP $CPPFLAGS'
7114
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7115
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7116
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7119
# Source file extension for C test sources.
7122
# Object file extension for compiled C test sources.
7126
# Code to be used in simple compile tests
7127
lt_simple_compile_test_code="int some_variable = 0;\n"
7129
# Code to be used in simple link tests
7130
lt_simple_link_test_code='int main(){return(0);}\n'
7133
# If no C compiler was specified, use CC.
7136
# Allow CC to be a program name with arguments.
7141
# Check for any special shared library compilation flags.
7144
if test "$GCC" = no; then
7147
lt_prog_cc_shlib='-belf'
7151
if test -n "$lt_prog_cc_shlib"; then
7152
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7153
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7154
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7156
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7157
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7158
lt_cv_prog_cc_can_build_shared=no
7164
# Check to make sure the static flag actually works.
7166
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7167
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7168
if test "${lt_prog_compiler_static_works+set}" = set; then
7169
echo $ECHO_N "(cached) $ECHO_C" >&6
7171
lt_prog_compiler_static_works=no
7172
save_LDFLAGS="$LDFLAGS"
7173
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7174
printf "$lt_simple_link_test_code" > conftest.$ac_ext
7175
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7176
# The compiler can only warn and ignore the option if not recognized
7177
# So say no if there are warnings
7178
if test -s conftest.err; then
7179
# Append any errors to the config.log.
7180
cat conftest.err 1>&5
7182
lt_prog_compiler_static_works=yes
7186
LDFLAGS="$save_LDFLAGS"
7189
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7190
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7192
if test x"$lt_prog_compiler_static_works" = xyes; then
7195
lt_prog_compiler_static=
7201
lt_prog_compiler_no_builtin_flag=
7203
if test "$GCC" = yes; then
7204
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7207
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7208
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7209
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7210
echo $ECHO_N "(cached) $ECHO_C" >&6
7212
lt_cv_prog_compiler_rtti_exceptions=no
7213
ac_outfile=conftest.$ac_objext
7214
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7215
lt_compiler_flag="-fno-rtti -fno-exceptions"
7216
# Insert the option either (1) after the last *FLAGS variable, or
7217
# (2) before a word containing "conftest.", or (3) at the end.
7218
# Note that $ac_compile itself does not contain backslashes and begins
7219
# with a dollar sign (not a hyphen), so the echo should work correctly.
7220
# The option is referenced via a variable to avoid confusing sed.
7221
lt_compile=`echo "$ac_compile" | $SED \
7222
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7223
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7224
-e 's:$: $lt_compiler_flag:'`
7225
(eval echo "\"\$as_me:7225: $lt_compile\"" >&5)
7226
(eval "$lt_compile" 2>conftest.err)
7228
cat conftest.err >&5
7229
echo "$as_me:7229: \$? = $ac_status" >&5
7230
if (exit $ac_status) && test -s "$ac_outfile"; then
7231
# The compiler can only warn and ignore the option if not recognized
7232
# So say no if there are warnings
7233
if test ! -s conftest.err; then
7234
lt_cv_prog_compiler_rtti_exceptions=yes
7240
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7241
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7243
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7244
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7251
lt_prog_compiler_wl=
7252
lt_prog_compiler_pic=
7253
lt_prog_compiler_static=
7255
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7256
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7258
if test "$GCC" = yes; then
7259
lt_prog_compiler_wl='-Wl,'
7260
lt_prog_compiler_static='-static'
7264
# All AIX code is PIC.
7265
if test "$host_cpu" = ia64; then
7266
# AIX 5 now supports IA64 processor
7267
lt_prog_compiler_static='-Bstatic'
7272
# FIXME: we need at least 68020 code to build shared libraries, but
7273
# adding the `-m68020' flag to GCC prevents building anything better,
7275
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7278
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7279
# PIC is the default for these OSes.
7282
mingw* | pw32* | os2*)
7283
# This hack is so that the source file can tell whether it is being
7284
# built for inclusion in a dll (and should export symbols for example).
7285
lt_prog_compiler_pic='-DDLL_EXPORT'
7288
darwin* | rhapsody*)
7289
# PIC is the default on this platform
7290
# Common symbols not allowed in MH_DYLIB files
7291
lt_prog_compiler_pic='-fno-common'
7295
# Just because we use GCC doesn't mean we suddenly get shared libraries
7296
# on systems that don't support them.
7297
lt_prog_compiler_can_build_shared=no
7302
if test -d /usr/nec; then
7303
lt_prog_compiler_pic=-Kconform_pic
7308
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7315
lt_prog_compiler_pic='-fPIC'
7321
lt_prog_compiler_pic='-fPIC'
7325
# PORTME Check for flag to pass linker flags through the system compiler.
7328
lt_prog_compiler_wl='-Wl,'
7329
if test "$host_cpu" = ia64; then
7330
# AIX 5 now supports IA64 processor
7331
lt_prog_compiler_static='-Bstatic'
7333
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7337
mingw* | pw32* | os2*)
7338
# This hack is so that the source file can tell whether it is being
7339
# built for inclusion in a dll (and should export symbols for example).
7340
lt_prog_compiler_pic='-DDLL_EXPORT'
7343
hpux9* | hpux10* | hpux11*)
7344
lt_prog_compiler_wl='-Wl,'
7345
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7352
lt_prog_compiler_pic='+Z'
7355
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7356
lt_prog_compiler_static='${wl}-a ${wl}archive'
7359
irix5* | irix6* | nonstopux*)
7360
lt_prog_compiler_wl='-Wl,'
7361
# PIC (with -KPIC) is the default.
7362
lt_prog_compiler_static='-non_shared'
7366
lt_prog_compiler_pic='-KPIC'
7367
lt_prog_compiler_static='-Bstatic'
7373
lt_prog_compiler_wl='-Wl,'
7374
lt_prog_compiler_pic='-KPIC'
7375
lt_prog_compiler_static='-static'
7378
lt_prog_compiler_wl='-Wl,'
7379
# All Alpha code is PIC.
7380
lt_prog_compiler_static='-non_shared'
7385
osf3* | osf4* | osf5*)
7386
lt_prog_compiler_wl='-Wl,'
7387
# All OSF/1 code is PIC.
7388
lt_prog_compiler_static='-non_shared'
7392
lt_prog_compiler_pic='-Kpic'
7393
lt_prog_compiler_static='-dn'
7397
lt_prog_compiler_wl='-Wl,'
7398
lt_prog_compiler_pic='-KPIC'
7399
lt_prog_compiler_static='-Bstatic'
7403
lt_prog_compiler_wl='-Qoption ld '
7404
lt_prog_compiler_pic='-PIC'
7405
lt_prog_compiler_static='-Bstatic'
7408
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7409
lt_prog_compiler_wl='-Wl,'
7410
lt_prog_compiler_pic='-KPIC'
7411
lt_prog_compiler_static='-Bstatic'
7415
if test -d /usr/nec ;then
7416
lt_prog_compiler_pic='-Kconform_pic'
7417
lt_prog_compiler_static='-Bstatic'
7422
lt_prog_compiler_pic='-pic'
7423
lt_prog_compiler_static='-Bstatic'
7427
lt_prog_compiler_can_build_shared=no
7432
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7433
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7436
# Check to make sure the PIC flag actually works.
7438
if test -n "$lt_prog_compiler_pic"; then
7440
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7441
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7442
if test "${lt_prog_compiler_pic_works+set}" = set; then
7443
echo $ECHO_N "(cached) $ECHO_C" >&6
7445
lt_prog_compiler_pic_works=no
7446
ac_outfile=conftest.$ac_objext
7447
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7448
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7449
# Insert the option either (1) after the last *FLAGS variable, or
7450
# (2) before a word containing "conftest.", or (3) at the end.
7451
# Note that $ac_compile itself does not contain backslashes and begins
7452
# with a dollar sign (not a hyphen), so the echo should work correctly.
7453
# The option is referenced via a variable to avoid confusing sed.
7454
lt_compile=`echo "$ac_compile" | $SED \
7455
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7456
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7457
-e 's:$: $lt_compiler_flag:'`
7458
(eval echo "\"\$as_me:7458: $lt_compile\"" >&5)
7459
(eval "$lt_compile" 2>conftest.err)
7461
cat conftest.err >&5
7462
echo "$as_me:7462: \$? = $ac_status" >&5
7463
if (exit $ac_status) && test -s "$ac_outfile"; then
7464
# The compiler can only warn and ignore the option if not recognized
7465
# So say no if there are warnings
7466
if test ! -s conftest.err; then
7467
lt_prog_compiler_pic_works=yes
7473
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7474
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7476
if test x"$lt_prog_compiler_pic_works" = xyes; then
7477
case $lt_prog_compiler_pic in
7479
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7482
lt_prog_compiler_pic=
7483
lt_prog_compiler_can_build_shared=no
7488
# For platforms which do not support PIC, -DPIC is meaningless:
7490
lt_prog_compiler_pic=
7493
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7497
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7498
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7499
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7500
echo $ECHO_N "(cached) $ECHO_C" >&6
7502
lt_cv_prog_compiler_c_o=no
7503
$rm -r conftest 2>/dev/null
7507
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7509
lt_compiler_flag="-o out/conftest2.$ac_objext"
7510
# Insert the option either (1) after the last *FLAGS variable, or
7511
# (2) before a word containing "conftest.", or (3) at the end.
7512
# Note that $ac_compile itself does not contain backslashes and begins
7513
# with a dollar sign (not a hyphen), so the echo should work correctly.
7514
lt_compile=`echo "$ac_compile" | $SED \
7515
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7516
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7517
-e 's:$: $lt_compiler_flag:'`
7518
(eval echo "\"\$as_me:7518: $lt_compile\"" >&5)
7519
(eval "$lt_compile" 2>out/conftest.err)
7521
cat out/conftest.err >&5
7522
echo "$as_me:7522: \$? = $ac_status" >&5
7523
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7525
# The compiler can only warn and ignore the option if not recognized
7526
# So say no if there are warnings
7527
if test ! -s out/conftest.err; then
7528
lt_cv_prog_compiler_c_o=yes
7533
# SGI C++ compiler will create directory out/ii_files/ for
7534
# template instantiation
7535
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7536
$rm out/* && rmdir out
7542
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7543
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7546
hard_links="nottested"
7547
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7548
# do not overwrite the value of need_locks provided by the user
7549
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7550
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7553
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7555
ln conftest.a conftest.b 2>&5 || hard_links=no
7556
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7557
echo "$as_me:$LINENO: result: $hard_links" >&5
7558
echo "${ECHO_T}$hard_links" >&6
7559
if test "$hard_links" = no; then
7560
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7561
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7568
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7569
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7572
allow_undefined_flag=
7573
enable_shared_with_static_runtimes=no
7575
archive_expsym_cmds=
7576
old_archive_From_new_cmds=
7577
old_archive_from_expsyms_cmds=
7578
export_dynamic_flag_spec=
7579
whole_archive_flag_spec=
7580
thread_safe_flag_spec=
7581
hardcode_libdir_flag_spec=
7582
hardcode_libdir_flag_spec_ld=
7583
hardcode_libdir_separator=
7586
hardcode_shlibpath_var=unsupported
7587
link_all_deplibs=unknown
7588
hardcode_automatic=no
7591
always_export_symbols=no
7592
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7593
# include_expsyms should be a list of space-separated symbols to be *always*
7594
# included in the symbol list
7596
# exclude_expsyms can be an extended regexp of symbols to exclude
7597
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7598
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7599
# as well as any symbol that contains `d'.
7600
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7601
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7602
# platforms (ab)use it in PIC code, but their linkers get confused if
7603
# the symbol is explicitly referenced. Since portable code cannot
7604
# rely on this symbol name, it's probably fine to never include it in
7605
# preloaded symbol tables.
7606
extract_expsyms_cmds=
7609
cygwin* | mingw* | pw32*)
7610
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7611
# When not using gcc, we currently assume that we are using
7612
# Microsoft Visual C++.
7613
if test "$GCC" != yes; then
7623
if test "$with_gnu_ld" = yes; then
7624
# If archive_cmds runs LD, not CC, wlarc should be empty
7627
# See if GNU ld supports shared libraries.
7629
aix3* | aix4* | aix5*)
7630
# On AIX/PPC, the GNU linker is very broken
7631
if test "$host_cpu" != ia64; then
7635
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7636
*** to be unable to reliably create shared libraries on AIX.
7637
*** Therefore, libtool is disabling shared libraries support. If you
7638
*** really care for shared libraries, you may want to modify your PATH
7639
*** so that a non-GNU linker is found, and then restart.
7646
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)'
7647
hardcode_libdir_flag_spec='-L$libdir'
7648
hardcode_minus_L=yes
7650
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7651
# that the semantics of dynamic libraries on AmigaOS, at least up
7652
# to version 4, is to share data among multiple programs linked
7653
# with the same dynamic library. Since this doesn't match the
7654
# behavior of shared libraries on other platforms, we can't use
7660
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7661
allow_undefined_flag=unsupported
7662
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7663
# support --undefined. This deserves some investigation. FIXME
7664
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7670
cygwin* | mingw* | pw32*)
7671
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7672
# as there is no search path for DLLs.
7673
hardcode_libdir_flag_spec='-L$libdir'
7674
allow_undefined_flag=unsupported
7675
always_export_symbols=no
7676
enable_shared_with_static_runtimes=yes
7677
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7679
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7680
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7681
# If the export-symbols file already is a .def file (1st line
7682
# is EXPORTS), use it as is; otherwise, prepend...
7683
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7684
cp $export_symbols $output_objdir/$soname.def;
7686
echo EXPORTS > $output_objdir/$soname.def;
7687
cat $export_symbols >> $output_objdir/$soname.def;
7689
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7695
netbsd* | knetbsd*-gnu)
7696
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7697
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7700
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7701
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7706
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7710
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7711
*** create shared libraries on Solaris systems. Therefore, libtool
7712
*** is disabling shared libraries support. We urge you to upgrade GNU
7713
*** binutils to release 2.9.1 or newer. Another option is to modify
7714
*** your PATH or compiler configuration so that the native linker is
7715
*** used, and then restart.
7718
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7719
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7720
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7727
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7730
hardcode_shlibpath_var=no
7734
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7735
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7736
archive_cmds="$tmp_archive_cmds"
7737
supports_anon_versioning=no
7738
case `$LD -v 2>/dev/null` in
7739
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7740
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7741
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7742
*\ 2.11.*) ;; # other 2.11 versions
7743
*) supports_anon_versioning=yes ;;
7745
if test $supports_anon_versioning = yes; then
7746
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7747
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7748
$echo "local: *; };" >> $output_objdir/$libname.ver~
7749
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7751
archive_expsym_cmds="$tmp_archive_cmds"
7759
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7760
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7761
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7768
if test "$ld_shlibs" = yes; then
7769
runpath_var=LD_RUN_PATH
7770
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7771
export_dynamic_flag_spec='${wl}--export-dynamic'
7772
# ancient GNU ld didn't support --whole-archive et. al.
7773
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7774
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7776
whole_archive_flag_spec=
7780
# PORTME fill in a description of your system's linker (not GNU ld)
7783
allow_undefined_flag=unsupported
7784
always_export_symbols=yes
7785
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'
7786
# Note: this linker hardcodes the directories in LIBPATH if there
7787
# are no directories specified by -L.
7788
hardcode_minus_L=yes
7789
if test "$GCC" = yes && test -z "$link_static_flag"; then
7790
# Neither direct hardcoding nor static linking is supported with a
7792
hardcode_direct=unsupported
7797
if test "$host_cpu" = ia64; then
7798
# On IA64, the linker does run time linking by default, so we don't
7799
# have to do anything special.
7800
aix_use_runtimelinking=no
7801
exp_sym_flag='-Bexport'
7804
# If we're using GNU nm, then we don't want the "-C" option.
7805
# -C means demangle to AIX nm, but means don't demangle with GNU nm
7806
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7807
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'
7809
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'
7811
aix_use_runtimelinking=no
7813
# Test if we are trying to use run time linking or normal
7814
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7815
# need to do runtime linking.
7816
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7817
for ld_flag in $LDFLAGS; do
7818
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7819
aix_use_runtimelinking=yes
7825
exp_sym_flag='-bexport'
7826
no_entry_flag='-bnoentry'
7829
# When large executables or shared objects are built, AIX ld can
7830
# have problems creating the table of contents. If linking a library
7831
# or program results in "error TOC overflow" add -mminimal-toc to
7832
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7833
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7837
hardcode_libdir_separator=':'
7838
link_all_deplibs=yes
7840
if test "$GCC" = yes; then
7841
case $host_os in aix4.012|aix4.012.*)
7842
# We only want to do this on AIX 4.2 and lower, the check
7843
# below for broken collect2 doesn't work under 4.3+
7844
collect2name=`${CC} -print-prog-name=collect2`
7845
if test -f "$collect2name" && \
7846
strings "$collect2name" | grep resolve_lib_name >/dev/null
7848
# We have reworked collect2
7851
# We have old collect2
7852
hardcode_direct=unsupported
7853
# It fails to find uninstalled libraries when the uninstalled
7854
# path is not listed in the libpath. Setting hardcode_minus_L
7855
# to unsupported forces relinking
7856
hardcode_minus_L=yes
7857
hardcode_libdir_flag_spec='-L$libdir'
7858
hardcode_libdir_separator=
7861
shared_flag='-shared'
7864
if test "$host_cpu" = ia64; then
7865
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7866
# chokes on -Wl,-G. The following line is correct:
7869
if test "$aix_use_runtimelinking" = yes; then
7870
shared_flag='${wl}-G'
7872
shared_flag='${wl}-bM:SRE'
7877
# It seems that -bexpall does not export symbols beginning with
7878
# underscore (_), so it is better to generate a list of symbols to export.
7879
always_export_symbols=yes
7880
if test "$aix_use_runtimelinking" = yes; then
7881
# Warning - without using the other runtime loading flags (-brtl),
7882
# -berok will link without error, but may produce a broken library.
7883
allow_undefined_flag='-berok'
7884
# Determine the default libpath from the value encoded in an empty executable.
7885
cat >conftest.$ac_ext <<_ACEOF
7888
cat confdefs.h >>conftest.$ac_ext
7889
cat >>conftest.$ac_ext <<_ACEOF
7890
/* end confdefs.h. */
7900
rm -f conftest.$ac_objext conftest$ac_exeext
7901
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7902
(eval $ac_link) 2>conftest.er1
7904
grep -v '^ *+' conftest.er1 >conftest.err
7906
cat conftest.err >&5
7907
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908
(exit $ac_status); } &&
7909
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7910
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914
(exit $ac_status); }; } &&
7915
{ ac_try='test -s conftest$ac_exeext'
7916
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920
(exit $ac_status); }; }; then
7922
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7924
# Check for a 64-bit object if we didn't find anything.
7925
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; }
7928
echo "$as_me: failed program was:" >&5
7929
sed 's/^/| /' conftest.$ac_ext >&5
7932
rm -f conftest.err conftest.$ac_objext \
7933
conftest$ac_exeext conftest.$ac_ext
7934
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7936
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7937
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"
7939
if test "$host_cpu" = ia64; then
7940
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7941
allow_undefined_flag="-z nodefs"
7942
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"
7944
# Determine the default libpath from the value encoded in an empty executable.
7945
cat >conftest.$ac_ext <<_ACEOF
7948
cat confdefs.h >>conftest.$ac_ext
7949
cat >>conftest.$ac_ext <<_ACEOF
7950
/* end confdefs.h. */
7960
rm -f conftest.$ac_objext conftest$ac_exeext
7961
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7962
(eval $ac_link) 2>conftest.er1
7964
grep -v '^ *+' conftest.er1 >conftest.err
7966
cat conftest.err >&5
7967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968
(exit $ac_status); } &&
7969
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7970
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974
(exit $ac_status); }; } &&
7975
{ ac_try='test -s conftest$ac_exeext'
7976
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980
(exit $ac_status); }; }; then
7982
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7984
# Check for a 64-bit object if we didn't find anything.
7985
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; }
7988
echo "$as_me: failed program was:" >&5
7989
sed 's/^/| /' conftest.$ac_ext >&5
7992
rm -f conftest.err conftest.$ac_objext \
7993
conftest$ac_exeext conftest.$ac_ext
7994
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7996
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7997
# Warning - without using the other run time loading flags,
7998
# -berok will link without error, but may produce a broken library.
7999
no_undefined_flag=' ${wl}-bernotok'
8000
allow_undefined_flag=' ${wl}-berok'
8001
# -bexpall does not export symbols beginning with underscore (_)
8002
always_export_symbols=yes
8003
# Exported symbols can be pulled into shared objects from archives
8004
whole_archive_flag_spec=' '
8005
archive_cmds_need_lc=yes
8006
# This is similar to how AIX traditionally builds it's shared libraries.
8007
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'
8013
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)'
8014
hardcode_libdir_flag_spec='-L$libdir'
8015
hardcode_minus_L=yes
8016
# see comment about different semantics on the GNU ld section
8021
export_dynamic_flag_spec=-rdynamic
8024
cygwin* | mingw* | pw32*)
8025
# When not using gcc, we currently assume that we are using
8026
# Microsoft Visual C++.
8027
# hardcode_libdir_flag_spec is actually meaningless, as there is
8028
# no search path for DLLs.
8029
hardcode_libdir_flag_spec=' '
8030
allow_undefined_flag=unsupported
8031
# Tell ltmain to make .lib files, not .a files.
8033
# Tell ltmain to make .dll files, not .so files.
8035
# FIXME: Setting linknames here is a bad hack.
8036
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8037
# The linker will automatically build a .lib file if we build a DLL.
8038
old_archive_From_new_cmds='true'
8039
# FIXME: Should let the user specify the lib program.
8040
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8041
fix_srcfile_path='`cygpath -w "$srcfile"`'
8042
enable_shared_with_static_runtimes=yes
8045
darwin* | rhapsody*)
8046
if test "$GXX" = yes ; then
8047
archive_cmds_need_lc=no
8049
rhapsody* | darwin1.[012])
8050
allow_undefined_flag='-undefined suppress'
8053
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8054
allow_undefined_flag='-flat_namespace -undefined suppress'
8056
case ${MACOSX_DEPLOYMENT_TARGET} in
8058
allow_undefined_flag='-flat_namespace -undefined suppress'
8061
allow_undefined_flag='-undefined dynamic_lookup'
8067
lt_int_apple_cc_single_mod=no
8068
output_verbose_link_cmd='echo'
8069
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8070
lt_int_apple_cc_single_mod=yes
8072
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8073
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8075
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'
8077
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8078
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8079
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8080
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}'
8082
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}'
8084
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8086
hardcode_automatic=yes
8087
hardcode_shlibpath_var=unsupported
8088
whole_archive_flag_spec='-all_load $convenience'
8089
link_all_deplibs=yes
8096
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8097
hardcode_libdir_flag_spec='-L$libdir'
8098
hardcode_shlibpath_var=no
8105
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8106
# support. Future versions do this automatically, but an explicit c++rt0.o
8107
# does not break anything, and helps significantly (at the cost of a little
8110
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8111
hardcode_libdir_flag_spec='-R$libdir'
8113
hardcode_shlibpath_var=no
8116
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8118
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8120
hardcode_minus_L=yes
8121
hardcode_shlibpath_var=no
8124
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8125
freebsd* | kfreebsd*-gnu)
8126
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8127
hardcode_libdir_flag_spec='-R$libdir'
8129
hardcode_shlibpath_var=no
8133
if test "$GCC" = yes; then
8134
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'
8136
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'
8138
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8139
hardcode_libdir_separator=:
8142
# hardcode_minus_L: Not really in the search PATH,
8143
# but as the default location of the library.
8144
hardcode_minus_L=yes
8145
export_dynamic_flag_spec='${wl}-E'
8149
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8152
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8155
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8161
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8164
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8168
if test "$with_gnu_ld" = no; then
8171
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8172
hardcode_libdir_flag_spec_ld='+b $libdir'
8173
hardcode_libdir_separator=:
8175
hardcode_shlibpath_var=no
8178
hardcode_libdir_flag_spec='-L$libdir'
8180
hardcode_shlibpath_var=no
8182
# hardcode_minus_L: Not really in the search PATH,
8183
# but as the default location of the library.
8184
hardcode_minus_L=yes
8187
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8188
hardcode_libdir_separator=:
8190
export_dynamic_flag_spec='${wl}-E'
8192
# hardcode_minus_L: Not really in the search PATH,
8193
# but as the default location of the library.
8194
hardcode_minus_L=yes
8200
irix5* | irix6* | nonstopux*)
8201
if test "$GCC" = yes; then
8202
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'
8204
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'
8205
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8207
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8208
hardcode_libdir_separator=:
8209
link_all_deplibs=yes
8212
netbsd* | knetbsd*-gnu)
8213
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8214
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8216
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8218
hardcode_libdir_flag_spec='-R$libdir'
8220
hardcode_shlibpath_var=no
8224
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8226
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8227
hardcode_libdir_separator=:
8228
hardcode_shlibpath_var=no
8233
hardcode_shlibpath_var=no
8234
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8235
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8236
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8237
export_dynamic_flag_spec='${wl}-E'
8240
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8241
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8242
hardcode_libdir_flag_spec='-R$libdir'
8245
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8246
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8253
hardcode_libdir_flag_spec='-L$libdir'
8254
hardcode_minus_L=yes
8255
allow_undefined_flag=unsupported
8256
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'
8257
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8261
if test "$GCC" = yes; then
8262
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8263
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'
8265
allow_undefined_flag=' -expect_unresolved \*'
8266
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'
8268
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8269
hardcode_libdir_separator=:
8272
osf4* | osf5*) # as osf3* with the addition of -msym flag
8273
if test "$GCC" = yes; then
8274
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8275
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'
8276
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8278
allow_undefined_flag=' -expect_unresolved \*'
8279
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'
8280
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8281
$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'
8283
# Both c and cxx compiler support -rpath directly
8284
hardcode_libdir_flag_spec='-rpath $libdir'
8286
hardcode_libdir_separator=:
8290
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8291
hardcode_shlibpath_var=no
8292
export_dynamic_flag_spec='${wl}-Bexport'
8293
runpath_var=LD_RUN_PATH
8294
hardcode_runpath_var=yes
8298
no_undefined_flag=' -z text'
8299
if test "$GCC" = yes; then
8300
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8301
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8302
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8304
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8305
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8306
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8308
hardcode_libdir_flag_spec='-R$libdir'
8309
hardcode_shlibpath_var=no
8311
solaris2.[0-5] | solaris2.[0-5].*) ;;
8312
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
8313
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8315
link_all_deplibs=yes
8319
if test "x$host_vendor" = xsequent; then
8320
# Use $CC to link under sequent, because it throws in some extra .o
8321
# files that make .init and .fini sections work.
8322
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8324
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8326
hardcode_libdir_flag_spec='-L$libdir'
8328
hardcode_minus_L=yes
8329
hardcode_shlibpath_var=no
8333
case $host_vendor in
8335
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8336
hardcode_direct=yes # is this really true???
8339
## LD is ld it makes a PLAMLIB
8340
## CC just makes a GrossModule.
8341
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8342
reload_cmds='$CC -r -o $output$reload_objs'
8346
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8347
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8350
runpath_var='LD_RUN_PATH'
8351
hardcode_shlibpath_var=no
8355
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8356
hardcode_shlibpath_var=no
8357
export_dynamic_flag_spec='-Bexport'
8361
if test -d /usr/nec; then
8362
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8363
hardcode_shlibpath_var=no
8364
runpath_var=LD_RUN_PATH
8365
hardcode_runpath_var=yes
8371
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8374
hardcode_shlibpath_var=no
8375
hardcode_runpath_var=yes
8376
runpath_var=LD_RUN_PATH
8379
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8380
no_undefined_flag='${wl}-z ${wl}text'
8381
if test "$GCC" = yes; then
8382
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8384
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8386
runpath_var='LD_RUN_PATH'
8387
hardcode_shlibpath_var=no
8391
no_undefined_flag=' -z text'
8392
# $CC -shared without GNU ld will not create a library from C++
8393
# object files and a static libstdc++, better avoid it by now
8394
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8395
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8396
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8397
hardcode_libdir_flag_spec=
8398
hardcode_shlibpath_var=no
8399
runpath_var='LD_RUN_PATH'
8403
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8404
hardcode_libdir_flag_spec='-L$libdir'
8405
hardcode_shlibpath_var=no
8414
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8415
echo "${ECHO_T}$ld_shlibs" >&6
8416
test "$ld_shlibs" = no && can_build_shared=no
8418
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8419
if test "$GCC" = yes; then
8420
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8424
# Do we need to explicitly link libc?
8426
case "x$archive_cmds_need_lc" in
8428
# Assume -lc should be added
8429
archive_cmds_need_lc=yes
8431
if test "$enable_shared" = yes && test "$GCC" = yes; then
8432
case $archive_cmds in
8434
# FIXME: we may have to deal with multi-command sequences.
8437
# Test whether the compiler implicitly links with -lc since on some
8438
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8439
# to ld, don't add -lc before -lgcc.
8440
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8441
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8443
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8445
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8446
(eval $ac_compile) 2>&5
8448
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449
(exit $ac_status); } 2>conftest.err; then
8452
libobjs=conftest.$ac_objext
8454
wl=$lt_prog_compiler_wl
8460
lt_save_allow_undefined_flag=$allow_undefined_flag
8461
allow_undefined_flag=
8462
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8463
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8465
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466
(exit $ac_status); }
8468
archive_cmds_need_lc=no
8470
archive_cmds_need_lc=yes
8472
allow_undefined_flag=$lt_save_allow_undefined_flag
8474
cat conftest.err 1>&5
8477
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8478
echo "${ECHO_T}$archive_cmds_need_lc" >&6
8485
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8486
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8488
libname_spec='lib$name'
8496
shlibpath_overrides_runpath=unknown
8498
dynamic_linker="$host_os ld.so"
8499
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8500
if test "$GCC" = yes; then
8501
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8502
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8503
# if the path contains ";" then we assume it to be the separator
8504
# otherwise default to the standard path separator (i.e. ":") - it is
8505
# assumed that no part of a normal pathname contains ";" but that should
8506
# okay in the real world where ";" in dirpaths is itself problematic.
8507
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8509
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8512
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8514
need_lib_prefix=unknown
8515
hardcode_into_libs=no
8517
# when you set need_version to no, make sure it does not cause -set_version
8518
# flags to be left without arguments
8519
need_version=unknown
8524
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8525
shlibpath_var=LIBPATH
8527
# AIX 3 has no versioning support, so we append a major version to the name.
8528
soname_spec='${libname}${release}${shared_ext}$major'
8535
hardcode_into_libs=yes
8536
if test "$host_cpu" = ia64; then
8537
# AIX 5 supports IA64
8538
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8539
shlibpath_var=LD_LIBRARY_PATH
8541
# With GCC up to 2.95.x, collect2 would create an import file
8542
# for dependence libraries. The import file would start with
8543
# the line `#! .'. This would cause the generated library to
8544
# depend on `.', always an invalid library. This was fixed in
8545
# development snapshots of GCC prior to 3.0.
8547
aix4 | aix4.[01] | aix4.[01].*)
8548
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8550
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8557
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8558
# soname into executable. Probably we can add versioning support to
8559
# collect2, so additional links can be useful in future.
8560
if test "$aix_use_runtimelinking" = yes; then
8561
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
8562
# instead of lib<name>.a to let people know that these are not
8563
# typical AIX shared libraries.
8564
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8566
# We preserve .a as extension for shared libraries through AIX4.2
8567
# and later when we are not doing run time linking.
8568
library_names_spec='${libname}${release}.a $libname.a'
8569
soname_spec='${libname}${release}${shared_ext}$major'
8571
shlibpath_var=LIBPATH
8576
library_names_spec='$libname.ixlibrary $libname.a'
8577
# Create ${libname}_ixlibrary.a entries in /sys/libs.
8578
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'
8582
library_names_spec='${libname}${shared_ext}'
8583
dynamic_linker="$host_os ld.so"
8584
shlibpath_var=LIBRARY_PATH
8590
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8591
soname_spec='${libname}${release}${shared_ext}$major'
8592
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8593
shlibpath_var=LD_LIBRARY_PATH
8594
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8595
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8596
# the default ld.so.conf also contains /usr/contrib/lib and
8597
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8598
# libtool to hard-code these into programs
8601
cygwin* | mingw* | pw32*)
8602
version_type=windows
8607
case $GCC,$host_os in
8608
yes,cygwin* | yes,mingw* | yes,pw32*)
8609
library_names_spec='$libname.dll.a'
8610
# DLL is installed to $(libdir)/../bin by postinstall_cmds
8611
postinstall_cmds='base_file=`basename \${file}`~
8612
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8613
dldir=$destdir/`dirname \$dlpath`~
8614
test -d \$dldir || mkdir -p \$dldir~
8615
$install_prog $dir/$dlname \$dldir/$dlname'
8616
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8617
dlpath=$dir/\$dldll~
8619
shlibpath_overrides_runpath=yes
8623
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
8624
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8625
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8628
# MinGW DLLs use traditional 'lib' prefix
8629
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8630
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8631
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8632
# It is most probably a Windows format PATH printed by
8633
# mingw gcc, but we are running on Cygwin. Gcc prints its search
8634
# path with ; separators, and with drive letters. We can handle the
8635
# drive letters (cygwin fileutils understands them), so leave them,
8636
# especially as we might pass files found there to a mingw objdump,
8637
# which wouldn't understand a cygwinified path. Ahh.
8638
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8640
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8644
# pw32 DLLs use 'pw' prefix rather than 'lib'
8645
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8651
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8654
dynamic_linker='Win32 ld.exe'
8655
# FIXME: first we should search . and the directory the executable is in
8659
darwin* | rhapsody*)
8660
dynamic_linker="$host_os dyld"
8664
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8665
soname_spec='${libname}${release}${major}$shared_ext'
8666
shlibpath_overrides_runpath=yes
8667
shlibpath_var=DYLD_LIBRARY_PATH
8668
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
8669
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8670
if test "$GCC" = yes; then
8671
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"`
8673
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8675
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8682
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8683
soname_spec='${libname}${release}${shared_ext}$major'
8684
shlibpath_var=LD_LIBRARY_PATH
8695
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8696
soname_spec='${libname}${release}${shared_ext}$major'
8697
shlibpath_var=LD_LIBRARY_PATH
8698
shlibpath_overrides_runpath=no
8699
hardcode_into_libs=yes
8700
dynamic_linker='GNU ld.so'
8704
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8705
version_type=freebsd-$objformat
8706
case $version_type in
8708
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8713
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8717
shlibpath_var=LD_LIBRARY_PATH
8720
shlibpath_overrides_runpath=yes
8722
freebsd3.01* | freebsdelf3.01*)
8723
shlibpath_overrides_runpath=yes
8724
hardcode_into_libs=yes
8727
shlibpath_overrides_runpath=no
8728
hardcode_into_libs=yes
8737
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8738
soname_spec='${libname}${release}${shared_ext}$major'
8739
shlibpath_var=LD_LIBRARY_PATH
8740
hardcode_into_libs=yes
8743
hpux9* | hpux10* | hpux11*)
8744
# Give a soname corresponding to the major version so that dld.sl refuses to
8745
# link against other versions.
8752
hardcode_into_libs=yes
8753
dynamic_linker="$host_os dld.so"
8754
shlibpath_var=LD_LIBRARY_PATH
8755
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8756
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8757
soname_spec='${libname}${release}${shared_ext}$major'
8758
if test "X$HPUX_IA64_MODE" = X32; then
8759
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8761
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8763
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8767
hardcode_into_libs=yes
8768
dynamic_linker="$host_os dld.sl"
8769
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8770
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8771
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8772
soname_spec='${libname}${release}${shared_ext}$major'
8773
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8774
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8778
dynamic_linker="$host_os dld.sl"
8779
shlibpath_var=SHLIB_PATH
8780
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8781
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8782
soname_spec='${libname}${release}${shared_ext}$major'
8785
# HP-UX runs *really* slowly unless shared libraries are mode 555.
8786
postinstall_cmds='chmod 555 $lib'
8789
irix5* | irix6* | nonstopux*)
8791
nonstopux*) version_type=nonstopux ;;
8793
if test "$lt_cv_prog_gnu_ld" = yes; then
8801
soname_spec='${libname}${release}${shared_ext}$major'
8802
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8804
irix5* | nonstopux*)
8808
case $LD in # libtool.m4 will add one of these switches to LD
8809
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8810
libsuff= shlibsuff= libmagic=32-bit;;
8811
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8812
libsuff=32 shlibsuff=N32 libmagic=N32;;
8813
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8814
libsuff=64 shlibsuff=64 libmagic=64-bit;;
8815
*) libsuff= shlibsuff= libmagic=never-match;;
8819
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8820
shlibpath_overrides_runpath=no
8821
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8822
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8823
hardcode_into_libs=yes
8826
# No shared lib support for Linux oldld, aout, or coff.
8827
linux*oldld* | linux*aout* | linux*coff*)
8831
# This must be Linux ELF.
8836
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8837
soname_spec='${libname}${release}${shared_ext}$major'
8838
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8839
shlibpath_var=LD_LIBRARY_PATH
8840
shlibpath_overrides_runpath=no
8841
# This implies no fast_install, which is unacceptable.
8842
# Some rework will be needed to allow for fast_install
8843
# before this can be enabled.
8844
hardcode_into_libs=yes
8846
# Append ld.so.conf contents to the search path
8847
if test -f /etc/ld.so.conf; then
8848
ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
8849
sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
8852
# We used to test for /lib/ld.so.1 and disable shared libraries on
8853
# powerpc, because MkLinux only supported shared libraries with the
8854
# GNU dynamic linker. Since this was broken with cross compilers,
8855
# most powerpc-linux boxes support dynamic linking these days and
8856
# people can always --disable-shared, the test was removed, and we
8857
# assume the GNU/Linux dynamic linker is in use.
8858
dynamic_linker='GNU/Linux ld.so'
8865
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8866
soname_spec='${libname}${release}${shared_ext}$major'
8867
shlibpath_var=LD_LIBRARY_PATH
8868
shlibpath_overrides_runpath=no
8869
hardcode_into_libs=yes
8870
dynamic_linker='GNU ld.so'
8877
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8878
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8879
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8880
dynamic_linker='NetBSD (a.out) ld.so'
8882
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8883
soname_spec='${libname}${release}${shared_ext}$major'
8884
dynamic_linker='NetBSD ld.elf_so'
8886
shlibpath_var=LD_LIBRARY_PATH
8887
shlibpath_overrides_runpath=yes
8888
hardcode_into_libs=yes
8893
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8894
shlibpath_var=LD_LIBRARY_PATH
8895
shlibpath_overrides_runpath=yes
8902
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8903
soname_spec='${libname}${release}${shared_ext}$major'
8904
shlibpath_var=LD_LIBRARY_PATH
8905
shlibpath_overrides_runpath=yes
8912
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8913
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8914
shlibpath_var=LD_LIBRARY_PATH
8915
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8917
openbsd2.[89] | openbsd2.[89].*)
8918
shlibpath_overrides_runpath=no
8921
shlibpath_overrides_runpath=yes
8925
shlibpath_overrides_runpath=yes
8930
libname_spec='$name'
8933
library_names_spec='$libname${shared_ext} $libname.a'
8934
dynamic_linker='OS/2 ld.exe'
8935
shlibpath_var=LIBPATH
8938
osf3* | osf4* | osf5*)
8942
soname_spec='${libname}${release}${shared_ext}$major'
8943
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8944
shlibpath_var=LD_LIBRARY_PATH
8945
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8946
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8951
soname_spec='${libname}${release}${shared_ext}$major'
8952
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8953
shlibpath_var=LD_LIBRARY_PATH
8960
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8961
soname_spec='${libname}${release}${shared_ext}$major'
8962
shlibpath_var=LD_LIBRARY_PATH
8963
shlibpath_overrides_runpath=yes
8964
hardcode_into_libs=yes
8965
# ldd complains unless libraries are executable
8966
postinstall_cmds='chmod +x $lib'
8971
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8972
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8973
shlibpath_var=LD_LIBRARY_PATH
8974
shlibpath_overrides_runpath=yes
8975
if test "$with_gnu_ld" = yes; then
8981
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8983
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8984
soname_spec='${libname}${release}${shared_ext}$major'
8985
shlibpath_var=LD_LIBRARY_PATH
8986
case $host_vendor in
8988
shlibpath_overrides_runpath=no
8990
export_dynamic_flag_spec='${wl}-Blargedynsym'
8991
runpath_var=LD_RUN_PATH
8999
shlibpath_overrides_runpath=no
9000
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9006
if test -d /usr/nec ;then
9008
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9009
soname_spec='$libname${shared_ext}.$major'
9010
shlibpath_var=LD_LIBRARY_PATH
9016
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9017
soname_spec='${libname}${release}${shared_ext}$major'
9018
shlibpath_var=LD_LIBRARY_PATH
9025
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9026
echo "${ECHO_T}$dynamic_linker" >&6
9027
test "$dynamic_linker" = no && can_build_shared=no
9029
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9030
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9032
if test -n "$hardcode_libdir_flag_spec" || \
9033
test -n "$runpath_var " || \
9034
test "X$hardcode_automatic"="Xyes" ; then
9036
# We can hardcode non-existant directories.
9037
if test "$hardcode_direct" != no &&
9038
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9039
# have to relink, otherwise we might link with an installed library
9040
# when we should be linking with a yet-to-be-installed one
9041
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9042
test "$hardcode_minus_L" != no; then
9043
# Linking always hardcodes the temporary library directory.
9044
hardcode_action=relink
9046
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9047
hardcode_action=immediate
9050
# We cannot hardcode anything, or else we can only hardcode existing
9052
hardcode_action=unsupported
9054
echo "$as_me:$LINENO: result: $hardcode_action" >&5
9055
echo "${ECHO_T}$hardcode_action" >&6
9057
if test "$hardcode_action" = relink; then
9058
# Fast installation is not supported
9059
enable_fast_install=no
9060
elif test "$shlibpath_overrides_runpath" = yes ||
9061
test "$enable_shared" = no; then
9062
# Fast installation is not necessary
9063
enable_fast_install=needless
9068
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9069
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9070
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9071
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9072
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9073
echo "$as_me:$LINENO: result: yes" >&5
9074
echo "${ECHO_T}yes" >&6
9076
# FIXME - insert some real tests, host_os isn't really good enough
9079
if test -n "$STRIP" ; then
9080
striplib="$STRIP -x"
9081
echo "$as_me:$LINENO: result: yes" >&5
9082
echo "${ECHO_T}yes" >&6
9084
echo "$as_me:$LINENO: result: no" >&5
9085
echo "${ECHO_T}no" >&6
9089
echo "$as_me:$LINENO: result: no" >&5
9090
echo "${ECHO_T}no" >&6
9095
if test "x$enable_dlopen" != xyes; then
9096
enable_dlopen=unknown
9097
enable_dlopen_self=unknown
9098
enable_dlopen_self_static=unknown
9105
lt_cv_dlopen="load_add_on"
9107
lt_cv_dlopen_self=yes
9111
lt_cv_dlopen="LoadLibrary"
9116
lt_cv_dlopen="dlopen"
9121
# if libdl is installed we need to link against it
9122
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9123
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9124
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9125
echo $ECHO_N "(cached) $ECHO_C" >&6
9127
ac_check_lib_save_LIBS=$LIBS
9129
cat >conftest.$ac_ext <<_ACEOF
9132
cat confdefs.h >>conftest.$ac_ext
9133
cat >>conftest.$ac_ext <<_ACEOF
9134
/* end confdefs.h. */
9136
/* Override any gcc2 internal prototype to avoid an error. */
9140
/* We use char because int might match the return type of a gcc2
9141
builtin and then its argument prototype would still apply. */
9151
rm -f conftest.$ac_objext conftest$ac_exeext
9152
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9153
(eval $ac_link) 2>conftest.er1
9155
grep -v '^ *+' conftest.er1 >conftest.err
9157
cat conftest.err >&5
9158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159
(exit $ac_status); } &&
9160
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9161
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9164
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165
(exit $ac_status); }; } &&
9166
{ ac_try='test -s conftest$ac_exeext'
9167
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9170
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171
(exit $ac_status); }; }; then
9172
ac_cv_lib_dl_dlopen=yes
9174
echo "$as_me: failed program was:" >&5
9175
sed 's/^/| /' conftest.$ac_ext >&5
9177
ac_cv_lib_dl_dlopen=no
9179
rm -f conftest.err conftest.$ac_objext \
9180
conftest$ac_exeext conftest.$ac_ext
9181
LIBS=$ac_check_lib_save_LIBS
9183
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9184
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9185
if test $ac_cv_lib_dl_dlopen = yes; then
9186
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9191
lt_cv_dlopen_self=yes
9198
echo "$as_me:$LINENO: checking for shl_load" >&5
9199
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9200
if test "${ac_cv_func_shl_load+set}" = set; then
9201
echo $ECHO_N "(cached) $ECHO_C" >&6
9203
cat >conftest.$ac_ext <<_ACEOF
9206
cat confdefs.h >>conftest.$ac_ext
9207
cat >>conftest.$ac_ext <<_ACEOF
9208
/* end confdefs.h. */
9209
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9210
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9211
#define shl_load innocuous_shl_load
9213
/* System header to define __stub macros and hopefully few prototypes,
9214
which can conflict with char shl_load (); below.
9215
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9216
<limits.h> exists even on freestanding compilers. */
9219
# include <limits.h>
9221
# include <assert.h>
9226
/* Override any gcc2 internal prototype to avoid an error. */
9231
/* We use char because int might match the return type of a gcc2
9232
builtin and then its argument prototype would still apply. */
9234
/* The GNU C library defines this for functions which it implements
9235
to always fail with ENOSYS. Some functions are actually named
9236
something starting with __ and the normal name is an alias. */
9237
#if defined (__stub_shl_load) || defined (__stub___shl_load)
9240
char (*f) () = shl_load;
9249
return f != shl_load;
9254
rm -f conftest.$ac_objext conftest$ac_exeext
9255
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9256
(eval $ac_link) 2>conftest.er1
9258
grep -v '^ *+' conftest.er1 >conftest.err
9260
cat conftest.err >&5
9261
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262
(exit $ac_status); } &&
9263
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9264
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268
(exit $ac_status); }; } &&
9269
{ ac_try='test -s conftest$ac_exeext'
9270
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9273
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274
(exit $ac_status); }; }; then
9275
ac_cv_func_shl_load=yes
9277
echo "$as_me: failed program was:" >&5
9278
sed 's/^/| /' conftest.$ac_ext >&5
9280
ac_cv_func_shl_load=no
9282
rm -f conftest.err conftest.$ac_objext \
9283
conftest$ac_exeext conftest.$ac_ext
9285
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9286
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9287
if test $ac_cv_func_shl_load = yes; then
9288
lt_cv_dlopen="shl_load"
9290
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9291
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9292
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9293
echo $ECHO_N "(cached) $ECHO_C" >&6
9295
ac_check_lib_save_LIBS=$LIBS
9297
cat >conftest.$ac_ext <<_ACEOF
9300
cat confdefs.h >>conftest.$ac_ext
9301
cat >>conftest.$ac_ext <<_ACEOF
9302
/* end confdefs.h. */
9304
/* Override any gcc2 internal prototype to avoid an error. */
9308
/* We use char because int might match the return type of a gcc2
9309
builtin and then its argument prototype would still apply. */
9319
rm -f conftest.$ac_objext conftest$ac_exeext
9320
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9321
(eval $ac_link) 2>conftest.er1
9323
grep -v '^ *+' conftest.er1 >conftest.err
9325
cat conftest.err >&5
9326
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327
(exit $ac_status); } &&
9328
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9329
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333
(exit $ac_status); }; } &&
9334
{ ac_try='test -s conftest$ac_exeext'
9335
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339
(exit $ac_status); }; }; then
9340
ac_cv_lib_dld_shl_load=yes
9342
echo "$as_me: failed program was:" >&5
9343
sed 's/^/| /' conftest.$ac_ext >&5
9345
ac_cv_lib_dld_shl_load=no
9347
rm -f conftest.err conftest.$ac_objext \
9348
conftest$ac_exeext conftest.$ac_ext
9349
LIBS=$ac_check_lib_save_LIBS
9351
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9352
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9353
if test $ac_cv_lib_dld_shl_load = yes; then
9354
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9356
echo "$as_me:$LINENO: checking for dlopen" >&5
9357
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9358
if test "${ac_cv_func_dlopen+set}" = set; then
9359
echo $ECHO_N "(cached) $ECHO_C" >&6
9361
cat >conftest.$ac_ext <<_ACEOF
9364
cat confdefs.h >>conftest.$ac_ext
9365
cat >>conftest.$ac_ext <<_ACEOF
9366
/* end confdefs.h. */
9367
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9368
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9369
#define dlopen innocuous_dlopen
9371
/* System header to define __stub macros and hopefully few prototypes,
9372
which can conflict with char dlopen (); below.
9373
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9374
<limits.h> exists even on freestanding compilers. */
9377
# include <limits.h>
9379
# include <assert.h>
9384
/* Override any gcc2 internal prototype to avoid an error. */
9389
/* We use char because int might match the return type of a gcc2
9390
builtin and then its argument prototype would still apply. */
9392
/* The GNU C library defines this for functions which it implements
9393
to always fail with ENOSYS. Some functions are actually named
9394
something starting with __ and the normal name is an alias. */
9395
#if defined (__stub_dlopen) || defined (__stub___dlopen)
9398
char (*f) () = dlopen;
9412
rm -f conftest.$ac_objext conftest$ac_exeext
9413
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9414
(eval $ac_link) 2>conftest.er1
9416
grep -v '^ *+' conftest.er1 >conftest.err
9418
cat conftest.err >&5
9419
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420
(exit $ac_status); } &&
9421
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9422
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426
(exit $ac_status); }; } &&
9427
{ ac_try='test -s conftest$ac_exeext'
9428
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9431
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432
(exit $ac_status); }; }; then
9433
ac_cv_func_dlopen=yes
9435
echo "$as_me: failed program was:" >&5
9436
sed 's/^/| /' conftest.$ac_ext >&5
9438
ac_cv_func_dlopen=no
9440
rm -f conftest.err conftest.$ac_objext \
9441
conftest$ac_exeext conftest.$ac_ext
9443
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9444
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9445
if test $ac_cv_func_dlopen = yes; then
9446
lt_cv_dlopen="dlopen"
9448
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9449
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9450
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9451
echo $ECHO_N "(cached) $ECHO_C" >&6
9453
ac_check_lib_save_LIBS=$LIBS
9455
cat >conftest.$ac_ext <<_ACEOF
9458
cat confdefs.h >>conftest.$ac_ext
9459
cat >>conftest.$ac_ext <<_ACEOF
9460
/* end confdefs.h. */
9462
/* Override any gcc2 internal prototype to avoid an error. */
9466
/* We use char because int might match the return type of a gcc2
9467
builtin and then its argument prototype would still apply. */
9477
rm -f conftest.$ac_objext conftest$ac_exeext
9478
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9479
(eval $ac_link) 2>conftest.er1
9481
grep -v '^ *+' conftest.er1 >conftest.err
9483
cat conftest.err >&5
9484
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485
(exit $ac_status); } &&
9486
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9487
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9490
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491
(exit $ac_status); }; } &&
9492
{ ac_try='test -s conftest$ac_exeext'
9493
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497
(exit $ac_status); }; }; then
9498
ac_cv_lib_dl_dlopen=yes
9500
echo "$as_me: failed program was:" >&5
9501
sed 's/^/| /' conftest.$ac_ext >&5
9503
ac_cv_lib_dl_dlopen=no
9505
rm -f conftest.err conftest.$ac_objext \
9506
conftest$ac_exeext conftest.$ac_ext
9507
LIBS=$ac_check_lib_save_LIBS
9509
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9510
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9511
if test $ac_cv_lib_dl_dlopen = yes; then
9512
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9514
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9515
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9516
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9517
echo $ECHO_N "(cached) $ECHO_C" >&6
9519
ac_check_lib_save_LIBS=$LIBS
9521
cat >conftest.$ac_ext <<_ACEOF
9524
cat confdefs.h >>conftest.$ac_ext
9525
cat >>conftest.$ac_ext <<_ACEOF
9526
/* end confdefs.h. */
9528
/* Override any gcc2 internal prototype to avoid an error. */
9532
/* We use char because int might match the return type of a gcc2
9533
builtin and then its argument prototype would still apply. */
9543
rm -f conftest.$ac_objext conftest$ac_exeext
9544
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9545
(eval $ac_link) 2>conftest.er1
9547
grep -v '^ *+' conftest.er1 >conftest.err
9549
cat conftest.err >&5
9550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551
(exit $ac_status); } &&
9552
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9553
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557
(exit $ac_status); }; } &&
9558
{ ac_try='test -s conftest$ac_exeext'
9559
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563
(exit $ac_status); }; }; then
9564
ac_cv_lib_svld_dlopen=yes
9566
echo "$as_me: failed program was:" >&5
9567
sed 's/^/| /' conftest.$ac_ext >&5
9569
ac_cv_lib_svld_dlopen=no
9571
rm -f conftest.err conftest.$ac_objext \
9572
conftest$ac_exeext conftest.$ac_ext
9573
LIBS=$ac_check_lib_save_LIBS
9575
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9576
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9577
if test $ac_cv_lib_svld_dlopen = yes; then
9578
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9580
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9581
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9582
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9583
echo $ECHO_N "(cached) $ECHO_C" >&6
9585
ac_check_lib_save_LIBS=$LIBS
9587
cat >conftest.$ac_ext <<_ACEOF
9590
cat confdefs.h >>conftest.$ac_ext
9591
cat >>conftest.$ac_ext <<_ACEOF
9592
/* end confdefs.h. */
9594
/* Override any gcc2 internal prototype to avoid an error. */
9598
/* We use char because int might match the return type of a gcc2
9599
builtin and then its argument prototype would still apply. */
9609
rm -f conftest.$ac_objext conftest$ac_exeext
9610
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9611
(eval $ac_link) 2>conftest.er1
9613
grep -v '^ *+' conftest.er1 >conftest.err
9615
cat conftest.err >&5
9616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617
(exit $ac_status); } &&
9618
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9619
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623
(exit $ac_status); }; } &&
9624
{ ac_try='test -s conftest$ac_exeext'
9625
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9628
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629
(exit $ac_status); }; }; then
9630
ac_cv_lib_dld_dld_link=yes
9632
echo "$as_me: failed program was:" >&5
9633
sed 's/^/| /' conftest.$ac_ext >&5
9635
ac_cv_lib_dld_dld_link=no
9637
rm -f conftest.err conftest.$ac_objext \
9638
conftest$ac_exeext conftest.$ac_ext
9639
LIBS=$ac_check_lib_save_LIBS
9641
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9642
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9643
if test $ac_cv_lib_dld_dld_link = yes; then
9644
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9665
if test "x$lt_cv_dlopen" != xno; then
9671
case $lt_cv_dlopen in
9673
save_CPPFLAGS="$CPPFLAGS"
9674
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9676
save_LDFLAGS="$LDFLAGS"
9677
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9680
LIBS="$lt_cv_dlopen_libs $LIBS"
9682
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9683
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9684
if test "${lt_cv_dlopen_self+set}" = set; then
9685
echo $ECHO_N "(cached) $ECHO_C" >&6
9687
if test "$cross_compiling" = yes; then :
9688
lt_cv_dlopen_self=cross
9690
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9691
lt_status=$lt_dlunknown
9692
cat > conftest.$ac_ext <<EOF
9693
#line 9693 "configure"
9694
#include "confdefs.h"
9703
# define LT_DLGLOBAL RTLD_GLOBAL
9706
# define LT_DLGLOBAL DL_GLOBAL
9708
# define LT_DLGLOBAL 0
9712
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9713
find out it does not work in some platform. */
9714
#ifndef LT_DLLAZY_OR_NOW
9716
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9719
# define LT_DLLAZY_OR_NOW DL_LAZY
9722
# define LT_DLLAZY_OR_NOW RTLD_NOW
9725
# define LT_DLLAZY_OR_NOW DL_NOW
9727
# define LT_DLLAZY_OR_NOW 0
9735
extern "C" void exit (int);
9738
void fnord() { int i=42;}
9741
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9742
int status = $lt_dlunknown;
9746
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9747
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9748
/* dlclose (self); */
9754
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9755
(eval $ac_link) 2>&5
9757
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9759
(./conftest; exit; ) 2>/dev/null
9762
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9763
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9764
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9767
# compilation failed
9768
lt_cv_dlopen_self=no
9775
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9776
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9778
if test "x$lt_cv_dlopen_self" = xyes; then
9779
LDFLAGS="$LDFLAGS $link_static_flag"
9780
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9781
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9782
if test "${lt_cv_dlopen_self_static+set}" = set; then
9783
echo $ECHO_N "(cached) $ECHO_C" >&6
9785
if test "$cross_compiling" = yes; then :
9786
lt_cv_dlopen_self_static=cross
9788
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9789
lt_status=$lt_dlunknown
9790
cat > conftest.$ac_ext <<EOF
9791
#line 9791 "configure"
9792
#include "confdefs.h"
9801
# define LT_DLGLOBAL RTLD_GLOBAL
9804
# define LT_DLGLOBAL DL_GLOBAL
9806
# define LT_DLGLOBAL 0
9810
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9811
find out it does not work in some platform. */
9812
#ifndef LT_DLLAZY_OR_NOW
9814
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9817
# define LT_DLLAZY_OR_NOW DL_LAZY
9820
# define LT_DLLAZY_OR_NOW RTLD_NOW
9823
# define LT_DLLAZY_OR_NOW DL_NOW
9825
# define LT_DLLAZY_OR_NOW 0
9833
extern "C" void exit (int);
9836
void fnord() { int i=42;}
9839
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9840
int status = $lt_dlunknown;
9844
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9845
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9846
/* dlclose (self); */
9852
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9853
(eval $ac_link) 2>&5
9855
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9857
(./conftest; exit; ) 2>/dev/null
9860
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9861
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9862
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9865
# compilation failed
9866
lt_cv_dlopen_self_static=no
9873
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9874
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9877
CPPFLAGS="$save_CPPFLAGS"
9878
LDFLAGS="$save_LDFLAGS"
9883
case $lt_cv_dlopen_self in
9884
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9885
*) enable_dlopen_self=unknown ;;
9888
case $lt_cv_dlopen_self_static in
9889
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9890
*) enable_dlopen_self_static=unknown ;;
9895
# Report which librarie types wil actually be built
9896
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9897
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9898
echo "$as_me:$LINENO: result: $can_build_shared" >&5
9899
echo "${ECHO_T}$can_build_shared" >&6
9901
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9902
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9903
test "$can_build_shared" = "no" && enable_shared=no
9905
# On AIX, shared libraries and static libraries use the same namespace, and
9906
# are all built from PIC.
9909
test "$enable_shared" = yes && enable_static=no
9910
if test -n "$RANLIB"; then
9911
archive_cmds="$archive_cmds~\$RANLIB \$lib"
9912
postinstall_cmds='$RANLIB $lib'
9917
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9918
test "$enable_shared" = yes && enable_static=no
9921
darwin* | rhapsody*)
9922
if test "$GCC" = yes; then
9923
archive_cmds_need_lc=no
9925
rhapsody* | darwin1.[012])
9926
allow_undefined_flag='-undefined suppress'
9929
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9930
allow_undefined_flag='-flat_namespace -undefined suppress'
9932
case ${MACOSX_DEPLOYMENT_TARGET} in
9934
allow_undefined_flag='-flat_namespace -undefined suppress'
9937
allow_undefined_flag='-undefined dynamic_lookup'
9943
output_verbose_link_cmd='echo'
9944
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9945
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9946
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9947
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}'
9948
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9950
hardcode_automatic=yes
9951
hardcode_shlibpath_var=unsupported
9952
whole_archive_flag_spec='-all_load $convenience'
9953
link_all_deplibs=yes
9959
echo "$as_me:$LINENO: result: $enable_shared" >&5
9960
echo "${ECHO_T}$enable_shared" >&6
9962
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9963
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9964
# Make sure either enable_shared or enable_static is yes.
9965
test "$enable_shared" = yes || enable_static=yes
9966
echo "$as_me:$LINENO: result: $enable_static" >&5
9967
echo "${ECHO_T}$enable_static" >&6
9969
# The else clause should only fire when bootstrapping the
9970
# libtool distribution, otherwise you forgot to ship ltmain.sh
9971
# with your package, and you will get complaints that there are
9972
# no rules to generate ltmain.sh.
9973
if test -f "$ltmain"; then
9974
# See if we are running on zsh, and set the options which allow our commands through
9975
# without removal of \ escapes.
9976
if test -n "${ZSH_VERSION+set}" ; then
9977
setopt NO_GLOB_SUBST
9979
# Now quote all the things that may contain metacharacters while being
9980
# careful not to overquote the AC_SUBSTed values. We take copies of the
9981
# variables and quote the copies for generation of the libtool script.
9982
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9984
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9985
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9986
deplibs_check_method reload_flag reload_cmds need_locks \
9987
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9988
lt_cv_sys_global_symbol_to_c_name_address \
9989
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9990
old_postinstall_cmds old_postuninstall_cmds \
9994
lt_prog_compiler_wl \
9995
lt_prog_compiler_pic \
9996
lt_prog_compiler_static \
9997
lt_prog_compiler_no_builtin_flag \
9998
export_dynamic_flag_spec \
9999
thread_safe_flag_spec \
10000
whole_archive_flag_spec \
10001
enable_shared_with_static_runtimes \
10003
old_archive_from_new_cmds \
10008
compiler_lib_search_path \
10010
archive_expsym_cmds \
10012
postuninstall_cmds \
10013
old_archive_from_expsyms_cmds \
10014
allow_undefined_flag \
10015
no_undefined_flag \
10016
export_symbols_cmds \
10017
hardcode_libdir_flag_spec \
10018
hardcode_libdir_flag_spec_ld \
10019
hardcode_libdir_separator \
10020
hardcode_automatic \
10022
module_expsym_cmds \
10023
lt_cv_prog_compiler_c_o \
10025
include_expsyms; do
10028
old_archive_cmds | \
10029
old_archive_from_new_cmds | \
10031
archive_expsym_cmds | \
10033
module_expsym_cmds | \
10034
old_archive_from_expsyms_cmds | \
10035
export_symbols_cmds | \
10036
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10037
postinstall_cmds | postuninstall_cmds | \
10038
old_postinstall_cmds | old_postuninstall_cmds | \
10039
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10040
# Double-quote double-evaled strings.
10041
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10044
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10050
*'\$0 --fallback-echo"')
10051
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10055
cfgfile="${ofile}T"
10056
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10058
{ echo "$as_me:$LINENO: creating $ofile" >&5
10059
echo "$as_me: creating $ofile" >&6;}
10061
cat <<__EOF__ >> "$cfgfile"
10064
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10065
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10066
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10068
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10069
# Free Software Foundation, Inc.
10071
# This file is part of GNU Libtool:
10072
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10074
# This program is free software; you can redistribute it and/or modify
10075
# it under the terms of the GNU General Public License as published by
10076
# the Free Software Foundation; either version 2 of the License, or
10077
# (at your option) any later version.
10079
# This program is distributed in the hope that it will be useful, but
10080
# WITHOUT ANY WARRANTY; without even the implied warranty of
10081
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10082
# General Public License for more details.
10084
# You should have received a copy of the GNU General Public License
10085
# along with this program; if not, write to the Free Software
10086
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10088
# As a special exception to the GNU General Public License, if you
10089
# distribute this file as part of a program that contains a
10090
# configuration script generated by Autoconf, you may include it under
10091
# the same distribution terms that you use for the rest of that program.
10093
# A sed program that does not truncate output.
10096
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10097
Xsed="$SED -e s/^X//"
10099
# The HP-UX ksh and POSIX shell print the target directory to stdout
10100
# if CDPATH is set.
10101
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10103
# The names of the tagged configurations supported by this script.
10106
# ### BEGIN LIBTOOL CONFIG
10108
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10110
# Shell to use when invoking shell scripts.
10113
# Whether or not to build shared libraries.
10114
build_libtool_libs=$enable_shared
10116
# Whether or not to build static libraries.
10117
build_old_libs=$enable_static
10119
# Whether or not to add -lc for building shared libraries.
10120
build_libtool_need_lc=$archive_cmds_need_lc
10122
# Whether or not to disallow shared libs when runtime libs are static
10123
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10125
# Whether or not to optimize for fast installation.
10126
fast_install=$enable_fast_install
10129
host_alias=$host_alias
10132
# An echo program that does not interpret backslashes.
10137
AR_FLAGS=$lt_AR_FLAGS
10142
# A language-specific compiler.
10145
# Is the compiler the GNU C compiler?
10151
# The linker used to build libraries.
10154
# Whether we need hard or soft links.
10157
# A BSD-compatible nm program.
10160
# A symbol stripping program
10163
# Used to examine libraries when file_magic_cmd begins "file"
10164
MAGIC_CMD=$MAGIC_CMD
10166
# Used on cygwin: DLL creation program.
10169
# Used on cygwin: object dumper.
10172
# Used on cygwin: assembler.
10175
# The name of the directory that contains temporary libtool files.
10178
# How to create reloadable object files.
10179
reload_flag=$lt_reload_flag
10180
reload_cmds=$lt_reload_cmds
10182
# How to pass a linker flag through the compiler.
10183
wl=$lt_lt_prog_compiler_wl
10185
# Object file suffix (normally "o").
10186
objext="$ac_objext"
10188
# Old archive suffix (normally "a").
10191
# Shared library suffix (normally ".so").
10194
# Executable file suffix (normally "").
10197
# Additional compiler flags for building library objects.
10198
pic_flag=$lt_lt_prog_compiler_pic
10201
# What is the maximum length of a command?
10202
max_cmd_len=$lt_cv_sys_max_cmd_len
10204
# Does compiler simultaneously support -c and -o options?
10205
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10207
# Must we lock files when doing compilation ?
10208
need_locks=$lt_need_locks
10210
# Do we need the lib prefix for modules?
10211
need_lib_prefix=$need_lib_prefix
10213
# Do we need a version for libraries?
10214
need_version=$need_version
10216
# Whether dlopen is supported.
10217
dlopen_support=$enable_dlopen
10219
# Whether dlopen of programs is supported.
10220
dlopen_self=$enable_dlopen_self
10222
# Whether dlopen of statically linked programs is supported.
10223
dlopen_self_static=$enable_dlopen_self_static
10225
# Compiler flag to prevent dynamic linking.
10226
link_static_flag=$lt_lt_prog_compiler_static
10228
# Compiler flag to turn off builtin functions.
10229
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10231
# Compiler flag to allow reflexive dlopens.
10232
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10234
# Compiler flag to generate shared objects directly from archives.
10235
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10237
# Compiler flag to generate thread-safe objects.
10238
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10240
# Library versioning type.
10241
version_type=$version_type
10243
# Format of library name prefix.
10244
libname_spec=$lt_libname_spec
10246
# List of archive names. First name is the real one, the rest are links.
10247
# The last name is the one that the linker finds with -lNAME.
10248
library_names_spec=$lt_library_names_spec
10250
# The coded name of the library, if different from the real name.
10251
soname_spec=$lt_soname_spec
10253
# Commands used to build and install an old-style archive.
10255
old_archive_cmds=$lt_old_archive_cmds
10256
old_postinstall_cmds=$lt_old_postinstall_cmds
10257
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10259
# Create an old-style archive from a shared archive.
10260
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10262
# Create a temporary old-style archive to link instead of a shared archive.
10263
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10265
# Commands used to build and install a shared archive.
10266
archive_cmds=$lt_archive_cmds
10267
archive_expsym_cmds=$lt_archive_expsym_cmds
10268
postinstall_cmds=$lt_postinstall_cmds
10269
postuninstall_cmds=$lt_postuninstall_cmds
10271
# Commands used to build a loadable module (assumed same as above if empty)
10272
module_cmds=$lt_module_cmds
10273
module_expsym_cmds=$lt_module_expsym_cmds
10275
# Commands to strip libraries.
10276
old_striplib=$lt_old_striplib
10277
striplib=$lt_striplib
10279
# Dependencies to place before the objects being linked to create a
10281
predep_objects=$lt_predep_objects
10283
# Dependencies to place after the objects being linked to create a
10285
postdep_objects=$lt_postdep_objects
10287
# Dependencies to place before the objects being linked to create a
10289
predeps=$lt_predeps
10291
# Dependencies to place after the objects being linked to create a
10293
postdeps=$lt_postdeps
10295
# The library search path used internally by the compiler when linking
10296
# a shared library.
10297
compiler_lib_search_path=$lt_compiler_lib_search_path
10299
# Method to check whether dependent libraries are shared objects.
10300
deplibs_check_method=$lt_deplibs_check_method
10302
# Command to use when deplibs_check_method == file_magic.
10303
file_magic_cmd=$lt_file_magic_cmd
10305
# Flag that allows shared libraries with undefined symbols to be built.
10306
allow_undefined_flag=$lt_allow_undefined_flag
10308
# Flag that forces no undefined symbols.
10309
no_undefined_flag=$lt_no_undefined_flag
10311
# Commands used to finish a libtool library installation in a directory.
10312
finish_cmds=$lt_finish_cmds
10314
# Same as above, but a single script fragment to be evaled but not shown.
10315
finish_eval=$lt_finish_eval
10317
# Take the output of nm and produce a listing of raw symbols and C names.
10318
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10320
# Transform the output of nm in a proper C declaration
10321
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10323
# Transform the output of nm in a C name address pair
10324
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10326
# This is the shared library runtime path variable.
10327
runpath_var=$runpath_var
10329
# This is the shared library path variable.
10330
shlibpath_var=$shlibpath_var
10332
# Is shlibpath searched before the hard-coded library search path?
10333
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10335
# How to hardcode a shared library path into an executable.
10336
hardcode_action=$hardcode_action
10338
# Whether we should hardcode library paths into libraries.
10339
hardcode_into_libs=$hardcode_into_libs
10341
# Flag to hardcode \$libdir into a binary during linking.
10342
# This must work even if \$libdir does not exist.
10343
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10345
# If ld is used when linking, flag to hardcode \$libdir into
10346
# a binary during linking. This must work even if \$libdir does
10348
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10350
# Whether we need a single -rpath flag with a separated argument.
10351
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10353
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10354
# resulting binary.
10355
hardcode_direct=$hardcode_direct
10357
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10358
# resulting binary.
10359
hardcode_minus_L=$hardcode_minus_L
10361
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10362
# the resulting binary.
10363
hardcode_shlibpath_var=$hardcode_shlibpath_var
10365
# Set to yes if building a shared library automatically hardcodes DIR into the library
10366
# and all subsequent libraries and executables linked against it.
10367
hardcode_automatic=$hardcode_automatic
10369
# Variables whose values should be saved in libtool wrapper scripts and
10370
# restored at relink time.
10371
variables_saved_for_relink="$variables_saved_for_relink"
10373
# Whether libtool must link a program against all its dependency libraries.
10374
link_all_deplibs=$link_all_deplibs
10376
# Compile-time system search path for libraries
10377
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10379
# Run-time system search path for libraries
10380
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10382
# Fix the shell variable \$srcfile for the compiler.
10383
fix_srcfile_path="$fix_srcfile_path"
10385
# Set to yes if exported symbols are required.
10386
always_export_symbols=$always_export_symbols
10388
# The commands to list exported symbols.
10389
export_symbols_cmds=$lt_export_symbols_cmds
10391
# The commands to extract the exported symbol list from a shared archive.
10392
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10394
# Symbols that should not be listed in the preloaded symbols.
10395
exclude_expsyms=$lt_exclude_expsyms
10397
# Symbols that must always be exported.
10398
include_expsyms=$lt_include_expsyms
10400
# ### END LIBTOOL CONFIG
10407
cat <<\EOF >> "$cfgfile"
10409
# AIX sometimes has problems with the GCC collect2 program. For some
10410
# reason, if we set the COLLECT_NAMES environment variable, the problems
10411
# vanish in a puff of smoke.
10412
if test "X${COLLECT_NAMES+set}" != Xset; then
10414
export COLLECT_NAMES
10420
# We use sed instead of cat because bash on DJGPP gets confused if
10421
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10422
# text mode, it properly converts lines to CR/LF. This bash problem
10423
# is reportedly fixed, but why not run on old versions too?
10424
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10426
mv -f "$cfgfile" "$ofile" || \
10427
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10431
# If there is no Makefile yet, we rely on a make rule to execute
10432
# `config.status --recheck' to rerun these tests and create the
10433
# libtool script then.
10434
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10435
if test -f "$ltmain_in"; then
10436
test -f Makefile && make "$ltmain"
10442
ac_cpp='$CPP $CPPFLAGS'
10443
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10444
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10445
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10450
# Check whether --with-tags or --without-tags was given.
10451
if test "${with_tags+set}" = set; then
10452
withval="$with_tags"
10453
tagnames="$withval"
10456
if test -f "$ltmain" && test -n "$tagnames"; then
10457
if test ! -f "${ofile}"; then
10458
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10459
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10462
if test -z "$LTCC"; then
10463
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10464
if test -z "$LTCC"; then
10465
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10466
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10468
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10469
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10473
# Extract list of available tagged configurations in $ofile.
10474
# Note that this assumes the entire list is on one line.
10475
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10477
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10478
for tagname in $tagnames; do
10480
# Check whether tagname contains only valid characters
10481
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10483
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10484
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10485
{ (exit 1); exit 1; }; }
10489
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10491
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10492
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10493
{ (exit 1); exit 1; }; }
10496
# Update the list of available tags.
10497
if test -n "$tagname"; then
10498
echo appending configuration tag \"$tagname\" to $ofile
10502
if test -n "$CXX" && test "X$CXX" != "Xno"; then
10504
ac_cpp='$CXXCPP $CPPFLAGS'
10505
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10506
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10507
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10512
archive_cmds_need_lc_CXX=no
10513
allow_undefined_flag_CXX=
10514
always_export_symbols_CXX=no
10515
archive_expsym_cmds_CXX=
10516
export_dynamic_flag_spec_CXX=
10517
hardcode_direct_CXX=no
10518
hardcode_libdir_flag_spec_CXX=
10519
hardcode_libdir_flag_spec_ld_CXX=
10520
hardcode_libdir_separator_CXX=
10521
hardcode_minus_L_CXX=no
10522
hardcode_automatic_CXX=no
10524
module_expsym_cmds_CXX=
10525
link_all_deplibs_CXX=unknown
10526
old_archive_cmds_CXX=$old_archive_cmds
10527
no_undefined_flag_CXX=
10528
whole_archive_flag_spec_CXX=
10529
enable_shared_with_static_runtimes_CXX=no
10531
# Dependencies to place before and after the object being linked:
10532
predep_objects_CXX=
10533
postdep_objects_CXX=
10536
compiler_lib_search_path_CXX=
10538
# Source file extension for C++ test sources.
10541
# Object file extension for compiled C++ test sources.
10545
# Code to be used in simple compile tests
10546
lt_simple_compile_test_code="int some_variable = 0;\n"
10548
# Code to be used in simple link tests
10549
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10551
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10553
# If no C compiler was specified, use CC.
10556
# Allow CC to be a program name with arguments.
10560
# Allow CC to be a program name with arguments.
10565
lt_save_with_gnu_ld=$with_gnu_ld
10566
lt_save_path_LD=$lt_cv_path_LD
10567
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10568
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10570
unset lt_cv_prog_gnu_ld
10572
if test -n "${lt_cv_path_LDCXX+set}"; then
10573
lt_cv_path_LD=$lt_cv_path_LDCXX
10575
unset lt_cv_path_LD
10577
test -z "${LDCXX+set}" || LD=$LDCXX
10581
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10583
# We don't want -fno-exception wen compiling C++ code, so set the
10584
# no_builtin_flag separately
10585
if test "$GXX" = yes; then
10586
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10588
lt_prog_compiler_no_builtin_flag_CXX=
10591
if test "$GXX" = yes; then
10592
# Set up default GNU C++ configuration
10595
# Check whether --with-gnu-ld or --without-gnu-ld was given.
10596
if test "${with_gnu_ld+set}" = set; then
10597
withval="$with_gnu_ld"
10598
test "$withval" = no || with_gnu_ld=yes
10603
if test "$GCC" = yes; then
10604
# Check if gcc -print-prog-name=ld gives a path.
10605
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10606
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10609
# gcc leaves a trailing carriage return which upsets mingw
10610
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10612
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10615
# Accept absolute paths.
10617
re_direlt='/[^/][^/]*/\.\./'
10618
# Canonicalize the pathname of ld
10619
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10620
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10621
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10623
test -z "$LD" && LD="$ac_prog"
10626
# If it fails, then pretend we aren't using GCC.
10630
# If it is relative, then search for the first ld in PATH.
10631
with_gnu_ld=unknown
10634
elif test "$with_gnu_ld" = yes; then
10635
echo "$as_me:$LINENO: checking for GNU ld" >&5
10636
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10638
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10639
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10641
if test "${lt_cv_path_LD+set}" = set; then
10642
echo $ECHO_N "(cached) $ECHO_C" >&6
10644
if test -z "$LD"; then
10645
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10646
for ac_dir in $PATH; do
10648
test -z "$ac_dir" && ac_dir=.
10649
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10650
lt_cv_path_LD="$ac_dir/$ac_prog"
10651
# Check to see if the program is GNU ld. I'd rather use --version,
10652
# but apparently some GNU ld's only accept -v.
10653
# Break only if it was the GNU/non-GNU ld that we prefer.
10654
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10655
*GNU* | *'with BFD'*)
10656
test "$with_gnu_ld" != no && break
10659
test "$with_gnu_ld" != yes && break
10666
lt_cv_path_LD="$LD" # Let the user override the test with a path.
10670
LD="$lt_cv_path_LD"
10671
if test -n "$LD"; then
10672
echo "$as_me:$LINENO: result: $LD" >&5
10673
echo "${ECHO_T}$LD" >&6
10675
echo "$as_me:$LINENO: result: no" >&5
10676
echo "${ECHO_T}no" >&6
10678
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10679
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10680
{ (exit 1); exit 1; }; }
10681
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10682
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10683
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10684
echo $ECHO_N "(cached) $ECHO_C" >&6
10686
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
10687
case `$LD -v 2>&1 </dev/null` in
10688
*GNU* | *'with BFD'*)
10689
lt_cv_prog_gnu_ld=yes
10692
lt_cv_prog_gnu_ld=no
10696
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10697
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10698
with_gnu_ld=$lt_cv_prog_gnu_ld
10702
# Check if GNU C++ uses GNU ld as the underlying linker, since the
10703
# archiving commands below assume that GNU ld is being used.
10704
if test "$with_gnu_ld" = yes; then
10705
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10706
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'
10708
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10709
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10711
# If archive_cmds runs LD, not CC, wlarc should be empty
10712
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10713
# investigate it a little bit more. (MM)
10716
# ancient GNU ld didn't support --whole-archive et. al.
10717
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10718
grep 'no-whole-archive' > /dev/null; then
10719
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10721
whole_archive_flag_spec_CXX=
10727
# A generic and very simple default shared library creation
10728
# command for GNU C++ for the case where it uses the native
10729
# linker, instead of GNU ld. If possible, this setting should
10730
# overridden to take advantage of the native linker features on
10731
# the platform it is being used on.
10732
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10735
# Commands to make compiler produce verbose output that lists
10736
# what "hidden" libraries, object files and flags are used when
10737
# linking a shared library.
10738
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10746
# PORTME: fill in a description of your system's C++ link characteristics
10747
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10748
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10752
# FIXME: insert proper C++ library support
10756
if test "$host_cpu" = ia64; then
10757
# On IA64, the linker does run time linking by default, so we don't
10758
# have to do anything special.
10759
aix_use_runtimelinking=no
10760
exp_sym_flag='-Bexport'
10763
aix_use_runtimelinking=no
10765
# Test if we are trying to use run time linking or normal
10766
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10767
# need to do runtime linking.
10768
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10769
for ld_flag in $LDFLAGS; do
10772
aix_use_runtimelinking=yes
10779
exp_sym_flag='-bexport'
10780
no_entry_flag='-bnoentry'
10783
# When large executables or shared objects are built, AIX ld can
10784
# have problems creating the table of contents. If linking a library
10785
# or program results in "error TOC overflow" add -mminimal-toc to
10786
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10787
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10789
archive_cmds_CXX=''
10790
hardcode_direct_CXX=yes
10791
hardcode_libdir_separator_CXX=':'
10792
link_all_deplibs_CXX=yes
10794
if test "$GXX" = yes; then
10795
case $host_os in aix4.012|aix4.012.*)
10796
# We only want to do this on AIX 4.2 and lower, the check
10797
# below for broken collect2 doesn't work under 4.3+
10798
collect2name=`${CC} -print-prog-name=collect2`
10799
if test -f "$collect2name" && \
10800
strings "$collect2name" | grep resolve_lib_name >/dev/null
10802
# We have reworked collect2
10803
hardcode_direct_CXX=yes
10805
# We have old collect2
10806
hardcode_direct_CXX=unsupported
10807
# It fails to find uninstalled libraries when the uninstalled
10808
# path is not listed in the libpath. Setting hardcode_minus_L
10809
# to unsupported forces relinking
10810
hardcode_minus_L_CXX=yes
10811
hardcode_libdir_flag_spec_CXX='-L$libdir'
10812
hardcode_libdir_separator_CXX=
10815
shared_flag='-shared'
10818
if test "$host_cpu" = ia64; then
10819
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10820
# chokes on -Wl,-G. The following line is correct:
10823
if test "$aix_use_runtimelinking" = yes; then
10824
shared_flag='${wl}-G'
10826
shared_flag='${wl}-bM:SRE'
10831
# It seems that -bexpall does not export symbols beginning with
10832
# underscore (_), so it is better to generate a list of symbols to export.
10833
always_export_symbols_CXX=yes
10834
if test "$aix_use_runtimelinking" = yes; then
10835
# Warning - without using the other runtime loading flags (-brtl),
10836
# -berok will link without error, but may produce a broken library.
10837
allow_undefined_flag_CXX='-berok'
10838
# Determine the default libpath from the value encoded in an empty executable.
10839
cat >conftest.$ac_ext <<_ACEOF
10842
cat confdefs.h >>conftest.$ac_ext
10843
cat >>conftest.$ac_ext <<_ACEOF
10844
/* end confdefs.h. */
10854
rm -f conftest.$ac_objext conftest$ac_exeext
10855
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10856
(eval $ac_link) 2>conftest.er1
10858
grep -v '^ *+' conftest.er1 >conftest.err
10860
cat conftest.err >&5
10861
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862
(exit $ac_status); } &&
10863
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10864
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10865
(eval $ac_try) 2>&5
10867
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868
(exit $ac_status); }; } &&
10869
{ ac_try='test -s conftest$ac_exeext'
10870
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10871
(eval $ac_try) 2>&5
10873
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874
(exit $ac_status); }; }; then
10876
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10878
# Check for a 64-bit object if we didn't find anything.
10879
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; }
10882
echo "$as_me: failed program was:" >&5
10883
sed 's/^/| /' conftest.$ac_ext >&5
10886
rm -f conftest.err conftest.$ac_objext \
10887
conftest$ac_exeext conftest.$ac_ext
10888
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10890
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10892
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"
10894
if test "$host_cpu" = ia64; then
10895
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10896
allow_undefined_flag_CXX="-z nodefs"
10897
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"
10899
# Determine the default libpath from the value encoded in an empty executable.
10900
cat >conftest.$ac_ext <<_ACEOF
10903
cat confdefs.h >>conftest.$ac_ext
10904
cat >>conftest.$ac_ext <<_ACEOF
10905
/* end confdefs.h. */
10915
rm -f conftest.$ac_objext conftest$ac_exeext
10916
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10917
(eval $ac_link) 2>conftest.er1
10919
grep -v '^ *+' conftest.er1 >conftest.err
10921
cat conftest.err >&5
10922
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923
(exit $ac_status); } &&
10924
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10925
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10926
(eval $ac_try) 2>&5
10928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929
(exit $ac_status); }; } &&
10930
{ ac_try='test -s conftest$ac_exeext'
10931
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10932
(eval $ac_try) 2>&5
10934
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935
(exit $ac_status); }; }; then
10937
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10939
# Check for a 64-bit object if we didn't find anything.
10940
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; }
10943
echo "$as_me: failed program was:" >&5
10944
sed 's/^/| /' conftest.$ac_ext >&5
10947
rm -f conftest.err conftest.$ac_objext \
10948
conftest$ac_exeext conftest.$ac_ext
10949
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10951
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10952
# Warning - without using the other run time loading flags,
10953
# -berok will link without error, but may produce a broken library.
10954
no_undefined_flag_CXX=' ${wl}-bernotok'
10955
allow_undefined_flag_CXX=' ${wl}-berok'
10956
# -bexpall does not export symbols beginning with underscore (_)
10957
always_export_symbols_CXX=yes
10958
# Exported symbols can be pulled into shared objects from archives
10959
whole_archive_flag_spec_CXX=' '
10960
archive_cmds_need_lc_CXX=yes
10961
# This is similar to how AIX traditionally builds it's shared libraries.
10962
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'
10967
case $cc_basename in
10969
# FIXME: insert proper C++ library support
10975
cygwin* | mingw* | pw32*)
10976
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10977
# as there is no search path for DLLs.
10978
hardcode_libdir_flag_spec_CXX='-L$libdir'
10979
allow_undefined_flag_CXX=unsupported
10980
always_export_symbols_CXX=no
10981
enable_shared_with_static_runtimes_CXX=yes
10983
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10984
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10985
# If the export-symbols file already is a .def file (1st line
10986
# is EXPORTS), use it as is; otherwise, prepend...
10987
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10988
cp $export_symbols $output_objdir/$soname.def;
10990
echo EXPORTS > $output_objdir/$soname.def;
10991
cat $export_symbols >> $output_objdir/$soname.def;
10993
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10999
darwin* | rhapsody*)
11000
if test "$GXX" = yes; then
11001
archive_cmds_need_lc_CXX=no
11003
rhapsody* | darwin1.[012])
11004
allow_undefined_flag_CXX='-undefined suppress'
11007
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11008
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11010
case ${MACOSX_DEPLOYMENT_TARGET} in
11012
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11015
allow_undefined_flag_CXX='-undefined dynamic_lookup'
11021
lt_int_apple_cc_single_mod=no
11022
output_verbose_link_cmd='echo'
11023
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
11024
lt_int_apple_cc_single_mod=yes
11026
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11027
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11029
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'
11031
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11033
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11034
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11035
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}'
11037
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}'
11039
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11040
hardcode_direct_CXX=no
11041
hardcode_automatic_CXX=yes
11042
hardcode_shlibpath_var_CXX=unsupported
11043
whole_archive_flag_spec_CXX='-all_load $convenience'
11044
link_all_deplibs_CXX=yes
11051
case $cc_basename in
11053
# FIXME: insert proper C++ library support
11057
# Green Hills C++ Compiler
11058
# FIXME: insert proper C++ library support
11062
# FIXME: insert proper C++ library support
11068
# C++ shared libraries reported to be fairly broken before switch to ELF
11072
archive_cmds_need_lc_CXX=no
11074
freebsd* | kfreebsd*-gnu)
11075
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11082
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11083
hardcode_libdir_separator_CXX=:
11084
export_dynamic_flag_spec_CXX='${wl}-E'
11085
hardcode_direct_CXX=yes
11086
hardcode_minus_L_CXX=yes # Not in the search PATH,
11087
# but as the default
11088
# location of the library.
11090
case $cc_basename in
11092
# FIXME: insert proper C++ library support
11096
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'
11097
# Commands to make compiler produce verbose output that lists
11098
# what "hidden" libraries, object files and flags are used when
11099
# linking a shared library.
11101
# There doesn't appear to be a way to prevent this compiler from
11102
# explicitly linking system object files so we need to strip them
11103
# from the output so that they don't get included in the library
11105
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'
11108
if test "$GXX" = yes; then
11109
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'
11111
# FIXME: insert proper C++ library support
11118
if test $with_gnu_ld = no; then
11119
case "$host_cpu" in
11121
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11122
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11123
hardcode_libdir_separator_CXX=:
11126
hardcode_libdir_flag_spec_CXX='-L$libdir'
11129
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11130
hardcode_libdir_separator_CXX=:
11131
export_dynamic_flag_spec_CXX='${wl}-E'
11135
case "$host_cpu" in
11137
hardcode_direct_CXX=no
11138
hardcode_shlibpath_var_CXX=no
11141
hardcode_direct_CXX=no
11142
hardcode_shlibpath_var_CXX=no
11143
hardcode_minus_L_CXX=yes # Not in the search PATH,
11144
# but as the default
11145
# location of the library.
11148
hardcode_direct_CXX=yes
11149
hardcode_minus_L_CXX=yes # Not in the search PATH,
11150
# but as the default
11151
# location of the library.
11155
case $cc_basename in
11157
# FIXME: insert proper C++ library support
11161
case "$host_cpu" in
11163
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11166
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11169
# Commands to make compiler produce verbose output that lists
11170
# what "hidden" libraries, object files and flags are used when
11171
# linking a shared library.
11173
# There doesn't appear to be a way to prevent this compiler from
11174
# explicitly linking system object files so we need to strip them
11175
# from the output so that they don't get included in the library
11177
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'
11180
if test "$GXX" = yes; then
11181
if test $with_gnu_ld = no; then
11182
case "$host_cpu" in
11184
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11187
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'
11192
# FIXME: insert proper C++ library support
11199
case $cc_basename in
11202
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'
11204
# Archives containing C++ object files must be created using
11205
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11206
# necessary to make sure instantiated templates are included
11208
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11211
if test "$GXX" = yes; then
11212
if test "$with_gnu_ld" = no; then
11213
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'
11215
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'
11218
link_all_deplibs_CXX=yes
11221
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11222
hardcode_libdir_separator_CXX=:
11225
case $cc_basename in
11227
# Kuck and Associates, Inc. (KAI) C++ Compiler
11229
# KCC will only create a shared library if the output file
11230
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11231
# to its proper name (with version) after linking.
11232
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'
11233
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'
11234
# Commands to make compiler produce verbose output that lists
11235
# what "hidden" libraries, object files and flags are used when
11236
# linking a shared library.
11238
# There doesn't appear to be a way to prevent this compiler from
11239
# explicitly linking system object files so we need to strip them
11240
# from the output so that they don't get included in the library
11242
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'
11244
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11245
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11247
# Archives containing C++ object files must be created using
11248
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11249
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11254
archive_cmds_need_lc_CXX=no
11255
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11256
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'
11257
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11258
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11259
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11263
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11264
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'
11266
runpath_var=LD_RUN_PATH
11267
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11268
hardcode_libdir_separator_CXX=:
11270
# Commands to make compiler produce verbose output that lists
11271
# what "hidden" libraries, object files and flags are used when
11272
# linking a shared library.
11274
# There doesn't appear to be a way to prevent this compiler from
11275
# explicitly linking system object files so we need to strip them
11276
# from the output so that they don't get included in the library
11278
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'
11283
# FIXME: insert proper C++ library support
11287
# FIXME: insert proper C++ library support
11291
case $cc_basename in
11293
# FIXME: insert proper C++ library support
11297
# FIXME: insert proper C++ library support
11302
netbsd* | knetbsd*-gnu)
11303
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11304
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11306
hardcode_libdir_flag_spec_CXX='-R$libdir'
11307
hardcode_direct_CXX=yes
11308
hardcode_shlibpath_var_CXX=no
11310
# Workaround some broken pre-1.5 toolchains
11311
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11314
case $cc_basename in
11316
# Kuck and Associates, Inc. (KAI) C++ Compiler
11318
# KCC will only create a shared library if the output file
11319
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11320
# to its proper name (with version) after linking.
11321
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'
11323
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11324
hardcode_libdir_separator_CXX=:
11326
# Archives containing C++ object files must be created using
11327
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11328
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11332
# Rational C++ 2.4.1
11333
# FIXME: insert proper C++ library support
11337
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11338
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'
11340
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11341
hardcode_libdir_separator_CXX=:
11343
# Commands to make compiler produce verbose output that lists
11344
# what "hidden" libraries, object files and flags are used when
11345
# linking a shared library.
11347
# There doesn't appear to be a way to prevent this compiler from
11348
# explicitly linking system object files so we need to strip them
11349
# from the output so that they don't get included in the library
11351
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'
11354
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11355
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11356
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'
11358
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11359
hardcode_libdir_separator_CXX=:
11361
# Commands to make compiler produce verbose output that lists
11362
# what "hidden" libraries, object files and flags are used when
11363
# linking a shared library.
11364
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11367
# FIXME: insert proper C++ library support
11374
case $cc_basename in
11376
# Kuck and Associates, Inc. (KAI) C++ Compiler
11378
# KCC will only create a shared library if the output file
11379
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11380
# to its proper name (with version) after linking.
11381
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'
11383
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11384
hardcode_libdir_separator_CXX=:
11386
# Archives containing C++ object files must be created using
11387
# the KAI C++ compiler.
11388
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11391
# Rational C++ 2.4.1
11392
# FIXME: insert proper C++ library support
11396
allow_undefined_flag_CXX=' -expect_unresolved \*'
11397
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'
11398
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11399
echo "-hidden">> $lib.exp~
11400
$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~
11403
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11404
hardcode_libdir_separator_CXX=:
11406
# Commands to make compiler produce verbose output that lists
11407
# what "hidden" libraries, object files and flags are used when
11408
# linking a shared library.
11410
# There doesn't appear to be a way to prevent this compiler from
11411
# explicitly linking system object files so we need to strip them
11412
# from the output so that they don't get included in the library
11414
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'
11417
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11418
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11419
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'
11421
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11422
hardcode_libdir_separator_CXX=:
11424
# Commands to make compiler produce verbose output that lists
11425
# what "hidden" libraries, object files and flags are used when
11426
# linking a shared library.
11427
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11430
# FIXME: insert proper C++ library support
11437
# FIXME: insert proper C++ library support
11441
archive_cmds_need_lc_CXX=no
11442
case $cc_basename in
11444
# FIXME: insert proper C++ library support
11448
# FIXME: insert proper C++ library support
11454
case $cc_basename in
11457
# FIXME: insert proper C++ library support
11462
# FIXME: insert proper C++ library support
11466
# FIXME: insert proper C++ library support
11472
case $cc_basename in
11474
# Sun C++ 4.2, 5.x and Centerline C++
11475
no_undefined_flag_CXX=' -zdefs'
11476
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11477
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11478
$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'
11480
hardcode_libdir_flag_spec_CXX='-R$libdir'
11481
hardcode_shlibpath_var_CXX=no
11483
solaris2.0-5 | solaris2.0-5.*) ;;
11485
# The C++ compiler is used as linker so we must use $wl
11486
# flag to pass the commands to the underlying system
11488
# Supported since Solaris 2.6 (maybe 2.5.1?)
11489
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11492
link_all_deplibs_CXX=yes
11494
# Commands to make compiler produce verbose output that lists
11495
# what "hidden" libraries, object files and flags are used when
11496
# linking a shared library.
11498
# There doesn't appear to be a way to prevent this compiler from
11499
# explicitly linking system object files so we need to strip them
11500
# from the output so that they don't get included in the library
11502
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'
11504
# Archives containing C++ object files must be created using
11505
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11506
# necessary to make sure instantiated templates are included
11508
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11511
# Green Hills C++ Compiler
11512
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11514
# The C++ compiler must be used to create the archive.
11515
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11518
# GNU C++ compiler with Solaris linker
11519
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11520
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11521
if $CC --version | grep -v '^2\.7' > /dev/null; then
11522
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11523
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11524
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11526
# Commands to make compiler produce verbose output that lists
11527
# what "hidden" libraries, object files and flags are used when
11528
# linking a shared library.
11529
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11531
# g++ 2.7 appears to require `-G' NOT `-shared' on this
11533
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11534
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11535
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11537
# Commands to make compiler produce verbose output that lists
11538
# what "hidden" libraries, object files and flags are used when
11539
# linking a shared library.
11540
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11543
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11548
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11549
archive_cmds_need_lc_CXX=no
11552
case $cc_basename in
11554
# NonStop-UX NCC 3.20
11555
# FIXME: insert proper C++ library support
11559
# FIXME: insert proper C++ library support
11565
# FIXME: insert proper C++ library support
11569
# FIXME: insert proper C++ library support
11573
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11574
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11575
test "$ld_shlibs_CXX" = no && can_build_shared=no
11581
cat > conftest.$ac_ext <<EOF
11585
Foo (void) { a = 0; }
11591
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11592
(eval $ac_compile) 2>&5
11594
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595
(exit $ac_status); }; then
11596
# Parse the compiler output and extract the necessary
11597
# objects, libraries and library flags.
11599
# Sentinel used to keep track of whether or not we are before
11600
# the conftest object file.
11601
pre_test_object_deps_done=no
11603
# The `*' in the case matches for architectures that use `case' in
11604
# $output_verbose_cmd can trigger glob expansion during the loop
11605
# eval without this substitution.
11606
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11608
for p in `eval $output_verbose_link_cmd`; do
11612
# Some compilers place space between "-{L,R}" and the path.
11613
# Remove the space.
11614
if test $p = "-L" \
11615
|| test $p = "-R"; then
11622
if test "$pre_test_object_deps_done" = no; then
11625
# Internal compiler library paths should come after those
11626
# provided the user. The postdeps already come after the
11627
# user supplied libs so there is no need to process them.
11628
if test -z "$compiler_lib_search_path_CXX"; then
11629
compiler_lib_search_path_CXX="${prev}${p}"
11631
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11634
# The "-l" case would never come before the object being
11635
# linked, so don't bother handling this case.
11638
if test -z "$postdeps_CXX"; then
11639
postdeps_CXX="${prev}${p}"
11641
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11647
# This assumes that the test object file only shows up
11648
# once in the compiler output.
11649
if test "$p" = "conftest.$objext"; then
11650
pre_test_object_deps_done=yes
11654
if test "$pre_test_object_deps_done" = no; then
11655
if test -z "$predep_objects_CXX"; then
11656
predep_objects_CXX="$p"
11658
predep_objects_CXX="$predep_objects_CXX $p"
11661
if test -z "$postdep_objects_CXX"; then
11662
postdep_objects_CXX="$p"
11664
postdep_objects_CXX="$postdep_objects_CXX $p"
11669
*) ;; # Ignore the rest.
11677
echo "libtool.m4: error: problem compiling CXX test program"
11680
$rm -f confest.$objext
11682
case " $postdeps_CXX " in
11683
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11686
lt_prog_compiler_wl_CXX=
11687
lt_prog_compiler_pic_CXX=
11688
lt_prog_compiler_static_CXX=
11690
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11691
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11693
# C++ specific cases for pic, static, wl, etc.
11694
if test "$GXX" = yes; then
11695
lt_prog_compiler_wl_CXX='-Wl,'
11696
lt_prog_compiler_static_CXX='-static'
11700
# All AIX code is PIC.
11701
if test "$host_cpu" = ia64; then
11702
# AIX 5 now supports IA64 processor
11703
lt_prog_compiler_static_CXX='-Bstatic'
11707
# FIXME: we need at least 68020 code to build shared libraries, but
11708
# adding the `-m68020' flag to GCC prevents building anything better,
11710
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11712
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11713
# PIC is the default for these OSes.
11715
mingw* | os2* | pw32*)
11716
# This hack is so that the source file can tell whether it is being
11717
# built for inclusion in a dll (and should export symbols for example).
11718
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11720
darwin* | rhapsody*)
11721
# PIC is the default on this platform
11722
# Common symbols not allowed in MH_DYLIB files
11723
lt_prog_compiler_pic_CXX='-fno-common'
11726
# DJGPP does not support shared libraries at all
11727
lt_prog_compiler_pic_CXX=
11730
if test -d /usr/nec; then
11731
lt_prog_compiler_pic_CXX=-Kconform_pic
11735
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11736
# not for PA HP-UX.
11737
case "$host_cpu" in
11741
lt_prog_compiler_pic_CXX='-fPIC'
11746
lt_prog_compiler_pic_CXX='-fPIC'
11752
# All AIX code is PIC.
11753
if test "$host_cpu" = ia64; then
11754
# AIX 5 now supports IA64 processor
11755
lt_prog_compiler_static_CXX='-Bstatic'
11757
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11761
case $cc_basename in
11763
# Green Hills C++ Compiler
11764
# _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"
11769
case $cc_basename in
11771
lt_prog_compiler_pic_CXX='-KPIC'
11774
# Green Hills C++ Compiler
11775
lt_prog_compiler_pic_CXX='-pic'
11781
freebsd* | kfreebsd*-gnu)
11782
# FreeBSD uses GNU C++
11784
hpux9* | hpux10* | hpux11*)
11785
case $cc_basename in
11787
lt_prog_compiler_wl_CXX='-Wl,'
11788
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11789
if test "$host_cpu" != ia64; then
11790
lt_prog_compiler_pic_CXX='+Z'
11794
lt_prog_compiler_wl_CXX='-Wl,'
11795
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11796
case "$host_cpu" in
11801
lt_prog_compiler_pic_CXX='+Z'
11809
irix5* | irix6* | nonstopux*)
11810
case $cc_basename in
11812
lt_prog_compiler_wl_CXX='-Wl,'
11813
lt_prog_compiler_static_CXX='-non_shared'
11814
# CC pic flag -KPIC is the default.
11821
case $cc_basename in
11824
lt_prog_compiler_wl_CXX='--backend -Wl,'
11825
lt_prog_compiler_pic_CXX='-fPIC'
11829
lt_prog_compiler_wl_CXX='-Wl,'
11830
lt_prog_compiler_pic_CXX='-KPIC'
11831
lt_prog_compiler_static_CXX='-static'
11835
# Make sure the PIC flag is empty. It appears that all Alpha
11836
# Linux and Compaq Tru64 Unix objects are PIC.
11837
lt_prog_compiler_pic_CXX=
11838
lt_prog_compiler_static_CXX='-non_shared'
11849
case $cc_basename in
11851
lt_prog_compiler_pic_CXX='-W c,exportall'
11857
netbsd* | knetbsd*-gnu)
11859
osf3* | osf4* | osf5*)
11860
case $cc_basename in
11862
lt_prog_compiler_wl_CXX='--backend -Wl,'
11865
# Rational C++ 2.4.1
11866
lt_prog_compiler_pic_CXX='-pic'
11869
# Digital/Compaq C++
11870
lt_prog_compiler_wl_CXX='-Wl,'
11871
# Make sure the PIC flag is empty. It appears that all Alpha
11872
# Linux and Compaq Tru64 Unix objects are PIC.
11873
lt_prog_compiler_pic_CXX=
11874
lt_prog_compiler_static_CXX='-non_shared'
11883
case $cc_basename in
11885
lt_prog_compiler_pic_CXX='-fPIC'
11892
case $cc_basename in
11894
# Sun C++ 4.2, 5.x and Centerline C++
11895
lt_prog_compiler_pic_CXX='-KPIC'
11896
lt_prog_compiler_static_CXX='-Bstatic'
11897
lt_prog_compiler_wl_CXX='-Qoption ld '
11900
# Green Hills C++ Compiler
11901
lt_prog_compiler_pic_CXX='-PIC'
11908
case $cc_basename in
11911
lt_prog_compiler_pic_CXX='-pic'
11912
lt_prog_compiler_static_CXX='-Bstatic'
11916
lt_prog_compiler_pic_CXX='-pic'
11923
case $cc_basename in
11925
# NonStop-UX NCC 3.20
11926
lt_prog_compiler_pic_CXX='-KPIC'
11937
lt_prog_compiler_can_build_shared_CXX=no
11942
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11943
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11946
# Check to make sure the PIC flag actually works.
11948
if test -n "$lt_prog_compiler_pic_CXX"; then
11950
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11951
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11952
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11953
echo $ECHO_N "(cached) $ECHO_C" >&6
11955
lt_prog_compiler_pic_works_CXX=no
11956
ac_outfile=conftest.$ac_objext
11957
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11958
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11959
# Insert the option either (1) after the last *FLAGS variable, or
11960
# (2) before a word containing "conftest.", or (3) at the end.
11961
# Note that $ac_compile itself does not contain backslashes and begins
11962
# with a dollar sign (not a hyphen), so the echo should work correctly.
11963
# The option is referenced via a variable to avoid confusing sed.
11964
lt_compile=`echo "$ac_compile" | $SED \
11965
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11966
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11967
-e 's:$: $lt_compiler_flag:'`
11968
(eval echo "\"\$as_me:11968: $lt_compile\"" >&5)
11969
(eval "$lt_compile" 2>conftest.err)
11971
cat conftest.err >&5
11972
echo "$as_me:11972: \$? = $ac_status" >&5
11973
if (exit $ac_status) && test -s "$ac_outfile"; then
11974
# The compiler can only warn and ignore the option if not recognized
11975
# So say no if there are warnings
11976
if test ! -s conftest.err; then
11977
lt_prog_compiler_pic_works_CXX=yes
11983
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11984
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11986
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11987
case $lt_prog_compiler_pic_CXX in
11989
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11992
lt_prog_compiler_pic_CXX=
11993
lt_prog_compiler_can_build_shared_CXX=no
11998
# For platforms which do not support PIC, -DPIC is meaningless:
12000
lt_prog_compiler_pic_CXX=
12003
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12007
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12008
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12009
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12010
echo $ECHO_N "(cached) $ECHO_C" >&6
12012
lt_cv_prog_compiler_c_o_CXX=no
12013
$rm -r conftest 2>/dev/null
12017
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12019
lt_compiler_flag="-o out/conftest2.$ac_objext"
12020
# Insert the option either (1) after the last *FLAGS variable, or
12021
# (2) before a word containing "conftest.", or (3) at the end.
12022
# Note that $ac_compile itself does not contain backslashes and begins
12023
# with a dollar sign (not a hyphen), so the echo should work correctly.
12024
lt_compile=`echo "$ac_compile" | $SED \
12025
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12026
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12027
-e 's:$: $lt_compiler_flag:'`
12028
(eval echo "\"\$as_me:12028: $lt_compile\"" >&5)
12029
(eval "$lt_compile" 2>out/conftest.err)
12031
cat out/conftest.err >&5
12032
echo "$as_me:12032: \$? = $ac_status" >&5
12033
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12035
# The compiler can only warn and ignore the option if not recognized
12036
# So say no if there are warnings
12037
if test ! -s out/conftest.err; then
12038
lt_cv_prog_compiler_c_o_CXX=yes
12043
# SGI C++ compiler will create directory out/ii_files/ for
12044
# template instantiation
12045
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12046
$rm out/* && rmdir out
12052
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12053
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12056
hard_links="nottested"
12057
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12058
# do not overwrite the value of need_locks provided by the user
12059
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12060
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12063
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12065
ln conftest.a conftest.b 2>&5 || hard_links=no
12066
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12067
echo "$as_me:$LINENO: result: $hard_links" >&5
12068
echo "${ECHO_T}$hard_links" >&6
12069
if test "$hard_links" = no; then
12070
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12071
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12078
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12079
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12081
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12084
# If we're using GNU nm, then we don't want the "-C" option.
12085
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12086
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12087
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'
12089
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'
12093
export_symbols_cmds_CXX="$ltdll_cmds"
12096
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12099
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12103
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12104
echo "${ECHO_T}$ld_shlibs_CXX" >&6
12105
test "$ld_shlibs_CXX" = no && can_build_shared=no
12107
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12108
if test "$GCC" = yes; then
12109
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12113
# Do we need to explicitly link libc?
12115
case "x$archive_cmds_need_lc_CXX" in
12117
# Assume -lc should be added
12118
archive_cmds_need_lc_CXX=yes
12120
if test "$enable_shared" = yes && test "$GCC" = yes; then
12121
case $archive_cmds_CXX in
12123
# FIXME: we may have to deal with multi-command sequences.
12126
# Test whether the compiler implicitly links with -lc since on some
12127
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12128
# to ld, don't add -lc before -lgcc.
12129
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12130
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12132
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12134
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12135
(eval $ac_compile) 2>&5
12137
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138
(exit $ac_status); } 2>conftest.err; then
12141
libobjs=conftest.$ac_objext
12143
wl=$lt_prog_compiler_wl_CXX
12149
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12150
allow_undefined_flag_CXX=
12151
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12152
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12154
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155
(exit $ac_status); }
12157
archive_cmds_need_lc_CXX=no
12159
archive_cmds_need_lc_CXX=yes
12161
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12163
cat conftest.err 1>&5
12166
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12167
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12174
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12175
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12176
library_names_spec=
12177
libname_spec='lib$name'
12181
postuninstall_cmds=
12185
shlibpath_overrides_runpath=unknown
12187
dynamic_linker="$host_os ld.so"
12188
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12189
if test "$GCC" = yes; then
12190
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12191
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12192
# if the path contains ";" then we assume it to be the separator
12193
# otherwise default to the standard path separator (i.e. ":") - it is
12194
# assumed that no part of a normal pathname contains ";" but that should
12195
# okay in the real world where ";" in dirpaths is itself problematic.
12196
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12198
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12201
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12203
need_lib_prefix=unknown
12204
hardcode_into_libs=no
12206
# when you set need_version to no, make sure it does not cause -set_version
12207
# flags to be left without arguments
12208
need_version=unknown
12213
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12214
shlibpath_var=LIBPATH
12216
# AIX 3 has no versioning support, so we append a major version to the name.
12217
soname_spec='${libname}${release}${shared_ext}$major'
12224
hardcode_into_libs=yes
12225
if test "$host_cpu" = ia64; then
12226
# AIX 5 supports IA64
12227
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12228
shlibpath_var=LD_LIBRARY_PATH
12230
# With GCC up to 2.95.x, collect2 would create an import file
12231
# for dependence libraries. The import file would start with
12232
# the line `#! .'. This would cause the generated library to
12233
# depend on `.', always an invalid library. This was fixed in
12234
# development snapshots of GCC prior to 3.0.
12236
aix4 | aix4.[01] | aix4.[01].*)
12237
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12239
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12242
can_build_shared=no
12246
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12247
# soname into executable. Probably we can add versioning support to
12248
# collect2, so additional links can be useful in future.
12249
if test "$aix_use_runtimelinking" = yes; then
12250
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12251
# instead of lib<name>.a to let people know that these are not
12252
# typical AIX shared libraries.
12253
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12255
# We preserve .a as extension for shared libraries through AIX4.2
12256
# and later when we are not doing run time linking.
12257
library_names_spec='${libname}${release}.a $libname.a'
12258
soname_spec='${libname}${release}${shared_ext}$major'
12260
shlibpath_var=LIBPATH
12265
library_names_spec='$libname.ixlibrary $libname.a'
12266
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12267
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'
12271
library_names_spec='${libname}${shared_ext}'
12272
dynamic_linker="$host_os ld.so"
12273
shlibpath_var=LIBRARY_PATH
12279
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12280
soname_spec='${libname}${release}${shared_ext}$major'
12281
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12282
shlibpath_var=LD_LIBRARY_PATH
12283
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12284
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12285
# the default ld.so.conf also contains /usr/contrib/lib and
12286
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12287
# libtool to hard-code these into programs
12290
cygwin* | mingw* | pw32*)
12291
version_type=windows
12296
case $GCC,$host_os in
12297
yes,cygwin* | yes,mingw* | yes,pw32*)
12298
library_names_spec='$libname.dll.a'
12299
# DLL is installed to $(libdir)/../bin by postinstall_cmds
12300
postinstall_cmds='base_file=`basename \${file}`~
12301
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12302
dldir=$destdir/`dirname \$dlpath`~
12303
test -d \$dldir || mkdir -p \$dldir~
12304
$install_prog $dir/$dlname \$dldir/$dlname'
12305
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12306
dlpath=$dir/\$dldll~
12308
shlibpath_overrides_runpath=yes
12312
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
12313
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12314
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12317
# MinGW DLLs use traditional 'lib' prefix
12318
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12319
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12320
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12321
# It is most probably a Windows format PATH printed by
12322
# mingw gcc, but we are running on Cygwin. Gcc prints its search
12323
# path with ; separators, and with drive letters. We can handle the
12324
# drive letters (cygwin fileutils understands them), so leave them,
12325
# especially as we might pass files found there to a mingw objdump,
12326
# which wouldn't understand a cygwinified path. Ahh.
12327
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12329
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12333
# pw32 DLLs use 'pw' prefix rather than 'lib'
12334
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12340
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12343
dynamic_linker='Win32 ld.exe'
12344
# FIXME: first we should search . and the directory the executable is in
12348
darwin* | rhapsody*)
12349
dynamic_linker="$host_os dyld"
12350
version_type=darwin
12353
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12354
soname_spec='${libname}${release}${major}$shared_ext'
12355
shlibpath_overrides_runpath=yes
12356
shlibpath_var=DYLD_LIBRARY_PATH
12357
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
12358
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12359
if test "$GCC" = yes; then
12360
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"`
12362
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12364
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12371
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12372
soname_spec='${libname}${release}${shared_ext}$major'
12373
shlibpath_var=LD_LIBRARY_PATH
12384
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12385
soname_spec='${libname}${release}${shared_ext}$major'
12386
shlibpath_var=LD_LIBRARY_PATH
12387
shlibpath_overrides_runpath=no
12388
hardcode_into_libs=yes
12389
dynamic_linker='GNU ld.so'
12393
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12394
version_type=freebsd-$objformat
12395
case $version_type in
12397
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12402
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12406
shlibpath_var=LD_LIBRARY_PATH
12409
shlibpath_overrides_runpath=yes
12411
freebsd3.01* | freebsdelf3.01*)
12412
shlibpath_overrides_runpath=yes
12413
hardcode_into_libs=yes
12416
shlibpath_overrides_runpath=no
12417
hardcode_into_libs=yes
12426
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12427
soname_spec='${libname}${release}${shared_ext}$major'
12428
shlibpath_var=LD_LIBRARY_PATH
12429
hardcode_into_libs=yes
12432
hpux9* | hpux10* | hpux11*)
12433
# Give a soname corresponding to the major version so that dld.sl refuses to
12434
# link against other versions.
12438
case "$host_cpu" in
12441
hardcode_into_libs=yes
12442
dynamic_linker="$host_os dld.so"
12443
shlibpath_var=LD_LIBRARY_PATH
12444
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12445
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12446
soname_spec='${libname}${release}${shared_ext}$major'
12447
if test "X$HPUX_IA64_MODE" = X32; then
12448
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12450
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12452
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12456
hardcode_into_libs=yes
12457
dynamic_linker="$host_os dld.sl"
12458
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12459
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12460
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12461
soname_spec='${libname}${release}${shared_ext}$major'
12462
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12463
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12467
dynamic_linker="$host_os dld.sl"
12468
shlibpath_var=SHLIB_PATH
12469
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12470
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12471
soname_spec='${libname}${release}${shared_ext}$major'
12474
# HP-UX runs *really* slowly unless shared libraries are mode 555.
12475
postinstall_cmds='chmod 555 $lib'
12478
irix5* | irix6* | nonstopux*)
12480
nonstopux*) version_type=nonstopux ;;
12482
if test "$lt_cv_prog_gnu_ld" = yes; then
12490
soname_spec='${libname}${release}${shared_ext}$major'
12491
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12493
irix5* | nonstopux*)
12494
libsuff= shlibsuff=
12497
case $LD in # libtool.m4 will add one of these switches to LD
12498
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12499
libsuff= shlibsuff= libmagic=32-bit;;
12500
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12501
libsuff=32 shlibsuff=N32 libmagic=N32;;
12502
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12503
libsuff=64 shlibsuff=64 libmagic=64-bit;;
12504
*) libsuff= shlibsuff= libmagic=never-match;;
12508
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12509
shlibpath_overrides_runpath=no
12510
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12511
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12512
hardcode_into_libs=yes
12515
# No shared lib support for Linux oldld, aout, or coff.
12516
linux*oldld* | linux*aout* | linux*coff*)
12520
# This must be Linux ELF.
12525
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12526
soname_spec='${libname}${release}${shared_ext}$major'
12527
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12528
shlibpath_var=LD_LIBRARY_PATH
12529
shlibpath_overrides_runpath=no
12530
# This implies no fast_install, which is unacceptable.
12531
# Some rework will be needed to allow for fast_install
12532
# before this can be enabled.
12533
hardcode_into_libs=yes
12535
# Append ld.so.conf contents to the search path
12536
if test -f /etc/ld.so.conf; then
12537
ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
12538
sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
12541
# We used to test for /lib/ld.so.1 and disable shared libraries on
12542
# powerpc, because MkLinux only supported shared libraries with the
12543
# GNU dynamic linker. Since this was broken with cross compilers,
12544
# most powerpc-linux boxes support dynamic linking these days and
12545
# people can always --disable-shared, the test was removed, and we
12546
# assume the GNU/Linux dynamic linker is in use.
12547
dynamic_linker='GNU/Linux ld.so'
12554
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12555
soname_spec='${libname}${release}${shared_ext}$major'
12556
shlibpath_var=LD_LIBRARY_PATH
12557
shlibpath_overrides_runpath=no
12558
hardcode_into_libs=yes
12559
dynamic_linker='GNU ld.so'
12566
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12567
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12568
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12569
dynamic_linker='NetBSD (a.out) ld.so'
12571
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12572
soname_spec='${libname}${release}${shared_ext}$major'
12573
dynamic_linker='NetBSD ld.elf_so'
12575
shlibpath_var=LD_LIBRARY_PATH
12576
shlibpath_overrides_runpath=yes
12577
hardcode_into_libs=yes
12582
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12583
shlibpath_var=LD_LIBRARY_PATH
12584
shlibpath_overrides_runpath=yes
12591
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12592
soname_spec='${libname}${release}${shared_ext}$major'
12593
shlibpath_var=LD_LIBRARY_PATH
12594
shlibpath_overrides_runpath=yes
12601
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12602
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12603
shlibpath_var=LD_LIBRARY_PATH
12604
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12606
openbsd2.[89] | openbsd2.[89].*)
12607
shlibpath_overrides_runpath=no
12610
shlibpath_overrides_runpath=yes
12614
shlibpath_overrides_runpath=yes
12619
libname_spec='$name'
12622
library_names_spec='$libname${shared_ext} $libname.a'
12623
dynamic_linker='OS/2 ld.exe'
12624
shlibpath_var=LIBPATH
12627
osf3* | osf4* | osf5*)
12631
soname_spec='${libname}${release}${shared_ext}$major'
12632
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12633
shlibpath_var=LD_LIBRARY_PATH
12634
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12635
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12640
soname_spec='${libname}${release}${shared_ext}$major'
12641
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12642
shlibpath_var=LD_LIBRARY_PATH
12649
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12650
soname_spec='${libname}${release}${shared_ext}$major'
12651
shlibpath_var=LD_LIBRARY_PATH
12652
shlibpath_overrides_runpath=yes
12653
hardcode_into_libs=yes
12654
# ldd complains unless libraries are executable
12655
postinstall_cmds='chmod +x $lib'
12660
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12661
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12662
shlibpath_var=LD_LIBRARY_PATH
12663
shlibpath_overrides_runpath=yes
12664
if test "$with_gnu_ld" = yes; then
12670
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12672
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12673
soname_spec='${libname}${release}${shared_ext}$major'
12674
shlibpath_var=LD_LIBRARY_PATH
12675
case $host_vendor in
12677
shlibpath_overrides_runpath=no
12679
export_dynamic_flag_spec='${wl}-Blargedynsym'
12680
runpath_var=LD_RUN_PATH
12688
shlibpath_overrides_runpath=no
12689
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12695
if test -d /usr/nec ;then
12697
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12698
soname_spec='$libname${shared_ext}.$major'
12699
shlibpath_var=LD_LIBRARY_PATH
12705
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12706
soname_spec='${libname}${release}${shared_ext}$major'
12707
shlibpath_var=LD_LIBRARY_PATH
12714
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12715
echo "${ECHO_T}$dynamic_linker" >&6
12716
test "$dynamic_linker" = no && can_build_shared=no
12718
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12719
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12720
hardcode_action_CXX=
12721
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12722
test -n "$runpath_var CXX" || \
12723
test "X$hardcode_automatic_CXX"="Xyes" ; then
12725
# We can hardcode non-existant directories.
12726
if test "$hardcode_direct_CXX" != no &&
12727
# If the only mechanism to avoid hardcoding is shlibpath_var, we
12728
# have to relink, otherwise we might link with an installed library
12729
# when we should be linking with a yet-to-be-installed one
12730
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12731
test "$hardcode_minus_L_CXX" != no; then
12732
# Linking always hardcodes the temporary library directory.
12733
hardcode_action_CXX=relink
12735
# We can link without hardcoding, and we can hardcode nonexisting dirs.
12736
hardcode_action_CXX=immediate
12739
# We cannot hardcode anything, or else we can only hardcode existing
12741
hardcode_action_CXX=unsupported
12743
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12744
echo "${ECHO_T}$hardcode_action_CXX" >&6
12746
if test "$hardcode_action_CXX" = relink; then
12747
# Fast installation is not supported
12748
enable_fast_install=no
12749
elif test "$shlibpath_overrides_runpath" = yes ||
12750
test "$enable_shared" = no; then
12751
# Fast installation is not necessary
12752
enable_fast_install=needless
12757
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12758
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12759
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12760
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12761
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12762
echo "$as_me:$LINENO: result: yes" >&5
12763
echo "${ECHO_T}yes" >&6
12765
# FIXME - insert some real tests, host_os isn't really good enough
12768
if test -n "$STRIP" ; then
12769
striplib="$STRIP -x"
12770
echo "$as_me:$LINENO: result: yes" >&5
12771
echo "${ECHO_T}yes" >&6
12773
echo "$as_me:$LINENO: result: no" >&5
12774
echo "${ECHO_T}no" >&6
12778
echo "$as_me:$LINENO: result: no" >&5
12779
echo "${ECHO_T}no" >&6
12784
if test "x$enable_dlopen" != xyes; then
12785
enable_dlopen=unknown
12786
enable_dlopen_self=unknown
12787
enable_dlopen_self_static=unknown
12794
lt_cv_dlopen="load_add_on"
12796
lt_cv_dlopen_self=yes
12800
lt_cv_dlopen="LoadLibrary"
12805
lt_cv_dlopen="dlopen"
12810
# if libdl is installed we need to link against it
12811
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12812
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12813
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12814
echo $ECHO_N "(cached) $ECHO_C" >&6
12816
ac_check_lib_save_LIBS=$LIBS
12818
cat >conftest.$ac_ext <<_ACEOF
12821
cat confdefs.h >>conftest.$ac_ext
12822
cat >>conftest.$ac_ext <<_ACEOF
12823
/* end confdefs.h. */
12825
/* Override any gcc2 internal prototype to avoid an error. */
12829
/* We use char because int might match the return type of a gcc2
12830
builtin and then its argument prototype would still apply. */
12840
rm -f conftest.$ac_objext conftest$ac_exeext
12841
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12842
(eval $ac_link) 2>conftest.er1
12844
grep -v '^ *+' conftest.er1 >conftest.err
12846
cat conftest.err >&5
12847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848
(exit $ac_status); } &&
12849
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12850
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12851
(eval $ac_try) 2>&5
12853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854
(exit $ac_status); }; } &&
12855
{ ac_try='test -s conftest$ac_exeext'
12856
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12857
(eval $ac_try) 2>&5
12859
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860
(exit $ac_status); }; }; then
12861
ac_cv_lib_dl_dlopen=yes
12863
echo "$as_me: failed program was:" >&5
12864
sed 's/^/| /' conftest.$ac_ext >&5
12866
ac_cv_lib_dl_dlopen=no
12868
rm -f conftest.err conftest.$ac_objext \
12869
conftest$ac_exeext conftest.$ac_ext
12870
LIBS=$ac_check_lib_save_LIBS
12872
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12873
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12874
if test $ac_cv_lib_dl_dlopen = yes; then
12875
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12878
lt_cv_dlopen="dyld"
12880
lt_cv_dlopen_self=yes
12887
echo "$as_me:$LINENO: checking for shl_load" >&5
12888
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12889
if test "${ac_cv_func_shl_load+set}" = set; then
12890
echo $ECHO_N "(cached) $ECHO_C" >&6
12892
cat >conftest.$ac_ext <<_ACEOF
12895
cat confdefs.h >>conftest.$ac_ext
12896
cat >>conftest.$ac_ext <<_ACEOF
12897
/* end confdefs.h. */
12898
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12899
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12900
#define shl_load innocuous_shl_load
12902
/* System header to define __stub macros and hopefully few prototypes,
12903
which can conflict with char shl_load (); below.
12904
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12905
<limits.h> exists even on freestanding compilers. */
12908
# include <limits.h>
12910
# include <assert.h>
12915
/* Override any gcc2 internal prototype to avoid an error. */
12920
/* We use char because int might match the return type of a gcc2
12921
builtin and then its argument prototype would still apply. */
12923
/* The GNU C library defines this for functions which it implements
12924
to always fail with ENOSYS. Some functions are actually named
12925
something starting with __ and the normal name is an alias. */
12926
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12929
char (*f) () = shl_load;
12938
return f != shl_load;
12943
rm -f conftest.$ac_objext conftest$ac_exeext
12944
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12945
(eval $ac_link) 2>conftest.er1
12947
grep -v '^ *+' conftest.er1 >conftest.err
12949
cat conftest.err >&5
12950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951
(exit $ac_status); } &&
12952
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12953
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12954
(eval $ac_try) 2>&5
12956
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957
(exit $ac_status); }; } &&
12958
{ ac_try='test -s conftest$ac_exeext'
12959
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12960
(eval $ac_try) 2>&5
12962
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963
(exit $ac_status); }; }; then
12964
ac_cv_func_shl_load=yes
12966
echo "$as_me: failed program was:" >&5
12967
sed 's/^/| /' conftest.$ac_ext >&5
12969
ac_cv_func_shl_load=no
12971
rm -f conftest.err conftest.$ac_objext \
12972
conftest$ac_exeext conftest.$ac_ext
12974
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12975
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12976
if test $ac_cv_func_shl_load = yes; then
12977
lt_cv_dlopen="shl_load"
12979
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12980
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12981
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12982
echo $ECHO_N "(cached) $ECHO_C" >&6
12984
ac_check_lib_save_LIBS=$LIBS
12986
cat >conftest.$ac_ext <<_ACEOF
12989
cat confdefs.h >>conftest.$ac_ext
12990
cat >>conftest.$ac_ext <<_ACEOF
12991
/* end confdefs.h. */
12993
/* Override any gcc2 internal prototype to avoid an error. */
12997
/* We use char because int might match the return type of a gcc2
12998
builtin and then its argument prototype would still apply. */
13008
rm -f conftest.$ac_objext conftest$ac_exeext
13009
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13010
(eval $ac_link) 2>conftest.er1
13012
grep -v '^ *+' conftest.er1 >conftest.err
13014
cat conftest.err >&5
13015
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016
(exit $ac_status); } &&
13017
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13018
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13019
(eval $ac_try) 2>&5
13021
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022
(exit $ac_status); }; } &&
13023
{ ac_try='test -s conftest$ac_exeext'
13024
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13025
(eval $ac_try) 2>&5
13027
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028
(exit $ac_status); }; }; then
13029
ac_cv_lib_dld_shl_load=yes
13031
echo "$as_me: failed program was:" >&5
13032
sed 's/^/| /' conftest.$ac_ext >&5
13034
ac_cv_lib_dld_shl_load=no
13036
rm -f conftest.err conftest.$ac_objext \
13037
conftest$ac_exeext conftest.$ac_ext
13038
LIBS=$ac_check_lib_save_LIBS
13040
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13041
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13042
if test $ac_cv_lib_dld_shl_load = yes; then
13043
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13045
echo "$as_me:$LINENO: checking for dlopen" >&5
13046
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13047
if test "${ac_cv_func_dlopen+set}" = set; then
13048
echo $ECHO_N "(cached) $ECHO_C" >&6
13050
cat >conftest.$ac_ext <<_ACEOF
13053
cat confdefs.h >>conftest.$ac_ext
13054
cat >>conftest.$ac_ext <<_ACEOF
13055
/* end confdefs.h. */
13056
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13057
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13058
#define dlopen innocuous_dlopen
13060
/* System header to define __stub macros and hopefully few prototypes,
13061
which can conflict with char dlopen (); below.
13062
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13063
<limits.h> exists even on freestanding compilers. */
13066
# include <limits.h>
13068
# include <assert.h>
13073
/* Override any gcc2 internal prototype to avoid an error. */
13078
/* We use char because int might match the return type of a gcc2
13079
builtin and then its argument prototype would still apply. */
13081
/* The GNU C library defines this for functions which it implements
13082
to always fail with ENOSYS. Some functions are actually named
13083
something starting with __ and the normal name is an alias. */
13084
#if defined (__stub_dlopen) || defined (__stub___dlopen)
13087
char (*f) () = dlopen;
13096
return f != dlopen;
13101
rm -f conftest.$ac_objext conftest$ac_exeext
13102
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13103
(eval $ac_link) 2>conftest.er1
13105
grep -v '^ *+' conftest.er1 >conftest.err
13107
cat conftest.err >&5
13108
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109
(exit $ac_status); } &&
13110
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13111
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13112
(eval $ac_try) 2>&5
13114
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115
(exit $ac_status); }; } &&
13116
{ ac_try='test -s conftest$ac_exeext'
13117
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13118
(eval $ac_try) 2>&5
13120
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121
(exit $ac_status); }; }; then
13122
ac_cv_func_dlopen=yes
13124
echo "$as_me: failed program was:" >&5
13125
sed 's/^/| /' conftest.$ac_ext >&5
13127
ac_cv_func_dlopen=no
13129
rm -f conftest.err conftest.$ac_objext \
13130
conftest$ac_exeext conftest.$ac_ext
13132
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13133
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13134
if test $ac_cv_func_dlopen = yes; then
13135
lt_cv_dlopen="dlopen"
13137
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13138
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13139
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13140
echo $ECHO_N "(cached) $ECHO_C" >&6
13142
ac_check_lib_save_LIBS=$LIBS
13144
cat >conftest.$ac_ext <<_ACEOF
13147
cat confdefs.h >>conftest.$ac_ext
13148
cat >>conftest.$ac_ext <<_ACEOF
13149
/* end confdefs.h. */
13151
/* Override any gcc2 internal prototype to avoid an error. */
13155
/* We use char because int might match the return type of a gcc2
13156
builtin and then its argument prototype would still apply. */
13166
rm -f conftest.$ac_objext conftest$ac_exeext
13167
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13168
(eval $ac_link) 2>conftest.er1
13170
grep -v '^ *+' conftest.er1 >conftest.err
13172
cat conftest.err >&5
13173
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174
(exit $ac_status); } &&
13175
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13176
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13177
(eval $ac_try) 2>&5
13179
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180
(exit $ac_status); }; } &&
13181
{ ac_try='test -s conftest$ac_exeext'
13182
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13183
(eval $ac_try) 2>&5
13185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186
(exit $ac_status); }; }; then
13187
ac_cv_lib_dl_dlopen=yes
13189
echo "$as_me: failed program was:" >&5
13190
sed 's/^/| /' conftest.$ac_ext >&5
13192
ac_cv_lib_dl_dlopen=no
13194
rm -f conftest.err conftest.$ac_objext \
13195
conftest$ac_exeext conftest.$ac_ext
13196
LIBS=$ac_check_lib_save_LIBS
13198
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13199
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13200
if test $ac_cv_lib_dl_dlopen = yes; then
13201
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13203
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13204
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13205
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13206
echo $ECHO_N "(cached) $ECHO_C" >&6
13208
ac_check_lib_save_LIBS=$LIBS
13209
LIBS="-lsvld $LIBS"
13210
cat >conftest.$ac_ext <<_ACEOF
13213
cat confdefs.h >>conftest.$ac_ext
13214
cat >>conftest.$ac_ext <<_ACEOF
13215
/* end confdefs.h. */
13217
/* Override any gcc2 internal prototype to avoid an error. */
13221
/* We use char because int might match the return type of a gcc2
13222
builtin and then its argument prototype would still apply. */
13232
rm -f conftest.$ac_objext conftest$ac_exeext
13233
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13234
(eval $ac_link) 2>conftest.er1
13236
grep -v '^ *+' conftest.er1 >conftest.err
13238
cat conftest.err >&5
13239
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240
(exit $ac_status); } &&
13241
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13242
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13243
(eval $ac_try) 2>&5
13245
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246
(exit $ac_status); }; } &&
13247
{ ac_try='test -s conftest$ac_exeext'
13248
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249
(eval $ac_try) 2>&5
13251
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252
(exit $ac_status); }; }; then
13253
ac_cv_lib_svld_dlopen=yes
13255
echo "$as_me: failed program was:" >&5
13256
sed 's/^/| /' conftest.$ac_ext >&5
13258
ac_cv_lib_svld_dlopen=no
13260
rm -f conftest.err conftest.$ac_objext \
13261
conftest$ac_exeext conftest.$ac_ext
13262
LIBS=$ac_check_lib_save_LIBS
13264
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13265
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13266
if test $ac_cv_lib_svld_dlopen = yes; then
13267
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13269
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13270
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13271
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13272
echo $ECHO_N "(cached) $ECHO_C" >&6
13274
ac_check_lib_save_LIBS=$LIBS
13276
cat >conftest.$ac_ext <<_ACEOF
13279
cat confdefs.h >>conftest.$ac_ext
13280
cat >>conftest.$ac_ext <<_ACEOF
13281
/* end confdefs.h. */
13283
/* Override any gcc2 internal prototype to avoid an error. */
13287
/* We use char because int might match the return type of a gcc2
13288
builtin and then its argument prototype would still apply. */
13298
rm -f conftest.$ac_objext conftest$ac_exeext
13299
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13300
(eval $ac_link) 2>conftest.er1
13302
grep -v '^ *+' conftest.er1 >conftest.err
13304
cat conftest.err >&5
13305
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306
(exit $ac_status); } &&
13307
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13308
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13309
(eval $ac_try) 2>&5
13311
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312
(exit $ac_status); }; } &&
13313
{ ac_try='test -s conftest$ac_exeext'
13314
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315
(eval $ac_try) 2>&5
13317
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318
(exit $ac_status); }; }; then
13319
ac_cv_lib_dld_dld_link=yes
13321
echo "$as_me: failed program was:" >&5
13322
sed 's/^/| /' conftest.$ac_ext >&5
13324
ac_cv_lib_dld_dld_link=no
13326
rm -f conftest.err conftest.$ac_objext \
13327
conftest$ac_exeext conftest.$ac_ext
13328
LIBS=$ac_check_lib_save_LIBS
13330
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13331
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13332
if test $ac_cv_lib_dld_dld_link = yes; then
13333
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13354
if test "x$lt_cv_dlopen" != xno; then
13360
case $lt_cv_dlopen in
13362
save_CPPFLAGS="$CPPFLAGS"
13363
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13365
save_LDFLAGS="$LDFLAGS"
13366
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13369
LIBS="$lt_cv_dlopen_libs $LIBS"
13371
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13372
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13373
if test "${lt_cv_dlopen_self+set}" = set; then
13374
echo $ECHO_N "(cached) $ECHO_C" >&6
13376
if test "$cross_compiling" = yes; then :
13377
lt_cv_dlopen_self=cross
13379
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13380
lt_status=$lt_dlunknown
13381
cat > conftest.$ac_ext <<EOF
13382
#line 13382 "configure"
13383
#include "confdefs.h"
13392
# define LT_DLGLOBAL RTLD_GLOBAL
13395
# define LT_DLGLOBAL DL_GLOBAL
13397
# define LT_DLGLOBAL 0
13401
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13402
find out it does not work in some platform. */
13403
#ifndef LT_DLLAZY_OR_NOW
13405
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13408
# define LT_DLLAZY_OR_NOW DL_LAZY
13411
# define LT_DLLAZY_OR_NOW RTLD_NOW
13414
# define LT_DLLAZY_OR_NOW DL_NOW
13416
# define LT_DLLAZY_OR_NOW 0
13424
extern "C" void exit (int);
13427
void fnord() { int i=42;}
13430
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13431
int status = $lt_dlunknown;
13435
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13436
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13437
/* dlclose (self); */
13443
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13444
(eval $ac_link) 2>&5
13446
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13448
(./conftest; exit; ) 2>/dev/null
13450
case x$lt_status in
13451
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13452
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13453
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13456
# compilation failed
13457
lt_cv_dlopen_self=no
13464
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13465
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13467
if test "x$lt_cv_dlopen_self" = xyes; then
13468
LDFLAGS="$LDFLAGS $link_static_flag"
13469
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13470
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13471
if test "${lt_cv_dlopen_self_static+set}" = set; then
13472
echo $ECHO_N "(cached) $ECHO_C" >&6
13474
if test "$cross_compiling" = yes; then :
13475
lt_cv_dlopen_self_static=cross
13477
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13478
lt_status=$lt_dlunknown
13479
cat > conftest.$ac_ext <<EOF
13480
#line 13480 "configure"
13481
#include "confdefs.h"
13490
# define LT_DLGLOBAL RTLD_GLOBAL
13493
# define LT_DLGLOBAL DL_GLOBAL
13495
# define LT_DLGLOBAL 0
13499
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13500
find out it does not work in some platform. */
13501
#ifndef LT_DLLAZY_OR_NOW
13503
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13506
# define LT_DLLAZY_OR_NOW DL_LAZY
13509
# define LT_DLLAZY_OR_NOW RTLD_NOW
13512
# define LT_DLLAZY_OR_NOW DL_NOW
13514
# define LT_DLLAZY_OR_NOW 0
13522
extern "C" void exit (int);
13525
void fnord() { int i=42;}
13528
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13529
int status = $lt_dlunknown;
13533
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13534
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13535
/* dlclose (self); */
13541
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13542
(eval $ac_link) 2>&5
13544
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13546
(./conftest; exit; ) 2>/dev/null
13548
case x$lt_status in
13549
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13550
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13551
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13554
# compilation failed
13555
lt_cv_dlopen_self_static=no
13562
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13563
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13566
CPPFLAGS="$save_CPPFLAGS"
13567
LDFLAGS="$save_LDFLAGS"
13572
case $lt_cv_dlopen_self in
13573
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13574
*) enable_dlopen_self=unknown ;;
13577
case $lt_cv_dlopen_self_static in
13578
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13579
*) enable_dlopen_self_static=unknown ;;
13584
# The else clause should only fire when bootstrapping the
13585
# libtool distribution, otherwise you forgot to ship ltmain.sh
13586
# with your package, and you will get complaints that there are
13587
# no rules to generate ltmain.sh.
13588
if test -f "$ltmain"; then
13589
# See if we are running on zsh, and set the options which allow our commands through
13590
# without removal of \ escapes.
13591
if test -n "${ZSH_VERSION+set}" ; then
13592
setopt NO_GLOB_SUBST
13594
# Now quote all the things that may contain metacharacters while being
13595
# careful not to overquote the AC_SUBSTed values. We take copies of the
13596
# variables and quote the copies for generation of the libtool script.
13597
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13599
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13600
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13601
deplibs_check_method reload_flag reload_cmds need_locks \
13602
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13603
lt_cv_sys_global_symbol_to_c_name_address \
13604
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13605
old_postinstall_cmds old_postuninstall_cmds \
13609
lt_prog_compiler_wl_CXX \
13610
lt_prog_compiler_pic_CXX \
13611
lt_prog_compiler_static_CXX \
13612
lt_prog_compiler_no_builtin_flag_CXX \
13613
export_dynamic_flag_spec_CXX \
13614
thread_safe_flag_spec_CXX \
13615
whole_archive_flag_spec_CXX \
13616
enable_shared_with_static_runtimes_CXX \
13617
old_archive_cmds_CXX \
13618
old_archive_from_new_cmds_CXX \
13619
predep_objects_CXX \
13620
postdep_objects_CXX \
13623
compiler_lib_search_path_CXX \
13625
archive_expsym_cmds_CXX \
13626
postinstall_cmds_CXX \
13627
postuninstall_cmds_CXX \
13628
old_archive_from_expsyms_cmds_CXX \
13629
allow_undefined_flag_CXX \
13630
no_undefined_flag_CXX \
13631
export_symbols_cmds_CXX \
13632
hardcode_libdir_flag_spec_CXX \
13633
hardcode_libdir_flag_spec_ld_CXX \
13634
hardcode_libdir_separator_CXX \
13635
hardcode_automatic_CXX \
13637
module_expsym_cmds_CXX \
13638
lt_cv_prog_compiler_c_o_CXX \
13639
exclude_expsyms_CXX \
13640
include_expsyms_CXX; do
13643
old_archive_cmds_CXX | \
13644
old_archive_from_new_cmds_CXX | \
13645
archive_cmds_CXX | \
13646
archive_expsym_cmds_CXX | \
13647
module_cmds_CXX | \
13648
module_expsym_cmds_CXX | \
13649
old_archive_from_expsyms_cmds_CXX | \
13650
export_symbols_cmds_CXX | \
13651
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13652
postinstall_cmds | postuninstall_cmds | \
13653
old_postinstall_cmds | old_postuninstall_cmds | \
13654
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13655
# Double-quote double-evaled strings.
13656
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13659
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13665
*'\$0 --fallback-echo"')
13666
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13672
cat <<__EOF__ >> "$cfgfile"
13673
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13675
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13677
# Shell to use when invoking shell scripts.
13680
# Whether or not to build shared libraries.
13681
build_libtool_libs=$enable_shared
13683
# Whether or not to build static libraries.
13684
build_old_libs=$enable_static
13686
# Whether or not to add -lc for building shared libraries.
13687
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13689
# Whether or not to disallow shared libs when runtime libs are static
13690
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13692
# Whether or not to optimize for fast installation.
13693
fast_install=$enable_fast_install
13696
host_alias=$host_alias
13699
# An echo program that does not interpret backslashes.
13704
AR_FLAGS=$lt_AR_FLAGS
13709
# A language-specific compiler.
13710
CC=$lt_compiler_CXX
13712
# Is the compiler the GNU C compiler?
13718
# The linker used to build libraries.
13721
# Whether we need hard or soft links.
13724
# A BSD-compatible nm program.
13727
# A symbol stripping program
13730
# Used to examine libraries when file_magic_cmd begins "file"
13731
MAGIC_CMD=$MAGIC_CMD
13733
# Used on cygwin: DLL creation program.
13736
# Used on cygwin: object dumper.
13739
# Used on cygwin: assembler.
13742
# The name of the directory that contains temporary libtool files.
13745
# How to create reloadable object files.
13746
reload_flag=$lt_reload_flag
13747
reload_cmds=$lt_reload_cmds
13749
# How to pass a linker flag through the compiler.
13750
wl=$lt_lt_prog_compiler_wl_CXX
13752
# Object file suffix (normally "o").
13753
objext="$ac_objext"
13755
# Old archive suffix (normally "a").
13758
# Shared library suffix (normally ".so").
13761
# Executable file suffix (normally "").
13764
# Additional compiler flags for building library objects.
13765
pic_flag=$lt_lt_prog_compiler_pic_CXX
13768
# What is the maximum length of a command?
13769
max_cmd_len=$lt_cv_sys_max_cmd_len
13771
# Does compiler simultaneously support -c and -o options?
13772
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13774
# Must we lock files when doing compilation ?
13775
need_locks=$lt_need_locks
13777
# Do we need the lib prefix for modules?
13778
need_lib_prefix=$need_lib_prefix
13780
# Do we need a version for libraries?
13781
need_version=$need_version
13783
# Whether dlopen is supported.
13784
dlopen_support=$enable_dlopen
13786
# Whether dlopen of programs is supported.
13787
dlopen_self=$enable_dlopen_self
13789
# Whether dlopen of statically linked programs is supported.
13790
dlopen_self_static=$enable_dlopen_self_static
13792
# Compiler flag to prevent dynamic linking.
13793
link_static_flag=$lt_lt_prog_compiler_static_CXX
13795
# Compiler flag to turn off builtin functions.
13796
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13798
# Compiler flag to allow reflexive dlopens.
13799
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13801
# Compiler flag to generate shared objects directly from archives.
13802
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13804
# Compiler flag to generate thread-safe objects.
13805
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13807
# Library versioning type.
13808
version_type=$version_type
13810
# Format of library name prefix.
13811
libname_spec=$lt_libname_spec
13813
# List of archive names. First name is the real one, the rest are links.
13814
# The last name is the one that the linker finds with -lNAME.
13815
library_names_spec=$lt_library_names_spec
13817
# The coded name of the library, if different from the real name.
13818
soname_spec=$lt_soname_spec
13820
# Commands used to build and install an old-style archive.
13822
old_archive_cmds=$lt_old_archive_cmds_CXX
13823
old_postinstall_cmds=$lt_old_postinstall_cmds
13824
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13826
# Create an old-style archive from a shared archive.
13827
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13829
# Create a temporary old-style archive to link instead of a shared archive.
13830
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13832
# Commands used to build and install a shared archive.
13833
archive_cmds=$lt_archive_cmds_CXX
13834
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13835
postinstall_cmds=$lt_postinstall_cmds
13836
postuninstall_cmds=$lt_postuninstall_cmds
13838
# Commands used to build a loadable module (assumed same as above if empty)
13839
module_cmds=$lt_module_cmds_CXX
13840
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13842
# Commands to strip libraries.
13843
old_striplib=$lt_old_striplib
13844
striplib=$lt_striplib
13846
# Dependencies to place before the objects being linked to create a
13848
predep_objects=$lt_predep_objects_CXX
13850
# Dependencies to place after the objects being linked to create a
13852
postdep_objects=$lt_postdep_objects_CXX
13854
# Dependencies to place before the objects being linked to create a
13856
predeps=$lt_predeps_CXX
13858
# Dependencies to place after the objects being linked to create a
13860
postdeps=$lt_postdeps_CXX
13862
# The library search path used internally by the compiler when linking
13863
# a shared library.
13864
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13866
# Method to check whether dependent libraries are shared objects.
13867
deplibs_check_method=$lt_deplibs_check_method
13869
# Command to use when deplibs_check_method == file_magic.
13870
file_magic_cmd=$lt_file_magic_cmd
13872
# Flag that allows shared libraries with undefined symbols to be built.
13873
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13875
# Flag that forces no undefined symbols.
13876
no_undefined_flag=$lt_no_undefined_flag_CXX
13878
# Commands used to finish a libtool library installation in a directory.
13879
finish_cmds=$lt_finish_cmds
13881
# Same as above, but a single script fragment to be evaled but not shown.
13882
finish_eval=$lt_finish_eval
13884
# Take the output of nm and produce a listing of raw symbols and C names.
13885
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13887
# Transform the output of nm in a proper C declaration
13888
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13890
# Transform the output of nm in a C name address pair
13891
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13893
# This is the shared library runtime path variable.
13894
runpath_var=$runpath_var
13896
# This is the shared library path variable.
13897
shlibpath_var=$shlibpath_var
13899
# Is shlibpath searched before the hard-coded library search path?
13900
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13902
# How to hardcode a shared library path into an executable.
13903
hardcode_action=$hardcode_action_CXX
13905
# Whether we should hardcode library paths into libraries.
13906
hardcode_into_libs=$hardcode_into_libs
13908
# Flag to hardcode \$libdir into a binary during linking.
13909
# This must work even if \$libdir does not exist.
13910
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13912
# If ld is used when linking, flag to hardcode \$libdir into
13913
# a binary during linking. This must work even if \$libdir does
13915
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13917
# Whether we need a single -rpath flag with a separated argument.
13918
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13920
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13921
# resulting binary.
13922
hardcode_direct=$hardcode_direct_CXX
13924
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13925
# resulting binary.
13926
hardcode_minus_L=$hardcode_minus_L_CXX
13928
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13929
# the resulting binary.
13930
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13932
# Set to yes if building a shared library automatically hardcodes DIR into the library
13933
# and all subsequent libraries and executables linked against it.
13934
hardcode_automatic=$hardcode_automatic_CXX
13936
# Variables whose values should be saved in libtool wrapper scripts and
13937
# restored at relink time.
13938
variables_saved_for_relink="$variables_saved_for_relink"
13940
# Whether libtool must link a program against all its dependency libraries.
13941
link_all_deplibs=$link_all_deplibs_CXX
13943
# Compile-time system search path for libraries
13944
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13946
# Run-time system search path for libraries
13947
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13949
# Fix the shell variable \$srcfile for the compiler.
13950
fix_srcfile_path="$fix_srcfile_path_CXX"
13952
# Set to yes if exported symbols are required.
13953
always_export_symbols=$always_export_symbols_CXX
13955
# The commands to list exported symbols.
13956
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13958
# The commands to extract the exported symbol list from a shared archive.
13959
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13961
# Symbols that should not be listed in the preloaded symbols.
13962
exclude_expsyms=$lt_exclude_expsyms_CXX
13964
# Symbols that must always be exported.
13965
include_expsyms=$lt_include_expsyms_CXX
13967
# ### END LIBTOOL TAG CONFIG: $tagname
13973
# If there is no Makefile yet, we rely on a make rule to execute
13974
# `config.status --recheck' to rerun these tests and create the
13975
# libtool script then.
13976
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13977
if test -f "$ltmain_in"; then
13978
test -f Makefile && make "$ltmain"
13984
ac_cpp='$CPP $CPPFLAGS'
13985
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13986
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13987
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13993
with_gnu_ldcxx=$with_gnu_ld
13994
with_gnu_ld=$lt_save_with_gnu_ld
13995
lt_cv_path_LDCXX=$lt_cv_path_LD
13996
lt_cv_path_LD=$lt_save_path_LD
13997
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13998
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14006
if test -n "$F77" && test "X$F77" != "Xno"; then
14009
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14010
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14011
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14014
archive_cmds_need_lc_F77=no
14015
allow_undefined_flag_F77=
14016
always_export_symbols_F77=no
14017
archive_expsym_cmds_F77=
14018
export_dynamic_flag_spec_F77=
14019
hardcode_direct_F77=no
14020
hardcode_libdir_flag_spec_F77=
14021
hardcode_libdir_flag_spec_ld_F77=
14022
hardcode_libdir_separator_F77=
14023
hardcode_minus_L_F77=no
14024
hardcode_automatic_F77=no
14026
module_expsym_cmds_F77=
14027
link_all_deplibs_F77=unknown
14028
old_archive_cmds_F77=$old_archive_cmds
14029
no_undefined_flag_F77=
14030
whole_archive_flag_spec_F77=
14031
enable_shared_with_static_runtimes_F77=no
14033
# Source file extension for f77 test sources.
14036
# Object file extension for compiled f77 test sources.
14040
# Code to be used in simple compile tests
14041
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14043
# Code to be used in simple link tests
14044
lt_simple_link_test_code=" program t\n end\n"
14046
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14048
# If no C compiler was specified, use CC.
14051
# Allow CC to be a program name with arguments.
14055
# Allow CC to be a program name with arguments.
14060
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14062
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14063
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14064
echo "$as_me:$LINENO: result: $can_build_shared" >&5
14065
echo "${ECHO_T}$can_build_shared" >&6
14067
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14068
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14069
test "$can_build_shared" = "no" && enable_shared=no
14071
# On AIX, shared libraries and static libraries use the same namespace, and
14072
# are all built from PIC.
14075
test "$enable_shared" = yes && enable_static=no
14076
if test -n "$RANLIB"; then
14077
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14078
postinstall_cmds='$RANLIB $lib'
14082
test "$enable_shared" = yes && enable_static=no
14085
echo "$as_me:$LINENO: result: $enable_shared" >&5
14086
echo "${ECHO_T}$enable_shared" >&6
14088
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14089
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14090
# Make sure either enable_shared or enable_static is yes.
14091
test "$enable_shared" = yes || enable_static=yes
14092
echo "$as_me:$LINENO: result: $enable_static" >&5
14093
echo "${ECHO_T}$enable_static" >&6
14095
test "$ld_shlibs_F77" = no && can_build_shared=no
14100
lt_prog_compiler_wl_F77=
14101
lt_prog_compiler_pic_F77=
14102
lt_prog_compiler_static_F77=
14104
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14105
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14107
if test "$GCC" = yes; then
14108
lt_prog_compiler_wl_F77='-Wl,'
14109
lt_prog_compiler_static_F77='-static'
14113
# All AIX code is PIC.
14114
if test "$host_cpu" = ia64; then
14115
# AIX 5 now supports IA64 processor
14116
lt_prog_compiler_static_F77='-Bstatic'
14121
# FIXME: we need at least 68020 code to build shared libraries, but
14122
# adding the `-m68020' flag to GCC prevents building anything better,
14124
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14127
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14128
# PIC is the default for these OSes.
14131
mingw* | pw32* | os2*)
14132
# This hack is so that the source file can tell whether it is being
14133
# built for inclusion in a dll (and should export symbols for example).
14134
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14137
darwin* | rhapsody*)
14138
# PIC is the default on this platform
14139
# Common symbols not allowed in MH_DYLIB files
14140
lt_prog_compiler_pic_F77='-fno-common'
14144
# Just because we use GCC doesn't mean we suddenly get shared libraries
14145
# on systems that don't support them.
14146
lt_prog_compiler_can_build_shared_F77=no
14151
if test -d /usr/nec; then
14152
lt_prog_compiler_pic_F77=-Kconform_pic
14157
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14158
# not for PA HP-UX.
14159
case "$host_cpu" in
14164
lt_prog_compiler_pic_F77='-fPIC'
14170
lt_prog_compiler_pic_F77='-fPIC'
14174
# PORTME Check for flag to pass linker flags through the system compiler.
14177
lt_prog_compiler_wl_F77='-Wl,'
14178
if test "$host_cpu" = ia64; then
14179
# AIX 5 now supports IA64 processor
14180
lt_prog_compiler_static_F77='-Bstatic'
14182
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14186
mingw* | pw32* | os2*)
14187
# This hack is so that the source file can tell whether it is being
14188
# built for inclusion in a dll (and should export symbols for example).
14189
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14192
hpux9* | hpux10* | hpux11*)
14193
lt_prog_compiler_wl_F77='-Wl,'
14194
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14195
# not for PA HP-UX.
14196
case "$host_cpu" in
14201
lt_prog_compiler_pic_F77='+Z'
14204
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14205
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14208
irix5* | irix6* | nonstopux*)
14209
lt_prog_compiler_wl_F77='-Wl,'
14210
# PIC (with -KPIC) is the default.
14211
lt_prog_compiler_static_F77='-non_shared'
14215
lt_prog_compiler_pic_F77='-KPIC'
14216
lt_prog_compiler_static_F77='-Bstatic'
14222
lt_prog_compiler_wl_F77='-Wl,'
14223
lt_prog_compiler_pic_F77='-KPIC'
14224
lt_prog_compiler_static_F77='-static'
14227
lt_prog_compiler_wl_F77='-Wl,'
14228
# All Alpha code is PIC.
14229
lt_prog_compiler_static_F77='-non_shared'
14234
osf3* | osf4* | osf5*)
14235
lt_prog_compiler_wl_F77='-Wl,'
14236
# All OSF/1 code is PIC.
14237
lt_prog_compiler_static_F77='-non_shared'
14241
lt_prog_compiler_pic_F77='-Kpic'
14242
lt_prog_compiler_static_F77='-dn'
14246
lt_prog_compiler_wl_F77='-Wl,'
14247
lt_prog_compiler_pic_F77='-KPIC'
14248
lt_prog_compiler_static_F77='-Bstatic'
14252
lt_prog_compiler_wl_F77='-Qoption ld '
14253
lt_prog_compiler_pic_F77='-PIC'
14254
lt_prog_compiler_static_F77='-Bstatic'
14257
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14258
lt_prog_compiler_wl_F77='-Wl,'
14259
lt_prog_compiler_pic_F77='-KPIC'
14260
lt_prog_compiler_static_F77='-Bstatic'
14264
if test -d /usr/nec ;then
14265
lt_prog_compiler_pic_F77='-Kconform_pic'
14266
lt_prog_compiler_static_F77='-Bstatic'
14271
lt_prog_compiler_pic_F77='-pic'
14272
lt_prog_compiler_static_F77='-Bstatic'
14276
lt_prog_compiler_can_build_shared_F77=no
14281
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14282
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14285
# Check to make sure the PIC flag actually works.
14287
if test -n "$lt_prog_compiler_pic_F77"; then
14289
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14290
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14291
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14292
echo $ECHO_N "(cached) $ECHO_C" >&6
14294
lt_prog_compiler_pic_works_F77=no
14295
ac_outfile=conftest.$ac_objext
14296
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14297
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14298
# Insert the option either (1) after the last *FLAGS variable, or
14299
# (2) before a word containing "conftest.", or (3) at the end.
14300
# Note that $ac_compile itself does not contain backslashes and begins
14301
# with a dollar sign (not a hyphen), so the echo should work correctly.
14302
# The option is referenced via a variable to avoid confusing sed.
14303
lt_compile=`echo "$ac_compile" | $SED \
14304
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14305
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14306
-e 's:$: $lt_compiler_flag:'`
14307
(eval echo "\"\$as_me:14307: $lt_compile\"" >&5)
14308
(eval "$lt_compile" 2>conftest.err)
14310
cat conftest.err >&5
14311
echo "$as_me:14311: \$? = $ac_status" >&5
14312
if (exit $ac_status) && test -s "$ac_outfile"; then
14313
# The compiler can only warn and ignore the option if not recognized
14314
# So say no if there are warnings
14315
if test ! -s conftest.err; then
14316
lt_prog_compiler_pic_works_F77=yes
14322
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14323
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14325
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14326
case $lt_prog_compiler_pic_F77 in
14328
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14331
lt_prog_compiler_pic_F77=
14332
lt_prog_compiler_can_build_shared_F77=no
14337
# For platforms which do not support PIC, -DPIC is meaningless:
14339
lt_prog_compiler_pic_F77=
14342
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14346
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14347
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14348
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14349
echo $ECHO_N "(cached) $ECHO_C" >&6
14351
lt_cv_prog_compiler_c_o_F77=no
14352
$rm -r conftest 2>/dev/null
14356
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14358
lt_compiler_flag="-o out/conftest2.$ac_objext"
14359
# Insert the option either (1) after the last *FLAGS variable, or
14360
# (2) before a word containing "conftest.", or (3) at the end.
14361
# Note that $ac_compile itself does not contain backslashes and begins
14362
# with a dollar sign (not a hyphen), so the echo should work correctly.
14363
lt_compile=`echo "$ac_compile" | $SED \
14364
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14365
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14366
-e 's:$: $lt_compiler_flag:'`
14367
(eval echo "\"\$as_me:14367: $lt_compile\"" >&5)
14368
(eval "$lt_compile" 2>out/conftest.err)
14370
cat out/conftest.err >&5
14371
echo "$as_me:14371: \$? = $ac_status" >&5
14372
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14374
# The compiler can only warn and ignore the option if not recognized
14375
# So say no if there are warnings
14376
if test ! -s out/conftest.err; then
14377
lt_cv_prog_compiler_c_o_F77=yes
14382
# SGI C++ compiler will create directory out/ii_files/ for
14383
# template instantiation
14384
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14385
$rm out/* && rmdir out
14391
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14392
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14395
hard_links="nottested"
14396
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14397
# do not overwrite the value of need_locks provided by the user
14398
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14399
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14402
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14404
ln conftest.a conftest.b 2>&5 || hard_links=no
14405
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14406
echo "$as_me:$LINENO: result: $hard_links" >&5
14407
echo "${ECHO_T}$hard_links" >&6
14408
if test "$hard_links" = no; then
14409
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14410
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14417
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14418
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14421
allow_undefined_flag_F77=
14422
enable_shared_with_static_runtimes_F77=no
14424
archive_expsym_cmds_F77=
14425
old_archive_From_new_cmds_F77=
14426
old_archive_from_expsyms_cmds_F77=
14427
export_dynamic_flag_spec_F77=
14428
whole_archive_flag_spec_F77=
14429
thread_safe_flag_spec_F77=
14430
hardcode_libdir_flag_spec_F77=
14431
hardcode_libdir_flag_spec_ld_F77=
14432
hardcode_libdir_separator_F77=
14433
hardcode_direct_F77=no
14434
hardcode_minus_L_F77=no
14435
hardcode_shlibpath_var_F77=unsupported
14436
link_all_deplibs_F77=unknown
14437
hardcode_automatic_F77=no
14439
module_expsym_cmds_F77=
14440
always_export_symbols_F77=no
14441
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14442
# include_expsyms should be a list of space-separated symbols to be *always*
14443
# included in the symbol list
14444
include_expsyms_F77=
14445
# exclude_expsyms can be an extended regexp of symbols to exclude
14446
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14447
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14448
# as well as any symbol that contains `d'.
14449
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14450
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14451
# platforms (ab)use it in PIC code, but their linkers get confused if
14452
# the symbol is explicitly referenced. Since portable code cannot
14453
# rely on this symbol name, it's probably fine to never include it in
14454
# preloaded symbol tables.
14455
extract_expsyms_cmds=
14458
cygwin* | mingw* | pw32*)
14459
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14460
# When not using gcc, we currently assume that we are using
14461
# Microsoft Visual C++.
14462
if test "$GCC" != yes; then
14472
if test "$with_gnu_ld" = yes; then
14473
# If archive_cmds runs LD, not CC, wlarc should be empty
14476
# See if GNU ld supports shared libraries.
14478
aix3* | aix4* | aix5*)
14479
# On AIX/PPC, the GNU linker is very broken
14480
if test "$host_cpu" != ia64; then
14484
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14485
*** to be unable to reliably create shared libraries on AIX.
14486
*** Therefore, libtool is disabling shared libraries support. If you
14487
*** really care for shared libraries, you may want to modify your PATH
14488
*** so that a non-GNU linker is found, and then restart.
14495
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)'
14496
hardcode_libdir_flag_spec_F77='-L$libdir'
14497
hardcode_minus_L_F77=yes
14499
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14500
# that the semantics of dynamic libraries on AmigaOS, at least up
14501
# to version 4, is to share data among multiple programs linked
14502
# with the same dynamic library. Since this doesn't match the
14503
# behavior of shared libraries on other platforms, we can't use
14509
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14510
allow_undefined_flag_F77=unsupported
14511
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14512
# support --undefined. This deserves some investigation. FIXME
14513
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14519
cygwin* | mingw* | pw32*)
14520
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14521
# as there is no search path for DLLs.
14522
hardcode_libdir_flag_spec_F77='-L$libdir'
14523
allow_undefined_flag_F77=unsupported
14524
always_export_symbols_F77=no
14525
enable_shared_with_static_runtimes_F77=yes
14526
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14528
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14529
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14530
# If the export-symbols file already is a .def file (1st line
14531
# is EXPORTS), use it as is; otherwise, prepend...
14532
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14533
cp $export_symbols $output_objdir/$soname.def;
14535
echo EXPORTS > $output_objdir/$soname.def;
14536
cat $export_symbols >> $output_objdir/$soname.def;
14538
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14544
netbsd* | knetbsd*-gnu)
14545
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14546
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14549
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14550
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14555
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14559
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14560
*** create shared libraries on Solaris systems. Therefore, libtool
14561
*** is disabling shared libraries support. We urge you to upgrade GNU
14562
*** binutils to release 2.9.1 or newer. Another option is to modify
14563
*** your PATH or compiler configuration so that the native linker is
14564
*** used, and then restart.
14567
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14568
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14569
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14576
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14578
hardcode_direct_F77=yes
14579
hardcode_shlibpath_var_F77=no
14583
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14584
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14585
archive_cmds_F77="$tmp_archive_cmds"
14586
supports_anon_versioning=no
14587
case `$LD -v 2>/dev/null` in
14588
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14589
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14590
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14591
*\ 2.11.*) ;; # other 2.11 versions
14592
*) supports_anon_versioning=yes ;;
14594
if test $supports_anon_versioning = yes; then
14595
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14596
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14597
$echo "local: *; };" >> $output_objdir/$libname.ver~
14598
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14600
archive_expsym_cmds_F77="$tmp_archive_cmds"
14608
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14609
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14610
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14617
if test "$ld_shlibs_F77" = yes; then
14618
runpath_var=LD_RUN_PATH
14619
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14620
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14621
# ancient GNU ld didn't support --whole-archive et. al.
14622
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14623
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14625
whole_archive_flag_spec_F77=
14629
# PORTME fill in a description of your system's linker (not GNU ld)
14632
allow_undefined_flag_F77=unsupported
14633
always_export_symbols_F77=yes
14634
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'
14635
# Note: this linker hardcodes the directories in LIBPATH if there
14636
# are no directories specified by -L.
14637
hardcode_minus_L_F77=yes
14638
if test "$GCC" = yes && test -z "$link_static_flag"; then
14639
# Neither direct hardcoding nor static linking is supported with a
14641
hardcode_direct_F77=unsupported
14646
if test "$host_cpu" = ia64; then
14647
# On IA64, the linker does run time linking by default, so we don't
14648
# have to do anything special.
14649
aix_use_runtimelinking=no
14650
exp_sym_flag='-Bexport'
14653
# If we're using GNU nm, then we don't want the "-C" option.
14654
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14655
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14656
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'
14658
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'
14660
aix_use_runtimelinking=no
14662
# Test if we are trying to use run time linking or normal
14663
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14664
# need to do runtime linking.
14665
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14666
for ld_flag in $LDFLAGS; do
14667
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14668
aix_use_runtimelinking=yes
14674
exp_sym_flag='-bexport'
14675
no_entry_flag='-bnoentry'
14678
# When large executables or shared objects are built, AIX ld can
14679
# have problems creating the table of contents. If linking a library
14680
# or program results in "error TOC overflow" add -mminimal-toc to
14681
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14682
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14684
archive_cmds_F77=''
14685
hardcode_direct_F77=yes
14686
hardcode_libdir_separator_F77=':'
14687
link_all_deplibs_F77=yes
14689
if test "$GCC" = yes; then
14690
case $host_os in aix4.012|aix4.012.*)
14691
# We only want to do this on AIX 4.2 and lower, the check
14692
# below for broken collect2 doesn't work under 4.3+
14693
collect2name=`${CC} -print-prog-name=collect2`
14694
if test -f "$collect2name" && \
14695
strings "$collect2name" | grep resolve_lib_name >/dev/null
14697
# We have reworked collect2
14698
hardcode_direct_F77=yes
14700
# We have old collect2
14701
hardcode_direct_F77=unsupported
14702
# It fails to find uninstalled libraries when the uninstalled
14703
# path is not listed in the libpath. Setting hardcode_minus_L
14704
# to unsupported forces relinking
14705
hardcode_minus_L_F77=yes
14706
hardcode_libdir_flag_spec_F77='-L$libdir'
14707
hardcode_libdir_separator_F77=
14710
shared_flag='-shared'
14713
if test "$host_cpu" = ia64; then
14714
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14715
# chokes on -Wl,-G. The following line is correct:
14718
if test "$aix_use_runtimelinking" = yes; then
14719
shared_flag='${wl}-G'
14721
shared_flag='${wl}-bM:SRE'
14726
# It seems that -bexpall does not export symbols beginning with
14727
# underscore (_), so it is better to generate a list of symbols to export.
14728
always_export_symbols_F77=yes
14729
if test "$aix_use_runtimelinking" = yes; then
14730
# Warning - without using the other runtime loading flags (-brtl),
14731
# -berok will link without error, but may produce a broken library.
14732
allow_undefined_flag_F77='-berok'
14733
# Determine the default libpath from the value encoded in an empty executable.
14734
cat >conftest.$ac_ext <<_ACEOF
14739
rm -f conftest.$ac_objext conftest$ac_exeext
14740
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14741
(eval $ac_link) 2>conftest.er1
14743
grep -v '^ *+' conftest.er1 >conftest.err
14745
cat conftest.err >&5
14746
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747
(exit $ac_status); } &&
14748
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14749
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14750
(eval $ac_try) 2>&5
14752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753
(exit $ac_status); }; } &&
14754
{ ac_try='test -s conftest$ac_exeext'
14755
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14756
(eval $ac_try) 2>&5
14758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759
(exit $ac_status); }; }; then
14761
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14763
# Check for a 64-bit object if we didn't find anything.
14764
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; }
14767
echo "$as_me: failed program was:" >&5
14768
sed 's/^/| /' conftest.$ac_ext >&5
14771
rm -f conftest.err conftest.$ac_objext \
14772
conftest$ac_exeext conftest.$ac_ext
14773
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14775
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14776
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"
14778
if test "$host_cpu" = ia64; then
14779
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14780
allow_undefined_flag_F77="-z nodefs"
14781
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"
14783
# Determine the default libpath from the value encoded in an empty executable.
14784
cat >conftest.$ac_ext <<_ACEOF
14789
rm -f conftest.$ac_objext conftest$ac_exeext
14790
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14791
(eval $ac_link) 2>conftest.er1
14793
grep -v '^ *+' conftest.er1 >conftest.err
14795
cat conftest.err >&5
14796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797
(exit $ac_status); } &&
14798
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14799
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800
(eval $ac_try) 2>&5
14802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803
(exit $ac_status); }; } &&
14804
{ ac_try='test -s conftest$ac_exeext'
14805
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806
(eval $ac_try) 2>&5
14808
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809
(exit $ac_status); }; }; then
14811
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14813
# Check for a 64-bit object if we didn't find anything.
14814
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; }
14817
echo "$as_me: failed program was:" >&5
14818
sed 's/^/| /' conftest.$ac_ext >&5
14821
rm -f conftest.err conftest.$ac_objext \
14822
conftest$ac_exeext conftest.$ac_ext
14823
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14825
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14826
# Warning - without using the other run time loading flags,
14827
# -berok will link without error, but may produce a broken library.
14828
no_undefined_flag_F77=' ${wl}-bernotok'
14829
allow_undefined_flag_F77=' ${wl}-berok'
14830
# -bexpall does not export symbols beginning with underscore (_)
14831
always_export_symbols_F77=yes
14832
# Exported symbols can be pulled into shared objects from archives
14833
whole_archive_flag_spec_F77=' '
14834
archive_cmds_need_lc_F77=yes
14835
# This is similar to how AIX traditionally builds it's shared libraries.
14836
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'
14842
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)'
14843
hardcode_libdir_flag_spec_F77='-L$libdir'
14844
hardcode_minus_L_F77=yes
14845
# see comment about different semantics on the GNU ld section
14850
export_dynamic_flag_spec_F77=-rdynamic
14853
cygwin* | mingw* | pw32*)
14854
# When not using gcc, we currently assume that we are using
14855
# Microsoft Visual C++.
14856
# hardcode_libdir_flag_spec is actually meaningless, as there is
14857
# no search path for DLLs.
14858
hardcode_libdir_flag_spec_F77=' '
14859
allow_undefined_flag_F77=unsupported
14860
# Tell ltmain to make .lib files, not .a files.
14862
# Tell ltmain to make .dll files, not .so files.
14864
# FIXME: Setting linknames here is a bad hack.
14865
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14866
# The linker will automatically build a .lib file if we build a DLL.
14867
old_archive_From_new_cmds_F77='true'
14868
# FIXME: Should let the user specify the lib program.
14869
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14870
fix_srcfile_path='`cygpath -w "$srcfile"`'
14871
enable_shared_with_static_runtimes_F77=yes
14874
darwin* | rhapsody*)
14875
if test "$GXX" = yes ; then
14876
archive_cmds_need_lc_F77=no
14878
rhapsody* | darwin1.[012])
14879
allow_undefined_flag_F77='-undefined suppress'
14882
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14883
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14885
case ${MACOSX_DEPLOYMENT_TARGET} in
14887
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14890
allow_undefined_flag_F77='-undefined dynamic_lookup'
14896
lt_int_apple_cc_single_mod=no
14897
output_verbose_link_cmd='echo'
14898
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14899
lt_int_apple_cc_single_mod=yes
14901
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14902
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14904
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'
14906
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14907
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14908
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14909
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}'
14911
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}'
14913
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14914
hardcode_direct_F77=no
14915
hardcode_automatic_F77=yes
14916
hardcode_shlibpath_var_F77=unsupported
14917
whole_archive_flag_spec_F77='-all_load $convenience'
14918
link_all_deplibs_F77=yes
14925
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14926
hardcode_libdir_flag_spec_F77='-L$libdir'
14927
hardcode_shlibpath_var_F77=no
14934
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14935
# support. Future versions do this automatically, but an explicit c++rt0.o
14936
# does not break anything, and helps significantly (at the cost of a little
14939
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14940
hardcode_libdir_flag_spec_F77='-R$libdir'
14941
hardcode_direct_F77=yes
14942
hardcode_shlibpath_var_F77=no
14945
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
14947
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14948
hardcode_direct_F77=yes
14949
hardcode_minus_L_F77=yes
14950
hardcode_shlibpath_var_F77=no
14953
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14954
freebsd* | kfreebsd*-gnu)
14955
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14956
hardcode_libdir_flag_spec_F77='-R$libdir'
14957
hardcode_direct_F77=yes
14958
hardcode_shlibpath_var_F77=no
14962
if test "$GCC" = yes; then
14963
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'
14965
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'
14967
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14968
hardcode_libdir_separator_F77=:
14969
hardcode_direct_F77=yes
14971
# hardcode_minus_L: Not really in the search PATH,
14972
# but as the default location of the library.
14973
hardcode_minus_L_F77=yes
14974
export_dynamic_flag_spec_F77='${wl}-E'
14978
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14979
case "$host_cpu" in
14981
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14984
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14988
case "$host_cpu" in
14990
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14993
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14997
if test "$with_gnu_ld" = no; then
14998
case "$host_cpu" in
15000
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15001
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15002
hardcode_libdir_separator_F77=:
15003
hardcode_direct_F77=no
15004
hardcode_shlibpath_var_F77=no
15007
hardcode_libdir_flag_spec_F77='-L$libdir'
15008
hardcode_direct_F77=no
15009
hardcode_shlibpath_var_F77=no
15011
# hardcode_minus_L: Not really in the search PATH,
15012
# but as the default location of the library.
15013
hardcode_minus_L_F77=yes
15016
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15017
hardcode_libdir_separator_F77=:
15018
hardcode_direct_F77=yes
15019
export_dynamic_flag_spec_F77='${wl}-E'
15021
# hardcode_minus_L: Not really in the search PATH,
15022
# but as the default location of the library.
15023
hardcode_minus_L_F77=yes
15029
irix5* | irix6* | nonstopux*)
15030
if test "$GCC" = yes; then
15031
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'
15033
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'
15034
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15036
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15037
hardcode_libdir_separator_F77=:
15038
link_all_deplibs_F77=yes
15041
netbsd* | knetbsd*-gnu)
15042
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15043
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15045
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15047
hardcode_libdir_flag_spec_F77='-R$libdir'
15048
hardcode_direct_F77=yes
15049
hardcode_shlibpath_var_F77=no
15053
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15054
hardcode_direct_F77=yes
15055
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15056
hardcode_libdir_separator_F77=:
15057
hardcode_shlibpath_var_F77=no
15061
hardcode_direct_F77=yes
15062
hardcode_shlibpath_var_F77=no
15063
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15064
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15065
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15066
export_dynamic_flag_spec_F77='${wl}-E'
15069
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15070
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15071
hardcode_libdir_flag_spec_F77='-R$libdir'
15074
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15075
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15082
hardcode_libdir_flag_spec_F77='-L$libdir'
15083
hardcode_minus_L_F77=yes
15084
allow_undefined_flag_F77=unsupported
15085
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'
15086
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15090
if test "$GCC" = yes; then
15091
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15092
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'
15094
allow_undefined_flag_F77=' -expect_unresolved \*'
15095
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'
15097
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15098
hardcode_libdir_separator_F77=:
15101
osf4* | osf5*) # as osf3* with the addition of -msym flag
15102
if test "$GCC" = yes; then
15103
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15104
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'
15105
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15107
allow_undefined_flag_F77=' -expect_unresolved \*'
15108
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'
15109
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~
15110
$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'
15112
# Both c and cxx compiler support -rpath directly
15113
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15115
hardcode_libdir_separator_F77=:
15119
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15120
hardcode_shlibpath_var_F77=no
15121
export_dynamic_flag_spec_F77='${wl}-Bexport'
15122
runpath_var=LD_RUN_PATH
15123
hardcode_runpath_var=yes
15127
no_undefined_flag_F77=' -z text'
15128
if test "$GCC" = yes; then
15129
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15130
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15131
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15133
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15134
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15135
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15137
hardcode_libdir_flag_spec_F77='-R$libdir'
15138
hardcode_shlibpath_var_F77=no
15140
solaris2.[0-5] | solaris2.[0-5].*) ;;
15141
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
15142
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15144
link_all_deplibs_F77=yes
15148
if test "x$host_vendor" = xsequent; then
15149
# Use $CC to link under sequent, because it throws in some extra .o
15150
# files that make .init and .fini sections work.
15151
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15153
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15155
hardcode_libdir_flag_spec_F77='-L$libdir'
15156
hardcode_direct_F77=yes
15157
hardcode_minus_L_F77=yes
15158
hardcode_shlibpath_var_F77=no
15162
case $host_vendor in
15164
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15165
hardcode_direct_F77=yes # is this really true???
15168
## LD is ld it makes a PLAMLIB
15169
## CC just makes a GrossModule.
15170
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15171
reload_cmds_F77='$CC -r -o $output$reload_objs'
15172
hardcode_direct_F77=no
15175
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15176
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15179
runpath_var='LD_RUN_PATH'
15180
hardcode_shlibpath_var_F77=no
15184
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15185
hardcode_shlibpath_var_F77=no
15186
export_dynamic_flag_spec_F77='-Bexport'
15190
if test -d /usr/nec; then
15191
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15192
hardcode_shlibpath_var_F77=no
15193
runpath_var=LD_RUN_PATH
15194
hardcode_runpath_var=yes
15200
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15201
hardcode_direct_F77=yes
15202
hardcode_minus_L_F77=no
15203
hardcode_shlibpath_var_F77=no
15204
hardcode_runpath_var=yes
15205
runpath_var=LD_RUN_PATH
15208
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15209
no_undefined_flag_F77='${wl}-z ${wl}text'
15210
if test "$GCC" = yes; then
15211
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15213
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15215
runpath_var='LD_RUN_PATH'
15216
hardcode_shlibpath_var_F77=no
15220
no_undefined_flag_F77=' -z text'
15221
# $CC -shared without GNU ld will not create a library from C++
15222
# object files and a static libstdc++, better avoid it by now
15223
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15224
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15225
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15226
hardcode_libdir_flag_spec_F77=
15227
hardcode_shlibpath_var_F77=no
15228
runpath_var='LD_RUN_PATH'
15232
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15233
hardcode_libdir_flag_spec_F77='-L$libdir'
15234
hardcode_shlibpath_var_F77=no
15243
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15244
echo "${ECHO_T}$ld_shlibs_F77" >&6
15245
test "$ld_shlibs_F77" = no && can_build_shared=no
15247
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15248
if test "$GCC" = yes; then
15249
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15253
# Do we need to explicitly link libc?
15255
case "x$archive_cmds_need_lc_F77" in
15257
# Assume -lc should be added
15258
archive_cmds_need_lc_F77=yes
15260
if test "$enable_shared" = yes && test "$GCC" = yes; then
15261
case $archive_cmds_F77 in
15263
# FIXME: we may have to deal with multi-command sequences.
15266
# Test whether the compiler implicitly links with -lc since on some
15267
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15268
# to ld, don't add -lc before -lgcc.
15269
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15270
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15272
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15274
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15275
(eval $ac_compile) 2>&5
15277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278
(exit $ac_status); } 2>conftest.err; then
15281
libobjs=conftest.$ac_objext
15283
wl=$lt_prog_compiler_wl_F77
15289
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15290
allow_undefined_flag_F77=
15291
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15292
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295
(exit $ac_status); }
15297
archive_cmds_need_lc_F77=no
15299
archive_cmds_need_lc_F77=yes
15301
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15303
cat conftest.err 1>&5
15306
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15307
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15314
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15315
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15316
library_names_spec=
15317
libname_spec='lib$name'
15321
postuninstall_cmds=
15325
shlibpath_overrides_runpath=unknown
15327
dynamic_linker="$host_os ld.so"
15328
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15329
if test "$GCC" = yes; then
15330
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15331
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15332
# if the path contains ";" then we assume it to be the separator
15333
# otherwise default to the standard path separator (i.e. ":") - it is
15334
# assumed that no part of a normal pathname contains ";" but that should
15335
# okay in the real world where ";" in dirpaths is itself problematic.
15336
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15338
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15341
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15343
need_lib_prefix=unknown
15344
hardcode_into_libs=no
15346
# when you set need_version to no, make sure it does not cause -set_version
15347
# flags to be left without arguments
15348
need_version=unknown
15353
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15354
shlibpath_var=LIBPATH
15356
# AIX 3 has no versioning support, so we append a major version to the name.
15357
soname_spec='${libname}${release}${shared_ext}$major'
15364
hardcode_into_libs=yes
15365
if test "$host_cpu" = ia64; then
15366
# AIX 5 supports IA64
15367
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15368
shlibpath_var=LD_LIBRARY_PATH
15370
# With GCC up to 2.95.x, collect2 would create an import file
15371
# for dependence libraries. The import file would start with
15372
# the line `#! .'. This would cause the generated library to
15373
# depend on `.', always an invalid library. This was fixed in
15374
# development snapshots of GCC prior to 3.0.
15376
aix4 | aix4.[01] | aix4.[01].*)
15377
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15379
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15382
can_build_shared=no
15386
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15387
# soname into executable. Probably we can add versioning support to
15388
# collect2, so additional links can be useful in future.
15389
if test "$aix_use_runtimelinking" = yes; then
15390
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15391
# instead of lib<name>.a to let people know that these are not
15392
# typical AIX shared libraries.
15393
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15395
# We preserve .a as extension for shared libraries through AIX4.2
15396
# and later when we are not doing run time linking.
15397
library_names_spec='${libname}${release}.a $libname.a'
15398
soname_spec='${libname}${release}${shared_ext}$major'
15400
shlibpath_var=LIBPATH
15405
library_names_spec='$libname.ixlibrary $libname.a'
15406
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15407
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'
15411
library_names_spec='${libname}${shared_ext}'
15412
dynamic_linker="$host_os ld.so"
15413
shlibpath_var=LIBRARY_PATH
15419
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15420
soname_spec='${libname}${release}${shared_ext}$major'
15421
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15422
shlibpath_var=LD_LIBRARY_PATH
15423
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15424
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15425
# the default ld.so.conf also contains /usr/contrib/lib and
15426
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15427
# libtool to hard-code these into programs
15430
cygwin* | mingw* | pw32*)
15431
version_type=windows
15436
case $GCC,$host_os in
15437
yes,cygwin* | yes,mingw* | yes,pw32*)
15438
library_names_spec='$libname.dll.a'
15439
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15440
postinstall_cmds='base_file=`basename \${file}`~
15441
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15442
dldir=$destdir/`dirname \$dlpath`~
15443
test -d \$dldir || mkdir -p \$dldir~
15444
$install_prog $dir/$dlname \$dldir/$dlname'
15445
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15446
dlpath=$dir/\$dldll~
15448
shlibpath_overrides_runpath=yes
15452
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15453
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15454
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15457
# MinGW DLLs use traditional 'lib' prefix
15458
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15459
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15460
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15461
# It is most probably a Windows format PATH printed by
15462
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15463
# path with ; separators, and with drive letters. We can handle the
15464
# drive letters (cygwin fileutils understands them), so leave them,
15465
# especially as we might pass files found there to a mingw objdump,
15466
# which wouldn't understand a cygwinified path. Ahh.
15467
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15469
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15473
# pw32 DLLs use 'pw' prefix rather than 'lib'
15474
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15480
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15483
dynamic_linker='Win32 ld.exe'
15484
# FIXME: first we should search . and the directory the executable is in
15488
darwin* | rhapsody*)
15489
dynamic_linker="$host_os dyld"
15490
version_type=darwin
15493
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15494
soname_spec='${libname}${release}${major}$shared_ext'
15495
shlibpath_overrides_runpath=yes
15496
shlibpath_var=DYLD_LIBRARY_PATH
15497
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15498
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15499
if test "$GCC" = yes; then
15500
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"`
15502
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15504
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15511
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15512
soname_spec='${libname}${release}${shared_ext}$major'
15513
shlibpath_var=LD_LIBRARY_PATH
15524
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15525
soname_spec='${libname}${release}${shared_ext}$major'
15526
shlibpath_var=LD_LIBRARY_PATH
15527
shlibpath_overrides_runpath=no
15528
hardcode_into_libs=yes
15529
dynamic_linker='GNU ld.so'
15533
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15534
version_type=freebsd-$objformat
15535
case $version_type in
15537
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15542
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15546
shlibpath_var=LD_LIBRARY_PATH
15549
shlibpath_overrides_runpath=yes
15551
freebsd3.01* | freebsdelf3.01*)
15552
shlibpath_overrides_runpath=yes
15553
hardcode_into_libs=yes
15556
shlibpath_overrides_runpath=no
15557
hardcode_into_libs=yes
15566
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15567
soname_spec='${libname}${release}${shared_ext}$major'
15568
shlibpath_var=LD_LIBRARY_PATH
15569
hardcode_into_libs=yes
15572
hpux9* | hpux10* | hpux11*)
15573
# Give a soname corresponding to the major version so that dld.sl refuses to
15574
# link against other versions.
15578
case "$host_cpu" in
15581
hardcode_into_libs=yes
15582
dynamic_linker="$host_os dld.so"
15583
shlibpath_var=LD_LIBRARY_PATH
15584
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15585
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15586
soname_spec='${libname}${release}${shared_ext}$major'
15587
if test "X$HPUX_IA64_MODE" = X32; then
15588
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15590
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15592
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15596
hardcode_into_libs=yes
15597
dynamic_linker="$host_os dld.sl"
15598
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15599
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15600
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15601
soname_spec='${libname}${release}${shared_ext}$major'
15602
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15603
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15607
dynamic_linker="$host_os dld.sl"
15608
shlibpath_var=SHLIB_PATH
15609
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15610
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15611
soname_spec='${libname}${release}${shared_ext}$major'
15614
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15615
postinstall_cmds='chmod 555 $lib'
15618
irix5* | irix6* | nonstopux*)
15620
nonstopux*) version_type=nonstopux ;;
15622
if test "$lt_cv_prog_gnu_ld" = yes; then
15630
soname_spec='${libname}${release}${shared_ext}$major'
15631
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15633
irix5* | nonstopux*)
15634
libsuff= shlibsuff=
15637
case $LD in # libtool.m4 will add one of these switches to LD
15638
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15639
libsuff= shlibsuff= libmagic=32-bit;;
15640
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15641
libsuff=32 shlibsuff=N32 libmagic=N32;;
15642
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15643
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15644
*) libsuff= shlibsuff= libmagic=never-match;;
15648
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15649
shlibpath_overrides_runpath=no
15650
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15651
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15652
hardcode_into_libs=yes
15655
# No shared lib support for Linux oldld, aout, or coff.
15656
linux*oldld* | linux*aout* | linux*coff*)
15660
# This must be Linux ELF.
15665
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15666
soname_spec='${libname}${release}${shared_ext}$major'
15667
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15668
shlibpath_var=LD_LIBRARY_PATH
15669
shlibpath_overrides_runpath=no
15670
# This implies no fast_install, which is unacceptable.
15671
# Some rework will be needed to allow for fast_install
15672
# before this can be enabled.
15673
hardcode_into_libs=yes
15675
# Append ld.so.conf contents to the search path
15676
if test -f /etc/ld.so.conf; then
15677
ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
15678
sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
15681
# We used to test for /lib/ld.so.1 and disable shared libraries on
15682
# powerpc, because MkLinux only supported shared libraries with the
15683
# GNU dynamic linker. Since this was broken with cross compilers,
15684
# most powerpc-linux boxes support dynamic linking these days and
15685
# people can always --disable-shared, the test was removed, and we
15686
# assume the GNU/Linux dynamic linker is in use.
15687
dynamic_linker='GNU/Linux ld.so'
15694
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15695
soname_spec='${libname}${release}${shared_ext}$major'
15696
shlibpath_var=LD_LIBRARY_PATH
15697
shlibpath_overrides_runpath=no
15698
hardcode_into_libs=yes
15699
dynamic_linker='GNU ld.so'
15706
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15707
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15708
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15709
dynamic_linker='NetBSD (a.out) ld.so'
15711
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15712
soname_spec='${libname}${release}${shared_ext}$major'
15713
dynamic_linker='NetBSD ld.elf_so'
15715
shlibpath_var=LD_LIBRARY_PATH
15716
shlibpath_overrides_runpath=yes
15717
hardcode_into_libs=yes
15722
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15723
shlibpath_var=LD_LIBRARY_PATH
15724
shlibpath_overrides_runpath=yes
15731
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15732
soname_spec='${libname}${release}${shared_ext}$major'
15733
shlibpath_var=LD_LIBRARY_PATH
15734
shlibpath_overrides_runpath=yes
15741
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15742
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15743
shlibpath_var=LD_LIBRARY_PATH
15744
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15746
openbsd2.[89] | openbsd2.[89].*)
15747
shlibpath_overrides_runpath=no
15750
shlibpath_overrides_runpath=yes
15754
shlibpath_overrides_runpath=yes
15759
libname_spec='$name'
15762
library_names_spec='$libname${shared_ext} $libname.a'
15763
dynamic_linker='OS/2 ld.exe'
15764
shlibpath_var=LIBPATH
15767
osf3* | osf4* | osf5*)
15771
soname_spec='${libname}${release}${shared_ext}$major'
15772
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15773
shlibpath_var=LD_LIBRARY_PATH
15774
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15775
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15780
soname_spec='${libname}${release}${shared_ext}$major'
15781
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15782
shlibpath_var=LD_LIBRARY_PATH
15789
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15790
soname_spec='${libname}${release}${shared_ext}$major'
15791
shlibpath_var=LD_LIBRARY_PATH
15792
shlibpath_overrides_runpath=yes
15793
hardcode_into_libs=yes
15794
# ldd complains unless libraries are executable
15795
postinstall_cmds='chmod +x $lib'
15800
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15801
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15802
shlibpath_var=LD_LIBRARY_PATH
15803
shlibpath_overrides_runpath=yes
15804
if test "$with_gnu_ld" = yes; then
15810
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15812
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15813
soname_spec='${libname}${release}${shared_ext}$major'
15814
shlibpath_var=LD_LIBRARY_PATH
15815
case $host_vendor in
15817
shlibpath_overrides_runpath=no
15819
export_dynamic_flag_spec='${wl}-Blargedynsym'
15820
runpath_var=LD_RUN_PATH
15828
shlibpath_overrides_runpath=no
15829
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15835
if test -d /usr/nec ;then
15837
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15838
soname_spec='$libname${shared_ext}.$major'
15839
shlibpath_var=LD_LIBRARY_PATH
15845
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15846
soname_spec='${libname}${release}${shared_ext}$major'
15847
shlibpath_var=LD_LIBRARY_PATH
15854
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15855
echo "${ECHO_T}$dynamic_linker" >&6
15856
test "$dynamic_linker" = no && can_build_shared=no
15858
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15859
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15860
hardcode_action_F77=
15861
if test -n "$hardcode_libdir_flag_spec_F77" || \
15862
test -n "$runpath_var F77" || \
15863
test "X$hardcode_automatic_F77"="Xyes" ; then
15865
# We can hardcode non-existant directories.
15866
if test "$hardcode_direct_F77" != no &&
15867
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15868
# have to relink, otherwise we might link with an installed library
15869
# when we should be linking with a yet-to-be-installed one
15870
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15871
test "$hardcode_minus_L_F77" != no; then
15872
# Linking always hardcodes the temporary library directory.
15873
hardcode_action_F77=relink
15875
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15876
hardcode_action_F77=immediate
15879
# We cannot hardcode anything, or else we can only hardcode existing
15881
hardcode_action_F77=unsupported
15883
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15884
echo "${ECHO_T}$hardcode_action_F77" >&6
15886
if test "$hardcode_action_F77" = relink; then
15887
# Fast installation is not supported
15888
enable_fast_install=no
15889
elif test "$shlibpath_overrides_runpath" = yes ||
15890
test "$enable_shared" = no; then
15891
# Fast installation is not necessary
15892
enable_fast_install=needless
15897
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15898
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15899
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15900
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15901
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15902
echo "$as_me:$LINENO: result: yes" >&5
15903
echo "${ECHO_T}yes" >&6
15905
# FIXME - insert some real tests, host_os isn't really good enough
15908
if test -n "$STRIP" ; then
15909
striplib="$STRIP -x"
15910
echo "$as_me:$LINENO: result: yes" >&5
15911
echo "${ECHO_T}yes" >&6
15913
echo "$as_me:$LINENO: result: no" >&5
15914
echo "${ECHO_T}no" >&6
15918
echo "$as_me:$LINENO: result: no" >&5
15919
echo "${ECHO_T}no" >&6
15926
# The else clause should only fire when bootstrapping the
15927
# libtool distribution, otherwise you forgot to ship ltmain.sh
15928
# with your package, and you will get complaints that there are
15929
# no rules to generate ltmain.sh.
15930
if test -f "$ltmain"; then
15931
# See if we are running on zsh, and set the options which allow our commands through
15932
# without removal of \ escapes.
15933
if test -n "${ZSH_VERSION+set}" ; then
15934
setopt NO_GLOB_SUBST
15936
# Now quote all the things that may contain metacharacters while being
15937
# careful not to overquote the AC_SUBSTed values. We take copies of the
15938
# variables and quote the copies for generation of the libtool script.
15939
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15941
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15942
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15943
deplibs_check_method reload_flag reload_cmds need_locks \
15944
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15945
lt_cv_sys_global_symbol_to_c_name_address \
15946
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15947
old_postinstall_cmds old_postuninstall_cmds \
15951
lt_prog_compiler_wl_F77 \
15952
lt_prog_compiler_pic_F77 \
15953
lt_prog_compiler_static_F77 \
15954
lt_prog_compiler_no_builtin_flag_F77 \
15955
export_dynamic_flag_spec_F77 \
15956
thread_safe_flag_spec_F77 \
15957
whole_archive_flag_spec_F77 \
15958
enable_shared_with_static_runtimes_F77 \
15959
old_archive_cmds_F77 \
15960
old_archive_from_new_cmds_F77 \
15961
predep_objects_F77 \
15962
postdep_objects_F77 \
15965
compiler_lib_search_path_F77 \
15967
archive_expsym_cmds_F77 \
15968
postinstall_cmds_F77 \
15969
postuninstall_cmds_F77 \
15970
old_archive_from_expsyms_cmds_F77 \
15971
allow_undefined_flag_F77 \
15972
no_undefined_flag_F77 \
15973
export_symbols_cmds_F77 \
15974
hardcode_libdir_flag_spec_F77 \
15975
hardcode_libdir_flag_spec_ld_F77 \
15976
hardcode_libdir_separator_F77 \
15977
hardcode_automatic_F77 \
15979
module_expsym_cmds_F77 \
15980
lt_cv_prog_compiler_c_o_F77 \
15981
exclude_expsyms_F77 \
15982
include_expsyms_F77; do
15985
old_archive_cmds_F77 | \
15986
old_archive_from_new_cmds_F77 | \
15987
archive_cmds_F77 | \
15988
archive_expsym_cmds_F77 | \
15989
module_cmds_F77 | \
15990
module_expsym_cmds_F77 | \
15991
old_archive_from_expsyms_cmds_F77 | \
15992
export_symbols_cmds_F77 | \
15993
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15994
postinstall_cmds | postuninstall_cmds | \
15995
old_postinstall_cmds | old_postuninstall_cmds | \
15996
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15997
# Double-quote double-evaled strings.
15998
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16001
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16007
*'\$0 --fallback-echo"')
16008
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16014
cat <<__EOF__ >> "$cfgfile"
16015
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16017
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16019
# Shell to use when invoking shell scripts.
16022
# Whether or not to build shared libraries.
16023
build_libtool_libs=$enable_shared
16025
# Whether or not to build static libraries.
16026
build_old_libs=$enable_static
16028
# Whether or not to add -lc for building shared libraries.
16029
build_libtool_need_lc=$archive_cmds_need_lc_F77
16031
# Whether or not to disallow shared libs when runtime libs are static
16032
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16034
# Whether or not to optimize for fast installation.
16035
fast_install=$enable_fast_install
16038
host_alias=$host_alias
16041
# An echo program that does not interpret backslashes.
16046
AR_FLAGS=$lt_AR_FLAGS
16051
# A language-specific compiler.
16052
CC=$lt_compiler_F77
16054
# Is the compiler the GNU C compiler?
16060
# The linker used to build libraries.
16063
# Whether we need hard or soft links.
16066
# A BSD-compatible nm program.
16069
# A symbol stripping program
16072
# Used to examine libraries when file_magic_cmd begins "file"
16073
MAGIC_CMD=$MAGIC_CMD
16075
# Used on cygwin: DLL creation program.
16078
# Used on cygwin: object dumper.
16081
# Used on cygwin: assembler.
16084
# The name of the directory that contains temporary libtool files.
16087
# How to create reloadable object files.
16088
reload_flag=$lt_reload_flag
16089
reload_cmds=$lt_reload_cmds
16091
# How to pass a linker flag through the compiler.
16092
wl=$lt_lt_prog_compiler_wl_F77
16094
# Object file suffix (normally "o").
16095
objext="$ac_objext"
16097
# Old archive suffix (normally "a").
16100
# Shared library suffix (normally ".so").
16103
# Executable file suffix (normally "").
16106
# Additional compiler flags for building library objects.
16107
pic_flag=$lt_lt_prog_compiler_pic_F77
16110
# What is the maximum length of a command?
16111
max_cmd_len=$lt_cv_sys_max_cmd_len
16113
# Does compiler simultaneously support -c and -o options?
16114
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16116
# Must we lock files when doing compilation ?
16117
need_locks=$lt_need_locks
16119
# Do we need the lib prefix for modules?
16120
need_lib_prefix=$need_lib_prefix
16122
# Do we need a version for libraries?
16123
need_version=$need_version
16125
# Whether dlopen is supported.
16126
dlopen_support=$enable_dlopen
16128
# Whether dlopen of programs is supported.
16129
dlopen_self=$enable_dlopen_self
16131
# Whether dlopen of statically linked programs is supported.
16132
dlopen_self_static=$enable_dlopen_self_static
16134
# Compiler flag to prevent dynamic linking.
16135
link_static_flag=$lt_lt_prog_compiler_static_F77
16137
# Compiler flag to turn off builtin functions.
16138
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16140
# Compiler flag to allow reflexive dlopens.
16141
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16143
# Compiler flag to generate shared objects directly from archives.
16144
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16146
# Compiler flag to generate thread-safe objects.
16147
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16149
# Library versioning type.
16150
version_type=$version_type
16152
# Format of library name prefix.
16153
libname_spec=$lt_libname_spec
16155
# List of archive names. First name is the real one, the rest are links.
16156
# The last name is the one that the linker finds with -lNAME.
16157
library_names_spec=$lt_library_names_spec
16159
# The coded name of the library, if different from the real name.
16160
soname_spec=$lt_soname_spec
16162
# Commands used to build and install an old-style archive.
16164
old_archive_cmds=$lt_old_archive_cmds_F77
16165
old_postinstall_cmds=$lt_old_postinstall_cmds
16166
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16168
# Create an old-style archive from a shared archive.
16169
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16171
# Create a temporary old-style archive to link instead of a shared archive.
16172
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16174
# Commands used to build and install a shared archive.
16175
archive_cmds=$lt_archive_cmds_F77
16176
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16177
postinstall_cmds=$lt_postinstall_cmds
16178
postuninstall_cmds=$lt_postuninstall_cmds
16180
# Commands used to build a loadable module (assumed same as above if empty)
16181
module_cmds=$lt_module_cmds_F77
16182
module_expsym_cmds=$lt_module_expsym_cmds_F77
16184
# Commands to strip libraries.
16185
old_striplib=$lt_old_striplib
16186
striplib=$lt_striplib
16188
# Dependencies to place before the objects being linked to create a
16190
predep_objects=$lt_predep_objects_F77
16192
# Dependencies to place after the objects being linked to create a
16194
postdep_objects=$lt_postdep_objects_F77
16196
# Dependencies to place before the objects being linked to create a
16198
predeps=$lt_predeps_F77
16200
# Dependencies to place after the objects being linked to create a
16202
postdeps=$lt_postdeps_F77
16204
# The library search path used internally by the compiler when linking
16205
# a shared library.
16206
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16208
# Method to check whether dependent libraries are shared objects.
16209
deplibs_check_method=$lt_deplibs_check_method
16211
# Command to use when deplibs_check_method == file_magic.
16212
file_magic_cmd=$lt_file_magic_cmd
16214
# Flag that allows shared libraries with undefined symbols to be built.
16215
allow_undefined_flag=$lt_allow_undefined_flag_F77
16217
# Flag that forces no undefined symbols.
16218
no_undefined_flag=$lt_no_undefined_flag_F77
16220
# Commands used to finish a libtool library installation in a directory.
16221
finish_cmds=$lt_finish_cmds
16223
# Same as above, but a single script fragment to be evaled but not shown.
16224
finish_eval=$lt_finish_eval
16226
# Take the output of nm and produce a listing of raw symbols and C names.
16227
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16229
# Transform the output of nm in a proper C declaration
16230
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16232
# Transform the output of nm in a C name address pair
16233
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16235
# This is the shared library runtime path variable.
16236
runpath_var=$runpath_var
16238
# This is the shared library path variable.
16239
shlibpath_var=$shlibpath_var
16241
# Is shlibpath searched before the hard-coded library search path?
16242
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16244
# How to hardcode a shared library path into an executable.
16245
hardcode_action=$hardcode_action_F77
16247
# Whether we should hardcode library paths into libraries.
16248
hardcode_into_libs=$hardcode_into_libs
16250
# Flag to hardcode \$libdir into a binary during linking.
16251
# This must work even if \$libdir does not exist.
16252
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16254
# If ld is used when linking, flag to hardcode \$libdir into
16255
# a binary during linking. This must work even if \$libdir does
16257
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16259
# Whether we need a single -rpath flag with a separated argument.
16260
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16262
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16263
# resulting binary.
16264
hardcode_direct=$hardcode_direct_F77
16266
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16267
# resulting binary.
16268
hardcode_minus_L=$hardcode_minus_L_F77
16270
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16271
# the resulting binary.
16272
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16274
# Set to yes if building a shared library automatically hardcodes DIR into the library
16275
# and all subsequent libraries and executables linked against it.
16276
hardcode_automatic=$hardcode_automatic_F77
16278
# Variables whose values should be saved in libtool wrapper scripts and
16279
# restored at relink time.
16280
variables_saved_for_relink="$variables_saved_for_relink"
16282
# Whether libtool must link a program against all its dependency libraries.
16283
link_all_deplibs=$link_all_deplibs_F77
16285
# Compile-time system search path for libraries
16286
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16288
# Run-time system search path for libraries
16289
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16291
# Fix the shell variable \$srcfile for the compiler.
16292
fix_srcfile_path="$fix_srcfile_path_F77"
16294
# Set to yes if exported symbols are required.
16295
always_export_symbols=$always_export_symbols_F77
16297
# The commands to list exported symbols.
16298
export_symbols_cmds=$lt_export_symbols_cmds_F77
16300
# The commands to extract the exported symbol list from a shared archive.
16301
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16303
# Symbols that should not be listed in the preloaded symbols.
16304
exclude_expsyms=$lt_exclude_expsyms_F77
16306
# Symbols that must always be exported.
16307
include_expsyms=$lt_include_expsyms_F77
16309
# ### END LIBTOOL TAG CONFIG: $tagname
16315
# If there is no Makefile yet, we rely on a make rule to execute
16316
# `config.status --recheck' to rerun these tests and create the
16317
# libtool script then.
16318
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16319
if test -f "$ltmain_in"; then
16320
test -f Makefile && make "$ltmain"
16326
ac_cpp='$CPP $CPPFLAGS'
16327
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16328
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16329
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16339
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16343
# Source file extension for Java test sources.
16346
# Object file extension for compiled Java test sources.
16350
# Code to be used in simple compile tests
16351
lt_simple_compile_test_code="class foo {}\n"
16353
# Code to be used in simple link tests
16354
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16356
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16358
# If no C compiler was specified, use CC.
16361
# Allow CC to be a program name with arguments.
16365
# Allow CC to be a program name with arguments.
16371
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16372
archive_cmds_need_lc_GCJ=no
16375
lt_prog_compiler_no_builtin_flag_GCJ=
16377
if test "$GCC" = yes; then
16378
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16381
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16382
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16383
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16384
echo $ECHO_N "(cached) $ECHO_C" >&6
16386
lt_cv_prog_compiler_rtti_exceptions=no
16387
ac_outfile=conftest.$ac_objext
16388
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16389
lt_compiler_flag="-fno-rtti -fno-exceptions"
16390
# Insert the option either (1) after the last *FLAGS variable, or
16391
# (2) before a word containing "conftest.", or (3) at the end.
16392
# Note that $ac_compile itself does not contain backslashes and begins
16393
# with a dollar sign (not a hyphen), so the echo should work correctly.
16394
# The option is referenced via a variable to avoid confusing sed.
16395
lt_compile=`echo "$ac_compile" | $SED \
16396
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16397
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16398
-e 's:$: $lt_compiler_flag:'`
16399
(eval echo "\"\$as_me:16399: $lt_compile\"" >&5)
16400
(eval "$lt_compile" 2>conftest.err)
16402
cat conftest.err >&5
16403
echo "$as_me:16403: \$? = $ac_status" >&5
16404
if (exit $ac_status) && test -s "$ac_outfile"; then
16405
# The compiler can only warn and ignore the option if not recognized
16406
# So say no if there are warnings
16407
if test ! -s conftest.err; then
16408
lt_cv_prog_compiler_rtti_exceptions=yes
16414
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16415
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16417
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16418
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16425
lt_prog_compiler_wl_GCJ=
16426
lt_prog_compiler_pic_GCJ=
16427
lt_prog_compiler_static_GCJ=
16429
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16430
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16432
if test "$GCC" = yes; then
16433
lt_prog_compiler_wl_GCJ='-Wl,'
16434
lt_prog_compiler_static_GCJ='-static'
16438
# All AIX code is PIC.
16439
if test "$host_cpu" = ia64; then
16440
# AIX 5 now supports IA64 processor
16441
lt_prog_compiler_static_GCJ='-Bstatic'
16446
# FIXME: we need at least 68020 code to build shared libraries, but
16447
# adding the `-m68020' flag to GCC prevents building anything better,
16449
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16452
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16453
# PIC is the default for these OSes.
16456
mingw* | pw32* | os2*)
16457
# This hack is so that the source file can tell whether it is being
16458
# built for inclusion in a dll (and should export symbols for example).
16459
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16462
darwin* | rhapsody*)
16463
# PIC is the default on this platform
16464
# Common symbols not allowed in MH_DYLIB files
16465
lt_prog_compiler_pic_GCJ='-fno-common'
16469
# Just because we use GCC doesn't mean we suddenly get shared libraries
16470
# on systems that don't support them.
16471
lt_prog_compiler_can_build_shared_GCJ=no
16476
if test -d /usr/nec; then
16477
lt_prog_compiler_pic_GCJ=-Kconform_pic
16482
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16483
# not for PA HP-UX.
16484
case "$host_cpu" in
16489
lt_prog_compiler_pic_GCJ='-fPIC'
16495
lt_prog_compiler_pic_GCJ='-fPIC'
16499
# PORTME Check for flag to pass linker flags through the system compiler.
16502
lt_prog_compiler_wl_GCJ='-Wl,'
16503
if test "$host_cpu" = ia64; then
16504
# AIX 5 now supports IA64 processor
16505
lt_prog_compiler_static_GCJ='-Bstatic'
16507
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16511
mingw* | pw32* | os2*)
16512
# This hack is so that the source file can tell whether it is being
16513
# built for inclusion in a dll (and should export symbols for example).
16514
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16517
hpux9* | hpux10* | hpux11*)
16518
lt_prog_compiler_wl_GCJ='-Wl,'
16519
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16520
# not for PA HP-UX.
16521
case "$host_cpu" in
16526
lt_prog_compiler_pic_GCJ='+Z'
16529
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16530
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16533
irix5* | irix6* | nonstopux*)
16534
lt_prog_compiler_wl_GCJ='-Wl,'
16535
# PIC (with -KPIC) is the default.
16536
lt_prog_compiler_static_GCJ='-non_shared'
16540
lt_prog_compiler_pic_GCJ='-KPIC'
16541
lt_prog_compiler_static_GCJ='-Bstatic'
16547
lt_prog_compiler_wl_GCJ='-Wl,'
16548
lt_prog_compiler_pic_GCJ='-KPIC'
16549
lt_prog_compiler_static_GCJ='-static'
16552
lt_prog_compiler_wl_GCJ='-Wl,'
16553
# All Alpha code is PIC.
16554
lt_prog_compiler_static_GCJ='-non_shared'
16559
osf3* | osf4* | osf5*)
16560
lt_prog_compiler_wl_GCJ='-Wl,'
16561
# All OSF/1 code is PIC.
16562
lt_prog_compiler_static_GCJ='-non_shared'
16566
lt_prog_compiler_pic_GCJ='-Kpic'
16567
lt_prog_compiler_static_GCJ='-dn'
16571
lt_prog_compiler_wl_GCJ='-Wl,'
16572
lt_prog_compiler_pic_GCJ='-KPIC'
16573
lt_prog_compiler_static_GCJ='-Bstatic'
16577
lt_prog_compiler_wl_GCJ='-Qoption ld '
16578
lt_prog_compiler_pic_GCJ='-PIC'
16579
lt_prog_compiler_static_GCJ='-Bstatic'
16582
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16583
lt_prog_compiler_wl_GCJ='-Wl,'
16584
lt_prog_compiler_pic_GCJ='-KPIC'
16585
lt_prog_compiler_static_GCJ='-Bstatic'
16589
if test -d /usr/nec ;then
16590
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16591
lt_prog_compiler_static_GCJ='-Bstatic'
16596
lt_prog_compiler_pic_GCJ='-pic'
16597
lt_prog_compiler_static_GCJ='-Bstatic'
16601
lt_prog_compiler_can_build_shared_GCJ=no
16606
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16607
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16610
# Check to make sure the PIC flag actually works.
16612
if test -n "$lt_prog_compiler_pic_GCJ"; then
16614
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16615
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16616
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16617
echo $ECHO_N "(cached) $ECHO_C" >&6
16619
lt_prog_compiler_pic_works_GCJ=no
16620
ac_outfile=conftest.$ac_objext
16621
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16622
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16623
# Insert the option either (1) after the last *FLAGS variable, or
16624
# (2) before a word containing "conftest.", or (3) at the end.
16625
# Note that $ac_compile itself does not contain backslashes and begins
16626
# with a dollar sign (not a hyphen), so the echo should work correctly.
16627
# The option is referenced via a variable to avoid confusing sed.
16628
lt_compile=`echo "$ac_compile" | $SED \
16629
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16630
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16631
-e 's:$: $lt_compiler_flag:'`
16632
(eval echo "\"\$as_me:16632: $lt_compile\"" >&5)
16633
(eval "$lt_compile" 2>conftest.err)
16635
cat conftest.err >&5
16636
echo "$as_me:16636: \$? = $ac_status" >&5
16637
if (exit $ac_status) && test -s "$ac_outfile"; then
16638
# The compiler can only warn and ignore the option if not recognized
16639
# So say no if there are warnings
16640
if test ! -s conftest.err; then
16641
lt_prog_compiler_pic_works_GCJ=yes
16647
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16648
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16650
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16651
case $lt_prog_compiler_pic_GCJ in
16653
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16656
lt_prog_compiler_pic_GCJ=
16657
lt_prog_compiler_can_build_shared_GCJ=no
16662
# For platforms which do not support PIC, -DPIC is meaningless:
16664
lt_prog_compiler_pic_GCJ=
16667
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16671
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16672
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16673
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16674
echo $ECHO_N "(cached) $ECHO_C" >&6
16676
lt_cv_prog_compiler_c_o_GCJ=no
16677
$rm -r conftest 2>/dev/null
16681
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16683
lt_compiler_flag="-o out/conftest2.$ac_objext"
16684
# Insert the option either (1) after the last *FLAGS variable, or
16685
# (2) before a word containing "conftest.", or (3) at the end.
16686
# Note that $ac_compile itself does not contain backslashes and begins
16687
# with a dollar sign (not a hyphen), so the echo should work correctly.
16688
lt_compile=`echo "$ac_compile" | $SED \
16689
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16690
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16691
-e 's:$: $lt_compiler_flag:'`
16692
(eval echo "\"\$as_me:16692: $lt_compile\"" >&5)
16693
(eval "$lt_compile" 2>out/conftest.err)
16695
cat out/conftest.err >&5
16696
echo "$as_me:16696: \$? = $ac_status" >&5
16697
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16699
# The compiler can only warn and ignore the option if not recognized
16700
# So say no if there are warnings
16701
if test ! -s out/conftest.err; then
16702
lt_cv_prog_compiler_c_o_GCJ=yes
16707
# SGI C++ compiler will create directory out/ii_files/ for
16708
# template instantiation
16709
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16710
$rm out/* && rmdir out
16716
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16717
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16720
hard_links="nottested"
16721
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16722
# do not overwrite the value of need_locks provided by the user
16723
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16724
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16727
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16729
ln conftest.a conftest.b 2>&5 || hard_links=no
16730
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16731
echo "$as_me:$LINENO: result: $hard_links" >&5
16732
echo "${ECHO_T}$hard_links" >&6
16733
if test "$hard_links" = no; then
16734
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16735
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16742
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16743
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16746
allow_undefined_flag_GCJ=
16747
enable_shared_with_static_runtimes_GCJ=no
16749
archive_expsym_cmds_GCJ=
16750
old_archive_From_new_cmds_GCJ=
16751
old_archive_from_expsyms_cmds_GCJ=
16752
export_dynamic_flag_spec_GCJ=
16753
whole_archive_flag_spec_GCJ=
16754
thread_safe_flag_spec_GCJ=
16755
hardcode_libdir_flag_spec_GCJ=
16756
hardcode_libdir_flag_spec_ld_GCJ=
16757
hardcode_libdir_separator_GCJ=
16758
hardcode_direct_GCJ=no
16759
hardcode_minus_L_GCJ=no
16760
hardcode_shlibpath_var_GCJ=unsupported
16761
link_all_deplibs_GCJ=unknown
16762
hardcode_automatic_GCJ=no
16764
module_expsym_cmds_GCJ=
16765
always_export_symbols_GCJ=no
16766
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16767
# include_expsyms should be a list of space-separated symbols to be *always*
16768
# included in the symbol list
16769
include_expsyms_GCJ=
16770
# exclude_expsyms can be an extended regexp of symbols to exclude
16771
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16772
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16773
# as well as any symbol that contains `d'.
16774
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16775
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16776
# platforms (ab)use it in PIC code, but their linkers get confused if
16777
# the symbol is explicitly referenced. Since portable code cannot
16778
# rely on this symbol name, it's probably fine to never include it in
16779
# preloaded symbol tables.
16780
extract_expsyms_cmds=
16783
cygwin* | mingw* | pw32*)
16784
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16785
# When not using gcc, we currently assume that we are using
16786
# Microsoft Visual C++.
16787
if test "$GCC" != yes; then
16797
if test "$with_gnu_ld" = yes; then
16798
# If archive_cmds runs LD, not CC, wlarc should be empty
16801
# See if GNU ld supports shared libraries.
16803
aix3* | aix4* | aix5*)
16804
# On AIX/PPC, the GNU linker is very broken
16805
if test "$host_cpu" != ia64; then
16809
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16810
*** to be unable to reliably create shared libraries on AIX.
16811
*** Therefore, libtool is disabling shared libraries support. If you
16812
*** really care for shared libraries, you may want to modify your PATH
16813
*** so that a non-GNU linker is found, and then restart.
16820
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)'
16821
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16822
hardcode_minus_L_GCJ=yes
16824
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16825
# that the semantics of dynamic libraries on AmigaOS, at least up
16826
# to version 4, is to share data among multiple programs linked
16827
# with the same dynamic library. Since this doesn't match the
16828
# behavior of shared libraries on other platforms, we can't use
16834
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16835
allow_undefined_flag_GCJ=unsupported
16836
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16837
# support --undefined. This deserves some investigation. FIXME
16838
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16844
cygwin* | mingw* | pw32*)
16845
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16846
# as there is no search path for DLLs.
16847
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16848
allow_undefined_flag_GCJ=unsupported
16849
always_export_symbols_GCJ=no
16850
enable_shared_with_static_runtimes_GCJ=yes
16851
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16853
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16854
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16855
# If the export-symbols file already is a .def file (1st line
16856
# is EXPORTS), use it as is; otherwise, prepend...
16857
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16858
cp $export_symbols $output_objdir/$soname.def;
16860
echo EXPORTS > $output_objdir/$soname.def;
16861
cat $export_symbols >> $output_objdir/$soname.def;
16863
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16869
netbsd* | knetbsd*-gnu)
16870
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16871
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16874
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16875
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16880
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16884
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16885
*** create shared libraries on Solaris systems. Therefore, libtool
16886
*** is disabling shared libraries support. We urge you to upgrade GNU
16887
*** binutils to release 2.9.1 or newer. Another option is to modify
16888
*** your PATH or compiler configuration so that the native linker is
16889
*** used, and then restart.
16892
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16893
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16894
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16901
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16903
hardcode_direct_GCJ=yes
16904
hardcode_shlibpath_var_GCJ=no
16908
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16909
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16910
archive_cmds_GCJ="$tmp_archive_cmds"
16911
supports_anon_versioning=no
16912
case `$LD -v 2>/dev/null` in
16913
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16914
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16915
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16916
*\ 2.11.*) ;; # other 2.11 versions
16917
*) supports_anon_versioning=yes ;;
16919
if test $supports_anon_versioning = yes; then
16920
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16921
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16922
$echo "local: *; };" >> $output_objdir/$libname.ver~
16923
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16925
archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16933
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16934
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16935
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16942
if test "$ld_shlibs_GCJ" = yes; then
16943
runpath_var=LD_RUN_PATH
16944
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16945
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16946
# ancient GNU ld didn't support --whole-archive et. al.
16947
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16948
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16950
whole_archive_flag_spec_GCJ=
16954
# PORTME fill in a description of your system's linker (not GNU ld)
16957
allow_undefined_flag_GCJ=unsupported
16958
always_export_symbols_GCJ=yes
16959
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'
16960
# Note: this linker hardcodes the directories in LIBPATH if there
16961
# are no directories specified by -L.
16962
hardcode_minus_L_GCJ=yes
16963
if test "$GCC" = yes && test -z "$link_static_flag"; then
16964
# Neither direct hardcoding nor static linking is supported with a
16966
hardcode_direct_GCJ=unsupported
16971
if test "$host_cpu" = ia64; then
16972
# On IA64, the linker does run time linking by default, so we don't
16973
# have to do anything special.
16974
aix_use_runtimelinking=no
16975
exp_sym_flag='-Bexport'
16978
# If we're using GNU nm, then we don't want the "-C" option.
16979
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16980
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16981
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'
16983
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'
16985
aix_use_runtimelinking=no
16987
# Test if we are trying to use run time linking or normal
16988
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16989
# need to do runtime linking.
16990
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16991
for ld_flag in $LDFLAGS; do
16992
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16993
aix_use_runtimelinking=yes
16999
exp_sym_flag='-bexport'
17000
no_entry_flag='-bnoentry'
17003
# When large executables or shared objects are built, AIX ld can
17004
# have problems creating the table of contents. If linking a library
17005
# or program results in "error TOC overflow" add -mminimal-toc to
17006
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17007
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17009
archive_cmds_GCJ=''
17010
hardcode_direct_GCJ=yes
17011
hardcode_libdir_separator_GCJ=':'
17012
link_all_deplibs_GCJ=yes
17014
if test "$GCC" = yes; then
17015
case $host_os in aix4.012|aix4.012.*)
17016
# We only want to do this on AIX 4.2 and lower, the check
17017
# below for broken collect2 doesn't work under 4.3+
17018
collect2name=`${CC} -print-prog-name=collect2`
17019
if test -f "$collect2name" && \
17020
strings "$collect2name" | grep resolve_lib_name >/dev/null
17022
# We have reworked collect2
17023
hardcode_direct_GCJ=yes
17025
# We have old collect2
17026
hardcode_direct_GCJ=unsupported
17027
# It fails to find uninstalled libraries when the uninstalled
17028
# path is not listed in the libpath. Setting hardcode_minus_L
17029
# to unsupported forces relinking
17030
hardcode_minus_L_GCJ=yes
17031
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17032
hardcode_libdir_separator_GCJ=
17035
shared_flag='-shared'
17038
if test "$host_cpu" = ia64; then
17039
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17040
# chokes on -Wl,-G. The following line is correct:
17043
if test "$aix_use_runtimelinking" = yes; then
17044
shared_flag='${wl}-G'
17046
shared_flag='${wl}-bM:SRE'
17051
# It seems that -bexpall does not export symbols beginning with
17052
# underscore (_), so it is better to generate a list of symbols to export.
17053
always_export_symbols_GCJ=yes
17054
if test "$aix_use_runtimelinking" = yes; then
17055
# Warning - without using the other runtime loading flags (-brtl),
17056
# -berok will link without error, but may produce a broken library.
17057
allow_undefined_flag_GCJ='-berok'
17058
# Determine the default libpath from the value encoded in an empty executable.
17059
cat >conftest.$ac_ext <<_ACEOF
17062
cat confdefs.h >>conftest.$ac_ext
17063
cat >>conftest.$ac_ext <<_ACEOF
17064
/* end confdefs.h. */
17074
rm -f conftest.$ac_objext conftest$ac_exeext
17075
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17076
(eval $ac_link) 2>conftest.er1
17078
grep -v '^ *+' conftest.er1 >conftest.err
17080
cat conftest.err >&5
17081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082
(exit $ac_status); } &&
17083
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17084
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17085
(eval $ac_try) 2>&5
17087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088
(exit $ac_status); }; } &&
17089
{ ac_try='test -s conftest$ac_exeext'
17090
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17091
(eval $ac_try) 2>&5
17093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094
(exit $ac_status); }; }; then
17096
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17098
# Check for a 64-bit object if we didn't find anything.
17099
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; }
17102
echo "$as_me: failed program was:" >&5
17103
sed 's/^/| /' conftest.$ac_ext >&5
17106
rm -f conftest.err conftest.$ac_objext \
17107
conftest$ac_exeext conftest.$ac_ext
17108
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17110
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17111
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"
17113
if test "$host_cpu" = ia64; then
17114
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17115
allow_undefined_flag_GCJ="-z nodefs"
17116
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"
17118
# Determine the default libpath from the value encoded in an empty executable.
17119
cat >conftest.$ac_ext <<_ACEOF
17122
cat confdefs.h >>conftest.$ac_ext
17123
cat >>conftest.$ac_ext <<_ACEOF
17124
/* end confdefs.h. */
17134
rm -f conftest.$ac_objext conftest$ac_exeext
17135
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17136
(eval $ac_link) 2>conftest.er1
17138
grep -v '^ *+' conftest.er1 >conftest.err
17140
cat conftest.err >&5
17141
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142
(exit $ac_status); } &&
17143
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17144
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17145
(eval $ac_try) 2>&5
17147
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148
(exit $ac_status); }; } &&
17149
{ ac_try='test -s conftest$ac_exeext'
17150
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17151
(eval $ac_try) 2>&5
17153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154
(exit $ac_status); }; }; then
17156
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17158
# Check for a 64-bit object if we didn't find anything.
17159
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; }
17162
echo "$as_me: failed program was:" >&5
17163
sed 's/^/| /' conftest.$ac_ext >&5
17166
rm -f conftest.err conftest.$ac_objext \
17167
conftest$ac_exeext conftest.$ac_ext
17168
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17170
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17171
# Warning - without using the other run time loading flags,
17172
# -berok will link without error, but may produce a broken library.
17173
no_undefined_flag_GCJ=' ${wl}-bernotok'
17174
allow_undefined_flag_GCJ=' ${wl}-berok'
17175
# -bexpall does not export symbols beginning with underscore (_)
17176
always_export_symbols_GCJ=yes
17177
# Exported symbols can be pulled into shared objects from archives
17178
whole_archive_flag_spec_GCJ=' '
17179
archive_cmds_need_lc_GCJ=yes
17180
# This is similar to how AIX traditionally builds it's shared libraries.
17181
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'
17187
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)'
17188
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17189
hardcode_minus_L_GCJ=yes
17190
# see comment about different semantics on the GNU ld section
17195
export_dynamic_flag_spec_GCJ=-rdynamic
17198
cygwin* | mingw* | pw32*)
17199
# When not using gcc, we currently assume that we are using
17200
# Microsoft Visual C++.
17201
# hardcode_libdir_flag_spec is actually meaningless, as there is
17202
# no search path for DLLs.
17203
hardcode_libdir_flag_spec_GCJ=' '
17204
allow_undefined_flag_GCJ=unsupported
17205
# Tell ltmain to make .lib files, not .a files.
17207
# Tell ltmain to make .dll files, not .so files.
17209
# FIXME: Setting linknames here is a bad hack.
17210
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17211
# The linker will automatically build a .lib file if we build a DLL.
17212
old_archive_From_new_cmds_GCJ='true'
17213
# FIXME: Should let the user specify the lib program.
17214
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17215
fix_srcfile_path='`cygpath -w "$srcfile"`'
17216
enable_shared_with_static_runtimes_GCJ=yes
17219
darwin* | rhapsody*)
17220
if test "$GXX" = yes ; then
17221
archive_cmds_need_lc_GCJ=no
17223
rhapsody* | darwin1.[012])
17224
allow_undefined_flag_GCJ='-undefined suppress'
17227
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17228
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17230
case ${MACOSX_DEPLOYMENT_TARGET} in
17232
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17235
allow_undefined_flag_GCJ='-undefined dynamic_lookup'
17241
lt_int_apple_cc_single_mod=no
17242
output_verbose_link_cmd='echo'
17243
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17244
lt_int_apple_cc_single_mod=yes
17246
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17247
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17249
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'
17251
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17252
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17253
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17254
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}'
17256
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}'
17258
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17259
hardcode_direct_GCJ=no
17260
hardcode_automatic_GCJ=yes
17261
hardcode_shlibpath_var_GCJ=unsupported
17262
whole_archive_flag_spec_GCJ='-all_load $convenience'
17263
link_all_deplibs_GCJ=yes
17270
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17271
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17272
hardcode_shlibpath_var_GCJ=no
17279
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17280
# support. Future versions do this automatically, but an explicit c++rt0.o
17281
# does not break anything, and helps significantly (at the cost of a little
17284
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17285
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17286
hardcode_direct_GCJ=yes
17287
hardcode_shlibpath_var_GCJ=no
17290
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17292
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17293
hardcode_direct_GCJ=yes
17294
hardcode_minus_L_GCJ=yes
17295
hardcode_shlibpath_var_GCJ=no
17298
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17299
freebsd* | kfreebsd*-gnu)
17300
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17301
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17302
hardcode_direct_GCJ=yes
17303
hardcode_shlibpath_var_GCJ=no
17307
if test "$GCC" = yes; then
17308
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'
17310
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'
17312
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17313
hardcode_libdir_separator_GCJ=:
17314
hardcode_direct_GCJ=yes
17316
# hardcode_minus_L: Not really in the search PATH,
17317
# but as the default location of the library.
17318
hardcode_minus_L_GCJ=yes
17319
export_dynamic_flag_spec_GCJ='${wl}-E'
17323
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17324
case "$host_cpu" in
17326
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17329
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17333
case "$host_cpu" in
17335
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17338
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17342
if test "$with_gnu_ld" = no; then
17343
case "$host_cpu" in
17345
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17346
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17347
hardcode_libdir_separator_GCJ=:
17348
hardcode_direct_GCJ=no
17349
hardcode_shlibpath_var_GCJ=no
17352
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17353
hardcode_direct_GCJ=no
17354
hardcode_shlibpath_var_GCJ=no
17356
# hardcode_minus_L: Not really in the search PATH,
17357
# but as the default location of the library.
17358
hardcode_minus_L_GCJ=yes
17361
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17362
hardcode_libdir_separator_GCJ=:
17363
hardcode_direct_GCJ=yes
17364
export_dynamic_flag_spec_GCJ='${wl}-E'
17366
# hardcode_minus_L: Not really in the search PATH,
17367
# but as the default location of the library.
17368
hardcode_minus_L_GCJ=yes
17374
irix5* | irix6* | nonstopux*)
17375
if test "$GCC" = yes; then
17376
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'
17378
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'
17379
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17381
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17382
hardcode_libdir_separator_GCJ=:
17383
link_all_deplibs_GCJ=yes
17386
netbsd* | knetbsd*-gnu)
17387
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17388
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17390
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17392
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17393
hardcode_direct_GCJ=yes
17394
hardcode_shlibpath_var_GCJ=no
17398
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17399
hardcode_direct_GCJ=yes
17400
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17401
hardcode_libdir_separator_GCJ=:
17402
hardcode_shlibpath_var_GCJ=no
17406
hardcode_direct_GCJ=yes
17407
hardcode_shlibpath_var_GCJ=no
17408
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17409
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17410
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17411
export_dynamic_flag_spec_GCJ='${wl}-E'
17414
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17415
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17416
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17419
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17420
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17427
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17428
hardcode_minus_L_GCJ=yes
17429
allow_undefined_flag_GCJ=unsupported
17430
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'
17431
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17435
if test "$GCC" = yes; then
17436
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17437
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'
17439
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17440
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'
17442
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17443
hardcode_libdir_separator_GCJ=:
17446
osf4* | osf5*) # as osf3* with the addition of -msym flag
17447
if test "$GCC" = yes; then
17448
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17449
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'
17450
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17452
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17453
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'
17454
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~
17455
$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'
17457
# Both c and cxx compiler support -rpath directly
17458
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17460
hardcode_libdir_separator_GCJ=:
17464
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17465
hardcode_shlibpath_var_GCJ=no
17466
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17467
runpath_var=LD_RUN_PATH
17468
hardcode_runpath_var=yes
17472
no_undefined_flag_GCJ=' -z text'
17473
if test "$GCC" = yes; then
17474
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17475
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17476
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17478
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17479
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17480
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17482
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17483
hardcode_shlibpath_var_GCJ=no
17485
solaris2.[0-5] | solaris2.[0-5].*) ;;
17486
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
17487
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17489
link_all_deplibs_GCJ=yes
17493
if test "x$host_vendor" = xsequent; then
17494
# Use $CC to link under sequent, because it throws in some extra .o
17495
# files that make .init and .fini sections work.
17496
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17498
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17500
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17501
hardcode_direct_GCJ=yes
17502
hardcode_minus_L_GCJ=yes
17503
hardcode_shlibpath_var_GCJ=no
17507
case $host_vendor in
17509
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17510
hardcode_direct_GCJ=yes # is this really true???
17513
## LD is ld it makes a PLAMLIB
17514
## CC just makes a GrossModule.
17515
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17516
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17517
hardcode_direct_GCJ=no
17520
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17521
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17524
runpath_var='LD_RUN_PATH'
17525
hardcode_shlibpath_var_GCJ=no
17529
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17530
hardcode_shlibpath_var_GCJ=no
17531
export_dynamic_flag_spec_GCJ='-Bexport'
17535
if test -d /usr/nec; then
17536
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17537
hardcode_shlibpath_var_GCJ=no
17538
runpath_var=LD_RUN_PATH
17539
hardcode_runpath_var=yes
17545
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17546
hardcode_direct_GCJ=yes
17547
hardcode_minus_L_GCJ=no
17548
hardcode_shlibpath_var_GCJ=no
17549
hardcode_runpath_var=yes
17550
runpath_var=LD_RUN_PATH
17553
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17554
no_undefined_flag_GCJ='${wl}-z ${wl}text'
17555
if test "$GCC" = yes; then
17556
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17558
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17560
runpath_var='LD_RUN_PATH'
17561
hardcode_shlibpath_var_GCJ=no
17565
no_undefined_flag_GCJ=' -z text'
17566
# $CC -shared without GNU ld will not create a library from C++
17567
# object files and a static libstdc++, better avoid it by now
17568
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17569
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17570
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17571
hardcode_libdir_flag_spec_GCJ=
17572
hardcode_shlibpath_var_GCJ=no
17573
runpath_var='LD_RUN_PATH'
17577
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17578
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17579
hardcode_shlibpath_var_GCJ=no
17588
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17589
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17590
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17592
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17593
if test "$GCC" = yes; then
17594
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17598
# Do we need to explicitly link libc?
17600
case "x$archive_cmds_need_lc_GCJ" in
17602
# Assume -lc should be added
17603
archive_cmds_need_lc_GCJ=yes
17605
if test "$enable_shared" = yes && test "$GCC" = yes; then
17606
case $archive_cmds_GCJ in
17608
# FIXME: we may have to deal with multi-command sequences.
17611
# Test whether the compiler implicitly links with -lc since on some
17612
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17613
# to ld, don't add -lc before -lgcc.
17614
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17615
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17617
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17619
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17620
(eval $ac_compile) 2>&5
17622
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623
(exit $ac_status); } 2>conftest.err; then
17626
libobjs=conftest.$ac_objext
17628
wl=$lt_prog_compiler_wl_GCJ
17634
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17635
allow_undefined_flag_GCJ=
17636
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17637
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17639
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640
(exit $ac_status); }
17642
archive_cmds_need_lc_GCJ=no
17644
archive_cmds_need_lc_GCJ=yes
17646
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17648
cat conftest.err 1>&5
17651
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17652
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17659
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17660
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17661
library_names_spec=
17662
libname_spec='lib$name'
17666
postuninstall_cmds=
17670
shlibpath_overrides_runpath=unknown
17672
dynamic_linker="$host_os ld.so"
17673
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17674
if test "$GCC" = yes; then
17675
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17676
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17677
# if the path contains ";" then we assume it to be the separator
17678
# otherwise default to the standard path separator (i.e. ":") - it is
17679
# assumed that no part of a normal pathname contains ";" but that should
17680
# okay in the real world where ";" in dirpaths is itself problematic.
17681
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17683
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17686
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17688
need_lib_prefix=unknown
17689
hardcode_into_libs=no
17691
# when you set need_version to no, make sure it does not cause -set_version
17692
# flags to be left without arguments
17693
need_version=unknown
17698
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17699
shlibpath_var=LIBPATH
17701
# AIX 3 has no versioning support, so we append a major version to the name.
17702
soname_spec='${libname}${release}${shared_ext}$major'
17709
hardcode_into_libs=yes
17710
if test "$host_cpu" = ia64; then
17711
# AIX 5 supports IA64
17712
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17713
shlibpath_var=LD_LIBRARY_PATH
17715
# With GCC up to 2.95.x, collect2 would create an import file
17716
# for dependence libraries. The import file would start with
17717
# the line `#! .'. This would cause the generated library to
17718
# depend on `.', always an invalid library. This was fixed in
17719
# development snapshots of GCC prior to 3.0.
17721
aix4 | aix4.[01] | aix4.[01].*)
17722
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17724
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17727
can_build_shared=no
17731
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17732
# soname into executable. Probably we can add versioning support to
17733
# collect2, so additional links can be useful in future.
17734
if test "$aix_use_runtimelinking" = yes; then
17735
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17736
# instead of lib<name>.a to let people know that these are not
17737
# typical AIX shared libraries.
17738
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17740
# We preserve .a as extension for shared libraries through AIX4.2
17741
# and later when we are not doing run time linking.
17742
library_names_spec='${libname}${release}.a $libname.a'
17743
soname_spec='${libname}${release}${shared_ext}$major'
17745
shlibpath_var=LIBPATH
17750
library_names_spec='$libname.ixlibrary $libname.a'
17751
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17752
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'
17756
library_names_spec='${libname}${shared_ext}'
17757
dynamic_linker="$host_os ld.so"
17758
shlibpath_var=LIBRARY_PATH
17764
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17765
soname_spec='${libname}${release}${shared_ext}$major'
17766
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17767
shlibpath_var=LD_LIBRARY_PATH
17768
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17769
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17770
# the default ld.so.conf also contains /usr/contrib/lib and
17771
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17772
# libtool to hard-code these into programs
17775
cygwin* | mingw* | pw32*)
17776
version_type=windows
17781
case $GCC,$host_os in
17782
yes,cygwin* | yes,mingw* | yes,pw32*)
17783
library_names_spec='$libname.dll.a'
17784
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17785
postinstall_cmds='base_file=`basename \${file}`~
17786
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17787
dldir=$destdir/`dirname \$dlpath`~
17788
test -d \$dldir || mkdir -p \$dldir~
17789
$install_prog $dir/$dlname \$dldir/$dlname'
17790
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17791
dlpath=$dir/\$dldll~
17793
shlibpath_overrides_runpath=yes
17797
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17798
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17799
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17802
# MinGW DLLs use traditional 'lib' prefix
17803
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17804
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17805
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17806
# It is most probably a Windows format PATH printed by
17807
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17808
# path with ; separators, and with drive letters. We can handle the
17809
# drive letters (cygwin fileutils understands them), so leave them,
17810
# especially as we might pass files found there to a mingw objdump,
17811
# which wouldn't understand a cygwinified path. Ahh.
17812
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17814
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17818
# pw32 DLLs use 'pw' prefix rather than 'lib'
17819
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17825
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17828
dynamic_linker='Win32 ld.exe'
17829
# FIXME: first we should search . and the directory the executable is in
17833
darwin* | rhapsody*)
17834
dynamic_linker="$host_os dyld"
17835
version_type=darwin
17838
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17839
soname_spec='${libname}${release}${major}$shared_ext'
17840
shlibpath_overrides_runpath=yes
17841
shlibpath_var=DYLD_LIBRARY_PATH
17842
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17843
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17844
if test "$GCC" = yes; then
17845
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"`
17847
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17849
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17856
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17857
soname_spec='${libname}${release}${shared_ext}$major'
17858
shlibpath_var=LD_LIBRARY_PATH
17869
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17870
soname_spec='${libname}${release}${shared_ext}$major'
17871
shlibpath_var=LD_LIBRARY_PATH
17872
shlibpath_overrides_runpath=no
17873
hardcode_into_libs=yes
17874
dynamic_linker='GNU ld.so'
17878
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17879
version_type=freebsd-$objformat
17880
case $version_type in
17882
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17887
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17891
shlibpath_var=LD_LIBRARY_PATH
17894
shlibpath_overrides_runpath=yes
17896
freebsd3.01* | freebsdelf3.01*)
17897
shlibpath_overrides_runpath=yes
17898
hardcode_into_libs=yes
17901
shlibpath_overrides_runpath=no
17902
hardcode_into_libs=yes
17911
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17912
soname_spec='${libname}${release}${shared_ext}$major'
17913
shlibpath_var=LD_LIBRARY_PATH
17914
hardcode_into_libs=yes
17917
hpux9* | hpux10* | hpux11*)
17918
# Give a soname corresponding to the major version so that dld.sl refuses to
17919
# link against other versions.
17923
case "$host_cpu" in
17926
hardcode_into_libs=yes
17927
dynamic_linker="$host_os dld.so"
17928
shlibpath_var=LD_LIBRARY_PATH
17929
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17930
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17931
soname_spec='${libname}${release}${shared_ext}$major'
17932
if test "X$HPUX_IA64_MODE" = X32; then
17933
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17935
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17937
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17941
hardcode_into_libs=yes
17942
dynamic_linker="$host_os dld.sl"
17943
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17944
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17945
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17946
soname_spec='${libname}${release}${shared_ext}$major'
17947
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17948
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17952
dynamic_linker="$host_os dld.sl"
17953
shlibpath_var=SHLIB_PATH
17954
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17955
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17956
soname_spec='${libname}${release}${shared_ext}$major'
17959
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17960
postinstall_cmds='chmod 555 $lib'
17963
irix5* | irix6* | nonstopux*)
17965
nonstopux*) version_type=nonstopux ;;
17967
if test "$lt_cv_prog_gnu_ld" = yes; then
17975
soname_spec='${libname}${release}${shared_ext}$major'
17976
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17978
irix5* | nonstopux*)
17979
libsuff= shlibsuff=
17982
case $LD in # libtool.m4 will add one of these switches to LD
17983
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17984
libsuff= shlibsuff= libmagic=32-bit;;
17985
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17986
libsuff=32 shlibsuff=N32 libmagic=N32;;
17987
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17988
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17989
*) libsuff= shlibsuff= libmagic=never-match;;
17993
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17994
shlibpath_overrides_runpath=no
17995
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17996
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17997
hardcode_into_libs=yes
18000
# No shared lib support for Linux oldld, aout, or coff.
18001
linux*oldld* | linux*aout* | linux*coff*)
18005
# This must be Linux ELF.
18010
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18011
soname_spec='${libname}${release}${shared_ext}$major'
18012
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18013
shlibpath_var=LD_LIBRARY_PATH
18014
shlibpath_overrides_runpath=no
18015
# This implies no fast_install, which is unacceptable.
18016
# Some rework will be needed to allow for fast_install
18017
# before this can be enabled.
18018
hardcode_into_libs=yes
18020
# Append ld.so.conf contents to the search path
18021
if test -f /etc/ld.so.conf; then
18022
ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
18023
sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
18026
# We used to test for /lib/ld.so.1 and disable shared libraries on
18027
# powerpc, because MkLinux only supported shared libraries with the
18028
# GNU dynamic linker. Since this was broken with cross compilers,
18029
# most powerpc-linux boxes support dynamic linking these days and
18030
# people can always --disable-shared, the test was removed, and we
18031
# assume the GNU/Linux dynamic linker is in use.
18032
dynamic_linker='GNU/Linux ld.so'
18039
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18040
soname_spec='${libname}${release}${shared_ext}$major'
18041
shlibpath_var=LD_LIBRARY_PATH
18042
shlibpath_overrides_runpath=no
18043
hardcode_into_libs=yes
18044
dynamic_linker='GNU ld.so'
18051
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18052
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18053
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18054
dynamic_linker='NetBSD (a.out) ld.so'
18056
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18057
soname_spec='${libname}${release}${shared_ext}$major'
18058
dynamic_linker='NetBSD ld.elf_so'
18060
shlibpath_var=LD_LIBRARY_PATH
18061
shlibpath_overrides_runpath=yes
18062
hardcode_into_libs=yes
18067
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18068
shlibpath_var=LD_LIBRARY_PATH
18069
shlibpath_overrides_runpath=yes
18076
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18077
soname_spec='${libname}${release}${shared_ext}$major'
18078
shlibpath_var=LD_LIBRARY_PATH
18079
shlibpath_overrides_runpath=yes
18086
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18087
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18088
shlibpath_var=LD_LIBRARY_PATH
18089
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18091
openbsd2.[89] | openbsd2.[89].*)
18092
shlibpath_overrides_runpath=no
18095
shlibpath_overrides_runpath=yes
18099
shlibpath_overrides_runpath=yes
18104
libname_spec='$name'
18107
library_names_spec='$libname${shared_ext} $libname.a'
18108
dynamic_linker='OS/2 ld.exe'
18109
shlibpath_var=LIBPATH
18112
osf3* | osf4* | osf5*)
18116
soname_spec='${libname}${release}${shared_ext}$major'
18117
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18118
shlibpath_var=LD_LIBRARY_PATH
18119
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18120
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18125
soname_spec='${libname}${release}${shared_ext}$major'
18126
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18127
shlibpath_var=LD_LIBRARY_PATH
18134
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18135
soname_spec='${libname}${release}${shared_ext}$major'
18136
shlibpath_var=LD_LIBRARY_PATH
18137
shlibpath_overrides_runpath=yes
18138
hardcode_into_libs=yes
18139
# ldd complains unless libraries are executable
18140
postinstall_cmds='chmod +x $lib'
18145
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18146
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18147
shlibpath_var=LD_LIBRARY_PATH
18148
shlibpath_overrides_runpath=yes
18149
if test "$with_gnu_ld" = yes; then
18155
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18157
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18158
soname_spec='${libname}${release}${shared_ext}$major'
18159
shlibpath_var=LD_LIBRARY_PATH
18160
case $host_vendor in
18162
shlibpath_overrides_runpath=no
18164
export_dynamic_flag_spec='${wl}-Blargedynsym'
18165
runpath_var=LD_RUN_PATH
18173
shlibpath_overrides_runpath=no
18174
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18180
if test -d /usr/nec ;then
18182
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18183
soname_spec='$libname${shared_ext}.$major'
18184
shlibpath_var=LD_LIBRARY_PATH
18190
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18191
soname_spec='${libname}${release}${shared_ext}$major'
18192
shlibpath_var=LD_LIBRARY_PATH
18199
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18200
echo "${ECHO_T}$dynamic_linker" >&6
18201
test "$dynamic_linker" = no && can_build_shared=no
18203
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18204
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18205
hardcode_action_GCJ=
18206
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18207
test -n "$runpath_var GCJ" || \
18208
test "X$hardcode_automatic_GCJ"="Xyes" ; then
18210
# We can hardcode non-existant directories.
18211
if test "$hardcode_direct_GCJ" != no &&
18212
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18213
# have to relink, otherwise we might link with an installed library
18214
# when we should be linking with a yet-to-be-installed one
18215
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18216
test "$hardcode_minus_L_GCJ" != no; then
18217
# Linking always hardcodes the temporary library directory.
18218
hardcode_action_GCJ=relink
18220
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18221
hardcode_action_GCJ=immediate
18224
# We cannot hardcode anything, or else we can only hardcode existing
18226
hardcode_action_GCJ=unsupported
18228
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18229
echo "${ECHO_T}$hardcode_action_GCJ" >&6
18231
if test "$hardcode_action_GCJ" = relink; then
18232
# Fast installation is not supported
18233
enable_fast_install=no
18234
elif test "$shlibpath_overrides_runpath" = yes ||
18235
test "$enable_shared" = no; then
18236
# Fast installation is not necessary
18237
enable_fast_install=needless
18242
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18243
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18244
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18245
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18246
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18247
echo "$as_me:$LINENO: result: yes" >&5
18248
echo "${ECHO_T}yes" >&6
18250
# FIXME - insert some real tests, host_os isn't really good enough
18253
if test -n "$STRIP" ; then
18254
striplib="$STRIP -x"
18255
echo "$as_me:$LINENO: result: yes" >&5
18256
echo "${ECHO_T}yes" >&6
18258
echo "$as_me:$LINENO: result: no" >&5
18259
echo "${ECHO_T}no" >&6
18263
echo "$as_me:$LINENO: result: no" >&5
18264
echo "${ECHO_T}no" >&6
18269
if test "x$enable_dlopen" != xyes; then
18270
enable_dlopen=unknown
18271
enable_dlopen_self=unknown
18272
enable_dlopen_self_static=unknown
18279
lt_cv_dlopen="load_add_on"
18281
lt_cv_dlopen_self=yes
18285
lt_cv_dlopen="LoadLibrary"
18290
lt_cv_dlopen="dlopen"
18295
# if libdl is installed we need to link against it
18296
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18297
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18298
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18299
echo $ECHO_N "(cached) $ECHO_C" >&6
18301
ac_check_lib_save_LIBS=$LIBS
18303
cat >conftest.$ac_ext <<_ACEOF
18306
cat confdefs.h >>conftest.$ac_ext
18307
cat >>conftest.$ac_ext <<_ACEOF
18308
/* end confdefs.h. */
18310
/* Override any gcc2 internal prototype to avoid an error. */
18314
/* We use char because int might match the return type of a gcc2
18315
builtin and then its argument prototype would still apply. */
18325
rm -f conftest.$ac_objext conftest$ac_exeext
18326
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18327
(eval $ac_link) 2>conftest.er1
18329
grep -v '^ *+' conftest.er1 >conftest.err
18331
cat conftest.err >&5
18332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333
(exit $ac_status); } &&
18334
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18335
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336
(eval $ac_try) 2>&5
18338
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339
(exit $ac_status); }; } &&
18340
{ ac_try='test -s conftest$ac_exeext'
18341
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18342
(eval $ac_try) 2>&5
18344
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345
(exit $ac_status); }; }; then
18346
ac_cv_lib_dl_dlopen=yes
18348
echo "$as_me: failed program was:" >&5
18349
sed 's/^/| /' conftest.$ac_ext >&5
18351
ac_cv_lib_dl_dlopen=no
18353
rm -f conftest.err conftest.$ac_objext \
18354
conftest$ac_exeext conftest.$ac_ext
18355
LIBS=$ac_check_lib_save_LIBS
18357
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18358
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18359
if test $ac_cv_lib_dl_dlopen = yes; then
18360
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18363
lt_cv_dlopen="dyld"
18365
lt_cv_dlopen_self=yes
18372
echo "$as_me:$LINENO: checking for shl_load" >&5
18373
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18374
if test "${ac_cv_func_shl_load+set}" = set; then
18375
echo $ECHO_N "(cached) $ECHO_C" >&6
18377
cat >conftest.$ac_ext <<_ACEOF
18380
cat confdefs.h >>conftest.$ac_ext
18381
cat >>conftest.$ac_ext <<_ACEOF
18382
/* end confdefs.h. */
18383
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18384
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18385
#define shl_load innocuous_shl_load
18387
/* System header to define __stub macros and hopefully few prototypes,
18388
which can conflict with char shl_load (); below.
18389
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18390
<limits.h> exists even on freestanding compilers. */
18393
# include <limits.h>
18395
# include <assert.h>
18400
/* Override any gcc2 internal prototype to avoid an error. */
18405
/* We use char because int might match the return type of a gcc2
18406
builtin and then its argument prototype would still apply. */
18408
/* The GNU C library defines this for functions which it implements
18409
to always fail with ENOSYS. Some functions are actually named
18410
something starting with __ and the normal name is an alias. */
18411
#if defined (__stub_shl_load) || defined (__stub___shl_load)
18414
char (*f) () = shl_load;
18423
return f != shl_load;
18428
rm -f conftest.$ac_objext conftest$ac_exeext
18429
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18430
(eval $ac_link) 2>conftest.er1
18432
grep -v '^ *+' conftest.er1 >conftest.err
18434
cat conftest.err >&5
18435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436
(exit $ac_status); } &&
18437
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18438
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439
(eval $ac_try) 2>&5
18441
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442
(exit $ac_status); }; } &&
18443
{ ac_try='test -s conftest$ac_exeext'
18444
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18445
(eval $ac_try) 2>&5
18447
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448
(exit $ac_status); }; }; then
18449
ac_cv_func_shl_load=yes
18451
echo "$as_me: failed program was:" >&5
18452
sed 's/^/| /' conftest.$ac_ext >&5
18454
ac_cv_func_shl_load=no
18456
rm -f conftest.err conftest.$ac_objext \
18457
conftest$ac_exeext conftest.$ac_ext
18459
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18460
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18461
if test $ac_cv_func_shl_load = yes; then
18462
lt_cv_dlopen="shl_load"
18464
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18465
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18466
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18467
echo $ECHO_N "(cached) $ECHO_C" >&6
18469
ac_check_lib_save_LIBS=$LIBS
18471
cat >conftest.$ac_ext <<_ACEOF
18474
cat confdefs.h >>conftest.$ac_ext
18475
cat >>conftest.$ac_ext <<_ACEOF
18476
/* end confdefs.h. */
18478
/* Override any gcc2 internal prototype to avoid an error. */
18482
/* We use char because int might match the return type of a gcc2
18483
builtin and then its argument prototype would still apply. */
18493
rm -f conftest.$ac_objext conftest$ac_exeext
18494
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18495
(eval $ac_link) 2>conftest.er1
18497
grep -v '^ *+' conftest.er1 >conftest.err
18499
cat conftest.err >&5
18500
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501
(exit $ac_status); } &&
18502
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18503
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18504
(eval $ac_try) 2>&5
18506
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507
(exit $ac_status); }; } &&
18508
{ ac_try='test -s conftest$ac_exeext'
18509
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18510
(eval $ac_try) 2>&5
18512
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513
(exit $ac_status); }; }; then
18514
ac_cv_lib_dld_shl_load=yes
18516
echo "$as_me: failed program was:" >&5
18517
sed 's/^/| /' conftest.$ac_ext >&5
18519
ac_cv_lib_dld_shl_load=no
18521
rm -f conftest.err conftest.$ac_objext \
18522
conftest$ac_exeext conftest.$ac_ext
18523
LIBS=$ac_check_lib_save_LIBS
18525
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18526
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18527
if test $ac_cv_lib_dld_shl_load = yes; then
18528
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18530
echo "$as_me:$LINENO: checking for dlopen" >&5
18531
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18532
if test "${ac_cv_func_dlopen+set}" = set; then
18533
echo $ECHO_N "(cached) $ECHO_C" >&6
18535
cat >conftest.$ac_ext <<_ACEOF
18538
cat confdefs.h >>conftest.$ac_ext
18539
cat >>conftest.$ac_ext <<_ACEOF
18540
/* end confdefs.h. */
18541
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18542
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18543
#define dlopen innocuous_dlopen
18545
/* System header to define __stub macros and hopefully few prototypes,
18546
which can conflict with char dlopen (); below.
18547
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18548
<limits.h> exists even on freestanding compilers. */
18551
# include <limits.h>
18553
# include <assert.h>
18558
/* Override any gcc2 internal prototype to avoid an error. */
18563
/* We use char because int might match the return type of a gcc2
18564
builtin and then its argument prototype would still apply. */
18566
/* The GNU C library defines this for functions which it implements
18567
to always fail with ENOSYS. Some functions are actually named
18568
something starting with __ and the normal name is an alias. */
18569
#if defined (__stub_dlopen) || defined (__stub___dlopen)
18572
char (*f) () = dlopen;
18581
return f != dlopen;
18586
rm -f conftest.$ac_objext conftest$ac_exeext
18587
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18588
(eval $ac_link) 2>conftest.er1
18590
grep -v '^ *+' conftest.er1 >conftest.err
18592
cat conftest.err >&5
18593
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594
(exit $ac_status); } &&
18595
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18596
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18597
(eval $ac_try) 2>&5
18599
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600
(exit $ac_status); }; } &&
18601
{ ac_try='test -s conftest$ac_exeext'
18602
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18603
(eval $ac_try) 2>&5
18605
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606
(exit $ac_status); }; }; then
18607
ac_cv_func_dlopen=yes
18609
echo "$as_me: failed program was:" >&5
18610
sed 's/^/| /' conftest.$ac_ext >&5
18612
ac_cv_func_dlopen=no
18614
rm -f conftest.err conftest.$ac_objext \
18615
conftest$ac_exeext conftest.$ac_ext
18617
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18618
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18619
if test $ac_cv_func_dlopen = yes; then
18620
lt_cv_dlopen="dlopen"
18622
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18623
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18624
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18625
echo $ECHO_N "(cached) $ECHO_C" >&6
18627
ac_check_lib_save_LIBS=$LIBS
18629
cat >conftest.$ac_ext <<_ACEOF
18632
cat confdefs.h >>conftest.$ac_ext
18633
cat >>conftest.$ac_ext <<_ACEOF
18634
/* end confdefs.h. */
18636
/* Override any gcc2 internal prototype to avoid an error. */
18640
/* We use char because int might match the return type of a gcc2
18641
builtin and then its argument prototype would still apply. */
18651
rm -f conftest.$ac_objext conftest$ac_exeext
18652
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18653
(eval $ac_link) 2>conftest.er1
18655
grep -v '^ *+' conftest.er1 >conftest.err
18657
cat conftest.err >&5
18658
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659
(exit $ac_status); } &&
18660
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18661
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18662
(eval $ac_try) 2>&5
18664
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665
(exit $ac_status); }; } &&
18666
{ ac_try='test -s conftest$ac_exeext'
18667
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18668
(eval $ac_try) 2>&5
18670
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671
(exit $ac_status); }; }; then
18672
ac_cv_lib_dl_dlopen=yes
18674
echo "$as_me: failed program was:" >&5
18675
sed 's/^/| /' conftest.$ac_ext >&5
18677
ac_cv_lib_dl_dlopen=no
18679
rm -f conftest.err conftest.$ac_objext \
18680
conftest$ac_exeext conftest.$ac_ext
18681
LIBS=$ac_check_lib_save_LIBS
18683
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18684
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18685
if test $ac_cv_lib_dl_dlopen = yes; then
18686
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18688
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18689
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18690
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18691
echo $ECHO_N "(cached) $ECHO_C" >&6
18693
ac_check_lib_save_LIBS=$LIBS
18694
LIBS="-lsvld $LIBS"
18695
cat >conftest.$ac_ext <<_ACEOF
18698
cat confdefs.h >>conftest.$ac_ext
18699
cat >>conftest.$ac_ext <<_ACEOF
18700
/* end confdefs.h. */
18702
/* Override any gcc2 internal prototype to avoid an error. */
18706
/* We use char because int might match the return type of a gcc2
18707
builtin and then its argument prototype would still apply. */
18717
rm -f conftest.$ac_objext conftest$ac_exeext
18718
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18719
(eval $ac_link) 2>conftest.er1
18721
grep -v '^ *+' conftest.er1 >conftest.err
18723
cat conftest.err >&5
18724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725
(exit $ac_status); } &&
18726
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18727
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18728
(eval $ac_try) 2>&5
18730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731
(exit $ac_status); }; } &&
18732
{ ac_try='test -s conftest$ac_exeext'
18733
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18734
(eval $ac_try) 2>&5
18736
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737
(exit $ac_status); }; }; then
18738
ac_cv_lib_svld_dlopen=yes
18740
echo "$as_me: failed program was:" >&5
18741
sed 's/^/| /' conftest.$ac_ext >&5
18743
ac_cv_lib_svld_dlopen=no
18745
rm -f conftest.err conftest.$ac_objext \
18746
conftest$ac_exeext conftest.$ac_ext
18747
LIBS=$ac_check_lib_save_LIBS
18749
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18750
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18751
if test $ac_cv_lib_svld_dlopen = yes; then
18752
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18754
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18755
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18756
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18757
echo $ECHO_N "(cached) $ECHO_C" >&6
18759
ac_check_lib_save_LIBS=$LIBS
18761
cat >conftest.$ac_ext <<_ACEOF
18764
cat confdefs.h >>conftest.$ac_ext
18765
cat >>conftest.$ac_ext <<_ACEOF
18766
/* end confdefs.h. */
18768
/* Override any gcc2 internal prototype to avoid an error. */
18772
/* We use char because int might match the return type of a gcc2
18773
builtin and then its argument prototype would still apply. */
18783
rm -f conftest.$ac_objext conftest$ac_exeext
18784
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18785
(eval $ac_link) 2>conftest.er1
18787
grep -v '^ *+' conftest.er1 >conftest.err
18789
cat conftest.err >&5
18790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791
(exit $ac_status); } &&
18792
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18793
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18794
(eval $ac_try) 2>&5
18796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797
(exit $ac_status); }; } &&
18798
{ ac_try='test -s conftest$ac_exeext'
18799
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800
(eval $ac_try) 2>&5
18802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803
(exit $ac_status); }; }; then
18804
ac_cv_lib_dld_dld_link=yes
18806
echo "$as_me: failed program was:" >&5
18807
sed 's/^/| /' conftest.$ac_ext >&5
18809
ac_cv_lib_dld_dld_link=no
18811
rm -f conftest.err conftest.$ac_objext \
18812
conftest$ac_exeext conftest.$ac_ext
18813
LIBS=$ac_check_lib_save_LIBS
18815
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18816
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18817
if test $ac_cv_lib_dld_dld_link = yes; then
18818
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18839
if test "x$lt_cv_dlopen" != xno; then
18845
case $lt_cv_dlopen in
18847
save_CPPFLAGS="$CPPFLAGS"
18848
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18850
save_LDFLAGS="$LDFLAGS"
18851
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18854
LIBS="$lt_cv_dlopen_libs $LIBS"
18856
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18857
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18858
if test "${lt_cv_dlopen_self+set}" = set; then
18859
echo $ECHO_N "(cached) $ECHO_C" >&6
18861
if test "$cross_compiling" = yes; then :
18862
lt_cv_dlopen_self=cross
18864
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18865
lt_status=$lt_dlunknown
18866
cat > conftest.$ac_ext <<EOF
18867
#line 18867 "configure"
18868
#include "confdefs.h"
18877
# define LT_DLGLOBAL RTLD_GLOBAL
18880
# define LT_DLGLOBAL DL_GLOBAL
18882
# define LT_DLGLOBAL 0
18886
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18887
find out it does not work in some platform. */
18888
#ifndef LT_DLLAZY_OR_NOW
18890
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18893
# define LT_DLLAZY_OR_NOW DL_LAZY
18896
# define LT_DLLAZY_OR_NOW RTLD_NOW
18899
# define LT_DLLAZY_OR_NOW DL_NOW
18901
# define LT_DLLAZY_OR_NOW 0
18909
extern "C" void exit (int);
18912
void fnord() { int i=42;}
18915
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18916
int status = $lt_dlunknown;
18920
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18921
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18922
/* dlclose (self); */
18928
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18929
(eval $ac_link) 2>&5
18931
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18933
(./conftest; exit; ) 2>/dev/null
18935
case x$lt_status in
18936
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18937
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18938
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18941
# compilation failed
18942
lt_cv_dlopen_self=no
18949
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18950
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18952
if test "x$lt_cv_dlopen_self" = xyes; then
18953
LDFLAGS="$LDFLAGS $link_static_flag"
18954
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18955
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18956
if test "${lt_cv_dlopen_self_static+set}" = set; then
18957
echo $ECHO_N "(cached) $ECHO_C" >&6
18959
if test "$cross_compiling" = yes; then :
18960
lt_cv_dlopen_self_static=cross
18962
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18963
lt_status=$lt_dlunknown
18964
cat > conftest.$ac_ext <<EOF
18965
#line 18965 "configure"
18966
#include "confdefs.h"
18975
# define LT_DLGLOBAL RTLD_GLOBAL
18978
# define LT_DLGLOBAL DL_GLOBAL
18980
# define LT_DLGLOBAL 0
18984
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18985
find out it does not work in some platform. */
18986
#ifndef LT_DLLAZY_OR_NOW
18988
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18991
# define LT_DLLAZY_OR_NOW DL_LAZY
18994
# define LT_DLLAZY_OR_NOW RTLD_NOW
18997
# define LT_DLLAZY_OR_NOW DL_NOW
18999
# define LT_DLLAZY_OR_NOW 0
19007
extern "C" void exit (int);
19010
void fnord() { int i=42;}
19013
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19014
int status = $lt_dlunknown;
19018
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19019
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19020
/* dlclose (self); */
19026
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19027
(eval $ac_link) 2>&5
19029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19031
(./conftest; exit; ) 2>/dev/null
19033
case x$lt_status in
19034
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19035
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19036
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19039
# compilation failed
19040
lt_cv_dlopen_self_static=no
19047
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19048
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19051
CPPFLAGS="$save_CPPFLAGS"
19052
LDFLAGS="$save_LDFLAGS"
19057
case $lt_cv_dlopen_self in
19058
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19059
*) enable_dlopen_self=unknown ;;
19062
case $lt_cv_dlopen_self_static in
19063
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19064
*) enable_dlopen_self_static=unknown ;;
19069
# The else clause should only fire when bootstrapping the
19070
# libtool distribution, otherwise you forgot to ship ltmain.sh
19071
# with your package, and you will get complaints that there are
19072
# no rules to generate ltmain.sh.
19073
if test -f "$ltmain"; then
19074
# See if we are running on zsh, and set the options which allow our commands through
19075
# without removal of \ escapes.
19076
if test -n "${ZSH_VERSION+set}" ; then
19077
setopt NO_GLOB_SUBST
19079
# Now quote all the things that may contain metacharacters while being
19080
# careful not to overquote the AC_SUBSTed values. We take copies of the
19081
# variables and quote the copies for generation of the libtool script.
19082
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19084
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19085
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19086
deplibs_check_method reload_flag reload_cmds need_locks \
19087
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19088
lt_cv_sys_global_symbol_to_c_name_address \
19089
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19090
old_postinstall_cmds old_postuninstall_cmds \
19094
lt_prog_compiler_wl_GCJ \
19095
lt_prog_compiler_pic_GCJ \
19096
lt_prog_compiler_static_GCJ \
19097
lt_prog_compiler_no_builtin_flag_GCJ \
19098
export_dynamic_flag_spec_GCJ \
19099
thread_safe_flag_spec_GCJ \
19100
whole_archive_flag_spec_GCJ \
19101
enable_shared_with_static_runtimes_GCJ \
19102
old_archive_cmds_GCJ \
19103
old_archive_from_new_cmds_GCJ \
19104
predep_objects_GCJ \
19105
postdep_objects_GCJ \
19108
compiler_lib_search_path_GCJ \
19110
archive_expsym_cmds_GCJ \
19111
postinstall_cmds_GCJ \
19112
postuninstall_cmds_GCJ \
19113
old_archive_from_expsyms_cmds_GCJ \
19114
allow_undefined_flag_GCJ \
19115
no_undefined_flag_GCJ \
19116
export_symbols_cmds_GCJ \
19117
hardcode_libdir_flag_spec_GCJ \
19118
hardcode_libdir_flag_spec_ld_GCJ \
19119
hardcode_libdir_separator_GCJ \
19120
hardcode_automatic_GCJ \
19122
module_expsym_cmds_GCJ \
19123
lt_cv_prog_compiler_c_o_GCJ \
19124
exclude_expsyms_GCJ \
19125
include_expsyms_GCJ; do
19128
old_archive_cmds_GCJ | \
19129
old_archive_from_new_cmds_GCJ | \
19130
archive_cmds_GCJ | \
19131
archive_expsym_cmds_GCJ | \
19132
module_cmds_GCJ | \
19133
module_expsym_cmds_GCJ | \
19134
old_archive_from_expsyms_cmds_GCJ | \
19135
export_symbols_cmds_GCJ | \
19136
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19137
postinstall_cmds | postuninstall_cmds | \
19138
old_postinstall_cmds | old_postuninstall_cmds | \
19139
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19140
# Double-quote double-evaled strings.
19141
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19144
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19150
*'\$0 --fallback-echo"')
19151
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19157
cat <<__EOF__ >> "$cfgfile"
19158
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19160
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19162
# Shell to use when invoking shell scripts.
19165
# Whether or not to build shared libraries.
19166
build_libtool_libs=$enable_shared
19168
# Whether or not to build static libraries.
19169
build_old_libs=$enable_static
19171
# Whether or not to add -lc for building shared libraries.
19172
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19174
# Whether or not to disallow shared libs when runtime libs are static
19175
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19177
# Whether or not to optimize for fast installation.
19178
fast_install=$enable_fast_install
19181
host_alias=$host_alias
19184
# An echo program that does not interpret backslashes.
19189
AR_FLAGS=$lt_AR_FLAGS
19194
# A language-specific compiler.
19195
CC=$lt_compiler_GCJ
19197
# Is the compiler the GNU C compiler?
19203
# The linker used to build libraries.
19206
# Whether we need hard or soft links.
19209
# A BSD-compatible nm program.
19212
# A symbol stripping program
19215
# Used to examine libraries when file_magic_cmd begins "file"
19216
MAGIC_CMD=$MAGIC_CMD
19218
# Used on cygwin: DLL creation program.
19221
# Used on cygwin: object dumper.
19224
# Used on cygwin: assembler.
19227
# The name of the directory that contains temporary libtool files.
19230
# How to create reloadable object files.
19231
reload_flag=$lt_reload_flag
19232
reload_cmds=$lt_reload_cmds
19234
# How to pass a linker flag through the compiler.
19235
wl=$lt_lt_prog_compiler_wl_GCJ
19237
# Object file suffix (normally "o").
19238
objext="$ac_objext"
19240
# Old archive suffix (normally "a").
19243
# Shared library suffix (normally ".so").
19246
# Executable file suffix (normally "").
19249
# Additional compiler flags for building library objects.
19250
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19253
# What is the maximum length of a command?
19254
max_cmd_len=$lt_cv_sys_max_cmd_len
19256
# Does compiler simultaneously support -c and -o options?
19257
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19259
# Must we lock files when doing compilation ?
19260
need_locks=$lt_need_locks
19262
# Do we need the lib prefix for modules?
19263
need_lib_prefix=$need_lib_prefix
19265
# Do we need a version for libraries?
19266
need_version=$need_version
19268
# Whether dlopen is supported.
19269
dlopen_support=$enable_dlopen
19271
# Whether dlopen of programs is supported.
19272
dlopen_self=$enable_dlopen_self
19274
# Whether dlopen of statically linked programs is supported.
19275
dlopen_self_static=$enable_dlopen_self_static
19277
# Compiler flag to prevent dynamic linking.
19278
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19280
# Compiler flag to turn off builtin functions.
19281
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19283
# Compiler flag to allow reflexive dlopens.
19284
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19286
# Compiler flag to generate shared objects directly from archives.
19287
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19289
# Compiler flag to generate thread-safe objects.
19290
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19292
# Library versioning type.
19293
version_type=$version_type
19295
# Format of library name prefix.
19296
libname_spec=$lt_libname_spec
19298
# List of archive names. First name is the real one, the rest are links.
19299
# The last name is the one that the linker finds with -lNAME.
19300
library_names_spec=$lt_library_names_spec
19302
# The coded name of the library, if different from the real name.
19303
soname_spec=$lt_soname_spec
19305
# Commands used to build and install an old-style archive.
19307
old_archive_cmds=$lt_old_archive_cmds_GCJ
19308
old_postinstall_cmds=$lt_old_postinstall_cmds
19309
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19311
# Create an old-style archive from a shared archive.
19312
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19314
# Create a temporary old-style archive to link instead of a shared archive.
19315
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19317
# Commands used to build and install a shared archive.
19318
archive_cmds=$lt_archive_cmds_GCJ
19319
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19320
postinstall_cmds=$lt_postinstall_cmds
19321
postuninstall_cmds=$lt_postuninstall_cmds
19323
# Commands used to build a loadable module (assumed same as above if empty)
19324
module_cmds=$lt_module_cmds_GCJ
19325
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19327
# Commands to strip libraries.
19328
old_striplib=$lt_old_striplib
19329
striplib=$lt_striplib
19331
# Dependencies to place before the objects being linked to create a
19333
predep_objects=$lt_predep_objects_GCJ
19335
# Dependencies to place after the objects being linked to create a
19337
postdep_objects=$lt_postdep_objects_GCJ
19339
# Dependencies to place before the objects being linked to create a
19341
predeps=$lt_predeps_GCJ
19343
# Dependencies to place after the objects being linked to create a
19345
postdeps=$lt_postdeps_GCJ
19347
# The library search path used internally by the compiler when linking
19348
# a shared library.
19349
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19351
# Method to check whether dependent libraries are shared objects.
19352
deplibs_check_method=$lt_deplibs_check_method
19354
# Command to use when deplibs_check_method == file_magic.
19355
file_magic_cmd=$lt_file_magic_cmd
19357
# Flag that allows shared libraries with undefined symbols to be built.
19358
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19360
# Flag that forces no undefined symbols.
19361
no_undefined_flag=$lt_no_undefined_flag_GCJ
19363
# Commands used to finish a libtool library installation in a directory.
19364
finish_cmds=$lt_finish_cmds
19366
# Same as above, but a single script fragment to be evaled but not shown.
19367
finish_eval=$lt_finish_eval
19369
# Take the output of nm and produce a listing of raw symbols and C names.
19370
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19372
# Transform the output of nm in a proper C declaration
19373
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19375
# Transform the output of nm in a C name address pair
19376
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19378
# This is the shared library runtime path variable.
19379
runpath_var=$runpath_var
19381
# This is the shared library path variable.
19382
shlibpath_var=$shlibpath_var
19384
# Is shlibpath searched before the hard-coded library search path?
19385
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19387
# How to hardcode a shared library path into an executable.
19388
hardcode_action=$hardcode_action_GCJ
19390
# Whether we should hardcode library paths into libraries.
19391
hardcode_into_libs=$hardcode_into_libs
19393
# Flag to hardcode \$libdir into a binary during linking.
19394
# This must work even if \$libdir does not exist.
19395
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19397
# If ld is used when linking, flag to hardcode \$libdir into
19398
# a binary during linking. This must work even if \$libdir does
19400
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19402
# Whether we need a single -rpath flag with a separated argument.
19403
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19405
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19406
# resulting binary.
19407
hardcode_direct=$hardcode_direct_GCJ
19409
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19410
# resulting binary.
19411
hardcode_minus_L=$hardcode_minus_L_GCJ
19413
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19414
# the resulting binary.
19415
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19417
# Set to yes if building a shared library automatically hardcodes DIR into the library
19418
# and all subsequent libraries and executables linked against it.
19419
hardcode_automatic=$hardcode_automatic_GCJ
19421
# Variables whose values should be saved in libtool wrapper scripts and
19422
# restored at relink time.
19423
variables_saved_for_relink="$variables_saved_for_relink"
19425
# Whether libtool must link a program against all its dependency libraries.
19426
link_all_deplibs=$link_all_deplibs_GCJ
19428
# Compile-time system search path for libraries
19429
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19431
# Run-time system search path for libraries
19432
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19434
# Fix the shell variable \$srcfile for the compiler.
19435
fix_srcfile_path="$fix_srcfile_path_GCJ"
19437
# Set to yes if exported symbols are required.
19438
always_export_symbols=$always_export_symbols_GCJ
19440
# The commands to list exported symbols.
19441
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19443
# The commands to extract the exported symbol list from a shared archive.
19444
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19446
# Symbols that should not be listed in the preloaded symbols.
19447
exclude_expsyms=$lt_exclude_expsyms_GCJ
19449
# Symbols that must always be exported.
19450
include_expsyms=$lt_include_expsyms_GCJ
19452
# ### END LIBTOOL TAG CONFIG: $tagname
19458
# If there is no Makefile yet, we rely on a make rule to execute
19459
# `config.status --recheck' to rerun these tests and create the
19460
# libtool script then.
19461
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19462
if test -f "$ltmain_in"; then
19463
test -f Makefile && make "$ltmain"
19469
ac_cpp='$CPP $CPPFLAGS'
19470
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19471
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19472
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19485
# Source file extension for RC test sources.
19488
# Object file extension for compiled RC test sources.
19492
# Code to be used in simple compile tests
19493
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19495
# Code to be used in simple link tests
19496
lt_simple_link_test_code="$lt_simple_compile_test_code"
19498
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19500
# If no C compiler was specified, use CC.
19503
# Allow CC to be a program name with arguments.
19507
# Allow CC to be a program name with arguments.
19512
lt_cv_prog_compiler_c_o_RC=yes
19514
# The else clause should only fire when bootstrapping the
19515
# libtool distribution, otherwise you forgot to ship ltmain.sh
19516
# with your package, and you will get complaints that there are
19517
# no rules to generate ltmain.sh.
19518
if test -f "$ltmain"; then
19519
# See if we are running on zsh, and set the options which allow our commands through
19520
# without removal of \ escapes.
19521
if test -n "${ZSH_VERSION+set}" ; then
19522
setopt NO_GLOB_SUBST
19524
# Now quote all the things that may contain metacharacters while being
19525
# careful not to overquote the AC_SUBSTed values. We take copies of the
19526
# variables and quote the copies for generation of the libtool script.
19527
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19529
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19530
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19531
deplibs_check_method reload_flag reload_cmds need_locks \
19532
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19533
lt_cv_sys_global_symbol_to_c_name_address \
19534
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19535
old_postinstall_cmds old_postuninstall_cmds \
19539
lt_prog_compiler_wl_RC \
19540
lt_prog_compiler_pic_RC \
19541
lt_prog_compiler_static_RC \
19542
lt_prog_compiler_no_builtin_flag_RC \
19543
export_dynamic_flag_spec_RC \
19544
thread_safe_flag_spec_RC \
19545
whole_archive_flag_spec_RC \
19546
enable_shared_with_static_runtimes_RC \
19547
old_archive_cmds_RC \
19548
old_archive_from_new_cmds_RC \
19549
predep_objects_RC \
19550
postdep_objects_RC \
19553
compiler_lib_search_path_RC \
19555
archive_expsym_cmds_RC \
19556
postinstall_cmds_RC \
19557
postuninstall_cmds_RC \
19558
old_archive_from_expsyms_cmds_RC \
19559
allow_undefined_flag_RC \
19560
no_undefined_flag_RC \
19561
export_symbols_cmds_RC \
19562
hardcode_libdir_flag_spec_RC \
19563
hardcode_libdir_flag_spec_ld_RC \
19564
hardcode_libdir_separator_RC \
19565
hardcode_automatic_RC \
19567
module_expsym_cmds_RC \
19568
lt_cv_prog_compiler_c_o_RC \
19569
exclude_expsyms_RC \
19570
include_expsyms_RC; do
19573
old_archive_cmds_RC | \
19574
old_archive_from_new_cmds_RC | \
19575
archive_cmds_RC | \
19576
archive_expsym_cmds_RC | \
19578
module_expsym_cmds_RC | \
19579
old_archive_from_expsyms_cmds_RC | \
19580
export_symbols_cmds_RC | \
19581
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19582
postinstall_cmds | postuninstall_cmds | \
19583
old_postinstall_cmds | old_postuninstall_cmds | \
19584
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19585
# Double-quote double-evaled strings.
19586
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19589
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19595
*'\$0 --fallback-echo"')
19596
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19602
cat <<__EOF__ >> "$cfgfile"
19603
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19605
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19607
# Shell to use when invoking shell scripts.
19610
# Whether or not to build shared libraries.
19611
build_libtool_libs=$enable_shared
19613
# Whether or not to build static libraries.
19614
build_old_libs=$enable_static
19616
# Whether or not to add -lc for building shared libraries.
19617
build_libtool_need_lc=$archive_cmds_need_lc_RC
19619
# Whether or not to disallow shared libs when runtime libs are static
19620
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19622
# Whether or not to optimize for fast installation.
19623
fast_install=$enable_fast_install
19626
host_alias=$host_alias
19629
# An echo program that does not interpret backslashes.
19634
AR_FLAGS=$lt_AR_FLAGS
19639
# A language-specific compiler.
19642
# Is the compiler the GNU C compiler?
19648
# The linker used to build libraries.
19651
# Whether we need hard or soft links.
19654
# A BSD-compatible nm program.
19657
# A symbol stripping program
19660
# Used to examine libraries when file_magic_cmd begins "file"
19661
MAGIC_CMD=$MAGIC_CMD
19663
# Used on cygwin: DLL creation program.
19666
# Used on cygwin: object dumper.
19669
# Used on cygwin: assembler.
19672
# The name of the directory that contains temporary libtool files.
19675
# How to create reloadable object files.
19676
reload_flag=$lt_reload_flag
19677
reload_cmds=$lt_reload_cmds
19679
# How to pass a linker flag through the compiler.
19680
wl=$lt_lt_prog_compiler_wl_RC
19682
# Object file suffix (normally "o").
19683
objext="$ac_objext"
19685
# Old archive suffix (normally "a").
19688
# Shared library suffix (normally ".so").
19691
# Executable file suffix (normally "").
19694
# Additional compiler flags for building library objects.
19695
pic_flag=$lt_lt_prog_compiler_pic_RC
19698
# What is the maximum length of a command?
19699
max_cmd_len=$lt_cv_sys_max_cmd_len
19701
# Does compiler simultaneously support -c and -o options?
19702
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19704
# Must we lock files when doing compilation ?
19705
need_locks=$lt_need_locks
19707
# Do we need the lib prefix for modules?
19708
need_lib_prefix=$need_lib_prefix
19710
# Do we need a version for libraries?
19711
need_version=$need_version
19713
# Whether dlopen is supported.
19714
dlopen_support=$enable_dlopen
19716
# Whether dlopen of programs is supported.
19717
dlopen_self=$enable_dlopen_self
19719
# Whether dlopen of statically linked programs is supported.
19720
dlopen_self_static=$enable_dlopen_self_static
19722
# Compiler flag to prevent dynamic linking.
19723
link_static_flag=$lt_lt_prog_compiler_static_RC
19725
# Compiler flag to turn off builtin functions.
19726
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19728
# Compiler flag to allow reflexive dlopens.
19729
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19731
# Compiler flag to generate shared objects directly from archives.
19732
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19734
# Compiler flag to generate thread-safe objects.
19735
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19737
# Library versioning type.
19738
version_type=$version_type
19740
# Format of library name prefix.
19741
libname_spec=$lt_libname_spec
19743
# List of archive names. First name is the real one, the rest are links.
19744
# The last name is the one that the linker finds with -lNAME.
19745
library_names_spec=$lt_library_names_spec
19747
# The coded name of the library, if different from the real name.
19748
soname_spec=$lt_soname_spec
19750
# Commands used to build and install an old-style archive.
19752
old_archive_cmds=$lt_old_archive_cmds_RC
19753
old_postinstall_cmds=$lt_old_postinstall_cmds
19754
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19756
# Create an old-style archive from a shared archive.
19757
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19759
# Create a temporary old-style archive to link instead of a shared archive.
19760
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19762
# Commands used to build and install a shared archive.
19763
archive_cmds=$lt_archive_cmds_RC
19764
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19765
postinstall_cmds=$lt_postinstall_cmds
19766
postuninstall_cmds=$lt_postuninstall_cmds
19768
# Commands used to build a loadable module (assumed same as above if empty)
19769
module_cmds=$lt_module_cmds_RC
19770
module_expsym_cmds=$lt_module_expsym_cmds_RC
19772
# Commands to strip libraries.
19773
old_striplib=$lt_old_striplib
19774
striplib=$lt_striplib
19776
# Dependencies to place before the objects being linked to create a
19778
predep_objects=$lt_predep_objects_RC
19780
# Dependencies to place after the objects being linked to create a
19782
postdep_objects=$lt_postdep_objects_RC
19784
# Dependencies to place before the objects being linked to create a
19786
predeps=$lt_predeps_RC
19788
# Dependencies to place after the objects being linked to create a
19790
postdeps=$lt_postdeps_RC
19792
# The library search path used internally by the compiler when linking
19793
# a shared library.
19794
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19796
# Method to check whether dependent libraries are shared objects.
19797
deplibs_check_method=$lt_deplibs_check_method
19799
# Command to use when deplibs_check_method == file_magic.
19800
file_magic_cmd=$lt_file_magic_cmd
19802
# Flag that allows shared libraries with undefined symbols to be built.
19803
allow_undefined_flag=$lt_allow_undefined_flag_RC
19805
# Flag that forces no undefined symbols.
19806
no_undefined_flag=$lt_no_undefined_flag_RC
19808
# Commands used to finish a libtool library installation in a directory.
19809
finish_cmds=$lt_finish_cmds
19811
# Same as above, but a single script fragment to be evaled but not shown.
19812
finish_eval=$lt_finish_eval
19814
# Take the output of nm and produce a listing of raw symbols and C names.
19815
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19817
# Transform the output of nm in a proper C declaration
19818
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19820
# Transform the output of nm in a C name address pair
19821
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19823
# This is the shared library runtime path variable.
19824
runpath_var=$runpath_var
19826
# This is the shared library path variable.
19827
shlibpath_var=$shlibpath_var
19829
# Is shlibpath searched before the hard-coded library search path?
19830
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19832
# How to hardcode a shared library path into an executable.
19833
hardcode_action=$hardcode_action_RC
19835
# Whether we should hardcode library paths into libraries.
19836
hardcode_into_libs=$hardcode_into_libs
19838
# Flag to hardcode \$libdir into a binary during linking.
19839
# This must work even if \$libdir does not exist.
19840
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19842
# If ld is used when linking, flag to hardcode \$libdir into
19843
# a binary during linking. This must work even if \$libdir does
19845
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19847
# Whether we need a single -rpath flag with a separated argument.
19848
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19850
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19851
# resulting binary.
19852
hardcode_direct=$hardcode_direct_RC
19854
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19855
# resulting binary.
19856
hardcode_minus_L=$hardcode_minus_L_RC
19858
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19859
# the resulting binary.
19860
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19862
# Set to yes if building a shared library automatically hardcodes DIR into the library
19863
# and all subsequent libraries and executables linked against it.
19864
hardcode_automatic=$hardcode_automatic_RC
19866
# Variables whose values should be saved in libtool wrapper scripts and
19867
# restored at relink time.
19868
variables_saved_for_relink="$variables_saved_for_relink"
19870
# Whether libtool must link a program against all its dependency libraries.
19871
link_all_deplibs=$link_all_deplibs_RC
19873
# Compile-time system search path for libraries
19874
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19876
# Run-time system search path for libraries
19877
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19879
# Fix the shell variable \$srcfile for the compiler.
19880
fix_srcfile_path="$fix_srcfile_path_RC"
19882
# Set to yes if exported symbols are required.
19883
always_export_symbols=$always_export_symbols_RC
19885
# The commands to list exported symbols.
19886
export_symbols_cmds=$lt_export_symbols_cmds_RC
19888
# The commands to extract the exported symbol list from a shared archive.
19889
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19891
# Symbols that should not be listed in the preloaded symbols.
19892
exclude_expsyms=$lt_exclude_expsyms_RC
19894
# Symbols that must always be exported.
19895
include_expsyms=$lt_include_expsyms_RC
19897
# ### END LIBTOOL TAG CONFIG: $tagname
19903
# If there is no Makefile yet, we rely on a make rule to execute
19904
# `config.status --recheck' to rerun these tests and create the
19905
# libtool script then.
19906
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19907
if test -f "$ltmain_in"; then
19908
test -f Makefile && make "$ltmain"
19914
ac_cpp='$CPP $CPPFLAGS'
19915
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19916
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19917
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19924
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19925
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19926
{ (exit 1); exit 1; }; }
19930
# Append the new tag name to the list of available tags.
19931
if test -n "$tagname" ; then
19932
available_tags="$available_tags $tagname"
19938
# Now substitute the updated list of available tags.
19939
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19940
mv "${ofile}T" "$ofile"
19944
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19945
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19946
{ (exit 1); exit 1; }; }
19952
# This can be used to rebuild libtool when needed
19953
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19955
# Always use our own libtool.
19956
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19958
# Prevent multiple expansion
19980
# Check whether --enable-shared or --disable-shared was given.
19981
if test "${enable_shared+set}" = set; then
19982
enableval="$enable_shared"
19983
p=${PACKAGE-default}
19985
yes) enable_shared=yes ;;
19986
no) enable_shared=no ;;
19989
# Look at the argument we got. We use all the common list separators.
19990
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
19991
for pkg in $enableval; do
19993
if test "X$pkg" = "X$p"; then
20004
# Check whether --enable-static or --disable-static was given.
20005
if test "${enable_static+set}" = set; then
20006
enableval="$enable_static"
20007
p=${PACKAGE-default}
20009
yes) enable_static=yes ;;
20010
no) enable_static=no ;;
20013
# Look at the argument we got. We use all the common list separators.
20014
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
20015
for pkg in $enableval; do
20017
if test "X$pkg" = "X$p"; then
20028
ALL_LINGUAS="fr it de ja es pl"
20029
GETTEXT_PACKAGE=linphone
20032
cat >>confdefs.h <<_ACEOF
20033
#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
20038
for ac_header in locale.h
20040
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20041
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20042
echo "$as_me:$LINENO: checking for $ac_header" >&5
20043
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20044
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20045
echo $ECHO_N "(cached) $ECHO_C" >&6
20047
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20048
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20050
# Is the header compilable?
20051
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20052
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20053
cat >conftest.$ac_ext <<_ACEOF
20056
cat confdefs.h >>conftest.$ac_ext
20057
cat >>conftest.$ac_ext <<_ACEOF
20058
/* end confdefs.h. */
20059
$ac_includes_default
20060
#include <$ac_header>
20062
rm -f conftest.$ac_objext
20063
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20064
(eval $ac_compile) 2>conftest.er1
20066
grep -v '^ *+' conftest.er1 >conftest.err
20068
cat conftest.err >&5
20069
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070
(exit $ac_status); } &&
20071
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20072
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20073
(eval $ac_try) 2>&5
20075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076
(exit $ac_status); }; } &&
20077
{ ac_try='test -s conftest.$ac_objext'
20078
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079
(eval $ac_try) 2>&5
20081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082
(exit $ac_status); }; }; then
20083
ac_header_compiler=yes
20085
echo "$as_me: failed program was:" >&5
20086
sed 's/^/| /' conftest.$ac_ext >&5
20088
ac_header_compiler=no
20090
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20091
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20092
echo "${ECHO_T}$ac_header_compiler" >&6
20094
# Is the header present?
20095
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20096
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20097
cat >conftest.$ac_ext <<_ACEOF
20100
cat confdefs.h >>conftest.$ac_ext
20101
cat >>conftest.$ac_ext <<_ACEOF
20102
/* end confdefs.h. */
20103
#include <$ac_header>
20105
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20106
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20108
grep -v '^ *+' conftest.er1 >conftest.err
20110
cat conftest.err >&5
20111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112
(exit $ac_status); } >/dev/null; then
20113
if test -s conftest.err; then
20114
ac_cpp_err=$ac_c_preproc_warn_flag
20115
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20122
if test -z "$ac_cpp_err"; then
20123
ac_header_preproc=yes
20125
echo "$as_me: failed program was:" >&5
20126
sed 's/^/| /' conftest.$ac_ext >&5
20128
ac_header_preproc=no
20130
rm -f conftest.err conftest.$ac_ext
20131
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20132
echo "${ECHO_T}$ac_header_preproc" >&6
20134
# So? What about this header?
20135
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20137
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20138
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20139
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20140
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20141
ac_header_preproc=yes
20144
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20145
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20146
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20147
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20148
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20149
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20150
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20151
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20152
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20153
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20154
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20155
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20158
## ------------------------------------------ ##
20159
## Report this to the AC_PACKAGE_NAME lists. ##
20160
## ------------------------------------------ ##
20163
sed "s/^/$as_me: WARNING: /" >&2
20166
echo "$as_me:$LINENO: checking for $ac_header" >&5
20167
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20168
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20169
echo $ECHO_N "(cached) $ECHO_C" >&6
20171
eval "$as_ac_Header=\$ac_header_preproc"
20173
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20174
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20177
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20178
cat >>confdefs.h <<_ACEOF
20179
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20186
if test $ac_cv_header_locale_h = yes; then
20187
echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
20188
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
20189
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
20190
echo $ECHO_N "(cached) $ECHO_C" >&6
20192
cat >conftest.$ac_ext <<_ACEOF
20195
cat confdefs.h >>conftest.$ac_ext
20196
cat >>conftest.$ac_ext <<_ACEOF
20197
/* end confdefs.h. */
20198
#include <locale.h>
20207
rm -f conftest.$ac_objext conftest$ac_exeext
20208
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20209
(eval $ac_link) 2>conftest.er1
20211
grep -v '^ *+' conftest.er1 >conftest.err
20213
cat conftest.err >&5
20214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215
(exit $ac_status); } &&
20216
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20217
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218
(eval $ac_try) 2>&5
20220
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221
(exit $ac_status); }; } &&
20222
{ ac_try='test -s conftest$ac_exeext'
20223
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224
(eval $ac_try) 2>&5
20226
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227
(exit $ac_status); }; }; then
20228
am_cv_val_LC_MESSAGES=yes
20230
echo "$as_me: failed program was:" >&5
20231
sed 's/^/| /' conftest.$ac_ext >&5
20233
am_cv_val_LC_MESSAGES=no
20235
rm -f conftest.err conftest.$ac_objext \
20236
conftest$ac_exeext conftest.$ac_ext
20238
echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
20239
echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
20240
if test $am_cv_val_LC_MESSAGES = yes; then
20242
cat >>confdefs.h <<\_ACEOF
20243
#define HAVE_LC_MESSAGES 1
20251
gt_cv_have_gettext=no
20257
if test "${ac_cv_header_libintl_h+set}" = set; then
20258
echo "$as_me:$LINENO: checking for libintl.h" >&5
20259
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
20260
if test "${ac_cv_header_libintl_h+set}" = set; then
20261
echo $ECHO_N "(cached) $ECHO_C" >&6
20263
echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
20264
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
20266
# Is the header compilable?
20267
echo "$as_me:$LINENO: checking libintl.h usability" >&5
20268
echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
20269
cat >conftest.$ac_ext <<_ACEOF
20272
cat confdefs.h >>conftest.$ac_ext
20273
cat >>conftest.$ac_ext <<_ACEOF
20274
/* end confdefs.h. */
20275
$ac_includes_default
20276
#include <libintl.h>
20278
rm -f conftest.$ac_objext
20279
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20280
(eval $ac_compile) 2>conftest.er1
20282
grep -v '^ *+' conftest.er1 >conftest.err
20284
cat conftest.err >&5
20285
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286
(exit $ac_status); } &&
20287
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20288
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289
(eval $ac_try) 2>&5
20291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292
(exit $ac_status); }; } &&
20293
{ ac_try='test -s conftest.$ac_objext'
20294
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295
(eval $ac_try) 2>&5
20297
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298
(exit $ac_status); }; }; then
20299
ac_header_compiler=yes
20301
echo "$as_me: failed program was:" >&5
20302
sed 's/^/| /' conftest.$ac_ext >&5
20304
ac_header_compiler=no
20306
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20307
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20308
echo "${ECHO_T}$ac_header_compiler" >&6
20310
# Is the header present?
20311
echo "$as_me:$LINENO: checking libintl.h presence" >&5
20312
echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
20313
cat >conftest.$ac_ext <<_ACEOF
20316
cat confdefs.h >>conftest.$ac_ext
20317
cat >>conftest.$ac_ext <<_ACEOF
20318
/* end confdefs.h. */
20319
#include <libintl.h>
20321
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20322
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20324
grep -v '^ *+' conftest.er1 >conftest.err
20326
cat conftest.err >&5
20327
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328
(exit $ac_status); } >/dev/null; then
20329
if test -s conftest.err; then
20330
ac_cpp_err=$ac_c_preproc_warn_flag
20331
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20338
if test -z "$ac_cpp_err"; then
20339
ac_header_preproc=yes
20341
echo "$as_me: failed program was:" >&5
20342
sed 's/^/| /' conftest.$ac_ext >&5
20344
ac_header_preproc=no
20346
rm -f conftest.err conftest.$ac_ext
20347
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20348
echo "${ECHO_T}$ac_header_preproc" >&6
20350
# So? What about this header?
20351
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20353
{ echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20354
echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20355
{ echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
20356
echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
20357
ac_header_preproc=yes
20360
{ echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
20361
echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
20362
{ echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
20363
echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
20364
{ echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
20365
echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
20366
{ echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
20367
echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20368
{ echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
20369
echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
20370
{ echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
20371
echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
20374
## ------------------------------------------ ##
20375
## Report this to the AC_PACKAGE_NAME lists. ##
20376
## ------------------------------------------ ##
20379
sed "s/^/$as_me: WARNING: /" >&2
20382
echo "$as_me:$LINENO: checking for libintl.h" >&5
20383
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
20384
if test "${ac_cv_header_libintl_h+set}" = set; then
20385
echo $ECHO_N "(cached) $ECHO_C" >&6
20387
ac_cv_header_libintl_h=$ac_header_preproc
20389
echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
20390
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
20393
if test $ac_cv_header_libintl_h = yes; then
20394
gt_cv_func_dgettext_libintl="no"
20395
libintl_extra_libs=""
20398
# First check in libc
20400
echo "$as_me:$LINENO: checking for dgettext in libc" >&5
20401
echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
20402
if test "${gt_cv_func_dgettext_libc+set}" = set; then
20403
echo $ECHO_N "(cached) $ECHO_C" >&6
20405
cat >conftest.$ac_ext <<_ACEOF
20408
cat confdefs.h >>conftest.$ac_ext
20409
cat >>conftest.$ac_ext <<_ACEOF
20410
/* end confdefs.h. */
20412
#include <libintl.h>
20417
return (int) dgettext ("","")
20422
rm -f conftest.$ac_objext conftest$ac_exeext
20423
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20424
(eval $ac_link) 2>conftest.er1
20426
grep -v '^ *+' conftest.er1 >conftest.err
20428
cat conftest.err >&5
20429
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430
(exit $ac_status); } &&
20431
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20432
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20433
(eval $ac_try) 2>&5
20435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436
(exit $ac_status); }; } &&
20437
{ ac_try='test -s conftest$ac_exeext'
20438
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20439
(eval $ac_try) 2>&5
20441
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442
(exit $ac_status); }; }; then
20443
gt_cv_func_dgettext_libc=yes
20445
echo "$as_me: failed program was:" >&5
20446
sed 's/^/| /' conftest.$ac_ext >&5
20448
gt_cv_func_dgettext_libc=no
20450
rm -f conftest.err conftest.$ac_objext \
20451
conftest$ac_exeext conftest.$ac_ext
20454
echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
20455
echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
20457
if test "$gt_cv_func_dgettext_libc" = "yes" ; then
20459
for ac_func in bind_textdomain_codeset
20461
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20462
echo "$as_me:$LINENO: checking for $ac_func" >&5
20463
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20464
if eval "test \"\${$as_ac_var+set}\" = set"; then
20465
echo $ECHO_N "(cached) $ECHO_C" >&6
20467
cat >conftest.$ac_ext <<_ACEOF
20470
cat confdefs.h >>conftest.$ac_ext
20471
cat >>conftest.$ac_ext <<_ACEOF
20472
/* end confdefs.h. */
20473
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20474
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20475
#define $ac_func innocuous_$ac_func
20477
/* System header to define __stub macros and hopefully few prototypes,
20478
which can conflict with char $ac_func (); below.
20479
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20480
<limits.h> exists even on freestanding compilers. */
20483
# include <limits.h>
20485
# include <assert.h>
20490
/* Override any gcc2 internal prototype to avoid an error. */
20495
/* We use char because int might match the return type of a gcc2
20496
builtin and then its argument prototype would still apply. */
20498
/* The GNU C library defines this for functions which it implements
20499
to always fail with ENOSYS. Some functions are actually named
20500
something starting with __ and the normal name is an alias. */
20501
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20504
char (*f) () = $ac_func;
20513
return f != $ac_func;
20518
rm -f conftest.$ac_objext conftest$ac_exeext
20519
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20520
(eval $ac_link) 2>conftest.er1
20522
grep -v '^ *+' conftest.er1 >conftest.err
20524
cat conftest.err >&5
20525
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526
(exit $ac_status); } &&
20527
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20528
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20529
(eval $ac_try) 2>&5
20531
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532
(exit $ac_status); }; } &&
20533
{ ac_try='test -s conftest$ac_exeext'
20534
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20535
(eval $ac_try) 2>&5
20537
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538
(exit $ac_status); }; }; then
20539
eval "$as_ac_var=yes"
20541
echo "$as_me: failed program was:" >&5
20542
sed 's/^/| /' conftest.$ac_ext >&5
20544
eval "$as_ac_var=no"
20546
rm -f conftest.err conftest.$ac_objext \
20547
conftest$ac_exeext conftest.$ac_ext
20549
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20550
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20551
if test `eval echo '${'$as_ac_var'}'` = yes; then
20552
cat >>confdefs.h <<_ACEOF
20553
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20562
# If we don't have everything we want, check in libintl
20564
if test "$gt_cv_func_dgettext_libc" != "yes" \
20565
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
20567
echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
20568
echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
20569
if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
20570
echo $ECHO_N "(cached) $ECHO_C" >&6
20572
ac_check_lib_save_LIBS=$LIBS
20573
LIBS="-lintl $LIBS"
20574
cat >conftest.$ac_ext <<_ACEOF
20577
cat confdefs.h >>conftest.$ac_ext
20578
cat >>conftest.$ac_ext <<_ACEOF
20579
/* end confdefs.h. */
20581
/* Override any gcc2 internal prototype to avoid an error. */
20585
/* We use char because int might match the return type of a gcc2
20586
builtin and then its argument prototype would still apply. */
20587
char bindtextdomain ();
20596
rm -f conftest.$ac_objext conftest$ac_exeext
20597
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20598
(eval $ac_link) 2>conftest.er1
20600
grep -v '^ *+' conftest.er1 >conftest.err
20602
cat conftest.err >&5
20603
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604
(exit $ac_status); } &&
20605
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20606
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20607
(eval $ac_try) 2>&5
20609
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610
(exit $ac_status); }; } &&
20611
{ ac_try='test -s conftest$ac_exeext'
20612
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20613
(eval $ac_try) 2>&5
20615
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616
(exit $ac_status); }; }; then
20617
ac_cv_lib_intl_bindtextdomain=yes
20619
echo "$as_me: failed program was:" >&5
20620
sed 's/^/| /' conftest.$ac_ext >&5
20622
ac_cv_lib_intl_bindtextdomain=no
20624
rm -f conftest.err conftest.$ac_objext \
20625
conftest$ac_exeext conftest.$ac_ext
20626
LIBS=$ac_check_lib_save_LIBS
20628
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
20629
echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
20630
if test $ac_cv_lib_intl_bindtextdomain = yes; then
20631
echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20632
echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20633
if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20634
echo $ECHO_N "(cached) $ECHO_C" >&6
20636
ac_check_lib_save_LIBS=$LIBS
20637
LIBS="-lintl $LIBS"
20638
cat >conftest.$ac_ext <<_ACEOF
20641
cat confdefs.h >>conftest.$ac_ext
20642
cat >>conftest.$ac_ext <<_ACEOF
20643
/* end confdefs.h. */
20645
/* Override any gcc2 internal prototype to avoid an error. */
20649
/* We use char because int might match the return type of a gcc2
20650
builtin and then its argument prototype would still apply. */
20660
rm -f conftest.$ac_objext conftest$ac_exeext
20661
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20662
(eval $ac_link) 2>conftest.er1
20664
grep -v '^ *+' conftest.er1 >conftest.err
20666
cat conftest.err >&5
20667
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668
(exit $ac_status); } &&
20669
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20670
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20671
(eval $ac_try) 2>&5
20673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674
(exit $ac_status); }; } &&
20675
{ ac_try='test -s conftest$ac_exeext'
20676
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20677
(eval $ac_try) 2>&5
20679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680
(exit $ac_status); }; }; then
20681
ac_cv_lib_intl_dgettext=yes
20683
echo "$as_me: failed program was:" >&5
20684
sed 's/^/| /' conftest.$ac_ext >&5
20686
ac_cv_lib_intl_dgettext=no
20688
rm -f conftest.err conftest.$ac_objext \
20689
conftest$ac_exeext conftest.$ac_ext
20690
LIBS=$ac_check_lib_save_LIBS
20692
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20693
echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20694
if test $ac_cv_lib_intl_dgettext = yes; then
20695
gt_cv_func_dgettext_libintl=yes
20701
if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
20702
echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
20703
echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6
20704
echo "$as_me:$LINENO: result: " >&5
20705
echo "${ECHO_T}" >&6
20706
echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
20707
echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6
20708
if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
20709
echo $ECHO_N "(cached) $ECHO_C" >&6
20711
ac_check_lib_save_LIBS=$LIBS
20712
LIBS="-lintl -liconv $LIBS"
20713
cat >conftest.$ac_ext <<_ACEOF
20716
cat confdefs.h >>conftest.$ac_ext
20717
cat >>conftest.$ac_ext <<_ACEOF
20718
/* end confdefs.h. */
20720
/* Override any gcc2 internal prototype to avoid an error. */
20724
/* We use char because int might match the return type of a gcc2
20725
builtin and then its argument prototype would still apply. */
20735
rm -f conftest.$ac_objext conftest$ac_exeext
20736
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20737
(eval $ac_link) 2>conftest.er1
20739
grep -v '^ *+' conftest.er1 >conftest.err
20741
cat conftest.err >&5
20742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743
(exit $ac_status); } &&
20744
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20745
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20746
(eval $ac_try) 2>&5
20748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749
(exit $ac_status); }; } &&
20750
{ ac_try='test -s conftest$ac_exeext'
20751
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20752
(eval $ac_try) 2>&5
20754
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755
(exit $ac_status); }; }; then
20756
ac_cv_lib_intl_dcgettext=yes
20758
echo "$as_me: failed program was:" >&5
20759
sed 's/^/| /' conftest.$ac_ext >&5
20761
ac_cv_lib_intl_dcgettext=no
20763
rm -f conftest.err conftest.$ac_objext \
20764
conftest$ac_exeext conftest.$ac_ext
20765
LIBS=$ac_check_lib_save_LIBS
20767
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
20768
echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6
20769
if test $ac_cv_lib_intl_dcgettext = yes; then
20770
gt_cv_func_dgettext_libintl=yes
20771
libintl_extra_libs=-liconv
20779
# If we found libintl, then check in it for bind_textdomain_codeset();
20780
# we'll prefer libc if neither have bind_textdomain_codeset(),
20781
# and both have dgettext
20783
if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
20784
glib_save_LIBS="$LIBS"
20785
LIBS="$LIBS -lintl $libintl_extra_libs"
20786
unset ac_cv_func_bind_textdomain_codeset
20788
for ac_func in bind_textdomain_codeset
20790
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20791
echo "$as_me:$LINENO: checking for $ac_func" >&5
20792
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20793
if eval "test \"\${$as_ac_var+set}\" = set"; then
20794
echo $ECHO_N "(cached) $ECHO_C" >&6
20796
cat >conftest.$ac_ext <<_ACEOF
20799
cat confdefs.h >>conftest.$ac_ext
20800
cat >>conftest.$ac_ext <<_ACEOF
20801
/* end confdefs.h. */
20802
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20803
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20804
#define $ac_func innocuous_$ac_func
20806
/* System header to define __stub macros and hopefully few prototypes,
20807
which can conflict with char $ac_func (); below.
20808
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20809
<limits.h> exists even on freestanding compilers. */
20812
# include <limits.h>
20814
# include <assert.h>
20819
/* Override any gcc2 internal prototype to avoid an error. */
20824
/* We use char because int might match the return type of a gcc2
20825
builtin and then its argument prototype would still apply. */
20827
/* The GNU C library defines this for functions which it implements
20828
to always fail with ENOSYS. Some functions are actually named
20829
something starting with __ and the normal name is an alias. */
20830
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20833
char (*f) () = $ac_func;
20842
return f != $ac_func;
20847
rm -f conftest.$ac_objext conftest$ac_exeext
20848
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20849
(eval $ac_link) 2>conftest.er1
20851
grep -v '^ *+' conftest.er1 >conftest.err
20853
cat conftest.err >&5
20854
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855
(exit $ac_status); } &&
20856
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20857
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20858
(eval $ac_try) 2>&5
20860
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861
(exit $ac_status); }; } &&
20862
{ ac_try='test -s conftest$ac_exeext'
20863
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20864
(eval $ac_try) 2>&5
20866
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867
(exit $ac_status); }; }; then
20868
eval "$as_ac_var=yes"
20870
echo "$as_me: failed program was:" >&5
20871
sed 's/^/| /' conftest.$ac_ext >&5
20873
eval "$as_ac_var=no"
20875
rm -f conftest.err conftest.$ac_objext \
20876
conftest$ac_exeext conftest.$ac_ext
20878
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20879
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20880
if test `eval echo '${'$as_ac_var'}'` = yes; then
20881
cat >>confdefs.h <<_ACEOF
20882
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20888
LIBS="$glib_save_LIBS"
20890
if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
20891
gt_cv_func_dgettext_libc=no
20893
if test "$gt_cv_func_dgettext_libc" = "yes"; then
20894
gt_cv_func_dgettext_libintl=no
20900
if test "$gt_cv_func_dgettext_libc" = "yes" \
20901
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
20902
gt_cv_have_gettext=yes
20905
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
20906
INTLLIBS="-lintl $libintl_extra_libs"
20909
if test "$gt_cv_have_gettext" = "yes"; then
20911
cat >>confdefs.h <<\_ACEOF
20912
#define HAVE_GETTEXT 1
20915
# Extract the first word of "msgfmt", so it can be a program name with args.
20916
set dummy msgfmt; ac_word=$2
20917
echo "$as_me:$LINENO: checking for $ac_word" >&5
20918
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20919
if test "${ac_cv_path_MSGFMT+set}" = set; then
20920
echo $ECHO_N "(cached) $ECHO_C" >&6
20924
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
20927
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
20928
for ac_dir in $PATH; do
20929
test -z "$ac_dir" && ac_dir=.
20930
if test -f $ac_dir/$ac_word; then
20931
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
20932
ac_cv_path_MSGFMT="$ac_dir/$ac_word"
20938
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
20942
MSGFMT="$ac_cv_path_MSGFMT"
20943
if test "$MSGFMT" != "no"; then
20944
echo "$as_me:$LINENO: result: $MSGFMT" >&5
20945
echo "${ECHO_T}$MSGFMT" >&6
20947
echo "$as_me:$LINENO: result: no" >&5
20948
echo "${ECHO_T}no" >&6
20950
if test "$MSGFMT" != "no"; then
20951
glib_save_LIBS="$LIBS"
20952
LIBS="$LIBS $INTLLIBS"
20954
for ac_func in dcgettext
20956
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20957
echo "$as_me:$LINENO: checking for $ac_func" >&5
20958
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20959
if eval "test \"\${$as_ac_var+set}\" = set"; then
20960
echo $ECHO_N "(cached) $ECHO_C" >&6
20962
cat >conftest.$ac_ext <<_ACEOF
20965
cat confdefs.h >>conftest.$ac_ext
20966
cat >>conftest.$ac_ext <<_ACEOF
20967
/* end confdefs.h. */
20968
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20969
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20970
#define $ac_func innocuous_$ac_func
20972
/* System header to define __stub macros and hopefully few prototypes,
20973
which can conflict with char $ac_func (); below.
20974
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20975
<limits.h> exists even on freestanding compilers. */
20978
# include <limits.h>
20980
# include <assert.h>
20985
/* Override any gcc2 internal prototype to avoid an error. */
20990
/* We use char because int might match the return type of a gcc2
20991
builtin and then its argument prototype would still apply. */
20993
/* The GNU C library defines this for functions which it implements
20994
to always fail with ENOSYS. Some functions are actually named
20995
something starting with __ and the normal name is an alias. */
20996
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20999
char (*f) () = $ac_func;
21008
return f != $ac_func;
21013
rm -f conftest.$ac_objext conftest$ac_exeext
21014
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21015
(eval $ac_link) 2>conftest.er1
21017
grep -v '^ *+' conftest.er1 >conftest.err
21019
cat conftest.err >&5
21020
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021
(exit $ac_status); } &&
21022
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21023
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21024
(eval $ac_try) 2>&5
21026
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027
(exit $ac_status); }; } &&
21028
{ ac_try='test -s conftest$ac_exeext'
21029
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21030
(eval $ac_try) 2>&5
21032
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033
(exit $ac_status); }; }; then
21034
eval "$as_ac_var=yes"
21036
echo "$as_me: failed program was:" >&5
21037
sed 's/^/| /' conftest.$ac_ext >&5
21039
eval "$as_ac_var=no"
21041
rm -f conftest.err conftest.$ac_objext \
21042
conftest$ac_exeext conftest.$ac_ext
21044
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21045
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21046
if test `eval echo '${'$as_ac_var'}'` = yes; then
21047
cat >>confdefs.h <<_ACEOF
21048
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21054
# Extract the first word of "gmsgfmt", so it can be a program name with args.
21055
set dummy gmsgfmt; ac_word=$2
21056
echo "$as_me:$LINENO: checking for $ac_word" >&5
21057
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21058
if test "${ac_cv_path_GMSGFMT+set}" = set; then
21059
echo $ECHO_N "(cached) $ECHO_C" >&6
21063
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
21066
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21067
for as_dir in $PATH
21070
test -z "$as_dir" && as_dir=.
21071
for ac_exec_ext in '' $ac_executable_extensions; do
21072
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21073
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
21074
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21080
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
21084
GMSGFMT=$ac_cv_path_GMSGFMT
21086
if test -n "$GMSGFMT"; then
21087
echo "$as_me:$LINENO: result: $GMSGFMT" >&5
21088
echo "${ECHO_T}$GMSGFMT" >&6
21090
echo "$as_me:$LINENO: result: no" >&5
21091
echo "${ECHO_T}no" >&6
21094
# Extract the first word of "xgettext", so it can be a program name with args.
21095
set dummy xgettext; ac_word=$2
21096
echo "$as_me:$LINENO: checking for $ac_word" >&5
21097
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21098
if test "${ac_cv_path_XGETTEXT+set}" = set; then
21099
echo $ECHO_N "(cached) $ECHO_C" >&6
21101
case "$XGETTEXT" in
21103
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
21106
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
21107
for ac_dir in $PATH; do
21108
test -z "$ac_dir" && ac_dir=.
21109
if test -f $ac_dir/$ac_word; then
21110
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
21111
ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
21117
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
21121
XGETTEXT="$ac_cv_path_XGETTEXT"
21122
if test "$XGETTEXT" != ":"; then
21123
echo "$as_me:$LINENO: result: $XGETTEXT" >&5
21124
echo "${ECHO_T}$XGETTEXT" >&6
21126
echo "$as_me:$LINENO: result: no" >&5
21127
echo "${ECHO_T}no" >&6
21130
cat >conftest.$ac_ext <<_ACEOF
21133
cat confdefs.h >>conftest.$ac_ext
21134
cat >>conftest.$ac_ext <<_ACEOF
21135
/* end confdefs.h. */
21140
extern int _nl_msg_cat_cntr;
21141
return _nl_msg_cat_cntr
21146
rm -f conftest.$ac_objext conftest$ac_exeext
21147
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21148
(eval $ac_link) 2>conftest.er1
21150
grep -v '^ *+' conftest.er1 >conftest.err
21152
cat conftest.err >&5
21153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154
(exit $ac_status); } &&
21155
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21156
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21157
(eval $ac_try) 2>&5
21159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160
(exit $ac_status); }; } &&
21161
{ ac_try='test -s conftest$ac_exeext'
21162
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21163
(eval $ac_try) 2>&5
21165
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166
(exit $ac_status); }; }; then
21170
echo "$as_me: failed program was:" >&5
21171
sed 's/^/| /' conftest.$ac_ext >&5
21175
echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
21176
echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6
21177
if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
21178
echo $ECHO_N "(cached) $ECHO_C" >&6
21180
cat >conftest.$ac_ext <<_ACEOF
21183
cat confdefs.h >>conftest.$ac_ext
21184
cat >>conftest.$ac_ext <<_ACEOF
21185
/* end confdefs.h. */
21186
/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
21187
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21188
#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
21190
/* System header to define __stub macros and hopefully few prototypes,
21191
which can conflict with char bind_textdomain_codeset (); below.
21192
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21193
<limits.h> exists even on freestanding compilers. */
21196
# include <limits.h>
21198
# include <assert.h>
21201
#undef bind_textdomain_codeset
21203
/* Override any gcc2 internal prototype to avoid an error. */
21208
/* We use char because int might match the return type of a gcc2
21209
builtin and then its argument prototype would still apply. */
21210
char bind_textdomain_codeset ();
21211
/* The GNU C library defines this for functions which it implements
21212
to always fail with ENOSYS. Some functions are actually named
21213
something starting with __ and the normal name is an alias. */
21214
#if defined (__stub_bind_textdomain_codeset) || defined (__stub___bind_textdomain_codeset)
21217
char (*f) () = bind_textdomain_codeset;
21226
return f != bind_textdomain_codeset;
21231
rm -f conftest.$ac_objext conftest$ac_exeext
21232
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21233
(eval $ac_link) 2>conftest.er1
21235
grep -v '^ *+' conftest.er1 >conftest.err
21237
cat conftest.err >&5
21238
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239
(exit $ac_status); } &&
21240
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21241
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21242
(eval $ac_try) 2>&5
21244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245
(exit $ac_status); }; } &&
21246
{ ac_try='test -s conftest$ac_exeext'
21247
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21248
(eval $ac_try) 2>&5
21250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251
(exit $ac_status); }; }; then
21252
ac_cv_func_bind_textdomain_codeset=yes
21254
echo "$as_me: failed program was:" >&5
21255
sed 's/^/| /' conftest.$ac_ext >&5
21257
ac_cv_func_bind_textdomain_codeset=no
21259
rm -f conftest.err conftest.$ac_objext \
21260
conftest$ac_exeext conftest.$ac_ext
21262
echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
21263
echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6
21264
if test $ac_cv_func_bind_textdomain_codeset = yes; then
21279
rm -f conftest.err conftest.$ac_objext \
21280
conftest$ac_exeext conftest.$ac_ext
21281
LIBS="$glib_save_LIBS"
21284
gt_cv_have_gettext=no
21292
if test "$gt_cv_have_gettext" = "yes" ; then
21294
cat >>confdefs.h <<\_ACEOF
21295
#define ENABLE_NLS 1
21300
if test "$XGETTEXT" != ":"; then
21301
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
21304
echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
21305
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
21310
# We need to process the po/ directory.
21313
ac_config_commands="$ac_config_commands default-2"
21316
for lang in $ALL_LINGUAS; do
21317
GMOFILES="$GMOFILES $lang.gmo"
21318
POFILES="$POFILES $lang.po"
21333
if test "$gt_cv_have_gettext" = "yes"; then
21334
if test "x$ALL_LINGUAS" = "x"; then
21337
echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
21338
echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
21340
for presentlang in $ALL_LINGUAS; do
21342
if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
21343
desiredlanguages="$LINGUAS"
21345
desiredlanguages="$ALL_LINGUAS"
21347
for desiredlang in $desiredlanguages; do
21348
# Use the presentlang catalog if desiredlang is
21349
# a. equal to presentlang, or
21350
# b. a variant of presentlang (because in this case,
21351
# presentlang can be used as a fallback for messages
21352
# which are not translated in the desiredlang catalog).
21353
case "$desiredlang" in
21354
"$presentlang"*) useit=yes;;
21357
if test $useit = yes; then
21358
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
21361
LINGUAS=$NEW_LINGUAS
21362
echo "$as_me:$LINENO: result: $LINGUAS" >&5
21363
echo "${ECHO_T}$LINGUAS" >&6
21366
if test -n "$LINGUAS"; then
21367
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
21372
if test -n "$ac_aux_dir"; then
21373
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
21375
if test -z "$MKINSTALLDIRS"; then
21376
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
21380
test -d po || mkdir po
21381
if test "x$srcdir" != "x."; then
21382
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
21383
posrcprefix="$srcdir/"
21385
posrcprefix="../$srcdir/"
21391
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
21392
< $srcdir/po/POTFILES.in > po/POTFILES
21395
# Check whether --enable-glib or --disable-glib was given.
21396
if test "${enable_glib+set}" = set; then
21397
enableval="$enable_glib"
21398
case "${enableval}" in
21399
yes) useglib=true ;;
21400
no) useglib=false ;;
21401
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-glib" >&5
21402
echo "$as_me: error: bad value ${enableval} for --enable-glib" >&2;}
21403
{ (exit 1); exit 1; }; } ;;
21409
# Check whether --enable-gnome_ui or --disable-gnome_ui was given.
21410
if test "${enable_gnome_ui+set}" = set; then
21411
enableval="$enable_gnome_ui"
21412
case "${enableval}" in
21413
yes) gnome_ui=true ;;
21414
no) gnome_ui=false ;;
21415
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-gnome_ui" >&5
21416
echo "$as_me: error: bad value ${enableval} for --enable-gnome_ui" >&2;}
21417
{ (exit 1); exit 1; }; } ;;
21424
if test "$useglib" = "true"; then
21425
# Check whether --enable-glibtest or --disable-glibtest was given.
21426
if test "${enable_glibtest+set}" = set; then
21427
enableval="$enable_glibtest"
21430
enable_glibtest=yes
21433
pkg_config_args=glib-2.0
21434
for module in . gthread gmodule
21438
pkg_config_args="$pkg_config_args gmodule-2.0"
21441
pkg_config_args="$pkg_config_args gobject-2.0"
21444
pkg_config_args="$pkg_config_args gthread-2.0"
21449
# Extract the first word of "pkg-config", so it can be a program name with args.
21450
set dummy pkg-config; ac_word=$2
21451
echo "$as_me:$LINENO: checking for $ac_word" >&5
21452
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21453
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21454
echo $ECHO_N "(cached) $ECHO_C" >&6
21456
case $PKG_CONFIG in
21458
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21461
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21462
for as_dir in $PATH
21465
test -z "$as_dir" && as_dir=.
21466
for ac_exec_ext in '' $ac_executable_extensions; do
21467
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21468
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21469
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21475
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21479
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21481
if test -n "$PKG_CONFIG"; then
21482
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21483
echo "${ECHO_T}$PKG_CONFIG" >&6
21485
echo "$as_me:$LINENO: result: no" >&5
21486
echo "${ECHO_T}no" >&6
21492
if test x$PKG_CONFIG != xno ; then
21493
if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
21496
echo *** pkg-config too old; version 0.7 or better required.
21504
min_glib_version=2.0.0
21505
echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
21506
echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6
21508
if test x$PKG_CONFIG != xno ; then
21509
## don't try to run the test against uninstalled libtool libs
21510
if $PKG_CONFIG --uninstalled $pkg_config_args; then
21511
echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
21515
if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
21522
if test x"$no_glib" = x ; then
21523
GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
21524
GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
21525
GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
21527
GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
21528
GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
21529
glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
21530
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21531
glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
21532
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21533
glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
21534
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21535
if test "x$enable_glibtest" = "xyes" ; then
21536
ac_save_CFLAGS="$CFLAGS"
21537
ac_save_LIBS="$LIBS"
21538
CFLAGS="$CFLAGS $GLIB_CFLAGS"
21539
LIBS="$GLIB_LIBS $LIBS"
21540
rm -f conf.glibtest
21541
if test "$cross_compiling" = yes; then
21542
echo $ac_n "cross compiling; assumed OK... $ac_c"
21544
cat >conftest.$ac_ext <<_ACEOF
21547
cat confdefs.h >>conftest.$ac_ext
21548
cat >>conftest.$ac_ext <<_ACEOF
21549
/* end confdefs.h. */
21553
#include <stdlib.h>
21558
int major, minor, micro;
21561
system ("touch conf.glibtest");
21563
/* HP/UX 9 (%@#!) writes to sscanf strings */
21564
tmp_version = g_strdup("$min_glib_version");
21565
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
21566
printf("%s, bad version string\n", "$min_glib_version");
21570
if ((glib_major_version != $glib_config_major_version) ||
21571
(glib_minor_version != $glib_config_minor_version) ||
21572
(glib_micro_version != $glib_config_micro_version))
21574
printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
21575
$glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
21576
glib_major_version, glib_minor_version, glib_micro_version);
21577
printf ("*** was found! If pkg-config was correct, then it is best\n");
21578
printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
21579
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21580
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21581
printf("*** required on your system.\n");
21582
printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
21583
printf("*** to point to the correct configuration files\n");
21585
else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
21586
(glib_minor_version != GLIB_MINOR_VERSION) ||
21587
(glib_micro_version != GLIB_MICRO_VERSION))
21589
printf("*** GLIB header files (version %d.%d.%d) do not match\n",
21590
GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
21591
printf("*** library (version %d.%d.%d)\n",
21592
glib_major_version, glib_minor_version, glib_micro_version);
21596
if ((glib_major_version > major) ||
21597
((glib_major_version == major) && (glib_minor_version > minor)) ||
21598
((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
21604
printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
21605
glib_major_version, glib_minor_version, glib_micro_version);
21606
printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
21607
major, minor, micro);
21608
printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
21610
printf("*** If you have already installed a sufficiently new version, this error\n");
21611
printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
21612
printf("*** being found. The easiest way to fix this is to remove the old version\n");
21613
printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
21614
printf("*** correct copy of pkg-config. (In this case, you will have to\n");
21615
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21616
printf("*** so that the correct libraries are found at run-time))\n");
21623
rm -f conftest$ac_exeext
21624
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21625
(eval $ac_link) 2>&5
21627
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21629
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21630
(eval $ac_try) 2>&5
21632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633
(exit $ac_status); }; }; then
21636
echo "$as_me: program exited with status $ac_status" >&5
21637
echo "$as_me: failed program was:" >&5
21638
sed 's/^/| /' conftest.$ac_ext >&5
21640
( exit $ac_status )
21643
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21645
CFLAGS="$ac_save_CFLAGS"
21646
LIBS="$ac_save_LIBS"
21649
if test "x$no_glib" = x ; then
21650
echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
21651
echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6
21653
cat >>confdefs.h <<\_ACEOF
21654
#define HAVE_GLIB 1
21658
echo "$as_me:$LINENO: result: no" >&5
21659
echo "${ECHO_T}no" >&6
21660
if test "$PKG_CONFIG" = "no" ; then
21661
echo "*** A new enough version of pkg-config was not found."
21662
echo "*** See http://www.freedesktop.org/software/pkgconfig/"
21664
if test -f conf.glibtest ; then
21667
echo "*** Could not run GLIB test program, checking why..."
21668
ac_save_CFLAGS="$CFLAGS"
21669
ac_save_LIBS="$LIBS"
21670
CFLAGS="$CFLAGS $GLIB_CFLAGS"
21671
LIBS="$LIBS $GLIB_LIBS"
21672
cat >conftest.$ac_ext <<_ACEOF
21675
cat confdefs.h >>conftest.$ac_ext
21676
cat >>conftest.$ac_ext <<_ACEOF
21677
/* end confdefs.h. */
21685
return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
21690
rm -f conftest.$ac_objext conftest$ac_exeext
21691
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21692
(eval $ac_link) 2>conftest.er1
21694
grep -v '^ *+' conftest.er1 >conftest.err
21696
cat conftest.err >&5
21697
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698
(exit $ac_status); } &&
21699
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21700
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21701
(eval $ac_try) 2>&5
21703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704
(exit $ac_status); }; } &&
21705
{ ac_try='test -s conftest$ac_exeext'
21706
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21707
(eval $ac_try) 2>&5
21709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710
(exit $ac_status); }; }; then
21711
echo "*** The test program compiled, but did not run. This usually means"
21712
echo "*** that the run-time linker is not finding GLIB or finding the wrong"
21713
echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
21714
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21715
echo "*** to the installed location Also, make sure you have run ldconfig if that"
21716
echo "*** is required on your system"
21718
echo "*** If you have an old version installed, it is best to remove it, although"
21719
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21721
echo "$as_me: failed program was:" >&5
21722
sed 's/^/| /' conftest.$ac_ext >&5
21724
echo "*** The test program failed to compile or link. See the file config.log for the"
21725
echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
21727
rm -f conftest.err conftest.$ac_objext \
21728
conftest$ac_exeext conftest.$ac_ext
21729
CFLAGS="$ac_save_CFLAGS"
21730
LIBS="$ac_save_LIBS"
21738
{ echo "$as_me:$LINENO: WARNING: Can't find glib with version > 2.0.0. Only compilation on linux without glib is supported." >&5
21739
echo "$as_me: WARNING: Can't find glib with version > 2.0.0. Only compilation on linux without glib is supported." >&2;}; useglib=false
21746
rm -f conf.glibtest
21750
if test "$useglib" = "false"; then
21751
CFLAGS="$CFLAGS -I\$(top_srcdir)/support"
21752
SUPPORTLIB="\$(top_builddir)/support/libuglib.la"
21757
if test "$gnome_ui" = "true" ; then
21762
if test -z "$PKG_CONFIG"; then
21763
# Extract the first word of "pkg-config", so it can be a program name with args.
21764
set dummy pkg-config; ac_word=$2
21765
echo "$as_me:$LINENO: checking for $ac_word" >&5
21766
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21767
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21768
echo $ECHO_N "(cached) $ECHO_C" >&6
21770
case $PKG_CONFIG in
21772
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21775
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21776
for as_dir in $PATH
21779
test -z "$as_dir" && as_dir=.
21780
for ac_exec_ext in '' $ac_executable_extensions; do
21781
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21782
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21783
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21789
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21793
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21795
if test -n "$PKG_CONFIG"; then
21796
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21797
echo "${ECHO_T}$PKG_CONFIG" >&6
21799
echo "$as_me:$LINENO: result: no" >&5
21800
echo "${ECHO_T}no" >&6
21805
if test "$PKG_CONFIG" = "no" ; then
21806
echo "*** The pkg-config script could not be found. Make sure it is"
21807
echo "*** in your path, or set the PKG_CONFIG environment variable"
21808
echo "*** to the full path to pkg-config."
21809
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21811
PKG_CONFIG_MIN_VERSION=0.9.0
21812
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21813
echo "$as_me:$LINENO: checking for libgnomeui-2.0 >= 1.96.0" >&5
21814
echo $ECHO_N "checking for libgnomeui-2.0 >= 1.96.0... $ECHO_C" >&6
21816
if $PKG_CONFIG --exists "libgnomeui-2.0 >= 1.96.0" ; then
21817
echo "$as_me:$LINENO: result: yes" >&5
21818
echo "${ECHO_T}yes" >&6
21821
echo "$as_me:$LINENO: checking LIBGNOMEUI_CFLAGS" >&5
21822
echo $ECHO_N "checking LIBGNOMEUI_CFLAGS... $ECHO_C" >&6
21823
LIBGNOMEUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeui-2.0 >= 1.96.0"`
21824
echo "$as_me:$LINENO: result: $LIBGNOMEUI_CFLAGS" >&5
21825
echo "${ECHO_T}$LIBGNOMEUI_CFLAGS" >&6
21827
echo "$as_me:$LINENO: checking LIBGNOMEUI_LIBS" >&5
21828
echo $ECHO_N "checking LIBGNOMEUI_LIBS... $ECHO_C" >&6
21829
LIBGNOMEUI_LIBS=`$PKG_CONFIG --libs "libgnomeui-2.0 >= 1.96.0"`
21830
echo "$as_me:$LINENO: result: $LIBGNOMEUI_LIBS" >&5
21831
echo "${ECHO_T}$LIBGNOMEUI_LIBS" >&6
21833
LIBGNOMEUI_CFLAGS=""
21835
## If we have a custom action on failure, don't print errors, but
21836
## do set a variable so people can do so.
21837
LIBGNOMEUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeui-2.0 >= 1.96.0"`
21844
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21845
echo "*** See http://www.freedesktop.org/software/pkgconfig"
21849
if test $succeeded = yes; then
21861
if test -z "$PKG_CONFIG"; then
21862
# Extract the first word of "pkg-config", so it can be a program name with args.
21863
set dummy pkg-config; ac_word=$2
21864
echo "$as_me:$LINENO: checking for $ac_word" >&5
21865
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21866
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21867
echo $ECHO_N "(cached) $ECHO_C" >&6
21869
case $PKG_CONFIG in
21871
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21874
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21875
for as_dir in $PATH
21878
test -z "$as_dir" && as_dir=.
21879
for ac_exec_ext in '' $ac_executable_extensions; do
21880
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21881
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21882
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21888
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21892
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21894
if test -n "$PKG_CONFIG"; then
21895
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21896
echo "${ECHO_T}$PKG_CONFIG" >&6
21898
echo "$as_me:$LINENO: result: no" >&5
21899
echo "${ECHO_T}no" >&6
21904
if test "$PKG_CONFIG" = "no" ; then
21905
echo "*** The pkg-config script could not be found. Make sure it is"
21906
echo "*** in your path, or set the PKG_CONFIG environment variable"
21907
echo "*** to the full path to pkg-config."
21908
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21910
PKG_CONFIG_MIN_VERSION=0.9.0
21911
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21912
echo "$as_me:$LINENO: checking for libgnome-2.0 >= 1.96.0" >&5
21913
echo $ECHO_N "checking for libgnome-2.0 >= 1.96.0... $ECHO_C" >&6
21915
if $PKG_CONFIG --exists "libgnome-2.0 >= 1.96.0" ; then
21916
echo "$as_me:$LINENO: result: yes" >&5
21917
echo "${ECHO_T}yes" >&6
21920
echo "$as_me:$LINENO: checking LIBGNOME_CFLAGS" >&5
21921
echo $ECHO_N "checking LIBGNOME_CFLAGS... $ECHO_C" >&6
21922
LIBGNOME_CFLAGS=`$PKG_CONFIG --cflags "libgnome-2.0 >= 1.96.0"`
21923
echo "$as_me:$LINENO: result: $LIBGNOME_CFLAGS" >&5
21924
echo "${ECHO_T}$LIBGNOME_CFLAGS" >&6
21926
echo "$as_me:$LINENO: checking LIBGNOME_LIBS" >&5
21927
echo $ECHO_N "checking LIBGNOME_LIBS... $ECHO_C" >&6
21928
LIBGNOME_LIBS=`$PKG_CONFIG --libs "libgnome-2.0 >= 1.96.0"`
21929
echo "$as_me:$LINENO: result: $LIBGNOME_LIBS" >&5
21930
echo "${ECHO_T}$LIBGNOME_LIBS" >&6
21934
## If we have a custom action on failure, don't print errors, but
21935
## do set a variable so people can do so.
21936
LIBGNOME_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnome-2.0 >= 1.96.0"`
21943
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21944
echo "*** See http://www.freedesktop.org/software/pkgconfig"
21948
if test $succeeded = yes; then
21960
if test -z "$PKG_CONFIG"; then
21961
# Extract the first word of "pkg-config", so it can be a program name with args.
21962
set dummy pkg-config; ac_word=$2
21963
echo "$as_me:$LINENO: checking for $ac_word" >&5
21964
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21965
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21966
echo $ECHO_N "(cached) $ECHO_C" >&6
21968
case $PKG_CONFIG in
21970
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21973
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21974
for as_dir in $PATH
21977
test -z "$as_dir" && as_dir=.
21978
for ac_exec_ext in '' $ac_executable_extensions; do
21979
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21980
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21981
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21987
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21991
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21993
if test -n "$PKG_CONFIG"; then
21994
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21995
echo "${ECHO_T}$PKG_CONFIG" >&6
21997
echo "$as_me:$LINENO: result: no" >&5
21998
echo "${ECHO_T}no" >&6
22003
if test "$PKG_CONFIG" = "no" ; then
22004
echo "*** The pkg-config script could not be found. Make sure it is"
22005
echo "*** in your path, or set the PKG_CONFIG environment variable"
22006
echo "*** to the full path to pkg-config."
22007
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22009
PKG_CONFIG_MIN_VERSION=0.9.0
22010
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22011
echo "$as_me:$LINENO: checking for libpanelapplet-2.0 >= 2.0.0 " >&5
22012
echo $ECHO_N "checking for libpanelapplet-2.0 >= 2.0.0 ... $ECHO_C" >&6
22014
if $PKG_CONFIG --exists "libpanelapplet-2.0 >= 2.0.0 " ; then
22015
echo "$as_me:$LINENO: result: yes" >&5
22016
echo "${ECHO_T}yes" >&6
22019
echo "$as_me:$LINENO: checking GNOME_APPLETS_CFLAGS" >&5
22020
echo $ECHO_N "checking GNOME_APPLETS_CFLAGS... $ECHO_C" >&6
22021
GNOME_APPLETS_CFLAGS=`$PKG_CONFIG --cflags "libpanelapplet-2.0 >= 2.0.0 "`
22022
echo "$as_me:$LINENO: result: $GNOME_APPLETS_CFLAGS" >&5
22023
echo "${ECHO_T}$GNOME_APPLETS_CFLAGS" >&6
22025
echo "$as_me:$LINENO: checking GNOME_APPLETS_LIBS" >&5
22026
echo $ECHO_N "checking GNOME_APPLETS_LIBS... $ECHO_C" >&6
22027
GNOME_APPLETS_LIBS=`$PKG_CONFIG --libs "libpanelapplet-2.0 >= 2.0.0 "`
22028
echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
22029
echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6
22031
GNOME_APPLETS_CFLAGS=""
22032
GNOME_APPLETS_LIBS=""
22033
## If we have a custom action on failure, don't print errors, but
22034
## do set a variable so people can do so.
22035
GNOME_APPLETS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpanelapplet-2.0 >= 2.0.0 "`
22042
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22043
echo "*** See http://www.freedesktop.org/software/pkgconfig"
22047
if test $succeeded = yes; then
22048
build_gnome_applet=true
22050
build_gnome_applet=false
22056
if test "$gnome_ui" = "true" ; then
22058
cat >>confdefs.h <<\_ACEOF
22059
#define HAVE_GNOME 1
22063
missing_gnome_libs=true
22068
echo "Gnome interface compilation is disabled."
22075
GSMLIB_CFLAGS="-w -O2"
22078
PTHREAD_LDFLAGS="-pthread"
22080
cat >>confdefs.h <<\_ACEOF
22081
#define __FreeBSD__ 1
22087
cat >>confdefs.h <<\_ACEOF
22088
#define __LINUX__ 1
22094
case "$host_cpu" in
22097
cat >>confdefs.h <<\_ACEOF
22109
# Check whether --with-realprefix or --without-realprefix was given.
22110
if test "${with_realprefix+set}" = set; then
22111
withval="$with_realprefix"
22112
realprefix=${withval}
22118
# Check whether --with-osip or --without-osip was given.
22119
if test "${with_osip+set}" = set; then
22120
withval="$with_osip"
22121
osip_prefix=${withval}
22128
# Check whether --with-speex or --without-speex was given.
22129
if test "${with_speex+set}" = set; then
22130
withval="$with_speex"
22131
speex_prefix=${withval}
22133
speex_prefix="/usr"
22137
# Check whether --enable-alsa or --disable-alsa was given.
22138
if test "${enable_alsa+set}" = set; then
22139
enableval="$enable_alsa"
22140
case "${enableval}" in
22143
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-alsa" >&5
22144
echo "$as_me: error: bad value ${enableval} for --enable-alsa" >&2;}
22145
{ (exit 1); exit 1; }; } ;;
22151
# Check whether --enable-ipv6 or --disable-ipv6 was given.
22152
if test "${enable_ipv6+set}" = set; then
22153
enableval="$enable_ipv6"
22154
case "${enableval}" in
22157
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-ipv6" >&5
22158
echo "$as_me: error: bad value ${enableval} for --enable-ipv6" >&2;}
22159
{ (exit 1); exit 1; }; } ;;
22165
if test x$ipv6 = xtrue ; then
22166
IPV6_CFLAGS=-DINET6
22170
# Check whether --enable-truespeech or --disable-truespeech was given.
22171
if test "${enable_truespeech+set}" = set; then
22172
enableval="$enable_truespeech"
22173
case "${enableval}" in
22174
yes) truespeech=true;;
22175
no) truespeech=false;;
22176
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-truespeech" >&5
22177
echo "$as_me: error: bad value ${enableval} for --enable-truespeech" >&2;}
22178
{ (exit 1); exit 1; }; } ;;
22184
if test x$truespeech = xtrue ; then
22185
TRUESPEECH_CFLAGS=-DTRUESPEECH
22190
if test x$truespeech = xtrue; then
22191
BUILD_TRUESPEECH_TRUE=
22192
BUILD_TRUESPEECH_FALSE='#'
22194
BUILD_TRUESPEECH_TRUE='#'
22195
BUILD_TRUESPEECH_FALSE=
22200
# Check whether --enable-video or --disable-video was given.
22201
if test "${enable_video+set}" = set; then
22202
enableval="$enable_video"
22203
case "${enableval}" in
22206
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-video" >&5
22207
echo "$as_me: error: bad value ${enableval} for --enable-video" >&2;}
22208
{ (exit 1); exit 1; }; } ;;
22215
if test "x${prefix}" = "xNONE"; then
22216
prefix=${ac_default_prefix}
22218
if test "x${realprefix}" = "xnone"; then
22219
realprefix=${prefix}
22223
cat >>confdefs.h <<_ACEOF
22224
#define PACKAGE_LOCALE_DIR "${realprefix}/${DATADIRNAME}/locale"
22229
cat >>confdefs.h <<_ACEOF
22230
#define PACKAGE_DATA_DIR "${realprefix}/${DATADIRNAME}"
22235
cat >>confdefs.h <<_ACEOF
22236
#define PACKAGE_SOUND_DIR "${realprefix}/${DATADIRNAME}/sounds/linphone"
22245
for ac_header in soundcard.h sys/soundcard.h machine/soundcard.h sys/audio.h
22247
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22248
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22249
echo "$as_me:$LINENO: checking for $ac_header" >&5
22250
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22251
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22252
echo $ECHO_N "(cached) $ECHO_C" >&6
22254
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22255
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22257
# Is the header compilable?
22258
echo "$as_me:$LINENO: checking $ac_header usability" >&5
22259
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22260
cat >conftest.$ac_ext <<_ACEOF
22263
cat confdefs.h >>conftest.$ac_ext
22264
cat >>conftest.$ac_ext <<_ACEOF
22265
/* end confdefs.h. */
22266
$ac_includes_default
22267
#include <$ac_header>
22269
rm -f conftest.$ac_objext
22270
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22271
(eval $ac_compile) 2>conftest.er1
22273
grep -v '^ *+' conftest.er1 >conftest.err
22275
cat conftest.err >&5
22276
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277
(exit $ac_status); } &&
22278
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22279
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22280
(eval $ac_try) 2>&5
22282
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283
(exit $ac_status); }; } &&
22284
{ ac_try='test -s conftest.$ac_objext'
22285
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22286
(eval $ac_try) 2>&5
22288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289
(exit $ac_status); }; }; then
22290
ac_header_compiler=yes
22292
echo "$as_me: failed program was:" >&5
22293
sed 's/^/| /' conftest.$ac_ext >&5
22295
ac_header_compiler=no
22297
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22298
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22299
echo "${ECHO_T}$ac_header_compiler" >&6
22301
# Is the header present?
22302
echo "$as_me:$LINENO: checking $ac_header presence" >&5
22303
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22304
cat >conftest.$ac_ext <<_ACEOF
22307
cat confdefs.h >>conftest.$ac_ext
22308
cat >>conftest.$ac_ext <<_ACEOF
22309
/* end confdefs.h. */
22310
#include <$ac_header>
22312
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22313
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22315
grep -v '^ *+' conftest.er1 >conftest.err
22317
cat conftest.err >&5
22318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319
(exit $ac_status); } >/dev/null; then
22320
if test -s conftest.err; then
22321
ac_cpp_err=$ac_c_preproc_warn_flag
22322
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22329
if test -z "$ac_cpp_err"; then
22330
ac_header_preproc=yes
22332
echo "$as_me: failed program was:" >&5
22333
sed 's/^/| /' conftest.$ac_ext >&5
22335
ac_header_preproc=no
22337
rm -f conftest.err conftest.$ac_ext
22338
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22339
echo "${ECHO_T}$ac_header_preproc" >&6
22341
# So? What about this header?
22342
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22344
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22345
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22346
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22347
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22348
ac_header_preproc=yes
22351
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22352
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22353
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22354
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22355
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22356
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22357
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22358
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22359
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22360
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22361
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22362
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22365
## ------------------------------------------ ##
22366
## Report this to the AC_PACKAGE_NAME lists. ##
22367
## ------------------------------------------ ##
22370
sed "s/^/$as_me: WARNING: /" >&2
22373
echo "$as_me:$LINENO: checking for $ac_header" >&5
22374
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22375
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22376
echo $ECHO_N "(cached) $ECHO_C" >&6
22378
eval "$as_ac_Header=\$ac_header_preproc"
22380
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22381
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22384
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22385
cat >>confdefs.h <<_ACEOF
22386
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22393
if test "${ac_cv_header_sys_soundcard_h}" = "yes" || \
22394
test "${ac_cv_header_soundcard_h}" = "yes" || \
22395
test "${ac_cv_header_sys_audio_h}" = "yes" || \
22396
test "${ac_cv_header_machine_soundcard_h}" = "yes"; then
22399
if test "$found_sound" = "no"; then
22400
{ { echo "$as_me:$LINENO: error: Could not find a support sound driver" >&5
22401
echo "$as_me: error: Could not find a support sound driver" >&2;}
22402
{ (exit 1); exit 1; }; }
22405
if test "$alsa" = "true"; then
22407
for ac_header in alsa/asoundlib.h
22409
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22410
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22411
echo "$as_me:$LINENO: checking for $ac_header" >&5
22412
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22413
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22414
echo $ECHO_N "(cached) $ECHO_C" >&6
22416
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22417
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22419
# Is the header compilable?
22420
echo "$as_me:$LINENO: checking $ac_header usability" >&5
22421
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22422
cat >conftest.$ac_ext <<_ACEOF
22425
cat confdefs.h >>conftest.$ac_ext
22426
cat >>conftest.$ac_ext <<_ACEOF
22427
/* end confdefs.h. */
22428
$ac_includes_default
22429
#include <$ac_header>
22431
rm -f conftest.$ac_objext
22432
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22433
(eval $ac_compile) 2>conftest.er1
22435
grep -v '^ *+' conftest.er1 >conftest.err
22437
cat conftest.err >&5
22438
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439
(exit $ac_status); } &&
22440
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22441
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22442
(eval $ac_try) 2>&5
22444
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445
(exit $ac_status); }; } &&
22446
{ ac_try='test -s conftest.$ac_objext'
22447
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22448
(eval $ac_try) 2>&5
22450
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451
(exit $ac_status); }; }; then
22452
ac_header_compiler=yes
22454
echo "$as_me: failed program was:" >&5
22455
sed 's/^/| /' conftest.$ac_ext >&5
22457
ac_header_compiler=no
22459
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22460
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22461
echo "${ECHO_T}$ac_header_compiler" >&6
22463
# Is the header present?
22464
echo "$as_me:$LINENO: checking $ac_header presence" >&5
22465
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22466
cat >conftest.$ac_ext <<_ACEOF
22469
cat confdefs.h >>conftest.$ac_ext
22470
cat >>conftest.$ac_ext <<_ACEOF
22471
/* end confdefs.h. */
22472
#include <$ac_header>
22474
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22475
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22477
grep -v '^ *+' conftest.er1 >conftest.err
22479
cat conftest.err >&5
22480
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481
(exit $ac_status); } >/dev/null; then
22482
if test -s conftest.err; then
22483
ac_cpp_err=$ac_c_preproc_warn_flag
22484
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22491
if test -z "$ac_cpp_err"; then
22492
ac_header_preproc=yes
22494
echo "$as_me: failed program was:" >&5
22495
sed 's/^/| /' conftest.$ac_ext >&5
22497
ac_header_preproc=no
22499
rm -f conftest.err conftest.$ac_ext
22500
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22501
echo "${ECHO_T}$ac_header_preproc" >&6
22503
# So? What about this header?
22504
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22506
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22507
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22508
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22509
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22510
ac_header_preproc=yes
22513
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22514
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22515
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22516
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22517
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22518
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22519
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22520
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22521
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22522
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22523
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22524
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22527
## ------------------------------------------ ##
22528
## Report this to the AC_PACKAGE_NAME lists. ##
22529
## ------------------------------------------ ##
22532
sed "s/^/$as_me: WARNING: /" >&2
22535
echo "$as_me:$LINENO: checking for $ac_header" >&5
22536
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22537
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22538
echo $ECHO_N "(cached) $ECHO_C" >&6
22540
eval "$as_ac_Header=\$ac_header_preproc"
22542
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22543
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22546
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22547
cat >>confdefs.h <<_ACEOF
22548
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22550
echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
22551
echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
22552
if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
22553
echo $ECHO_N "(cached) $ECHO_C" >&6
22555
ac_check_lib_save_LIBS=$LIBS
22556
LIBS="-lasound $LIBS"
22557
cat >conftest.$ac_ext <<_ACEOF
22560
cat confdefs.h >>conftest.$ac_ext
22561
cat >>conftest.$ac_ext <<_ACEOF
22562
/* end confdefs.h. */
22564
/* Override any gcc2 internal prototype to avoid an error. */
22568
/* We use char because int might match the return type of a gcc2
22569
builtin and then its argument prototype would still apply. */
22570
char snd_pcm_open ();
22579
rm -f conftest.$ac_objext conftest$ac_exeext
22580
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22581
(eval $ac_link) 2>conftest.er1
22583
grep -v '^ *+' conftest.er1 >conftest.err
22585
cat conftest.err >&5
22586
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587
(exit $ac_status); } &&
22588
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22589
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22590
(eval $ac_try) 2>&5
22592
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593
(exit $ac_status); }; } &&
22594
{ ac_try='test -s conftest$ac_exeext'
22595
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22596
(eval $ac_try) 2>&5
22598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599
(exit $ac_status); }; }; then
22600
ac_cv_lib_asound_snd_pcm_open=yes
22602
echo "$as_me: failed program was:" >&5
22603
sed 's/^/| /' conftest.$ac_ext >&5
22605
ac_cv_lib_asound_snd_pcm_open=no
22607
rm -f conftest.err conftest.$ac_objext \
22608
conftest$ac_exeext conftest.$ac_ext
22609
LIBS=$ac_check_lib_save_LIBS
22611
echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
22612
echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
22613
if test $ac_cv_lib_asound_snd_pcm_open = yes; then
22614
ALSA_LIBS="-lasound" ;
22615
cat >>confdefs.h <<\_ACEOF
22616
#define __ALSA_ENABLED__ 1
22630
for ac_func in getifaddrs
22632
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22633
echo "$as_me:$LINENO: checking for $ac_func" >&5
22634
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22635
if eval "test \"\${$as_ac_var+set}\" = set"; then
22636
echo $ECHO_N "(cached) $ECHO_C" >&6
22638
cat >conftest.$ac_ext <<_ACEOF
22641
cat confdefs.h >>conftest.$ac_ext
22642
cat >>conftest.$ac_ext <<_ACEOF
22643
/* end confdefs.h. */
22644
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22645
For example, HP-UX 11i <limits.h> declares gettimeofday. */
22646
#define $ac_func innocuous_$ac_func
22648
/* System header to define __stub macros and hopefully few prototypes,
22649
which can conflict with char $ac_func (); below.
22650
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22651
<limits.h> exists even on freestanding compilers. */
22654
# include <limits.h>
22656
# include <assert.h>
22661
/* Override any gcc2 internal prototype to avoid an error. */
22666
/* We use char because int might match the return type of a gcc2
22667
builtin and then its argument prototype would still apply. */
22669
/* The GNU C library defines this for functions which it implements
22670
to always fail with ENOSYS. Some functions are actually named
22671
something starting with __ and the normal name is an alias. */
22672
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22675
char (*f) () = $ac_func;
22684
return f != $ac_func;
22689
rm -f conftest.$ac_objext conftest$ac_exeext
22690
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22691
(eval $ac_link) 2>conftest.er1
22693
grep -v '^ *+' conftest.er1 >conftest.err
22695
cat conftest.err >&5
22696
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697
(exit $ac_status); } &&
22698
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22699
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22700
(eval $ac_try) 2>&5
22702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703
(exit $ac_status); }; } &&
22704
{ ac_try='test -s conftest$ac_exeext'
22705
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22706
(eval $ac_try) 2>&5
22708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709
(exit $ac_status); }; }; then
22710
eval "$as_ac_var=yes"
22712
echo "$as_me: failed program was:" >&5
22713
sed 's/^/| /' conftest.$ac_ext >&5
22715
eval "$as_ac_var=no"
22717
rm -f conftest.err conftest.$ac_objext \
22718
conftest$ac_exeext conftest.$ac_ext
22720
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22721
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22722
if test `eval echo '${'$as_ac_var'}'` = yes; then
22723
cat >>confdefs.h <<_ACEOF
22724
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22731
for ac_header in dlfcn.h
22733
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22734
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22735
echo "$as_me:$LINENO: checking for $ac_header" >&5
22736
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22737
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22738
echo $ECHO_N "(cached) $ECHO_C" >&6
22740
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22741
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22743
# Is the header compilable?
22744
echo "$as_me:$LINENO: checking $ac_header usability" >&5
22745
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22746
cat >conftest.$ac_ext <<_ACEOF
22749
cat confdefs.h >>conftest.$ac_ext
22750
cat >>conftest.$ac_ext <<_ACEOF
22751
/* end confdefs.h. */
22752
$ac_includes_default
22753
#include <$ac_header>
22755
rm -f conftest.$ac_objext
22756
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22757
(eval $ac_compile) 2>conftest.er1
22759
grep -v '^ *+' conftest.er1 >conftest.err
22761
cat conftest.err >&5
22762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22763
(exit $ac_status); } &&
22764
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22765
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22766
(eval $ac_try) 2>&5
22768
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769
(exit $ac_status); }; } &&
22770
{ ac_try='test -s conftest.$ac_objext'
22771
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22772
(eval $ac_try) 2>&5
22774
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775
(exit $ac_status); }; }; then
22776
ac_header_compiler=yes
22778
echo "$as_me: failed program was:" >&5
22779
sed 's/^/| /' conftest.$ac_ext >&5
22781
ac_header_compiler=no
22783
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22784
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22785
echo "${ECHO_T}$ac_header_compiler" >&6
22787
# Is the header present?
22788
echo "$as_me:$LINENO: checking $ac_header presence" >&5
22789
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22790
cat >conftest.$ac_ext <<_ACEOF
22793
cat confdefs.h >>conftest.$ac_ext
22794
cat >>conftest.$ac_ext <<_ACEOF
22795
/* end confdefs.h. */
22796
#include <$ac_header>
22798
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22799
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22801
grep -v '^ *+' conftest.er1 >conftest.err
22803
cat conftest.err >&5
22804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22805
(exit $ac_status); } >/dev/null; then
22806
if test -s conftest.err; then
22807
ac_cpp_err=$ac_c_preproc_warn_flag
22808
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22815
if test -z "$ac_cpp_err"; then
22816
ac_header_preproc=yes
22818
echo "$as_me: failed program was:" >&5
22819
sed 's/^/| /' conftest.$ac_ext >&5
22821
ac_header_preproc=no
22823
rm -f conftest.err conftest.$ac_ext
22824
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22825
echo "${ECHO_T}$ac_header_preproc" >&6
22827
# So? What about this header?
22828
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22830
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22831
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22832
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22833
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22834
ac_header_preproc=yes
22837
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22838
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22839
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22840
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22841
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22842
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22843
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22844
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22845
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22846
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22847
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22848
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22851
## ------------------------------------------ ##
22852
## Report this to the AC_PACKAGE_NAME lists. ##
22853
## ------------------------------------------ ##
22856
sed "s/^/$as_me: WARNING: /" >&2
22859
echo "$as_me:$LINENO: checking for $ac_header" >&5
22860
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22861
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22862
echo $ECHO_N "(cached) $ECHO_C" >&6
22864
eval "$as_ac_Header=\$ac_header_preproc"
22866
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22867
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22870
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22871
cat >>confdefs.h <<_ACEOF
22872
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22879
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22880
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22881
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22882
echo $ECHO_N "(cached) $ECHO_C" >&6
22884
ac_check_lib_save_LIBS=$LIBS
22886
cat >conftest.$ac_ext <<_ACEOF
22889
cat confdefs.h >>conftest.$ac_ext
22890
cat >>conftest.$ac_ext <<_ACEOF
22891
/* end confdefs.h. */
22893
/* Override any gcc2 internal prototype to avoid an error. */
22897
/* We use char because int might match the return type of a gcc2
22898
builtin and then its argument prototype would still apply. */
22908
rm -f conftest.$ac_objext conftest$ac_exeext
22909
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22910
(eval $ac_link) 2>conftest.er1
22912
grep -v '^ *+' conftest.er1 >conftest.err
22914
cat conftest.err >&5
22915
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916
(exit $ac_status); } &&
22917
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22918
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22919
(eval $ac_try) 2>&5
22921
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922
(exit $ac_status); }; } &&
22923
{ ac_try='test -s conftest$ac_exeext'
22924
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22925
(eval $ac_try) 2>&5
22927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928
(exit $ac_status); }; }; then
22929
ac_cv_lib_dl_dlopen=yes
22931
echo "$as_me: failed program was:" >&5
22932
sed 's/^/| /' conftest.$ac_ext >&5
22934
ac_cv_lib_dl_dlopen=no
22936
rm -f conftest.err conftest.$ac_objext \
22937
conftest$ac_exeext conftest.$ac_ext
22938
LIBS=$ac_check_lib_save_LIBS
22940
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22941
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22942
if test $ac_cv_lib_dl_dlopen = yes; then
22947
CPPFLAGS_save=$CPPFLAGS
22948
CPPFLAGS="-I${speex_prefix}/include"
22949
LDFLAGS_save=$LDFLAGS
22950
LDFLAGS="-lm -L${speex_prefix}/lib"
22952
for ac_header in speex.h
22954
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22955
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22956
echo "$as_me:$LINENO: checking for $ac_header" >&5
22957
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22958
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22959
echo $ECHO_N "(cached) $ECHO_C" >&6
22961
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22962
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22964
# Is the header compilable?
22965
echo "$as_me:$LINENO: checking $ac_header usability" >&5
22966
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22967
cat >conftest.$ac_ext <<_ACEOF
22970
cat confdefs.h >>conftest.$ac_ext
22971
cat >>conftest.$ac_ext <<_ACEOF
22972
/* end confdefs.h. */
22973
$ac_includes_default
22974
#include <$ac_header>
22976
rm -f conftest.$ac_objext
22977
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22978
(eval $ac_compile) 2>conftest.er1
22980
grep -v '^ *+' conftest.er1 >conftest.err
22982
cat conftest.err >&5
22983
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984
(exit $ac_status); } &&
22985
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22986
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22987
(eval $ac_try) 2>&5
22989
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990
(exit $ac_status); }; } &&
22991
{ ac_try='test -s conftest.$ac_objext'
22992
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22993
(eval $ac_try) 2>&5
22995
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996
(exit $ac_status); }; }; then
22997
ac_header_compiler=yes
22999
echo "$as_me: failed program was:" >&5
23000
sed 's/^/| /' conftest.$ac_ext >&5
23002
ac_header_compiler=no
23004
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23005
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23006
echo "${ECHO_T}$ac_header_compiler" >&6
23008
# Is the header present?
23009
echo "$as_me:$LINENO: checking $ac_header presence" >&5
23010
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23011
cat >conftest.$ac_ext <<_ACEOF
23014
cat confdefs.h >>conftest.$ac_ext
23015
cat >>conftest.$ac_ext <<_ACEOF
23016
/* end confdefs.h. */
23017
#include <$ac_header>
23019
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23020
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23022
grep -v '^ *+' conftest.er1 >conftest.err
23024
cat conftest.err >&5
23025
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026
(exit $ac_status); } >/dev/null; then
23027
if test -s conftest.err; then
23028
ac_cpp_err=$ac_c_preproc_warn_flag
23029
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23036
if test -z "$ac_cpp_err"; then
23037
ac_header_preproc=yes
23039
echo "$as_me: failed program was:" >&5
23040
sed 's/^/| /' conftest.$ac_ext >&5
23042
ac_header_preproc=no
23044
rm -f conftest.err conftest.$ac_ext
23045
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23046
echo "${ECHO_T}$ac_header_preproc" >&6
23048
# So? What about this header?
23049
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23051
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23052
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23053
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23054
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23055
ac_header_preproc=yes
23058
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23059
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23060
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23061
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23062
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23063
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23064
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23065
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23066
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23067
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23068
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23069
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23072
## ------------------------------------------ ##
23073
## Report this to the AC_PACKAGE_NAME lists. ##
23074
## ------------------------------------------ ##
23077
sed "s/^/$as_me: WARNING: /" >&2
23080
echo "$as_me:$LINENO: checking for $ac_header" >&5
23081
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23082
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23083
echo $ECHO_N "(cached) $ECHO_C" >&6
23085
eval "$as_ac_Header=\$ac_header_preproc"
23087
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23088
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23091
if test `eval echo '${'$as_ac_Header'}'` = yes; then
23092
cat >>confdefs.h <<_ACEOF
23093
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23095
echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
23096
echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6
23097
if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
23098
echo $ECHO_N "(cached) $ECHO_C" >&6
23100
ac_check_lib_save_LIBS=$LIBS
23101
LIBS="-lspeex $LIBS"
23102
cat >conftest.$ac_ext <<_ACEOF
23105
cat confdefs.h >>conftest.$ac_ext
23106
cat >>conftest.$ac_ext <<_ACEOF
23107
/* end confdefs.h. */
23109
/* Override any gcc2 internal prototype to avoid an error. */
23113
/* We use char because int might match the return type of a gcc2
23114
builtin and then its argument prototype would still apply. */
23115
char speex_encode ();
23124
rm -f conftest.$ac_objext conftest$ac_exeext
23125
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23126
(eval $ac_link) 2>conftest.er1
23128
grep -v '^ *+' conftest.er1 >conftest.err
23130
cat conftest.err >&5
23131
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132
(exit $ac_status); } &&
23133
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23134
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23135
(eval $ac_try) 2>&5
23137
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138
(exit $ac_status); }; } &&
23139
{ ac_try='test -s conftest$ac_exeext'
23140
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23141
(eval $ac_try) 2>&5
23143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144
(exit $ac_status); }; }; then
23145
ac_cv_lib_speex_speex_encode=yes
23147
echo "$as_me: failed program was:" >&5
23148
sed 's/^/| /' conftest.$ac_ext >&5
23150
ac_cv_lib_speex_speex_encode=no
23152
rm -f conftest.err conftest.$ac_objext \
23153
conftest$ac_exeext conftest.$ac_ext
23154
LIBS=$ac_check_lib_save_LIBS
23156
echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
23157
echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6
23158
if test $ac_cv_lib_speex_speex_encode = yes; then
23159
use_installed_speex=yes
23161
use_installed_speex=no
23166
use_installed_speex=no
23171
if test x${speex_prefix} = xembedded ; then
23172
use_installed_speex=no
23174
if test x${use_installed_speex} = "xyes" ; then
23175
echo "Using speex installed in $speex_prefix ."
23176
SPEEX_CFLAGS="-I${speex_prefix}/include"
23177
SPEEX_LIBS="-L${speex_prefix}/lib -lspeex -lm"
23179
echo "Using speex embedded in linphone's tree."
23180
SPEEX_CFLAGS="-I\$(top_srcdir)/speex/libspeex "
23181
SPEEX_LIBS="\$(top_srcdir)/speex/libspeex/libspeex.la"
23185
CPPFLAGS=$CPPFLAGS_save
23186
LDFLAGS=$LDFLAGS_save
23188
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23189
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
23190
if test "${ac_cv_c_bigendian+set}" = set; then
23191
echo $ECHO_N "(cached) $ECHO_C" >&6
23193
# See if sys/param.h defines the BYTE_ORDER macro.
23194
cat >conftest.$ac_ext <<_ACEOF
23197
cat confdefs.h >>conftest.$ac_ext
23198
cat >>conftest.$ac_ext <<_ACEOF
23199
/* end confdefs.h. */
23200
#include <sys/types.h>
23201
#include <sys/param.h>
23206
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
23207
bogus endian macros
23214
rm -f conftest.$ac_objext
23215
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23216
(eval $ac_compile) 2>conftest.er1
23218
grep -v '^ *+' conftest.er1 >conftest.err
23220
cat conftest.err >&5
23221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23222
(exit $ac_status); } &&
23223
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23224
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23225
(eval $ac_try) 2>&5
23227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228
(exit $ac_status); }; } &&
23229
{ ac_try='test -s conftest.$ac_objext'
23230
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23231
(eval $ac_try) 2>&5
23233
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234
(exit $ac_status); }; }; then
23235
# It does; now see whether it defined to BIG_ENDIAN or not.
23236
cat >conftest.$ac_ext <<_ACEOF
23239
cat confdefs.h >>conftest.$ac_ext
23240
cat >>conftest.$ac_ext <<_ACEOF
23241
/* end confdefs.h. */
23242
#include <sys/types.h>
23243
#include <sys/param.h>
23248
#if BYTE_ORDER != BIG_ENDIAN
23256
rm -f conftest.$ac_objext
23257
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23258
(eval $ac_compile) 2>conftest.er1
23260
grep -v '^ *+' conftest.er1 >conftest.err
23262
cat conftest.err >&5
23263
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264
(exit $ac_status); } &&
23265
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23266
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23267
(eval $ac_try) 2>&5
23269
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270
(exit $ac_status); }; } &&
23271
{ ac_try='test -s conftest.$ac_objext'
23272
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23273
(eval $ac_try) 2>&5
23275
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276
(exit $ac_status); }; }; then
23277
ac_cv_c_bigendian=yes
23279
echo "$as_me: failed program was:" >&5
23280
sed 's/^/| /' conftest.$ac_ext >&5
23282
ac_cv_c_bigendian=no
23284
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23286
echo "$as_me: failed program was:" >&5
23287
sed 's/^/| /' conftest.$ac_ext >&5
23289
# It does not; compile a test program.
23290
if test "$cross_compiling" = yes; then
23291
# try to guess the endianness by grepping values into an object file
23292
ac_cv_c_bigendian=unknown
23293
cat >conftest.$ac_ext <<_ACEOF
23296
cat confdefs.h >>conftest.$ac_ext
23297
cat >>conftest.$ac_ext <<_ACEOF
23298
/* end confdefs.h. */
23299
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23300
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23301
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23302
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23303
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23304
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23308
_ascii (); _ebcdic ();
23313
rm -f conftest.$ac_objext
23314
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23315
(eval $ac_compile) 2>conftest.er1
23317
grep -v '^ *+' conftest.er1 >conftest.err
23319
cat conftest.err >&5
23320
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321
(exit $ac_status); } &&
23322
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23323
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23324
(eval $ac_try) 2>&5
23326
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327
(exit $ac_status); }; } &&
23328
{ ac_try='test -s conftest.$ac_objext'
23329
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23330
(eval $ac_try) 2>&5
23332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333
(exit $ac_status); }; }; then
23334
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23335
ac_cv_c_bigendian=yes
23337
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23338
if test "$ac_cv_c_bigendian" = unknown; then
23339
ac_cv_c_bigendian=no
23341
# finding both strings is unlikely to happen, but who knows?
23342
ac_cv_c_bigendian=unknown
23346
echo "$as_me: failed program was:" >&5
23347
sed 's/^/| /' conftest.$ac_ext >&5
23350
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23352
cat >conftest.$ac_ext <<_ACEOF
23355
cat confdefs.h >>conftest.$ac_ext
23356
cat >>conftest.$ac_ext <<_ACEOF
23357
/* end confdefs.h. */
23361
/* Are we little or big endian? From Harbison&Steele. */
23365
char c[sizeof (long)];
23368
exit (u.c[sizeof (long) - 1] == 1);
23371
rm -f conftest$ac_exeext
23372
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23373
(eval $ac_link) 2>&5
23375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23376
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23377
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23378
(eval $ac_try) 2>&5
23380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381
(exit $ac_status); }; }; then
23382
ac_cv_c_bigendian=no
23384
echo "$as_me: program exited with status $ac_status" >&5
23385
echo "$as_me: failed program was:" >&5
23386
sed 's/^/| /' conftest.$ac_ext >&5
23388
( exit $ac_status )
23389
ac_cv_c_bigendian=yes
23391
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23394
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23396
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23397
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
23398
case $ac_cv_c_bigendian in
23401
cat >>confdefs.h <<\_ACEOF
23402
#define WORDS_BIGENDIAN 1
23408
{ { echo "$as_me:$LINENO: error: unknown endianness
23409
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23410
echo "$as_me: error: unknown endianness
23411
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23412
{ (exit 1); exit 1; }; } ;;
23418
if test "$video" = "true"; then
23419
echo "WARNING: Video support is under developpement, nothing works."
23420
# Extract the first word of "nasm", so it can be a program name with args.
23421
set dummy nasm; ac_word=$2
23422
echo "$as_me:$LINENO: checking for $ac_word" >&5
23423
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23424
if test "${ac_cv_prog_NASM+set}" = set; then
23425
echo $ECHO_N "(cached) $ECHO_C" >&6
23427
if test -n "$NASM"; then
23428
ac_cv_prog_NASM="$NASM" # Let the user override the test.
23430
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23431
for as_dir in $PATH
23434
test -z "$as_dir" && as_dir=.
23435
for ac_exec_ext in '' $ac_executable_extensions; do
23436
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23437
ac_cv_prog_NASM="true"
23438
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23444
test -z "$ac_cv_prog_NASM" && ac_cv_prog_NASM="false"
23447
NASM=$ac_cv_prog_NASM
23448
if test -n "$NASM"; then
23449
echo "$as_me:$LINENO: result: $NASM" >&5
23450
echo "${ECHO_T}$NASM" >&6
23452
echo "$as_me:$LINENO: result: no" >&5
23453
echo "${ECHO_T}no" >&6
23458
cd $('pwd')/ffmpeg; ln -sf Makefile.orig Makefile; cd ..
23459
cd $('pwd')/ffmpeg/libavcodec; ln -sf Makefile.libtool Makefile; cd .. ;cd ..
23460
echo "Video support will be build, although it is not functionnal for the moment."
23461
AVCODEC_LIBS="../ffmpeg/libavcodec/libavcodec.la"
23464
cat >>confdefs.h <<\_ACEOF
23465
#define HAVE_AVCODEC 1
23469
{ { echo "$as_me:$LINENO: error: \"nasm is missing ! You require nasm to build the video support in linphone.\"" >&5
23470
echo "$as_me: error: \"nasm is missing ! You require nasm to build the video support in linphone.\"" >&2;}
23471
{ (exit 1); exit 1; }; }
23476
if test -z "$PKG_CONFIG"; then
23477
# Extract the first word of "pkg-config", so it can be a program name with args.
23478
set dummy pkg-config; ac_word=$2
23479
echo "$as_me:$LINENO: checking for $ac_word" >&5
23480
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23481
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23482
echo $ECHO_N "(cached) $ECHO_C" >&6
23484
case $PKG_CONFIG in
23486
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23489
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23490
for as_dir in $PATH
23493
test -z "$as_dir" && as_dir=.
23494
for ac_exec_ext in '' $ac_executable_extensions; do
23495
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23496
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23497
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23503
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23507
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23509
if test -n "$PKG_CONFIG"; then
23510
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23511
echo "${ECHO_T}$PKG_CONFIG" >&6
23513
echo "$as_me:$LINENO: result: no" >&5
23514
echo "${ECHO_T}no" >&6
23519
if test "$PKG_CONFIG" = "no" ; then
23520
echo "*** The pkg-config script could not be found. Make sure it is"
23521
echo "*** in your path, or set the PKG_CONFIG environment variable"
23522
echo "*** to the full path to pkg-config."
23523
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23525
PKG_CONFIG_MIN_VERSION=0.9.0
23526
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23527
echo "$as_me:$LINENO: checking for gdk-2.0 >= 2.0.0" >&5
23528
echo $ECHO_N "checking for gdk-2.0 >= 2.0.0... $ECHO_C" >&6
23530
if $PKG_CONFIG --exists "gdk-2.0 >= 2.0.0" ; then
23531
echo "$as_me:$LINENO: result: yes" >&5
23532
echo "${ECHO_T}yes" >&6
23535
echo "$as_me:$LINENO: checking GDK_CFLAGS" >&5
23536
echo $ECHO_N "checking GDK_CFLAGS... $ECHO_C" >&6
23537
GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.0.0"`
23538
echo "$as_me:$LINENO: result: $GDK_CFLAGS" >&5
23539
echo "${ECHO_T}$GDK_CFLAGS" >&6
23541
echo "$as_me:$LINENO: checking GDK_LIBS" >&5
23542
echo $ECHO_N "checking GDK_LIBS... $ECHO_C" >&6
23543
GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.0.0"`
23544
echo "$as_me:$LINENO: result: $GDK_LIBS" >&5
23545
echo "${ECHO_T}$GDK_LIBS" >&6
23549
## If we have a custom action on failure, don't print errors, but
23550
## do set a variable so people can do so.
23551
GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.0.0"`
23552
echo $GDK_PKG_ERRORS
23558
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23559
echo "*** See http://www.freedesktop.org/software/pkgconfig"
23563
if test $succeeded = yes; then
23566
{ { echo "$as_me:$LINENO: error: Library requirements (gdk-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
23567
echo "$as_me: error: Library requirements (gdk-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
23568
{ (exit 1); exit 1; }; }
23574
cd $('pwd')/ffmpeg; ln -sf Makefile.null Makefile ; cd ..
23577
if test "$video" = "true" ; then
23578
echo "$as_me:$LINENO: checking for xine_init in -lxine" >&5
23579
echo $ECHO_N "checking for xine_init in -lxine... $ECHO_C" >&6
23580
if test "${ac_cv_lib_xine_xine_init+set}" = set; then
23581
echo $ECHO_N "(cached) $ECHO_C" >&6
23583
ac_check_lib_save_LIBS=$LIBS
23584
LIBS="-lxine $LIBS"
23585
cat >conftest.$ac_ext <<_ACEOF
23588
cat confdefs.h >>conftest.$ac_ext
23589
cat >>conftest.$ac_ext <<_ACEOF
23590
/* end confdefs.h. */
23592
/* Override any gcc2 internal prototype to avoid an error. */
23596
/* We use char because int might match the return type of a gcc2
23597
builtin and then its argument prototype would still apply. */
23607
rm -f conftest.$ac_objext conftest$ac_exeext
23608
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23609
(eval $ac_link) 2>conftest.er1
23611
grep -v '^ *+' conftest.er1 >conftest.err
23613
cat conftest.err >&5
23614
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615
(exit $ac_status); } &&
23616
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23617
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23618
(eval $ac_try) 2>&5
23620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621
(exit $ac_status); }; } &&
23622
{ ac_try='test -s conftest$ac_exeext'
23623
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23624
(eval $ac_try) 2>&5
23626
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627
(exit $ac_status); }; }; then
23628
ac_cv_lib_xine_xine_init=yes
23630
echo "$as_me: failed program was:" >&5
23631
sed 's/^/| /' conftest.$ac_ext >&5
23633
ac_cv_lib_xine_xine_init=no
23635
rm -f conftest.err conftest.$ac_objext \
23636
conftest$ac_exeext conftest.$ac_ext
23637
LIBS=$ac_check_lib_save_LIBS
23639
echo "$as_me:$LINENO: result: $ac_cv_lib_xine_xine_init" >&5
23640
echo "${ECHO_T}$ac_cv_lib_xine_xine_init" >&6
23641
if test $ac_cv_lib_xine_xine_init = yes; then
23645
echo "$as_me:$LINENO: checking for SDL_smpeg_descr in -lsmpeg" >&5
23646
echo $ECHO_N "checking for SDL_smpeg_descr in -lsmpeg... $ECHO_C" >&6
23647
if test "${ac_cv_lib_smpeg_SDL_smpeg_descr+set}" = set; then
23648
echo $ECHO_N "(cached) $ECHO_C" >&6
23650
ac_check_lib_save_LIBS=$LIBS
23651
LIBS="-lsmpeg $LIBS"
23652
cat >conftest.$ac_ext <<_ACEOF
23655
cat confdefs.h >>conftest.$ac_ext
23656
cat >>conftest.$ac_ext <<_ACEOF
23657
/* end confdefs.h. */
23659
/* Override any gcc2 internal prototype to avoid an error. */
23663
/* We use char because int might match the return type of a gcc2
23664
builtin and then its argument prototype would still apply. */
23665
char SDL_smpeg_descr ();
23669
SDL_smpeg_descr ();
23674
rm -f conftest.$ac_objext conftest$ac_exeext
23675
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23676
(eval $ac_link) 2>conftest.er1
23678
grep -v '^ *+' conftest.er1 >conftest.err
23680
cat conftest.err >&5
23681
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682
(exit $ac_status); } &&
23683
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23684
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23685
(eval $ac_try) 2>&5
23687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688
(exit $ac_status); }; } &&
23689
{ ac_try='test -s conftest$ac_exeext'
23690
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23691
(eval $ac_try) 2>&5
23693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23694
(exit $ac_status); }; }; then
23695
ac_cv_lib_smpeg_SDL_smpeg_descr=yes
23697
echo "$as_me: failed program was:" >&5
23698
sed 's/^/| /' conftest.$ac_ext >&5
23700
ac_cv_lib_smpeg_SDL_smpeg_descr=no
23702
rm -f conftest.err conftest.$ac_objext \
23703
conftest$ac_exeext conftest.$ac_ext
23704
LIBS=$ac_check_lib_save_LIBS
23706
echo "$as_me:$LINENO: result: $ac_cv_lib_smpeg_SDL_smpeg_descr" >&5
23707
echo "${ECHO_T}$ac_cv_lib_smpeg_SDL_smpeg_descr" >&6
23708
if test $ac_cv_lib_smpeg_SDL_smpeg_descr = yes; then
23716
if test xtrue = xtrue; then
23717
BUILD_MEDIASTREAMER_TRUE=
23718
BUILD_MEDIASTREAMER_FALSE='#'
23720
BUILD_MEDIASTREAMER_TRUE='#'
23721
BUILD_MEDIASTREAMER_FALSE=
23727
if test x$have_xine = xtrue; then
23729
HAVE_XINELIB_FALSE='#'
23731
HAVE_XINELIB_TRUE='#'
23732
HAVE_XINELIB_FALSE=
23737
if test x$have_smpeg = xtrue; then
23739
HAVE_SMPEG_FALSE='#'
23741
HAVE_SMPEG_TRUE='#'
23747
if test x$video = xtrue; then
23749
BUILD_FFMPEG_FALSE='#'
23751
BUILD_FFMPEG_TRUE='#'
23752
BUILD_FFMPEG_FALSE=
23757
if test x$video = xtrue; then
23759
BUILD_GDK_VO_FALSE='#'
23761
BUILD_GDK_VO_TRUE='#'
23762
BUILD_GDK_VO_FALSE=
23767
if test x$video = xtrue; then
23769
BUILD_V4L_FALSE='#'
23778
if test x$video = xtrue; then
23779
BUILD_MEDIA_API_TRUE=
23780
BUILD_MEDIA_API_FALSE='#'
23782
BUILD_MEDIA_API_TRUE='#'
23783
BUILD_MEDIA_API_FALSE=
23789
if test x$useglib = xfalse; then
23791
BUILD_UGLIB_FALSE='#'
23793
BUILD_UGLIB_TRUE='#'
23800
if test x$gnome_ui = xtrue; then
23802
BUILD_GNOME_FALSE='#'
23804
BUILD_GNOME_TRUE='#'
23810
if test x$build_gnome_applet = xtrue; then
23811
BUILD_GNOME_APPLET_TRUE=
23812
BUILD_GNOME_APPLET_FALSE='#'
23814
BUILD_GNOME_APPLET_TRUE='#'
23815
BUILD_GNOME_APPLET_FALSE=
23820
if test x$use_installed_speex = xno ; then
23822
BUILD_SPEEX_FALSE='#'
23824
BUILD_SPEEX_TRUE='#'
23833
subdirs="$subdirs ffmpeg speex oRTP osipua"
23836
##################################################
23837
# Check for gtk-doc.
23838
##################################################
23840
# Check whether --with-html-dir or --without-html-dir was given.
23841
if test "${with_html_dir+set}" = set; then
23842
withval="$with_html_dir"
23845
if test "x$with_html_dir" = "x" ; then
23846
HTML_DIR='${datadir}/gtk-doc/html'
23848
HTML_DIR=$with_html_dir
23855
if test -z "$PKG_CONFIG"; then
23856
# Extract the first word of "pkg-config", so it can be a program name with args.
23857
set dummy pkg-config; ac_word=$2
23858
echo "$as_me:$LINENO: checking for $ac_word" >&5
23859
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23860
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23861
echo $ECHO_N "(cached) $ECHO_C" >&6
23863
case $PKG_CONFIG in
23865
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23868
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23869
for as_dir in $PATH
23872
test -z "$as_dir" && as_dir=.
23873
for ac_exec_ext in '' $ac_executable_extensions; do
23874
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23875
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23876
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23882
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23886
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23888
if test -n "$PKG_CONFIG"; then
23889
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23890
echo "${ECHO_T}$PKG_CONFIG" >&6
23892
echo "$as_me:$LINENO: result: no" >&5
23893
echo "${ECHO_T}no" >&6
23898
if test "$PKG_CONFIG" = "no" ; then
23899
echo "*** The pkg-config script could not be found. Make sure it is"
23900
echo "*** in your path, or set the PKG_CONFIG environment variable"
23901
echo "*** to the full path to pkg-config."
23902
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23904
PKG_CONFIG_MIN_VERSION=0.9.0
23905
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23906
echo "$as_me:$LINENO: checking for gtk-doc >= 0.4" >&5
23907
echo $ECHO_N "checking for gtk-doc >= 0.4... $ECHO_C" >&6
23909
if $PKG_CONFIG --exists "gtk-doc >= 0.4" ; then
23910
echo "$as_me:$LINENO: result: yes" >&5
23911
echo "${ECHO_T}yes" >&6
23914
echo "$as_me:$LINENO: checking GTK_DOC_CFLAGS" >&5
23915
echo $ECHO_N "checking GTK_DOC_CFLAGS... $ECHO_C" >&6
23916
GTK_DOC_CFLAGS=`$PKG_CONFIG --cflags "gtk-doc >= 0.4"`
23917
echo "$as_me:$LINENO: result: $GTK_DOC_CFLAGS" >&5
23918
echo "${ECHO_T}$GTK_DOC_CFLAGS" >&6
23920
echo "$as_me:$LINENO: checking GTK_DOC_LIBS" >&5
23921
echo $ECHO_N "checking GTK_DOC_LIBS... $ECHO_C" >&6
23922
GTK_DOC_LIBS=`$PKG_CONFIG --libs "gtk-doc >= 0.4"`
23923
echo "$as_me:$LINENO: result: $GTK_DOC_LIBS" >&5
23924
echo "${ECHO_T}$GTK_DOC_LIBS" >&6
23928
## If we have a custom action on failure, don't print errors, but
23929
## do set a variable so people can do so.
23930
GTK_DOC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk-doc >= 0.4"`
23937
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23938
echo "*** See http://www.freedesktop.org/software/pkgconfig"
23942
if test $succeeded = yes; then
23950
if test x$enable_gtk_doc = xyes ; then
23951
ENABLE_GTK_DOC_TRUE=
23952
ENABLE_GTK_DOC_FALSE='#'
23954
ENABLE_GTK_DOC_TRUE='#'
23955
ENABLE_GTK_DOC_FALSE=
23959
LINPHONE_CFLAGS="$GLIB_CFLAGS -I${includedir} -I${includedir}/linphone -I${includedir}/osipua -I${includedir}/ortp "
23960
LINPHONE_LIBS="$GLIB_LIBS -L${libdir} -losipua -lmediastreamer -llinphone"
23966
cat >>confdefs.h <<_ACEOF
23967
#define LINPHONE_VERSION "$VERSION"
23971
ac_config_files="$ac_config_files Makefile po/Makefile.in pixmaps/Makefile debian/Makefile ipkg/Makefile ipkg/linphone.control support/Makefile mediastreamer/Makefile media_api/Makefile osipua/Makefile gsmlib/Makefile lpc10-1.5/Makefile coreapi/Makefile gnome/Makefile console/Makefile share/Makefile share/C/Makefile share/fr/Makefile share/it/Makefile share/ja/Makefile share/linphone.pc developer-docs/Makefile developer-docs/mediastreamer/Makefile"
23972
cat >confcache <<\_ACEOF
23973
# This file is a shell script that caches the results of configure
23974
# tests run on this system so they can be shared between configure
23975
# scripts and configure runs, see configure's option --config-cache.
23976
# It is not useful on other systems. If it contains results you don't
23977
# want to keep, you may remove or edit it.
23979
# config.status only pays attention to the cache file if you give it
23980
# the --recheck option to rerun configure.
23982
# `ac_cv_env_foo' variables (set or unset) will be overridden when
23983
# loading this file, other *unset* `ac_cv_foo' will be assigned the
23984
# following values.
23988
# The following way of writing the cache mishandles newlines in values,
23989
# but we know of no workaround that is simple, portable, and efficient.
23990
# So, don't put newlines in cache variables' values.
23991
# Ultrix sh set writes to stderr and can't be redirected directly,
23992
# and sets the high bit in the cache file unless we assign to the vars.
23995
case `(ac_space=' '; set | grep ac_space) 2>&1` in
23997
# `set' does not quote correctly, so add quotes (double-quote
23998
# substitution turns \\\\ into \\, and sed turns \\ into \).
24001
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24004
# `set' quotes correctly as required by POSIX, so do not add quotes.
24006
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24013
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24015
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24017
if diff $cache_file confcache >/dev/null 2>&1; then :; else
24018
if test -w $cache_file; then
24019
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24020
cat confcache >$cache_file
24022
echo "not updating unwritable cache $cache_file"
24027
test "x$prefix" = xNONE && prefix=$ac_default_prefix
24028
# Let make expand exec_prefix.
24029
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24031
# VPATH may cause trouble with some makes, so we remove $(srcdir),
24032
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24033
# trailing colons and then remove the whole line if VPATH becomes empty
24034
# (actually we leave an empty line to preserve line numbers).
24035
if test "x$srcdir" = x.; then
24036
ac_vpsub='/^[ ]*VPATH[ ]*=/{
24037
s/:*\$(srcdir):*/:/;
24038
s/:*\${srcdir}:*/:/;
24040
s/^\([^=]*=[ ]*\):*/\1/;
24046
DEFS=-DHAVE_CONFIG_H
24050
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24051
# 1. Remove the extension, and $U if already installed.
24052
ac_i=`echo "$ac_i" |
24053
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24055
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24056
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24058
LIBOBJS=$ac_libobjs
24060
LTLIBOBJS=$ac_ltlibobjs
24063
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24064
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24065
Usually this means the macro was only invoked conditionally." >&5
24066
echo "$as_me: error: conditional \"AMDEP\" was never defined.
24067
Usually this means the macro was only invoked conditionally." >&2;}
24068
{ (exit 1); exit 1; }; }
24072
mv -f po/POTFILES po/POTFILES.tmp
24073
sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
24074
rm -f po/POTFILES.tmp
24077
if test -z "${BUILD_TRUESPEECH_TRUE}" && test -z "${BUILD_TRUESPEECH_FALSE}"; then
24078
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_TRUESPEECH\" was never defined.
24079
Usually this means the macro was only invoked conditionally." >&5
24080
echo "$as_me: error: conditional \"BUILD_TRUESPEECH\" was never defined.
24081
Usually this means the macro was only invoked conditionally." >&2;}
24082
{ (exit 1); exit 1; }; }
24084
if test -z "${BUILD_MEDIASTREAMER_TRUE}" && test -z "${BUILD_MEDIASTREAMER_FALSE}"; then
24085
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_MEDIASTREAMER\" was never defined.
24086
Usually this means the macro was only invoked conditionally." >&5
24087
echo "$as_me: error: conditional \"BUILD_MEDIASTREAMER\" was never defined.
24088
Usually this means the macro was only invoked conditionally." >&2;}
24089
{ (exit 1); exit 1; }; }
24091
if test -z "${HAVE_XINELIB_TRUE}" && test -z "${HAVE_XINELIB_FALSE}"; then
24092
{ { echo "$as_me:$LINENO: error: conditional \"HAVE_XINELIB\" was never defined.
24093
Usually this means the macro was only invoked conditionally." >&5
24094
echo "$as_me: error: conditional \"HAVE_XINELIB\" was never defined.
24095
Usually this means the macro was only invoked conditionally." >&2;}
24096
{ (exit 1); exit 1; }; }
24098
if test -z "${HAVE_SMPEG_TRUE}" && test -z "${HAVE_SMPEG_FALSE}"; then
24099
{ { echo "$as_me:$LINENO: error: conditional \"HAVE_SMPEG\" was never defined.
24100
Usually this means the macro was only invoked conditionally." >&5
24101
echo "$as_me: error: conditional \"HAVE_SMPEG\" was never defined.
24102
Usually this means the macro was only invoked conditionally." >&2;}
24103
{ (exit 1); exit 1; }; }
24105
if test -z "${BUILD_FFMPEG_TRUE}" && test -z "${BUILD_FFMPEG_FALSE}"; then
24106
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_FFMPEG\" was never defined.
24107
Usually this means the macro was only invoked conditionally." >&5
24108
echo "$as_me: error: conditional \"BUILD_FFMPEG\" was never defined.
24109
Usually this means the macro was only invoked conditionally." >&2;}
24110
{ (exit 1); exit 1; }; }
24112
if test -z "${BUILD_GDK_VO_TRUE}" && test -z "${BUILD_GDK_VO_FALSE}"; then
24113
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_GDK_VO\" was never defined.
24114
Usually this means the macro was only invoked conditionally." >&5
24115
echo "$as_me: error: conditional \"BUILD_GDK_VO\" was never defined.
24116
Usually this means the macro was only invoked conditionally." >&2;}
24117
{ (exit 1); exit 1; }; }
24119
if test -z "${BUILD_V4L_TRUE}" && test -z "${BUILD_V4L_FALSE}"; then
24120
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_V4L\" was never defined.
24121
Usually this means the macro was only invoked conditionally." >&5
24122
echo "$as_me: error: conditional \"BUILD_V4L\" was never defined.
24123
Usually this means the macro was only invoked conditionally." >&2;}
24124
{ (exit 1); exit 1; }; }
24126
if test -z "${BUILD_MEDIA_API_TRUE}" && test -z "${BUILD_MEDIA_API_FALSE}"; then
24127
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_MEDIA_API\" was never defined.
24128
Usually this means the macro was only invoked conditionally." >&5
24129
echo "$as_me: error: conditional \"BUILD_MEDIA_API\" was never defined.
24130
Usually this means the macro was only invoked conditionally." >&2;}
24131
{ (exit 1); exit 1; }; }
24133
if test -z "${BUILD_UGLIB_TRUE}" && test -z "${BUILD_UGLIB_FALSE}"; then
24134
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_UGLIB\" was never defined.
24135
Usually this means the macro was only invoked conditionally." >&5
24136
echo "$as_me: error: conditional \"BUILD_UGLIB\" was never defined.
24137
Usually this means the macro was only invoked conditionally." >&2;}
24138
{ (exit 1); exit 1; }; }
24140
if test -z "${BUILD_GNOME_TRUE}" && test -z "${BUILD_GNOME_FALSE}"; then
24141
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_GNOME\" was never defined.
24142
Usually this means the macro was only invoked conditionally." >&5
24143
echo "$as_me: error: conditional \"BUILD_GNOME\" was never defined.
24144
Usually this means the macro was only invoked conditionally." >&2;}
24145
{ (exit 1); exit 1; }; }
24147
if test -z "${BUILD_GNOME_APPLET_TRUE}" && test -z "${BUILD_GNOME_APPLET_FALSE}"; then
24148
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_GNOME_APPLET\" was never defined.
24149
Usually this means the macro was only invoked conditionally." >&5
24150
echo "$as_me: error: conditional \"BUILD_GNOME_APPLET\" was never defined.
24151
Usually this means the macro was only invoked conditionally." >&2;}
24152
{ (exit 1); exit 1; }; }
24154
if test -z "${BUILD_SPEEX_TRUE}" && test -z "${BUILD_SPEEX_FALSE}"; then
24155
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_SPEEX\" was never defined.
24156
Usually this means the macro was only invoked conditionally." >&5
24157
echo "$as_me: error: conditional \"BUILD_SPEEX\" was never defined.
24158
Usually this means the macro was only invoked conditionally." >&2;}
24159
{ (exit 1); exit 1; }; }
24161
if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
24162
{ { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
24163
Usually this means the macro was only invoked conditionally." >&5
24164
echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
24165
Usually this means the macro was only invoked conditionally." >&2;}
24166
{ (exit 1); exit 1; }; }
24169
: ${CONFIG_STATUS=./config.status}
24170
ac_clean_files_save=$ac_clean_files
24171
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24172
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24173
echo "$as_me: creating $CONFIG_STATUS" >&6;}
24174
cat >$CONFIG_STATUS <<_ACEOF
24176
# Generated by $as_me.
24177
# Run this file to recreate the current configuration.
24178
# Compiler output produced by configure, useful for debugging
24179
# configure, is in config.log if it exists.
24182
ac_cs_recheck=false
24184
SHELL=\${CONFIG_SHELL-$SHELL}
24187
cat >>$CONFIG_STATUS <<\_ACEOF
24188
## --------------------- ##
24189
## M4sh Initialization. ##
24190
## --------------------- ##
24192
# Be Bourne compatible
24193
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24196
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24197
# is contrary to our usage. Disable this feature.
24198
alias -g '${1+"$@"}'='"$@"'
24199
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24202
DUALCASE=1; export DUALCASE # for MKS sh
24204
# Support unset when possible.
24205
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24212
# Work around bugs in pre-3.0 UWIN ksh.
24213
$as_unset ENV MAIL MAILPATH
24220
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24221
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24222
LC_TELEPHONE LC_TIME
24224
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24225
eval $as_var=C; export $as_var
24231
# Required to use basename.
24232
if expr a : '\(a\)' >/dev/null 2>&1; then
24238
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24239
as_basename=basename
24245
# Name of the executable.
24246
as_me=`$as_basename "$0" ||
24247
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24248
X"$0" : 'X\(//\)$' \| \
24249
X"$0" : 'X\(/\)$' \| \
24250
. : '\(.\)' 2>/dev/null ||
24252
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24253
/^X\/\(\/\/\)$/{ s//\1/; q; }
24254
/^X\/\(\/\).*/{ s//\1/; q; }
24258
# PATH needs CR, and LINENO needs CR and PATH.
24259
# Avoid depending upon Character Ranges.
24260
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24261
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24262
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24263
as_cr_digits='0123456789'
24264
as_cr_alnum=$as_cr_Letters$as_cr_digits
24266
# The user is always right.
24267
if test "${PATH_SEPARATOR+set}" != set; then
24268
echo "#! /bin/sh" >conf$$.sh
24269
echo "exit 0" >>conf$$.sh
24271
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24280
as_lineno_1=$LINENO
24281
as_lineno_2=$LINENO
24282
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24283
test "x$as_lineno_1" != "x$as_lineno_2" &&
24284
test "x$as_lineno_3" = "x$as_lineno_2" || {
24285
# Find who we are. Look in the path if we contain no path at all
24288
*[\\/]* ) as_myself=$0 ;;
24289
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24290
for as_dir in $PATH
24293
test -z "$as_dir" && as_dir=.
24294
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24299
# We did not find ourselves, most probably we were run as `sh COMMAND'
24300
# in which case we are not to be found in the path.
24301
if test "x$as_myself" = x; then
24304
if test ! -f "$as_myself"; then
24305
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24306
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24307
{ (exit 1); exit 1; }; }
24309
case $CONFIG_SHELL in
24311
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24312
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24315
test -z "$as_dir" && as_dir=.
24316
for as_base in sh bash ksh sh5; do
24319
if ("$as_dir/$as_base" -c '
24320
as_lineno_1=$LINENO
24321
as_lineno_2=$LINENO
24322
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24323
test "x$as_lineno_1" != "x$as_lineno_2" &&
24324
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24325
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24326
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24327
CONFIG_SHELL=$as_dir/$as_base
24328
export CONFIG_SHELL
24329
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24337
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24338
# uniformly replaced by the line number. The first 'sed' inserts a
24339
# line-number line before each line; the second 'sed' does the real
24340
# work. The second script uses 'N' to pair each line-number line
24341
# with the numbered line, and appends trailing '-' during
24342
# substitution so that $LINENO is not a special case at line end.
24343
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24344
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24345
sed '=' <$as_myself |
24350
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24353
s,^['$as_cr_digits']*\n,,
24354
' >$as_me.lineno &&
24355
chmod +x $as_me.lineno ||
24356
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24357
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24358
{ (exit 1); exit 1; }; }
24360
# Don't try to exec as it changes $[0], causing all sort of problems
24361
# (the dirname of $[0] is not the place where we might find the
24362
# original and so on. Autoconf is especially sensible to this).
24364
# Exit status is that of the last command.
24369
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24370
*c*,-n*) ECHO_N= ECHO_C='
24372
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24373
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24376
if expr a : '\(a\)' >/dev/null 2>&1; then
24382
rm -f conf$$ conf$$.exe conf$$.file
24384
if ln -s conf$$.file conf$$ 2>/dev/null; then
24385
# We could just check for DJGPP; but this test a) works b) is more generic
24386
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24387
if test -f conf$$.exe; then
24388
# Don't use ln at all; we don't have any links
24393
elif ln conf$$.file conf$$ 2>/dev/null; then
24398
rm -f conf$$ conf$$.exe conf$$.file
24400
if mkdir -p . 2>/dev/null; then
24403
test -d ./-p && rmdir ./-p
24407
as_executable_p="test -f"
24409
# Sed expression to map a string onto a valid CPP name.
24410
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24412
# Sed expression to map a string onto a valid variable name.
24413
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24417
# We need space, tab and new line, in precisely that order.
24427
# Open the log real soon, to keep \$[0] and so on meaningful, and to
24428
# report actual input values of CONFIG_FILES etc. instead of their
24429
# values after options handling. Logging --version etc. is OK.
24433
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24434
## Running $as_me. ##
24439
This file was extended by $as_me, which was
24440
generated by GNU Autoconf 2.59. Invocation command line was
24442
CONFIG_FILES = $CONFIG_FILES
24443
CONFIG_HEADERS = $CONFIG_HEADERS
24444
CONFIG_LINKS = $CONFIG_LINKS
24445
CONFIG_COMMANDS = $CONFIG_COMMANDS
24449
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24453
# Files that config.status was made for.
24454
if test -n "$ac_config_files"; then
24455
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24458
if test -n "$ac_config_headers"; then
24459
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24462
if test -n "$ac_config_links"; then
24463
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24466
if test -n "$ac_config_commands"; then
24467
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24470
cat >>$CONFIG_STATUS <<\_ACEOF
24473
\`$as_me' instantiates files from templates according to the
24474
current configuration.
24476
Usage: $0 [OPTIONS] [FILE]...
24478
-h, --help print this help, then exit
24479
-V, --version print version number, then exit
24480
-q, --quiet do not print progress messages
24481
-d, --debug don't remove temporary files
24482
--recheck update $as_me by reconfiguring in the same conditions
24483
--file=FILE[:TEMPLATE]
24484
instantiate the configuration file FILE
24485
--header=FILE[:TEMPLATE]
24486
instantiate the configuration header FILE
24488
Configuration files:
24491
Configuration headers:
24494
Configuration commands:
24497
Report bugs to <bug-autoconf@gnu.org>."
24500
cat >>$CONFIG_STATUS <<_ACEOF
24503
configured by $0, generated by GNU Autoconf 2.59,
24504
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24506
Copyright (C) 2003 Free Software Foundation, Inc.
24507
This config.status script is free software; the Free Software Foundation
24508
gives unlimited permission to copy, distribute and modify it."
24513
cat >>$CONFIG_STATUS <<\_ACEOF
24514
# If no file are specified by the user, then we need to provide default
24515
# value. By we need to know if files were specified by the user.
24521
ac_option=`expr "x$1" : 'x\([^=]*\)='`
24522
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24530
*) # This is not an option, so the user has probably given explicit
24533
ac_need_defaults=false;;
24537
# Handling of the options.
24539
cat >>$CONFIG_STATUS <<\_ACEOF
24540
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24542
--version | --vers* | -V )
24543
echo "$ac_cs_version"; exit 0 ;;
24545
# Conflict between --help and --header
24546
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
24547
Try \`$0 --help' for more information." >&5
24548
echo "$as_me: error: ambiguous option: $1
24549
Try \`$0 --help' for more information." >&2;}
24550
{ (exit 1); exit 1; }; };;
24551
--help | --hel | -h )
24552
echo "$ac_cs_usage"; exit 0 ;;
24553
--debug | --d* | -d )
24555
--file | --fil | --fi | --f )
24557
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24558
ac_need_defaults=false;;
24559
--header | --heade | --head | --hea )
24561
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24562
ac_need_defaults=false;;
24563
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
24564
| -silent | --silent | --silen | --sile | --sil | --si | --s)
24567
# This is an error.
24568
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24569
Try \`$0 --help' for more information." >&5
24570
echo "$as_me: error: unrecognized option: $1
24571
Try \`$0 --help' for more information." >&2;}
24572
{ (exit 1); exit 1; }; } ;;
24574
*) ac_config_targets="$ac_config_targets $1" ;;
24580
ac_configure_extra_args=
24582
if $ac_cs_silent; then
24584
ac_configure_extra_args="$ac_configure_extra_args --silent"
24588
cat >>$CONFIG_STATUS <<_ACEOF
24589
if \$ac_cs_recheck; then
24590
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24591
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24596
cat >>$CONFIG_STATUS <<_ACEOF
24598
# INIT-COMMANDS section.
24601
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24602
INTLTOOL_PERL=${INTLTOOL_PERL} ac_aux_dir=${ac_aux_dir}
24609
cat >>$CONFIG_STATUS <<\_ACEOF
24610
for ac_config_target in $ac_config_targets
24612
case "$ac_config_target" in
24613
# Handling of arguments.
24614
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24615
"po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
24616
"pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;;
24617
"debian/Makefile" ) CONFIG_FILES="$CONFIG_FILES debian/Makefile" ;;
24618
"ipkg/Makefile" ) CONFIG_FILES="$CONFIG_FILES ipkg/Makefile" ;;
24619
"ipkg/linphone.control" ) CONFIG_FILES="$CONFIG_FILES ipkg/linphone.control" ;;
24620
"support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
24621
"mediastreamer/Makefile" ) CONFIG_FILES="$CONFIG_FILES mediastreamer/Makefile" ;;
24622
"media_api/Makefile" ) CONFIG_FILES="$CONFIG_FILES media_api/Makefile" ;;
24623
"osipua/Makefile" ) CONFIG_FILES="$CONFIG_FILES osipua/Makefile" ;;
24624
"gsmlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gsmlib/Makefile" ;;
24625
"lpc10-1.5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lpc10-1.5/Makefile" ;;
24626
"coreapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES coreapi/Makefile" ;;
24627
"gnome/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnome/Makefile" ;;
24628
"console/Makefile" ) CONFIG_FILES="$CONFIG_FILES console/Makefile" ;;
24629
"share/Makefile" ) CONFIG_FILES="$CONFIG_FILES share/Makefile" ;;
24630
"share/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES share/C/Makefile" ;;
24631
"share/fr/Makefile" ) CONFIG_FILES="$CONFIG_FILES share/fr/Makefile" ;;
24632
"share/it/Makefile" ) CONFIG_FILES="$CONFIG_FILES share/it/Makefile" ;;
24633
"share/ja/Makefile" ) CONFIG_FILES="$CONFIG_FILES share/ja/Makefile" ;;
24634
"share/linphone.pc" ) CONFIG_FILES="$CONFIG_FILES share/linphone.pc" ;;
24635
"developer-docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES developer-docs/Makefile" ;;
24636
"developer-docs/mediastreamer/Makefile" ) CONFIG_FILES="$CONFIG_FILES developer-docs/mediastreamer/Makefile" ;;
24637
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24638
"default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
24639
"default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
24640
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24641
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24642
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24643
{ (exit 1); exit 1; }; };;
24647
# If the user did not use the arguments to specify the items to instantiate,
24648
# then the envvar interface is used. Set only those that are not.
24649
# We use the long form for the default assignment because of an extremely
24650
# bizarre bug on SunOS 4.1.3.
24651
if $ac_need_defaults; then
24652
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24653
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24654
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24657
# Have a temporary directory for convenience. Make it in the build tree
24658
# simply because there is no reason to put it here, and in addition,
24659
# creating and moving files from /tmp can sometimes cause problems.
24660
# Create a temporary directory, and hook for its removal unless debugging.
24663
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24664
trap '{ (exit 1); exit 1; }' 1 2 13 15
24667
# Create a (secure) tmp directory for tmp files.
24670
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24671
test -n "$tmp" && test -d "$tmp"
24674
tmp=./confstat$$-$RANDOM
24675
(umask 077 && mkdir $tmp)
24678
echo "$me: cannot create a temporary directory in ." >&2
24679
{ (exit 1); exit 1; }
24684
cat >>$CONFIG_STATUS <<_ACEOF
24687
# CONFIG_FILES section.
24690
# No need to generate the scripts if there are no CONFIG_FILES.
24691
# This happens for instance when ./config.status config.h
24692
if test -n "\$CONFIG_FILES"; then
24693
# Protect against being on the right side of a sed subst in config.status.
24694
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24695
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24696
s,@SHELL@,$SHELL,;t t
24697
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24698
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24699
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24700
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24701
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24702
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24703
s,@exec_prefix@,$exec_prefix,;t t
24704
s,@prefix@,$prefix,;t t
24705
s,@program_transform_name@,$program_transform_name,;t t
24706
s,@bindir@,$bindir,;t t
24707
s,@sbindir@,$sbindir,;t t
24708
s,@libexecdir@,$libexecdir,;t t
24709
s,@datadir@,$datadir,;t t
24710
s,@sysconfdir@,$sysconfdir,;t t
24711
s,@sharedstatedir@,$sharedstatedir,;t t
24712
s,@localstatedir@,$localstatedir,;t t
24713
s,@libdir@,$libdir,;t t
24714
s,@includedir@,$includedir,;t t
24715
s,@oldincludedir@,$oldincludedir,;t t
24716
s,@infodir@,$infodir,;t t
24717
s,@mandir@,$mandir,;t t
24718
s,@build_alias@,$build_alias,;t t
24719
s,@host_alias@,$host_alias,;t t
24720
s,@target_alias@,$target_alias,;t t
24721
s,@DEFS@,$DEFS,;t t
24722
s,@ECHO_C@,$ECHO_C,;t t
24723
s,@ECHO_N@,$ECHO_N,;t t
24724
s,@ECHO_T@,$ECHO_T,;t t
24725
s,@LIBS@,$LIBS,;t t
24726
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24727
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24728
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24729
s,@PACKAGE@,$PACKAGE,;t t
24730
s,@VERSION@,$VERSION,;t t
24731
s,@ACLOCAL@,$ACLOCAL,;t t
24732
s,@AUTOCONF@,$AUTOCONF,;t t
24733
s,@AUTOMAKE@,$AUTOMAKE,;t t
24734
s,@AUTOHEADER@,$AUTOHEADER,;t t
24735
s,@MAKEINFO@,$MAKEINFO,;t t
24736
s,@AMTAR@,$AMTAR,;t t
24737
s,@install_sh@,$install_sh,;t t
24738
s,@STRIP@,$STRIP,;t t
24739
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24740
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24742
s,@SET_MAKE@,$SET_MAKE,;t t
24744
s,@CFLAGS@,$CFLAGS,;t t
24745
s,@LDFLAGS@,$LDFLAGS,;t t
24746
s,@CPPFLAGS@,$CPPFLAGS,;t t
24747
s,@ac_ct_CC@,$ac_ct_CC,;t t
24748
s,@EXEEXT@,$EXEEXT,;t t
24749
s,@OBJEXT@,$OBJEXT,;t t
24750
s,@DEPDIR@,$DEPDIR,;t t
24751
s,@am__include@,$am__include,;t t
24752
s,@am__quote@,$am__quote,;t t
24753
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24754
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24755
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24756
s,@CCDEPMODE@,$CCDEPMODE,;t t
24758
s,@EGREP@,$EGREP,;t t
24759
s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
24760
s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
24761
s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
24762
s,@INTLTOOL_PROP_RULE@,$INTLTOOL_PROP_RULE,;t t
24763
s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
24764
s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
24765
s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
24766
s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
24767
s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
24768
s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
24769
s,@INTLTOOL_XAM_RULE@,$INTLTOOL_XAM_RULE,;t t
24770
s,@INTLTOOL_KBD_RULE@,$INTLTOOL_KBD_RULE,;t t
24771
s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
24772
s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
24773
s,@INTLTOOL_SCHEMAS_RULE@,$INTLTOOL_SCHEMAS_RULE,;t t
24774
s,@INTLTOOL_THEME_RULE@,$INTLTOOL_THEME_RULE,;t t
24775
s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
24776
s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
24777
s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
24778
s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
24779
s,@build@,$build,;t t
24780
s,@build_cpu@,$build_cpu,;t t
24781
s,@build_vendor@,$build_vendor,;t t
24782
s,@build_os@,$build_os,;t t
24783
s,@host@,$host,;t t
24784
s,@host_cpu@,$host_cpu,;t t
24785
s,@host_vendor@,$host_vendor,;t t
24786
s,@host_os@,$host_os,;t t
24787
s,@LN_S@,$LN_S,;t t
24788
s,@ECHO@,$ECHO,;t t
24790
s,@ac_ct_AR@,$ac_ct_AR,;t t
24791
s,@RANLIB@,$RANLIB,;t t
24792
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24794
s,@CXXFLAGS@,$CXXFLAGS,;t t
24795
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24796
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24797
s,@CXXCPP@,$CXXCPP,;t t
24799
s,@FFLAGS@,$FFLAGS,;t t
24800
s,@ac_ct_F77@,$ac_ct_F77,;t t
24801
s,@LIBTOOL@,$LIBTOOL,;t t
24802
s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
24803
s,@USE_NLS@,$USE_NLS,;t t
24804
s,@MSGFMT@,$MSGFMT,;t t
24805
s,@GMSGFMT@,$GMSGFMT,;t t
24806
s,@XGETTEXT@,$XGETTEXT,;t t
24807
s,@CATALOGS@,$CATALOGS,;t t
24808
s,@CATOBJEXT@,$CATOBJEXT,;t t
24809
s,@DATADIRNAME@,$DATADIRNAME,;t t
24810
s,@GMOFILES@,$GMOFILES,;t t
24811
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
24812
s,@INTLLIBS@,$INTLLIBS,;t t
24813
s,@PO_IN_DATADIR_TRUE@,$PO_IN_DATADIR_TRUE,;t t
24814
s,@PO_IN_DATADIR_FALSE@,$PO_IN_DATADIR_FALSE,;t t
24815
s,@POFILES@,$POFILES,;t t
24816
s,@POSUB@,$POSUB,;t t
24817
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
24818
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
24819
s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
24820
s,@GLIB_LIBS@,$GLIB_LIBS,;t t
24821
s,@GLIB_GENMARSHAL@,$GLIB_GENMARSHAL,;t t
24822
s,@GOBJECT_QUERY@,$GOBJECT_QUERY,;t t
24823
s,@GLIB_MKENUMS@,$GLIB_MKENUMS,;t t
24824
s,@LIBGNOMEUI_CFLAGS@,$LIBGNOMEUI_CFLAGS,;t t
24825
s,@LIBGNOMEUI_LIBS@,$LIBGNOMEUI_LIBS,;t t
24826
s,@LIBGNOME_CFLAGS@,$LIBGNOME_CFLAGS,;t t
24827
s,@LIBGNOME_LIBS@,$LIBGNOME_LIBS,;t t
24828
s,@GNOME_APPLETS_CFLAGS@,$GNOME_APPLETS_CFLAGS,;t t
24829
s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
24830
s,@PTHREAD_LDFLAGS@,$PTHREAD_LDFLAGS,;t t
24831
s,@GSMLIB_CFLAGS@,$GSMLIB_CFLAGS,;t t
24832
s,@osip_prefix@,$osip_prefix,;t t
24833
s,@IPV6_CFLAGS@,$IPV6_CFLAGS,;t t
24834
s,@TRUESPEECH_CFLAGS@,$TRUESPEECH_CFLAGS,;t t
24835
s,@BUILD_TRUESPEECH_TRUE@,$BUILD_TRUESPEECH_TRUE,;t t
24836
s,@BUILD_TRUESPEECH_FALSE@,$BUILD_TRUESPEECH_FALSE,;t t
24837
s,@SPEEX_CFLAGS@,$SPEEX_CFLAGS,;t t
24838
s,@SPEEX_LIBS@,$SPEEX_LIBS,;t t
24839
s,@NASM@,$NASM,;t t
24840
s,@AVCODEC_LIBS@,$AVCODEC_LIBS,;t t
24841
s,@GDK_CFLAGS@,$GDK_CFLAGS,;t t
24842
s,@GDK_LIBS@,$GDK_LIBS,;t t
24843
s,@BUILD_MEDIASTREAMER_TRUE@,$BUILD_MEDIASTREAMER_TRUE,;t t
24844
s,@BUILD_MEDIASTREAMER_FALSE@,$BUILD_MEDIASTREAMER_FALSE,;t t
24845
s,@HAVE_XINELIB_TRUE@,$HAVE_XINELIB_TRUE,;t t
24846
s,@HAVE_XINELIB_FALSE@,$HAVE_XINELIB_FALSE,;t t
24847
s,@HAVE_SMPEG_TRUE@,$HAVE_SMPEG_TRUE,;t t
24848
s,@HAVE_SMPEG_FALSE@,$HAVE_SMPEG_FALSE,;t t
24849
s,@BUILD_FFMPEG_TRUE@,$BUILD_FFMPEG_TRUE,;t t
24850
s,@BUILD_FFMPEG_FALSE@,$BUILD_FFMPEG_FALSE,;t t
24851
s,@BUILD_GDK_VO_TRUE@,$BUILD_GDK_VO_TRUE,;t t
24852
s,@BUILD_GDK_VO_FALSE@,$BUILD_GDK_VO_FALSE,;t t
24853
s,@BUILD_V4L_TRUE@,$BUILD_V4L_TRUE,;t t
24854
s,@BUILD_V4L_FALSE@,$BUILD_V4L_FALSE,;t t
24855
s,@BUILD_MEDIA_API_TRUE@,$BUILD_MEDIA_API_TRUE,;t t
24856
s,@BUILD_MEDIA_API_FALSE@,$BUILD_MEDIA_API_FALSE,;t t
24857
s,@BUILD_UGLIB_TRUE@,$BUILD_UGLIB_TRUE,;t t
24858
s,@BUILD_UGLIB_FALSE@,$BUILD_UGLIB_FALSE,;t t
24859
s,@BUILD_GNOME_TRUE@,$BUILD_GNOME_TRUE,;t t
24860
s,@BUILD_GNOME_FALSE@,$BUILD_GNOME_FALSE,;t t
24861
s,@BUILD_GNOME_APPLET_TRUE@,$BUILD_GNOME_APPLET_TRUE,;t t
24862
s,@BUILD_GNOME_APPLET_FALSE@,$BUILD_GNOME_APPLET_FALSE,;t t
24863
s,@BUILD_SPEEX_TRUE@,$BUILD_SPEEX_TRUE,;t t
24864
s,@BUILD_SPEEX_FALSE@,$BUILD_SPEEX_FALSE,;t t
24865
s,@ALSA_LIBS@,$ALSA_LIBS,;t t
24866
s,@subdirs@,$subdirs,;t t
24867
s,@HTML_DIR@,$HTML_DIR,;t t
24868
s,@GTK_DOC_CFLAGS@,$GTK_DOC_CFLAGS,;t t
24869
s,@GTK_DOC_LIBS@,$GTK_DOC_LIBS,;t t
24870
s,@ENABLE_GTK_DOC_TRUE@,$ENABLE_GTK_DOC_TRUE,;t t
24871
s,@ENABLE_GTK_DOC_FALSE@,$ENABLE_GTK_DOC_FALSE,;t t
24872
s,@LINPHONE_CFLAGS@,$LINPHONE_CFLAGS,;t t
24873
s,@LINPHONE_LIBS@,$LINPHONE_LIBS,;t t
24874
s,@SUPPORTLIB@,$SUPPORTLIB,;t t
24875
s,@LIBOBJS@,$LIBOBJS,;t t
24876
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24881
cat >>$CONFIG_STATUS <<\_ACEOF
24882
# Split the substitutions into bite-sized pieces for seds with
24883
# small command number limits, like on Digital OSF/1 and HP-UX.
24884
ac_max_sed_lines=48
24885
ac_sed_frag=1 # Number of current file.
24886
ac_beg=1 # First line for current file.
24887
ac_end=$ac_max_sed_lines # Line after last line for current file.
24890
while $ac_more_lines; do
24891
if test $ac_beg -gt 1; then
24892
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24894
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24896
if test ! -s $tmp/subs.frag; then
24897
ac_more_lines=false
24899
# The purpose of the label and of the branching condition is to
24900
# speed up the sed processing (if there are no `@' at all, there
24901
# is no need to browse any of the substitutions).
24902
# These are the two extra sed commands mentioned above.
24904
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24905
if test -z "$ac_sed_cmds"; then
24906
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24908
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24910
ac_sed_frag=`expr $ac_sed_frag + 1`
24912
ac_end=`expr $ac_end + $ac_max_sed_lines`
24915
if test -z "$ac_sed_cmds"; then
24918
fi # test -n "$CONFIG_FILES"
24921
cat >>$CONFIG_STATUS <<\_ACEOF
24922
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24923
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24925
- | *:- | *:-:* ) # input from stdin
24927
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24928
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24929
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24930
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24931
* ) ac_file_in=$ac_file.in ;;
24934
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24935
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24936
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24937
X"$ac_file" : 'X\(//\)[^/]' \| \
24938
X"$ac_file" : 'X\(//\)$' \| \
24939
X"$ac_file" : 'X\(/\)' \| \
24940
. : '\(.\)' 2>/dev/null ||
24942
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24943
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24944
/^X\(\/\/\)$/{ s//\1/; q; }
24945
/^X\(\/\).*/{ s//\1/; q; }
24947
{ if $as_mkdir_p; then
24952
while test ! -d "$as_dir"; do
24953
as_dirs="$as_dir $as_dirs"
24954
as_dir=`(dirname "$as_dir") 2>/dev/null ||
24955
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24956
X"$as_dir" : 'X\(//\)[^/]' \| \
24957
X"$as_dir" : 'X\(//\)$' \| \
24958
X"$as_dir" : 'X\(/\)' \| \
24959
. : '\(.\)' 2>/dev/null ||
24961
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24962
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24963
/^X\(\/\/\)$/{ s//\1/; q; }
24964
/^X\(\/\).*/{ s//\1/; q; }
24967
test ! -n "$as_dirs" || mkdir $as_dirs
24968
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24969
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24970
{ (exit 1); exit 1; }; }; }
24974
if test "$ac_dir" != .; then
24975
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24976
# A "../" for each directory in $ac_dir_suffix.
24977
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24979
ac_dir_suffix= ac_top_builddir=
24983
.) # No --srcdir option. We are building in place.
24985
if test -z "$ac_top_builddir"; then
24988
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24990
[\\/]* | ?:[\\/]* ) # Absolute path.
24991
ac_srcdir=$srcdir$ac_dir_suffix;
24992
ac_top_srcdir=$srcdir ;;
24993
*) # Relative path.
24994
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24995
ac_top_srcdir=$ac_top_builddir$srcdir ;;
24998
# Do not use `cd foo && pwd` to compute absolute paths, because
24999
# the directories may not exist.
25001
.) ac_abs_builddir="$ac_dir";;
25004
.) ac_abs_builddir=`pwd`;;
25005
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25006
*) ac_abs_builddir=`pwd`/"$ac_dir";;
25009
case $ac_abs_builddir in
25010
.) ac_abs_top_builddir=${ac_top_builddir}.;;
25012
case ${ac_top_builddir}. in
25013
.) ac_abs_top_builddir=$ac_abs_builddir;;
25014
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25015
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25018
case $ac_abs_builddir in
25019
.) ac_abs_srcdir=$ac_srcdir;;
25022
.) ac_abs_srcdir=$ac_abs_builddir;;
25023
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25024
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25027
case $ac_abs_builddir in
25028
.) ac_abs_top_srcdir=$ac_top_srcdir;;
25030
case $ac_top_srcdir in
25031
.) ac_abs_top_srcdir=$ac_abs_builddir;;
25032
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25033
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25039
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25040
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25043
# Let's still pretend it is `configure' which instantiates (i.e., don't
25044
# use $as_me), people would be surprised to read:
25045
# /* config.h. Generated by config.status. */
25046
if test x"$ac_file" = x-; then
25049
configure_input="$ac_file. "
25051
configure_input=$configure_input"Generated from `echo $ac_file_in |
25052
sed 's,.*/,,'` by configure."
25054
# First look for the input files in the build tree, otherwise in the
25056
ac_file_inputs=`IFS=:
25057
for f in $ac_file_in; do
25059
-) echo $tmp/stdin ;;
25061
# Absolute (can't be DOS-style, as IFS=:)
25062
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25063
echo "$as_me: error: cannot find input file: $f" >&2;}
25064
{ (exit 1); exit 1; }; }
25067
if test -f "$f"; then
25070
elif test -f "$srcdir/$f"; then
25075
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25076
echo "$as_me: error: cannot find input file: $f" >&2;}
25077
{ (exit 1); exit 1; }; }
25080
done` || { (exit 1); exit 1; }
25082
if test x"$ac_file" != x-; then
25083
{ echo "$as_me:$LINENO: creating $ac_file" >&5
25084
echo "$as_me: creating $ac_file" >&6;}
25088
cat >>$CONFIG_STATUS <<_ACEOF
25092
cat >>$CONFIG_STATUS <<\_ACEOF
25094
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25095
s,@configure_input@,$configure_input,;t t
25096
s,@srcdir@,$ac_srcdir,;t t
25097
s,@abs_srcdir@,$ac_abs_srcdir,;t t
25098
s,@top_srcdir@,$ac_top_srcdir,;t t
25099
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25100
s,@builddir@,$ac_builddir,;t t
25101
s,@abs_builddir@,$ac_abs_builddir,;t t
25102
s,@top_builddir@,$ac_top_builddir,;t t
25103
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25104
s,@INSTALL@,$ac_INSTALL,;t t
25105
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25107
if test x"$ac_file" != x-; then
25108
mv $tmp/out $ac_file
25116
cat >>$CONFIG_STATUS <<\_ACEOF
25119
# CONFIG_HEADER section.
25122
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25123
# NAME is the cpp macro being defined and VALUE is the value it is being given.
25125
# ac_d sets the value in "#define NAME VALUE" lines.
25126
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25127
ac_dB='[ ].*$,\1#\2'
25130
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25131
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25132
ac_uB='$,\1#\2define\3'
25136
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25137
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25139
- | *:- | *:-:* ) # input from stdin
25141
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25142
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25143
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25144
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25145
* ) ac_file_in=$ac_file.in ;;
25148
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25149
echo "$as_me: creating $ac_file" >&6;}
25151
# First look for the input files in the build tree, otherwise in the
25153
ac_file_inputs=`IFS=:
25154
for f in $ac_file_in; do
25156
-) echo $tmp/stdin ;;
25158
# Absolute (can't be DOS-style, as IFS=:)
25159
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25160
echo "$as_me: error: cannot find input file: $f" >&2;}
25161
{ (exit 1); exit 1; }; }
25162
# Do quote $f, to prevent DOS paths from being IFS'd.
25165
if test -f "$f"; then
25168
elif test -f "$srcdir/$f"; then
25173
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25174
echo "$as_me: error: cannot find input file: $f" >&2;}
25175
{ (exit 1); exit 1; }; }
25178
done` || { (exit 1); exit 1; }
25179
# Remove the trailing spaces.
25180
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25184
# Transform confdefs.h into two sed scripts, `conftest.defines' and
25185
# `conftest.undefs', that substitutes the proper values into
25186
# config.h.in to produce config.h. The first handles `#define'
25187
# templates, and the second `#undef' templates.
25188
# And first: Protect against being on the right side of a sed subst in
25189
# config.status. Protect against being in an unquoted here document
25190
# in config.status.
25191
rm -f conftest.defines conftest.undefs
25192
# Using a here document instead of a string reduces the quoting nightmare.
25193
# Putting comments in sed scripts is not portable.
25195
# `end' is used to avoid that the second main sed command (meant for
25196
# 0-ary CPP macros) applies to n-ary macro definitions.
25197
# See the Autoconf documentation for `clear'.
25198
cat >confdef2sed.sed <<\_ACEOF
25203
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25205
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25208
# If some macros were called several times there might be several times
25209
# the same #defines, which is useless. Nevertheless, we may not want to
25210
# sort them, since we want the *last* AC-DEFINE to be honored.
25211
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25212
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25213
rm -f confdef2sed.sed
25215
# This sed command replaces #undef with comments. This is necessary, for
25216
# example, in the case of _POSIX_SOURCE, which is predefined and required
25217
# on some systems where configure will not decide to define it.
25218
cat >>conftest.undefs <<\_ACEOF
25219
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25222
# Break up conftest.defines because some shells have a limit on the size
25223
# of here documents, and old seds have small limits too (100 cmds).
25224
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25225
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25226
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25227
echo ' :' >>$CONFIG_STATUS
25228
rm -f conftest.tail
25229
while grep . conftest.defines >/dev/null
25231
# Write a limited-size here document to $tmp/defines.sed.
25232
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25233
# Speed up: don't consider the non `#define' lines.
25234
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25235
# Work around the forget-to-reset-the-flag bug.
25236
echo 't clr' >>$CONFIG_STATUS
25237
echo ': clr' >>$CONFIG_STATUS
25238
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25240
sed -f $tmp/defines.sed $tmp/in >$tmp/out
25242
mv $tmp/out $tmp/in
25244
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25245
rm -f conftest.defines
25246
mv conftest.tail conftest.defines
25248
rm -f conftest.defines
25249
echo ' fi # grep' >>$CONFIG_STATUS
25250
echo >>$CONFIG_STATUS
25252
# Break up conftest.undefs because some shells have a limit on the size
25253
# of here documents, and old seds have small limits too (100 cmds).
25254
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25255
rm -f conftest.tail
25256
while grep . conftest.undefs >/dev/null
25258
# Write a limited-size here document to $tmp/undefs.sed.
25259
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25260
# Speed up: don't consider the non `#undef'
25261
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25262
# Work around the forget-to-reset-the-flag bug.
25263
echo 't clr' >>$CONFIG_STATUS
25264
echo ': clr' >>$CONFIG_STATUS
25265
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25267
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25269
mv $tmp/out $tmp/in
25271
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25272
rm -f conftest.undefs
25273
mv conftest.tail conftest.undefs
25275
rm -f conftest.undefs
25277
cat >>$CONFIG_STATUS <<\_ACEOF
25278
# Let's still pretend it is `configure' which instantiates (i.e., don't
25279
# use $as_me), people would be surprised to read:
25280
# /* config.h. Generated by config.status. */
25281
if test x"$ac_file" = x-; then
25282
echo "/* Generated by configure. */" >$tmp/config.h
25284
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25286
cat $tmp/in >>$tmp/config.h
25288
if test x"$ac_file" != x-; then
25289
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25290
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25291
echo "$as_me: $ac_file is unchanged" >&6;}
25293
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25294
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25295
X"$ac_file" : 'X\(//\)[^/]' \| \
25296
X"$ac_file" : 'X\(//\)$' \| \
25297
X"$ac_file" : 'X\(/\)' \| \
25298
. : '\(.\)' 2>/dev/null ||
25300
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25301
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
25302
/^X\(\/\/\)$/{ s//\1/; q; }
25303
/^X\(\/\).*/{ s//\1/; q; }
25305
{ if $as_mkdir_p; then
25310
while test ! -d "$as_dir"; do
25311
as_dirs="$as_dir $as_dirs"
25312
as_dir=`(dirname "$as_dir") 2>/dev/null ||
25313
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25314
X"$as_dir" : 'X\(//\)[^/]' \| \
25315
X"$as_dir" : 'X\(//\)$' \| \
25316
X"$as_dir" : 'X\(/\)' \| \
25317
. : '\(.\)' 2>/dev/null ||
25319
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25320
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
25321
/^X\(\/\/\)$/{ s//\1/; q; }
25322
/^X\(\/\).*/{ s//\1/; q; }
25325
test ! -n "$as_dirs" || mkdir $as_dirs
25326
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25327
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25328
{ (exit 1); exit 1; }; }; }
25331
mv $tmp/config.h $ac_file
25335
rm -f $tmp/config.h
25337
# Run the commands associated with the file.
25339
config.h ) # update the timestamp
25340
echo 'timestamp for config.h' >"./stamp-h1"
25345
cat >>$CONFIG_STATUS <<\_ACEOF
25348
# CONFIG_COMMANDS section.
25350
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25351
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25352
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25353
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25354
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25355
X"$ac_dest" : 'X\(//\)[^/]' \| \
25356
X"$ac_dest" : 'X\(//\)$' \| \
25357
X"$ac_dest" : 'X\(/\)' \| \
25358
. : '\(.\)' 2>/dev/null ||
25360
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25361
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
25362
/^X\(\/\/\)$/{ s//\1/; q; }
25363
/^X\(\/\).*/{ s//\1/; q; }
25365
{ if $as_mkdir_p; then
25370
while test ! -d "$as_dir"; do
25371
as_dirs="$as_dir $as_dirs"
25372
as_dir=`(dirname "$as_dir") 2>/dev/null ||
25373
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25374
X"$as_dir" : 'X\(//\)[^/]' \| \
25375
X"$as_dir" : 'X\(//\)$' \| \
25376
X"$as_dir" : 'X\(/\)' \| \
25377
. : '\(.\)' 2>/dev/null ||
25379
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25380
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
25381
/^X\(\/\/\)$/{ s//\1/; q; }
25382
/^X\(\/\).*/{ s//\1/; q; }
25385
test ! -n "$as_dirs" || mkdir $as_dirs
25386
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25387
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25388
{ (exit 1); exit 1; }; }; }
25392
if test "$ac_dir" != .; then
25393
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25394
# A "../" for each directory in $ac_dir_suffix.
25395
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25397
ac_dir_suffix= ac_top_builddir=
25401
.) # No --srcdir option. We are building in place.
25403
if test -z "$ac_top_builddir"; then
25406
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25408
[\\/]* | ?:[\\/]* ) # Absolute path.
25409
ac_srcdir=$srcdir$ac_dir_suffix;
25410
ac_top_srcdir=$srcdir ;;
25411
*) # Relative path.
25412
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25413
ac_top_srcdir=$ac_top_builddir$srcdir ;;
25416
# Do not use `cd foo && pwd` to compute absolute paths, because
25417
# the directories may not exist.
25419
.) ac_abs_builddir="$ac_dir";;
25422
.) ac_abs_builddir=`pwd`;;
25423
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25424
*) ac_abs_builddir=`pwd`/"$ac_dir";;
25427
case $ac_abs_builddir in
25428
.) ac_abs_top_builddir=${ac_top_builddir}.;;
25430
case ${ac_top_builddir}. in
25431
.) ac_abs_top_builddir=$ac_abs_builddir;;
25432
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25433
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25436
case $ac_abs_builddir in
25437
.) ac_abs_srcdir=$ac_srcdir;;
25440
.) ac_abs_srcdir=$ac_abs_builddir;;
25441
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25442
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25445
case $ac_abs_builddir in
25446
.) ac_abs_top_srcdir=$ac_top_srcdir;;
25448
case $ac_top_srcdir in
25449
.) ac_abs_top_srcdir=$ac_abs_builddir;;
25450
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25451
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25456
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25457
echo "$as_me: executing $ac_dest commands" >&6;}
25459
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25460
# Strip MF so we end up with the name of the file.
25461
mf=`echo "$mf" | sed -e 's/:.*$//'`
25462
# Check whether this is an Automake generated Makefile or not.
25463
# We used to match only the files named `Makefile.in', but
25464
# some people rename them; so instead we look at the file content.
25465
# Grep'ing the first line is not enough: some people post-process
25466
# each Makefile.in and add a new line on top of each file to say so.
25467
# So let's grep whole file.
25468
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25469
dirpart=`(dirname "$mf") 2>/dev/null ||
25470
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25471
X"$mf" : 'X\(//\)[^/]' \| \
25472
X"$mf" : 'X\(//\)$' \| \
25473
X"$mf" : 'X\(/\)' \| \
25474
. : '\(.\)' 2>/dev/null ||
25476
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25477
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
25478
/^X\(\/\/\)$/{ s//\1/; q; }
25479
/^X\(\/\).*/{ s//\1/; q; }
25484
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
25485
# Extract the definition of DEP_FILES from the Makefile without
25487
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
25488
test -z "$DEPDIR" && continue
25489
# When using ansi2knr, U may be empty or an underscore; expand it
25490
U=`sed -n -e '/^U = / s///p' < "$mf"`
25491
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
25492
# We invoke sed twice because it is the simplest approach to
25493
# changing $(DEPDIR) to its actual value in the expansion.
25494
for file in `sed -n -e '
25495
/^DEP_FILES = .*\\\\$/ {
25504
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
25505
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25506
# Make sure the directory exists.
25507
test -f "$dirpart/$file" && continue
25508
fdir=`(dirname "$file") 2>/dev/null ||
25509
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25510
X"$file" : 'X\(//\)[^/]' \| \
25511
X"$file" : 'X\(//\)$' \| \
25512
X"$file" : 'X\(/\)' \| \
25513
. : '\(.\)' 2>/dev/null ||
25515
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25516
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
25517
/^X\(\/\/\)$/{ s//\1/; q; }
25518
/^X\(\/\).*/{ s//\1/; q; }
25520
{ if $as_mkdir_p; then
25521
mkdir -p $dirpart/$fdir
25523
as_dir=$dirpart/$fdir
25525
while test ! -d "$as_dir"; do
25526
as_dirs="$as_dir $as_dirs"
25527
as_dir=`(dirname "$as_dir") 2>/dev/null ||
25528
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25529
X"$as_dir" : 'X\(//\)[^/]' \| \
25530
X"$as_dir" : 'X\(//\)$' \| \
25531
X"$as_dir" : 'X\(/\)' \| \
25532
. : '\(.\)' 2>/dev/null ||
25534
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25535
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
25536
/^X\(\/\/\)$/{ s//\1/; q; }
25537
/^X\(\/\).*/{ s//\1/; q; }
25540
test ! -n "$as_dirs" || mkdir $as_dirs
25541
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
25542
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
25543
{ (exit 1); exit 1; }; }; }
25545
# echo "creating $dirpart/$file"
25546
echo '# dummy' > "$dirpart/$file"
25552
sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${ac_aux_dir}/intltool-extract.in > intltool-extract.out
25553
if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
25554
rm -f intltool-extract.out
25556
mv -f intltool-extract.out intltool-extract
25558
chmod ugo+x intltool-extract
25559
chmod u+w intltool-extract
25561
sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" \
25562
< ${ac_aux_dir}/intltool-merge.in > intltool-merge.out
25563
if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
25564
rm -f intltool-merge.out
25566
mv -f intltool-merge.out intltool-merge
25568
chmod ugo+x intltool-merge
25569
chmod u+w intltool-merge
25571
sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${ac_aux_dir}/intltool-update.in > intltool-update.out
25572
if cmp -s intltool-update intltool-update.out 2>/dev/null; then
25573
rm -f intltool-update.out
25575
mv -f intltool-update.out intltool-update
25577
chmod ugo+x intltool-update
25578
chmod u+w intltool-update
25581
default-2 ) case "$CONFIG_FILES" in *po/Makefile.in*)
25582
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
25588
cat >>$CONFIG_STATUS <<\_ACEOF
25590
{ (exit 0); exit 0; }
25592
chmod +x $CONFIG_STATUS
25593
ac_clean_files=$ac_clean_files_save
25596
# configure is writing to config.log, and then calls config.status.
25597
# config.status does its own redirection, appending to config.log.
25598
# Unfortunately, on DOS this fails, as config.log is still kept open
25599
# by configure, so config.status won't be able to write to it; its
25600
# output is simply discarded. So we exec the FD to /dev/null,
25601
# effectively closing config.log, so it can be properly (re)opened and
25602
# appended to by config.status. When coming back to configure, we
25603
# need to make the FD available again.
25604
if test "$no_create" != yes; then
25606
ac_config_status_args=
25607
test "$silent" = yes &&
25608
ac_config_status_args="$ac_config_status_args --quiet"
25610
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25612
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
25613
# would make configure fail if this is the last instruction.
25614
$ac_cs_success || { (exit 1); exit 1; }
25618
# CONFIG_SUBDIRS section.
25620
if test "$no_recursion" != yes; then
25622
# Remove --cache-file and --srcdir arguments so they do not pile up.
25623
ac_sub_configure_args=
25625
for ac_arg in $ac_configure_args; do
25626
if test -n "$ac_prev"; then
25631
-cache-file | --cache-file | --cache-fil | --cache-fi \
25632
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25633
ac_prev=cache_file ;;
25634
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25635
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25638
--config-cache | -C)
25640
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25642
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25644
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25646
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25648
*) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25652
# Always prepend --prefix to ensure using the same prefix
25653
# in subdir configurations.
25654
ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25657
for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25659
# Do not complain, so a configure script can configure whichever
25660
# parts of a large source tree are present.
25661
test -d $srcdir/$ac_dir || continue
25663
{ echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25664
echo "$as_me: configuring in $ac_dir" >&6;}
25665
{ if $as_mkdir_p; then
25670
while test ! -d "$as_dir"; do
25671
as_dirs="$as_dir $as_dirs"
25672
as_dir=`(dirname "$as_dir") 2>/dev/null ||
25673
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25674
X"$as_dir" : 'X\(//\)[^/]' \| \
25675
X"$as_dir" : 'X\(//\)$' \| \
25676
X"$as_dir" : 'X\(/\)' \| \
25677
. : '\(.\)' 2>/dev/null ||
25679
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25680
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
25681
/^X\(\/\/\)$/{ s//\1/; q; }
25682
/^X\(\/\).*/{ s//\1/; q; }
25685
test ! -n "$as_dirs" || mkdir $as_dirs
25686
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25687
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25688
{ (exit 1); exit 1; }; }; }
25692
if test "$ac_dir" != .; then
25693
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25694
# A "../" for each directory in $ac_dir_suffix.
25695
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25697
ac_dir_suffix= ac_top_builddir=
25701
.) # No --srcdir option. We are building in place.
25703
if test -z "$ac_top_builddir"; then
25706
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25708
[\\/]* | ?:[\\/]* ) # Absolute path.
25709
ac_srcdir=$srcdir$ac_dir_suffix;
25710
ac_top_srcdir=$srcdir ;;
25711
*) # Relative path.
25712
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25713
ac_top_srcdir=$ac_top_builddir$srcdir ;;
25716
# Do not use `cd foo && pwd` to compute absolute paths, because
25717
# the directories may not exist.
25719
.) ac_abs_builddir="$ac_dir";;
25722
.) ac_abs_builddir=`pwd`;;
25723
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25724
*) ac_abs_builddir=`pwd`/"$ac_dir";;
25727
case $ac_abs_builddir in
25728
.) ac_abs_top_builddir=${ac_top_builddir}.;;
25730
case ${ac_top_builddir}. in
25731
.) ac_abs_top_builddir=$ac_abs_builddir;;
25732
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25733
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25736
case $ac_abs_builddir in
25737
.) ac_abs_srcdir=$ac_srcdir;;
25740
.) ac_abs_srcdir=$ac_abs_builddir;;
25741
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25742
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25745
case $ac_abs_builddir in
25746
.) ac_abs_top_srcdir=$ac_top_srcdir;;
25748
case $ac_top_srcdir in
25749
.) ac_abs_top_srcdir=$ac_abs_builddir;;
25750
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25751
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25758
# Check for guested configure; otherwise get Cygnus style configure.
25759
if test -f $ac_srcdir/configure.gnu; then
25760
ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25761
elif test -f $ac_srcdir/configure; then
25762
ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25763
elif test -f $ac_srcdir/configure.in; then
25764
ac_sub_configure=$ac_configure
25766
{ echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25767
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25771
# The recursion is here.
25772
if test -n "$ac_sub_configure"; then
25773
# Make the cache file name correct relative to the subdirectory.
25774
case $cache_file in
25775
[\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25776
*) # Relative path.
25777
ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25780
{ echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25781
echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25782
# The eval makes quoting arguments work.
25783
eval $ac_sub_configure $ac_sub_configure_args \
25784
--cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25785
{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25786
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25787
{ (exit 1); exit 1; }; }
25795
echo "Linphone build configuration ended."
25796
if test x$gnome_ui = xtrue ; then
25797
if test x$build_gnome_applet = xtrue ; then
25798
echo "* Gnome applet will be compiled."
25800
echo "* Gnome applet will not be compiled due to missing gnome-applet library."
25803
if test "$missing_gnome_libs" = "true" ; then
25804
echo "Libgnome and/or libgnomeui are missing. For that reason the gnome interface cannot be compiled."
25806
if test "$useglib" = "true" ; then
25807
echo "* Compilation of gnome interface is disabled."
25809
echo "* Compilation of gnome interface is disabled because glib support was disabled or glib-2.0 was not found."
25813
echo "* Console interface will be compiled."
25815
echo "Now type 'make' to compile, and then 'make install' as root to install it."