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
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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"
395
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
396
# so uname gets run too.
397
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
ac_default_prefix=/usr/local
405
ac_config_libobj_dir=.
410
SHELL=${CONFIG_SHELL-/bin/sh}
412
# Maximum number of lines to put in a shell here document.
413
# This variable seems obsolete. It should probably be removed, and
414
# only ac_max_sed_lines should be used.
415
: ${ac_max_here_lines=38}
417
# Identity of this package.
424
ac_unique_file="decoder/flump3dec.c"
425
# Factoring default headers for most tests.
426
ac_includes_default="\
429
# include <sys/types.h>
432
# include <sys/stat.h>
443
# if !STDC_HEADERS && HAVE_MEMORY_H
449
# include <strings.h>
452
# include <inttypes.h>
462
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 GST_PLUGIN_VERSION GST_PLUGIN_VERSION_RELEASE GST_PLUGIN_VERSION_MAJOR GST_PLUGIN_VERSION_MINOR GST_PLUGIN_VERSION_MICRO GST_PLUGIN_VERSION_NANO PACKAGE VERSION MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar ACLOCAL_AMFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP LIBTOOL ISODATE PKG_CONFIG VALGRIND_CFLAGS VALGRIND_LIBS GST_GCOV_ENABLED_TRUE GST_GCOV_ENABLED_FALSE BUILD_EXAMPLES_TRUE BUILD_EXAMPLES_FALSE GST_PACKAGE_NAME GST_PACKAGE_ORIGIN HAVE_PKGCONFIG USE_IPP_TRUE USE_IPP_FALSE IPP_LIBS IPP_INCLUDES GST_MAJORMINOR GST_CFLAGS GST_LIBS plugindir PLUGIN_LDFLAGS LIBOBJS LTLIBOBJS'
465
# Initialize some variables set by options.
467
ac_init_version=false
468
# The variables have the same names as the options, with
469
# dashes changed to underlines.
477
program_transform_name=s,x,x,
485
# Installation directory options.
486
# These are left unexpanded so users can "make install exec_prefix=/foo"
487
# and all the variables that are supposed to be based on exec_prefix
488
# by default will actually change.
489
# Use braces instead of parens because sh, perl, etc. also accept them.
490
bindir='${exec_prefix}/bin'
491
sbindir='${exec_prefix}/sbin'
492
libexecdir='${exec_prefix}/libexec'
493
datadir='${prefix}/share'
494
sysconfdir='${prefix}/etc'
495
sharedstatedir='${prefix}/com'
496
localstatedir='${prefix}/var'
497
libdir='${exec_prefix}/lib'
498
includedir='${prefix}/include'
499
oldincludedir='/usr/include'
500
infodir='${prefix}/info'
501
mandir='${prefix}/man'
506
# If the previous option needs an argument, assign it.
507
if test -n "$ac_prev"; then
508
eval "$ac_prev=\$ac_option"
513
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515
# Accept the important Cygnus configure options, so we can diagnose typos.
519
-bindir | --bindir | --bindi | --bind | --bin | --bi)
521
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
524
-build | --build | --buil | --bui | --bu)
525
ac_prev=build_alias ;;
526
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
527
build_alias=$ac_optarg ;;
529
-cache-file | --cache-file | --cache-fil | --cache-fi \
530
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531
ac_prev=cache_file ;;
532
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534
cache_file=$ac_optarg ;;
537
cache_file=config.cache ;;
539
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
541
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
543
datadir=$ac_optarg ;;
545
-disable-* | --disable-*)
546
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547
# Reject names that are not valid shell variable names.
548
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
550
{ (exit 1); exit 1; }; }
551
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552
eval "enable_$ac_feature=no" ;;
554
-enable-* | --enable-*)
555
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556
# Reject names that are not valid shell variable names.
557
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
559
{ (exit 1); exit 1; }; }
560
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
565
eval "enable_$ac_feature='$ac_optarg'" ;;
567
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569
| --exec | --exe | --ex)
570
ac_prev=exec_prefix ;;
571
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573
| --exec=* | --exe=* | --ex=*)
574
exec_prefix=$ac_optarg ;;
576
-gas | --gas | --ga | --g)
577
# Obsolete; use --with-gas.
580
-help | --help | --hel | --he | -h)
582
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583
ac_init_help=recursive ;;
584
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585
ac_init_help=short ;;
587
-host | --host | --hos | --ho)
588
ac_prev=host_alias ;;
589
-host=* | --host=* | --hos=* | --ho=*)
590
host_alias=$ac_optarg ;;
592
-includedir | --includedir | --includedi | --included | --include \
593
| --includ | --inclu | --incl | --inc)
594
ac_prev=includedir ;;
595
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596
| --includ=* | --inclu=* | --incl=* | --inc=*)
597
includedir=$ac_optarg ;;
599
-infodir | --infodir | --infodi | --infod | --info | --inf)
601
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602
infodir=$ac_optarg ;;
604
-libdir | --libdir | --libdi | --libd)
606
-libdir=* | --libdir=* | --libdi=* | --libd=*)
609
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610
| --libexe | --libex | --libe)
611
ac_prev=libexecdir ;;
612
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613
| --libexe=* | --libex=* | --libe=*)
614
libexecdir=$ac_optarg ;;
616
-localstatedir | --localstatedir | --localstatedi | --localstated \
617
| --localstate | --localstat | --localsta | --localst \
618
| --locals | --local | --loca | --loc | --lo)
619
ac_prev=localstatedir ;;
620
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
622
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623
localstatedir=$ac_optarg ;;
625
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
627
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
631
# Obsolete; use --without-fp.
634
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
635
| --no-cr | --no-c | -n)
638
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
639
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
642
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644
| --oldin | --oldi | --old | --ol | --o)
645
ac_prev=oldincludedir ;;
646
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649
oldincludedir=$ac_optarg ;;
651
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
653
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
656
-program-prefix | --program-prefix | --program-prefi | --program-pref \
657
| --program-pre | --program-pr | --program-p)
658
ac_prev=program_prefix ;;
659
-program-prefix=* | --program-prefix=* | --program-prefi=* \
660
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661
program_prefix=$ac_optarg ;;
663
-program-suffix | --program-suffix | --program-suffi | --program-suff \
664
| --program-suf | --program-su | --program-s)
665
ac_prev=program_suffix ;;
666
-program-suffix=* | --program-suffix=* | --program-suffi=* \
667
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668
program_suffix=$ac_optarg ;;
670
-program-transform-name | --program-transform-name \
671
| --program-transform-nam | --program-transform-na \
672
| --program-transform-n | --program-transform- \
673
| --program-transform | --program-transfor \
674
| --program-transfo | --program-transf \
675
| --program-trans | --program-tran \
676
| --progr-tra | --program-tr | --program-t)
677
ac_prev=program_transform_name ;;
678
-program-transform-name=* | --program-transform-name=* \
679
| --program-transform-nam=* | --program-transform-na=* \
680
| --program-transform-n=* | --program-transform-=* \
681
| --program-transform=* | --program-transfor=* \
682
| --program-transfo=* | --program-transf=* \
683
| --program-trans=* | --program-tran=* \
684
| --progr-tra=* | --program-tr=* | --program-t=*)
685
program_transform_name=$ac_optarg ;;
687
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
688
| -silent | --silent | --silen | --sile | --sil)
691
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
693
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
695
sbindir=$ac_optarg ;;
697
-sharedstatedir | --sharedstatedir | --sharedstatedi \
698
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699
| --sharedst | --shareds | --shared | --share | --shar \
701
ac_prev=sharedstatedir ;;
702
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
706
sharedstatedir=$ac_optarg ;;
708
-site | --site | --sit)
710
-site=* | --site=* | --sit=*)
713
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
715
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
718
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719
| --syscon | --sysco | --sysc | --sys | --sy)
720
ac_prev=sysconfdir ;;
721
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723
sysconfdir=$ac_optarg ;;
725
-target | --target | --targe | --targ | --tar | --ta | --t)
726
ac_prev=target_alias ;;
727
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728
target_alias=$ac_optarg ;;
730
-v | -verbose | --verbose | --verbos | --verbo | --verb)
733
-version | --version | --versio | --versi | --vers | -V)
737
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738
# Reject names that are not valid shell variable names.
739
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740
{ echo "$as_me: error: invalid package name: $ac_package" >&2
741
{ (exit 1); exit 1; }; }
742
ac_package=`echo $ac_package| sed 's/-/_/g'`
744
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
747
eval "with_$ac_package='$ac_optarg'" ;;
749
-without-* | --without-*)
750
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751
# Reject names that are not valid shell variable names.
752
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753
{ echo "$as_me: error: invalid package name: $ac_package" >&2
754
{ (exit 1); exit 1; }; }
755
ac_package=`echo $ac_package | sed 's/-/_/g'`
756
eval "with_$ac_package=no" ;;
759
# Obsolete; use --with-x.
762
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763
| --x-incl | --x-inc | --x-in | --x-i)
764
ac_prev=x_includes ;;
765
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767
x_includes=$ac_optarg ;;
769
-x-libraries | --x-libraries | --x-librarie | --x-librari \
770
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771
ac_prev=x_libraries ;;
772
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774
x_libraries=$ac_optarg ;;
776
-*) { echo "$as_me: error: unrecognized option: $ac_option
777
Try \`$0 --help' for more information." >&2
778
{ (exit 1); exit 1; }; }
782
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783
# Reject names that are not valid shell variable names.
784
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786
{ (exit 1); exit 1; }; }
787
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788
eval "$ac_envvar='$ac_optarg'"
792
# FIXME: should be removed in autoconf 3.0.
793
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802
if test -n "$ac_prev"; then
803
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804
{ echo "$as_me: error: missing argument to $ac_option" >&2
805
{ (exit 1); exit 1; }; }
808
# Be sure to have absolute paths.
809
for ac_var in exec_prefix prefix
811
eval ac_val=$`echo $ac_var`
813
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815
{ (exit 1); exit 1; }; };;
819
# Be sure to have absolute paths.
820
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821
localstatedir libdir includedir oldincludedir infodir mandir
823
eval ac_val=$`echo $ac_var`
825
[\\/$]* | ?:[\\/]* ) ;;
826
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827
{ (exit 1); exit 1; }; };;
831
# There might be people who depend on the old broken behavior: `$host'
832
# used to hold the argument of --host etc.
833
# FIXME: To remove some day.
838
# FIXME: To remove some day.
839
if test "x$host_alias" != x; then
840
if test "x$build_alias" = x; then
841
cross_compiling=maybe
842
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843
If a cross compiler is detected then cross compile mode will be used." >&2
844
elif test "x$build_alias" != "x$host_alias"; then
850
test -n "$host_alias" && ac_tool_prefix=$host_alias-
852
test "$silent" = yes && exec 6>/dev/null
855
# Find the source files, if location was not specified.
856
if test -z "$srcdir"; then
857
ac_srcdir_defaulted=yes
858
# Try the directory containing this script, then its parent.
859
ac_confdir=`(dirname "$0") 2>/dev/null ||
860
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861
X"$0" : 'X\(//\)[^/]' \| \
862
X"$0" : 'X\(//\)$' \| \
863
X"$0" : 'X\(/\)' \| \
864
. : '\(.\)' 2>/dev/null ||
866
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
868
/^X\(\/\/\)$/{ s//\1/; q; }
869
/^X\(\/\).*/{ s//\1/; q; }
872
if test ! -r $srcdir/$ac_unique_file; then
876
ac_srcdir_defaulted=no
878
if test ! -r $srcdir/$ac_unique_file; then
879
if test "$ac_srcdir_defaulted" = yes; then
880
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881
{ (exit 1); exit 1; }; }
883
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884
{ (exit 1); exit 1; }; }
887
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889
{ (exit 1); exit 1; }; }
890
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891
ac_env_build_alias_set=${build_alias+set}
892
ac_env_build_alias_value=$build_alias
893
ac_cv_env_build_alias_set=${build_alias+set}
894
ac_cv_env_build_alias_value=$build_alias
895
ac_env_host_alias_set=${host_alias+set}
896
ac_env_host_alias_value=$host_alias
897
ac_cv_env_host_alias_set=${host_alias+set}
898
ac_cv_env_host_alias_value=$host_alias
899
ac_env_target_alias_set=${target_alias+set}
900
ac_env_target_alias_value=$target_alias
901
ac_cv_env_target_alias_set=${target_alias+set}
902
ac_cv_env_target_alias_value=$target_alias
903
ac_env_CC_set=${CC+set}
905
ac_cv_env_CC_set=${CC+set}
906
ac_cv_env_CC_value=$CC
907
ac_env_CFLAGS_set=${CFLAGS+set}
908
ac_env_CFLAGS_value=$CFLAGS
909
ac_cv_env_CFLAGS_set=${CFLAGS+set}
910
ac_cv_env_CFLAGS_value=$CFLAGS
911
ac_env_LDFLAGS_set=${LDFLAGS+set}
912
ac_env_LDFLAGS_value=$LDFLAGS
913
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914
ac_cv_env_LDFLAGS_value=$LDFLAGS
915
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916
ac_env_CPPFLAGS_value=$CPPFLAGS
917
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919
ac_env_CPP_set=${CPP+set}
920
ac_env_CPP_value=$CPP
921
ac_cv_env_CPP_set=${CPP+set}
922
ac_cv_env_CPP_value=$CPP
925
# Report the --help message.
927
if test "$ac_init_help" = "long"; then
928
# Omit some internal or obsolete options to make the list less imposing.
929
# This message is too long to be a string in the A/UX 3.1 sh.
931
\`configure' configures this package to adapt to many kinds of systems.
933
Usage: $0 [OPTION]... [VAR=VALUE]...
935
To assign environment variables (e.g., CC, CFLAGS...), specify them as
936
VAR=VALUE. See below for descriptions of some of the useful variables.
938
Defaults for the options are specified in brackets.
941
-h, --help display this help and exit
942
--help=short display options specific to this package
943
--help=recursive display the short help of all the included packages
944
-V, --version display version information and exit
945
-q, --quiet, --silent do not print \`checking...' messages
946
--cache-file=FILE cache test results in FILE [disabled]
947
-C, --config-cache alias for \`--cache-file=config.cache'
948
-n, --no-create do not create output files
949
--srcdir=DIR find the sources in DIR [configure dir or \`..']
954
Installation directories:
955
--prefix=PREFIX install architecture-independent files in PREFIX
957
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
960
By default, \`make install' will install all the files in
961
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
962
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963
for instance \`--prefix=\$HOME'.
965
For better control, use the options below.
967
Fine tuning of the installation directories:
968
--bindir=DIR user executables [EPREFIX/bin]
969
--sbindir=DIR system admin executables [EPREFIX/sbin]
970
--libexecdir=DIR program executables [EPREFIX/libexec]
971
--datadir=DIR read-only architecture-independent data [PREFIX/share]
972
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
973
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
974
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
975
--libdir=DIR object code libraries [EPREFIX/lib]
976
--includedir=DIR C header files [PREFIX/include]
977
--oldincludedir=DIR C header files for non-gcc [/usr/include]
978
--infodir=DIR info documentation [PREFIX/info]
979
--mandir=DIR man documentation [PREFIX/man]
985
--program-prefix=PREFIX prepend PREFIX to installed program names
986
--program-suffix=SUFFIX append SUFFIX to installed program names
987
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
990
--build=BUILD configure for building on BUILD [guessed]
991
--host=HOST cross-compile to build programs to run on HOST [BUILD]
995
if test -n "$ac_init_help"; then
1000
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1001
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1002
--enable-maintainer-mode enable make rules and dependencies not useful
1003
(and sometimes confusing) to the casual installer
1004
--enable-shared[=PKGS]
1005
build shared libraries [default=yes]
1006
--enable-static[=PKGS]
1007
build static libraries [default=yes]
1008
--enable-fast-install[=PKGS]
1009
optimize for fast installation [default=yes]
1010
--disable-dependency-tracking speeds up one-time build
1011
--enable-dependency-tracking do not reject slow dependency extractors
1012
--disable-libtool-lock avoid locking (might break parallel builds)
1013
--disable-debug disable addition of -g debugging info
1014
--enable-profiling adds -pg to compiler commandline, for profiling
1015
--disable-valgrind disable run-time valgrind detection
1016
--enable-gcov compile with coverage profiling instrumentation (gcc
1018
--disable-examples disable building examples
1019
--enable-profiling Enable profiling support (no|yes)(default=no)
1022
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1023
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1024
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1025
--with-pic try to use only PIC/non-PIC objects [default=use
1027
--with-pkg-config-path colon-separated list of pkg-config(1) dirs
1028
--with-package-name specify package name to use in plugins
1029
--with-package-origin specify package origin URL to use in plugins
1030
--with-ipp Turn on/off use of Intel Programming Primitives
1032
--with-ipp-path manually set location of IPP files, point to the
1033
directory just beneath the directory using the IPP
1036
Some influential environment variables:
1037
CC C compiler command
1038
CFLAGS C compiler flags
1039
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1040
nonstandard directory <lib dir>
1041
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1042
headers in a nonstandard directory <include dir>
1045
Use these variables to override the choices made by `configure' or to help
1046
it to find libraries and programs with nonstandard names/locations.
1051
if test "$ac_init_help" = "recursive"; then
1052
# If there are subdirs, report their specific --help.
1054
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1055
test -d $ac_dir || continue
1058
if test "$ac_dir" != .; then
1059
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1060
# A "../" for each directory in $ac_dir_suffix.
1061
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1063
ac_dir_suffix= ac_top_builddir=
1067
.) # No --srcdir option. We are building in place.
1069
if test -z "$ac_top_builddir"; then
1072
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1074
[\\/]* | ?:[\\/]* ) # Absolute path.
1075
ac_srcdir=$srcdir$ac_dir_suffix;
1076
ac_top_srcdir=$srcdir ;;
1078
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1079
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1082
# Do not use `cd foo && pwd` to compute absolute paths, because
1083
# the directories may not exist.
1085
.) ac_abs_builddir="$ac_dir";;
1088
.) ac_abs_builddir=`pwd`;;
1089
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1090
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1093
case $ac_abs_builddir in
1094
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1096
case ${ac_top_builddir}. in
1097
.) ac_abs_top_builddir=$ac_abs_builddir;;
1098
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1099
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1102
case $ac_abs_builddir in
1103
.) ac_abs_srcdir=$ac_srcdir;;
1106
.) ac_abs_srcdir=$ac_abs_builddir;;
1107
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1108
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1111
case $ac_abs_builddir in
1112
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1114
case $ac_top_srcdir in
1115
.) ac_abs_top_srcdir=$ac_abs_builddir;;
1116
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1117
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1122
# Check for guested configure; otherwise get Cygnus style configure.
1123
if test -f $ac_srcdir/configure.gnu; then
1125
$SHELL $ac_srcdir/configure.gnu --help=recursive
1126
elif test -f $ac_srcdir/configure; then
1128
$SHELL $ac_srcdir/configure --help=recursive
1129
elif test -f $ac_srcdir/configure.ac ||
1130
test -f $ac_srcdir/configure.in; then
1132
$ac_configure --help
1134
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1140
test -n "$ac_init_help" && exit 0
1141
if $ac_init_version; then
1144
Copyright (C) 2003 Free Software Foundation, Inc.
1145
This configure script is free software; the Free Software Foundation
1146
gives unlimited permission to copy, distribute and modify it.
1152
This file contains any messages produced by compilers while
1153
running configure, to aid debugging if configure makes a mistake.
1155
It was created by $as_me, which was
1156
generated by GNU Autoconf 2.59. Invocation command line was
1167
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1168
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1169
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1170
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1171
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1173
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1174
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1176
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1177
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1178
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1179
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1180
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1181
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1182
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1186
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1190
test -z "$as_dir" && as_dir=.
1191
echo "PATH: $as_dir"
1206
# Keep a trace of the command line.
1207
# Strip out --no-create and --no-recursion so they do not pile up.
1208
# Strip out --silent because we don't want to record it for future runs.
1209
# Also quote any args containing shell meta-characters.
1210
# Make two passes to allow for proper duplicate-argument suppression.
1215
ac_must_keep_next=false
1221
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1222
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223
| -silent | --silent | --silen | --sile | --sil)
1225
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1226
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1229
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1231
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1232
if test $ac_must_keep_next = true; then
1233
ac_must_keep_next=false # Got value, back to normal.
1236
*=* | --config-cache | -C | -disable-* | --disable-* \
1237
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1238
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1239
| -with-* | --with-* | -without-* | --without-* | --x)
1240
case "$ac_configure_args0 " in
1241
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1244
-* ) ac_must_keep_next=true ;;
1247
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1248
# Get rid of the leading space.
1254
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1255
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1257
# When interrupted or exit'd, cleanup temporary files, and complete
1258
# config.log. We remove comments because anyway the quotes in there
1259
# would cause problems or look ugly.
1260
# WARNING: Be sure not to use single quotes in there, as some shells,
1261
# such as our DU 5.0 friend, will then `close' the trap.
1262
trap 'exit_status=$?
1263
# Save into config.log some information that might help in debugging.
1268
## ---------------- ##
1269
## Cache variables. ##
1270
## ---------------- ##
1273
# The following way of writing the cache mishandles newlines in values,
1276
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1279
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1280
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1284
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1291
## ----------------- ##
1292
## Output variables. ##
1293
## ----------------- ##
1296
for ac_var in $ac_subst_vars
1298
eval ac_val=$`echo $ac_var`
1299
echo "$ac_var='"'"'$ac_val'"'"'"
1303
if test -n "$ac_subst_files"; then
1310
for ac_var in $ac_subst_files
1312
eval ac_val=$`echo $ac_var`
1313
echo "$ac_var='"'"'$ac_val'"'"'"
1318
if test -s confdefs.h; then
1325
sed "/^$/d" confdefs.h | sort
1328
test "$ac_signal" != 0 &&
1329
echo "$as_me: caught signal $ac_signal"
1330
echo "$as_me: exit $exit_status"
1332
rm -f core *.core &&
1333
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1336
for ac_signal in 1 2 13 15; do
1337
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1341
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1342
rm -rf conftest* confdefs.h
1343
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1346
# Predefined preprocessor variables.
1348
cat >>confdefs.h <<_ACEOF
1349
#define PACKAGE_NAME "$PACKAGE_NAME"
1353
cat >>confdefs.h <<_ACEOF
1354
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1358
cat >>confdefs.h <<_ACEOF
1359
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1363
cat >>confdefs.h <<_ACEOF
1364
#define PACKAGE_STRING "$PACKAGE_STRING"
1368
cat >>confdefs.h <<_ACEOF
1369
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1373
# Let the site file select an alternate cache file if it wants to.
1374
# Prefer explicitly selected file to automatically selected ones.
1375
if test -z "$CONFIG_SITE"; then
1376
if test "x$prefix" != xNONE; then
1377
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1379
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1382
for ac_site_file in $CONFIG_SITE; do
1383
if test -r "$ac_site_file"; then
1384
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1385
echo "$as_me: loading site script $ac_site_file" >&6;}
1386
sed 's/^/| /' "$ac_site_file" >&5
1391
if test -r "$cache_file"; then
1392
# Some versions of bash will fail to source /dev/null (special
1393
# files actually), so we avoid doing that.
1394
if test -f "$cache_file"; then
1395
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1396
echo "$as_me: loading cache $cache_file" >&6;}
1398
[\\/]* | ?:[\\/]* ) . $cache_file;;
1399
*) . ./$cache_file;;
1403
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1404
echo "$as_me: creating cache $cache_file" >&6;}
1408
# Check that the precious variables saved in the cache have kept the same
1410
ac_cache_corrupted=false
1411
for ac_var in `(set) 2>&1 |
1412
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1413
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1414
eval ac_new_set=\$ac_env_${ac_var}_set
1415
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1416
eval ac_new_val="\$ac_env_${ac_var}_value"
1417
case $ac_old_set,$ac_new_set in
1419
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1420
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1421
ac_cache_corrupted=: ;;
1423
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1424
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1425
ac_cache_corrupted=: ;;
1428
if test "x$ac_old_val" != "x$ac_new_val"; then
1429
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1430
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1431
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1432
echo "$as_me: former value: $ac_old_val" >&2;}
1433
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1434
echo "$as_me: current value: $ac_new_val" >&2;}
1435
ac_cache_corrupted=:
1438
# Pass precious variables to config.status.
1439
if test "$ac_new_set" = set; then
1441
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1442
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1443
*) ac_arg=$ac_var=$ac_new_val ;;
1445
case " $ac_configure_args " in
1446
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1447
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1451
if $ac_cache_corrupted; then
1452
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1453
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1454
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1455
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1456
{ (exit 1); exit 1; }; }
1460
ac_cpp='$CPP $CPPFLAGS'
1461
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1462
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1463
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1485
PACKAGE=gst-fluendo-mp3
1486
GST_PLUGIN_VERSION_MAJOR=0
1487
GST_PLUGIN_VERSION_MINOR=10
1488
GST_PLUGIN_VERSION_MICRO=0
1490
GST_PLUGIN_VERSION_NANO=$NANO
1491
if test "x$NANO" = "x" || test "x$NANO" = "x0";
1493
{ echo "$as_me:$LINENO: configuring gst-fluendo-mp3 for release" >&5
1494
echo "$as_me: configuring gst-fluendo-mp3 for release" >&6;}
1496
GST_PLUGIN_VERSION_RELEASE=1
1497
GST_PLUGIN_TRUNK="no"
1499
{ echo "$as_me:$LINENO: configuring gst-fluendo-mp3 for development with nano $NANO" >&5
1500
echo "$as_me: configuring gst-fluendo-mp3 for development with nano $NANO" >&6;}
1501
VERSION=0.10.0.$NANO
1502
GST_PLUGIN_VERSION_RELEASE=`date +%Y%m%d_%H%M%S`
1503
GST_PLUGIN_TRUNK="yes"
1506
GST_PLUGIN_VERSION=$VERSION
1508
cat >>confdefs.h <<_ACEOF
1509
#define GST_PLUGIN_VERSION "$GST_PLUGIN_VERSION"
1514
cat >>confdefs.h <<_ACEOF
1515
#define GST_PLUGIN_VERSION_RELEASE "$GST_PLUGIN_VERSION_RELEASE"
1525
cat >>confdefs.h <<_ACEOF
1526
#define PACKAGE "$PACKAGE"
1531
cat >>confdefs.h <<_ACEOF
1532
#define VERSION "$VERSION"
1538
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1539
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1540
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1541
if test "${enable_maintainer_mode+set}" = set; then
1542
enableval="$enable_maintainer_mode"
1543
USE_MAINTAINER_MODE=$enableval
1545
USE_MAINTAINER_MODE=no
1547
echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1548
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1551
if test $USE_MAINTAINER_MODE = yes; then
1552
MAINTAINER_MODE_TRUE=
1553
MAINTAINER_MODE_FALSE='#'
1555
MAINTAINER_MODE_TRUE='#'
1556
MAINTAINER_MODE_FALSE=
1559
MAINT=$MAINTAINER_MODE_TRUE
1563
am__api_version="1.9"
1565
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1566
if test -f $ac_dir/install-sh; then
1568
ac_install_sh="$ac_aux_dir/install-sh -c"
1570
elif test -f $ac_dir/install.sh; then
1572
ac_install_sh="$ac_aux_dir/install.sh -c"
1574
elif test -f $ac_dir/shtool; then
1576
ac_install_sh="$ac_aux_dir/shtool install -c"
1580
if test -z "$ac_aux_dir"; then
1581
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1582
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1583
{ (exit 1); exit 1; }; }
1585
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1586
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1587
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1589
# Find a good install program. We prefer a C program (faster),
1590
# so one script is as good as another. But avoid the broken or
1591
# incompatible versions:
1592
# SysV /etc/install, /usr/sbin/install
1593
# SunOS /usr/etc/install
1594
# IRIX /sbin/install
1596
# AmigaOS /C/install, which installs bootblocks on floppy discs
1597
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1598
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1599
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1600
# OS/2's system install, which has a completely different semantic
1601
# ./install, which can be erroneously created by make from ./install.sh.
1602
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1603
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1604
if test -z "$INSTALL"; then
1605
if test "${ac_cv_path_install+set}" = set; then
1606
echo $ECHO_N "(cached) $ECHO_C" >&6
1608
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612
test -z "$as_dir" && as_dir=.
1613
# Account for people who put trailing slashes in PATH elements.
1615
./ | .// | /cC/* | \
1616
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1617
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1620
# OSF1 and SCO ODT 3.0 have their own names for install.
1621
# Don't use installbsd from OSF since it installs stuff as root
1623
for ac_prog in ginstall scoinst install; do
1624
for ac_exec_ext in '' $ac_executable_extensions; do
1625
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1626
if test $ac_prog = install &&
1627
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1628
# AIX install. It has an incompatible calling convention.
1630
elif test $ac_prog = install &&
1631
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1632
# program-specific install script used by HP pwplus--don't use.
1635
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1647
if test "${ac_cv_path_install+set}" = set; then
1648
INSTALL=$ac_cv_path_install
1650
# As a last resort, use the slow shell script. We don't cache a
1651
# path for INSTALL within a source directory, because that will
1652
# break other packages using the cache if that directory is
1653
# removed, or if the path is relative.
1654
INSTALL=$ac_install_sh
1657
echo "$as_me:$LINENO: result: $INSTALL" >&5
1658
echo "${ECHO_T}$INSTALL" >&6
1660
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1661
# It thinks the first close brace ends the variable substitution.
1662
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1664
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1666
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1668
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1669
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1672
echo timestamp > conftest.file
1673
# Do `set' in a subshell so we don't clobber the current shell's
1674
# arguments. Must try -L first in case configure is actually a
1675
# symlink; some systems play weird games with the mod time of symlinks
1676
# (eg FreeBSD returns the mod time of the symlink's containing
1679
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1680
if test "$*" = "X"; then
1682
set X `ls -t $srcdir/configure conftest.file`
1685
if test "$*" != "X $srcdir/configure conftest.file" \
1686
&& test "$*" != "X conftest.file $srcdir/configure"; then
1688
# If neither matched, then we have a broken ls. This can happen
1689
# if, for instance, CONFIG_SHELL is bash and it inherits a
1690
# broken ls alias from the environment. This has actually
1691
# happened. Such a system could not be considered "sane".
1692
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1693
alias in your environment" >&5
1694
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1695
alias in your environment" >&2;}
1696
{ (exit 1); exit 1; }; }
1699
test "$2" = conftest.file
1705
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1706
Check your system clock" >&5
1707
echo "$as_me: error: newly created file is older than distributed files!
1708
Check your system clock" >&2;}
1709
{ (exit 1); exit 1; }; }
1711
echo "$as_me:$LINENO: result: yes" >&5
1712
echo "${ECHO_T}yes" >&6
1713
test "$program_prefix" != NONE &&
1714
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1715
# Use a double $ so make ignores it.
1716
test "$program_suffix" != NONE &&
1717
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1718
# Double any \ or $. echo might interpret backslashes.
1719
# By default was `s,x,x', remove it if useless.
1720
cat <<\_ACEOF >conftest.sed
1721
s/[\\$]/&&/g;s/;s,x,x,$//
1723
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1726
# expand $ac_aux_dir to an absolute path
1727
am_aux_dir=`cd $ac_aux_dir && pwd`
1729
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1730
# Use eval to expand $SHELL
1731
if eval "$MISSING --run true"; then
1732
am_missing_run="$MISSING --run "
1735
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1736
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1739
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1740
# We used to keeping the `.' as first argument, in order to
1741
# allow $(mkdir_p) to be used without argument. As in
1742
# $(mkdir_p) $(somedir)
1743
# where $(somedir) is conditionally defined. However this is wrong
1745
# 1. if the package is installed by a user who cannot write `.'
1746
# make install will fail,
1747
# 2. the above comment should most certainly read
1748
# $(mkdir_p) $(DESTDIR)$(somedir)
1749
# so it does not work when $(somedir) is undefined and
1750
# $(DESTDIR) is not.
1751
# To support the latter case, we have to write
1752
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1753
# so the `.' trick is pointless.
1754
mkdir_p='mkdir -p --'
1756
# On NextStep and OpenStep, the `mkdir' command does not
1757
# recognize any option. It will interpret all options as
1758
# directories to create, and then abort because `.' already
1760
for d in ./-p ./--version;
1762
test -d $d && rmdir $d
1764
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1765
if test -f "$ac_aux_dir/mkinstalldirs"; then
1766
mkdir_p='$(mkinstalldirs)'
1768
mkdir_p='$(install_sh) -d'
1772
for ac_prog in gawk mawk nawk awk
1774
# Extract the first word of "$ac_prog", so it can be a program name with args.
1775
set dummy $ac_prog; ac_word=$2
1776
echo "$as_me:$LINENO: checking for $ac_word" >&5
1777
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778
if test "${ac_cv_prog_AWK+set}" = set; then
1779
echo $ECHO_N "(cached) $ECHO_C" >&6
1781
if test -n "$AWK"; then
1782
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1784
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788
test -z "$as_dir" && as_dir=.
1789
for ac_exec_ext in '' $ac_executable_extensions; do
1790
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1791
ac_cv_prog_AWK="$ac_prog"
1792
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1801
if test -n "$AWK"; then
1802
echo "$as_me:$LINENO: result: $AWK" >&5
1803
echo "${ECHO_T}$AWK" >&6
1805
echo "$as_me:$LINENO: result: no" >&5
1806
echo "${ECHO_T}no" >&6
1809
test -n "$AWK" && break
1812
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1813
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1814
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1815
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1816
echo $ECHO_N "(cached) $ECHO_C" >&6
1818
cat >conftest.make <<\_ACEOF
1820
@echo 'ac_maketemp="$(MAKE)"'
1822
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1823
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1824
if test -n "$ac_maketemp"; then
1825
eval ac_cv_prog_make_${ac_make}_set=yes
1827
eval ac_cv_prog_make_${ac_make}_set=no
1831
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1832
echo "$as_me:$LINENO: result: yes" >&5
1833
echo "${ECHO_T}yes" >&6
1836
echo "$as_me:$LINENO: result: no" >&5
1837
echo "${ECHO_T}no" >&6
1838
SET_MAKE="MAKE=${MAKE-make}"
1841
rm -rf .tst 2>/dev/null
1842
mkdir .tst 2>/dev/null
1843
if test -d .tst; then
1848
rmdir .tst 2>/dev/null
1850
# test to see if srcdir already configured
1851
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1852
test -f $srcdir/config.status; then
1853
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1854
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1855
{ (exit 1); exit 1; }; }
1858
# test whether we have cygpath
1859
if test -z "$CYGPATH_W"; then
1860
if (cygpath --version) >/dev/null 2>/dev/null; then
1861
CYGPATH_W='cygpath -w'
1868
# Define the identity of the package.
1873
cat >>confdefs.h <<_ACEOF
1874
#define PACKAGE "$PACKAGE"
1878
cat >>confdefs.h <<_ACEOF
1879
#define VERSION "$VERSION"
1882
# Some tools Automake needs.
1884
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1887
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1890
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1893
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1896
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1898
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1900
# Installed binaries are usually stripped using `strip' when the user
1901
# run `make install-strip'. However `strip' might not be the right
1902
# tool to use in cross-compilation environments, therefore Automake
1903
# will honor the `STRIP' environment variable to overrule this program.
1904
if test "$cross_compiling" != no; then
1905
if test -n "$ac_tool_prefix"; then
1906
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1907
set dummy ${ac_tool_prefix}strip; ac_word=$2
1908
echo "$as_me:$LINENO: checking for $ac_word" >&5
1909
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1910
if test "${ac_cv_prog_STRIP+set}" = set; then
1911
echo $ECHO_N "(cached) $ECHO_C" >&6
1913
if test -n "$STRIP"; then
1914
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1916
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920
test -z "$as_dir" && as_dir=.
1921
for ac_exec_ext in '' $ac_executable_extensions; do
1922
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1923
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1924
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932
STRIP=$ac_cv_prog_STRIP
1933
if test -n "$STRIP"; then
1934
echo "$as_me:$LINENO: result: $STRIP" >&5
1935
echo "${ECHO_T}$STRIP" >&6
1937
echo "$as_me:$LINENO: result: no" >&5
1938
echo "${ECHO_T}no" >&6
1942
if test -z "$ac_cv_prog_STRIP"; then
1944
# Extract the first word of "strip", so it can be a program name with args.
1945
set dummy strip; ac_word=$2
1946
echo "$as_me:$LINENO: checking for $ac_word" >&5
1947
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1948
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1949
echo $ECHO_N "(cached) $ECHO_C" >&6
1951
if test -n "$ac_ct_STRIP"; then
1952
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1954
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958
test -z "$as_dir" && as_dir=.
1959
for ac_exec_ext in '' $ac_executable_extensions; do
1960
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1961
ac_cv_prog_ac_ct_STRIP="strip"
1962
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1968
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1971
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1972
if test -n "$ac_ct_STRIP"; then
1973
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1974
echo "${ECHO_T}$ac_ct_STRIP" >&6
1976
echo "$as_me:$LINENO: result: no" >&5
1977
echo "${ECHO_T}no" >&6
1982
STRIP="$ac_cv_prog_STRIP"
1986
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1988
# We need awk for the "check" target. The system "awk" is bad on
1990
# Always define AMTAR for backward compatibility.
1992
AMTAR=${AMTAR-"${am_missing_run}tar"}
1994
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2003
ac_config_headers="$ac_config_headers config.h"
2006
ACLOCAL_AMFLAGS="-I m4 -I common/m4"
2011
# Check whether --enable-shared or --disable-shared was given.
2012
if test "${enable_shared+set}" = set; then
2013
enableval="$enable_shared"
2014
p=${PACKAGE-default}
2016
yes) enable_shared=yes ;;
2017
no) enable_shared=no ;;
2020
# Look at the argument we got. We use all the common list separators.
2021
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2022
for pkg in $enableval; do
2024
if test "X$pkg" = "X$p"; then
2035
# Check whether --enable-static or --disable-static was given.
2036
if test "${enable_static+set}" = set; then
2037
enableval="$enable_static"
2038
p=${PACKAGE-default}
2040
yes) enable_static=yes ;;
2041
no) enable_static=no ;;
2044
# Look at the argument we got. We use all the common list separators.
2045
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2046
for pkg in $enableval; do
2048
if test "X$pkg" = "X$p"; then
2059
# Check whether --enable-fast-install or --disable-fast-install was given.
2060
if test "${enable_fast_install+set}" = set; then
2061
enableval="$enable_fast_install"
2062
p=${PACKAGE-default}
2064
yes) enable_fast_install=yes ;;
2065
no) enable_fast_install=no ;;
2067
enable_fast_install=no
2068
# Look at the argument we got. We use all the common list separators.
2069
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2070
for pkg in $enableval; do
2072
if test "X$pkg" = "X$p"; then
2073
enable_fast_install=yes
2080
enable_fast_install=yes
2083
# Make sure we can run config.sub.
2084
$ac_config_sub sun4 >/dev/null 2>&1 ||
2085
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2086
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2087
{ (exit 1); exit 1; }; }
2089
echo "$as_me:$LINENO: checking build system type" >&5
2090
echo $ECHO_N "checking build system type... $ECHO_C" >&6
2091
if test "${ac_cv_build+set}" = set; then
2092
echo $ECHO_N "(cached) $ECHO_C" >&6
2094
ac_cv_build_alias=$build_alias
2095
test -z "$ac_cv_build_alias" &&
2096
ac_cv_build_alias=`$ac_config_guess`
2097
test -z "$ac_cv_build_alias" &&
2098
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2099
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2100
{ (exit 1); exit 1; }; }
2101
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2102
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2103
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2104
{ (exit 1); exit 1; }; }
2107
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2108
echo "${ECHO_T}$ac_cv_build" >&6
2110
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2111
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2112
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2115
echo "$as_me:$LINENO: checking host system type" >&5
2116
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2117
if test "${ac_cv_host+set}" = set; then
2118
echo $ECHO_N "(cached) $ECHO_C" >&6
2120
ac_cv_host_alias=$host_alias
2121
test -z "$ac_cv_host_alias" &&
2122
ac_cv_host_alias=$ac_cv_build_alias
2123
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2124
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2125
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2126
{ (exit 1); exit 1; }; }
2129
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2130
echo "${ECHO_T}$ac_cv_host" >&6
2132
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2133
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2134
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2137
DEPDIR="${am__leading_dot}deps"
2139
ac_config_commands="$ac_config_commands depfiles"
2142
am_make=${MAKE-make}
2143
cat > confinc << 'END'
2148
# If we don't find an include directive, just comment out the code.
2149
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2150
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2154
# First try GNU make style include.
2155
echo "include confinc" > confmf
2156
# We grep out `Entering directory' and `Leaving directory'
2157
# messages which can occur if `w' ends up in MAKEFLAGS.
2158
# In particular we don't look at `^make:' because GNU make might
2159
# be invoked under some other name (usually "gmake"), in which
2160
# case it prints its new name instead of `make'.
2161
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2166
# Now try BSD make style include.
2167
if test "$am__include" = "#"; then
2168
echo '.include "confinc"' > confmf
2169
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2170
am__include=.include
2177
echo "$as_me:$LINENO: result: $_am_result" >&5
2178
echo "${ECHO_T}$_am_result" >&6
2179
rm -f confinc confmf
2181
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2182
if test "${enable_dependency_tracking+set}" = set; then
2183
enableval="$enable_dependency_tracking"
2186
if test "x$enable_dependency_tracking" != xno; then
2187
am_depcomp="$ac_aux_dir/depcomp"
2192
if test "x$enable_dependency_tracking" != xno; then
2203
ac_cpp='$CPP $CPPFLAGS'
2204
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2205
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2206
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2207
if test -n "$ac_tool_prefix"; then
2208
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2209
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2210
echo "$as_me:$LINENO: checking for $ac_word" >&5
2211
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2212
if test "${ac_cv_prog_CC+set}" = set; then
2213
echo $ECHO_N "(cached) $ECHO_C" >&6
2215
if test -n "$CC"; then
2216
ac_cv_prog_CC="$CC" # Let the user override the test.
2218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222
test -z "$as_dir" && as_dir=.
2223
for ac_exec_ext in '' $ac_executable_extensions; do
2224
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2225
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2226
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235
if test -n "$CC"; then
2236
echo "$as_me:$LINENO: result: $CC" >&5
2237
echo "${ECHO_T}$CC" >&6
2239
echo "$as_me:$LINENO: result: no" >&5
2240
echo "${ECHO_T}no" >&6
2244
if test -z "$ac_cv_prog_CC"; then
2246
# Extract the first word of "gcc", so it can be a program name with args.
2247
set dummy gcc; ac_word=$2
2248
echo "$as_me:$LINENO: checking for $ac_word" >&5
2249
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2250
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2251
echo $ECHO_N "(cached) $ECHO_C" >&6
2253
if test -n "$ac_ct_CC"; then
2254
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2256
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260
test -z "$as_dir" && as_dir=.
2261
for ac_exec_ext in '' $ac_executable_extensions; do
2262
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2263
ac_cv_prog_ac_ct_CC="gcc"
2264
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2272
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2273
if test -n "$ac_ct_CC"; then
2274
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2275
echo "${ECHO_T}$ac_ct_CC" >&6
2277
echo "$as_me:$LINENO: result: no" >&5
2278
echo "${ECHO_T}no" >&6
2286
if test -z "$CC"; then
2287
if test -n "$ac_tool_prefix"; then
2288
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2289
set dummy ${ac_tool_prefix}cc; ac_word=$2
2290
echo "$as_me:$LINENO: checking for $ac_word" >&5
2291
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2292
if test "${ac_cv_prog_CC+set}" = set; then
2293
echo $ECHO_N "(cached) $ECHO_C" >&6
2295
if test -n "$CC"; then
2296
ac_cv_prog_CC="$CC" # Let the user override the test.
2298
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302
test -z "$as_dir" && as_dir=.
2303
for ac_exec_ext in '' $ac_executable_extensions; do
2304
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2305
ac_cv_prog_CC="${ac_tool_prefix}cc"
2306
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2315
if test -n "$CC"; then
2316
echo "$as_me:$LINENO: result: $CC" >&5
2317
echo "${ECHO_T}$CC" >&6
2319
echo "$as_me:$LINENO: result: no" >&5
2320
echo "${ECHO_T}no" >&6
2324
if test -z "$ac_cv_prog_CC"; then
2326
# Extract the first word of "cc", so it can be a program name with args.
2327
set dummy cc; ac_word=$2
2328
echo "$as_me:$LINENO: checking for $ac_word" >&5
2329
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2330
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2331
echo $ECHO_N "(cached) $ECHO_C" >&6
2333
if test -n "$ac_ct_CC"; then
2334
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2336
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340
test -z "$as_dir" && as_dir=.
2341
for ac_exec_ext in '' $ac_executable_extensions; do
2342
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2343
ac_cv_prog_ac_ct_CC="cc"
2344
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2353
if test -n "$ac_ct_CC"; then
2354
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2355
echo "${ECHO_T}$ac_ct_CC" >&6
2357
echo "$as_me:$LINENO: result: no" >&5
2358
echo "${ECHO_T}no" >&6
2367
if test -z "$CC"; then
2368
# Extract the first word of "cc", so it can be a program name with args.
2369
set dummy cc; ac_word=$2
2370
echo "$as_me:$LINENO: checking for $ac_word" >&5
2371
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2372
if test "${ac_cv_prog_CC+set}" = set; then
2373
echo $ECHO_N "(cached) $ECHO_C" >&6
2375
if test -n "$CC"; then
2376
ac_cv_prog_CC="$CC" # Let the user override the test.
2379
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383
test -z "$as_dir" && as_dir=.
2384
for ac_exec_ext in '' $ac_executable_extensions; do
2385
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2386
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2387
ac_prog_rejected=yes
2391
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397
if test $ac_prog_rejected = yes; then
2398
# We found a bogon in the path, so make sure we never use it.
2399
set dummy $ac_cv_prog_CC
2401
if test $# != 0; then
2402
# We chose a different compiler from the bogus one.
2403
# However, it has the same basename, so the bogon will be chosen
2404
# first if we set CC to just the basename; use the full file name.
2406
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2412
if test -n "$CC"; then
2413
echo "$as_me:$LINENO: result: $CC" >&5
2414
echo "${ECHO_T}$CC" >&6
2416
echo "$as_me:$LINENO: result: no" >&5
2417
echo "${ECHO_T}no" >&6
2421
if test -z "$CC"; then
2422
if test -n "$ac_tool_prefix"; then
2425
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2426
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2427
echo "$as_me:$LINENO: checking for $ac_word" >&5
2428
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2429
if test "${ac_cv_prog_CC+set}" = set; then
2430
echo $ECHO_N "(cached) $ECHO_C" >&6
2432
if test -n "$CC"; then
2433
ac_cv_prog_CC="$CC" # Let the user override the test.
2435
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439
test -z "$as_dir" && as_dir=.
2440
for ac_exec_ext in '' $ac_executable_extensions; do
2441
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2442
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2443
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452
if test -n "$CC"; then
2453
echo "$as_me:$LINENO: result: $CC" >&5
2454
echo "${ECHO_T}$CC" >&6
2456
echo "$as_me:$LINENO: result: no" >&5
2457
echo "${ECHO_T}no" >&6
2460
test -n "$CC" && break
2463
if test -z "$CC"; then
2467
# Extract the first word of "$ac_prog", so it can be a program name with args.
2468
set dummy $ac_prog; ac_word=$2
2469
echo "$as_me:$LINENO: checking for $ac_word" >&5
2470
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2471
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2472
echo $ECHO_N "(cached) $ECHO_C" >&6
2474
if test -n "$ac_ct_CC"; then
2475
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2477
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481
test -z "$as_dir" && as_dir=.
2482
for ac_exec_ext in '' $ac_executable_extensions; do
2483
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2484
ac_cv_prog_ac_ct_CC="$ac_prog"
2485
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2493
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2494
if test -n "$ac_ct_CC"; then
2495
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2496
echo "${ECHO_T}$ac_ct_CC" >&6
2498
echo "$as_me:$LINENO: result: no" >&5
2499
echo "${ECHO_T}no" >&6
2502
test -n "$ac_ct_CC" && break
2511
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2512
See \`config.log' for more details." >&5
2513
echo "$as_me: error: no acceptable C compiler found in \$PATH
2514
See \`config.log' for more details." >&2;}
2515
{ (exit 1); exit 1; }; }
2517
# Provide some information about the compiler.
2518
echo "$as_me:$LINENO:" \
2519
"checking for C compiler version" >&5
2520
ac_compiler=`set X $ac_compile; echo $2`
2521
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2522
(eval $ac_compiler --version </dev/null >&5) 2>&5
2524
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525
(exit $ac_status); }
2526
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2527
(eval $ac_compiler -v </dev/null >&5) 2>&5
2529
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530
(exit $ac_status); }
2531
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2532
(eval $ac_compiler -V </dev/null >&5) 2>&5
2534
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535
(exit $ac_status); }
2537
cat >conftest.$ac_ext <<_ACEOF
2540
cat confdefs.h >>conftest.$ac_ext
2541
cat >>conftest.$ac_ext <<_ACEOF
2542
/* end confdefs.h. */
2552
ac_clean_files_save=$ac_clean_files
2553
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2554
# Try to create an executable without -o first, disregard a.out.
2555
# It will help us diagnose broken compilers, and finding out an intuition
2557
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2558
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2559
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2560
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2561
(eval $ac_link_default) 2>&5
2563
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564
(exit $ac_status); }; then
2565
# Find the output, starting from the most likely. This scheme is
2566
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2569
# Be careful to initialize this variable, since it used to be cached.
2570
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2572
# b.out is created by i960 compilers.
2573
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2575
test -f "$ac_file" || continue
2577
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2580
# This is the source file.
2583
# We found the default executable, but exeext='' is most
2587
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2588
# FIXME: I believe we export ac_cv_exeext for Libtool,
2589
# but it would be cool to find out if it's true. Does anybody
2590
# maintain Libtool? --akim.
2598
echo "$as_me: failed program was:" >&5
2599
sed 's/^/| /' conftest.$ac_ext >&5
2601
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2602
See \`config.log' for more details." >&5
2603
echo "$as_me: error: C compiler cannot create executables
2604
See \`config.log' for more details." >&2;}
2605
{ (exit 77); exit 77; }; }
2608
ac_exeext=$ac_cv_exeext
2609
echo "$as_me:$LINENO: result: $ac_file" >&5
2610
echo "${ECHO_T}$ac_file" >&6
2612
# Check the compiler produces executables we can run. If not, either
2613
# the compiler is broken, or we cross compile.
2614
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2615
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2616
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2617
# If not cross compiling, check that we can run a simple program.
2618
if test "$cross_compiling" != yes; then
2619
if { ac_try='./$ac_file'
2620
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624
(exit $ac_status); }; }; then
2627
if test "$cross_compiling" = maybe; then
2630
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2631
If you meant to cross compile, use \`--host'.
2632
See \`config.log' for more details." >&5
2633
echo "$as_me: error: cannot run C compiled programs.
2634
If you meant to cross compile, use \`--host'.
2635
See \`config.log' for more details." >&2;}
2636
{ (exit 1); exit 1; }; }
2640
echo "$as_me:$LINENO: result: yes" >&5
2641
echo "${ECHO_T}yes" >&6
2643
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2644
ac_clean_files=$ac_clean_files_save
2645
# Check the compiler produces executables we can run. If not, either
2646
# the compiler is broken, or we cross compile.
2647
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2648
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2649
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2650
echo "${ECHO_T}$cross_compiling" >&6
2652
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2653
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2654
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2655
(eval $ac_link) 2>&5
2657
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658
(exit $ac_status); }; then
2659
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2660
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2661
# work properly (i.e., refer to `conftest.exe'), while it won't with
2663
for ac_file in conftest.exe conftest conftest.*; do
2664
test -f "$ac_file" || continue
2666
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2667
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2674
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2675
See \`config.log' for more details." >&5
2676
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2677
See \`config.log' for more details." >&2;}
2678
{ (exit 1); exit 1; }; }
2681
rm -f conftest$ac_cv_exeext
2682
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2683
echo "${ECHO_T}$ac_cv_exeext" >&6
2685
rm -f conftest.$ac_ext
2686
EXEEXT=$ac_cv_exeext
2688
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2689
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2690
if test "${ac_cv_objext+set}" = set; then
2691
echo $ECHO_N "(cached) $ECHO_C" >&6
2693
cat >conftest.$ac_ext <<_ACEOF
2696
cat confdefs.h >>conftest.$ac_ext
2697
cat >>conftest.$ac_ext <<_ACEOF
2698
/* end confdefs.h. */
2708
rm -f conftest.o conftest.obj
2709
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2710
(eval $ac_compile) 2>&5
2712
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713
(exit $ac_status); }; then
2714
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2716
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2717
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2722
echo "$as_me: failed program was:" >&5
2723
sed 's/^/| /' conftest.$ac_ext >&5
2725
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2726
See \`config.log' for more details." >&5
2727
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2728
See \`config.log' for more details." >&2;}
2729
{ (exit 1); exit 1; }; }
2732
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2734
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2735
echo "${ECHO_T}$ac_cv_objext" >&6
2736
OBJEXT=$ac_cv_objext
2738
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2739
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2740
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2741
echo $ECHO_N "(cached) $ECHO_C" >&6
2743
cat >conftest.$ac_ext <<_ACEOF
2746
cat confdefs.h >>conftest.$ac_ext
2747
cat >>conftest.$ac_ext <<_ACEOF
2748
/* end confdefs.h. */
2761
rm -f conftest.$ac_objext
2762
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2763
(eval $ac_compile) 2>conftest.er1
2765
grep -v '^ *+' conftest.er1 >conftest.err
2767
cat conftest.err >&5
2768
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769
(exit $ac_status); } &&
2770
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2771
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775
(exit $ac_status); }; } &&
2776
{ ac_try='test -s conftest.$ac_objext'
2777
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781
(exit $ac_status); }; }; then
2784
echo "$as_me: failed program was:" >&5
2785
sed 's/^/| /' conftest.$ac_ext >&5
2789
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2790
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2793
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2794
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2795
GCC=`test $ac_compiler_gnu = yes && echo yes`
2796
ac_test_CFLAGS=${CFLAGS+set}
2797
ac_save_CFLAGS=$CFLAGS
2799
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2800
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2801
if test "${ac_cv_prog_cc_g+set}" = set; then
2802
echo $ECHO_N "(cached) $ECHO_C" >&6
2804
cat >conftest.$ac_ext <<_ACEOF
2807
cat confdefs.h >>conftest.$ac_ext
2808
cat >>conftest.$ac_ext <<_ACEOF
2809
/* end confdefs.h. */
2819
rm -f conftest.$ac_objext
2820
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2821
(eval $ac_compile) 2>conftest.er1
2823
grep -v '^ *+' conftest.er1 >conftest.err
2825
cat conftest.err >&5
2826
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827
(exit $ac_status); } &&
2828
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2829
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833
(exit $ac_status); }; } &&
2834
{ ac_try='test -s conftest.$ac_objext'
2835
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839
(exit $ac_status); }; }; then
2842
echo "$as_me: failed program was:" >&5
2843
sed 's/^/| /' conftest.$ac_ext >&5
2847
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2849
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2850
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2851
if test "$ac_test_CFLAGS" = set; then
2852
CFLAGS=$ac_save_CFLAGS
2853
elif test $ac_cv_prog_cc_g = yes; then
2854
if test "$GCC" = yes; then
2860
if test "$GCC" = yes; then
2866
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2867
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2868
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2869
echo $ECHO_N "(cached) $ECHO_C" >&6
2871
ac_cv_prog_cc_stdc=no
2873
cat >conftest.$ac_ext <<_ACEOF
2876
cat confdefs.h >>conftest.$ac_ext
2877
cat >>conftest.$ac_ext <<_ACEOF
2878
/* end confdefs.h. */
2881
#include <sys/types.h>
2882
#include <sys/stat.h>
2883
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2884
struct buf { int x; };
2885
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2886
static char *e (p, i)
2892
static char *f (char * (*g) (char **, int), char **p, ...)
2897
s = g (p, va_arg (v,int));
2902
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2903
function prototypes and stuff, but not '\xHH' hex character constants.
2904
These don't provoke an error unfortunately, instead are silently treated
2905
as 'x'. The following induces an error, until -std1 is added to get
2906
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2907
array size at least. It's necessary to write '\x00'==0 to get something
2908
that's true only with -std1. */
2909
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2911
int test (int i, double x);
2912
struct s1 {int (*f) (int a);};
2913
struct s2 {int (*f) (double a);};
2914
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2920
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2925
# Don't try gcc -ansi; that turns off useful extensions and
2926
# breaks some systems' header files.
2927
# AIX -qlanglvl=ansi
2928
# Ultrix and OSF/1 -std1
2929
# HP-UX 10.20 and later -Ae
2930
# HP-UX older versions -Aa -D_HPUX_SOURCE
2931
# SVR4 -Xc -D__EXTENSIONS__
2932
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2934
CC="$ac_save_CC $ac_arg"
2935
rm -f conftest.$ac_objext
2936
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2937
(eval $ac_compile) 2>conftest.er1
2939
grep -v '^ *+' conftest.er1 >conftest.err
2941
cat conftest.err >&5
2942
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943
(exit $ac_status); } &&
2944
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2945
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949
(exit $ac_status); }; } &&
2950
{ ac_try='test -s conftest.$ac_objext'
2951
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955
(exit $ac_status); }; }; then
2956
ac_cv_prog_cc_stdc=$ac_arg
2959
echo "$as_me: failed program was:" >&5
2960
sed 's/^/| /' conftest.$ac_ext >&5
2963
rm -f conftest.err conftest.$ac_objext
2965
rm -f conftest.$ac_ext conftest.$ac_objext
2970
case "x$ac_cv_prog_cc_stdc" in
2972
echo "$as_me:$LINENO: result: none needed" >&5
2973
echo "${ECHO_T}none needed" >&6 ;;
2975
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2976
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2977
CC="$CC $ac_cv_prog_cc_stdc" ;;
2980
# Some people use a C++ compiler to compile C. Since we use `exit',
2981
# in C++ we need to declare it. In case someone uses the same compiler
2982
# for both compiling C and C++ we need to have the C++ compiler decide
2983
# the declaration of exit, since it's the most demanding environment.
2984
cat >conftest.$ac_ext <<_ACEOF
2989
rm -f conftest.$ac_objext
2990
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2991
(eval $ac_compile) 2>conftest.er1
2993
grep -v '^ *+' conftest.er1 >conftest.err
2995
cat conftest.err >&5
2996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997
(exit $ac_status); } &&
2998
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2999
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003
(exit $ac_status); }; } &&
3004
{ ac_try='test -s conftest.$ac_objext'
3005
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009
(exit $ac_status); }; }; then
3010
for ac_declaration in \
3012
'extern "C" void std::exit (int) throw (); using std::exit;' \
3013
'extern "C" void std::exit (int); using std::exit;' \
3014
'extern "C" void exit (int) throw ();' \
3015
'extern "C" void exit (int);' \
3018
cat >conftest.$ac_ext <<_ACEOF
3021
cat confdefs.h >>conftest.$ac_ext
3022
cat >>conftest.$ac_ext <<_ACEOF
3023
/* end confdefs.h. */
3034
rm -f conftest.$ac_objext
3035
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3036
(eval $ac_compile) 2>conftest.er1
3038
grep -v '^ *+' conftest.er1 >conftest.err
3040
cat conftest.err >&5
3041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042
(exit $ac_status); } &&
3043
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3044
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048
(exit $ac_status); }; } &&
3049
{ ac_try='test -s conftest.$ac_objext'
3050
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054
(exit $ac_status); }; }; then
3057
echo "$as_me: failed program was:" >&5
3058
sed 's/^/| /' conftest.$ac_ext >&5
3062
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3063
cat >conftest.$ac_ext <<_ACEOF
3066
cat confdefs.h >>conftest.$ac_ext
3067
cat >>conftest.$ac_ext <<_ACEOF
3068
/* end confdefs.h. */
3078
rm -f conftest.$ac_objext
3079
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3080
(eval $ac_compile) 2>conftest.er1
3082
grep -v '^ *+' conftest.er1 >conftest.err
3084
cat conftest.err >&5
3085
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086
(exit $ac_status); } &&
3087
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3088
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3091
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092
(exit $ac_status); }; } &&
3093
{ ac_try='test -s conftest.$ac_objext'
3094
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098
(exit $ac_status); }; }; then
3101
echo "$as_me: failed program was:" >&5
3102
sed 's/^/| /' conftest.$ac_ext >&5
3105
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3108
if test -n "$ac_declaration"; then
3109
echo '#ifdef __cplusplus' >>confdefs.h
3110
echo $ac_declaration >>confdefs.h
3111
echo '#endif' >>confdefs.h
3115
echo "$as_me: failed program was:" >&5
3116
sed 's/^/| /' conftest.$ac_ext >&5
3119
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3121
ac_cpp='$CPP $CPPFLAGS'
3122
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3123
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3124
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3126
depcc="$CC" am_compiler_list=
3128
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3129
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3130
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3131
echo $ECHO_N "(cached) $ECHO_C" >&6
3133
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3134
# We make a subdir and do the tests there. Otherwise we can end up
3135
# making bogus files that we don't know about and never remove. For
3136
# instance it was reported that on HP-UX the gcc test will end up
3137
# making a dummy file named `D' -- because `-MD' means `put the output
3140
# Copy depcomp to subdir because otherwise we won't find it if we're
3141
# using a relative directory.
3142
cp "$am_depcomp" conftest.dir
3144
# We will build objects and dependencies in a subdirectory because
3145
# it helps to detect inapplicable dependency modes. For instance
3146
# both Tru64's cc and ICC support -MD to output dependencies as a
3147
# side effect of compilation, but ICC will put the dependencies in
3148
# the current directory while Tru64 will put them in the object
3152
am_cv_CC_dependencies_compiler_type=none
3153
if test "$am_compiler_list" = ""; then
3154
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3156
for depmode in $am_compiler_list; do
3157
# Setup a source with many dependencies, because some compilers
3158
# like to wrap large dependency lists on column 80 (with \), and
3159
# we should not choose a depcomp mode which is confused by this.
3161
# We need to recreate these files for each test, as the compiler may
3162
# overwrite some of them when testing with obscure command lines.
3163
# This happens at least with the AIX C compiler.
3165
for i in 1 2 3 4 5 6; do
3166
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3167
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3168
# Solaris 8's {/usr,}/bin/sh.
3169
touch sub/conftst$i.h
3171
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3175
# after this tag, mechanisms are not by side-effect, so they'll
3176
# only be used when explicitly requested
3177
if test "x$enable_dependency_tracking" = xyes; then
3185
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3186
# mode. It turns out that the SunPro C++ compiler does not properly
3187
# handle `-M -o', and we need to detect this.
3188
if depmode=$depmode \
3189
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3190
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3191
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3192
>/dev/null 2>conftest.err &&
3193
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3194
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3195
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3196
# icc doesn't choke on unknown options, it will just issue warnings
3197
# or remarks (even with -Werror). So we grep stderr for any message
3198
# that says an option was ignored or not supported.
3199
# When given -MP, icc 7.0 and 7.1 complain thusly:
3200
# icc: Command line warning: ignoring option '-M'; no argument required
3201
# The diagnosis changed in icc 8.0:
3202
# icc: Command line remark: option '-MP' not supported
3203
if (grep 'ignoring option' conftest.err ||
3204
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3205
am_cv_CC_dependencies_compiler_type=$depmode
3214
am_cv_CC_dependencies_compiler_type=none
3218
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3219
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3220
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3225
test "x$enable_dependency_tracking" != xno \
3226
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3228
am__fastdepCC_FALSE='#'
3230
am__fastdepCC_TRUE='#'
3231
am__fastdepCC_FALSE=
3235
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3236
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3237
if test "${lt_cv_path_SED+set}" = set; then
3238
echo $ECHO_N "(cached) $ECHO_C" >&6
3240
# Loop through the user's path and test for sed and gsed.
3241
# Then use that list of sed's as ones to test for truncation.
3242
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246
test -z "$as_dir" && as_dir=.
3247
for lt_ac_prog in sed gsed; do
3248
for ac_exec_ext in '' $ac_executable_extensions; do
3249
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3250
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3257
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3258
# along with /bin/sed that truncates output.
3259
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3260
test ! -f $lt_ac_sed && continue
3261
cat /dev/null > conftest.in
3263
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3264
# Check for GNU sed and select it if it is found.
3265
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3266
lt_cv_path_SED=$lt_ac_sed
3270
cat conftest.in conftest.in >conftest.tmp
3271
mv conftest.tmp conftest.in
3272
cp conftest.in conftest.nl
3274
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3275
cmp -s conftest.out conftest.nl || break
3276
# 10000 chars as input seems more than enough
3277
test $lt_ac_count -gt 10 && break
3278
lt_ac_count=`expr $lt_ac_count + 1`
3279
if test $lt_ac_count -gt $lt_ac_max; then
3280
lt_ac_max=$lt_ac_count
3281
lt_cv_path_SED=$lt_ac_sed
3289
echo "$as_me:$LINENO: result: $SED" >&5
3290
echo "${ECHO_T}$SED" >&6
3292
echo "$as_me:$LINENO: checking for egrep" >&5
3293
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3294
if test "${ac_cv_prog_egrep+set}" = set; then
3295
echo $ECHO_N "(cached) $ECHO_C" >&6
3297
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3298
then ac_cv_prog_egrep='grep -E'
3299
else ac_cv_prog_egrep='egrep'
3302
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3303
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3304
EGREP=$ac_cv_prog_egrep
3308
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3309
if test "${with_gnu_ld+set}" = set; then
3310
withval="$with_gnu_ld"
3311
test "$withval" = no || with_gnu_ld=yes
3316
if test "$GCC" = yes; then
3317
# Check if gcc -print-prog-name=ld gives a path.
3318
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3319
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3322
# gcc leaves a trailing carriage return which upsets mingw
3323
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3325
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3328
# Accept absolute paths.
3330
re_direlt='/[^/][^/]*/\.\./'
3331
# Canonicalize the pathname of ld
3332
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3333
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3334
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3336
test -z "$LD" && LD="$ac_prog"
3339
# If it fails, then pretend we aren't using GCC.
3343
# If it is relative, then search for the first ld in PATH.
3347
elif test "$with_gnu_ld" = yes; then
3348
echo "$as_me:$LINENO: checking for GNU ld" >&5
3349
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3351
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3352
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3354
if test "${lt_cv_path_LD+set}" = set; then
3355
echo $ECHO_N "(cached) $ECHO_C" >&6
3357
if test -z "$LD"; then
3358
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3359
for ac_dir in $PATH; do
3361
test -z "$ac_dir" && ac_dir=.
3362
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3363
lt_cv_path_LD="$ac_dir/$ac_prog"
3364
# Check to see if the program is GNU ld. I'd rather use --version,
3365
# but apparently some variants of GNU ld only accept -v.
3366
# Break only if it was the GNU/non-GNU ld that we prefer.
3367
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3368
*GNU* | *'with BFD'*)
3369
test "$with_gnu_ld" != no && break
3372
test "$with_gnu_ld" != yes && break
3379
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3384
if test -n "$LD"; then
3385
echo "$as_me:$LINENO: result: $LD" >&5
3386
echo "${ECHO_T}$LD" >&6
3388
echo "$as_me:$LINENO: result: no" >&5
3389
echo "${ECHO_T}no" >&6
3391
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3392
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3393
{ (exit 1); exit 1; }; }
3394
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3395
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3396
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3397
echo $ECHO_N "(cached) $ECHO_C" >&6
3399
# I'd rather use --version here, but apparently some GNU lds only accept -v.
3400
case `$LD -v 2>&1 </dev/null` in
3401
*GNU* | *'with BFD'*)
3402
lt_cv_prog_gnu_ld=yes
3405
lt_cv_prog_gnu_ld=no
3409
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3410
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3411
with_gnu_ld=$lt_cv_prog_gnu_ld
3414
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3415
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3416
if test "${lt_cv_ld_reload_flag+set}" = set; then
3417
echo $ECHO_N "(cached) $ECHO_C" >&6
3419
lt_cv_ld_reload_flag='-r'
3421
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3422
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3423
reload_flag=$lt_cv_ld_reload_flag
3424
case $reload_flag in
3426
*) reload_flag=" $reload_flag" ;;
3428
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3431
if test "$GCC" = yes; then
3432
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3434
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3439
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3440
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3441
if test "${lt_cv_path_NM+set}" = set; then
3442
echo $ECHO_N "(cached) $ECHO_C" >&6
3444
if test -n "$NM"; then
3445
# Let the user override the test.
3448
lt_nm_to_check="${ac_tool_prefix}nm"
3449
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3450
lt_nm_to_check="$lt_nm_to_check nm"
3452
for lt_tmp_nm in $lt_nm_to_check; do
3453
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3454
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3456
test -z "$ac_dir" && ac_dir=.
3457
tmp_nm="$ac_dir/$lt_tmp_nm"
3458
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3459
# Check to see if the nm accepts a BSD-compat flag.
3460
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3461
# nm: unknown option "B" ignored
3462
# Tru64's nm complains that /dev/null is an invalid object file
3463
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3464
*/dev/null* | *'Invalid file or object type'*)
3465
lt_cv_path_NM="$tmp_nm -B"
3469
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3471
lt_cv_path_NM="$tmp_nm -p"
3475
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3476
continue # so that we can try to find one that supports BSD flags
3485
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3488
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3489
echo "${ECHO_T}$lt_cv_path_NM" >&6
3492
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3493
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3495
if test "$LN_S" = "ln -s"; then
3496
echo "$as_me:$LINENO: result: yes" >&5
3497
echo "${ECHO_T}yes" >&6
3499
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3500
echo "${ECHO_T}no, using $LN_S" >&6
3503
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3504
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3505
if test "${lt_cv_deplibs_check_method+set}" = set; then
3506
echo $ECHO_N "(cached) $ECHO_C" >&6
3508
lt_cv_file_magic_cmd='$MAGIC_CMD'
3509
lt_cv_file_magic_test_file=
3510
lt_cv_deplibs_check_method='unknown'
3511
# Need to set the preceding variable on all platforms that support
3512
# interlibrary dependencies.
3513
# 'none' -- dependencies not supported.
3514
# `unknown' -- same as none, but documents that we really don't know.
3515
# 'pass_all' -- all dependencies passed with no checks.
3516
# 'test_compile' -- check by making test program.
3517
# 'file_magic [[regex]]' -- check by looking for files in library path
3518
# which responds to the $file_magic_cmd with a given extended regex.
3519
# If you have `file' or equivalent on your system and you're not sure
3520
# whether `pass_all' will *always* work, you probably want this one.
3524
lt_cv_deplibs_check_method=pass_all
3528
lt_cv_deplibs_check_method=pass_all
3532
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3533
lt_cv_file_magic_cmd='/usr/bin/file -L'
3534
lt_cv_file_magic_test_file=/shlib/libc.so
3538
# func_win32_libid is a shell function defined in ltmain.sh
3539
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3540
lt_cv_file_magic_cmd='func_win32_libid'
3544
# Base MSYS/MinGW do not provide the 'file' command needed by
3545
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
3546
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3547
lt_cv_file_magic_cmd='$OBJDUMP -f'
3550
darwin* | rhapsody*)
3551
lt_cv_deplibs_check_method=pass_all
3554
freebsd* | kfreebsd*-gnu | dragonfly*)
3555
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3558
# Not sure whether the presence of OpenBSD here was a mistake.
3559
# Let's accept both of them until this is cleared up.
3560
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3561
lt_cv_file_magic_cmd=/usr/bin/file
3562
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3566
lt_cv_deplibs_check_method=pass_all
3571
lt_cv_deplibs_check_method=pass_all
3574
hpux10.20* | hpux11*)
3575
lt_cv_file_magic_cmd=/usr/bin/file
3578
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3579
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3582
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]'
3583
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3586
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3587
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3593
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3594
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3597
irix5* | irix6* | nonstopux*)
3599
*-32|*"-32 ") libmagic=32-bit;;
3600
*-n32|*"-n32 ") libmagic=N32;;
3601
*-64|*"-64 ") libmagic=64-bit;;
3602
*) libmagic=never-match;;
3604
lt_cv_deplibs_check_method=pass_all
3607
# This must be Linux ELF.
3609
lt_cv_deplibs_check_method=pass_all
3612
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3613
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3614
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3616
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3621
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3622
lt_cv_file_magic_cmd=/usr/bin/file
3623
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3627
lt_cv_deplibs_check_method=unknown
3631
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3632
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3634
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3638
osf3* | osf4* | osf5*)
3639
lt_cv_deplibs_check_method=pass_all
3643
lt_cv_deplibs_check_method=pass_all
3647
case $host_vendor in
3649
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]'
3650
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3653
lt_cv_deplibs_check_method=pass_all
3656
lt_cv_file_magic_cmd='/bin/file'
3657
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3660
lt_cv_file_magic_cmd='/bin/file'
3661
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3662
lt_cv_file_magic_test_file=/lib/libc.so
3665
lt_cv_deplibs_check_method=pass_all
3668
lt_cv_deplibs_check_method=pass_all
3673
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3674
lt_cv_deplibs_check_method=pass_all
3679
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3680
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3681
file_magic_cmd=$lt_cv_file_magic_cmd
3682
deplibs_check_method=$lt_cv_deplibs_check_method
3683
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3688
# If no C compiler was specified, use CC.
3691
# If no C compiler flags were specified, use CFLAGS.
3692
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3694
# Allow CC to be a program name with arguments.
3698
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3699
if test "${enable_libtool_lock+set}" = set; then
3700
enableval="$enable_libtool_lock"
3703
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3705
# Some flags need to be propagated to the compiler or linker for good
3709
# Find out which ABI we are using.
3710
echo 'int i;' > conftest.$ac_ext
3711
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712
(eval $ac_compile) 2>&5
3714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715
(exit $ac_status); }; then
3716
case `/usr/bin/file conftest.$ac_objext` in
3728
# Find out which ABI we are using.
3729
echo '#line 3729 "configure"' > conftest.$ac_ext
3730
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3731
(eval $ac_compile) 2>&5
3733
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734
(exit $ac_status); }; then
3735
if test "$lt_cv_prog_gnu_ld" = yes; then
3736
case `/usr/bin/file conftest.$ac_objext` in
3738
LD="${LD-ld} -melf32bsmip"
3741
LD="${LD-ld} -melf32bmipn32"
3744
LD="${LD-ld} -melf64bmip"
3748
case `/usr/bin/file conftest.$ac_objext` in
3764
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3765
# Find out which ABI we are using.
3766
echo 'int i;' > conftest.$ac_ext
3767
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3768
(eval $ac_compile) 2>&5
3770
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771
(exit $ac_status); }; then
3772
case `/usr/bin/file conftest.o` in
3776
LD="${LD-ld} -m elf_i386"
3778
ppc64-*linux*|powerpc64-*linux*)
3779
LD="${LD-ld} -m elf32ppclinux"
3782
LD="${LD-ld} -m elf_s390"
3785
LD="${LD-ld} -m elf32_sparc"
3792
LD="${LD-ld} -m elf_x86_64"
3794
ppc*-*linux*|powerpc*-*linux*)
3795
LD="${LD-ld} -m elf64ppc"
3798
LD="${LD-ld} -m elf64_s390"
3801
LD="${LD-ld} -m elf64_sparc"
3811
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
3812
SAVE_CFLAGS="$CFLAGS"
3813
CFLAGS="$CFLAGS -belf"
3814
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3815
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3816
if test "${lt_cv_cc_needs_belf+set}" = set; then
3817
echo $ECHO_N "(cached) $ECHO_C" >&6
3820
ac_cpp='$CPP $CPPFLAGS'
3821
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3825
cat >conftest.$ac_ext <<_ACEOF
3828
cat confdefs.h >>conftest.$ac_ext
3829
cat >>conftest.$ac_ext <<_ACEOF
3830
/* end confdefs.h. */
3840
rm -f conftest.$ac_objext conftest$ac_exeext
3841
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3842
(eval $ac_link) 2>conftest.er1
3844
grep -v '^ *+' conftest.er1 >conftest.err
3846
cat conftest.err >&5
3847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848
(exit $ac_status); } &&
3849
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3850
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854
(exit $ac_status); }; } &&
3855
{ ac_try='test -s conftest$ac_exeext'
3856
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860
(exit $ac_status); }; }; then
3861
lt_cv_cc_needs_belf=yes
3863
echo "$as_me: failed program was:" >&5
3864
sed 's/^/| /' conftest.$ac_ext >&5
3866
lt_cv_cc_needs_belf=no
3868
rm -f conftest.err conftest.$ac_objext \
3869
conftest$ac_exeext conftest.$ac_ext
3871
ac_cpp='$CPP $CPPFLAGS'
3872
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3873
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3874
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3877
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3878
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3879
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3880
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3881
CFLAGS="$SAVE_CFLAGS"
3885
# Find out which ABI we are using.
3886
echo 'int i;' > conftest.$ac_ext
3887
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3888
(eval $ac_compile) 2>&5
3890
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891
(exit $ac_status); }; then
3892
case `/usr/bin/file conftest.o` in
3894
case $lt_cv_prog_gnu_ld in
3895
yes*) LD="${LD-ld} -m elf64_sparc" ;;
3896
*) LD="${LD-ld} -64" ;;
3907
need_locks="$enable_libtool_lock"
3911
ac_cpp='$CPP $CPPFLAGS'
3912
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3913
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3915
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3916
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3917
# On Suns, sometimes $CPP names a directory.
3918
if test -n "$CPP" && test -d "$CPP"; then
3921
if test -z "$CPP"; then
3922
if test "${ac_cv_prog_CPP+set}" = set; then
3923
echo $ECHO_N "(cached) $ECHO_C" >&6
3925
# Double quotes because CPP needs to be expanded
3926
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3929
for ac_c_preproc_warn_flag in '' yes
3931
# Use a header file that comes with gcc, so configuring glibc
3932
# with a fresh cross-compiler works.
3933
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3934
# <limits.h> exists even on freestanding compilers.
3935
# On the NeXT, cc -E runs the code through the compiler's parser,
3936
# not just through cpp. "Syntax error" is here to catch this case.
3937
cat >conftest.$ac_ext <<_ACEOF
3940
cat confdefs.h >>conftest.$ac_ext
3941
cat >>conftest.$ac_ext <<_ACEOF
3942
/* end confdefs.h. */
3944
# include <limits.h>
3946
# include <assert.h>
3950
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3951
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3953
grep -v '^ *+' conftest.er1 >conftest.err
3955
cat conftest.err >&5
3956
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957
(exit $ac_status); } >/dev/null; then
3958
if test -s conftest.err; then
3959
ac_cpp_err=$ac_c_preproc_warn_flag
3960
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3967
if test -z "$ac_cpp_err"; then
3970
echo "$as_me: failed program was:" >&5
3971
sed 's/^/| /' conftest.$ac_ext >&5
3973
# Broken: fails on valid input.
3976
rm -f conftest.err conftest.$ac_ext
3978
# OK, works on sane cases. Now check whether non-existent headers
3979
# can be detected and how.
3980
cat >conftest.$ac_ext <<_ACEOF
3983
cat confdefs.h >>conftest.$ac_ext
3984
cat >>conftest.$ac_ext <<_ACEOF
3985
/* end confdefs.h. */
3986
#include <ac_nonexistent.h>
3988
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3989
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3991
grep -v '^ *+' conftest.er1 >conftest.err
3993
cat conftest.err >&5
3994
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995
(exit $ac_status); } >/dev/null; then
3996
if test -s conftest.err; then
3997
ac_cpp_err=$ac_c_preproc_warn_flag
3998
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4005
if test -z "$ac_cpp_err"; then
4006
# Broken: success on invalid input.
4009
echo "$as_me: failed program was:" >&5
4010
sed 's/^/| /' conftest.$ac_ext >&5
4012
# Passes both tests.
4016
rm -f conftest.err conftest.$ac_ext
4019
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4020
rm -f conftest.err conftest.$ac_ext
4021
if $ac_preproc_ok; then
4033
echo "$as_me:$LINENO: result: $CPP" >&5
4034
echo "${ECHO_T}$CPP" >&6
4036
for ac_c_preproc_warn_flag in '' yes
4038
# Use a header file that comes with gcc, so configuring glibc
4039
# with a fresh cross-compiler works.
4040
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4041
# <limits.h> exists even on freestanding compilers.
4042
# On the NeXT, cc -E runs the code through the compiler's parser,
4043
# not just through cpp. "Syntax error" is here to catch this case.
4044
cat >conftest.$ac_ext <<_ACEOF
4047
cat confdefs.h >>conftest.$ac_ext
4048
cat >>conftest.$ac_ext <<_ACEOF
4049
/* end confdefs.h. */
4051
# include <limits.h>
4053
# include <assert.h>
4057
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4058
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4060
grep -v '^ *+' conftest.er1 >conftest.err
4062
cat conftest.err >&5
4063
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064
(exit $ac_status); } >/dev/null; then
4065
if test -s conftest.err; then
4066
ac_cpp_err=$ac_c_preproc_warn_flag
4067
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4074
if test -z "$ac_cpp_err"; then
4077
echo "$as_me: failed program was:" >&5
4078
sed 's/^/| /' conftest.$ac_ext >&5
4080
# Broken: fails on valid input.
4083
rm -f conftest.err conftest.$ac_ext
4085
# OK, works on sane cases. Now check whether non-existent headers
4086
# can be detected and how.
4087
cat >conftest.$ac_ext <<_ACEOF
4090
cat confdefs.h >>conftest.$ac_ext
4091
cat >>conftest.$ac_ext <<_ACEOF
4092
/* end confdefs.h. */
4093
#include <ac_nonexistent.h>
4095
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4096
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4098
grep -v '^ *+' conftest.er1 >conftest.err
4100
cat conftest.err >&5
4101
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102
(exit $ac_status); } >/dev/null; then
4103
if test -s conftest.err; then
4104
ac_cpp_err=$ac_c_preproc_warn_flag
4105
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4112
if test -z "$ac_cpp_err"; then
4113
# Broken: success on invalid input.
4116
echo "$as_me: failed program was:" >&5
4117
sed 's/^/| /' conftest.$ac_ext >&5
4119
# Passes both tests.
4123
rm -f conftest.err conftest.$ac_ext
4126
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4127
rm -f conftest.err conftest.$ac_ext
4128
if $ac_preproc_ok; then
4131
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4132
See \`config.log' for more details." >&5
4133
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4134
See \`config.log' for more details." >&2;}
4135
{ (exit 1); exit 1; }; }
4139
ac_cpp='$CPP $CPPFLAGS'
4140
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4141
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4142
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4146
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4147
if test "${ac_cv_header_stdc+set}" = set; then
4148
echo $ECHO_N "(cached) $ECHO_C" >&6
4150
cat >conftest.$ac_ext <<_ACEOF
4153
cat confdefs.h >>conftest.$ac_ext
4154
cat >>conftest.$ac_ext <<_ACEOF
4155
/* end confdefs.h. */
4169
rm -f conftest.$ac_objext
4170
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4171
(eval $ac_compile) 2>conftest.er1
4173
grep -v '^ *+' conftest.er1 >conftest.err
4175
cat conftest.err >&5
4176
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177
(exit $ac_status); } &&
4178
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4179
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183
(exit $ac_status); }; } &&
4184
{ ac_try='test -s conftest.$ac_objext'
4185
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189
(exit $ac_status); }; }; then
4190
ac_cv_header_stdc=yes
4192
echo "$as_me: failed program was:" >&5
4193
sed 's/^/| /' conftest.$ac_ext >&5
4195
ac_cv_header_stdc=no
4197
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4199
if test $ac_cv_header_stdc = yes; then
4200
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4201
cat >conftest.$ac_ext <<_ACEOF
4204
cat confdefs.h >>conftest.$ac_ext
4205
cat >>conftest.$ac_ext <<_ACEOF
4206
/* end confdefs.h. */
4210
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4211
$EGREP "memchr" >/dev/null 2>&1; then
4214
ac_cv_header_stdc=no
4220
if test $ac_cv_header_stdc = yes; then
4221
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4222
cat >conftest.$ac_ext <<_ACEOF
4225
cat confdefs.h >>conftest.$ac_ext
4226
cat >>conftest.$ac_ext <<_ACEOF
4227
/* end confdefs.h. */
4231
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4232
$EGREP "free" >/dev/null 2>&1; then
4235
ac_cv_header_stdc=no
4241
if test $ac_cv_header_stdc = yes; then
4242
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4243
if test "$cross_compiling" = yes; then
4246
cat >conftest.$ac_ext <<_ACEOF
4249
cat confdefs.h >>conftest.$ac_ext
4250
cat >>conftest.$ac_ext <<_ACEOF
4251
/* end confdefs.h. */
4253
#if ((' ' & 0x0FF) == 0x020)
4254
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4255
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4257
# define ISLOWER(c) \
4258
(('a' <= (c) && (c) <= 'i') \
4259
|| ('j' <= (c) && (c) <= 'r') \
4260
|| ('s' <= (c) && (c) <= 'z'))
4261
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4264
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4269
for (i = 0; i < 256; i++)
4270
if (XOR (islower (i), ISLOWER (i))
4271
|| toupper (i) != TOUPPER (i))
4276
rm -f conftest$ac_exeext
4277
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4278
(eval $ac_link) 2>&5
4280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4282
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286
(exit $ac_status); }; }; then
4289
echo "$as_me: program exited with status $ac_status" >&5
4290
echo "$as_me: failed program was:" >&5
4291
sed 's/^/| /' conftest.$ac_ext >&5
4294
ac_cv_header_stdc=no
4296
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4300
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4301
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4302
if test $ac_cv_header_stdc = yes; then
4304
cat >>confdefs.h <<\_ACEOF
4305
#define STDC_HEADERS 1
4310
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4320
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4321
inttypes.h stdint.h unistd.h
4323
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4324
echo "$as_me:$LINENO: checking for $ac_header" >&5
4325
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4326
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4327
echo $ECHO_N "(cached) $ECHO_C" >&6
4329
cat >conftest.$ac_ext <<_ACEOF
4332
cat confdefs.h >>conftest.$ac_ext
4333
cat >>conftest.$ac_ext <<_ACEOF
4334
/* end confdefs.h. */
4335
$ac_includes_default
4337
#include <$ac_header>
4339
rm -f conftest.$ac_objext
4340
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4341
(eval $ac_compile) 2>conftest.er1
4343
grep -v '^ *+' conftest.er1 >conftest.err
4345
cat conftest.err >&5
4346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347
(exit $ac_status); } &&
4348
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4349
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353
(exit $ac_status); }; } &&
4354
{ ac_try='test -s conftest.$ac_objext'
4355
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359
(exit $ac_status); }; }; then
4360
eval "$as_ac_Header=yes"
4362
echo "$as_me: failed program was:" >&5
4363
sed 's/^/| /' conftest.$ac_ext >&5
4365
eval "$as_ac_Header=no"
4367
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4369
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4370
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4371
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4372
cat >>confdefs.h <<_ACEOF
4373
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4382
for ac_header in dlfcn.h
4384
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4385
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4386
echo "$as_me:$LINENO: checking for $ac_header" >&5
4387
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4388
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4389
echo $ECHO_N "(cached) $ECHO_C" >&6
4391
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4392
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4394
# Is the header compilable?
4395
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4396
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4397
cat >conftest.$ac_ext <<_ACEOF
4400
cat confdefs.h >>conftest.$ac_ext
4401
cat >>conftest.$ac_ext <<_ACEOF
4402
/* end confdefs.h. */
4403
$ac_includes_default
4404
#include <$ac_header>
4406
rm -f conftest.$ac_objext
4407
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4408
(eval $ac_compile) 2>conftest.er1
4410
grep -v '^ *+' conftest.er1 >conftest.err
4412
cat conftest.err >&5
4413
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414
(exit $ac_status); } &&
4415
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4416
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420
(exit $ac_status); }; } &&
4421
{ ac_try='test -s conftest.$ac_objext'
4422
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426
(exit $ac_status); }; }; then
4427
ac_header_compiler=yes
4429
echo "$as_me: failed program was:" >&5
4430
sed 's/^/| /' conftest.$ac_ext >&5
4432
ac_header_compiler=no
4434
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4435
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4436
echo "${ECHO_T}$ac_header_compiler" >&6
4438
# Is the header present?
4439
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4440
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4441
cat >conftest.$ac_ext <<_ACEOF
4444
cat confdefs.h >>conftest.$ac_ext
4445
cat >>conftest.$ac_ext <<_ACEOF
4446
/* end confdefs.h. */
4447
#include <$ac_header>
4449
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4450
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4452
grep -v '^ *+' conftest.er1 >conftest.err
4454
cat conftest.err >&5
4455
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456
(exit $ac_status); } >/dev/null; then
4457
if test -s conftest.err; then
4458
ac_cpp_err=$ac_c_preproc_warn_flag
4459
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4466
if test -z "$ac_cpp_err"; then
4467
ac_header_preproc=yes
4469
echo "$as_me: failed program was:" >&5
4470
sed 's/^/| /' conftest.$ac_ext >&5
4472
ac_header_preproc=no
4474
rm -f conftest.err conftest.$ac_ext
4475
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4476
echo "${ECHO_T}$ac_header_preproc" >&6
4478
# So? What about this header?
4479
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4481
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4482
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4483
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4484
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4485
ac_header_preproc=yes
4488
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4489
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4490
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4491
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4492
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4493
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4494
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4495
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4496
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4497
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4498
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4499
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4502
## ------------------------------------------ ##
4503
## Report this to the AC_PACKAGE_NAME lists. ##
4504
## ------------------------------------------ ##
4507
sed "s/^/$as_me: WARNING: /" >&2
4510
echo "$as_me:$LINENO: checking for $ac_header" >&5
4511
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4512
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4513
echo $ECHO_N "(cached) $ECHO_C" >&6
4515
eval "$as_ac_Header=\$ac_header_preproc"
4517
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4518
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4521
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4522
cat >>confdefs.h <<_ACEOF
4523
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4531
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4533
# find the maximum length of command line arguments
4534
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4535
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4536
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4537
echo $ECHO_N "(cached) $ECHO_C" >&6
4544
# On DJGPP, this test can blow up pretty badly due to problems in libc
4545
# (any single argument exceeding 2000 bytes causes a buffer overrun
4546
# during glob expansion). Even if it were fixed, the result of this
4547
# check would be larger than it should be.
4548
lt_cv_sys_max_cmd_len=12288; # 12K is about right
4552
# Under GNU Hurd, this test is not required because there is
4553
# no limit to the length of command line arguments.
4554
# Libtool will interpret -1 as no limit whatsoever
4555
lt_cv_sys_max_cmd_len=-1;
4559
# On Win9x/ME, this test blows up -- it succeeds, but takes
4560
# about 5 minutes as the teststring grows exponentially.
4561
# Worse, since 9x/ME are not pre-emptively multitasking,
4562
# you end up with a "frozen" computer, even though with patience
4563
# the test eventually succeeds (with a max line length of 256k).
4564
# Instead, let's just punt: use the minimum linelength reported by
4565
# all of the supported platforms: 8192 (on NT/2K/XP).
4566
lt_cv_sys_max_cmd_len=8192;
4570
# On AmigaOS with pdksh, this test takes hours, literally.
4571
# So we just punt and use a minimum line length of 8192.
4572
lt_cv_sys_max_cmd_len=8192;
4575
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4576
# This has been around since 386BSD, at least. Likely further.
4577
if test -x /sbin/sysctl; then
4578
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4579
elif test -x /usr/sbin/sysctl; then
4580
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4582
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4584
# And add a safety zone
4585
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4586
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4590
# We know the value 262144 and hardcode it with a safety zone (like BSD)
4591
lt_cv_sys_max_cmd_len=196608
4595
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4596
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4597
# nice to cause kernel panics so lets avoid the loop below.
4598
# First set a reasonable default.
4599
lt_cv_sys_max_cmd_len=16384
4601
if test -x /sbin/sysconfig; then
4602
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4603
*1*) lt_cv_sys_max_cmd_len=-1 ;;
4608
lt_cv_sys_max_cmd_len=102400
4610
sysv5* | sco5v6* | sysv4.2uw2*)
4611
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4612
if test -n "$kargmax"; then
4613
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4615
lt_cv_sys_max_cmd_len=32768
4619
# If test is not a shell built-in, we'll probably end up computing a
4620
# maximum length that is only half of the actual maximum length, but
4622
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4623
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
4624
= "XX$teststring") >/dev/null 2>&1 &&
4625
new_result=`expr "X$teststring" : ".*" 2>&1` &&
4626
lt_cv_sys_max_cmd_len=$new_result &&
4627
test $i != 17 # 1/2 MB should be enough
4630
teststring=$teststring$teststring
4633
# Add a significant safety factor because C++ compilers can tack on massive
4634
# amounts of additional arguments before passing them to the linker.
4635
# It appears as though 1/2 is a usable value.
4636
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4642
if test -n $lt_cv_sys_max_cmd_len ; then
4643
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4644
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4646
echo "$as_me:$LINENO: result: none" >&5
4647
echo "${ECHO_T}none" >&6
4653
# Check for command to grab the raw symbol name followed by C symbol from nm.
4654
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4655
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4656
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4657
echo $ECHO_N "(cached) $ECHO_C" >&6
4660
# These are sane defaults that work on at least a few old systems.
4661
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4663
# Character class describing NM global symbol codes.
4664
symcode='[BCDEGRST]'
4666
# Regexp to match symbols that can be accessed directly from C.
4667
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4669
# Transform an extracted symbol line into a proper C declaration
4670
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4672
# Transform an extracted symbol line into symbol name and symbol address
4673
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'"
4675
# Define system-specific variables.
4680
cygwin* | mingw* | pw32*)
4681
symcode='[ABCDGISTW]'
4683
hpux*) # Its linker distinguishes data from code symbols
4684
if test "$host_cpu" = ia64; then
4685
symcode='[ABCDEGRST]'
4687
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4688
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'"
4691
if test "$host_cpu" = ia64; then
4692
symcode='[ABCDGIRSTW]'
4693
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4694
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'"
4698
symcode='[BCDEGRST]'
4701
symcode='[BCDEGQRST]'
4712
sysv5* | sco5v6* | unixware* | OpenUNIX*)
4720
# Handle CRLF in mingw tool chain
4724
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4728
# If we're using GNU nm, then use its standard symbol codes.
4729
case `$NM -V 2>&1` in
4730
*GNU* | *'with BFD'*)
4731
symcode='[ABCDGIRSTW]' ;;
4734
# Try without a prefix undercore, then with it.
4735
for ac_symprfx in "" "_"; do
4737
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4738
symxfrm="\\1 $ac_symprfx\\2 \\2"
4740
# Write the raw and C identifiers.
4741
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4743
# Check to see that the pipe works correctly.
4747
cat > conftest.$ac_ext <<EOF
4752
void nm_test_func(){}
4756
int main(){nm_test_var='a';nm_test_func();return(0);}
4759
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4760
(eval $ac_compile) 2>&5
4762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763
(exit $ac_status); }; then
4764
# Now try to grab the symbols.
4766
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4767
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4769
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770
(exit $ac_status); } && test -s "$nlist"; then
4771
# Try sorting and uniquifying the output.
4772
if sort "$nlist" | uniq > "$nlist"T; then
4773
mv -f "$nlist"T "$nlist"
4778
# Make sure that we snagged all the symbols we need.
4779
if grep ' nm_test_var$' "$nlist" >/dev/null; then
4780
if grep ' nm_test_func$' "$nlist" >/dev/null; then
4781
cat <<EOF > conftest.$ac_ext
4787
# Now generate the symbol file.
4788
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4790
cat <<EOF >> conftest.$ac_ext
4791
#if defined (__STDC__) && __STDC__
4792
# define lt_ptr_t void *
4794
# define lt_ptr_t char *
4798
/* The mapping between symbol names and symbols. */
4803
lt_preloaded_symbols[] =
4806
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4807
cat <<\EOF >> conftest.$ac_ext
4815
# Now try linking the two files.
4816
mv conftest.$ac_objext conftstm.$ac_objext
4817
lt_save_LIBS="$LIBS"
4818
lt_save_CFLAGS="$CFLAGS"
4819
LIBS="conftstm.$ac_objext"
4820
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4821
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4822
(eval $ac_link) 2>&5
4824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825
(exit $ac_status); } && test -s conftest${ac_exeext}; then
4828
LIBS="$lt_save_LIBS"
4829
CFLAGS="$lt_save_CFLAGS"
4831
echo "cannot find nm_test_func in $nlist" >&5
4834
echo "cannot find nm_test_var in $nlist" >&5
4837
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4840
echo "$progname: failed program was:" >&5
4841
cat conftest.$ac_ext >&5
4843
rm -f conftest* conftst*
4845
# Do not use the global_symbol_pipe unless it works.
4846
if test "$pipe_works" = yes; then
4849
lt_cv_sys_global_symbol_pipe=
4855
if test -z "$lt_cv_sys_global_symbol_pipe"; then
4856
lt_cv_sys_global_symbol_to_cdecl=
4858
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4859
echo "$as_me:$LINENO: result: failed" >&5
4860
echo "${ECHO_T}failed" >&6
4862
echo "$as_me:$LINENO: result: ok" >&5
4863
echo "${ECHO_T}ok" >&6
4866
echo "$as_me:$LINENO: checking for objdir" >&5
4867
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4868
if test "${lt_cv_objdir+set}" = set; then
4869
echo $ECHO_N "(cached) $ECHO_C" >&6
4871
rm -f .libs 2>/dev/null
4872
mkdir .libs 2>/dev/null
4873
if test -d .libs; then
4876
# MS-DOS does not allow filenames that begin with a dot.
4879
rmdir .libs 2>/dev/null
4881
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
4882
echo "${ECHO_T}$lt_cv_objdir" >&6
4883
objdir=$lt_cv_objdir
4891
# AIX sometimes has problems with the GCC collect2 program. For some
4892
# reason, if we set the COLLECT_NAMES environment variable, the problems
4893
# vanish in a puff of smoke.
4894
if test "X${COLLECT_NAMES+set}" != Xset; then
4896
export COLLECT_NAMES
4901
# Sed substitution that helps us do robust quoting. It backslashifies
4902
# metacharacters that are still active within double-quoted strings.
4903
Xsed='sed -e 1s/^X//'
4904
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4906
# Same as above, but do not quote variable references.
4907
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4909
# Sed substitution to delay expansion of an escaped shell variable in a
4910
# double_quote_subst'ed string.
4911
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4913
# Sed substitution to avoid accidental globbing in evaled expressions
4914
no_glob_subst='s/\*/\\\*/g'
4920
default_ofile=libtool
4921
can_build_shared=yes
4923
# All known linkers require a `.a' archive for static linking (except MSVC,
4924
# which needs '.lib').
4926
ltmain="$ac_aux_dir/ltmain.sh"
4927
ofile="$default_ofile"
4928
with_gnu_ld="$lt_cv_prog_gnu_ld"
4930
if test -n "$ac_tool_prefix"; then
4931
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4932
set dummy ${ac_tool_prefix}ar; ac_word=$2
4933
echo "$as_me:$LINENO: checking for $ac_word" >&5
4934
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4935
if test "${ac_cv_prog_AR+set}" = set; then
4936
echo $ECHO_N "(cached) $ECHO_C" >&6
4938
if test -n "$AR"; then
4939
ac_cv_prog_AR="$AR" # Let the user override the test.
4941
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945
test -z "$as_dir" && as_dir=.
4946
for ac_exec_ext in '' $ac_executable_extensions; do
4947
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4948
ac_cv_prog_AR="${ac_tool_prefix}ar"
4949
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4958
if test -n "$AR"; then
4959
echo "$as_me:$LINENO: result: $AR" >&5
4960
echo "${ECHO_T}$AR" >&6
4962
echo "$as_me:$LINENO: result: no" >&5
4963
echo "${ECHO_T}no" >&6
4967
if test -z "$ac_cv_prog_AR"; then
4969
# Extract the first word of "ar", so it can be a program name with args.
4970
set dummy ar; ac_word=$2
4971
echo "$as_me:$LINENO: checking for $ac_word" >&5
4972
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4973
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4974
echo $ECHO_N "(cached) $ECHO_C" >&6
4976
if test -n "$ac_ct_AR"; then
4977
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4979
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983
test -z "$as_dir" && as_dir=.
4984
for ac_exec_ext in '' $ac_executable_extensions; do
4985
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4986
ac_cv_prog_ac_ct_AR="ar"
4987
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4993
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4996
ac_ct_AR=$ac_cv_prog_ac_ct_AR
4997
if test -n "$ac_ct_AR"; then
4998
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4999
echo "${ECHO_T}$ac_ct_AR" >&6
5001
echo "$as_me:$LINENO: result: no" >&5
5002
echo "${ECHO_T}no" >&6
5010
if test -n "$ac_tool_prefix"; then
5011
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5012
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5013
echo "$as_me:$LINENO: checking for $ac_word" >&5
5014
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5015
if test "${ac_cv_prog_RANLIB+set}" = set; then
5016
echo $ECHO_N "(cached) $ECHO_C" >&6
5018
if test -n "$RANLIB"; then
5019
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5021
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025
test -z "$as_dir" && as_dir=.
5026
for ac_exec_ext in '' $ac_executable_extensions; do
5027
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5029
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5037
RANLIB=$ac_cv_prog_RANLIB
5038
if test -n "$RANLIB"; then
5039
echo "$as_me:$LINENO: result: $RANLIB" >&5
5040
echo "${ECHO_T}$RANLIB" >&6
5042
echo "$as_me:$LINENO: result: no" >&5
5043
echo "${ECHO_T}no" >&6
5047
if test -z "$ac_cv_prog_RANLIB"; then
5048
ac_ct_RANLIB=$RANLIB
5049
# Extract the first word of "ranlib", so it can be a program name with args.
5050
set dummy ranlib; ac_word=$2
5051
echo "$as_me:$LINENO: checking for $ac_word" >&5
5052
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5053
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5054
echo $ECHO_N "(cached) $ECHO_C" >&6
5056
if test -n "$ac_ct_RANLIB"; then
5057
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5059
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063
test -z "$as_dir" && as_dir=.
5064
for ac_exec_ext in '' $ac_executable_extensions; do
5065
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5066
ac_cv_prog_ac_ct_RANLIB="ranlib"
5067
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5073
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5076
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5077
if test -n "$ac_ct_RANLIB"; then
5078
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5079
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5081
echo "$as_me:$LINENO: result: no" >&5
5082
echo "${ECHO_T}no" >&6
5085
RANLIB=$ac_ct_RANLIB
5087
RANLIB="$ac_cv_prog_RANLIB"
5090
if test -n "$ac_tool_prefix"; then
5091
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5092
set dummy ${ac_tool_prefix}strip; ac_word=$2
5093
echo "$as_me:$LINENO: checking for $ac_word" >&5
5094
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5095
if test "${ac_cv_prog_STRIP+set}" = set; then
5096
echo $ECHO_N "(cached) $ECHO_C" >&6
5098
if test -n "$STRIP"; then
5099
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5101
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105
test -z "$as_dir" && as_dir=.
5106
for ac_exec_ext in '' $ac_executable_extensions; do
5107
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5108
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5109
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117
STRIP=$ac_cv_prog_STRIP
5118
if test -n "$STRIP"; then
5119
echo "$as_me:$LINENO: result: $STRIP" >&5
5120
echo "${ECHO_T}$STRIP" >&6
5122
echo "$as_me:$LINENO: result: no" >&5
5123
echo "${ECHO_T}no" >&6
5127
if test -z "$ac_cv_prog_STRIP"; then
5129
# Extract the first word of "strip", so it can be a program name with args.
5130
set dummy strip; ac_word=$2
5131
echo "$as_me:$LINENO: checking for $ac_word" >&5
5132
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5133
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5134
echo $ECHO_N "(cached) $ECHO_C" >&6
5136
if test -n "$ac_ct_STRIP"; then
5137
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5139
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143
test -z "$as_dir" && as_dir=.
5144
for ac_exec_ext in '' $ac_executable_extensions; do
5145
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146
ac_cv_prog_ac_ct_STRIP="strip"
5147
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5153
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5156
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5157
if test -n "$ac_ct_STRIP"; then
5158
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5159
echo "${ECHO_T}$ac_ct_STRIP" >&6
5161
echo "$as_me:$LINENO: result: no" >&5
5162
echo "${ECHO_T}no" >&6
5167
STRIP="$ac_cv_prog_STRIP"
5172
old_CFLAGS="$CFLAGS"
5174
# Set sane defaults for various variables
5175
test -z "$AR" && AR=ar
5176
test -z "$AR_FLAGS" && AR_FLAGS=cru
5177
test -z "$AS" && AS=as
5178
test -z "$CC" && CC=cc
5179
test -z "$LTCC" && LTCC=$CC
5180
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5181
test -z "$DLLTOOL" && DLLTOOL=dlltool
5182
test -z "$LD" && LD=ld
5183
test -z "$LN_S" && LN_S="ln -s"
5184
test -z "$MAGIC_CMD" && MAGIC_CMD=file
5185
test -z "$NM" && NM=nm
5186
test -z "$SED" && SED=sed
5187
test -z "$OBJDUMP" && OBJDUMP=objdump
5188
test -z "$RANLIB" && RANLIB=:
5189
test -z "$STRIP" && STRIP=:
5190
test -z "$ac_objext" && ac_objext=o
5192
# Determine commands to create old-style static archives.
5193
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5194
old_postinstall_cmds='chmod 644 $oldlib'
5195
old_postuninstall_cmds=
5197
if test -n "$RANLIB"; then
5200
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5203
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5206
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5209
for cc_temp in $compiler""; do
5211
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5212
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5217
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5220
# Only perform the check for file, if the check method requires it
5221
case $deplibs_check_method in
5223
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5224
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5225
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5226
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5227
echo $ECHO_N "(cached) $ECHO_C" >&6
5231
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5234
lt_save_MAGIC_CMD="$MAGIC_CMD"
5235
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5236
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5237
for ac_dir in $ac_dummy; do
5239
test -z "$ac_dir" && ac_dir=.
5240
if test -f $ac_dir/${ac_tool_prefix}file; then
5241
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5242
if test -n "$file_magic_test_file"; then
5243
case $deplibs_check_method in
5245
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5246
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5247
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5248
$EGREP "$file_magic_regex" > /dev/null; then
5253
*** Warning: the command libtool uses to detect shared libraries,
5254
*** $file_magic_cmd, produces output that libtool cannot recognize.
5255
*** The result is that libtool may fail to recognize shared libraries
5256
*** as such. This will affect the creation of libtool libraries that
5257
*** depend on shared libraries, but programs linked with such libtool
5258
*** libraries will work regardless of this problem. Nevertheless, you
5259
*** may want to report the problem to your system manager and/or to
5260
*** bug-libtool@gnu.org
5270
MAGIC_CMD="$lt_save_MAGIC_CMD"
5275
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5276
if test -n "$MAGIC_CMD"; then
5277
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5278
echo "${ECHO_T}$MAGIC_CMD" >&6
5280
echo "$as_me:$LINENO: result: no" >&5
5281
echo "${ECHO_T}no" >&6
5284
if test -z "$lt_cv_path_MAGIC_CMD"; then
5285
if test -n "$ac_tool_prefix"; then
5286
echo "$as_me:$LINENO: checking for file" >&5
5287
echo $ECHO_N "checking for file... $ECHO_C" >&6
5288
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5289
echo $ECHO_N "(cached) $ECHO_C" >&6
5293
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5296
lt_save_MAGIC_CMD="$MAGIC_CMD"
5297
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5298
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5299
for ac_dir in $ac_dummy; do
5301
test -z "$ac_dir" && ac_dir=.
5302
if test -f $ac_dir/file; then
5303
lt_cv_path_MAGIC_CMD="$ac_dir/file"
5304
if test -n "$file_magic_test_file"; then
5305
case $deplibs_check_method in
5307
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5308
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5309
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5310
$EGREP "$file_magic_regex" > /dev/null; then
5315
*** Warning: the command libtool uses to detect shared libraries,
5316
*** $file_magic_cmd, produces output that libtool cannot recognize.
5317
*** The result is that libtool may fail to recognize shared libraries
5318
*** as such. This will affect the creation of libtool libraries that
5319
*** depend on shared libraries, but programs linked with such libtool
5320
*** libraries will work regardless of this problem. Nevertheless, you
5321
*** may want to report the problem to your system manager and/or to
5322
*** bug-libtool@gnu.org
5332
MAGIC_CMD="$lt_save_MAGIC_CMD"
5337
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5338
if test -n "$MAGIC_CMD"; then
5339
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5340
echo "${ECHO_T}$MAGIC_CMD" >&6
5342
echo "$as_me:$LINENO: result: no" >&5
5343
echo "${ECHO_T}no" >&6
5358
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5359
if test "${enable_libtool_lock+set}" = set; then
5360
enableval="$enable_libtool_lock"
5363
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5366
# Check whether --with-pic or --without-pic was given.
5367
if test "${with_pic+set}" = set; then
5373
test -z "$pic_mode" && pic_mode=default
5375
# Use C for the default configuration in the libtool script
5379
ac_cpp='$CPP $CPPFLAGS'
5380
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5381
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5382
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5385
# Source file extension for C test sources.
5388
# Object file extension for compiled C test sources.
5392
# Code to be used in simple compile tests
5393
lt_simple_compile_test_code="int some_variable = 0;\n"
5395
# Code to be used in simple link tests
5396
lt_simple_link_test_code='int main(){return(0);}\n'
5399
# If no C compiler was specified, use CC.
5402
# If no C compiler flags were specified, use CFLAGS.
5403
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5405
# Allow CC to be a program name with arguments.
5409
# save warnings/boilerplate of simple test code
5410
ac_outfile=conftest.$ac_objext
5411
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
5412
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5413
_lt_compiler_boilerplate=`cat conftest.err`
5416
ac_outfile=conftest.$ac_objext
5417
printf "$lt_simple_link_test_code" >conftest.$ac_ext
5418
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5419
_lt_linker_boilerplate=`cat conftest.err`
5424
lt_prog_compiler_no_builtin_flag=
5426
if test "$GCC" = yes; then
5427
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5430
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5431
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5432
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5433
echo $ECHO_N "(cached) $ECHO_C" >&6
5435
lt_cv_prog_compiler_rtti_exceptions=no
5436
ac_outfile=conftest.$ac_objext
5437
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5438
lt_compiler_flag="-fno-rtti -fno-exceptions"
5439
# Insert the option either (1) after the last *FLAGS variable, or
5440
# (2) before a word containing "conftest.", or (3) at the end.
5441
# Note that $ac_compile itself does not contain backslashes and begins
5442
# with a dollar sign (not a hyphen), so the echo should work correctly.
5443
# The option is referenced via a variable to avoid confusing sed.
5444
lt_compile=`echo "$ac_compile" | $SED \
5445
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5446
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5447
-e 's:$: $lt_compiler_flag:'`
5448
(eval echo "\"\$as_me:5448: $lt_compile\"" >&5)
5449
(eval "$lt_compile" 2>conftest.err)
5451
cat conftest.err >&5
5452
echo "$as_me:5452: \$? = $ac_status" >&5
5453
if (exit $ac_status) && test -s "$ac_outfile"; then
5454
# The compiler can only warn and ignore the option if not recognized
5455
# So say no if there are warnings other than the usual output.
5456
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5457
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5458
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5459
lt_cv_prog_compiler_rtti_exceptions=yes
5465
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5466
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5468
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5469
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5476
lt_prog_compiler_wl=
5477
lt_prog_compiler_pic=
5478
lt_prog_compiler_static=
5480
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5481
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5483
if test "$GCC" = yes; then
5484
lt_prog_compiler_wl='-Wl,'
5485
lt_prog_compiler_static='-static'
5489
# All AIX code is PIC.
5490
if test "$host_cpu" = ia64; then
5491
# AIX 5 now supports IA64 processor
5492
lt_prog_compiler_static='-Bstatic'
5497
# FIXME: we need at least 68020 code to build shared libraries, but
5498
# adding the `-m68020' flag to GCC prevents building anything better,
5500
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5503
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5504
# PIC is the default for these OSes.
5507
mingw* | pw32* | os2*)
5508
# This hack is so that the source file can tell whether it is being
5509
# built for inclusion in a dll (and should export symbols for example).
5510
lt_prog_compiler_pic='-DDLL_EXPORT'
5513
darwin* | rhapsody*)
5514
# PIC is the default on this platform
5515
# Common symbols not allowed in MH_DYLIB files
5516
lt_prog_compiler_pic='-fno-common'
5520
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
5521
# Instead, we relocate shared libraries at runtime.
5525
# Just because we use GCC doesn't mean we suddenly get shared libraries
5526
# on systems that don't support them.
5527
lt_prog_compiler_can_build_shared=no
5532
if test -d /usr/nec; then
5533
lt_prog_compiler_pic=-Kconform_pic
5538
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5545
lt_prog_compiler_pic='-fPIC'
5551
lt_prog_compiler_pic='-fPIC'
5555
# PORTME Check for flag to pass linker flags through the system compiler.
5558
lt_prog_compiler_wl='-Wl,'
5559
if test "$host_cpu" = ia64; then
5560
# AIX 5 now supports IA64 processor
5561
lt_prog_compiler_static='-Bstatic'
5563
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5567
# PIC is the default on this platform
5568
# Common symbols not allowed in MH_DYLIB files
5569
case $cc_basename in
5571
lt_prog_compiler_pic='-qnocommon'
5572
lt_prog_compiler_wl='-Wl,'
5577
mingw* | pw32* | os2*)
5578
# This hack is so that the source file can tell whether it is being
5579
# built for inclusion in a dll (and should export symbols for example).
5580
lt_prog_compiler_pic='-DDLL_EXPORT'
5583
hpux9* | hpux10* | hpux11*)
5584
lt_prog_compiler_wl='-Wl,'
5585
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5592
lt_prog_compiler_pic='+Z'
5595
# Is there a better lt_prog_compiler_static that works with the bundled CC?
5596
lt_prog_compiler_static='${wl}-a ${wl}archive'
5599
irix5* | irix6* | nonstopux*)
5600
lt_prog_compiler_wl='-Wl,'
5601
# PIC (with -KPIC) is the default.
5602
lt_prog_compiler_static='-non_shared'
5606
lt_prog_compiler_pic='-KPIC'
5607
lt_prog_compiler_static='-Bstatic'
5611
case $cc_basename in
5613
lt_prog_compiler_wl='-Wl,'
5614
lt_prog_compiler_pic='-KPIC'
5615
lt_prog_compiler_static='-static'
5617
pgcc* | pgf77* | pgf90* | pgf95*)
5618
# Portland Group compilers (*not* the Pentium gcc compiler,
5619
# which looks to be a dead project)
5620
lt_prog_compiler_wl='-Wl,'
5621
lt_prog_compiler_pic='-fpic'
5622
lt_prog_compiler_static='-Bstatic'
5625
lt_prog_compiler_wl='-Wl,'
5626
# All Alpha code is PIC.
5627
lt_prog_compiler_static='-non_shared'
5632
osf3* | osf4* | osf5*)
5633
lt_prog_compiler_wl='-Wl,'
5634
# All OSF/1 code is PIC.
5635
lt_prog_compiler_static='-non_shared'
5639
lt_prog_compiler_pic='-KPIC'
5640
lt_prog_compiler_static='-Bstatic'
5641
case $cc_basename in
5643
lt_prog_compiler_wl='-Qoption ld ';;
5645
lt_prog_compiler_wl='-Wl,';;
5650
lt_prog_compiler_wl='-Qoption ld '
5651
lt_prog_compiler_pic='-PIC'
5652
lt_prog_compiler_static='-Bstatic'
5655
sysv4 | sysv4.2uw2* | sysv4.3*)
5656
lt_prog_compiler_wl='-Wl,'
5657
lt_prog_compiler_pic='-KPIC'
5658
lt_prog_compiler_static='-Bstatic'
5662
if test -d /usr/nec ;then
5663
lt_prog_compiler_pic='-Kconform_pic'
5664
lt_prog_compiler_static='-Bstatic'
5668
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5669
lt_prog_compiler_wl='-Wl,'
5670
lt_prog_compiler_pic='-KPIC'
5671
lt_prog_compiler_static='-Bstatic'
5675
lt_prog_compiler_wl='-Wl,'
5676
lt_prog_compiler_can_build_shared=no
5680
lt_prog_compiler_pic='-pic'
5681
lt_prog_compiler_static='-Bstatic'
5685
lt_prog_compiler_can_build_shared=no
5690
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5691
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5694
# Check to make sure the PIC flag actually works.
5696
if test -n "$lt_prog_compiler_pic"; then
5698
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5699
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5700
if test "${lt_prog_compiler_pic_works+set}" = set; then
5701
echo $ECHO_N "(cached) $ECHO_C" >&6
5703
lt_prog_compiler_pic_works=no
5704
ac_outfile=conftest.$ac_objext
5705
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5706
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5707
# Insert the option either (1) after the last *FLAGS variable, or
5708
# (2) before a word containing "conftest.", or (3) at the end.
5709
# Note that $ac_compile itself does not contain backslashes and begins
5710
# with a dollar sign (not a hyphen), so the echo should work correctly.
5711
# The option is referenced via a variable to avoid confusing sed.
5712
lt_compile=`echo "$ac_compile" | $SED \
5713
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5714
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5715
-e 's:$: $lt_compiler_flag:'`
5716
(eval echo "\"\$as_me:5716: $lt_compile\"" >&5)
5717
(eval "$lt_compile" 2>conftest.err)
5719
cat conftest.err >&5
5720
echo "$as_me:5720: \$? = $ac_status" >&5
5721
if (exit $ac_status) && test -s "$ac_outfile"; then
5722
# The compiler can only warn and ignore the option if not recognized
5723
# So say no if there are warnings other than the usual output.
5724
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5725
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5726
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5727
lt_prog_compiler_pic_works=yes
5733
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5734
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5736
if test x"$lt_prog_compiler_pic_works" = xyes; then
5737
case $lt_prog_compiler_pic in
5739
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5742
lt_prog_compiler_pic=
5743
lt_prog_compiler_can_build_shared=no
5748
# For platforms which do not support PIC, -DPIC is meaningless:
5750
lt_prog_compiler_pic=
5753
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5758
# Check to make sure the static flag actually works.
5760
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
5761
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
5762
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
5763
if test "${lt_prog_compiler_static_works+set}" = set; then
5764
echo $ECHO_N "(cached) $ECHO_C" >&6
5766
lt_prog_compiler_static_works=no
5767
save_LDFLAGS="$LDFLAGS"
5768
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
5769
printf "$lt_simple_link_test_code" > conftest.$ac_ext
5770
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5771
# The linker can only warn and ignore the option if not recognized
5772
# So say no if there are warnings
5773
if test -s conftest.err; then
5774
# Append any errors to the config.log.
5775
cat conftest.err 1>&5
5776
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
5777
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5778
if diff conftest.exp conftest.er2 >/dev/null; then
5779
lt_prog_compiler_static_works=yes
5782
lt_prog_compiler_static_works=yes
5786
LDFLAGS="$save_LDFLAGS"
5789
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5790
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5792
if test x"$lt_prog_compiler_static_works" = xyes; then
5795
lt_prog_compiler_static=
5799
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5800
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5801
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
5802
echo $ECHO_N "(cached) $ECHO_C" >&6
5804
lt_cv_prog_compiler_c_o=no
5805
$rm -r conftest 2>/dev/null
5809
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5811
lt_compiler_flag="-o out/conftest2.$ac_objext"
5812
# Insert the option either (1) after the last *FLAGS variable, or
5813
# (2) before a word containing "conftest.", or (3) at the end.
5814
# Note that $ac_compile itself does not contain backslashes and begins
5815
# with a dollar sign (not a hyphen), so the echo should work correctly.
5816
lt_compile=`echo "$ac_compile" | $SED \
5817
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5818
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5819
-e 's:$: $lt_compiler_flag:'`
5820
(eval echo "\"\$as_me:5820: $lt_compile\"" >&5)
5821
(eval "$lt_compile" 2>out/conftest.err)
5823
cat out/conftest.err >&5
5824
echo "$as_me:5824: \$? = $ac_status" >&5
5825
if (exit $ac_status) && test -s out/conftest2.$ac_objext
5827
# The compiler can only warn and ignore the option if not recognized
5828
# So say no if there are warnings
5829
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
5830
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
5831
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
5832
lt_cv_prog_compiler_c_o=yes
5837
# SGI C++ compiler will create directory out/ii_files/ for
5838
# template instantiation
5839
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
5840
$rm out/* && rmdir out
5846
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
5847
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
5850
hard_links="nottested"
5851
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
5852
# do not overwrite the value of need_locks provided by the user
5853
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5854
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5857
ln conftest.a conftest.b 2>/dev/null && hard_links=no
5859
ln conftest.a conftest.b 2>&5 || hard_links=no
5860
ln conftest.a conftest.b 2>/dev/null && hard_links=no
5861
echo "$as_me:$LINENO: result: $hard_links" >&5
5862
echo "${ECHO_T}$hard_links" >&6
5863
if test "$hard_links" = no; then
5864
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5865
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5872
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5873
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
5876
allow_undefined_flag=
5877
enable_shared_with_static_runtimes=no
5879
archive_expsym_cmds=
5880
old_archive_From_new_cmds=
5881
old_archive_from_expsyms_cmds=
5882
export_dynamic_flag_spec=
5883
whole_archive_flag_spec=
5884
thread_safe_flag_spec=
5885
hardcode_libdir_flag_spec=
5886
hardcode_libdir_flag_spec_ld=
5887
hardcode_libdir_separator=
5890
hardcode_shlibpath_var=unsupported
5891
link_all_deplibs=unknown
5892
hardcode_automatic=no
5895
always_export_symbols=no
5896
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5897
# include_expsyms should be a list of space-separated symbols to be *always*
5898
# included in the symbol list
5900
# exclude_expsyms can be an extended regexp of symbols to exclude
5901
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5902
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5903
# as well as any symbol that contains `d'.
5904
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5905
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5906
# platforms (ab)use it in PIC code, but their linkers get confused if
5907
# the symbol is explicitly referenced. Since portable code cannot
5908
# rely on this symbol name, it's probably fine to never include it in
5909
# preloaded symbol tables.
5910
extract_expsyms_cmds=
5911
# Just being paranoid about ensuring that cc_basename is set.
5912
for cc_temp in $compiler""; do
5914
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5915
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5920
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5923
cygwin* | mingw* | pw32*)
5924
# FIXME: the MSVC++ port hasn't been tested in a loooong time
5925
# When not using gcc, we currently assume that we are using
5926
# Microsoft Visual C++.
5927
if test "$GCC" != yes; then
5932
# we just hope/assume this is gcc and not c89 (= MSVC++)
5941
if test "$with_gnu_ld" = yes; then
5942
# If archive_cmds runs LD, not CC, wlarc should be empty
5945
# Set some defaults for GNU ld with shared library support. These
5946
# are reset later if shared libraries are not supported. Putting them
5947
# here allows them to be overridden if necessary.
5948
runpath_var=LD_RUN_PATH
5949
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5950
export_dynamic_flag_spec='${wl}--export-dynamic'
5951
# ancient GNU ld didn't support --whole-archive et. al.
5952
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5953
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5955
whole_archive_flag_spec=
5957
supports_anon_versioning=no
5958
case `$LD -v 2>/dev/null` in
5959
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
5960
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5961
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5962
*\ 2.11.*) ;; # other 2.11 versions
5963
*) supports_anon_versioning=yes ;;
5966
# See if GNU ld supports shared libraries.
5968
aix3* | aix4* | aix5*)
5969
# On AIX/PPC, the GNU linker is very broken
5970
if test "$host_cpu" != ia64; then
5974
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5975
*** to be unable to reliably create shared libraries on AIX.
5976
*** Therefore, libtool is disabling shared libraries support. If you
5977
*** really care for shared libraries, you may want to modify your PATH
5978
*** so that a non-GNU linker is found, and then restart.
5985
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)'
5986
hardcode_libdir_flag_spec='-L$libdir'
5987
hardcode_minus_L=yes
5989
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5990
# that the semantics of dynamic libraries on AmigaOS, at least up
5991
# to version 4, is to share data among multiple programs linked
5992
# with the same dynamic library. Since this doesn't match the
5993
# behavior of shared libraries on other platforms, we can't use
5999
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6000
allow_undefined_flag=unsupported
6001
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6002
# support --undefined. This deserves some investigation. FIXME
6003
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6009
cygwin* | mingw* | pw32*)
6010
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6011
# as there is no search path for DLLs.
6012
hardcode_libdir_flag_spec='-L$libdir'
6013
allow_undefined_flag=unsupported
6014
always_export_symbols=no
6015
enable_shared_with_static_runtimes=yes
6016
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6018
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6019
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6020
# If the export-symbols file already is a .def file (1st line
6021
# is EXPORTS), use it as is; otherwise, prepend...
6022
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6023
cp $export_symbols $output_objdir/$soname.def;
6025
echo EXPORTS > $output_objdir/$soname.def;
6026
cat $export_symbols >> $output_objdir/$soname.def;
6028
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6036
hardcode_shlibpath_var=no
6037
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6038
export_dynamic_flag_spec='${wl}-E'
6039
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6040
# Instead, shared libraries are loaded at an image base (0x10000000 by
6041
# default) and relocated if they conflict, which is a slow very memory
6042
# consuming and fragmenting process. To avoid this, we pick a random,
6043
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6044
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6045
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6046
archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6050
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6052
case $cc_basename,$host_cpu in
6053
pgcc*) # Portland Group C compiler
6054
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6055
tmp_addflag=' $pic_flag'
6057
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6058
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6059
tmp_addflag=' $pic_flag -Mnomain' ;;
6060
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6061
tmp_addflag=' -i_dynamic' ;;
6062
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6063
tmp_addflag=' -i_dynamic -nofor_main' ;;
6064
ifc* | ifort*) # Intel Fortran compiler
6065
tmp_addflag=' -nofor_main' ;;
6067
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6069
if test $supports_anon_versioning = yes; then
6070
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6071
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6072
$echo "local: *; };" >> $output_objdir/$libname.ver~
6073
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6081
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6082
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6083
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6086
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6087
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6092
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6096
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6097
*** create shared libraries on Solaris systems. Therefore, libtool
6098
*** is disabling shared libraries support. We urge you to upgrade GNU
6099
*** binutils to release 2.9.1 or newer. Another option is to modify
6100
*** your PATH or compiler configuration so that the native linker is
6101
*** used, and then restart.
6104
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6105
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6106
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6112
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6113
case `$LD -v 2>&1` in
6114
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6118
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6119
*** reliably create shared libraries on SCO systems. Therefore, libtool
6120
*** is disabling shared libraries support. We urge you to upgrade GNU
6121
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6122
*** your PATH or compiler configuration so that the native linker is
6123
*** used, and then restart.
6128
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6129
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6130
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6131
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6140
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6143
hardcode_shlibpath_var=no
6147
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6148
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6149
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6156
if test "$ld_shlibs" = no; then
6158
hardcode_libdir_flag_spec=
6159
export_dynamic_flag_spec=
6160
whole_archive_flag_spec=
6163
# PORTME fill in a description of your system's linker (not GNU ld)
6166
allow_undefined_flag=unsupported
6167
always_export_symbols=yes
6168
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'
6169
# Note: this linker hardcodes the directories in LIBPATH if there
6170
# are no directories specified by -L.
6171
hardcode_minus_L=yes
6172
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6173
# Neither direct hardcoding nor static linking is supported with a
6175
hardcode_direct=unsupported
6180
if test "$host_cpu" = ia64; then
6181
# On IA64, the linker does run time linking by default, so we don't
6182
# have to do anything special.
6183
aix_use_runtimelinking=no
6184
exp_sym_flag='-Bexport'
6187
# If we're using GNU nm, then we don't want the "-C" option.
6188
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6189
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6190
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'
6192
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'
6194
aix_use_runtimelinking=no
6196
# Test if we are trying to use run time linking or normal
6197
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6198
# need to do runtime linking.
6199
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6200
for ld_flag in $LDFLAGS; do
6201
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6202
aix_use_runtimelinking=yes
6209
exp_sym_flag='-bexport'
6210
no_entry_flag='-bnoentry'
6213
# When large executables or shared objects are built, AIX ld can
6214
# have problems creating the table of contents. If linking a library
6215
# or program results in "error TOC overflow" add -mminimal-toc to
6216
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6217
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6221
hardcode_libdir_separator=':'
6222
link_all_deplibs=yes
6224
if test "$GCC" = yes; then
6225
case $host_os in aix4.[012]|aix4.[012].*)
6226
# We only want to do this on AIX 4.2 and lower, the check
6227
# below for broken collect2 doesn't work under 4.3+
6228
collect2name=`${CC} -print-prog-name=collect2`
6229
if test -f "$collect2name" && \
6230
strings "$collect2name" | grep resolve_lib_name >/dev/null
6232
# We have reworked collect2
6235
# We have old collect2
6236
hardcode_direct=unsupported
6237
# It fails to find uninstalled libraries when the uninstalled
6238
# path is not listed in the libpath. Setting hardcode_minus_L
6239
# to unsupported forces relinking
6240
hardcode_minus_L=yes
6241
hardcode_libdir_flag_spec='-L$libdir'
6242
hardcode_libdir_separator=
6246
shared_flag='-shared'
6247
if test "$aix_use_runtimelinking" = yes; then
6248
shared_flag="$shared_flag "'${wl}-G'
6252
if test "$host_cpu" = ia64; then
6253
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6254
# chokes on -Wl,-G. The following line is correct:
6257
if test "$aix_use_runtimelinking" = yes; then
6258
shared_flag='${wl}-G'
6260
shared_flag='${wl}-bM:SRE'
6265
# It seems that -bexpall does not export symbols beginning with
6266
# underscore (_), so it is better to generate a list of symbols to export.
6267
always_export_symbols=yes
6268
if test "$aix_use_runtimelinking" = yes; then
6269
# Warning - without using the other runtime loading flags (-brtl),
6270
# -berok will link without error, but may produce a broken library.
6271
allow_undefined_flag='-berok'
6272
# Determine the default libpath from the value encoded in an empty executable.
6273
cat >conftest.$ac_ext <<_ACEOF
6276
cat confdefs.h >>conftest.$ac_ext
6277
cat >>conftest.$ac_ext <<_ACEOF
6278
/* end confdefs.h. */
6288
rm -f conftest.$ac_objext conftest$ac_exeext
6289
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6290
(eval $ac_link) 2>conftest.er1
6292
grep -v '^ *+' conftest.er1 >conftest.err
6294
cat conftest.err >&5
6295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296
(exit $ac_status); } &&
6297
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6298
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302
(exit $ac_status); }; } &&
6303
{ ac_try='test -s conftest$ac_exeext'
6304
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308
(exit $ac_status); }; }; then
6310
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6312
# Check for a 64-bit object if we didn't find anything.
6313
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; }
6316
echo "$as_me: failed program was:" >&5
6317
sed 's/^/| /' conftest.$ac_ext >&5
6320
rm -f conftest.err conftest.$ac_objext \
6321
conftest$ac_exeext conftest.$ac_ext
6322
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6324
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6325
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6327
if test "$host_cpu" = ia64; then
6328
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6329
allow_undefined_flag="-z nodefs"
6330
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6332
# Determine the default libpath from the value encoded in an empty executable.
6333
cat >conftest.$ac_ext <<_ACEOF
6336
cat confdefs.h >>conftest.$ac_ext
6337
cat >>conftest.$ac_ext <<_ACEOF
6338
/* end confdefs.h. */
6348
rm -f conftest.$ac_objext conftest$ac_exeext
6349
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6350
(eval $ac_link) 2>conftest.er1
6352
grep -v '^ *+' conftest.er1 >conftest.err
6354
cat conftest.err >&5
6355
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356
(exit $ac_status); } &&
6357
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6358
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362
(exit $ac_status); }; } &&
6363
{ ac_try='test -s conftest$ac_exeext'
6364
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368
(exit $ac_status); }; }; then
6370
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6372
# Check for a 64-bit object if we didn't find anything.
6373
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; }
6376
echo "$as_me: failed program was:" >&5
6377
sed 's/^/| /' conftest.$ac_ext >&5
6380
rm -f conftest.err conftest.$ac_objext \
6381
conftest$ac_exeext conftest.$ac_ext
6382
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6384
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6385
# Warning - without using the other run time loading flags,
6386
# -berok will link without error, but may produce a broken library.
6387
no_undefined_flag=' ${wl}-bernotok'
6388
allow_undefined_flag=' ${wl}-berok'
6389
# Exported symbols can be pulled into shared objects from archives
6390
whole_archive_flag_spec='$convenience'
6391
archive_cmds_need_lc=yes
6392
# This is similar to how AIX traditionally builds its shared libraries.
6393
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6399
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)'
6400
hardcode_libdir_flag_spec='-L$libdir'
6401
hardcode_minus_L=yes
6402
# see comment about different semantics on the GNU ld section
6407
export_dynamic_flag_spec=-rdynamic
6410
cygwin* | mingw* | pw32*)
6411
# When not using gcc, we currently assume that we are using
6412
# Microsoft Visual C++.
6413
# hardcode_libdir_flag_spec is actually meaningless, as there is
6414
# no search path for DLLs.
6415
hardcode_libdir_flag_spec=' '
6416
allow_undefined_flag=unsupported
6417
# Tell ltmain to make .lib files, not .a files.
6419
# Tell ltmain to make .dll files, not .so files.
6421
# FIXME: Setting linknames here is a bad hack.
6422
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6423
# The linker will automatically build a .lib file if we build a DLL.
6424
old_archive_From_new_cmds='true'
6425
# FIXME: Should let the user specify the lib program.
6426
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6427
fix_srcfile_path='`cygpath -w "$srcfile"`'
6428
enable_shared_with_static_runtimes=yes
6431
darwin* | rhapsody*)
6433
rhapsody* | darwin1.[012])
6434
allow_undefined_flag='${wl}-undefined ${wl}suppress'
6437
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6438
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6440
case ${MACOSX_DEPLOYMENT_TARGET} in
6442
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6445
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6451
archive_cmds_need_lc=no
6453
hardcode_automatic=yes
6454
hardcode_shlibpath_var=unsupported
6455
whole_archive_flag_spec=''
6456
link_all_deplibs=yes
6457
if test "$GCC" = yes ; then
6458
output_verbose_link_cmd='echo'
6459
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6460
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6461
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6462
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}'
6463
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}'
6465
case $cc_basename in
6467
output_verbose_link_cmd='echo'
6468
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6469
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6470
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6471
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6472
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}'
6482
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6483
hardcode_libdir_flag_spec='-L$libdir'
6484
hardcode_shlibpath_var=no
6491
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6492
# support. Future versions do this automatically, but an explicit c++rt0.o
6493
# does not break anything, and helps significantly (at the cost of a little
6496
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6497
hardcode_libdir_flag_spec='-R$libdir'
6499
hardcode_shlibpath_var=no
6502
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
6504
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6506
hardcode_minus_L=yes
6507
hardcode_shlibpath_var=no
6510
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6511
freebsd* | dragonfly*)
6512
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6513
hardcode_libdir_flag_spec='-R$libdir'
6515
hardcode_shlibpath_var=no
6518
# GNU/kFreeBSD uses gcc -shared to do shared libraries.
6520
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6521
hardcode_libdir_flag_spec='-R$libdir'
6523
hardcode_shlibpath_var=no
6528
if test "$GCC" = yes; then
6529
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'
6531
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'
6533
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6534
hardcode_libdir_separator=:
6537
# hardcode_minus_L: Not really in the search PATH,
6538
# but as the default location of the library.
6539
hardcode_minus_L=yes
6540
export_dynamic_flag_spec='${wl}-E'
6544
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6545
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6547
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6549
if test "$with_gnu_ld" = no; then
6550
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6551
hardcode_libdir_separator=:
6554
export_dynamic_flag_spec='${wl}-E'
6556
# hardcode_minus_L: Not really in the search PATH,
6557
# but as the default location of the library.
6558
hardcode_minus_L=yes
6563
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6566
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6569
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6572
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6578
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6581
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6584
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6588
if test "$with_gnu_ld" = no; then
6589
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6590
hardcode_libdir_separator=:
6594
hardcode_libdir_flag_spec_ld='+b $libdir'
6596
hardcode_shlibpath_var=no
6600
export_dynamic_flag_spec='${wl}-E'
6602
# hardcode_minus_L: Not really in the search PATH,
6603
# but as the default location of the library.
6604
hardcode_minus_L=yes
6610
irix5* | irix6* | nonstopux*)
6611
if test "$GCC" = yes; then
6612
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'
6614
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'
6615
hardcode_libdir_flag_spec_ld='-rpath $libdir'
6617
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6618
hardcode_libdir_separator=:
6619
link_all_deplibs=yes
6622
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6623
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6624
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6626
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6628
hardcode_libdir_flag_spec='-R$libdir'
6630
hardcode_shlibpath_var=no
6634
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6636
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6637
hardcode_libdir_separator=:
6638
hardcode_shlibpath_var=no
6643
hardcode_shlibpath_var=no
6644
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6645
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6646
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6647
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6648
export_dynamic_flag_spec='${wl}-E'
6651
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6652
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6653
hardcode_libdir_flag_spec='-R$libdir'
6656
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6657
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6664
hardcode_libdir_flag_spec='-L$libdir'
6665
hardcode_minus_L=yes
6666
allow_undefined_flag=unsupported
6667
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'
6668
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6672
if test "$GCC" = yes; then
6673
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6674
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'
6676
allow_undefined_flag=' -expect_unresolved \*'
6677
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'
6679
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6680
hardcode_libdir_separator=:
6683
osf4* | osf5*) # as osf3* with the addition of -msym flag
6684
if test "$GCC" = yes; then
6685
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6686
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'
6687
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6689
allow_undefined_flag=' -expect_unresolved \*'
6690
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'
6691
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6692
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
6694
# Both c and cxx compiler support -rpath directly
6695
hardcode_libdir_flag_spec='-rpath $libdir'
6697
hardcode_libdir_separator=:
6701
no_undefined_flag=' -z text'
6702
if test "$GCC" = yes; then
6704
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6705
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6706
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6709
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6710
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6711
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6713
hardcode_libdir_flag_spec='-R$libdir'
6714
hardcode_shlibpath_var=no
6716
solaris2.[0-5] | solaris2.[0-5].*) ;;
6718
# The compiler driver will combine linker options so we
6719
# cannot just pass the convience library names through
6720
# without $wl, iff we do not link with $LD.
6721
# Luckily, gcc supports the same syntax we need for Sun Studio.
6722
# Supported since Solaris 2.6 (maybe 2.5.1?)
6725
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6727
whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
6730
link_all_deplibs=yes
6734
if test "x$host_vendor" = xsequent; then
6735
# Use $CC to link under sequent, because it throws in some extra .o
6736
# files that make .init and .fini sections work.
6737
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6739
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6741
hardcode_libdir_flag_spec='-L$libdir'
6743
hardcode_minus_L=yes
6744
hardcode_shlibpath_var=no
6748
case $host_vendor in
6750
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6751
hardcode_direct=yes # is this really true???
6754
## LD is ld it makes a PLAMLIB
6755
## CC just makes a GrossModule.
6756
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6757
reload_cmds='$CC -r -o $output$reload_objs'
6761
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6762
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6765
runpath_var='LD_RUN_PATH'
6766
hardcode_shlibpath_var=no
6770
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6771
hardcode_shlibpath_var=no
6772
export_dynamic_flag_spec='-Bexport'
6776
if test -d /usr/nec; then
6777
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6778
hardcode_shlibpath_var=no
6779
runpath_var=LD_RUN_PATH
6780
hardcode_runpath_var=yes
6785
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
6786
no_undefined_flag='${wl}-z,text'
6787
archive_cmds_need_lc=no
6788
hardcode_shlibpath_var=no
6789
runpath_var='LD_RUN_PATH'
6791
if test "$GCC" = yes; then
6792
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6793
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6795
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6796
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6800
sysv5* | sco3.2v5* | sco5v6*)
6801
# Note: We can NOT use -z defs as we might desire, because we do not
6802
# link with -lc, and that would cause any symbols used from libc to
6803
# always be unresolved, which means just about no library would
6804
# ever link correctly. If we're not using GNU ld we use -z text
6805
# though, which does catch some bad symbols but isn't as heavy-handed
6807
no_undefined_flag='${wl}-z,text'
6808
allow_undefined_flag='${wl}-z,nodefs'
6809
archive_cmds_need_lc=no
6810
hardcode_shlibpath_var=no
6811
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6812
hardcode_libdir_separator=':'
6813
link_all_deplibs=yes
6814
export_dynamic_flag_spec='${wl}-Bexport'
6815
runpath_var='LD_RUN_PATH'
6817
if test "$GCC" = yes; then
6818
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6819
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6821
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6822
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6827
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6828
hardcode_libdir_flag_spec='-L$libdir'
6829
hardcode_shlibpath_var=no
6838
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6839
echo "${ECHO_T}$ld_shlibs" >&6
6840
test "$ld_shlibs" = no && can_build_shared=no
6843
# Do we need to explicitly link libc?
6845
case "x$archive_cmds_need_lc" in
6847
# Assume -lc should be added
6848
archive_cmds_need_lc=yes
6850
if test "$enable_shared" = yes && test "$GCC" = yes; then
6851
case $archive_cmds in
6853
# FIXME: we may have to deal with multi-command sequences.
6856
# Test whether the compiler implicitly links with -lc since on some
6857
# systems, -lgcc has to come before -lc. If gcc already passes -lc
6858
# to ld, don't add -lc before -lgcc.
6859
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6860
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6862
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6864
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6865
(eval $ac_compile) 2>&5
6867
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868
(exit $ac_status); } 2>conftest.err; then
6871
libobjs=conftest.$ac_objext
6873
wl=$lt_prog_compiler_wl
6874
pic_flag=$lt_prog_compiler_pic
6880
lt_save_allow_undefined_flag=$allow_undefined_flag
6881
allow_undefined_flag=
6882
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6883
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886
(exit $ac_status); }
6888
archive_cmds_need_lc=no
6890
archive_cmds_need_lc=yes
6892
allow_undefined_flag=$lt_save_allow_undefined_flag
6894
cat conftest.err 1>&5
6897
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6898
echo "${ECHO_T}$archive_cmds_need_lc" >&6
6905
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6906
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6908
libname_spec='lib$name'
6916
shlibpath_overrides_runpath=unknown
6918
dynamic_linker="$host_os ld.so"
6919
sys_lib_dlsearch_path_spec="/lib /usr/lib"
6920
if test "$GCC" = yes; then
6921
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6922
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6923
# if the path contains ";" then we assume it to be the separator
6924
# otherwise default to the standard path separator (i.e. ":") - it is
6925
# assumed that no part of a normal pathname contains ";" but that should
6926
# okay in the real world where ";" in dirpaths is itself problematic.
6927
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6929
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6932
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6934
need_lib_prefix=unknown
6935
hardcode_into_libs=no
6937
# when you set need_version to no, make sure it does not cause -set_version
6938
# flags to be left without arguments
6939
need_version=unknown
6944
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6945
shlibpath_var=LIBPATH
6947
# AIX 3 has no versioning support, so we append a major version to the name.
6948
soname_spec='${libname}${release}${shared_ext}$major'
6955
hardcode_into_libs=yes
6956
if test "$host_cpu" = ia64; then
6957
# AIX 5 supports IA64
6958
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6959
shlibpath_var=LD_LIBRARY_PATH
6961
# With GCC up to 2.95.x, collect2 would create an import file
6962
# for dependence libraries. The import file would start with
6963
# the line `#! .'. This would cause the generated library to
6964
# depend on `.', always an invalid library. This was fixed in
6965
# development snapshots of GCC prior to 3.0.
6967
aix4 | aix4.[01] | aix4.[01].*)
6968
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6970
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6977
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6978
# soname into executable. Probably we can add versioning support to
6979
# collect2, so additional links can be useful in future.
6980
if test "$aix_use_runtimelinking" = yes; then
6981
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
6982
# instead of lib<name>.a to let people know that these are not
6983
# typical AIX shared libraries.
6984
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6986
# We preserve .a as extension for shared libraries through AIX4.2
6987
# and later when we are not doing run time linking.
6988
library_names_spec='${libname}${release}.a $libname.a'
6989
soname_spec='${libname}${release}${shared_ext}$major'
6991
shlibpath_var=LIBPATH
6996
library_names_spec='$libname.ixlibrary $libname.a'
6997
# Create ${libname}_ixlibrary.a entries in /sys/libs.
6998
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'
7002
library_names_spec='${libname}${shared_ext}'
7003
dynamic_linker="$host_os ld.so"
7004
shlibpath_var=LIBRARY_PATH
7010
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7011
soname_spec='${libname}${release}${shared_ext}$major'
7012
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7013
shlibpath_var=LD_LIBRARY_PATH
7014
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7015
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7016
# the default ld.so.conf also contains /usr/contrib/lib and
7017
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7018
# libtool to hard-code these into programs
7021
cygwin* | mingw* | pw32*)
7022
version_type=windows
7027
case $GCC,$host_os in
7028
yes,cygwin* | yes,mingw* | yes,pw32*)
7029
library_names_spec='$libname.dll.a'
7030
# DLL is installed to $(libdir)/../bin by postinstall_cmds
7031
postinstall_cmds='base_file=`basename \${file}`~
7032
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7033
dldir=$destdir/`dirname \$dlpath`~
7034
test -d \$dldir || mkdir -p \$dldir~
7035
$install_prog $dir/$dlname \$dldir/$dlname~
7036
chmod a+x \$dldir/$dlname'
7037
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7038
dlpath=$dir/\$dldll~
7040
shlibpath_overrides_runpath=yes
7044
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
7045
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7046
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7049
# MinGW DLLs use traditional 'lib' prefix
7050
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7051
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7052
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7053
# It is most probably a Windows format PATH printed by
7054
# mingw gcc, but we are running on Cygwin. Gcc prints its search
7055
# path with ; separators, and with drive letters. We can handle the
7056
# drive letters (cygwin fileutils understands them), so leave them,
7057
# especially as we might pass files found there to a mingw objdump,
7058
# which wouldn't understand a cygwinified path. Ahh.
7059
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7061
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7065
# pw32 DLLs use 'pw' prefix rather than 'lib'
7066
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7072
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7075
dynamic_linker='Win32 ld.exe'
7076
# FIXME: first we should search . and the directory the executable is in
7080
darwin* | rhapsody*)
7081
dynamic_linker="$host_os dyld"
7085
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7086
soname_spec='${libname}${release}${major}$shared_ext'
7087
shlibpath_overrides_runpath=yes
7088
shlibpath_var=DYLD_LIBRARY_PATH
7089
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7090
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7091
if test "$GCC" = yes; then
7092
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"`
7094
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7096
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7103
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7104
soname_spec='${libname}${release}${shared_ext}$major'
7105
shlibpath_var=LD_LIBRARY_PATH
7116
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7117
soname_spec='${libname}${release}${shared_ext}$major'
7118
shlibpath_var=LD_LIBRARY_PATH
7119
shlibpath_overrides_runpath=no
7120
hardcode_into_libs=yes
7121
dynamic_linker='GNU ld.so'
7124
freebsd* | dragonfly*)
7125
# DragonFly does not have aout. When/if they implement a new
7126
# versioning mechanism, adjust this.
7127
if test -x /usr/bin/objformat; then
7128
objformat=`/usr/bin/objformat`
7131
freebsd[123]*) objformat=aout ;;
7135
version_type=freebsd-$objformat
7136
case $version_type in
7138
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7143
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7147
shlibpath_var=LD_LIBRARY_PATH
7150
shlibpath_overrides_runpath=yes
7152
freebsd3.[01]* | freebsdelf3.[01]*)
7153
shlibpath_overrides_runpath=yes
7154
hardcode_into_libs=yes
7156
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7157
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7158
shlibpath_overrides_runpath=no
7159
hardcode_into_libs=yes
7161
freebsd*) # from 4.6 on
7162
shlibpath_overrides_runpath=yes
7163
hardcode_into_libs=yes
7172
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7173
soname_spec='${libname}${release}${shared_ext}$major'
7174
shlibpath_var=LD_LIBRARY_PATH
7175
hardcode_into_libs=yes
7178
hpux9* | hpux10* | hpux11*)
7179
# Give a soname corresponding to the major version so that dld.sl refuses to
7180
# link against other versions.
7187
hardcode_into_libs=yes
7188
dynamic_linker="$host_os dld.so"
7189
shlibpath_var=LD_LIBRARY_PATH
7190
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7191
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7192
soname_spec='${libname}${release}${shared_ext}$major'
7193
if test "X$HPUX_IA64_MODE" = X32; then
7194
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7196
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7198
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7202
hardcode_into_libs=yes
7203
dynamic_linker="$host_os dld.sl"
7204
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7205
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7206
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7207
soname_spec='${libname}${release}${shared_ext}$major'
7208
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7209
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7213
dynamic_linker="$host_os dld.sl"
7214
shlibpath_var=SHLIB_PATH
7215
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7216
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7217
soname_spec='${libname}${release}${shared_ext}$major'
7220
# HP-UX runs *really* slowly unless shared libraries are mode 555.
7221
postinstall_cmds='chmod 555 $lib'
7228
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7229
soname_spec='${libname}${release}${shared_ext}$major'
7230
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
7231
shlibpath_var=LD_LIBRARY_PATH
7232
shlibpath_overrides_runpath=no
7233
hardcode_into_libs=yes
7236
irix5* | irix6* | nonstopux*)
7238
nonstopux*) version_type=nonstopux ;;
7240
if test "$lt_cv_prog_gnu_ld" = yes; then
7248
soname_spec='${libname}${release}${shared_ext}$major'
7249
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7251
irix5* | nonstopux*)
7255
case $LD in # libtool.m4 will add one of these switches to LD
7256
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7257
libsuff= shlibsuff= libmagic=32-bit;;
7258
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7259
libsuff=32 shlibsuff=N32 libmagic=N32;;
7260
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7261
libsuff=64 shlibsuff=64 libmagic=64-bit;;
7262
*) libsuff= shlibsuff= libmagic=never-match;;
7266
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7267
shlibpath_overrides_runpath=no
7268
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7269
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7270
hardcode_into_libs=yes
7273
# No shared lib support for Linux oldld, aout, or coff.
7274
linux*oldld* | linux*aout* | linux*coff*)
7278
# This must be Linux ELF.
7283
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7284
soname_spec='${libname}${release}${shared_ext}$major'
7285
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7286
shlibpath_var=LD_LIBRARY_PATH
7287
shlibpath_overrides_runpath=no
7288
# This implies no fast_install, which is unacceptable.
7289
# Some rework will be needed to allow for fast_install
7290
# before this can be enabled.
7291
hardcode_into_libs=yes
7293
# Append ld.so.conf contents to the search path
7294
if test -f /etc/ld.so.conf; then
7295
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
7296
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7299
# We used to test for /lib/ld.so.1 and disable shared libraries on
7300
# powerpc, because MkLinux only supported shared libraries with the
7301
# GNU dynamic linker. Since this was broken with cross compilers,
7302
# most powerpc-linux boxes support dynamic linking these days and
7303
# people can always --disable-shared, the test was removed, and we
7304
# assume the GNU/Linux dynamic linker is in use.
7305
dynamic_linker='GNU/Linux ld.so'
7312
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7313
soname_spec='${libname}${release}${shared_ext}$major'
7314
shlibpath_var=LD_LIBRARY_PATH
7315
shlibpath_overrides_runpath=no
7316
hardcode_into_libs=yes
7317
dynamic_linker='NetBSD ld.elf_so'
7324
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7325
soname_spec='${libname}${release}${shared_ext}$major'
7326
shlibpath_var=LD_LIBRARY_PATH
7327
shlibpath_overrides_runpath=no
7328
hardcode_into_libs=yes
7329
dynamic_linker='GNU ld.so'
7336
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7337
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7338
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7339
dynamic_linker='NetBSD (a.out) ld.so'
7341
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7342
soname_spec='${libname}${release}${shared_ext}$major'
7343
dynamic_linker='NetBSD ld.elf_so'
7345
shlibpath_var=LD_LIBRARY_PATH
7346
shlibpath_overrides_runpath=yes
7347
hardcode_into_libs=yes
7352
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7353
shlibpath_var=LD_LIBRARY_PATH
7354
shlibpath_overrides_runpath=yes
7361
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7362
soname_spec='${libname}${release}${shared_ext}$major'
7363
shlibpath_var=LD_LIBRARY_PATH
7364
shlibpath_overrides_runpath=yes
7369
sys_lib_dlsearch_path_spec="/usr/lib"
7371
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
7373
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
7374
*) need_version=no ;;
7376
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7377
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7378
shlibpath_var=LD_LIBRARY_PATH
7379
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7381
openbsd2.[89] | openbsd2.[89].*)
7382
shlibpath_overrides_runpath=no
7385
shlibpath_overrides_runpath=yes
7389
shlibpath_overrides_runpath=yes
7394
libname_spec='$name'
7397
library_names_spec='$libname${shared_ext} $libname.a'
7398
dynamic_linker='OS/2 ld.exe'
7399
shlibpath_var=LIBPATH
7402
osf3* | osf4* | osf5*)
7406
soname_spec='${libname}${release}${shared_ext}$major'
7407
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7408
shlibpath_var=LD_LIBRARY_PATH
7409
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7410
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7417
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7418
soname_spec='${libname}${release}${shared_ext}$major'
7419
shlibpath_var=LD_LIBRARY_PATH
7420
shlibpath_overrides_runpath=yes
7421
hardcode_into_libs=yes
7422
# ldd complains unless libraries are executable
7423
postinstall_cmds='chmod +x $lib'
7428
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7429
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7430
shlibpath_var=LD_LIBRARY_PATH
7431
shlibpath_overrides_runpath=yes
7432
if test "$with_gnu_ld" = yes; then
7440
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7441
soname_spec='${libname}${release}${shared_ext}$major'
7442
shlibpath_var=LD_LIBRARY_PATH
7443
case $host_vendor in
7445
shlibpath_overrides_runpath=no
7447
export_dynamic_flag_spec='${wl}-Blargedynsym'
7448
runpath_var=LD_RUN_PATH
7456
shlibpath_overrides_runpath=no
7457
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7463
if test -d /usr/nec ;then
7465
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7466
soname_spec='$libname${shared_ext}.$major'
7467
shlibpath_var=LD_LIBRARY_PATH
7471
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7472
version_type=freebsd-elf
7475
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7476
soname_spec='${libname}${release}${shared_ext}$major'
7477
shlibpath_var=LD_LIBRARY_PATH
7478
hardcode_into_libs=yes
7479
if test "$with_gnu_ld" = yes; then
7480
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
7481
shlibpath_overrides_runpath=no
7483
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
7484
shlibpath_overrides_runpath=yes
7487
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
7491
sys_lib_dlsearch_path_spec='/usr/lib'
7496
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7497
soname_spec='${libname}${release}${shared_ext}$major'
7498
shlibpath_var=LD_LIBRARY_PATH
7505
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7506
echo "${ECHO_T}$dynamic_linker" >&6
7507
test "$dynamic_linker" = no && can_build_shared=no
7509
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7510
if test "$GCC" = yes; then
7511
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7514
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7515
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7517
if test -n "$hardcode_libdir_flag_spec" || \
7518
test -n "$runpath_var" || \
7519
test "X$hardcode_automatic" = "Xyes" ; then
7521
# We can hardcode non-existant directories.
7522
if test "$hardcode_direct" != no &&
7523
# If the only mechanism to avoid hardcoding is shlibpath_var, we
7524
# have to relink, otherwise we might link with an installed library
7525
# when we should be linking with a yet-to-be-installed one
7526
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7527
test "$hardcode_minus_L" != no; then
7528
# Linking always hardcodes the temporary library directory.
7529
hardcode_action=relink
7531
# We can link without hardcoding, and we can hardcode nonexisting dirs.
7532
hardcode_action=immediate
7535
# We cannot hardcode anything, or else we can only hardcode existing
7537
hardcode_action=unsupported
7539
echo "$as_me:$LINENO: result: $hardcode_action" >&5
7540
echo "${ECHO_T}$hardcode_action" >&6
7542
if test "$hardcode_action" = relink; then
7543
# Fast installation is not supported
7544
enable_fast_install=no
7545
elif test "$shlibpath_overrides_runpath" = yes ||
7546
test "$enable_shared" = no; then
7547
# Fast installation is not necessary
7548
enable_fast_install=needless
7553
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7554
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7555
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7556
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7557
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7558
echo "$as_me:$LINENO: result: yes" >&5
7559
echo "${ECHO_T}yes" >&6
7561
# FIXME - insert some real tests, host_os isn't really good enough
7564
if test -n "$STRIP" ; then
7565
striplib="$STRIP -x"
7566
echo "$as_me:$LINENO: result: yes" >&5
7567
echo "${ECHO_T}yes" >&6
7569
echo "$as_me:$LINENO: result: no" >&5
7570
echo "${ECHO_T}no" >&6
7574
echo "$as_me:$LINENO: result: no" >&5
7575
echo "${ECHO_T}no" >&6
7580
if test "x$enable_dlopen" != xyes; then
7581
enable_dlopen=unknown
7582
enable_dlopen_self=unknown
7583
enable_dlopen_self_static=unknown
7590
lt_cv_dlopen="load_add_on"
7592
lt_cv_dlopen_self=yes
7596
lt_cv_dlopen="LoadLibrary"
7601
lt_cv_dlopen="dlopen"
7606
# if libdl is installed we need to link against it
7607
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7608
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7609
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7610
echo $ECHO_N "(cached) $ECHO_C" >&6
7612
ac_check_lib_save_LIBS=$LIBS
7614
cat >conftest.$ac_ext <<_ACEOF
7617
cat confdefs.h >>conftest.$ac_ext
7618
cat >>conftest.$ac_ext <<_ACEOF
7619
/* end confdefs.h. */
7621
/* Override any gcc2 internal prototype to avoid an error. */
7625
/* We use char because int might match the return type of a gcc2
7626
builtin and then its argument prototype would still apply. */
7636
rm -f conftest.$ac_objext conftest$ac_exeext
7637
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7638
(eval $ac_link) 2>conftest.er1
7640
grep -v '^ *+' conftest.er1 >conftest.err
7642
cat conftest.err >&5
7643
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644
(exit $ac_status); } &&
7645
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7646
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650
(exit $ac_status); }; } &&
7651
{ ac_try='test -s conftest$ac_exeext'
7652
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656
(exit $ac_status); }; }; then
7657
ac_cv_lib_dl_dlopen=yes
7659
echo "$as_me: failed program was:" >&5
7660
sed 's/^/| /' conftest.$ac_ext >&5
7662
ac_cv_lib_dl_dlopen=no
7664
rm -f conftest.err conftest.$ac_objext \
7665
conftest$ac_exeext conftest.$ac_ext
7666
LIBS=$ac_check_lib_save_LIBS
7668
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7669
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7670
if test $ac_cv_lib_dl_dlopen = yes; then
7671
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7676
lt_cv_dlopen_self=yes
7683
echo "$as_me:$LINENO: checking for shl_load" >&5
7684
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7685
if test "${ac_cv_func_shl_load+set}" = set; then
7686
echo $ECHO_N "(cached) $ECHO_C" >&6
7688
cat >conftest.$ac_ext <<_ACEOF
7691
cat confdefs.h >>conftest.$ac_ext
7692
cat >>conftest.$ac_ext <<_ACEOF
7693
/* end confdefs.h. */
7694
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7695
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7696
#define shl_load innocuous_shl_load
7698
/* System header to define __stub macros and hopefully few prototypes,
7699
which can conflict with char shl_load (); below.
7700
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7701
<limits.h> exists even on freestanding compilers. */
7704
# include <limits.h>
7706
# include <assert.h>
7711
/* Override any gcc2 internal prototype to avoid an error. */
7716
/* We use char because int might match the return type of a gcc2
7717
builtin and then its argument prototype would still apply. */
7719
/* The GNU C library defines this for functions which it implements
7720
to always fail with ENOSYS. Some functions are actually named
7721
something starting with __ and the normal name is an alias. */
7722
#if defined (__stub_shl_load) || defined (__stub___shl_load)
7725
char (*f) () = shl_load;
7734
return f != shl_load;
7739
rm -f conftest.$ac_objext conftest$ac_exeext
7740
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7741
(eval $ac_link) 2>conftest.er1
7743
grep -v '^ *+' conftest.er1 >conftest.err
7745
cat conftest.err >&5
7746
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747
(exit $ac_status); } &&
7748
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7749
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753
(exit $ac_status); }; } &&
7754
{ ac_try='test -s conftest$ac_exeext'
7755
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759
(exit $ac_status); }; }; then
7760
ac_cv_func_shl_load=yes
7762
echo "$as_me: failed program was:" >&5
7763
sed 's/^/| /' conftest.$ac_ext >&5
7765
ac_cv_func_shl_load=no
7767
rm -f conftest.err conftest.$ac_objext \
7768
conftest$ac_exeext conftest.$ac_ext
7770
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7771
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7772
if test $ac_cv_func_shl_load = yes; then
7773
lt_cv_dlopen="shl_load"
7775
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7776
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7777
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7778
echo $ECHO_N "(cached) $ECHO_C" >&6
7780
ac_check_lib_save_LIBS=$LIBS
7782
cat >conftest.$ac_ext <<_ACEOF
7785
cat confdefs.h >>conftest.$ac_ext
7786
cat >>conftest.$ac_ext <<_ACEOF
7787
/* end confdefs.h. */
7789
/* Override any gcc2 internal prototype to avoid an error. */
7793
/* We use char because int might match the return type of a gcc2
7794
builtin and then its argument prototype would still apply. */
7804
rm -f conftest.$ac_objext conftest$ac_exeext
7805
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7806
(eval $ac_link) 2>conftest.er1
7808
grep -v '^ *+' conftest.er1 >conftest.err
7810
cat conftest.err >&5
7811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812
(exit $ac_status); } &&
7813
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7814
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818
(exit $ac_status); }; } &&
7819
{ ac_try='test -s conftest$ac_exeext'
7820
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824
(exit $ac_status); }; }; then
7825
ac_cv_lib_dld_shl_load=yes
7827
echo "$as_me: failed program was:" >&5
7828
sed 's/^/| /' conftest.$ac_ext >&5
7830
ac_cv_lib_dld_shl_load=no
7832
rm -f conftest.err conftest.$ac_objext \
7833
conftest$ac_exeext conftest.$ac_ext
7834
LIBS=$ac_check_lib_save_LIBS
7836
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7837
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7838
if test $ac_cv_lib_dld_shl_load = yes; then
7839
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7841
echo "$as_me:$LINENO: checking for dlopen" >&5
7842
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7843
if test "${ac_cv_func_dlopen+set}" = set; then
7844
echo $ECHO_N "(cached) $ECHO_C" >&6
7846
cat >conftest.$ac_ext <<_ACEOF
7849
cat confdefs.h >>conftest.$ac_ext
7850
cat >>conftest.$ac_ext <<_ACEOF
7851
/* end confdefs.h. */
7852
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7853
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7854
#define dlopen innocuous_dlopen
7856
/* System header to define __stub macros and hopefully few prototypes,
7857
which can conflict with char dlopen (); below.
7858
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7859
<limits.h> exists even on freestanding compilers. */
7862
# include <limits.h>
7864
# include <assert.h>
7869
/* Override any gcc2 internal prototype to avoid an error. */
7874
/* We use char because int might match the return type of a gcc2
7875
builtin and then its argument prototype would still apply. */
7877
/* The GNU C library defines this for functions which it implements
7878
to always fail with ENOSYS. Some functions are actually named
7879
something starting with __ and the normal name is an alias. */
7880
#if defined (__stub_dlopen) || defined (__stub___dlopen)
7883
char (*f) () = dlopen;
7897
rm -f conftest.$ac_objext conftest$ac_exeext
7898
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7899
(eval $ac_link) 2>conftest.er1
7901
grep -v '^ *+' conftest.er1 >conftest.err
7903
cat conftest.err >&5
7904
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905
(exit $ac_status); } &&
7906
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7907
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911
(exit $ac_status); }; } &&
7912
{ ac_try='test -s conftest$ac_exeext'
7913
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917
(exit $ac_status); }; }; then
7918
ac_cv_func_dlopen=yes
7920
echo "$as_me: failed program was:" >&5
7921
sed 's/^/| /' conftest.$ac_ext >&5
7923
ac_cv_func_dlopen=no
7925
rm -f conftest.err conftest.$ac_objext \
7926
conftest$ac_exeext conftest.$ac_ext
7928
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7929
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7930
if test $ac_cv_func_dlopen = yes; then
7931
lt_cv_dlopen="dlopen"
7933
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7934
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7935
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7936
echo $ECHO_N "(cached) $ECHO_C" >&6
7938
ac_check_lib_save_LIBS=$LIBS
7940
cat >conftest.$ac_ext <<_ACEOF
7943
cat confdefs.h >>conftest.$ac_ext
7944
cat >>conftest.$ac_ext <<_ACEOF
7945
/* end confdefs.h. */
7947
/* Override any gcc2 internal prototype to avoid an error. */
7951
/* We use char because int might match the return type of a gcc2
7952
builtin and then its argument prototype would still apply. */
7962
rm -f conftest.$ac_objext conftest$ac_exeext
7963
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7964
(eval $ac_link) 2>conftest.er1
7966
grep -v '^ *+' conftest.er1 >conftest.err
7968
cat conftest.err >&5
7969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970
(exit $ac_status); } &&
7971
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7972
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976
(exit $ac_status); }; } &&
7977
{ ac_try='test -s conftest$ac_exeext'
7978
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982
(exit $ac_status); }; }; then
7983
ac_cv_lib_dl_dlopen=yes
7985
echo "$as_me: failed program was:" >&5
7986
sed 's/^/| /' conftest.$ac_ext >&5
7988
ac_cv_lib_dl_dlopen=no
7990
rm -f conftest.err conftest.$ac_objext \
7991
conftest$ac_exeext conftest.$ac_ext
7992
LIBS=$ac_check_lib_save_LIBS
7994
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7995
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7996
if test $ac_cv_lib_dl_dlopen = yes; then
7997
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7999
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8000
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8001
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8002
echo $ECHO_N "(cached) $ECHO_C" >&6
8004
ac_check_lib_save_LIBS=$LIBS
8006
cat >conftest.$ac_ext <<_ACEOF
8009
cat confdefs.h >>conftest.$ac_ext
8010
cat >>conftest.$ac_ext <<_ACEOF
8011
/* end confdefs.h. */
8013
/* Override any gcc2 internal prototype to avoid an error. */
8017
/* We use char because int might match the return type of a gcc2
8018
builtin and then its argument prototype would still apply. */
8028
rm -f conftest.$ac_objext conftest$ac_exeext
8029
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8030
(eval $ac_link) 2>conftest.er1
8032
grep -v '^ *+' conftest.er1 >conftest.err
8034
cat conftest.err >&5
8035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036
(exit $ac_status); } &&
8037
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8038
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042
(exit $ac_status); }; } &&
8043
{ ac_try='test -s conftest$ac_exeext'
8044
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048
(exit $ac_status); }; }; then
8049
ac_cv_lib_svld_dlopen=yes
8051
echo "$as_me: failed program was:" >&5
8052
sed 's/^/| /' conftest.$ac_ext >&5
8054
ac_cv_lib_svld_dlopen=no
8056
rm -f conftest.err conftest.$ac_objext \
8057
conftest$ac_exeext conftest.$ac_ext
8058
LIBS=$ac_check_lib_save_LIBS
8060
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8061
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8062
if test $ac_cv_lib_svld_dlopen = yes; then
8063
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8065
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8066
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8067
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8068
echo $ECHO_N "(cached) $ECHO_C" >&6
8070
ac_check_lib_save_LIBS=$LIBS
8072
cat >conftest.$ac_ext <<_ACEOF
8075
cat confdefs.h >>conftest.$ac_ext
8076
cat >>conftest.$ac_ext <<_ACEOF
8077
/* end confdefs.h. */
8079
/* Override any gcc2 internal prototype to avoid an error. */
8083
/* We use char because int might match the return type of a gcc2
8084
builtin and then its argument prototype would still apply. */
8094
rm -f conftest.$ac_objext conftest$ac_exeext
8095
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8096
(eval $ac_link) 2>conftest.er1
8098
grep -v '^ *+' conftest.er1 >conftest.err
8100
cat conftest.err >&5
8101
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102
(exit $ac_status); } &&
8103
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8104
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108
(exit $ac_status); }; } &&
8109
{ ac_try='test -s conftest$ac_exeext'
8110
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114
(exit $ac_status); }; }; then
8115
ac_cv_lib_dld_dld_link=yes
8117
echo "$as_me: failed program was:" >&5
8118
sed 's/^/| /' conftest.$ac_ext >&5
8120
ac_cv_lib_dld_dld_link=no
8122
rm -f conftest.err conftest.$ac_objext \
8123
conftest$ac_exeext conftest.$ac_ext
8124
LIBS=$ac_check_lib_save_LIBS
8126
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8127
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8128
if test $ac_cv_lib_dld_dld_link = yes; then
8129
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8150
if test "x$lt_cv_dlopen" != xno; then
8156
case $lt_cv_dlopen in
8158
save_CPPFLAGS="$CPPFLAGS"
8159
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8161
save_LDFLAGS="$LDFLAGS"
8162
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8165
LIBS="$lt_cv_dlopen_libs $LIBS"
8167
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8168
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8169
if test "${lt_cv_dlopen_self+set}" = set; then
8170
echo $ECHO_N "(cached) $ECHO_C" >&6
8172
if test "$cross_compiling" = yes; then :
8173
lt_cv_dlopen_self=cross
8175
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8176
lt_status=$lt_dlunknown
8177
cat > conftest.$ac_ext <<EOF
8178
#line 8178 "configure"
8179
#include "confdefs.h"
8188
# define LT_DLGLOBAL RTLD_GLOBAL
8191
# define LT_DLGLOBAL DL_GLOBAL
8193
# define LT_DLGLOBAL 0
8197
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8198
find out it does not work in some platform. */
8199
#ifndef LT_DLLAZY_OR_NOW
8201
# define LT_DLLAZY_OR_NOW RTLD_LAZY
8204
# define LT_DLLAZY_OR_NOW DL_LAZY
8207
# define LT_DLLAZY_OR_NOW RTLD_NOW
8210
# define LT_DLLAZY_OR_NOW DL_NOW
8212
# define LT_DLLAZY_OR_NOW 0
8220
extern "C" void exit (int);
8223
void fnord() { int i=42;}
8226
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8227
int status = $lt_dlunknown;
8231
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8232
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8233
/* dlclose (self); */
8241
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8242
(eval $ac_link) 2>&5
8244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8246
(./conftest; exit; ) >&5 2>/dev/null
8249
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8250
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8251
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
8254
# compilation failed
8255
lt_cv_dlopen_self=no
8262
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8263
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8265
if test "x$lt_cv_dlopen_self" = xyes; then
8266
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
8267
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8268
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8269
if test "${lt_cv_dlopen_self_static+set}" = set; then
8270
echo $ECHO_N "(cached) $ECHO_C" >&6
8272
if test "$cross_compiling" = yes; then :
8273
lt_cv_dlopen_self_static=cross
8275
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8276
lt_status=$lt_dlunknown
8277
cat > conftest.$ac_ext <<EOF
8278
#line 8278 "configure"
8279
#include "confdefs.h"
8288
# define LT_DLGLOBAL RTLD_GLOBAL
8291
# define LT_DLGLOBAL DL_GLOBAL
8293
# define LT_DLGLOBAL 0
8297
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8298
find out it does not work in some platform. */
8299
#ifndef LT_DLLAZY_OR_NOW
8301
# define LT_DLLAZY_OR_NOW RTLD_LAZY
8304
# define LT_DLLAZY_OR_NOW DL_LAZY
8307
# define LT_DLLAZY_OR_NOW RTLD_NOW
8310
# define LT_DLLAZY_OR_NOW DL_NOW
8312
# define LT_DLLAZY_OR_NOW 0
8320
extern "C" void exit (int);
8323
void fnord() { int i=42;}
8326
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8327
int status = $lt_dlunknown;
8331
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8332
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8333
/* dlclose (self); */
8341
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8342
(eval $ac_link) 2>&5
8344
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8346
(./conftest; exit; ) >&5 2>/dev/null
8349
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8350
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8351
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
8354
# compilation failed
8355
lt_cv_dlopen_self_static=no
8362
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8363
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8366
CPPFLAGS="$save_CPPFLAGS"
8367
LDFLAGS="$save_LDFLAGS"
8372
case $lt_cv_dlopen_self in
8373
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8374
*) enable_dlopen_self=unknown ;;
8377
case $lt_cv_dlopen_self_static in
8378
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8379
*) enable_dlopen_self_static=unknown ;;
8384
# Report which library types will actually be built
8385
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8386
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8387
echo "$as_me:$LINENO: result: $can_build_shared" >&5
8388
echo "${ECHO_T}$can_build_shared" >&6
8390
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8391
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8392
test "$can_build_shared" = "no" && enable_shared=no
8394
# On AIX, shared libraries and static libraries use the same namespace, and
8395
# are all built from PIC.
8398
test "$enable_shared" = yes && enable_static=no
8399
if test -n "$RANLIB"; then
8400
archive_cmds="$archive_cmds~\$RANLIB \$lib"
8401
postinstall_cmds='$RANLIB $lib'
8406
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8407
test "$enable_shared" = yes && enable_static=no
8411
echo "$as_me:$LINENO: result: $enable_shared" >&5
8412
echo "${ECHO_T}$enable_shared" >&6
8414
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8415
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8416
# Make sure either enable_shared or enable_static is yes.
8417
test "$enable_shared" = yes || enable_static=yes
8418
echo "$as_me:$LINENO: result: $enable_static" >&5
8419
echo "${ECHO_T}$enable_static" >&6
8421
# The else clause should only fire when bootstrapping the
8422
# libtool distribution, otherwise you forgot to ship ltmain.sh
8423
# with your package, and you will get complaints that there are
8424
# no rules to generate ltmain.sh.
8425
if test -f "$ltmain"; then
8426
# See if we are running on zsh, and set the options which allow our commands through
8427
# without removal of \ escapes.
8428
if test -n "${ZSH_VERSION+set}" ; then
8429
setopt NO_GLOB_SUBST
8431
# Now quote all the things that may contain metacharacters while being
8432
# careful not to overquote the AC_SUBSTed values. We take copies of the
8433
# variables and quote the copies for generation of the libtool script.
8434
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
8436
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8437
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8438
deplibs_check_method reload_flag reload_cmds need_locks \
8439
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8440
lt_cv_sys_global_symbol_to_c_name_address \
8441
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8442
old_postinstall_cmds old_postuninstall_cmds \
8446
lt_prog_compiler_wl \
8447
lt_prog_compiler_pic \
8448
lt_prog_compiler_static \
8449
lt_prog_compiler_no_builtin_flag \
8450
export_dynamic_flag_spec \
8451
thread_safe_flag_spec \
8452
whole_archive_flag_spec \
8453
enable_shared_with_static_runtimes \
8455
old_archive_from_new_cmds \
8460
compiler_lib_search_path \
8462
archive_expsym_cmds \
8464
postuninstall_cmds \
8465
old_archive_from_expsyms_cmds \
8466
allow_undefined_flag \
8468
export_symbols_cmds \
8469
hardcode_libdir_flag_spec \
8470
hardcode_libdir_flag_spec_ld \
8471
hardcode_libdir_separator \
8472
hardcode_automatic \
8474
module_expsym_cmds \
8475
lt_cv_prog_compiler_c_o \
8480
old_archive_cmds | \
8481
old_archive_from_new_cmds | \
8483
archive_expsym_cmds | \
8485
module_expsym_cmds | \
8486
old_archive_from_expsyms_cmds | \
8487
export_symbols_cmds | \
8488
extract_expsyms_cmds | reload_cmds | finish_cmds | \
8489
postinstall_cmds | postuninstall_cmds | \
8490
old_postinstall_cmds | old_postuninstall_cmds | \
8491
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8492
# Double-quote double-evaled strings.
8493
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8496
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8502
*'\$0 --fallback-echo"')
8503
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8508
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8510
{ echo "$as_me:$LINENO: creating $ofile" >&5
8511
echo "$as_me: creating $ofile" >&6;}
8513
cat <<__EOF__ >> "$cfgfile"
8516
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8517
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8518
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8520
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8521
# Free Software Foundation, Inc.
8523
# This file is part of GNU Libtool:
8524
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8526
# This program is free software; you can redistribute it and/or modify
8527
# it under the terms of the GNU General Public License as published by
8528
# the Free Software Foundation; either version 2 of the License, or
8529
# (at your option) any later version.
8531
# This program is distributed in the hope that it will be useful, but
8532
# WITHOUT ANY WARRANTY; without even the implied warranty of
8533
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8534
# General Public License for more details.
8536
# You should have received a copy of the GNU General Public License
8537
# along with this program; if not, write to the Free Software
8538
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
8540
# As a special exception to the GNU General Public License, if you
8541
# distribute this file as part of a program that contains a
8542
# configuration script generated by Autoconf, you may include it under
8543
# the same distribution terms that you use for the rest of that program.
8545
# A sed program that does not truncate output.
8548
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
8549
Xsed="$SED -e 1s/^X//"
8551
# The HP-UX ksh and POSIX shell print the target directory to stdout
8553
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8555
# The names of the tagged configurations supported by this script.
8558
# ### BEGIN LIBTOOL CONFIG
8560
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8562
# Shell to use when invoking shell scripts.
8565
# Whether or not to build shared libraries.
8566
build_libtool_libs=$enable_shared
8568
# Whether or not to build static libraries.
8569
build_old_libs=$enable_static
8571
# Whether or not to add -lc for building shared libraries.
8572
build_libtool_need_lc=$archive_cmds_need_lc
8574
# Whether or not to disallow shared libs when runtime libs are static
8575
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8577
# Whether or not to optimize for fast installation.
8578
fast_install=$enable_fast_install
8581
host_alias=$host_alias
8586
build_alias=$build_alias
8590
# An echo program that does not interpret backslashes.
8595
AR_FLAGS=$lt_AR_FLAGS
8600
# LTCC compiler flags.
8601
LTCFLAGS=$lt_LTCFLAGS
8603
# A language-specific compiler.
8606
# Is the compiler the GNU C compiler?
8612
# The linker used to build libraries.
8615
# Whether we need hard or soft links.
8618
# A BSD-compatible nm program.
8621
# A symbol stripping program
8624
# Used to examine libraries when file_magic_cmd begins "file"
8625
MAGIC_CMD=$MAGIC_CMD
8627
# Used on cygwin: DLL creation program.
8630
# Used on cygwin: object dumper.
8633
# Used on cygwin: assembler.
8636
# The name of the directory that contains temporary libtool files.
8639
# How to create reloadable object files.
8640
reload_flag=$lt_reload_flag
8641
reload_cmds=$lt_reload_cmds
8643
# How to pass a linker flag through the compiler.
8644
wl=$lt_lt_prog_compiler_wl
8646
# Object file suffix (normally "o").
8649
# Old archive suffix (normally "a").
8652
# Shared library suffix (normally ".so").
8653
shrext_cmds='$shrext_cmds'
8655
# Executable file suffix (normally "").
8658
# Additional compiler flags for building library objects.
8659
pic_flag=$lt_lt_prog_compiler_pic
8662
# What is the maximum length of a command?
8663
max_cmd_len=$lt_cv_sys_max_cmd_len
8665
# Does compiler simultaneously support -c and -o options?
8666
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8668
# Must we lock files when doing compilation?
8669
need_locks=$lt_need_locks
8671
# Do we need the lib prefix for modules?
8672
need_lib_prefix=$need_lib_prefix
8674
# Do we need a version for libraries?
8675
need_version=$need_version
8677
# Whether dlopen is supported.
8678
dlopen_support=$enable_dlopen
8680
# Whether dlopen of programs is supported.
8681
dlopen_self=$enable_dlopen_self
8683
# Whether dlopen of statically linked programs is supported.
8684
dlopen_self_static=$enable_dlopen_self_static
8686
# Compiler flag to prevent dynamic linking.
8687
link_static_flag=$lt_lt_prog_compiler_static
8689
# Compiler flag to turn off builtin functions.
8690
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8692
# Compiler flag to allow reflexive dlopens.
8693
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8695
# Compiler flag to generate shared objects directly from archives.
8696
whole_archive_flag_spec=$lt_whole_archive_flag_spec
8698
# Compiler flag to generate thread-safe objects.
8699
thread_safe_flag_spec=$lt_thread_safe_flag_spec
8701
# Library versioning type.
8702
version_type=$version_type
8704
# Format of library name prefix.
8705
libname_spec=$lt_libname_spec
8707
# List of archive names. First name is the real one, the rest are links.
8708
# The last name is the one that the linker finds with -lNAME.
8709
library_names_spec=$lt_library_names_spec
8711
# The coded name of the library, if different from the real name.
8712
soname_spec=$lt_soname_spec
8714
# Commands used to build and install an old-style archive.
8716
old_archive_cmds=$lt_old_archive_cmds
8717
old_postinstall_cmds=$lt_old_postinstall_cmds
8718
old_postuninstall_cmds=$lt_old_postuninstall_cmds
8720
# Create an old-style archive from a shared archive.
8721
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8723
# Create a temporary old-style archive to link instead of a shared archive.
8724
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8726
# Commands used to build and install a shared archive.
8727
archive_cmds=$lt_archive_cmds
8728
archive_expsym_cmds=$lt_archive_expsym_cmds
8729
postinstall_cmds=$lt_postinstall_cmds
8730
postuninstall_cmds=$lt_postuninstall_cmds
8732
# Commands used to build a loadable module (assumed same as above if empty)
8733
module_cmds=$lt_module_cmds
8734
module_expsym_cmds=$lt_module_expsym_cmds
8736
# Commands to strip libraries.
8737
old_striplib=$lt_old_striplib
8738
striplib=$lt_striplib
8740
# Dependencies to place before the objects being linked to create a
8742
predep_objects=$lt_predep_objects
8744
# Dependencies to place after the objects being linked to create a
8746
postdep_objects=$lt_postdep_objects
8748
# Dependencies to place before the objects being linked to create a
8752
# Dependencies to place after the objects being linked to create a
8754
postdeps=$lt_postdeps
8756
# The library search path used internally by the compiler when linking
8758
compiler_lib_search_path=$lt_compiler_lib_search_path
8760
# Method to check whether dependent libraries are shared objects.
8761
deplibs_check_method=$lt_deplibs_check_method
8763
# Command to use when deplibs_check_method == file_magic.
8764
file_magic_cmd=$lt_file_magic_cmd
8766
# Flag that allows shared libraries with undefined symbols to be built.
8767
allow_undefined_flag=$lt_allow_undefined_flag
8769
# Flag that forces no undefined symbols.
8770
no_undefined_flag=$lt_no_undefined_flag
8772
# Commands used to finish a libtool library installation in a directory.
8773
finish_cmds=$lt_finish_cmds
8775
# Same as above, but a single script fragment to be evaled but not shown.
8776
finish_eval=$lt_finish_eval
8778
# Take the output of nm and produce a listing of raw symbols and C names.
8779
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8781
# Transform the output of nm in a proper C declaration
8782
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8784
# Transform the output of nm in a C name address pair
8785
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8787
# This is the shared library runtime path variable.
8788
runpath_var=$runpath_var
8790
# This is the shared library path variable.
8791
shlibpath_var=$shlibpath_var
8793
# Is shlibpath searched before the hard-coded library search path?
8794
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8796
# How to hardcode a shared library path into an executable.
8797
hardcode_action=$hardcode_action
8799
# Whether we should hardcode library paths into libraries.
8800
hardcode_into_libs=$hardcode_into_libs
8802
# Flag to hardcode \$libdir into a binary during linking.
8803
# This must work even if \$libdir does not exist.
8804
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8806
# If ld is used when linking, flag to hardcode \$libdir into
8807
# a binary during linking. This must work even if \$libdir does
8809
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8811
# Whether we need a single -rpath flag with a separated argument.
8812
hardcode_libdir_separator=$lt_hardcode_libdir_separator
8814
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8816
hardcode_direct=$hardcode_direct
8818
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8820
hardcode_minus_L=$hardcode_minus_L
8822
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8823
# the resulting binary.
8824
hardcode_shlibpath_var=$hardcode_shlibpath_var
8826
# Set to yes if building a shared library automatically hardcodes DIR into the library
8827
# and all subsequent libraries and executables linked against it.
8828
hardcode_automatic=$hardcode_automatic
8830
# Variables whose values should be saved in libtool wrapper scripts and
8831
# restored at relink time.
8832
variables_saved_for_relink="$variables_saved_for_relink"
8834
# Whether libtool must link a program against all its dependency libraries.
8835
link_all_deplibs=$link_all_deplibs
8837
# Compile-time system search path for libraries
8838
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8840
# Run-time system search path for libraries
8841
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8843
# Fix the shell variable \$srcfile for the compiler.
8844
fix_srcfile_path="$fix_srcfile_path"
8846
# Set to yes if exported symbols are required.
8847
always_export_symbols=$always_export_symbols
8849
# The commands to list exported symbols.
8850
export_symbols_cmds=$lt_export_symbols_cmds
8852
# The commands to extract the exported symbol list from a shared archive.
8853
extract_expsyms_cmds=$lt_extract_expsyms_cmds
8855
# Symbols that should not be listed in the preloaded symbols.
8856
exclude_expsyms=$lt_exclude_expsyms
8858
# Symbols that must always be exported.
8859
include_expsyms=$lt_include_expsyms
8861
# ### END LIBTOOL CONFIG
8868
cat <<\EOF >> "$cfgfile"
8870
# AIX sometimes has problems with the GCC collect2 program. For some
8871
# reason, if we set the COLLECT_NAMES environment variable, the problems
8872
# vanish in a puff of smoke.
8873
if test "X${COLLECT_NAMES+set}" != Xset; then
8875
export COLLECT_NAMES
8881
# We use sed instead of cat because bash on DJGPP gets confused if
8882
# if finds mixed CR/LF and LF-only lines. Since sed operates in
8883
# text mode, it properly converts lines to CR/LF. This bash problem
8884
# is reportedly fixed, but why not run on old versions too?
8885
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8887
mv -f "$cfgfile" "$ofile" || \
8888
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8892
# If there is no Makefile yet, we rely on a make rule to execute
8893
# `config.status --recheck' to rerun these tests and create the
8894
# libtool script then.
8895
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
8896
if test -f "$ltmain_in"; then
8897
test -f Makefile && make "$ltmain"
8903
ac_cpp='$CPP $CPPFLAGS'
8904
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8905
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8906
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8911
if test -f "$ltmain"; then
8912
if test ! -f "${ofile}"; then
8913
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8914
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8917
if test -z "$LTCC"; then
8918
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8919
if test -z "$LTCC"; then
8920
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8921
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8923
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8924
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8934
# This can be used to rebuild libtool when needed
8935
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8937
# Always use our own libtool.
8938
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8940
# Prevent multiple expansion
8952
echo "$as_me:$LINENO: checking to see if compiler understands -Wall" >&5
8953
echo $ECHO_N "checking to see if compiler understands -Wall... $ECHO_C" >&6
8955
save_CFLAGS="$CFLAGS"
8956
CFLAGS="$CFLAGS -Wall"
8958
cat >conftest.$ac_ext <<_ACEOF
8961
cat confdefs.h >>conftest.$ac_ext
8962
cat >>conftest.$ac_ext <<_ACEOF
8963
/* end confdefs.h. */
8973
rm -f conftest.$ac_objext
8974
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8975
(eval $ac_compile) 2>conftest.er1
8977
grep -v '^ *+' conftest.er1 >conftest.err
8979
cat conftest.err >&5
8980
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981
(exit $ac_status); } &&
8982
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8983
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987
(exit $ac_status); }; } &&
8988
{ ac_try='test -s conftest.$ac_objext'
8989
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993
(exit $ac_status); }; }; then
8996
echo "$as_me: failed program was:" >&5
8997
sed 's/^/| /' conftest.$ac_ext >&5
9001
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9002
CFLAGS="$save_CFLAGS"
9004
if test "X$flag_ok" = Xyes ; then
9011
echo "$as_me:$LINENO: result: $flag_ok" >&5
9012
echo "${ECHO_T}$flag_ok" >&6
9015
if test "x$GST_WALL" = "xyes"; then
9016
GST_ERROR="$GST_ERROR -Wall"
9018
if test "x$GST_PLUGIN_TRUNK" = "xyes"; then
9020
echo "$as_me:$LINENO: checking to see if compiler understands -Werror" >&5
9021
echo $ECHO_N "checking to see if compiler understands -Werror... $ECHO_C" >&6
9023
save_CFLAGS="$CFLAGS"
9024
CFLAGS="$CFLAGS -Werror"
9026
cat >conftest.$ac_ext <<_ACEOF
9029
cat confdefs.h >>conftest.$ac_ext
9030
cat >>conftest.$ac_ext <<_ACEOF
9031
/* end confdefs.h. */
9041
rm -f conftest.$ac_objext
9042
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9043
(eval $ac_compile) 2>conftest.er1
9045
grep -v '^ *+' conftest.er1 >conftest.err
9047
cat conftest.err >&5
9048
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049
(exit $ac_status); } &&
9050
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9051
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055
(exit $ac_status); }; } &&
9056
{ ac_try='test -s conftest.$ac_objext'
9057
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061
(exit $ac_status); }; }; then
9064
echo "$as_me: failed program was:" >&5
9065
sed 's/^/| /' conftest.$ac_ext >&5
9069
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9070
CFLAGS="$save_CFLAGS"
9072
if test "X$flag_ok" = Xyes ; then
9073
GST_ERROR="$GST_ERROR -Werror"
9076
GST_ERROR="$GST_ERROR"
9079
echo "$as_me:$LINENO: result: $flag_ok" >&5
9080
echo "${ECHO_T}$flag_ok" >&6
9085
ISODATE=`date +%Y-%m-%d`
9088
# Find a good install program. We prefer a C program (faster),
9089
# so one script is as good as another. But avoid the broken or
9090
# incompatible versions:
9091
# SysV /etc/install, /usr/sbin/install
9092
# SunOS /usr/etc/install
9093
# IRIX /sbin/install
9095
# AmigaOS /C/install, which installs bootblocks on floppy discs
9096
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9097
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9098
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9099
# OS/2's system install, which has a completely different semantic
9100
# ./install, which can be erroneously created by make from ./install.sh.
9101
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9102
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
9103
if test -z "$INSTALL"; then
9104
if test "${ac_cv_path_install+set}" = set; then
9105
echo $ECHO_N "(cached) $ECHO_C" >&6
9107
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9111
test -z "$as_dir" && as_dir=.
9112
# Account for people who put trailing slashes in PATH elements.
9114
./ | .// | /cC/* | \
9115
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9116
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
9119
# OSF1 and SCO ODT 3.0 have their own names for install.
9120
# Don't use installbsd from OSF since it installs stuff as root
9122
for ac_prog in ginstall scoinst install; do
9123
for ac_exec_ext in '' $ac_executable_extensions; do
9124
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9125
if test $ac_prog = install &&
9126
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9127
# AIX install. It has an incompatible calling convention.
9129
elif test $ac_prog = install &&
9130
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9131
# program-specific install script used by HP pwplus--don't use.
9134
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9146
if test "${ac_cv_path_install+set}" = set; then
9147
INSTALL=$ac_cv_path_install
9149
# As a last resort, use the slow shell script. We don't cache a
9150
# path for INSTALL within a source directory, because that will
9151
# break other packages using the cache if that directory is
9152
# removed, or if the path is relative.
9153
INSTALL=$ac_install_sh
9156
echo "$as_me:$LINENO: result: $INSTALL" >&5
9157
echo "${ECHO_T}$INSTALL" >&6
9159
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9160
# It thinks the first close brace ends the variable substitution.
9161
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9163
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9165
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9170
# Check whether --enable-debug or --disable-debug was given.
9171
if test "${enable_debug+set}" = set; then
9172
enableval="$enable_debug"
9174
case "${enableval}" in
9175
yes) USE_DEBUG=yes ;;
9177
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
9178
echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
9179
{ (exit 1); exit 1; }; } ;;
9186
# Check whether --enable-profiling or --disable-profiling was given.
9187
if test "${enable_profiling+set}" = set; then
9188
enableval="$enable_profiling"
9190
case "${enableval}" in
9191
yes) USE_PROFILING=yes ;;
9192
no) USE_PROFILING=no ;;
9193
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-profiling" >&5
9194
echo "$as_me: error: bad value ${enableval} for --enable-profiling" >&2;}
9195
{ (exit 1); exit 1; }; } ;;
9202
# Check whether --enable-valgrind or --disable-valgrind was given.
9203
if test "${enable_valgrind+set}" = set; then
9204
enableval="$enable_valgrind"
9206
case "${enableval}" in
9207
yes) USE_VALGRIND="$USE_DEBUG" ;;
9208
no) USE_VALGRIND=no ;;
9209
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-valgrind" >&5
9210
echo "$as_me: error: bad value ${enableval} for --enable-valgrind" >&2;}
9211
{ (exit 1); exit 1; }; } ;;
9215
USE_VALGRIND="$USE_DEBUG"
9216
fi; VALGRIND_REQ="2.1"
9217
if test "x$USE_VALGRIND" = xyes; then
9221
if test -z "$PKG_CONFIG"; then
9222
# Extract the first word of "pkg-config", so it can be a program name with args.
9223
set dummy pkg-config; ac_word=$2
9224
echo "$as_me:$LINENO: checking for $ac_word" >&5
9225
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9226
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9227
echo $ECHO_N "(cached) $ECHO_C" >&6
9231
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9234
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9238
test -z "$as_dir" && as_dir=.
9239
for ac_exec_ext in '' $ac_executable_extensions; do
9240
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9241
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9242
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9248
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9252
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9254
if test -n "$PKG_CONFIG"; then
9255
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9256
echo "${ECHO_T}$PKG_CONFIG" >&6
9258
echo "$as_me:$LINENO: result: no" >&5
9259
echo "${ECHO_T}no" >&6
9264
if test "$PKG_CONFIG" = "no" ; then
9265
echo "*** The pkg-config script could not be found. Make sure it is"
9266
echo "*** in your path, or set the PKG_CONFIG environment variable"
9267
echo "*** to the full path to pkg-config."
9268
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9270
PKG_CONFIG_MIN_VERSION=0.9.0
9271
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9272
echo "$as_me:$LINENO: checking for valgrind > $VALGRIND_REQ" >&5
9273
echo $ECHO_N "checking for valgrind > $VALGRIND_REQ... $ECHO_C" >&6
9275
if $PKG_CONFIG --exists "valgrind > $VALGRIND_REQ" ; then
9276
echo "$as_me:$LINENO: result: yes" >&5
9277
echo "${ECHO_T}yes" >&6
9280
echo "$as_me:$LINENO: checking VALGRIND_CFLAGS" >&5
9281
echo $ECHO_N "checking VALGRIND_CFLAGS... $ECHO_C" >&6
9282
VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind > $VALGRIND_REQ"`
9283
echo "$as_me:$LINENO: result: $VALGRIND_CFLAGS" >&5
9284
echo "${ECHO_T}$VALGRIND_CFLAGS" >&6
9286
echo "$as_me:$LINENO: checking VALGRIND_LIBS" >&5
9287
echo $ECHO_N "checking VALGRIND_LIBS... $ECHO_C" >&6
9288
VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind > $VALGRIND_REQ"`
9289
echo "$as_me:$LINENO: result: $VALGRIND_LIBS" >&5
9290
echo "${ECHO_T}$VALGRIND_LIBS" >&6
9294
## If we have a custom action on failure, don't print errors, but
9295
## do set a variable so people can do so.
9296
VALGRIND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "valgrind > $VALGRIND_REQ"`
9303
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9304
echo "*** See http://www.freedesktop.org/software/pkgconfig"
9308
if test $succeeded = yes; then
9315
if test "x$USE_VALGRIND" = xyes; then
9317
cat >>confdefs.h <<\_ACEOF
9318
#define HAVE_VALGRIND 1
9321
{ echo "$as_me:$LINENO: Using extra code paths for valgrind" >&5
9322
echo "$as_me: Using extra code paths for valgrind" >&6;}
9326
# Check whether --enable-gcov or --disable-gcov was given.
9327
if test "${enable_gcov+set}" = set; then
9328
enableval="$enable_gcov"
9329
enable_gcov=$enableval
9333
if test x$enable_gcov = xyes ; then
9335
echo "$as_me:$LINENO: checking to see if compiler understands \"-fprofile-arcs\"" >&5
9336
echo $ECHO_N "checking to see if compiler understands \"-fprofile-arcs\"... $ECHO_C" >&6
9338
save_CFLAGS="$CFLAGS"
9339
CFLAGS="$CFLAGS "-fprofile-arcs""
9341
cat >conftest.$ac_ext <<_ACEOF
9344
cat confdefs.h >>conftest.$ac_ext
9345
cat >>conftest.$ac_ext <<_ACEOF
9346
/* end confdefs.h. */
9356
rm -f conftest.$ac_objext
9357
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9358
(eval $ac_compile) 2>conftest.er1
9360
grep -v '^ *+' conftest.er1 >conftest.err
9362
cat conftest.err >&5
9363
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364
(exit $ac_status); } &&
9365
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9366
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370
(exit $ac_status); }; } &&
9371
{ ac_try='test -s conftest.$ac_objext'
9372
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376
(exit $ac_status); }; }; then
9379
echo "$as_me: failed program was:" >&5
9380
sed 's/^/| /' conftest.$ac_ext >&5
9384
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9385
CFLAGS="$save_CFLAGS"
9387
if test "X$flag_ok" = Xyes ; then
9388
GCOV_CFLAGS="$GCOV_CFLAGS -fprofile-arcs"
9394
echo "$as_me:$LINENO: result: $flag_ok" >&5
9395
echo "${ECHO_T}$flag_ok" >&6
9398
echo "$as_me:$LINENO: checking to see if compiler understands \"-ftest-coverage\"" >&5
9399
echo $ECHO_N "checking to see if compiler understands \"-ftest-coverage\"... $ECHO_C" >&6
9401
save_CFLAGS="$CFLAGS"
9402
CFLAGS="$CFLAGS "-ftest-coverage""
9404
cat >conftest.$ac_ext <<_ACEOF
9407
cat confdefs.h >>conftest.$ac_ext
9408
cat >>conftest.$ac_ext <<_ACEOF
9409
/* end confdefs.h. */
9419
rm -f conftest.$ac_objext
9420
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9421
(eval $ac_compile) 2>conftest.er1
9423
grep -v '^ *+' conftest.er1 >conftest.err
9425
cat conftest.err >&5
9426
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427
(exit $ac_status); } &&
9428
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9429
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9432
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433
(exit $ac_status); }; } &&
9434
{ ac_try='test -s conftest.$ac_objext'
9435
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9438
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439
(exit $ac_status); }; }; then
9442
echo "$as_me: failed program was:" >&5
9443
sed 's/^/| /' conftest.$ac_ext >&5
9447
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9448
CFLAGS="$save_CFLAGS"
9450
if test "X$flag_ok" = Xyes ; then
9451
GCOV_CFLAGS="$GCOV_CFLAGS -ftest-coverage"
9457
echo "$as_me:$LINENO: result: $flag_ok" >&5
9458
echo "${ECHO_T}$flag_ok" >&6
9460
GCOV_CFLAGS=`echo "$GCOV_CFLAGS" | sed -e 's/-O0-9*//g'`
9463
cat >>confdefs.h <<_ACEOF
9464
#define GST_GCOV_ENABLED 1
9470
if test x$enable_gcov = xyes; then
9471
GST_GCOV_ENABLED_TRUE=
9472
GST_GCOV_ENABLED_FALSE='#'
9474
GST_GCOV_ENABLED_TRUE='#'
9475
GST_GCOV_ENABLED_FALSE=
9481
# Check whether --enable-examples or --disable-examples was given.
9482
if test "${enable_examples+set}" = set; then
9483
enableval="$enable_examples"
9485
case "${enableval}" in
9486
yes) BUILD_EXAMPLES=yes ;;
9487
no) BUILD_EXAMPLES=no ;;
9488
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-examples" >&5
9489
echo "$as_me: error: bad value ${enableval} for --disable-examples" >&2;}
9490
{ (exit 1); exit 1; }; } ;;
9497
if test "x$BUILD_EXAMPLES" = "xyes"; then
9498
BUILD_EXAMPLES_TRUE=
9499
BUILD_EXAMPLES_FALSE='#'
9501
BUILD_EXAMPLES_TRUE='#'
9502
BUILD_EXAMPLES_FALSE=
9509
# Check whether --with-pkg-config-path or --without-pkg-config-path was given.
9510
if test "${with_pkg_config_path+set}" = set; then
9511
withval="$with_pkg_config_path"
9512
export PKG_CONFIG_PATH=${withval}
9517
# Check whether --with-package-name or --without-package-name was given.
9518
if test "${with_package_name+set}" = set; then
9519
withval="$with_package_name"
9521
case "${withval}" in
9522
yes) { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-package-name" >&5
9523
echo "$as_me: error: bad value ${withval} for --with-package-name" >&2;}
9524
{ (exit 1); exit 1; }; } ;;
9525
no) { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-package-name" >&5
9526
echo "$as_me: error: bad value ${withval} for --with-package-name" >&2;}
9527
{ (exit 1); exit 1; }; } ;;
9528
*) GST_PACKAGE="${withval}" ;;
9533
if test "x$GST_CVS" = "xyes"
9535
GST_PACKAGE_NAME="Fluendo MP3 Plug-in CVS/prerelease"
9537
GST_PACKAGE_NAME="Fluendo MP3 Plug-in source release"
9542
{ echo "$as_me:$LINENO: Using $GST_PACKAGE_NAME as package name" >&5
9543
echo "$as_me: Using $GST_PACKAGE_NAME as package name" >&6;}
9545
cat >>confdefs.h <<_ACEOF
9546
#define GST_PACKAGE_NAME "$GST_PACKAGE_NAME"
9553
# Check whether --with-package-origin or --without-package-origin was given.
9554
if test "${with_package_origin+set}" = set; then
9555
withval="$with_package_origin"
9557
case "${withval}" in
9558
yes) { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-package-origin" >&5
9559
echo "$as_me: error: bad value ${withval} for --with-package-origin" >&2;}
9560
{ (exit 1); exit 1; }; } ;;
9561
no) { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-package-origin" >&5
9562
echo "$as_me: error: bad value ${withval} for --with-package-origin" >&2;}
9563
{ (exit 1); exit 1; }; } ;;
9564
*) GST_ORIGIN="${withval}" ;;
9568
GST_PACKAGE_ORIGIN="Unknown package origin"
9570
{ echo "$as_me:$LINENO: Using $GST_PACKAGE_ORIGIN as package origin" >&5
9571
echo "$as_me: Using $GST_PACKAGE_ORIGIN as package origin" >&6;}
9573
cat >>confdefs.h <<_ACEOF
9574
#define GST_PACKAGE_ORIGIN "$GST_PACKAGE_ORIGIN"
9580
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9581
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9582
if test "${ac_cv_header_stdc+set}" = set; then
9583
echo $ECHO_N "(cached) $ECHO_C" >&6
9585
cat >conftest.$ac_ext <<_ACEOF
9588
cat confdefs.h >>conftest.$ac_ext
9589
cat >>conftest.$ac_ext <<_ACEOF
9590
/* end confdefs.h. */
9604
rm -f conftest.$ac_objext
9605
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9606
(eval $ac_compile) 2>conftest.er1
9608
grep -v '^ *+' conftest.er1 >conftest.err
9610
cat conftest.err >&5
9611
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612
(exit $ac_status); } &&
9613
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9614
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618
(exit $ac_status); }; } &&
9619
{ ac_try='test -s conftest.$ac_objext'
9620
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624
(exit $ac_status); }; }; then
9625
ac_cv_header_stdc=yes
9627
echo "$as_me: failed program was:" >&5
9628
sed 's/^/| /' conftest.$ac_ext >&5
9630
ac_cv_header_stdc=no
9632
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9634
if test $ac_cv_header_stdc = yes; then
9635
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9636
cat >conftest.$ac_ext <<_ACEOF
9639
cat confdefs.h >>conftest.$ac_ext
9640
cat >>conftest.$ac_ext <<_ACEOF
9641
/* end confdefs.h. */
9645
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9646
$EGREP "memchr" >/dev/null 2>&1; then
9649
ac_cv_header_stdc=no
9655
if test $ac_cv_header_stdc = yes; then
9656
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9657
cat >conftest.$ac_ext <<_ACEOF
9660
cat confdefs.h >>conftest.$ac_ext
9661
cat >>conftest.$ac_ext <<_ACEOF
9662
/* end confdefs.h. */
9666
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9667
$EGREP "free" >/dev/null 2>&1; then
9670
ac_cv_header_stdc=no
9676
if test $ac_cv_header_stdc = yes; then
9677
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9678
if test "$cross_compiling" = yes; then
9681
cat >conftest.$ac_ext <<_ACEOF
9684
cat confdefs.h >>conftest.$ac_ext
9685
cat >>conftest.$ac_ext <<_ACEOF
9686
/* end confdefs.h. */
9688
#if ((' ' & 0x0FF) == 0x020)
9689
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9690
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9692
# define ISLOWER(c) \
9693
(('a' <= (c) && (c) <= 'i') \
9694
|| ('j' <= (c) && (c) <= 'r') \
9695
|| ('s' <= (c) && (c) <= 'z'))
9696
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9699
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9704
for (i = 0; i < 256; i++)
9705
if (XOR (islower (i), ISLOWER (i))
9706
|| toupper (i) != TOUPPER (i))
9711
rm -f conftest$ac_exeext
9712
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9713
(eval $ac_link) 2>&5
9715
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9717
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721
(exit $ac_status); }; }; then
9724
echo "$as_me: program exited with status $ac_status" >&5
9725
echo "$as_me: failed program was:" >&5
9726
sed 's/^/| /' conftest.$ac_ext >&5
9729
ac_cv_header_stdc=no
9731
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9735
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9736
echo "${ECHO_T}$ac_cv_header_stdc" >&6
9737
if test $ac_cv_header_stdc = yes; then
9739
cat >>confdefs.h <<\_ACEOF
9740
#define STDC_HEADERS 1
9753
for ac_header in unistd.h string.h fcntl.h dirent.h sys/ndir.h \
9754
ndir.h alloca.h locale.h
9756
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9757
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9758
echo "$as_me:$LINENO: checking for $ac_header" >&5
9759
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9760
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9761
echo $ECHO_N "(cached) $ECHO_C" >&6
9763
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9764
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9766
# Is the header compilable?
9767
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9768
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9769
cat >conftest.$ac_ext <<_ACEOF
9772
cat confdefs.h >>conftest.$ac_ext
9773
cat >>conftest.$ac_ext <<_ACEOF
9774
/* end confdefs.h. */
9775
$ac_includes_default
9776
#include <$ac_header>
9778
rm -f conftest.$ac_objext
9779
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9780
(eval $ac_compile) 2>conftest.er1
9782
grep -v '^ *+' conftest.er1 >conftest.err
9784
cat conftest.err >&5
9785
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786
(exit $ac_status); } &&
9787
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9788
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792
(exit $ac_status); }; } &&
9793
{ ac_try='test -s conftest.$ac_objext'
9794
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798
(exit $ac_status); }; }; then
9799
ac_header_compiler=yes
9801
echo "$as_me: failed program was:" >&5
9802
sed 's/^/| /' conftest.$ac_ext >&5
9804
ac_header_compiler=no
9806
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9807
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9808
echo "${ECHO_T}$ac_header_compiler" >&6
9810
# Is the header present?
9811
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9812
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9813
cat >conftest.$ac_ext <<_ACEOF
9816
cat confdefs.h >>conftest.$ac_ext
9817
cat >>conftest.$ac_ext <<_ACEOF
9818
/* end confdefs.h. */
9819
#include <$ac_header>
9821
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9822
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9824
grep -v '^ *+' conftest.er1 >conftest.err
9826
cat conftest.err >&5
9827
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828
(exit $ac_status); } >/dev/null; then
9829
if test -s conftest.err; then
9830
ac_cpp_err=$ac_c_preproc_warn_flag
9831
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9838
if test -z "$ac_cpp_err"; then
9839
ac_header_preproc=yes
9841
echo "$as_me: failed program was:" >&5
9842
sed 's/^/| /' conftest.$ac_ext >&5
9844
ac_header_preproc=no
9846
rm -f conftest.err conftest.$ac_ext
9847
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9848
echo "${ECHO_T}$ac_header_preproc" >&6
9850
# So? What about this header?
9851
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9853
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9854
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9855
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9856
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9857
ac_header_preproc=yes
9860
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9861
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9862
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9863
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9864
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9865
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9866
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9867
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9868
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9869
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9870
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9871
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9874
## ------------------------------------------ ##
9875
## Report this to the AC_PACKAGE_NAME lists. ##
9876
## ------------------------------------------ ##
9879
sed "s/^/$as_me: WARNING: /" >&2
9882
echo "$as_me:$LINENO: checking for $ac_header" >&5
9883
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9884
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9885
echo $ECHO_N "(cached) $ECHO_C" >&6
9887
eval "$as_ac_Header=\$ac_header_preproc"
9889
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9890
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9893
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9894
cat >>confdefs.h <<_ACEOF
9895
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9903
# Extract the first word of "pkg-config", so it can be a program name with args.
9904
set dummy pkg-config; ac_word=$2
9905
echo "$as_me:$LINENO: checking for $ac_word" >&5
9906
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9907
if test "${ac_cv_prog_HAVE_PKGCONFIG+set}" = set; then
9908
echo $ECHO_N "(cached) $ECHO_C" >&6
9910
if test -n "$HAVE_PKGCONFIG"; then
9911
ac_cv_prog_HAVE_PKGCONFIG="$HAVE_PKGCONFIG" # Let the user override the test.
9913
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9917
test -z "$as_dir" && as_dir=.
9918
for ac_exec_ext in '' $ac_executable_extensions; do
9919
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9920
ac_cv_prog_HAVE_PKGCONFIG="yes"
9921
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9927
test -z "$ac_cv_prog_HAVE_PKGCONFIG" && ac_cv_prog_HAVE_PKGCONFIG="no"
9930
HAVE_PKGCONFIG=$ac_cv_prog_HAVE_PKGCONFIG
9931
if test -n "$HAVE_PKGCONFIG"; then
9932
echo "$as_me:$LINENO: result: $HAVE_PKGCONFIG" >&5
9933
echo "${ECHO_T}$HAVE_PKGCONFIG" >&6
9935
echo "$as_me:$LINENO: result: no" >&5
9936
echo "${ECHO_T}no" >&6
9940
if test "x$HAVE_PKGCONFIG" = "xno"; then
9941
{ { echo "$as_me:$LINENO: error: you need to have pkgconfig installed" >&5
9942
echo "$as_me: error: you need to have pkgconfig installed" >&2;}
9943
{ (exit 1); exit 1; }; }
9946
# Check whether --enable-profiling or --disable-profiling was given.
9947
if test "${enable_profiling+set}" = set; then
9948
enableval="$enable_profiling"
9950
case "${enableval}" in
9951
yes) USE_PROFILING=true ;;
9952
*) USE_PROFILING=false ;;
9961
echo "$as_me:$LINENO: checking for Intel Performance Primitives library" >&5
9962
echo $ECHO_N "checking for Intel Performance Primitives library... $ECHO_C" >&6
9965
# Check whether --with-ipp or --without-ipp was given.
9966
if test "${with_ipp+set}" = set; then
9968
if test "x$withval" = "xno"; then test_ipp=false; fi
9972
# Check whether --with-ipp-path or --without-ipp-path was given.
9973
if test "${with_ipp_path+set}" = set; then
9974
withval="$with_ipp_path"
9975
export IPP_PATH="${withval}"
9978
if test -n "$IPP_PATH"; then
9979
IPP_PREFIX="$IPP_PATH"
9981
IPP_PREFIX="/opt/intel/ipp"
9984
if test "x$test_ipp" = "xtrue"; then
9985
if test -f "$IPP_PREFIX/5.0/ia32/include/ippac.h"; then
9986
IPP_INCLUDES="-I$IPP_PREFIX/5.0/ia32/include"
9987
IPP_LIBS="-L$IPP_PREFIX/5.0/ia32/lib -lippacemerged -lippacmerged -lippsemerged -lippsmerged -lippcore"
9990
cat >>confdefs.h <<\_ACEOF
9991
#define USE_IPP TRUE
9995
echo "Intel Performance Primitives not found in $IPP_PREFIX"
10000
if test "x$HAVE_IPP" = "xtrue"; then
10009
if test "x$HAVE_IPP" = "xtrue"; then
10010
echo "$as_me:$LINENO: result: yes" >&5
10011
echo "${ECHO_T}yes" >&6
10013
echo "$as_me:$LINENO: result: no" >&5
10014
echo "${ECHO_T}no" >&6
10021
GST_MAJORMINOR=0.10
10027
if test -z "$PKG_CONFIG"; then
10028
# Extract the first word of "pkg-config", so it can be a program name with args.
10029
set dummy pkg-config; ac_word=$2
10030
echo "$as_me:$LINENO: checking for $ac_word" >&5
10031
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10032
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10033
echo $ECHO_N "(cached) $ECHO_C" >&6
10035
case $PKG_CONFIG in
10037
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10040
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10041
for as_dir in $PATH
10044
test -z "$as_dir" && as_dir=.
10045
for ac_exec_ext in '' $ac_executable_extensions; do
10046
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10047
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10048
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10054
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10058
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10060
if test -n "$PKG_CONFIG"; then
10061
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10062
echo "${ECHO_T}$PKG_CONFIG" >&6
10064
echo "$as_me:$LINENO: result: no" >&5
10065
echo "${ECHO_T}no" >&6
10070
if test "$PKG_CONFIG" = "no" ; then
10071
echo "*** The pkg-config script could not be found. Make sure it is"
10072
echo "*** in your path, or set the PKG_CONFIG environment variable"
10073
echo "*** to the full path to pkg-config."
10074
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
10076
PKG_CONFIG_MIN_VERSION=0.9.0
10077
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10078
echo "$as_me:$LINENO: checking for \
10079
gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
10080
echo $ECHO_N "checking for \
10081
gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6
10083
if $PKG_CONFIG --exists "\
10084
gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
10085
echo "$as_me:$LINENO: result: yes" >&5
10086
echo "${ECHO_T}yes" >&6
10089
echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
10090
echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
10091
GST_CFLAGS=`$PKG_CONFIG --cflags "\
10092
gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
10093
echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
10094
echo "${ECHO_T}$GST_CFLAGS" >&6
10096
echo "$as_me:$LINENO: checking GST_LIBS" >&5
10097
echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
10098
GST_LIBS=`$PKG_CONFIG --libs "\
10099
gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
10100
echo "$as_me:$LINENO: result: $GST_LIBS" >&5
10101
echo "${ECHO_T}$GST_LIBS" >&6
10105
## If we have a custom action on failure, don't print errors, but
10106
## do set a variable so people can do so.
10107
GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "\
10108
gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
10115
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10116
echo "*** See http://www.freedesktop.org/software/pkgconfig"
10120
if test $succeeded = yes; then
10129
plugindir="\$(libdir)/gstreamer-$GST_MAJORMINOR"
10132
if test "x$USE_PROFILING" = "xtrue"; then
10133
CFLAGS="$CFLAGS -pg"
10134
LDFLAGS="$LDFLAGS -pg"
10137
PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex 'gst_.*'"
10140
ac_config_files="$ac_config_files Makefile decoder/Makefile m4/Makefile common/Makefile common/m4/Makefile gst-fluendo-mp3.spec"
10141
cat >confcache <<\_ACEOF
10142
# This file is a shell script that caches the results of configure
10143
# tests run on this system so they can be shared between configure
10144
# scripts and configure runs, see configure's option --config-cache.
10145
# It is not useful on other systems. If it contains results you don't
10146
# want to keep, you may remove or edit it.
10148
# config.status only pays attention to the cache file if you give it
10149
# the --recheck option to rerun configure.
10151
# `ac_cv_env_foo' variables (set or unset) will be overridden when
10152
# loading this file, other *unset* `ac_cv_foo' will be assigned the
10153
# following values.
10157
# The following way of writing the cache mishandles newlines in values,
10158
# but we know of no workaround that is simple, portable, and efficient.
10159
# So, don't put newlines in cache variables' values.
10160
# Ultrix sh set writes to stderr and can't be redirected directly,
10161
# and sets the high bit in the cache file unless we assign to the vars.
10164
case `(ac_space=' '; set | grep ac_space) 2>&1` in
10166
# `set' does not quote correctly, so add quotes (double-quote
10167
# substitution turns \\\\ into \\, and sed turns \\ into \).
10170
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10173
# `set' quotes correctly as required by POSIX, so do not add quotes.
10175
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10182
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10184
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10186
if diff $cache_file confcache >/dev/null 2>&1; then :; else
10187
if test -w $cache_file; then
10188
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10189
cat confcache >$cache_file
10191
echo "not updating unwritable cache $cache_file"
10196
test "x$prefix" = xNONE && prefix=$ac_default_prefix
10197
# Let make expand exec_prefix.
10198
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10200
# VPATH may cause trouble with some makes, so we remove $(srcdir),
10201
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10202
# trailing colons and then remove the whole line if VPATH becomes empty
10203
# (actually we leave an empty line to preserve line numbers).
10204
if test "x$srcdir" = x.; then
10205
ac_vpsub='/^[ ]*VPATH[ ]*=/{
10206
s/:*\$(srcdir):*/:/;
10207
s/:*\${srcdir}:*/:/;
10209
s/^\([^=]*=[ ]*\):*/\1/;
10215
DEFS=-DHAVE_CONFIG_H
10219
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10220
# 1. Remove the extension, and $U if already installed.
10221
ac_i=`echo "$ac_i" |
10222
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10224
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10225
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10227
LIBOBJS=$ac_libobjs
10229
LTLIBOBJS=$ac_ltlibobjs
10232
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10233
{ { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10234
Usually this means the macro was only invoked conditionally." >&5
10235
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10236
Usually this means the macro was only invoked conditionally." >&2;}
10237
{ (exit 1); exit 1; }; }
10239
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10240
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10241
Usually this means the macro was only invoked conditionally." >&5
10242
echo "$as_me: error: conditional \"AMDEP\" was never defined.
10243
Usually this means the macro was only invoked conditionally." >&2;}
10244
{ (exit 1); exit 1; }; }
10246
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10247
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10248
Usually this means the macro was only invoked conditionally." >&5
10249
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10250
Usually this means the macro was only invoked conditionally." >&2;}
10251
{ (exit 1); exit 1; }; }
10253
if test -z "${GST_GCOV_ENABLED_TRUE}" && test -z "${GST_GCOV_ENABLED_FALSE}"; then
10254
{ { echo "$as_me:$LINENO: error: conditional \"GST_GCOV_ENABLED\" was never defined.
10255
Usually this means the macro was only invoked conditionally." >&5
10256
echo "$as_me: error: conditional \"GST_GCOV_ENABLED\" was never defined.
10257
Usually this means the macro was only invoked conditionally." >&2;}
10258
{ (exit 1); exit 1; }; }
10260
if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
10261
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_EXAMPLES\" was never defined.
10262
Usually this means the macro was only invoked conditionally." >&5
10263
echo "$as_me: error: conditional \"BUILD_EXAMPLES\" was never defined.
10264
Usually this means the macro was only invoked conditionally." >&2;}
10265
{ (exit 1); exit 1; }; }
10267
if test -z "${USE_IPP_TRUE}" && test -z "${USE_IPP_FALSE}"; then
10268
{ { echo "$as_me:$LINENO: error: conditional \"USE_IPP\" was never defined.
10269
Usually this means the macro was only invoked conditionally." >&5
10270
echo "$as_me: error: conditional \"USE_IPP\" was never defined.
10271
Usually this means the macro was only invoked conditionally." >&2;}
10272
{ (exit 1); exit 1; }; }
10275
: ${CONFIG_STATUS=./config.status}
10276
ac_clean_files_save=$ac_clean_files
10277
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10278
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10279
echo "$as_me: creating $CONFIG_STATUS" >&6;}
10280
cat >$CONFIG_STATUS <<_ACEOF
10282
# Generated by $as_me.
10283
# Run this file to recreate the current configuration.
10284
# Compiler output produced by configure, useful for debugging
10285
# configure, is in config.log if it exists.
10288
ac_cs_recheck=false
10290
SHELL=\${CONFIG_SHELL-$SHELL}
10293
cat >>$CONFIG_STATUS <<\_ACEOF
10294
## --------------------- ##
10295
## M4sh Initialization. ##
10296
## --------------------- ##
10298
# Be Bourne compatible
10299
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10302
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10303
# is contrary to our usage. Disable this feature.
10304
alias -g '${1+"$@"}'='"$@"'
10305
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10308
DUALCASE=1; export DUALCASE # for MKS sh
10310
# Support unset when possible.
10311
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10318
# Work around bugs in pre-3.0 UWIN ksh.
10319
$as_unset ENV MAIL MAILPATH
10326
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10327
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10328
LC_TELEPHONE LC_TIME
10330
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10331
eval $as_var=C; export $as_var
10337
# Required to use basename.
10338
if expr a : '\(a\)' >/dev/null 2>&1; then
10344
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10345
as_basename=basename
10351
# Name of the executable.
10352
as_me=`$as_basename "$0" ||
10353
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10354
X"$0" : 'X\(//\)$' \| \
10355
X"$0" : 'X\(/\)$' \| \
10356
. : '\(.\)' 2>/dev/null ||
10358
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10359
/^X\/\(\/\/\)$/{ s//\1/; q; }
10360
/^X\/\(\/\).*/{ s//\1/; q; }
10364
# PATH needs CR, and LINENO needs CR and PATH.
10365
# Avoid depending upon Character Ranges.
10366
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10367
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10368
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10369
as_cr_digits='0123456789'
10370
as_cr_alnum=$as_cr_Letters$as_cr_digits
10372
# The user is always right.
10373
if test "${PATH_SEPARATOR+set}" != set; then
10374
echo "#! /bin/sh" >conf$$.sh
10375
echo "exit 0" >>conf$$.sh
10377
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10386
as_lineno_1=$LINENO
10387
as_lineno_2=$LINENO
10388
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10389
test "x$as_lineno_1" != "x$as_lineno_2" &&
10390
test "x$as_lineno_3" = "x$as_lineno_2" || {
10391
# Find who we are. Look in the path if we contain no path at all
10394
*[\\/]* ) as_myself=$0 ;;
10395
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396
for as_dir in $PATH
10399
test -z "$as_dir" && as_dir=.
10400
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10405
# We did not find ourselves, most probably we were run as `sh COMMAND'
10406
# in which case we are not to be found in the path.
10407
if test "x$as_myself" = x; then
10410
if test ! -f "$as_myself"; then
10411
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10412
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10413
{ (exit 1); exit 1; }; }
10415
case $CONFIG_SHELL in
10417
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10418
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10421
test -z "$as_dir" && as_dir=.
10422
for as_base in sh bash ksh sh5; do
10425
if ("$as_dir/$as_base" -c '
10426
as_lineno_1=$LINENO
10427
as_lineno_2=$LINENO
10428
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10429
test "x$as_lineno_1" != "x$as_lineno_2" &&
10430
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10431
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10432
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10433
CONFIG_SHELL=$as_dir/$as_base
10434
export CONFIG_SHELL
10435
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10443
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10444
# uniformly replaced by the line number. The first 'sed' inserts a
10445
# line-number line before each line; the second 'sed' does the real
10446
# work. The second script uses 'N' to pair each line-number line
10447
# with the numbered line, and appends trailing '-' during
10448
# substitution so that $LINENO is not a special case at line end.
10449
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10450
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10451
sed '=' <$as_myself |
10456
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10459
s,^['$as_cr_digits']*\n,,
10460
' >$as_me.lineno &&
10461
chmod +x $as_me.lineno ||
10462
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10463
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10464
{ (exit 1); exit 1; }; }
10466
# Don't try to exec as it changes $[0], causing all sort of problems
10467
# (the dirname of $[0] is not the place where we might find the
10468
# original and so on. Autoconf is especially sensible to this).
10470
# Exit status is that of the last command.
10475
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10476
*c*,-n*) ECHO_N= ECHO_C='
10478
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10479
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10482
if expr a : '\(a\)' >/dev/null 2>&1; then
10488
rm -f conf$$ conf$$.exe conf$$.file
10490
if ln -s conf$$.file conf$$ 2>/dev/null; then
10491
# We could just check for DJGPP; but this test a) works b) is more generic
10492
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10493
if test -f conf$$.exe; then
10494
# Don't use ln at all; we don't have any links
10499
elif ln conf$$.file conf$$ 2>/dev/null; then
10504
rm -f conf$$ conf$$.exe conf$$.file
10506
if mkdir -p . 2>/dev/null; then
10509
test -d ./-p && rmdir ./-p
10513
as_executable_p="test -f"
10515
# Sed expression to map a string onto a valid CPP name.
10516
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10518
# Sed expression to map a string onto a valid variable name.
10519
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10523
# We need space, tab and new line, in precisely that order.
10533
# Open the log real soon, to keep \$[0] and so on meaningful, and to
10534
# report actual input values of CONFIG_FILES etc. instead of their
10535
# values after options handling. Logging --version etc. is OK.
10539
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10540
## Running $as_me. ##
10545
This file was extended by $as_me, which was
10546
generated by GNU Autoconf 2.59. Invocation command line was
10548
CONFIG_FILES = $CONFIG_FILES
10549
CONFIG_HEADERS = $CONFIG_HEADERS
10550
CONFIG_LINKS = $CONFIG_LINKS
10551
CONFIG_COMMANDS = $CONFIG_COMMANDS
10555
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10559
# Files that config.status was made for.
10560
if test -n "$ac_config_files"; then
10561
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10564
if test -n "$ac_config_headers"; then
10565
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10568
if test -n "$ac_config_links"; then
10569
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10572
if test -n "$ac_config_commands"; then
10573
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10576
cat >>$CONFIG_STATUS <<\_ACEOF
10579
\`$as_me' instantiates files from templates according to the
10580
current configuration.
10582
Usage: $0 [OPTIONS] [FILE]...
10584
-h, --help print this help, then exit
10585
-V, --version print version number, then exit
10586
-q, --quiet do not print progress messages
10587
-d, --debug don't remove temporary files
10588
--recheck update $as_me by reconfiguring in the same conditions
10589
--file=FILE[:TEMPLATE]
10590
instantiate the configuration file FILE
10591
--header=FILE[:TEMPLATE]
10592
instantiate the configuration header FILE
10594
Configuration files:
10597
Configuration headers:
10600
Configuration commands:
10603
Report bugs to <bug-autoconf@gnu.org>."
10606
cat >>$CONFIG_STATUS <<_ACEOF
10609
configured by $0, generated by GNU Autoconf 2.59,
10610
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10612
Copyright (C) 2003 Free Software Foundation, Inc.
10613
This config.status script is free software; the Free Software Foundation
10614
gives unlimited permission to copy, distribute and modify it."
10619
cat >>$CONFIG_STATUS <<\_ACEOF
10620
# If no file are specified by the user, then we need to provide default
10621
# value. By we need to know if files were specified by the user.
10627
ac_option=`expr "x$1" : 'x\([^=]*\)='`
10628
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10636
*) # This is not an option, so the user has probably given explicit
10639
ac_need_defaults=false;;
10643
# Handling of the options.
10645
cat >>$CONFIG_STATUS <<\_ACEOF
10646
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10648
--version | --vers* | -V )
10649
echo "$ac_cs_version"; exit 0 ;;
10651
# Conflict between --help and --header
10652
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
10653
Try \`$0 --help' for more information." >&5
10654
echo "$as_me: error: ambiguous option: $1
10655
Try \`$0 --help' for more information." >&2;}
10656
{ (exit 1); exit 1; }; };;
10657
--help | --hel | -h )
10658
echo "$ac_cs_usage"; exit 0 ;;
10659
--debug | --d* | -d )
10661
--file | --fil | --fi | --f )
10663
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10664
ac_need_defaults=false;;
10665
--header | --heade | --head | --hea )
10667
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10668
ac_need_defaults=false;;
10669
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
10670
| -silent | --silent | --silen | --sile | --sil | --si | --s)
10673
# This is an error.
10674
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10675
Try \`$0 --help' for more information." >&5
10676
echo "$as_me: error: unrecognized option: $1
10677
Try \`$0 --help' for more information." >&2;}
10678
{ (exit 1); exit 1; }; } ;;
10680
*) ac_config_targets="$ac_config_targets $1" ;;
10686
ac_configure_extra_args=
10688
if $ac_cs_silent; then
10690
ac_configure_extra_args="$ac_configure_extra_args --silent"
10694
cat >>$CONFIG_STATUS <<_ACEOF
10695
if \$ac_cs_recheck; then
10696
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10697
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10702
cat >>$CONFIG_STATUS <<_ACEOF
10704
# INIT-COMMANDS section.
10707
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10713
cat >>$CONFIG_STATUS <<\_ACEOF
10714
for ac_config_target in $ac_config_targets
10716
case "$ac_config_target" in
10717
# Handling of arguments.
10718
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10719
"decoder/Makefile" ) CONFIG_FILES="$CONFIG_FILES decoder/Makefile" ;;
10720
"m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
10721
"common/Makefile" ) CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
10722
"common/m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES common/m4/Makefile" ;;
10723
"gst-fluendo-mp3.spec" ) CONFIG_FILES="$CONFIG_FILES gst-fluendo-mp3.spec" ;;
10724
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10725
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10726
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10727
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10728
{ (exit 1); exit 1; }; };;
10732
# If the user did not use the arguments to specify the items to instantiate,
10733
# then the envvar interface is used. Set only those that are not.
10734
# We use the long form for the default assignment because of an extremely
10735
# bizarre bug on SunOS 4.1.3.
10736
if $ac_need_defaults; then
10737
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10738
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10739
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10742
# Have a temporary directory for convenience. Make it in the build tree
10743
# simply because there is no reason to put it here, and in addition,
10744
# creating and moving files from /tmp can sometimes cause problems.
10745
# Create a temporary directory, and hook for its removal unless debugging.
10748
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10749
trap '{ (exit 1); exit 1; }' 1 2 13 15
10752
# Create a (secure) tmp directory for tmp files.
10755
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10756
test -n "$tmp" && test -d "$tmp"
10759
tmp=./confstat$$-$RANDOM
10760
(umask 077 && mkdir $tmp)
10763
echo "$me: cannot create a temporary directory in ." >&2
10764
{ (exit 1); exit 1; }
10769
cat >>$CONFIG_STATUS <<_ACEOF
10772
# CONFIG_FILES section.
10775
# No need to generate the scripts if there are no CONFIG_FILES.
10776
# This happens for instance when ./config.status config.h
10777
if test -n "\$CONFIG_FILES"; then
10778
# Protect against being on the right side of a sed subst in config.status.
10779
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10780
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10781
s,@SHELL@,$SHELL,;t t
10782
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10783
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10784
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10785
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10786
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10787
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10788
s,@exec_prefix@,$exec_prefix,;t t
10789
s,@prefix@,$prefix,;t t
10790
s,@program_transform_name@,$program_transform_name,;t t
10791
s,@bindir@,$bindir,;t t
10792
s,@sbindir@,$sbindir,;t t
10793
s,@libexecdir@,$libexecdir,;t t
10794
s,@datadir@,$datadir,;t t
10795
s,@sysconfdir@,$sysconfdir,;t t
10796
s,@sharedstatedir@,$sharedstatedir,;t t
10797
s,@localstatedir@,$localstatedir,;t t
10798
s,@libdir@,$libdir,;t t
10799
s,@includedir@,$includedir,;t t
10800
s,@oldincludedir@,$oldincludedir,;t t
10801
s,@infodir@,$infodir,;t t
10802
s,@mandir@,$mandir,;t t
10803
s,@build_alias@,$build_alias,;t t
10804
s,@host_alias@,$host_alias,;t t
10805
s,@target_alias@,$target_alias,;t t
10806
s,@DEFS@,$DEFS,;t t
10807
s,@ECHO_C@,$ECHO_C,;t t
10808
s,@ECHO_N@,$ECHO_N,;t t
10809
s,@ECHO_T@,$ECHO_T,;t t
10810
s,@LIBS@,$LIBS,;t t
10811
s,@GST_PLUGIN_VERSION@,$GST_PLUGIN_VERSION,;t t
10812
s,@GST_PLUGIN_VERSION_RELEASE@,$GST_PLUGIN_VERSION_RELEASE,;t t
10813
s,@GST_PLUGIN_VERSION_MAJOR@,$GST_PLUGIN_VERSION_MAJOR,;t t
10814
s,@GST_PLUGIN_VERSION_MINOR@,$GST_PLUGIN_VERSION_MINOR,;t t
10815
s,@GST_PLUGIN_VERSION_MICRO@,$GST_PLUGIN_VERSION_MICRO,;t t
10816
s,@GST_PLUGIN_VERSION_NANO@,$GST_PLUGIN_VERSION_NANO,;t t
10817
s,@PACKAGE@,$PACKAGE,;t t
10818
s,@VERSION@,$VERSION,;t t
10819
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10820
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10821
s,@MAINT@,$MAINT,;t t
10822
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10823
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10824
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10825
s,@CYGPATH_W@,$CYGPATH_W,;t t
10826
s,@ACLOCAL@,$ACLOCAL,;t t
10827
s,@AUTOCONF@,$AUTOCONF,;t t
10828
s,@AUTOMAKE@,$AUTOMAKE,;t t
10829
s,@AUTOHEADER@,$AUTOHEADER,;t t
10830
s,@MAKEINFO@,$MAKEINFO,;t t
10831
s,@install_sh@,$install_sh,;t t
10832
s,@STRIP@,$STRIP,;t t
10833
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10834
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10835
s,@mkdir_p@,$mkdir_p,;t t
10837
s,@SET_MAKE@,$SET_MAKE,;t t
10838
s,@am__leading_dot@,$am__leading_dot,;t t
10839
s,@AMTAR@,$AMTAR,;t t
10840
s,@am__tar@,$am__tar,;t t
10841
s,@am__untar@,$am__untar,;t t
10842
s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t
10843
s,@build@,$build,;t t
10844
s,@build_cpu@,$build_cpu,;t t
10845
s,@build_vendor@,$build_vendor,;t t
10846
s,@build_os@,$build_os,;t t
10847
s,@host@,$host,;t t
10848
s,@host_cpu@,$host_cpu,;t t
10849
s,@host_vendor@,$host_vendor,;t t
10850
s,@host_os@,$host_os,;t t
10852
s,@CFLAGS@,$CFLAGS,;t t
10853
s,@LDFLAGS@,$LDFLAGS,;t t
10854
s,@CPPFLAGS@,$CPPFLAGS,;t t
10855
s,@ac_ct_CC@,$ac_ct_CC,;t t
10856
s,@EXEEXT@,$EXEEXT,;t t
10857
s,@OBJEXT@,$OBJEXT,;t t
10858
s,@DEPDIR@,$DEPDIR,;t t
10859
s,@am__include@,$am__include,;t t
10860
s,@am__quote@,$am__quote,;t t
10861
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10862
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10863
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10864
s,@CCDEPMODE@,$CCDEPMODE,;t t
10865
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10866
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10867
s,@EGREP@,$EGREP,;t t
10868
s,@LN_S@,$LN_S,;t t
10869
s,@ECHO@,$ECHO,;t t
10871
s,@ac_ct_AR@,$ac_ct_AR,;t t
10872
s,@RANLIB@,$RANLIB,;t t
10873
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10875
s,@LIBTOOL@,$LIBTOOL,;t t
10876
s,@ISODATE@,$ISODATE,;t t
10877
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
10878
s,@VALGRIND_CFLAGS@,$VALGRIND_CFLAGS,;t t
10879
s,@VALGRIND_LIBS@,$VALGRIND_LIBS,;t t
10880
s,@GST_GCOV_ENABLED_TRUE@,$GST_GCOV_ENABLED_TRUE,;t t
10881
s,@GST_GCOV_ENABLED_FALSE@,$GST_GCOV_ENABLED_FALSE,;t t
10882
s,@BUILD_EXAMPLES_TRUE@,$BUILD_EXAMPLES_TRUE,;t t
10883
s,@BUILD_EXAMPLES_FALSE@,$BUILD_EXAMPLES_FALSE,;t t
10884
s,@GST_PACKAGE_NAME@,$GST_PACKAGE_NAME,;t t
10885
s,@GST_PACKAGE_ORIGIN@,$GST_PACKAGE_ORIGIN,;t t
10886
s,@HAVE_PKGCONFIG@,$HAVE_PKGCONFIG,;t t
10887
s,@USE_IPP_TRUE@,$USE_IPP_TRUE,;t t
10888
s,@USE_IPP_FALSE@,$USE_IPP_FALSE,;t t
10889
s,@IPP_LIBS@,$IPP_LIBS,;t t
10890
s,@IPP_INCLUDES@,$IPP_INCLUDES,;t t
10891
s,@GST_MAJORMINOR@,$GST_MAJORMINOR,;t t
10892
s,@GST_CFLAGS@,$GST_CFLAGS,;t t
10893
s,@GST_LIBS@,$GST_LIBS,;t t
10894
s,@plugindir@,$plugindir,;t t
10895
s,@PLUGIN_LDFLAGS@,$PLUGIN_LDFLAGS,;t t
10896
s,@LIBOBJS@,$LIBOBJS,;t t
10897
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10902
cat >>$CONFIG_STATUS <<\_ACEOF
10903
# Split the substitutions into bite-sized pieces for seds with
10904
# small command number limits, like on Digital OSF/1 and HP-UX.
10905
ac_max_sed_lines=48
10906
ac_sed_frag=1 # Number of current file.
10907
ac_beg=1 # First line for current file.
10908
ac_end=$ac_max_sed_lines # Line after last line for current file.
10911
while $ac_more_lines; do
10912
if test $ac_beg -gt 1; then
10913
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10915
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10917
if test ! -s $tmp/subs.frag; then
10918
ac_more_lines=false
10920
# The purpose of the label and of the branching condition is to
10921
# speed up the sed processing (if there are no `@' at all, there
10922
# is no need to browse any of the substitutions).
10923
# These are the two extra sed commands mentioned above.
10925
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10926
if test -z "$ac_sed_cmds"; then
10927
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10929
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10931
ac_sed_frag=`expr $ac_sed_frag + 1`
10933
ac_end=`expr $ac_end + $ac_max_sed_lines`
10936
if test -z "$ac_sed_cmds"; then
10939
fi # test -n "$CONFIG_FILES"
10942
cat >>$CONFIG_STATUS <<\_ACEOF
10943
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10944
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10946
- | *:- | *:-:* ) # input from stdin
10948
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10949
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10950
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10951
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10952
* ) ac_file_in=$ac_file.in ;;
10955
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10956
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10957
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10958
X"$ac_file" : 'X\(//\)[^/]' \| \
10959
X"$ac_file" : 'X\(//\)$' \| \
10960
X"$ac_file" : 'X\(/\)' \| \
10961
. : '\(.\)' 2>/dev/null ||
10963
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10964
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
10965
/^X\(\/\/\)$/{ s//\1/; q; }
10966
/^X\(\/\).*/{ s//\1/; q; }
10968
{ if $as_mkdir_p; then
10973
while test ! -d "$as_dir"; do
10974
as_dirs="$as_dir $as_dirs"
10975
as_dir=`(dirname "$as_dir") 2>/dev/null ||
10976
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10977
X"$as_dir" : 'X\(//\)[^/]' \| \
10978
X"$as_dir" : 'X\(//\)$' \| \
10979
X"$as_dir" : 'X\(/\)' \| \
10980
. : '\(.\)' 2>/dev/null ||
10982
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10983
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
10984
/^X\(\/\/\)$/{ s//\1/; q; }
10985
/^X\(\/\).*/{ s//\1/; q; }
10988
test ! -n "$as_dirs" || mkdir $as_dirs
10989
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10990
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10991
{ (exit 1); exit 1; }; }; }
10995
if test "$ac_dir" != .; then
10996
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10997
# A "../" for each directory in $ac_dir_suffix.
10998
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11000
ac_dir_suffix= ac_top_builddir=
11004
.) # No --srcdir option. We are building in place.
11006
if test -z "$ac_top_builddir"; then
11009
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11011
[\\/]* | ?:[\\/]* ) # Absolute path.
11012
ac_srcdir=$srcdir$ac_dir_suffix;
11013
ac_top_srcdir=$srcdir ;;
11014
*) # Relative path.
11015
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11016
ac_top_srcdir=$ac_top_builddir$srcdir ;;
11019
# Do not use `cd foo && pwd` to compute absolute paths, because
11020
# the directories may not exist.
11022
.) ac_abs_builddir="$ac_dir";;
11025
.) ac_abs_builddir=`pwd`;;
11026
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11027
*) ac_abs_builddir=`pwd`/"$ac_dir";;
11030
case $ac_abs_builddir in
11031
.) ac_abs_top_builddir=${ac_top_builddir}.;;
11033
case ${ac_top_builddir}. in
11034
.) ac_abs_top_builddir=$ac_abs_builddir;;
11035
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11036
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11039
case $ac_abs_builddir in
11040
.) ac_abs_srcdir=$ac_srcdir;;
11043
.) ac_abs_srcdir=$ac_abs_builddir;;
11044
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11045
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11048
case $ac_abs_builddir in
11049
.) ac_abs_top_srcdir=$ac_top_srcdir;;
11051
case $ac_top_srcdir in
11052
.) ac_abs_top_srcdir=$ac_abs_builddir;;
11053
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11054
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11060
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11061
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11064
# Let's still pretend it is `configure' which instantiates (i.e., don't
11065
# use $as_me), people would be surprised to read:
11066
# /* config.h. Generated by config.status. */
11067
if test x"$ac_file" = x-; then
11070
configure_input="$ac_file. "
11072
configure_input=$configure_input"Generated from `echo $ac_file_in |
11073
sed 's,.*/,,'` by configure."
11075
# First look for the input files in the build tree, otherwise in the
11077
ac_file_inputs=`IFS=:
11078
for f in $ac_file_in; do
11080
-) echo $tmp/stdin ;;
11082
# Absolute (can't be DOS-style, as IFS=:)
11083
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11084
echo "$as_me: error: cannot find input file: $f" >&2;}
11085
{ (exit 1); exit 1; }; }
11088
if test -f "$f"; then
11091
elif test -f "$srcdir/$f"; then
11096
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11097
echo "$as_me: error: cannot find input file: $f" >&2;}
11098
{ (exit 1); exit 1; }; }
11101
done` || { (exit 1); exit 1; }
11103
if test x"$ac_file" != x-; then
11104
{ echo "$as_me:$LINENO: creating $ac_file" >&5
11105
echo "$as_me: creating $ac_file" >&6;}
11109
cat >>$CONFIG_STATUS <<_ACEOF
11113
cat >>$CONFIG_STATUS <<\_ACEOF
11115
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11116
s,@configure_input@,$configure_input,;t t
11117
s,@srcdir@,$ac_srcdir,;t t
11118
s,@abs_srcdir@,$ac_abs_srcdir,;t t
11119
s,@top_srcdir@,$ac_top_srcdir,;t t
11120
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11121
s,@builddir@,$ac_builddir,;t t
11122
s,@abs_builddir@,$ac_abs_builddir,;t t
11123
s,@top_builddir@,$ac_top_builddir,;t t
11124
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11125
s,@INSTALL@,$ac_INSTALL,;t t
11126
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11128
if test x"$ac_file" != x-; then
11129
mv $tmp/out $ac_file
11137
cat >>$CONFIG_STATUS <<\_ACEOF
11140
# CONFIG_HEADER section.
11143
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11144
# NAME is the cpp macro being defined and VALUE is the value it is being given.
11146
# ac_d sets the value in "#define NAME VALUE" lines.
11147
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11148
ac_dB='[ ].*$,\1#\2'
11151
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11152
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11153
ac_uB='$,\1#\2define\3'
11157
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11158
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11160
- | *:- | *:-:* ) # input from stdin
11162
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11163
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11164
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11165
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11166
* ) ac_file_in=$ac_file.in ;;
11169
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11170
echo "$as_me: creating $ac_file" >&6;}
11172
# First look for the input files in the build tree, otherwise in the
11174
ac_file_inputs=`IFS=:
11175
for f in $ac_file_in; do
11177
-) echo $tmp/stdin ;;
11179
# Absolute (can't be DOS-style, as IFS=:)
11180
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11181
echo "$as_me: error: cannot find input file: $f" >&2;}
11182
{ (exit 1); exit 1; }; }
11183
# Do quote $f, to prevent DOS paths from being IFS'd.
11186
if test -f "$f"; then
11189
elif test -f "$srcdir/$f"; then
11194
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11195
echo "$as_me: error: cannot find input file: $f" >&2;}
11196
{ (exit 1); exit 1; }; }
11199
done` || { (exit 1); exit 1; }
11200
# Remove the trailing spaces.
11201
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11205
# Transform confdefs.h into two sed scripts, `conftest.defines' and
11206
# `conftest.undefs', that substitutes the proper values into
11207
# config.h.in to produce config.h. The first handles `#define'
11208
# templates, and the second `#undef' templates.
11209
# And first: Protect against being on the right side of a sed subst in
11210
# config.status. Protect against being in an unquoted here document
11211
# in config.status.
11212
rm -f conftest.defines conftest.undefs
11213
# Using a here document instead of a string reduces the quoting nightmare.
11214
# Putting comments in sed scripts is not portable.
11216
# `end' is used to avoid that the second main sed command (meant for
11217
# 0-ary CPP macros) applies to n-ary macro definitions.
11218
# See the Autoconf documentation for `clear'.
11219
cat >confdef2sed.sed <<\_ACEOF
11224
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11226
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11229
# If some macros were called several times there might be several times
11230
# the same #defines, which is useless. Nevertheless, we may not want to
11231
# sort them, since we want the *last* AC-DEFINE to be honored.
11232
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11233
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11234
rm -f confdef2sed.sed
11236
# This sed command replaces #undef with comments. This is necessary, for
11237
# example, in the case of _POSIX_SOURCE, which is predefined and required
11238
# on some systems where configure will not decide to define it.
11239
cat >>conftest.undefs <<\_ACEOF
11240
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11243
# Break up conftest.defines because some shells have a limit on the size
11244
# of here documents, and old seds have small limits too (100 cmds).
11245
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11246
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11247
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11248
echo ' :' >>$CONFIG_STATUS
11249
rm -f conftest.tail
11250
while grep . conftest.defines >/dev/null
11252
# Write a limited-size here document to $tmp/defines.sed.
11253
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11254
# Speed up: don't consider the non `#define' lines.
11255
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11256
# Work around the forget-to-reset-the-flag bug.
11257
echo 't clr' >>$CONFIG_STATUS
11258
echo ': clr' >>$CONFIG_STATUS
11259
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11261
sed -f $tmp/defines.sed $tmp/in >$tmp/out
11263
mv $tmp/out $tmp/in
11265
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11266
rm -f conftest.defines
11267
mv conftest.tail conftest.defines
11269
rm -f conftest.defines
11270
echo ' fi # grep' >>$CONFIG_STATUS
11271
echo >>$CONFIG_STATUS
11273
# Break up conftest.undefs because some shells have a limit on the size
11274
# of here documents, and old seds have small limits too (100 cmds).
11275
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11276
rm -f conftest.tail
11277
while grep . conftest.undefs >/dev/null
11279
# Write a limited-size here document to $tmp/undefs.sed.
11280
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11281
# Speed up: don't consider the non `#undef'
11282
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11283
# Work around the forget-to-reset-the-flag bug.
11284
echo 't clr' >>$CONFIG_STATUS
11285
echo ': clr' >>$CONFIG_STATUS
11286
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11288
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11290
mv $tmp/out $tmp/in
11292
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11293
rm -f conftest.undefs
11294
mv conftest.tail conftest.undefs
11296
rm -f conftest.undefs
11298
cat >>$CONFIG_STATUS <<\_ACEOF
11299
# Let's still pretend it is `configure' which instantiates (i.e., don't
11300
# use $as_me), people would be surprised to read:
11301
# /* config.h. Generated by config.status. */
11302
if test x"$ac_file" = x-; then
11303
echo "/* Generated by configure. */" >$tmp/config.h
11305
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11307
cat $tmp/in >>$tmp/config.h
11309
if test x"$ac_file" != x-; then
11310
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11311
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11312
echo "$as_me: $ac_file is unchanged" >&6;}
11314
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11315
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11316
X"$ac_file" : 'X\(//\)[^/]' \| \
11317
X"$ac_file" : 'X\(//\)$' \| \
11318
X"$ac_file" : 'X\(/\)' \| \
11319
. : '\(.\)' 2>/dev/null ||
11321
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11322
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
11323
/^X\(\/\/\)$/{ s//\1/; q; }
11324
/^X\(\/\).*/{ s//\1/; q; }
11326
{ if $as_mkdir_p; then
11331
while test ! -d "$as_dir"; do
11332
as_dirs="$as_dir $as_dirs"
11333
as_dir=`(dirname "$as_dir") 2>/dev/null ||
11334
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11335
X"$as_dir" : 'X\(//\)[^/]' \| \
11336
X"$as_dir" : 'X\(//\)$' \| \
11337
X"$as_dir" : 'X\(/\)' \| \
11338
. : '\(.\)' 2>/dev/null ||
11340
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11341
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
11342
/^X\(\/\/\)$/{ s//\1/; q; }
11343
/^X\(\/\).*/{ s//\1/; q; }
11346
test ! -n "$as_dirs" || mkdir $as_dirs
11347
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11348
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11349
{ (exit 1); exit 1; }; }; }
11352
mv $tmp/config.h $ac_file
11356
rm -f $tmp/config.h
11358
# Compute $ac_file's index in $config_headers.
11360
for _am_header in $config_headers :; do
11361
case $_am_header in
11362
$ac_file | $ac_file:* )
11365
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
11368
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11369
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11370
X$ac_file : 'X\(//\)[^/]' \| \
11371
X$ac_file : 'X\(//\)$' \| \
11372
X$ac_file : 'X\(/\)' \| \
11373
. : '\(.\)' 2>/dev/null ||
11375
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11376
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
11377
/^X\(\/\/\)$/{ s//\1/; q; }
11378
/^X\(\/\).*/{ s//\1/; q; }
11379
s/.*/./; q'`/stamp-h$_am_stamp_count
11382
cat >>$CONFIG_STATUS <<\_ACEOF
11385
# CONFIG_COMMANDS section.
11387
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11388
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11389
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11390
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11391
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11392
X"$ac_dest" : 'X\(//\)[^/]' \| \
11393
X"$ac_dest" : 'X\(//\)$' \| \
11394
X"$ac_dest" : 'X\(/\)' \| \
11395
. : '\(.\)' 2>/dev/null ||
11397
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11398
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
11399
/^X\(\/\/\)$/{ s//\1/; q; }
11400
/^X\(\/\).*/{ s//\1/; q; }
11402
{ if $as_mkdir_p; then
11407
while test ! -d "$as_dir"; do
11408
as_dirs="$as_dir $as_dirs"
11409
as_dir=`(dirname "$as_dir") 2>/dev/null ||
11410
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11411
X"$as_dir" : 'X\(//\)[^/]' \| \
11412
X"$as_dir" : 'X\(//\)$' \| \
11413
X"$as_dir" : 'X\(/\)' \| \
11414
. : '\(.\)' 2>/dev/null ||
11416
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11417
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
11418
/^X\(\/\/\)$/{ s//\1/; q; }
11419
/^X\(\/\).*/{ s//\1/; q; }
11422
test ! -n "$as_dirs" || mkdir $as_dirs
11423
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11424
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11425
{ (exit 1); exit 1; }; }; }
11429
if test "$ac_dir" != .; then
11430
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11431
# A "../" for each directory in $ac_dir_suffix.
11432
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11434
ac_dir_suffix= ac_top_builddir=
11438
.) # No --srcdir option. We are building in place.
11440
if test -z "$ac_top_builddir"; then
11443
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11445
[\\/]* | ?:[\\/]* ) # Absolute path.
11446
ac_srcdir=$srcdir$ac_dir_suffix;
11447
ac_top_srcdir=$srcdir ;;
11448
*) # Relative path.
11449
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11450
ac_top_srcdir=$ac_top_builddir$srcdir ;;
11453
# Do not use `cd foo && pwd` to compute absolute paths, because
11454
# the directories may not exist.
11456
.) ac_abs_builddir="$ac_dir";;
11459
.) ac_abs_builddir=`pwd`;;
11460
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11461
*) ac_abs_builddir=`pwd`/"$ac_dir";;
11464
case $ac_abs_builddir in
11465
.) ac_abs_top_builddir=${ac_top_builddir}.;;
11467
case ${ac_top_builddir}. in
11468
.) ac_abs_top_builddir=$ac_abs_builddir;;
11469
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11470
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11473
case $ac_abs_builddir in
11474
.) ac_abs_srcdir=$ac_srcdir;;
11477
.) ac_abs_srcdir=$ac_abs_builddir;;
11478
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11479
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11482
case $ac_abs_builddir in
11483
.) ac_abs_top_srcdir=$ac_top_srcdir;;
11485
case $ac_top_srcdir in
11486
.) ac_abs_top_srcdir=$ac_abs_builddir;;
11487
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11488
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11493
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11494
echo "$as_me: executing $ac_dest commands" >&6;}
11496
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11497
# Strip MF so we end up with the name of the file.
11498
mf=`echo "$mf" | sed -e 's/:.*$//'`
11499
# Check whether this is an Automake generated Makefile or not.
11500
# We used to match only the files named `Makefile.in', but
11501
# some people rename them; so instead we look at the file content.
11502
# Grep'ing the first line is not enough: some people post-process
11503
# each Makefile.in and add a new line on top of each file to say so.
11504
# So let's grep whole file.
11505
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11506
dirpart=`(dirname "$mf") 2>/dev/null ||
11507
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11508
X"$mf" : 'X\(//\)[^/]' \| \
11509
X"$mf" : 'X\(//\)$' \| \
11510
X"$mf" : 'X\(/\)' \| \
11511
. : '\(.\)' 2>/dev/null ||
11513
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11514
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
11515
/^X\(\/\/\)$/{ s//\1/; q; }
11516
/^X\(\/\).*/{ s//\1/; q; }
11521
# Extract the definition of DEPDIR, am__include, and am__quote
11522
# from the Makefile without running `make'.
11523
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11524
test -z "$DEPDIR" && continue
11525
am__include=`sed -n 's/^am__include = //p' < "$mf"`
11526
test -z "am__include" && continue
11527
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11528
# When using ansi2knr, U may be empty or an underscore; expand it
11529
U=`sed -n 's/^U = //p' < "$mf"`
11530
# Find all dependency output files, they are included files with
11531
# $(DEPDIR) in their names. We invoke sed twice because it is the
11532
# simplest approach to changing $(DEPDIR) to its actual value in the
11534
for file in `sed -n "
11535
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11536
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11537
# Make sure the directory exists.
11538
test -f "$dirpart/$file" && continue
11539
fdir=`(dirname "$file") 2>/dev/null ||
11540
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11541
X"$file" : 'X\(//\)[^/]' \| \
11542
X"$file" : 'X\(//\)$' \| \
11543
X"$file" : 'X\(/\)' \| \
11544
. : '\(.\)' 2>/dev/null ||
11546
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11547
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
11548
/^X\(\/\/\)$/{ s//\1/; q; }
11549
/^X\(\/\).*/{ s//\1/; q; }
11551
{ if $as_mkdir_p; then
11552
mkdir -p $dirpart/$fdir
11554
as_dir=$dirpart/$fdir
11556
while test ! -d "$as_dir"; do
11557
as_dirs="$as_dir $as_dirs"
11558
as_dir=`(dirname "$as_dir") 2>/dev/null ||
11559
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11560
X"$as_dir" : 'X\(//\)[^/]' \| \
11561
X"$as_dir" : 'X\(//\)$' \| \
11562
X"$as_dir" : 'X\(/\)' \| \
11563
. : '\(.\)' 2>/dev/null ||
11565
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11566
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
11567
/^X\(\/\/\)$/{ s//\1/; q; }
11568
/^X\(\/\).*/{ s//\1/; q; }
11571
test ! -n "$as_dirs" || mkdir $as_dirs
11572
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11573
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11574
{ (exit 1); exit 1; }; }; }
11576
# echo "creating $dirpart/$file"
11577
echo '# dummy' > "$dirpart/$file"
11585
cat >>$CONFIG_STATUS <<\_ACEOF
11587
{ (exit 0); exit 0; }
11589
chmod +x $CONFIG_STATUS
11590
ac_clean_files=$ac_clean_files_save
11593
# configure is writing to config.log, and then calls config.status.
11594
# config.status does its own redirection, appending to config.log.
11595
# Unfortunately, on DOS this fails, as config.log is still kept open
11596
# by configure, so config.status won't be able to write to it; its
11597
# output is simply discarded. So we exec the FD to /dev/null,
11598
# effectively closing config.log, so it can be properly (re)opened and
11599
# appended to by config.status. When coming back to configure, we
11600
# need to make the FD available again.
11601
if test "$no_create" != yes; then
11603
ac_config_status_args=
11604
test "$silent" = yes &&
11605
ac_config_status_args="$ac_config_status_args --quiet"
11607
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11609
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
11610
# would make configure fail if this is the last instruction.
11611
$ac_cs_success || { (exit 1); exit 1; }
11616
$PACKAGE-$GST_PLUGIN_VERSION
11621
Use Intel Performance Primitives: ${HAVE_IPP}