2
@%:@ Guess values for system-dependent variables and create Makefiles.
3
@%:@ Generated by GNU Autoconf 2.69 for libdvdread 4.2.0.
6
@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9
@%:@ This configure script is free software; the Free Software Foundation
10
@%:@ gives unlimited permission to copy, distribute and modify it.
11
## -------------------- ##
12
## M4sh Initialization. ##
13
## -------------------- ##
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21
# is contrary to our usage. Disable this feature.
22
alias -g '${1+"$@"}'='"$@"'
25
case `(set -o) 2>/dev/null` in @%:@(
37
# Printing a long string crashes Solaris 7 /usr/bin/printf.
38
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41
# Prefer a ksh shell builtin over an external printf program on Solaris,
42
# but without wasting forks for bash or zsh.
43
if test -z "$BASH_VERSION$ZSH_VERSION" \
44
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46
as_echo_n='print -rn --'
47
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
as_echo_n='/usr/ucb/echo -n'
55
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60
expr "X$arg" : "X\\(.*\\)$as_nl";
61
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66
as_echo_n='sh -c $as_echo_n_body as_echo'
69
as_echo='sh -c $as_echo_body as_echo'
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
75
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83
# We need space, tab and new line, in precisely that order. Quoting is
84
# there to prevent editors from complaining about space-tab.
85
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86
# splitting by setting IFS to empty value.)
89
# Find who we are. Look in the path if we contain no directory separator.
92
*[\\/]* ) as_myself=$0 ;;
93
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97
test -z "$as_dir" && as_dir=.
98
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104
# We did not find ourselves, most probably we were run as `sh COMMAND'
105
# in which case we are not to be found in the path.
106
if test "x$as_myself" = x; then
109
if test ! -f "$as_myself"; then
110
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114
# Unset variables that we do not need and which cause bugs (e.g. in
115
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116
# suppresses any "Segmentation fault" message there. '((' could
117
# trigger a bug in pdksh 5.2.14.
118
for as_var in BASH_ENV ENV MAIL MAILPATH
119
do eval test x\${$as_var+set} = xset \
120
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
# Use a proper internal environment variable to ensure we don't fall
136
# into an infinite loop, continuously re-executing ourselves.
137
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138
_as_can_reexec=no; export _as_can_reexec;
139
# We cannot yet assume a decent shell, so we have to provide a
140
# neutralization value for shells without unset; and this also
141
# works around shells that cannot unset nonexistent variables.
142
# Preserve -v and -x to the replacement shell.
145
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147
*v*x* | *x*v* ) as_opts=-vx ;;
152
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153
# Admittedly, this is quite paranoid, since all the known shells bail
154
# out after a failed `exec'.
155
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158
# We don't want this to propagate to other subprocesses.
159
{ _as_can_reexec=; unset _as_can_reexec;}
160
if test "x$CONFIG_SHELL" = x; then
161
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165
# is contrary to our usage. Disable this feature.
166
alias -g '\${1+\"\$@\"}'='\"\$@\"'
169
case \`(set -o) 2>/dev/null\` in @%:@(
171
set -o posix ;; @%:@(
177
as_required="as_fn_return () { (exit \$1); }
178
as_fn_success () { as_fn_return 0; }
179
as_fn_failure () { as_fn_return 1; }
180
as_fn_ret_success () { return 0; }
181
as_fn_ret_failure () { return 1; }
184
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
exitcode=1; echo positional parameters were not saved.
193
test x\$exitcode = x0 || exit 1
195
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204
PATH=/empty FPATH=/empty; export PATH FPATH
205
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207
test \$(( 1 + 1 )) = 2 || exit 1"
208
if (eval "$as_required") 2>/dev/null; then :
213
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221
test -z "$as_dir" && as_dir=.
223
case $as_dir in @%:@(
225
for as_base in sh bash ksh sh5; do
226
# Try only shells that exist, to save several forks.
227
as_shell=$as_dir/$as_base
228
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230
CONFIG_SHELL=$as_shell as_have_required=yes
231
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241
CONFIG_SHELL=$SHELL as_have_required=yes
246
if test "x$CONFIG_SHELL" != x; then :
248
# We cannot yet assume a decent shell, so we have to provide a
249
# neutralization value for shells without unset; and this also
250
# works around shells that cannot unset nonexistent variables.
251
# Preserve -v and -x to the replacement shell.
254
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256
*v*x* | *x*v* ) as_opts=-vx ;;
261
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262
# Admittedly, this is quite paranoid, since all the known shells bail
263
# out after a failed `exec'.
264
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268
if test x$as_have_required = xno; then :
269
$as_echo "$0: This script requires a shell more modern than all"
270
$as_echo "$0: the shells that I found on your system."
271
if test x${ZSH_VERSION+set} = xset ; then
272
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
275
$as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276
$0: including any error possibly output before this
277
$0: message. Then install a modern shell, or manually run
278
$0: the script under such a shell if you do have one."
284
SHELL=${CONFIG_SHELL-/bin/sh}
286
# Unset more variables known to interfere with behavior of common tools.
287
CLICOLOR_FORCE= GREP_OPTIONS=
288
unset CLICOLOR_FORCE GREP_OPTIONS
290
## --------------------- ##
291
## M4sh Shell Functions. ##
292
## --------------------- ##
295
@%:@ Portably unset VAR.
298
{ eval $1=; unset $1;}
302
@%:@ as_fn_set_status STATUS
303
@%:@ -----------------------
304
@%:@ Set @S|@? to STATUS, without forking.
308
} @%:@ as_fn_set_status
310
@%:@ as_fn_exit STATUS
311
@%:@ -----------------
312
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322
@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
327
-*) as_dir=./$as_dir;;
329
test -d "$as_dir" || eval $as_mkdir_p || {
333
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336
as_dirs="'$as_qdir' $as_dirs"
337
as_dir=`$as_dirname -- "$as_dir" ||
338
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339
X"$as_dir" : 'X\(//\)[^/]' \| \
340
X"$as_dir" : 'X\(//\)$' \| \
341
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342
$as_echo X"$as_dir" |
343
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360
test -d "$as_dir" && break
362
test -z "$as_dirs" || eval "mkdir $as_dirs"
363
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
@%:@ as_fn_executable_p FILE
369
@%:@ -----------------------
370
@%:@ Test if FILE is an executable regular file.
371
as_fn_executable_p ()
373
test -f "$1" && test -x "$1"
374
} @%:@ as_fn_executable_p
375
@%:@ as_fn_append VAR VALUE
376
@%:@ ----------------------
377
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
378
@%:@ advantage of any shell optimizations that allow amortized linear growth over
379
@%:@ repeated appends, instead of the typical quadratic growth present in naive
380
@%:@ implementations.
381
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382
eval 'as_fn_append ()
393
@%:@ as_fn_arith ARG...
394
@%:@ ------------------
395
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
396
@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
397
@%:@ must be portable across @S|@(()) and expr.
398
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406
as_val=`expr "$@" || test $? -eq 1`
411
@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
412
@%:@ ----------------------------------------
413
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415
@%:@ script with STATUS, using 1 if that was 0.
418
as_status=$1; test $as_status -eq 0 && as_status=1
420
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423
$as_echo "$as_me: error: $2" >&2
424
as_fn_exit $as_status
427
if expr a : '\(a\)' >/dev/null 2>&1 &&
428
test "X`expr 00001 : '.*\(...\)'`" = X001; then
434
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446
as_me=`$as_basename -- "$0" ||
447
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448
X"$0" : 'X\(//\)$' \| \
449
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451
sed '/^.*\/\([^/][^/]*\)\/*$/{
465
# Avoid depending upon Character Ranges.
466
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469
as_cr_digits='0123456789'
470
as_cr_alnum=$as_cr_Letters$as_cr_digits
473
as_lineno_1=$LINENO as_lineno_1a=$LINENO
474
as_lineno_2=$LINENO as_lineno_2a=$LINENO
475
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493
chmod +x "$as_me.lineno" ||
494
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497
# already done that, so ensure we don't try to do so again and fall
498
# in an infinite loop. This has already happened in practice.
499
_as_can_reexec=no; export _as_can_reexec
500
# Don't try to exec as it changes $[0], causing all sort of problems
501
# (the dirname of $[0] is not the place where we might find the
502
# original and so on. Autoconf is especially sensitive to this).
504
# Exit status is that of the last command.
508
ECHO_C= ECHO_N= ECHO_T=
509
case `echo -n x` in @%:@(((((
511
case `echo 'xy\c'` in
512
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
514
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521
rm -f conf$$ conf$$.exe conf$$.file
522
if test -d conf$$.dir; then
523
rm -f conf$$.dir/conf$$.file
526
mkdir conf$$.dir 2>/dev/null
528
if (echo >conf$$.file) 2>/dev/null; then
529
if ln -s conf$$.file conf$$ 2>/dev/null; then
531
# ... but there are two gotchas:
532
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534
# In both cases, we have to default to `cp -pR'.
535
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537
elif ln conf$$.file conf$$ 2>/dev/null; then
545
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546
rmdir conf$$.dir 2>/dev/null
548
if mkdir -p . 2>/dev/null; then
549
as_mkdir_p='mkdir -p "$as_dir"'
551
test -d ./-p && rmdir ./-p
556
as_executable_p=as_fn_executable_p
558
# Sed expression to map a string onto a valid CPP name.
559
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561
# Sed expression to map a string onto a valid variable name.
562
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564
SHELL=${CONFIG_SHELL-/bin/sh}
567
test -n "$DJDIR" || exec 7<&0 </dev/null
571
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572
# so uname gets run too.
573
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
ac_default_prefix=/usr/local
580
ac_config_libobj_dir=.
587
# Identity of this package.
588
PACKAGE_NAME='libdvdread'
589
PACKAGE_TARNAME='libdvdread'
590
PACKAGE_VERSION='4.2.0'
591
PACKAGE_STRING='libdvdread 4.2.0'
595
ac_unique_file="src/dvdread/dvd_reader.h"
596
# Factoring default headers for most tests.
597
ac_includes_default="\
599
#ifdef HAVE_SYS_TYPES_H
600
# include <sys/types.h>
602
#ifdef HAVE_SYS_STAT_H
603
# include <sys/stat.h>
609
# ifdef HAVE_STDLIB_H
614
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619
#ifdef HAVE_STRINGS_H
620
# include <strings.h>
622
#ifdef HAVE_INTTYPES_H
623
# include <inttypes.h>
632
ac_subst_vars='am__EXEEXT_FALSE
704
INSTALL_STRIP_PROGRAM
746
program_transform_name
759
enable_option_checking
760
enable_dependency_tracking
771
ac_precious_vars='build_alias
782
# Initialize some variables set by options.
784
ac_init_version=false
785
ac_unrecognized_opts=
787
# The variables have the same names as the options, with
788
# dashes changed to underlines.
796
program_transform_name=s,x,x,
804
# Installation directory options.
805
# These are left unexpanded so users can "make install exec_prefix=/foo"
806
# and all the variables that are supposed to be based on exec_prefix
807
# by default will actually change.
808
# Use braces instead of parens because sh, perl, etc. also accept them.
809
# (The list follows the same order as the GNU Coding Standards.)
810
bindir='${exec_prefix}/bin'
811
sbindir='${exec_prefix}/sbin'
812
libexecdir='${exec_prefix}/libexec'
813
datarootdir='${prefix}/share'
814
datadir='${datarootdir}'
815
sysconfdir='${prefix}/etc'
816
sharedstatedir='${prefix}/com'
817
localstatedir='${prefix}/var'
818
includedir='${prefix}/include'
819
oldincludedir='/usr/include'
820
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
821
infodir='${datarootdir}/info'
826
libdir='${exec_prefix}/lib'
827
localedir='${datarootdir}/locale'
828
mandir='${datarootdir}/man'
834
# If the previous option needs an argument, assign it.
835
if test -n "$ac_prev"; then
836
eval $ac_prev=\$ac_option
842
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847
# Accept the important Cygnus configure options, so we can diagnose typos.
849
case $ac_dashdash$ac_option in
853
-bindir | --bindir | --bindi | --bind | --bin | --bi)
855
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
858
-build | --build | --buil | --bui | --bu)
859
ac_prev=build_alias ;;
860
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
861
build_alias=$ac_optarg ;;
863
-cache-file | --cache-file | --cache-fil | --cache-fi \
864
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865
ac_prev=cache_file ;;
866
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868
cache_file=$ac_optarg ;;
871
cache_file=config.cache ;;
873
-datadir | --datadir | --datadi | --datad)
875
-datadir=* | --datadir=* | --datadi=* | --datad=*)
876
datadir=$ac_optarg ;;
878
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879
| --dataroo | --dataro | --datar)
880
ac_prev=datarootdir ;;
881
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883
datarootdir=$ac_optarg ;;
885
-disable-* | --disable-*)
886
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887
# Reject names that are not valid shell variable names.
888
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889
as_fn_error $? "invalid feature name: $ac_useropt"
890
ac_useropt_orig=$ac_useropt
891
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892
case $ac_user_opts in
896
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897
ac_unrecognized_sep=', ';;
899
eval enable_$ac_useropt=no ;;
901
-docdir | --docdir | --docdi | --doc | --do)
903
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911
-enable-* | --enable-*)
912
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913
# Reject names that are not valid shell variable names.
914
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915
as_fn_error $? "invalid feature name: $ac_useropt"
916
ac_useropt_orig=$ac_useropt
917
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918
case $ac_user_opts in
922
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923
ac_unrecognized_sep=', ';;
925
eval enable_$ac_useropt=\$ac_optarg ;;
927
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
928
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
929
| --exec | --exe | --ex)
930
ac_prev=exec_prefix ;;
931
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
932
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
933
| --exec=* | --exe=* | --ex=*)
934
exec_prefix=$ac_optarg ;;
936
-gas | --gas | --ga | --g)
937
# Obsolete; use --with-gas.
940
-help | --help | --hel | --he | -h)
942
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
943
ac_init_help=recursive ;;
944
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
945
ac_init_help=short ;;
947
-host | --host | --hos | --ho)
948
ac_prev=host_alias ;;
949
-host=* | --host=* | --hos=* | --ho=*)
950
host_alias=$ac_optarg ;;
952
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956
htmldir=$ac_optarg ;;
958
-includedir | --includedir | --includedi | --included | --include \
959
| --includ | --inclu | --incl | --inc)
960
ac_prev=includedir ;;
961
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
962
| --includ=* | --inclu=* | --incl=* | --inc=*)
963
includedir=$ac_optarg ;;
965
-infodir | --infodir | --infodi | --infod | --info | --inf)
967
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
968
infodir=$ac_optarg ;;
970
-libdir | --libdir | --libdi | --libd)
972
-libdir=* | --libdir=* | --libdi=* | --libd=*)
975
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
976
| --libexe | --libex | --libe)
977
ac_prev=libexecdir ;;
978
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
979
| --libexe=* | --libex=* | --libe=*)
980
libexecdir=$ac_optarg ;;
982
-localedir | --localedir | --localedi | --localed | --locale)
984
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
985
localedir=$ac_optarg ;;
987
-localstatedir | --localstatedir | --localstatedi | --localstated \
988
| --localstate | --localstat | --localsta | --localst | --locals)
989
ac_prev=localstatedir ;;
990
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
991
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
992
localstatedir=$ac_optarg ;;
994
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000
# Obsolete; use --without-fp.
1003
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1004
| --no-cr | --no-c | -n)
1007
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1012
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1013
| --oldin | --oldi | --old | --ol | --o)
1014
ac_prev=oldincludedir ;;
1015
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1016
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1017
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1018
oldincludedir=$ac_optarg ;;
1020
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1023
prefix=$ac_optarg ;;
1025
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1026
| --program-pre | --program-pr | --program-p)
1027
ac_prev=program_prefix ;;
1028
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1029
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1030
program_prefix=$ac_optarg ;;
1032
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1033
| --program-suf | --program-su | --program-s)
1034
ac_prev=program_suffix ;;
1035
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1036
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1037
program_suffix=$ac_optarg ;;
1039
-program-transform-name | --program-transform-name \
1040
| --program-transform-nam | --program-transform-na \
1041
| --program-transform-n | --program-transform- \
1042
| --program-transform | --program-transfor \
1043
| --program-transfo | --program-transf \
1044
| --program-trans | --program-tran \
1045
| --progr-tra | --program-tr | --program-t)
1046
ac_prev=program_transform_name ;;
1047
-program-transform-name=* | --program-transform-name=* \
1048
| --program-transform-nam=* | --program-transform-na=* \
1049
| --program-transform-n=* | --program-transform-=* \
1050
| --program-transform=* | --program-transfor=* \
1051
| --program-transfo=* | --program-transf=* \
1052
| --program-trans=* | --program-tran=* \
1053
| --progr-tra=* | --program-tr=* | --program-t=*)
1054
program_transform_name=$ac_optarg ;;
1056
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1059
pdfdir=$ac_optarg ;;
1061
-psdir | --psdir | --psdi | --psd | --ps)
1063
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1066
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067
| -silent | --silent | --silen | --sile | --sil)
1070
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074
sbindir=$ac_optarg ;;
1076
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1077
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078
| --sharedst | --shareds | --shared | --share | --shar \
1080
ac_prev=sharedstatedir ;;
1081
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085
sharedstatedir=$ac_optarg ;;
1087
-site | --site | --sit)
1089
-site=* | --site=* | --sit=*)
1092
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1095
srcdir=$ac_optarg ;;
1097
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098
| --syscon | --sysco | --sysc | --sys | --sy)
1099
ac_prev=sysconfdir ;;
1100
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1102
sysconfdir=$ac_optarg ;;
1104
-target | --target | --targe | --targ | --tar | --ta | --t)
1105
ac_prev=target_alias ;;
1106
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1107
target_alias=$ac_optarg ;;
1109
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1112
-version | --version | --versio | --versi | --vers | -V)
1113
ac_init_version=: ;;
1116
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1117
# Reject names that are not valid shell variable names.
1118
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119
as_fn_error $? "invalid package name: $ac_useropt"
1120
ac_useropt_orig=$ac_useropt
1121
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122
case $ac_user_opts in
1126
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127
ac_unrecognized_sep=', ';;
1129
eval with_$ac_useropt=\$ac_optarg ;;
1131
-without-* | --without-*)
1132
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133
# Reject names that are not valid shell variable names.
1134
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135
as_fn_error $? "invalid package name: $ac_useropt"
1136
ac_useropt_orig=$ac_useropt
1137
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138
case $ac_user_opts in
1142
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143
ac_unrecognized_sep=', ';;
1145
eval with_$ac_useropt=no ;;
1148
# Obsolete; use --with-x.
1151
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152
| --x-incl | --x-inc | --x-in | --x-i)
1153
ac_prev=x_includes ;;
1154
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156
x_includes=$ac_optarg ;;
1158
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1159
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160
ac_prev=x_libraries ;;
1161
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163
x_libraries=$ac_optarg ;;
1165
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1166
Try \`$0 --help' for more information"
1170
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171
# Reject names that are not valid shell variable names.
1172
case $ac_envvar in #(
1173
'' | [0-9]* | *[!_$as_cr_alnum]* )
1174
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1176
eval $ac_envvar=\$ac_optarg
1177
export $ac_envvar ;;
1180
# FIXME: should be removed in autoconf 3.0.
1181
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1190
if test -n "$ac_prev"; then
1191
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1192
as_fn_error $? "missing argument to $ac_option"
1195
if test -n "$ac_unrecognized_opts"; then
1196
case $enable_option_checking in
1198
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1199
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1203
# Check all directory arguments for consistency.
1204
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205
datadir sysconfdir sharedstatedir localstatedir includedir \
1206
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207
libdir localedir mandir
1209
eval ac_val=\$$ac_var
1210
# Remove trailing slashes.
1213
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214
eval $ac_var=\$ac_val;;
1216
# Be sure to have absolute directory names.
1218
[\\/$]* | ?:[\\/]* ) continue;;
1219
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1224
# There might be people who depend on the old broken behavior: `$host'
1225
# used to hold the argument of --host etc.
1226
# FIXME: To remove some day.
1229
target=$target_alias
1231
# FIXME: To remove some day.
1232
if test "x$host_alias" != x; then
1233
if test "x$build_alias" = x; then
1234
cross_compiling=maybe
1235
elif test "x$build_alias" != "x$host_alias"; then
1241
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
test "$silent" = yes && exec 6>/dev/null
1246
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247
ac_ls_di=`ls -di .` &&
1248
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249
as_fn_error $? "working directory cannot be determined"
1250
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251
as_fn_error $? "pwd does not report name of working directory"
1254
# Find the source files, if location was not specified.
1255
if test -z "$srcdir"; then
1256
ac_srcdir_defaulted=yes
1257
# Try the directory containing this script, then the parent directory.
1258
ac_confdir=`$as_dirname -- "$as_myself" ||
1259
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260
X"$as_myself" : 'X\(//\)[^/]' \| \
1261
X"$as_myself" : 'X\(//\)$' \| \
1262
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263
$as_echo X"$as_myself" |
1264
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282
if test ! -r "$srcdir/$ac_unique_file"; then
1286
ac_srcdir_defaulted=no
1288
if test ! -r "$srcdir/$ac_unique_file"; then
1289
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1292
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1296
# When building in place, set srcdir=.
1297
if test "$ac_abs_confdir" = "$ac_pwd"; then
1300
# Remove unnecessary trailing slashes from srcdir.
1301
# Double slashes in file names in object file debugging info
1302
# mess up M-x gdb in Emacs.
1304
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306
for ac_var in $ac_precious_vars; do
1307
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308
eval ac_env_${ac_var}_value=\$${ac_var}
1309
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314
# Report the --help message.
1316
if test "$ac_init_help" = "long"; then
1317
# Omit some internal or obsolete options to make the list less imposing.
1318
# This message is too long to be a string in the A/UX 3.1 sh.
1320
\`configure' configures libdvdread 4.2.0 to adapt to many kinds of systems.
1322
Usage: $0 [OPTION]... [VAR=VALUE]...
1324
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325
VAR=VALUE. See below for descriptions of some of the useful variables.
1327
Defaults for the options are specified in brackets.
1330
-h, --help display this help and exit
1331
--help=short display options specific to this package
1332
--help=recursive display the short help of all the included packages
1333
-V, --version display version information and exit
1334
-q, --quiet, --silent do not print \`checking ...' messages
1335
--cache-file=FILE cache test results in FILE [disabled]
1336
-C, --config-cache alias for \`--cache-file=config.cache'
1337
-n, --no-create do not create output files
1338
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
Installation directories:
1341
--prefix=PREFIX install architecture-independent files in PREFIX
1342
@<:@@S|@ac_default_prefix@:>@
1343
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1346
By default, \`make install' will install all the files in
1347
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349
for instance \`--prefix=\$HOME'.
1351
For better control, use the options below.
1353
Fine tuning of the installation directories:
1354
--bindir=DIR user executables [EPREFIX/bin]
1355
--sbindir=DIR system admin executables [EPREFIX/sbin]
1356
--libexecdir=DIR program executables [EPREFIX/libexec]
1357
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360
--libdir=DIR object code libraries [EPREFIX/lib]
1361
--includedir=DIR C header files [PREFIX/include]
1362
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1363
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365
--infodir=DIR info documentation [DATAROOTDIR/info]
1366
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367
--mandir=DIR man documentation [DATAROOTDIR/man]
1368
--docdir=DIR documentation root @<:@DATAROOTDIR/doc/libdvdread@:>@
1369
--htmldir=DIR html documentation [DOCDIR]
1370
--dvidir=DIR dvi documentation [DOCDIR]
1371
--pdfdir=DIR pdf documentation [DOCDIR]
1372
--psdir=DIR ps documentation [DOCDIR]
1378
--program-prefix=PREFIX prepend PREFIX to installed program names
1379
--program-suffix=SUFFIX append SUFFIX to installed program names
1380
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1383
--build=BUILD configure for building on BUILD [guessed]
1384
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1388
if test -n "$ac_init_help"; then
1389
case $ac_init_help in
1390
short | recursive ) echo "Configuration of libdvdread 4.2.0:";;
1395
--disable-option-checking ignore unrecognized --enable/--with options
1396
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1398
--disable-dependency-tracking speeds up one-time build
1399
--enable-dependency-tracking do not reject slow dependency extractors
1400
--enable-static@<:@=PKGS@:>@ build static libraries @<:@default=no@:>@
1401
--enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1402
--enable-fast-install@<:@=PKGS@:>@
1403
optimize for fast installation @<:@default=yes@:>@
1404
--disable-libtool-lock avoid locking (might break parallel builds)
1405
--enable-libdvdcss force linking against libdvdcss
1406
--enable-dlfcn use builtin dlfcn for mingw (default is auto)
1409
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1410
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1411
--with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use
1413
--with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1414
--with-sysroot=DIR Search for dependent libraries within DIR
1415
(or the compiler's sysroot if not specified).
1417
Some influential environment variables:
1418
CC C compiler command
1419
CFLAGS C compiler flags
1420
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1421
nonstandard directory <lib dir>
1422
LIBS libraries to pass to the linker, e.g. -l<library>
1423
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1424
you have headers in a nonstandard directory <include dir>
1427
Use these variables to override the choices made by `configure' or to help
1428
it to find libraries and programs with nonstandard names/locations.
1430
Report bugs to the package provider.
1435
if test "$ac_init_help" = "recursive"; then
1436
# If there are subdirs, report their specific --help.
1437
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1438
test -d "$ac_dir" ||
1439
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1444
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1447
# A ".." for each directory in $ac_dir_suffix.
1448
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1449
case $ac_top_builddir_sub in
1450
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1451
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1454
ac_abs_top_builddir=$ac_pwd
1455
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1456
# for backward compatibility:
1457
ac_top_builddir=$ac_top_build_prefix
1460
.) # We are building in place.
1462
ac_top_srcdir=$ac_top_builddir_sub
1463
ac_abs_top_srcdir=$ac_pwd ;;
1464
[\\/]* | ?:[\\/]* ) # Absolute name.
1465
ac_srcdir=$srcdir$ac_dir_suffix;
1466
ac_top_srcdir=$srcdir
1467
ac_abs_top_srcdir=$srcdir ;;
1469
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1470
ac_top_srcdir=$ac_top_build_prefix$srcdir
1471
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1473
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1475
cd "$ac_dir" || { ac_status=$?; continue; }
1476
# Check for guested configure.
1477
if test -f "$ac_srcdir/configure.gnu"; then
1479
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1480
elif test -f "$ac_srcdir/configure"; then
1482
$SHELL "$ac_srcdir/configure" --help=recursive
1484
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1486
cd "$ac_pwd" || { ac_status=$?; break; }
1490
test -n "$ac_init_help" && exit $ac_status
1491
if $ac_init_version; then
1493
libdvdread configure 4.2.0
1494
generated by GNU Autoconf 2.69
1496
Copyright (C) 2012 Free Software Foundation, Inc.
1497
This configure script is free software; the Free Software Foundation
1498
gives unlimited permission to copy, distribute and modify it.
1503
## ------------------------ ##
1504
## Autoconf initialization. ##
1505
## ------------------------ ##
1507
@%:@ ac_fn_c_try_compile LINENO
1508
@%:@ --------------------------
1509
@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1510
ac_fn_c_try_compile ()
1512
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1513
rm -f conftest.$ac_objext
1514
if { { ac_try="$ac_compile"
1516
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1517
*) ac_try_echo=$ac_try;;
1519
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1520
$as_echo "$ac_try_echo"; } >&5
1521
(eval "$ac_compile") 2>conftest.err
1523
if test -s conftest.err; then
1524
grep -v '^ *+' conftest.err >conftest.er1
1525
cat conftest.er1 >&5
1526
mv -f conftest.er1 conftest.err
1528
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1529
test $ac_status = 0; } && {
1530
test -z "$ac_c_werror_flag" ||
1531
test ! -s conftest.err
1532
} && test -s conftest.$ac_objext; then :
1535
$as_echo "$as_me: failed program was:" >&5
1536
sed 's/^/| /' conftest.$ac_ext >&5
1540
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1541
as_fn_set_status $ac_retval
1543
} @%:@ ac_fn_c_try_compile
1545
@%:@ ac_fn_c_try_link LINENO
1546
@%:@ -----------------------
1547
@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1550
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551
rm -f conftest.$ac_objext conftest$ac_exeext
1552
if { { ac_try="$ac_link"
1554
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555
*) ac_try_echo=$ac_try;;
1557
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558
$as_echo "$ac_try_echo"; } >&5
1559
(eval "$ac_link") 2>conftest.err
1561
if test -s conftest.err; then
1562
grep -v '^ *+' conftest.err >conftest.er1
1563
cat conftest.er1 >&5
1564
mv -f conftest.er1 conftest.err
1566
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567
test $ac_status = 0; } && {
1568
test -z "$ac_c_werror_flag" ||
1569
test ! -s conftest.err
1570
} && test -s conftest$ac_exeext && {
1571
test "$cross_compiling" = yes ||
1572
test -x conftest$ac_exeext
1576
$as_echo "$as_me: failed program was:" >&5
1577
sed 's/^/| /' conftest.$ac_ext >&5
1581
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1582
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1583
# interfere with the next link command; also delete a directory that is
1584
# left behind by Apple's compiler. We do this before executing the actions.
1585
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1586
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587
as_fn_set_status $ac_retval
1589
} @%:@ ac_fn_c_try_link
1591
@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1592
@%:@ -------------------------------------------------------
1593
@%:@ Tests whether HEADER exists and can be compiled using the include files in
1594
@%:@ INCLUDES, setting the cache variable VAR accordingly.
1595
ac_fn_c_check_header_compile ()
1597
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1599
$as_echo_n "checking for $2... " >&6; }
1600
if eval \${$3+:} false; then :
1601
$as_echo_n "(cached) " >&6
1603
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1604
/* end confdefs.h. */
1608
if ac_fn_c_try_compile "$LINENO"; then :
1613
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1616
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1617
$as_echo "$ac_res" >&6; }
1618
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620
} @%:@ ac_fn_c_check_header_compile
1622
@%:@ ac_fn_c_try_cpp LINENO
1623
@%:@ ----------------------
1624
@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1627
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628
if { { ac_try="$ac_cpp conftest.$ac_ext"
1630
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631
*) ac_try_echo=$ac_try;;
1633
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634
$as_echo "$ac_try_echo"; } >&5
1635
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1637
if test -s conftest.err; then
1638
grep -v '^ *+' conftest.err >conftest.er1
1639
cat conftest.er1 >&5
1640
mv -f conftest.er1 conftest.err
1642
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643
test $ac_status = 0; } > conftest.i && {
1644
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1645
test ! -s conftest.err
1649
$as_echo "$as_me: failed program was:" >&5
1650
sed 's/^/| /' conftest.$ac_ext >&5
1654
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655
as_fn_set_status $ac_retval
1657
} @%:@ ac_fn_c_try_cpp
1659
@%:@ ac_fn_c_try_run LINENO
1660
@%:@ ----------------------
1661
@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1662
@%:@ that executables *can* be run.
1665
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666
if { { ac_try="$ac_link"
1668
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669
*) ac_try_echo=$ac_try;;
1671
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672
$as_echo "$ac_try_echo"; } >&5
1673
(eval "$ac_link") 2>&5
1675
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1677
{ { case "(($ac_try" in
1678
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679
*) ac_try_echo=$ac_try;;
1681
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682
$as_echo "$ac_try_echo"; } >&5
1683
(eval "$ac_try") 2>&5
1685
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686
test $ac_status = 0; }; }; then :
1689
$as_echo "$as_me: program exited with status $ac_status" >&5
1690
$as_echo "$as_me: failed program was:" >&5
1691
sed 's/^/| /' conftest.$ac_ext >&5
1693
ac_retval=$ac_status
1695
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1696
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697
as_fn_set_status $ac_retval
1699
} @%:@ ac_fn_c_try_run
1701
@%:@ ac_fn_c_check_func LINENO FUNC VAR
1702
@%:@ ----------------------------------
1703
@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1704
ac_fn_c_check_func ()
1706
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708
$as_echo_n "checking for $2... " >&6; }
1709
if eval \${$3+:} false; then :
1710
$as_echo_n "(cached) " >&6
1712
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713
/* end confdefs.h. */
1714
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1715
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1716
#define $2 innocuous_$2
1718
/* System header to define __stub macros and hopefully few prototypes,
1719
which can conflict with char $2 (); below.
1720
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1721
<limits.h> exists even on freestanding compilers. */
1724
# include <limits.h>
1726
# include <assert.h>
1731
/* Override any GCC internal prototype to avoid an error.
1732
Use char because int might match the return type of a GCC
1733
builtin and then its argument prototype would still apply. */
1738
/* The GNU C library defines this for functions which it implements
1739
to always fail with ENOSYS. Some functions are actually named
1740
something starting with __ and the normal name is an alias. */
1741
#if defined __stub_$2 || defined __stub___$2
1753
if ac_fn_c_try_link "$LINENO"; then :
1758
rm -f core conftest.err conftest.$ac_objext \
1759
conftest$ac_exeext conftest.$ac_ext
1762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763
$as_echo "$ac_res" >&6; }
1764
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766
} @%:@ ac_fn_c_check_func
1768
@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1769
@%:@ -------------------------------------------------------
1770
@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1771
@%:@ the include files in INCLUDES and setting the cache variable VAR
1773
ac_fn_c_check_header_mongrel ()
1775
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776
if eval \${$3+:} false; then :
1777
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778
$as_echo_n "checking for $2... " >&6; }
1779
if eval \${$3+:} false; then :
1780
$as_echo_n "(cached) " >&6
1783
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784
$as_echo "$ac_res" >&6; }
1786
# Is the header compilable?
1787
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1788
$as_echo_n "checking $2 usability... " >&6; }
1789
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790
/* end confdefs.h. */
1794
if ac_fn_c_try_compile "$LINENO"; then :
1795
ac_header_compiler=yes
1797
ac_header_compiler=no
1799
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1801
$as_echo "$ac_header_compiler" >&6; }
1803
# Is the header present?
1804
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1805
$as_echo_n "checking $2 presence... " >&6; }
1806
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807
/* end confdefs.h. */
1810
if ac_fn_c_try_cpp "$LINENO"; then :
1811
ac_header_preproc=yes
1813
ac_header_preproc=no
1815
rm -f conftest.err conftest.i conftest.$ac_ext
1816
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1817
$as_echo "$ac_header_preproc" >&6; }
1819
# So? What about this header?
1820
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1822
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1823
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1824
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1825
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1828
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1829
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1830
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1831
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1832
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1833
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1834
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1835
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1836
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1837
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1840
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841
$as_echo_n "checking for $2... " >&6; }
1842
if eval \${$3+:} false; then :
1843
$as_echo_n "(cached) " >&6
1845
eval "$3=\$ac_header_compiler"
1848
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849
$as_echo "$ac_res" >&6; }
1851
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853
} @%:@ ac_fn_c_check_header_mongrel
1855
@%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1856
@%:@ -------------------------------------------
1857
@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
1858
@%:@ variable VAR accordingly.
1859
ac_fn_c_check_type ()
1861
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863
$as_echo_n "checking for $2... " >&6; }
1864
if eval \${$3+:} false; then :
1865
$as_echo_n "(cached) " >&6
1868
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869
/* end confdefs.h. */
1880
if ac_fn_c_try_compile "$LINENO"; then :
1881
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882
/* end confdefs.h. */
1893
if ac_fn_c_try_compile "$LINENO"; then :
1898
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1900
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904
$as_echo "$ac_res" >&6; }
1905
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907
} @%:@ ac_fn_c_check_type
1908
cat >config.log <<_ACEOF
1909
This file contains any messages produced by compilers while
1910
running configure, to aid debugging if configure makes a mistake.
1912
It was created by libdvdread $as_me 4.2.0, which was
1913
generated by GNU Autoconf 2.69. Invocation command line was
1925
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1926
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1927
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1928
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1929
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1931
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1932
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1934
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1935
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1936
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1937
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1938
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1939
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1940
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1944
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948
test -z "$as_dir" && as_dir=.
1949
$as_echo "PATH: $as_dir"
1965
# Keep a trace of the command line.
1966
# Strip out --no-create and --no-recursion so they do not pile up.
1967
# Strip out --silent because we don't want to record it for future runs.
1968
# Also quote any args containing shell meta-characters.
1969
# Make two passes to allow for proper duplicate-argument suppression.
1973
ac_must_keep_next=false
1979
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1980
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1981
| -silent | --silent | --silen | --sile | --sil)
1984
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1987
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1989
as_fn_append ac_configure_args1 " '$ac_arg'"
1990
if test $ac_must_keep_next = true; then
1991
ac_must_keep_next=false # Got value, back to normal.
1994
*=* | --config-cache | -C | -disable-* | --disable-* \
1995
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1996
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1997
| -with-* | --with-* | -without-* | --without-* | --x)
1998
case "$ac_configure_args0 " in
1999
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2002
-* ) ac_must_keep_next=true ;;
2005
as_fn_append ac_configure_args " '$ac_arg'"
2010
{ ac_configure_args0=; unset ac_configure_args0;}
2011
{ ac_configure_args1=; unset ac_configure_args1;}
2013
# When interrupted or exit'd, cleanup temporary files, and complete
2014
# config.log. We remove comments because anyway the quotes in there
2015
# would cause problems or look ugly.
2016
# WARNING: Use '\'' to represent an apostrophe within the trap.
2017
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2018
trap 'exit_status=$?
2019
# Save into config.log some information that might help in debugging.
2023
$as_echo "## ---------------- ##
2024
## Cache variables. ##
2025
## ---------------- ##"
2027
# The following way of writing the cache mishandles newlines in values,
2029
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2030
eval ac_val=\$$ac_var
2034
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2035
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2038
_ | IFS | as_nl) ;; #(
2039
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2040
*) { eval $ac_var=; unset $ac_var;} ;;
2045
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2046
*${as_nl}ac_space=\ *)
2048
"s/'\''/'\''\\\\'\'''\''/g;
2049
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2052
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2059
$as_echo "## ----------------- ##
2060
## Output variables. ##
2061
## ----------------- ##"
2063
for ac_var in $ac_subst_vars
2065
eval ac_val=\$$ac_var
2067
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2069
$as_echo "$ac_var='\''$ac_val'\''"
2073
if test -n "$ac_subst_files"; then
2074
$as_echo "## ------------------- ##
2075
## File substitutions. ##
2076
## ------------------- ##"
2078
for ac_var in $ac_subst_files
2080
eval ac_val=\$$ac_var
2082
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2084
$as_echo "$ac_var='\''$ac_val'\''"
2089
if test -s confdefs.h; then
2090
$as_echo "## ----------- ##
2097
test "$ac_signal" != 0 &&
2098
$as_echo "$as_me: caught signal $ac_signal"
2099
$as_echo "$as_me: exit $exit_status"
2101
rm -f core *.core core.conftest.* &&
2102
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2105
for ac_signal in 1 2 13 15; do
2106
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2110
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2111
rm -f -r conftest* confdefs.h
2113
$as_echo "/* confdefs.h */" > confdefs.h
2115
# Predefined preprocessor variables.
2117
cat >>confdefs.h <<_ACEOF
2118
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
2121
cat >>confdefs.h <<_ACEOF
2122
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2125
cat >>confdefs.h <<_ACEOF
2126
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2129
cat >>confdefs.h <<_ACEOF
2130
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
2133
cat >>confdefs.h <<_ACEOF
2134
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2137
cat >>confdefs.h <<_ACEOF
2138
@%:@define PACKAGE_URL "$PACKAGE_URL"
2142
# Let the site file select an alternate cache file if it wants to.
2143
# Prefer an explicitly selected file to automatically selected ones.
2146
if test -n "$CONFIG_SITE"; then
2147
# We do not want a PATH search for config.site.
2148
case $CONFIG_SITE in @%:@((
2149
-*) ac_site_file1=./$CONFIG_SITE;;
2150
*/*) ac_site_file1=$CONFIG_SITE;;
2151
*) ac_site_file1=./$CONFIG_SITE;;
2153
elif test "x$prefix" != xNONE; then
2154
ac_site_file1=$prefix/share/config.site
2155
ac_site_file2=$prefix/etc/config.site
2157
ac_site_file1=$ac_default_prefix/share/config.site
2158
ac_site_file2=$ac_default_prefix/etc/config.site
2160
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2162
test "x$ac_site_file" = xNONE && continue
2163
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2164
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2165
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2166
sed 's/^/| /' "$ac_site_file" >&5
2168
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2169
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2170
as_fn_error $? "failed to load site script $ac_site_file
2171
See \`config.log' for more details" "$LINENO" 5; }
2175
if test -r "$cache_file"; then
2176
# Some versions of bash will fail to source /dev/null (special files
2177
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2178
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2179
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2180
$as_echo "$as_me: loading cache $cache_file" >&6;}
2182
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2183
*) . "./$cache_file";;
2187
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2188
$as_echo "$as_me: creating cache $cache_file" >&6;}
2192
# Check that the precious variables saved in the cache have kept the same
2194
ac_cache_corrupted=false
2195
for ac_var in $ac_precious_vars; do
2196
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2197
eval ac_new_set=\$ac_env_${ac_var}_set
2198
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2199
eval ac_new_val=\$ac_env_${ac_var}_value
2200
case $ac_old_set,$ac_new_set in
2202
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2203
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2204
ac_cache_corrupted=: ;;
2206
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2207
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2208
ac_cache_corrupted=: ;;
2211
if test "x$ac_old_val" != "x$ac_new_val"; then
2212
# differences in whitespace do not lead to failure.
2213
ac_old_val_w=`echo x $ac_old_val`
2214
ac_new_val_w=`echo x $ac_new_val`
2215
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2216
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2217
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2218
ac_cache_corrupted=:
2220
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2221
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2222
eval $ac_var=\$ac_old_val
2224
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2225
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2226
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2227
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2230
# Pass precious variables to config.status.
2231
if test "$ac_new_set" = set; then
2233
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2234
*) ac_arg=$ac_var=$ac_new_val ;;
2236
case " $ac_configure_args " in
2237
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2238
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2242
if $ac_cache_corrupted; then
2243
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2244
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2245
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2246
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2247
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2249
## -------------------- ##
2250
## Main body of script. ##
2251
## -------------------- ##
2254
ac_cpp='$CPP $CPPFLAGS'
2255
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2256
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2257
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2261
am__api_version='1.11'
2264
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2265
if test -f "$ac_dir/install-sh"; then
2267
ac_install_sh="$ac_aux_dir/install-sh -c"
2269
elif test -f "$ac_dir/install.sh"; then
2271
ac_install_sh="$ac_aux_dir/install.sh -c"
2273
elif test -f "$ac_dir/shtool"; then
2275
ac_install_sh="$ac_aux_dir/shtool install -c"
2279
if test -z "$ac_aux_dir"; then
2280
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2283
# These three variables are undocumented and unsupported,
2284
# and are intended to be withdrawn in a future Autoconf release.
2285
# They can cause serious problems if a builder's source tree is in a directory
2286
# whose full name contains unusual characters.
2287
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2288
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2289
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2292
# Find a good install program. We prefer a C program (faster),
2293
# so one script is as good as another. But avoid the broken or
2294
# incompatible versions:
2295
# SysV /etc/install, /usr/sbin/install
2296
# SunOS /usr/etc/install
2297
# IRIX /sbin/install
2299
# AmigaOS /C/install, which installs bootblocks on floppy discs
2300
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2301
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2302
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2303
# OS/2's system install, which has a completely different semantic
2304
# ./install, which can be erroneously created by make from ./install.sh.
2305
# Reject install programs that cannot install multiple files.
2306
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2307
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2308
if test -z "$INSTALL"; then
2309
if ${ac_cv_path_install+:} false; then :
2310
$as_echo_n "(cached) " >&6
2312
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316
test -z "$as_dir" && as_dir=.
2317
# Account for people who put trailing slashes in PATH elements.
2318
case $as_dir/ in @%:@((
2319
./ | .// | /[cC]/* | \
2320
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2321
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2324
# OSF1 and SCO ODT 3.0 have their own names for install.
2325
# Don't use installbsd from OSF since it installs stuff as root
2327
for ac_prog in ginstall scoinst install; do
2328
for ac_exec_ext in '' $ac_executable_extensions; do
2329
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2330
if test $ac_prog = install &&
2331
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2332
# AIX install. It has an incompatible calling convention.
2334
elif test $ac_prog = install &&
2335
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2336
# program-specific install script used by HP pwplus--don't use.
2339
rm -rf conftest.one conftest.two conftest.dir
2340
echo one > conftest.one
2341
echo two > conftest.two
2343
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2344
test -s conftest.one && test -s conftest.two &&
2345
test -s conftest.dir/conftest.one &&
2346
test -s conftest.dir/conftest.two
2348
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2361
rm -rf conftest.one conftest.two conftest.dir
2364
if test "${ac_cv_path_install+set}" = set; then
2365
INSTALL=$ac_cv_path_install
2367
# As a last resort, use the slow shell script. Don't cache a
2368
# value for INSTALL within a source directory, because that will
2369
# break other packages using the cache if that directory is
2370
# removed, or if the value is a relative name.
2371
INSTALL=$ac_install_sh
2374
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2375
$as_echo "$INSTALL" >&6; }
2377
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2378
# It thinks the first close brace ends the variable substitution.
2379
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2381
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2383
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2385
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2386
$as_echo_n "checking whether build environment is sane... " >&6; }
2389
echo timestamp > conftest.file
2390
# Reject unsafe characters in $srcdir or the absolute working directory
2391
# name. Accept space and tab only in the latter.
2395
*[\\\"\#\$\&\'\`$am_lf]*)
2396
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2399
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2400
as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2403
# Do `set' in a subshell so we don't clobber the current shell's
2404
# arguments. Must try -L first in case configure is actually a
2405
# symlink; some systems play weird games with the mod time of symlinks
2406
# (eg FreeBSD returns the mod time of the symlink's containing
2409
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2410
if test "$*" = "X"; then
2412
set X `ls -t "$srcdir/configure" conftest.file`
2415
if test "$*" != "X $srcdir/configure conftest.file" \
2416
&& test "$*" != "X conftest.file $srcdir/configure"; then
2418
# If neither matched, then we have a broken ls. This can happen
2419
# if, for instance, CONFIG_SHELL is bash and it inherits a
2420
# broken ls alias from the environment. This has actually
2421
# happened. Such a system could not be considered "sane".
2422
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2423
alias in your environment" "$LINENO" 5
2426
test "$2" = conftest.file
2432
as_fn_error $? "newly created file is older than distributed files!
2433
Check your system clock" "$LINENO" 5
2435
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2436
$as_echo "yes" >&6; }
2437
test "$program_prefix" != NONE &&
2438
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2439
# Use a double $ so make ignores it.
2440
test "$program_suffix" != NONE &&
2441
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2442
# Double any \ or $.
2443
# By default was `s,x,x', remove it if useless.
2444
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2445
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2447
# expand $ac_aux_dir to an absolute path
2448
am_aux_dir=`cd $ac_aux_dir && pwd`
2450
if test x"${MISSING+set}" != xset; then
2453
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2455
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2458
# Use eval to expand $SHELL
2459
if eval "$MISSING --run true"; then
2460
am_missing_run="$MISSING --run "
2463
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2464
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2467
if test x"${install_sh}" != xset; then
2470
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2472
install_sh="\${SHELL} $am_aux_dir/install-sh"
2476
# Installed binaries are usually stripped using `strip' when the user
2477
# run `make install-strip'. However `strip' might not be the right
2478
# tool to use in cross-compilation environments, therefore Automake
2479
# will honor the `STRIP' environment variable to overrule this program.
2480
if test "$cross_compiling" != no; then
2481
if test -n "$ac_tool_prefix"; then
2482
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2483
set dummy ${ac_tool_prefix}strip; ac_word=$2
2484
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2485
$as_echo_n "checking for $ac_word... " >&6; }
2486
if ${ac_cv_prog_STRIP+:} false; then :
2487
$as_echo_n "(cached) " >&6
2489
if test -n "$STRIP"; then
2490
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2492
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496
test -z "$as_dir" && as_dir=.
2497
for ac_exec_ext in '' $ac_executable_extensions; do
2498
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2499
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2500
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2509
STRIP=$ac_cv_prog_STRIP
2510
if test -n "$STRIP"; then
2511
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2512
$as_echo "$STRIP" >&6; }
2514
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2515
$as_echo "no" >&6; }
2520
if test -z "$ac_cv_prog_STRIP"; then
2522
# Extract the first word of "strip", so it can be a program name with args.
2523
set dummy strip; ac_word=$2
2524
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2525
$as_echo_n "checking for $ac_word... " >&6; }
2526
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2527
$as_echo_n "(cached) " >&6
2529
if test -n "$ac_ct_STRIP"; then
2530
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2532
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536
test -z "$as_dir" && as_dir=.
2537
for ac_exec_ext in '' $ac_executable_extensions; do
2538
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2539
ac_cv_prog_ac_ct_STRIP="strip"
2540
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2549
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2550
if test -n "$ac_ct_STRIP"; then
2551
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2552
$as_echo "$ac_ct_STRIP" >&6; }
2554
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2555
$as_echo "no" >&6; }
2558
if test "x$ac_ct_STRIP" = x; then
2561
case $cross_compiling:$ac_tool_warned in
2563
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2564
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2565
ac_tool_warned=yes ;;
2570
STRIP="$ac_cv_prog_STRIP"
2574
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2576
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2577
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2578
if test -z "$MKDIR_P"; then
2579
if ${ac_cv_path_mkdir+:} false; then :
2580
$as_echo_n "(cached) " >&6
2582
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2586
test -z "$as_dir" && as_dir=.
2587
for ac_prog in mkdir gmkdir; do
2588
for ac_exec_ext in '' $ac_executable_extensions; do
2589
as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2590
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2591
'mkdir (GNU coreutils) '* | \
2592
'mkdir (coreutils) '* | \
2593
'mkdir (fileutils) '4.1*)
2594
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2604
test -d ./--version && rmdir ./--version
2605
if test "${ac_cv_path_mkdir+set}" = set; then
2606
MKDIR_P="$ac_cv_path_mkdir -p"
2608
# As a last resort, use the slow shell script. Don't cache a
2609
# value for MKDIR_P within a source directory, because that will
2610
# break other packages using the cache if that directory is
2611
# removed, or if the value is a relative name.
2612
MKDIR_P="$ac_install_sh -d"
2615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2616
$as_echo "$MKDIR_P" >&6; }
2620
[\\/$]* | ?:[\\/]*) ;;
2621
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2624
for ac_prog in gawk mawk nawk awk
2626
# Extract the first word of "$ac_prog", so it can be a program name with args.
2627
set dummy $ac_prog; ac_word=$2
2628
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2629
$as_echo_n "checking for $ac_word... " >&6; }
2630
if ${ac_cv_prog_AWK+:} false; then :
2631
$as_echo_n "(cached) " >&6
2633
if test -n "$AWK"; then
2634
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2636
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640
test -z "$as_dir" && as_dir=.
2641
for ac_exec_ext in '' $ac_executable_extensions; do
2642
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2643
ac_cv_prog_AWK="$ac_prog"
2644
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2654
if test -n "$AWK"; then
2655
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2656
$as_echo "$AWK" >&6; }
2658
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2659
$as_echo "no" >&6; }
2663
test -n "$AWK" && break
2666
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2667
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2669
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2670
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2671
$as_echo_n "(cached) " >&6
2673
cat >conftest.make <<\_ACEOF
2676
@echo '@@@%%%=$(MAKE)=@@@%%%'
2678
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2679
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2681
eval ac_cv_prog_make_${ac_make}_set=yes;;
2683
eval ac_cv_prog_make_${ac_make}_set=no;;
2687
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2688
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2689
$as_echo "yes" >&6; }
2692
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2693
$as_echo "no" >&6; }
2694
SET_MAKE="MAKE=${MAKE-make}"
2697
rm -rf .tst 2>/dev/null
2698
mkdir .tst 2>/dev/null
2699
if test -d .tst; then
2704
rmdir .tst 2>/dev/null
2706
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2707
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2708
# is not polluted with repeated "-I."
2709
am__isrc=' -I$(srcdir)'
2710
# test to see if srcdir already configured
2711
if test -f $srcdir/config.status; then
2712
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2716
# test whether we have cygpath
2717
if test -z "$CYGPATH_W"; then
2718
if (cygpath --version) >/dev/null 2>/dev/null; then
2719
CYGPATH_W='cygpath -w'
2726
# Define the identity of the package.
2727
PACKAGE='libdvdread'
2731
cat >>confdefs.h <<_ACEOF
2732
@%:@define PACKAGE "$PACKAGE"
2736
cat >>confdefs.h <<_ACEOF
2737
@%:@define VERSION "$VERSION"
2740
# Some tools Automake needs.
2742
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2745
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2748
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2751
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2754
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2756
# We need awk for the "check" target. The system "awk" is bad on
2758
# Always define AMTAR for backward compatibility. Yes, it's still used
2759
# in the wild :-( We should find a proper way to deprecate it ...
2762
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2769
ac_config_headers="$ac_config_headers config.h"
2771
# Make sure we can run config.sub.
2772
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2773
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2775
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2776
$as_echo_n "checking build system type... " >&6; }
2777
if ${ac_cv_build+:} false; then :
2778
$as_echo_n "(cached) " >&6
2780
ac_build_alias=$build_alias
2781
test "x$ac_build_alias" = x &&
2782
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2783
test "x$ac_build_alias" = x &&
2784
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2785
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2786
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2789
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2790
$as_echo "$ac_cv_build" >&6; }
2791
case $ac_cv_build in
2793
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2796
ac_save_IFS=$IFS; IFS='-'
2802
# Remember, the first character of IFS is used to create $*,
2803
# except with old shells:
2806
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2809
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2810
$as_echo_n "checking host system type... " >&6; }
2811
if ${ac_cv_host+:} false; then :
2812
$as_echo_n "(cached) " >&6
2814
if test "x$host_alias" = x; then
2815
ac_cv_host=$ac_cv_build
2817
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2818
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2822
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2823
$as_echo "$ac_cv_host" >&6; }
2826
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2829
ac_save_IFS=$IFS; IFS='-'
2835
# Remember, the first character of IFS is used to create $*,
2836
# except with old shells:
2839
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2853
DVDREAD_LT_CURRENT=5
2855
DVDREAD_LT_REVISION=2
2861
if test x$DVDREAD_BUILD != "x"; then
2862
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** build forced to $DVDREAD_BUILD ***" >&5
2863
$as_echo "*** build forced to $DVDREAD_BUILD ***" >&6; }
2864
build=$DVDREAD_BUILD
2870
saved_CFLAGS="$CFLAGS"
2871
DEPDIR="${am__leading_dot}deps"
2873
ac_config_commands="$ac_config_commands depfiles"
2876
am_make=${MAKE-make}
2877
cat > confinc << 'END'
2879
@echo this is the am__doit target
2882
# If we don't find an include directive, just comment out the code.
2883
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2884
$as_echo_n "checking for style of include used by $am_make... " >&6; }
2888
# First try GNU make style include.
2889
echo "include confinc" > confmf
2890
# Ignore all kinds of additional output from `make'.
2891
case `$am_make -s -f confmf 2> /dev/null` in #(
2892
*the\ am__doit\ target*)
2898
# Now try BSD make style include.
2899
if test "$am__include" = "#"; then
2900
echo '.include "confinc"' > confmf
2901
case `$am_make -s -f confmf 2> /dev/null` in #(
2902
*the\ am__doit\ target*)
2903
am__include=.include
2911
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2912
$as_echo "$_am_result" >&6; }
2913
rm -f confinc confmf
2915
@%:@ Check whether --enable-dependency-tracking was given.
2916
if test "${enable_dependency_tracking+set}" = set; then :
2917
enableval=$enable_dependency_tracking;
2920
if test "x$enable_dependency_tracking" != xno; then
2921
am_depcomp="$ac_aux_dir/depcomp"
2925
if test "x$enable_dependency_tracking" != xno; then
2935
ac_cpp='$CPP $CPPFLAGS'
2936
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2937
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2938
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2939
if test -n "$ac_tool_prefix"; then
2940
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2941
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2942
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943
$as_echo_n "checking for $ac_word... " >&6; }
2944
if ${ac_cv_prog_CC+:} false; then :
2945
$as_echo_n "(cached) " >&6
2947
if test -n "$CC"; then
2948
ac_cv_prog_CC="$CC" # Let the user override the test.
2950
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954
test -z "$as_dir" && as_dir=.
2955
for ac_exec_ext in '' $ac_executable_extensions; do
2956
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2958
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968
if test -n "$CC"; then
2969
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2970
$as_echo "$CC" >&6; }
2972
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973
$as_echo "no" >&6; }
2978
if test -z "$ac_cv_prog_CC"; then
2980
# Extract the first word of "gcc", so it can be a program name with args.
2981
set dummy gcc; ac_word=$2
2982
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983
$as_echo_n "checking for $ac_word... " >&6; }
2984
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2985
$as_echo_n "(cached) " >&6
2987
if test -n "$ac_ct_CC"; then
2988
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2990
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994
test -z "$as_dir" && as_dir=.
2995
for ac_exec_ext in '' $ac_executable_extensions; do
2996
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997
ac_cv_prog_ac_ct_CC="gcc"
2998
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3008
if test -n "$ac_ct_CC"; then
3009
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3010
$as_echo "$ac_ct_CC" >&6; }
3012
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013
$as_echo "no" >&6; }
3016
if test "x$ac_ct_CC" = x; then
3019
case $cross_compiling:$ac_tool_warned in
3021
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3022
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3023
ac_tool_warned=yes ;;
3031
if test -z "$CC"; then
3032
if test -n "$ac_tool_prefix"; then
3033
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3034
set dummy ${ac_tool_prefix}cc; ac_word=$2
3035
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036
$as_echo_n "checking for $ac_word... " >&6; }
3037
if ${ac_cv_prog_CC+:} false; then :
3038
$as_echo_n "(cached) " >&6
3040
if test -n "$CC"; then
3041
ac_cv_prog_CC="$CC" # Let the user override the test.
3043
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047
test -z "$as_dir" && as_dir=.
3048
for ac_exec_ext in '' $ac_executable_extensions; do
3049
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3050
ac_cv_prog_CC="${ac_tool_prefix}cc"
3051
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061
if test -n "$CC"; then
3062
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3063
$as_echo "$CC" >&6; }
3065
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066
$as_echo "no" >&6; }
3072
if test -z "$CC"; then
3073
# Extract the first word of "cc", so it can be a program name with args.
3074
set dummy cc; ac_word=$2
3075
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076
$as_echo_n "checking for $ac_word... " >&6; }
3077
if ${ac_cv_prog_CC+:} false; then :
3078
$as_echo_n "(cached) " >&6
3080
if test -n "$CC"; then
3081
ac_cv_prog_CC="$CC" # Let the user override the test.
3084
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088
test -z "$as_dir" && as_dir=.
3089
for ac_exec_ext in '' $ac_executable_extensions; do
3090
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3092
ac_prog_rejected=yes
3096
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103
if test $ac_prog_rejected = yes; then
3104
# We found a bogon in the path, so make sure we never use it.
3105
set dummy $ac_cv_prog_CC
3107
if test $@%:@ != 0; then
3108
# We chose a different compiler from the bogus one.
3109
# However, it has the same basename, so the bogon will be chosen
3110
# first if we set CC to just the basename; use the full file name.
3112
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3118
if test -n "$CC"; then
3119
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3120
$as_echo "$CC" >&6; }
3122
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123
$as_echo "no" >&6; }
3128
if test -z "$CC"; then
3129
if test -n "$ac_tool_prefix"; then
3130
for ac_prog in cl.exe
3132
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3133
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3134
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135
$as_echo_n "checking for $ac_word... " >&6; }
3136
if ${ac_cv_prog_CC+:} false; then :
3137
$as_echo_n "(cached) " >&6
3139
if test -n "$CC"; then
3140
ac_cv_prog_CC="$CC" # Let the user override the test.
3142
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146
test -z "$as_dir" && as_dir=.
3147
for ac_exec_ext in '' $ac_executable_extensions; do
3148
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3149
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3150
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160
if test -n "$CC"; then
3161
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3162
$as_echo "$CC" >&6; }
3164
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165
$as_echo "no" >&6; }
3169
test -n "$CC" && break
3172
if test -z "$CC"; then
3174
for ac_prog in cl.exe
3176
# Extract the first word of "$ac_prog", so it can be a program name with args.
3177
set dummy $ac_prog; ac_word=$2
3178
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3179
$as_echo_n "checking for $ac_word... " >&6; }
3180
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3181
$as_echo_n "(cached) " >&6
3183
if test -n "$ac_ct_CC"; then
3184
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3186
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190
test -z "$as_dir" && as_dir=.
3191
for ac_exec_ext in '' $ac_executable_extensions; do
3192
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3193
ac_cv_prog_ac_ct_CC="$ac_prog"
3194
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3203
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3204
if test -n "$ac_ct_CC"; then
3205
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3206
$as_echo "$ac_ct_CC" >&6; }
3208
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209
$as_echo "no" >&6; }
3213
test -n "$ac_ct_CC" && break
3216
if test "x$ac_ct_CC" = x; then
3219
case $cross_compiling:$ac_tool_warned in
3221
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3222
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3223
ac_tool_warned=yes ;;
3232
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234
as_fn_error $? "no acceptable C compiler found in \$PATH
3235
See \`config.log' for more details" "$LINENO" 5; }
3237
# Provide some information about the compiler.
3238
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3241
for ac_option in --version -v -V -qversion; do
3242
{ { ac_try="$ac_compiler $ac_option >&5"
3244
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245
*) ac_try_echo=$ac_try;;
3247
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248
$as_echo "$ac_try_echo"; } >&5
3249
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3251
if test -s conftest.err; then
3253
... rest of stderr output deleted ...
3254
10q' conftest.err >conftest.er1
3255
cat conftest.er1 >&5
3257
rm -f conftest.er1 conftest.err
3258
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259
test $ac_status = 0; }
3262
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263
/* end confdefs.h. */
3273
ac_clean_files_save=$ac_clean_files
3274
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3275
# Try to create an executable without -o first, disregard a.out.
3276
# It will help us diagnose broken compilers, and finding out an intuition
3278
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3279
$as_echo_n "checking whether the C compiler works... " >&6; }
3280
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3282
# The possible output files:
3283
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3286
for ac_file in $ac_files
3289
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3290
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3295
if { { ac_try="$ac_link_default"
3297
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298
*) ac_try_echo=$ac_try;;
3300
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3301
$as_echo "$ac_try_echo"; } >&5
3302
(eval "$ac_link_default") 2>&5
3304
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305
test $ac_status = 0; }; then :
3306
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3307
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3308
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3309
# so that the user can short-circuit this test for compilers unknown to
3311
for ac_file in $ac_files ''
3313
test -f "$ac_file" || continue
3315
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3318
# We found the default executable, but exeext='' is most
3322
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3324
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3326
# We set ac_cv_exeext here because the later test for it is not
3327
# safe: cross compilers may not add the suffix if given an `-o'
3328
# argument, so we may need to know it at that point already.
3329
# Even if this section looks crufty: it has the advantage of
3336
test "$ac_cv_exeext" = no && ac_cv_exeext=
3341
if test -z "$ac_file"; then :
3342
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343
$as_echo "no" >&6; }
3344
$as_echo "$as_me: failed program was:" >&5
3345
sed 's/^/| /' conftest.$ac_ext >&5
3347
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3348
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349
as_fn_error 77 "C compiler cannot create executables
3350
See \`config.log' for more details" "$LINENO" 5; }
3352
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3353
$as_echo "yes" >&6; }
3355
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3356
$as_echo_n "checking for C compiler default output file name... " >&6; }
3357
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3358
$as_echo "$ac_file" >&6; }
3359
ac_exeext=$ac_cv_exeext
3361
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3362
ac_clean_files=$ac_clean_files_save
3363
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3364
$as_echo_n "checking for suffix of executables... " >&6; }
3365
if { { ac_try="$ac_link"
3367
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368
*) ac_try_echo=$ac_try;;
3370
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3371
$as_echo "$ac_try_echo"; } >&5
3372
(eval "$ac_link") 2>&5
3374
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3375
test $ac_status = 0; }; then :
3376
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3377
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3378
# work properly (i.e., refer to `conftest.exe'), while it won't with
3380
for ac_file in conftest.exe conftest conftest.*; do
3381
test -f "$ac_file" || continue
3383
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3384
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3390
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3393
See \`config.log' for more details" "$LINENO" 5; }
3395
rm -f conftest conftest$ac_cv_exeext
3396
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3397
$as_echo "$ac_cv_exeext" >&6; }
3399
rm -f conftest.$ac_ext
3400
EXEEXT=$ac_cv_exeext
3402
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403
/* end confdefs.h. */
3404
@%:@include <stdio.h>
3408
FILE *f = fopen ("conftest.out", "w");
3409
return ferror (f) || fclose (f) != 0;
3415
ac_clean_files="$ac_clean_files conftest.out"
3416
# Check that the compiler produces executables we can run. If not, either
3417
# the compiler is broken, or we cross compile.
3418
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3419
$as_echo_n "checking whether we are cross compiling... " >&6; }
3420
if test "$cross_compiling" != yes; then
3421
{ { ac_try="$ac_link"
3423
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424
*) ac_try_echo=$ac_try;;
3426
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427
$as_echo "$ac_try_echo"; } >&5
3428
(eval "$ac_link") 2>&5
3430
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431
test $ac_status = 0; }
3432
if { ac_try='./conftest$ac_cv_exeext'
3433
{ { case "(($ac_try" in
3434
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435
*) ac_try_echo=$ac_try;;
3437
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438
$as_echo "$ac_try_echo"; } >&5
3439
(eval "$ac_try") 2>&5
3441
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442
test $ac_status = 0; }; }; then
3445
if test "$cross_compiling" = maybe; then
3448
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450
as_fn_error $? "cannot run C compiled programs.
3451
If you meant to cross compile, use \`--host'.
3452
See \`config.log' for more details" "$LINENO" 5; }
3456
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3457
$as_echo "$cross_compiling" >&6; }
3459
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3460
ac_clean_files=$ac_clean_files_save
3461
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3462
$as_echo_n "checking for suffix of object files... " >&6; }
3463
if ${ac_cv_objext+:} false; then :
3464
$as_echo_n "(cached) " >&6
3466
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467
/* end confdefs.h. */
3477
rm -f conftest.o conftest.obj
3478
if { { ac_try="$ac_compile"
3480
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481
*) ac_try_echo=$ac_try;;
3483
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484
$as_echo "$ac_try_echo"; } >&5
3485
(eval "$ac_compile") 2>&5
3487
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488
test $ac_status = 0; }; then :
3489
for ac_file in conftest.o conftest.obj conftest.*; do
3490
test -f "$ac_file" || continue;
3492
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3493
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3498
$as_echo "$as_me: failed program was:" >&5
3499
sed 's/^/| /' conftest.$ac_ext >&5
3501
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3502
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3503
as_fn_error $? "cannot compute suffix of object files: cannot compile
3504
See \`config.log' for more details" "$LINENO" 5; }
3506
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3508
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3509
$as_echo "$ac_cv_objext" >&6; }
3510
OBJEXT=$ac_cv_objext
3512
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3513
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3514
if ${ac_cv_c_compiler_gnu+:} false; then :
3515
$as_echo_n "(cached) " >&6
3517
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518
/* end confdefs.h. */
3531
if ac_fn_c_try_compile "$LINENO"; then :
3536
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3540
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3541
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3542
if test $ac_compiler_gnu = yes; then
3547
ac_test_CFLAGS=${CFLAGS+set}
3548
ac_save_CFLAGS=$CFLAGS
3549
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3550
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3551
if ${ac_cv_prog_cc_g+:} false; then :
3552
$as_echo_n "(cached) " >&6
3554
ac_save_c_werror_flag=$ac_c_werror_flag
3555
ac_c_werror_flag=yes
3558
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559
/* end confdefs.h. */
3569
if ac_fn_c_try_compile "$LINENO"; then :
3573
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574
/* end confdefs.h. */
3584
if ac_fn_c_try_compile "$LINENO"; then :
3587
ac_c_werror_flag=$ac_save_c_werror_flag
3589
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590
/* end confdefs.h. */
3600
if ac_fn_c_try_compile "$LINENO"; then :
3603
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608
ac_c_werror_flag=$ac_save_c_werror_flag
3610
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3611
$as_echo "$ac_cv_prog_cc_g" >&6; }
3612
if test "$ac_test_CFLAGS" = set; then
3613
CFLAGS=$ac_save_CFLAGS
3614
elif test $ac_cv_prog_cc_g = yes; then
3615
if test "$GCC" = yes; then
3621
if test "$GCC" = yes; then
3627
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3628
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3629
if ${ac_cv_prog_cc_c89+:} false; then :
3630
$as_echo_n "(cached) " >&6
3632
ac_cv_prog_cc_c89=no
3634
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635
/* end confdefs.h. */
3639
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3640
struct buf { int x; };
3641
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3642
static char *e (p, i)
3648
static char *f (char * (*g) (char **, int), char **p, ...)
3653
s = g (p, va_arg (v,int));
3658
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3659
function prototypes and stuff, but not '\xHH' hex character constants.
3660
These don't provoke an error unfortunately, instead are silently treated
3661
as 'x'. The following induces an error, until -std is added to get
3662
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3663
array size at least. It's necessary to write '\x00'==0 to get something
3664
that's true only with -std. */
3665
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3667
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3668
inside strings and character constants. */
3670
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3672
int test (int i, double x);
3673
struct s1 {int (*f) (int a);};
3674
struct s2 {int (*f) (double a);};
3675
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3681
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3686
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3687
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3689
CC="$ac_save_CC $ac_arg"
3690
if ac_fn_c_try_compile "$LINENO"; then :
3691
ac_cv_prog_cc_c89=$ac_arg
3693
rm -f core conftest.err conftest.$ac_objext
3694
test "x$ac_cv_prog_cc_c89" != "xno" && break
3696
rm -f conftest.$ac_ext
3701
case "x$ac_cv_prog_cc_c89" in
3703
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3704
$as_echo "none needed" >&6; } ;;
3706
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3707
$as_echo "unsupported" >&6; } ;;
3709
CC="$CC $ac_cv_prog_cc_c89"
3710
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3711
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3713
if test "x$ac_cv_prog_cc_c89" != xno; then :
3718
ac_cpp='$CPP $CPPFLAGS'
3719
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3720
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3721
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723
depcc="$CC" am_compiler_list=
3725
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3726
$as_echo_n "checking dependency style of $depcc... " >&6; }
3727
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3728
$as_echo_n "(cached) " >&6
3730
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3731
# We make a subdir and do the tests there. Otherwise we can end up
3732
# making bogus files that we don't know about and never remove. For
3733
# instance it was reported that on HP-UX the gcc test will end up
3734
# making a dummy file named `D' -- because `-MD' means `put the output
3738
# Copy depcomp to subdir because otherwise we won't find it if we're
3739
# using a relative directory.
3740
cp "$am_depcomp" conftest.dir
3742
# We will build objects and dependencies in a subdirectory because
3743
# it helps to detect inapplicable dependency modes. For instance
3744
# both Tru64's cc and ICC support -MD to output dependencies as a
3745
# side effect of compilation, but ICC will put the dependencies in
3746
# the current directory while Tru64 will put them in the object
3750
am_cv_CC_dependencies_compiler_type=none
3751
if test "$am_compiler_list" = ""; then
3752
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3755
case " $depcc " in #(
3756
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3759
for depmode in $am_compiler_list; do
3760
# Setup a source with many dependencies, because some compilers
3761
# like to wrap large dependency lists on column 80 (with \), and
3762
# we should not choose a depcomp mode which is confused by this.
3764
# We need to recreate these files for each test, as the compiler may
3765
# overwrite some of them when testing with obscure command lines.
3766
# This happens at least with the AIX C compiler.
3768
for i in 1 2 3 4 5 6; do
3769
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3770
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3771
# Solaris 8's {/usr,}/bin/sh.
3772
touch sub/conftst$i.h
3774
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3776
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3777
# mode. It turns out that the SunPro C++ compiler does not properly
3778
# handle `-M -o', and we need to detect this. Also, some Intel
3779
# versions had trouble with output in subdirs
3780
am__obj=sub/conftest.${OBJEXT-o}
3781
am__minus_obj="-o $am__obj"
3784
# This depmode causes a compiler race in universal mode.
3785
test "$am__universal" = false || continue
3788
# after this tag, mechanisms are not by side-effect, so they'll
3789
# only be used when explicitly requested
3790
if test "x$enable_dependency_tracking" = xyes; then
3796
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3797
# This compiler won't grok `-c -o', but also, the minuso test has
3798
# not run yet. These depmodes are late enough in the game, and
3799
# so weak that their functioning should not be impacted.
3800
am__obj=conftest.${OBJEXT-o}
3805
if depmode=$depmode \
3806
source=sub/conftest.c object=$am__obj \
3807
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3808
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3809
>/dev/null 2>conftest.err &&
3810
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3811
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3812
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3813
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3814
# icc doesn't choke on unknown options, it will just issue warnings
3815
# or remarks (even with -Werror). So we grep stderr for any message
3816
# that says an option was ignored or not supported.
3817
# When given -MP, icc 7.0 and 7.1 complain thusly:
3818
# icc: Command line warning: ignoring option '-M'; no argument required
3819
# The diagnosis changed in icc 8.0:
3820
# icc: Command line remark: option '-MP' not supported
3821
if (grep 'ignoring option' conftest.err ||
3822
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3823
am_cv_CC_dependencies_compiler_type=$depmode
3832
am_cv_CC_dependencies_compiler_type=none
3836
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3837
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3838
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3841
test "x$enable_dependency_tracking" != xno \
3842
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3844
am__fastdepCC_FALSE='#'
3846
am__fastdepCC_TRUE='#'
3847
am__fastdepCC_FALSE=
3852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3853
$as_echo_n "checking for library containing strerror... " >&6; }
3854
if ${ac_cv_search_strerror+:} false; then :
3855
$as_echo_n "(cached) " >&6
3857
ac_func_search_save_LIBS=$LIBS
3858
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859
/* end confdefs.h. */
3861
/* Override any GCC internal prototype to avoid an error.
3862
Use char because int might match the return type of a GCC
3863
builtin and then its argument prototype would still apply. */
3876
for ac_lib in '' cposix; do
3877
if test -z "$ac_lib"; then
3878
ac_res="none required"
3881
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3883
if ac_fn_c_try_link "$LINENO"; then :
3884
ac_cv_search_strerror=$ac_res
3886
rm -f core conftest.err conftest.$ac_objext \
3888
if ${ac_cv_search_strerror+:} false; then :
3892
if ${ac_cv_search_strerror+:} false; then :
3895
ac_cv_search_strerror=no
3898
LIBS=$ac_func_search_save_LIBS
3900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3901
$as_echo "$ac_cv_search_strerror" >&6; }
3902
ac_res=$ac_cv_search_strerror
3903
if test "$ac_res" != no; then :
3904
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3908
CFLAGS="$saved_CFLAGS"
3910
ac_cpp='$CPP $CPPFLAGS'
3911
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3914
if test -n "$ac_tool_prefix"; then
3915
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3916
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3917
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3918
$as_echo_n "checking for $ac_word... " >&6; }
3919
if ${ac_cv_prog_CC+:} false; then :
3920
$as_echo_n "(cached) " >&6
3922
if test -n "$CC"; then
3923
ac_cv_prog_CC="$CC" # Let the user override the test.
3925
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929
test -z "$as_dir" && as_dir=.
3930
for ac_exec_ext in '' $ac_executable_extensions; do
3931
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3932
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3933
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3943
if test -n "$CC"; then
3944
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3945
$as_echo "$CC" >&6; }
3947
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3948
$as_echo "no" >&6; }
3953
if test -z "$ac_cv_prog_CC"; then
3955
# Extract the first word of "gcc", so it can be a program name with args.
3956
set dummy gcc; ac_word=$2
3957
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958
$as_echo_n "checking for $ac_word... " >&6; }
3959
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3960
$as_echo_n "(cached) " >&6
3962
if test -n "$ac_ct_CC"; then
3963
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3965
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969
test -z "$as_dir" && as_dir=.
3970
for ac_exec_ext in '' $ac_executable_extensions; do
3971
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3972
ac_cv_prog_ac_ct_CC="gcc"
3973
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3983
if test -n "$ac_ct_CC"; then
3984
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3985
$as_echo "$ac_ct_CC" >&6; }
3987
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988
$as_echo "no" >&6; }
3991
if test "x$ac_ct_CC" = x; then
3994
case $cross_compiling:$ac_tool_warned in
3996
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3997
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3998
ac_tool_warned=yes ;;
4006
if test -z "$CC"; then
4007
if test -n "$ac_tool_prefix"; then
4008
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4009
set dummy ${ac_tool_prefix}cc; ac_word=$2
4010
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4011
$as_echo_n "checking for $ac_word... " >&6; }
4012
if ${ac_cv_prog_CC+:} false; then :
4013
$as_echo_n "(cached) " >&6
4015
if test -n "$CC"; then
4016
ac_cv_prog_CC="$CC" # Let the user override the test.
4018
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022
test -z "$as_dir" && as_dir=.
4023
for ac_exec_ext in '' $ac_executable_extensions; do
4024
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4025
ac_cv_prog_CC="${ac_tool_prefix}cc"
4026
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4036
if test -n "$CC"; then
4037
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4038
$as_echo "$CC" >&6; }
4040
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4041
$as_echo "no" >&6; }
4047
if test -z "$CC"; then
4048
# Extract the first word of "cc", so it can be a program name with args.
4049
set dummy cc; ac_word=$2
4050
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4051
$as_echo_n "checking for $ac_word... " >&6; }
4052
if ${ac_cv_prog_CC+:} false; then :
4053
$as_echo_n "(cached) " >&6
4055
if test -n "$CC"; then
4056
ac_cv_prog_CC="$CC" # Let the user override the test.
4059
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063
test -z "$as_dir" && as_dir=.
4064
for ac_exec_ext in '' $ac_executable_extensions; do
4065
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4066
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4067
ac_prog_rejected=yes
4071
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4078
if test $ac_prog_rejected = yes; then
4079
# We found a bogon in the path, so make sure we never use it.
4080
set dummy $ac_cv_prog_CC
4082
if test $@%:@ != 0; then
4083
# We chose a different compiler from the bogus one.
4084
# However, it has the same basename, so the bogon will be chosen
4085
# first if we set CC to just the basename; use the full file name.
4087
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4093
if test -n "$CC"; then
4094
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4095
$as_echo "$CC" >&6; }
4097
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098
$as_echo "no" >&6; }
4103
if test -z "$CC"; then
4104
if test -n "$ac_tool_prefix"; then
4105
for ac_prog in cl.exe
4107
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4108
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4109
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4110
$as_echo_n "checking for $ac_word... " >&6; }
4111
if ${ac_cv_prog_CC+:} false; then :
4112
$as_echo_n "(cached) " >&6
4114
if test -n "$CC"; then
4115
ac_cv_prog_CC="$CC" # Let the user override the test.
4117
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121
test -z "$as_dir" && as_dir=.
4122
for ac_exec_ext in '' $ac_executable_extensions; do
4123
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4124
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4125
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4135
if test -n "$CC"; then
4136
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4137
$as_echo "$CC" >&6; }
4139
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4140
$as_echo "no" >&6; }
4144
test -n "$CC" && break
4147
if test -z "$CC"; then
4149
for ac_prog in cl.exe
4151
# Extract the first word of "$ac_prog", so it can be a program name with args.
4152
set dummy $ac_prog; ac_word=$2
4153
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154
$as_echo_n "checking for $ac_word... " >&6; }
4155
if ${ac_cv_prog_ac_ct_CC+:} false; then :
4156
$as_echo_n "(cached) " >&6
4158
if test -n "$ac_ct_CC"; then
4159
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4161
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165
test -z "$as_dir" && as_dir=.
4166
for ac_exec_ext in '' $ac_executable_extensions; do
4167
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4168
ac_cv_prog_ac_ct_CC="$ac_prog"
4169
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4178
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4179
if test -n "$ac_ct_CC"; then
4180
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4181
$as_echo "$ac_ct_CC" >&6; }
4183
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184
$as_echo "no" >&6; }
4188
test -n "$ac_ct_CC" && break
4191
if test "x$ac_ct_CC" = x; then
4194
case $cross_compiling:$ac_tool_warned in
4196
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4197
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4198
ac_tool_warned=yes ;;
4207
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4208
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4209
as_fn_error $? "no acceptable C compiler found in \$PATH
4210
See \`config.log' for more details" "$LINENO" 5; }
4212
# Provide some information about the compiler.
4213
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4216
for ac_option in --version -v -V -qversion; do
4217
{ { ac_try="$ac_compiler $ac_option >&5"
4219
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220
*) ac_try_echo=$ac_try;;
4222
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4223
$as_echo "$ac_try_echo"; } >&5
4224
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
4226
if test -s conftest.err; then
4228
... rest of stderr output deleted ...
4229
10q' conftest.err >conftest.er1
4230
cat conftest.er1 >&5
4232
rm -f conftest.er1 conftest.err
4233
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4234
test $ac_status = 0; }
4237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4238
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4239
if ${ac_cv_c_compiler_gnu+:} false; then :
4240
$as_echo_n "(cached) " >&6
4242
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243
/* end confdefs.h. */
4256
if ac_fn_c_try_compile "$LINENO"; then :
4261
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4262
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4265
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4266
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4267
if test $ac_compiler_gnu = yes; then
4272
ac_test_CFLAGS=${CFLAGS+set}
4273
ac_save_CFLAGS=$CFLAGS
4274
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4275
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4276
if ${ac_cv_prog_cc_g+:} false; then :
4277
$as_echo_n "(cached) " >&6
4279
ac_save_c_werror_flag=$ac_c_werror_flag
4280
ac_c_werror_flag=yes
4283
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284
/* end confdefs.h. */
4294
if ac_fn_c_try_compile "$LINENO"; then :
4298
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299
/* end confdefs.h. */
4309
if ac_fn_c_try_compile "$LINENO"; then :
4312
ac_c_werror_flag=$ac_save_c_werror_flag
4314
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315
/* end confdefs.h. */
4325
if ac_fn_c_try_compile "$LINENO"; then :
4328
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4330
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4332
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333
ac_c_werror_flag=$ac_save_c_werror_flag
4335
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4336
$as_echo "$ac_cv_prog_cc_g" >&6; }
4337
if test "$ac_test_CFLAGS" = set; then
4338
CFLAGS=$ac_save_CFLAGS
4339
elif test $ac_cv_prog_cc_g = yes; then
4340
if test "$GCC" = yes; then
4346
if test "$GCC" = yes; then
4352
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4353
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4354
if ${ac_cv_prog_cc_c89+:} false; then :
4355
$as_echo_n "(cached) " >&6
4357
ac_cv_prog_cc_c89=no
4359
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360
/* end confdefs.h. */
4364
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4365
struct buf { int x; };
4366
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4367
static char *e (p, i)
4373
static char *f (char * (*g) (char **, int), char **p, ...)
4378
s = g (p, va_arg (v,int));
4383
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4384
function prototypes and stuff, but not '\xHH' hex character constants.
4385
These don't provoke an error unfortunately, instead are silently treated
4386
as 'x'. The following induces an error, until -std is added to get
4387
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4388
array size at least. It's necessary to write '\x00'==0 to get something
4389
that's true only with -std. */
4390
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4392
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4393
inside strings and character constants. */
4395
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4397
int test (int i, double x);
4398
struct s1 {int (*f) (int a);};
4399
struct s2 {int (*f) (double a);};
4400
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4406
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4411
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4412
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4414
CC="$ac_save_CC $ac_arg"
4415
if ac_fn_c_try_compile "$LINENO"; then :
4416
ac_cv_prog_cc_c89=$ac_arg
4418
rm -f core conftest.err conftest.$ac_objext
4419
test "x$ac_cv_prog_cc_c89" != "xno" && break
4421
rm -f conftest.$ac_ext
4426
case "x$ac_cv_prog_cc_c89" in
4428
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4429
$as_echo "none needed" >&6; } ;;
4431
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4432
$as_echo "unsupported" >&6; } ;;
4434
CC="$CC $ac_cv_prog_cc_c89"
4435
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4436
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4438
if test "x$ac_cv_prog_cc_c89" != xno; then :
4443
ac_cpp='$CPP $CPPFLAGS'
4444
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4445
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4446
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4448
depcc="$CC" am_compiler_list=
4450
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4451
$as_echo_n "checking dependency style of $depcc... " >&6; }
4452
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4453
$as_echo_n "(cached) " >&6
4455
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4456
# We make a subdir and do the tests there. Otherwise we can end up
4457
# making bogus files that we don't know about and never remove. For
4458
# instance it was reported that on HP-UX the gcc test will end up
4459
# making a dummy file named `D' -- because `-MD' means `put the output
4463
# Copy depcomp to subdir because otherwise we won't find it if we're
4464
# using a relative directory.
4465
cp "$am_depcomp" conftest.dir
4467
# We will build objects and dependencies in a subdirectory because
4468
# it helps to detect inapplicable dependency modes. For instance
4469
# both Tru64's cc and ICC support -MD to output dependencies as a
4470
# side effect of compilation, but ICC will put the dependencies in
4471
# the current directory while Tru64 will put them in the object
4475
am_cv_CC_dependencies_compiler_type=none
4476
if test "$am_compiler_list" = ""; then
4477
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4480
case " $depcc " in #(
4481
*\ -arch\ *\ -arch\ *) am__universal=true ;;
4484
for depmode in $am_compiler_list; do
4485
# Setup a source with many dependencies, because some compilers
4486
# like to wrap large dependency lists on column 80 (with \), and
4487
# we should not choose a depcomp mode which is confused by this.
4489
# We need to recreate these files for each test, as the compiler may
4490
# overwrite some of them when testing with obscure command lines.
4491
# This happens at least with the AIX C compiler.
4493
for i in 1 2 3 4 5 6; do
4494
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4495
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4496
# Solaris 8's {/usr,}/bin/sh.
4497
touch sub/conftst$i.h
4499
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4501
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4502
# mode. It turns out that the SunPro C++ compiler does not properly
4503
# handle `-M -o', and we need to detect this. Also, some Intel
4504
# versions had trouble with output in subdirs
4505
am__obj=sub/conftest.${OBJEXT-o}
4506
am__minus_obj="-o $am__obj"
4509
# This depmode causes a compiler race in universal mode.
4510
test "$am__universal" = false || continue
4513
# after this tag, mechanisms are not by side-effect, so they'll
4514
# only be used when explicitly requested
4515
if test "x$enable_dependency_tracking" = xyes; then
4521
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4522
# This compiler won't grok `-c -o', but also, the minuso test has
4523
# not run yet. These depmodes are late enough in the game, and
4524
# so weak that their functioning should not be impacted.
4525
am__obj=conftest.${OBJEXT-o}
4530
if depmode=$depmode \
4531
source=sub/conftest.c object=$am__obj \
4532
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4533
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4534
>/dev/null 2>conftest.err &&
4535
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4536
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4537
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4538
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4539
# icc doesn't choke on unknown options, it will just issue warnings
4540
# or remarks (even with -Werror). So we grep stderr for any message
4541
# that says an option was ignored or not supported.
4542
# When given -MP, icc 7.0 and 7.1 complain thusly:
4543
# icc: Command line warning: ignoring option '-M'; no argument required
4544
# The diagnosis changed in icc 8.0:
4545
# icc: Command line remark: option '-MP' not supported
4546
if (grep 'ignoring option' conftest.err ||
4547
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4548
am_cv_CC_dependencies_compiler_type=$depmode
4557
am_cv_CC_dependencies_compiler_type=none
4561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4562
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4563
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4566
test "x$enable_dependency_tracking" != xno \
4567
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4569
am__fastdepCC_FALSE='#'
4571
am__fastdepCC_TRUE='#'
4572
am__fastdepCC_FALSE=
4576
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4577
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4579
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4580
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4581
$as_echo_n "(cached) " >&6
4583
cat >conftest.make <<\_ACEOF
4586
@echo '@@@%%%=$(MAKE)=@@@%%%'
4588
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4589
case `${MAKE-make} -f conftest.make 2>/dev/null` in
4591
eval ac_cv_prog_make_${ac_make}_set=yes;;
4593
eval ac_cv_prog_make_${ac_make}_set=no;;
4597
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4598
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4599
$as_echo "yes" >&6; }
4602
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603
$as_echo "no" >&6; }
4604
SET_MAKE="MAKE=${MAKE-make}"
4608
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4609
$as_echo_n "checking whether ln -s works... " >&6; }
4611
if test "$LN_S" = "ln -s"; then
4612
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4613
$as_echo "yes" >&6; }
4615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4616
$as_echo "no, using $LN_S" >&6; }
4624
@%:@ Check whether --enable-static was given.
4625
if test "${enable_static+set}" = set; then :
4626
enableval=$enable_static; p=${PACKAGE-default}
4628
yes) enable_static=yes ;;
4629
no) enable_static=no ;;
4632
# Look at the argument we got. We use all the common list separators.
4633
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4634
for pkg in $enableval; do
4636
if test "X$pkg" = "X$p"; then
4657
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4658
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4663
macro_version='2.4.2'
4664
macro_revision='1.3337'
4678
ltmain="$ac_aux_dir/ltmain.sh"
4680
# Backslashify metacharacters that are still active within
4681
# double-quoted strings.
4682
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4684
# Same as above, but do not quote variable references.
4685
double_quote_subst='s/\(["`\\]\)/\\\1/g'
4687
# Sed substitution to delay expansion of an escaped shell variable in a
4688
# double_quote_subst'ed string.
4689
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4691
# Sed substitution to delay expansion of an escaped single quote.
4692
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4694
# Sed substitution to avoid accidental globbing in evaled expressions
4695
no_glob_subst='s/\*/\\\*/g'
4697
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4698
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4699
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4702
$as_echo_n "checking how to print strings... " >&6; }
4703
# Test print first, because it will be a builtin if present.
4704
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4705
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4707
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4710
# Use this function as a fallback that always works.
4711
func_fallback_echo ()
4713
eval 'cat <<_LTECHO_EOF
4717
ECHO='func_fallback_echo'
4720
# func_echo_all arg...
4721
# Invoke $ECHO with all args, space-separated.
4728
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4729
$as_echo "printf" >&6; } ;;
4730
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4731
$as_echo "print -r" >&6; } ;;
4732
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4733
$as_echo "cat" >&6; } ;;
4749
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4750
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4751
if ${ac_cv_path_SED+:} false; then :
4752
$as_echo_n "(cached) " >&6
4754
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4755
for ac_i in 1 2 3 4 5 6 7; do
4756
ac_script="$ac_script$as_nl$ac_script"
4758
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4759
{ ac_script=; unset ac_script;}
4760
if test -z "$SED"; then
4761
ac_path_SED_found=false
4762
# Loop through the user's path and test for each of PROGNAME-LIST
4763
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767
test -z "$as_dir" && as_dir=.
4768
for ac_prog in sed gsed; do
4769
for ac_exec_ext in '' $ac_executable_extensions; do
4770
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4771
as_fn_executable_p "$ac_path_SED" || continue
4772
# Check for GNU ac_path_SED and select it if it is found.
4773
# Check for GNU $ac_path_SED
4774
case `"$ac_path_SED" --version 2>&1` in
4776
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4779
$as_echo_n 0123456789 >"conftest.in"
4782
cat "conftest.in" "conftest.in" >"conftest.tmp"
4783
mv "conftest.tmp" "conftest.in"
4784
cp "conftest.in" "conftest.nl"
4785
$as_echo '' >> "conftest.nl"
4786
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4787
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4788
as_fn_arith $ac_count + 1 && ac_count=$as_val
4789
if test $ac_count -gt ${ac_path_SED_max-0}; then
4790
# Best one so far, save it but keep looking for a better one
4791
ac_cv_path_SED="$ac_path_SED"
4792
ac_path_SED_max=$ac_count
4794
# 10*(2^10) chars as input seems more than enough
4795
test $ac_count -gt 10 && break
4797
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4800
$ac_path_SED_found && break 3
4805
if test -z "$ac_cv_path_SED"; then
4806
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4813
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4814
$as_echo "$ac_cv_path_SED" >&6; }
4815
SED="$ac_cv_path_SED"
4818
test -z "$SED" && SED=sed
4819
Xsed="$SED -e 1s/^X//"
4831
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4832
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4833
if ${ac_cv_path_GREP+:} false; then :
4834
$as_echo_n "(cached) " >&6
4836
if test -z "$GREP"; then
4837
ac_path_GREP_found=false
4838
# Loop through the user's path and test for each of PROGNAME-LIST
4839
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4843
test -z "$as_dir" && as_dir=.
4844
for ac_prog in grep ggrep; do
4845
for ac_exec_ext in '' $ac_executable_extensions; do
4846
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4847
as_fn_executable_p "$ac_path_GREP" || continue
4848
# Check for GNU ac_path_GREP and select it if it is found.
4849
# Check for GNU $ac_path_GREP
4850
case `"$ac_path_GREP" --version 2>&1` in
4852
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4855
$as_echo_n 0123456789 >"conftest.in"
4858
cat "conftest.in" "conftest.in" >"conftest.tmp"
4859
mv "conftest.tmp" "conftest.in"
4860
cp "conftest.in" "conftest.nl"
4861
$as_echo 'GREP' >> "conftest.nl"
4862
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4863
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4864
as_fn_arith $ac_count + 1 && ac_count=$as_val
4865
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4866
# Best one so far, save it but keep looking for a better one
4867
ac_cv_path_GREP="$ac_path_GREP"
4868
ac_path_GREP_max=$ac_count
4870
# 10*(2^10) chars as input seems more than enough
4871
test $ac_count -gt 10 && break
4873
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4876
$ac_path_GREP_found && break 3
4881
if test -z "$ac_cv_path_GREP"; then
4882
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4885
ac_cv_path_GREP=$GREP
4889
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4890
$as_echo "$ac_cv_path_GREP" >&6; }
4891
GREP="$ac_cv_path_GREP"
4894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4895
$as_echo_n "checking for egrep... " >&6; }
4896
if ${ac_cv_path_EGREP+:} false; then :
4897
$as_echo_n "(cached) " >&6
4899
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4900
then ac_cv_path_EGREP="$GREP -E"
4902
if test -z "$EGREP"; then
4903
ac_path_EGREP_found=false
4904
# Loop through the user's path and test for each of PROGNAME-LIST
4905
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4909
test -z "$as_dir" && as_dir=.
4910
for ac_prog in egrep; do
4911
for ac_exec_ext in '' $ac_executable_extensions; do
4912
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4913
as_fn_executable_p "$ac_path_EGREP" || continue
4914
# Check for GNU ac_path_EGREP and select it if it is found.
4915
# Check for GNU $ac_path_EGREP
4916
case `"$ac_path_EGREP" --version 2>&1` in
4918
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4921
$as_echo_n 0123456789 >"conftest.in"
4924
cat "conftest.in" "conftest.in" >"conftest.tmp"
4925
mv "conftest.tmp" "conftest.in"
4926
cp "conftest.in" "conftest.nl"
4927
$as_echo 'EGREP' >> "conftest.nl"
4928
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4929
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4930
as_fn_arith $ac_count + 1 && ac_count=$as_val
4931
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4932
# Best one so far, save it but keep looking for a better one
4933
ac_cv_path_EGREP="$ac_path_EGREP"
4934
ac_path_EGREP_max=$ac_count
4936
# 10*(2^10) chars as input seems more than enough
4937
test $ac_count -gt 10 && break
4939
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4942
$ac_path_EGREP_found && break 3
4947
if test -z "$ac_cv_path_EGREP"; then
4948
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4951
ac_cv_path_EGREP=$EGREP
4956
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4957
$as_echo "$ac_cv_path_EGREP" >&6; }
4958
EGREP="$ac_cv_path_EGREP"
4961
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4962
$as_echo_n "checking for fgrep... " >&6; }
4963
if ${ac_cv_path_FGREP+:} false; then :
4964
$as_echo_n "(cached) " >&6
4966
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4967
then ac_cv_path_FGREP="$GREP -F"
4969
if test -z "$FGREP"; then
4970
ac_path_FGREP_found=false
4971
# Loop through the user's path and test for each of PROGNAME-LIST
4972
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4976
test -z "$as_dir" && as_dir=.
4977
for ac_prog in fgrep; do
4978
for ac_exec_ext in '' $ac_executable_extensions; do
4979
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4980
as_fn_executable_p "$ac_path_FGREP" || continue
4981
# Check for GNU ac_path_FGREP and select it if it is found.
4982
# Check for GNU $ac_path_FGREP
4983
case `"$ac_path_FGREP" --version 2>&1` in
4985
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4988
$as_echo_n 0123456789 >"conftest.in"
4991
cat "conftest.in" "conftest.in" >"conftest.tmp"
4992
mv "conftest.tmp" "conftest.in"
4993
cp "conftest.in" "conftest.nl"
4994
$as_echo 'FGREP' >> "conftest.nl"
4995
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4996
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4997
as_fn_arith $ac_count + 1 && ac_count=$as_val
4998
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4999
# Best one so far, save it but keep looking for a better one
5000
ac_cv_path_FGREP="$ac_path_FGREP"
5001
ac_path_FGREP_max=$ac_count
5003
# 10*(2^10) chars as input seems more than enough
5004
test $ac_count -gt 10 && break
5006
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5009
$ac_path_FGREP_found && break 3
5014
if test -z "$ac_cv_path_FGREP"; then
5015
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5018
ac_cv_path_FGREP=$FGREP
5023
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5024
$as_echo "$ac_cv_path_FGREP" >&6; }
5025
FGREP="$ac_cv_path_FGREP"
5028
test -z "$GREP" && GREP=grep
5048
@%:@ Check whether --with-gnu-ld was given.
5049
if test "${with_gnu_ld+set}" = set; then :
5050
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5056
if test "$GCC" = yes; then
5057
# Check if gcc -print-prog-name=ld gives a path.
5058
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5059
$as_echo_n "checking for ld used by $CC... " >&6; }
5062
# gcc leaves a trailing carriage return which upsets mingw
5063
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5065
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5068
# Accept absolute paths.
5070
re_direlt='/[^/][^/]*/\.\./'
5071
# Canonicalize the pathname of ld
5072
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5073
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5074
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5076
test -z "$LD" && LD="$ac_prog"
5079
# If it fails, then pretend we aren't using GCC.
5083
# If it is relative, then search for the first ld in PATH.
5087
elif test "$with_gnu_ld" = yes; then
5088
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5089
$as_echo_n "checking for GNU ld... " >&6; }
5091
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5092
$as_echo_n "checking for non-GNU ld... " >&6; }
5094
if ${lt_cv_path_LD+:} false; then :
5095
$as_echo_n "(cached) " >&6
5097
if test -z "$LD"; then
5098
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5099
for ac_dir in $PATH; do
5101
test -z "$ac_dir" && ac_dir=.
5102
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5103
lt_cv_path_LD="$ac_dir/$ac_prog"
5104
# Check to see if the program is GNU ld. I'd rather use --version,
5105
# but apparently some variants of GNU ld only accept -v.
5106
# Break only if it was the GNU/non-GNU ld that we prefer.
5107
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5108
*GNU* | *'with BFD'*)
5109
test "$with_gnu_ld" != no && break
5112
test "$with_gnu_ld" != yes && break
5119
lt_cv_path_LD="$LD" # Let the user override the test with a path.
5124
if test -n "$LD"; then
5125
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5126
$as_echo "$LD" >&6; }
5128
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129
$as_echo "no" >&6; }
5131
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5132
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5133
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5134
if ${lt_cv_prog_gnu_ld+:} false; then :
5135
$as_echo_n "(cached) " >&6
5137
# I'd rather use --version here, but apparently some GNU lds only accept -v.
5138
case `$LD -v 2>&1 </dev/null` in
5139
*GNU* | *'with BFD'*)
5140
lt_cv_prog_gnu_ld=yes
5143
lt_cv_prog_gnu_ld=no
5147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5148
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5149
with_gnu_ld=$lt_cv_prog_gnu_ld
5159
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5160
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5161
if ${lt_cv_path_NM+:} false; then :
5162
$as_echo_n "(cached) " >&6
5164
if test -n "$NM"; then
5165
# Let the user override the test.
5168
lt_nm_to_check="${ac_tool_prefix}nm"
5169
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5170
lt_nm_to_check="$lt_nm_to_check nm"
5172
for lt_tmp_nm in $lt_nm_to_check; do
5173
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5174
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5176
test -z "$ac_dir" && ac_dir=.
5177
tmp_nm="$ac_dir/$lt_tmp_nm"
5178
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5179
# Check to see if the nm accepts a BSD-compat flag.
5180
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5181
# nm: unknown option "B" ignored
5182
# Tru64's nm complains that /dev/null is an invalid object file
5183
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5184
*/dev/null* | *'Invalid file or object type'*)
5185
lt_cv_path_NM="$tmp_nm -B"
5189
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5191
lt_cv_path_NM="$tmp_nm -p"
5195
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5196
continue # so that we can try to find one that supports BSD flags
5205
: ${lt_cv_path_NM=no}
5208
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5209
$as_echo "$lt_cv_path_NM" >&6; }
5210
if test "$lt_cv_path_NM" != "no"; then
5213
# Didn't find any BSD compatible name lister, look for dumpbin.
5214
if test -n "$DUMPBIN"; then :
5215
# Let the user override the test.
5217
if test -n "$ac_tool_prefix"; then
5218
for ac_prog in dumpbin "link -dump"
5220
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5221
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5222
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5223
$as_echo_n "checking for $ac_word... " >&6; }
5224
if ${ac_cv_prog_DUMPBIN+:} false; then :
5225
$as_echo_n "(cached) " >&6
5227
if test -n "$DUMPBIN"; then
5228
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5230
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234
test -z "$as_dir" && as_dir=.
5235
for ac_exec_ext in '' $ac_executable_extensions; do
5236
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5238
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5247
DUMPBIN=$ac_cv_prog_DUMPBIN
5248
if test -n "$DUMPBIN"; then
5249
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5250
$as_echo "$DUMPBIN" >&6; }
5252
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5253
$as_echo "no" >&6; }
5257
test -n "$DUMPBIN" && break
5260
if test -z "$DUMPBIN"; then
5261
ac_ct_DUMPBIN=$DUMPBIN
5262
for ac_prog in dumpbin "link -dump"
5264
# Extract the first word of "$ac_prog", so it can be a program name with args.
5265
set dummy $ac_prog; ac_word=$2
5266
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5267
$as_echo_n "checking for $ac_word... " >&6; }
5268
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5269
$as_echo_n "(cached) " >&6
5271
if test -n "$ac_ct_DUMPBIN"; then
5272
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5274
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278
test -z "$as_dir" && as_dir=.
5279
for ac_exec_ext in '' $ac_executable_extensions; do
5280
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5281
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5282
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5291
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5292
if test -n "$ac_ct_DUMPBIN"; then
5293
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5294
$as_echo "$ac_ct_DUMPBIN" >&6; }
5296
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297
$as_echo "no" >&6; }
5301
test -n "$ac_ct_DUMPBIN" && break
5304
if test "x$ac_ct_DUMPBIN" = x; then
5307
case $cross_compiling:$ac_tool_warned in
5309
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5310
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5311
ac_tool_warned=yes ;;
5313
DUMPBIN=$ac_ct_DUMPBIN
5317
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5319
DUMPBIN="$DUMPBIN -symbols"
5327
if test "$DUMPBIN" != ":"; then
5331
test -z "$NM" && NM=nm
5338
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5339
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5340
if ${lt_cv_nm_interface+:} false; then :
5341
$as_echo_n "(cached) " >&6
5343
lt_cv_nm_interface="BSD nm"
5344
echo "int some_variable = 0;" > conftest.$ac_ext
5345
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5346
(eval "$ac_compile" 2>conftest.err)
5347
cat conftest.err >&5
5348
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5349
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5350
cat conftest.err >&5
5351
(eval echo "\"\$as_me:$LINENO: output\"" >&5)
5352
cat conftest.out >&5
5353
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5354
lt_cv_nm_interface="MS dumpbin"
5358
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5359
$as_echo "$lt_cv_nm_interface" >&6; }
5361
# find the maximum length of command line arguments
5362
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5363
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5364
if ${lt_cv_sys_max_cmd_len+:} false; then :
5365
$as_echo_n "(cached) " >&6
5372
# On DJGPP, this test can blow up pretty badly due to problems in libc
5373
# (any single argument exceeding 2000 bytes causes a buffer overrun
5374
# during glob expansion). Even if it were fixed, the result of this
5375
# check would be larger than it should be.
5376
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5380
# Under GNU Hurd, this test is not required because there is
5381
# no limit to the length of command line arguments.
5382
# Libtool will interpret -1 as no limit whatsoever
5383
lt_cv_sys_max_cmd_len=-1;
5386
cygwin* | mingw* | cegcc*)
5387
# On Win9x/ME, this test blows up -- it succeeds, but takes
5388
# about 5 minutes as the teststring grows exponentially.
5389
# Worse, since 9x/ME are not pre-emptively multitasking,
5390
# you end up with a "frozen" computer, even though with patience
5391
# the test eventually succeeds (with a max line length of 256k).
5392
# Instead, let's just punt: use the minimum linelength reported by
5393
# all of the supported platforms: 8192 (on NT/2K/XP).
5394
lt_cv_sys_max_cmd_len=8192;
5398
# On MiNT this can take a long time and run out of memory.
5399
lt_cv_sys_max_cmd_len=8192;
5403
# On AmigaOS with pdksh, this test takes hours, literally.
5404
# So we just punt and use a minimum line length of 8192.
5405
lt_cv_sys_max_cmd_len=8192;
5408
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5409
# This has been around since 386BSD, at least. Likely further.
5410
if test -x /sbin/sysctl; then
5411
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5412
elif test -x /usr/sbin/sysctl; then
5413
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5415
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5417
# And add a safety zone
5418
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5419
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5423
# We know the value 262144 and hardcode it with a safety zone (like BSD)
5424
lt_cv_sys_max_cmd_len=196608
5428
# The test takes a long time on OS/2.
5429
lt_cv_sys_max_cmd_len=8192
5433
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5434
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5435
# nice to cause kernel panics so lets avoid the loop below.
5436
# First set a reasonable default.
5437
lt_cv_sys_max_cmd_len=16384
5439
if test -x /sbin/sysconfig; then
5440
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5441
*1*) lt_cv_sys_max_cmd_len=-1 ;;
5446
lt_cv_sys_max_cmd_len=102400
5448
sysv5* | sco5v6* | sysv4.2uw2*)
5449
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5450
if test -n "$kargmax"; then
5451
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5453
lt_cv_sys_max_cmd_len=32768
5457
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5458
if test -n "$lt_cv_sys_max_cmd_len" && \
5459
test undefined != "$lt_cv_sys_max_cmd_len"; then
5460
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5461
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5463
# Make teststring a little bigger before we do anything with it.
5464
# a 1K string should be a reasonable start.
5465
for i in 1 2 3 4 5 6 7 8 ; do
5466
teststring=$teststring$teststring
5468
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5469
# If test is not a shell built-in, we'll probably end up computing a
5470
# maximum length that is only half of the actual maximum length, but
5472
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5473
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
5474
test $i != 17 # 1/2 MB should be enough
5477
teststring=$teststring$teststring
5479
# Only check the string length outside the loop.
5480
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5482
# Add a significant safety factor because C++ compilers can tack on
5483
# massive amounts of additional arguments before passing them to the
5484
# linker. It appears as though 1/2 is a usable value.
5485
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5492
if test -n $lt_cv_sys_max_cmd_len ; then
5493
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5494
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5496
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5497
$as_echo "none" >&6; }
5499
max_cmd_len=$lt_cv_sys_max_cmd_len
5510
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5511
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5512
# Try some XSI features
5515
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5517
&& eval 'test $(( 1 + 1 )) -eq 2 \
5518
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5520
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5521
$as_echo "$xsi_shell" >&6; }
5524
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5525
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5527
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5529
&& lt_shell_append=yes
5530
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5531
$as_echo "$lt_shell_append" >&6; }
5534
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5544
# test EBCDIC or ASCII
5545
case `echo X|tr X '\101'` in
5546
A) # ASCII based system
5547
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5548
lt_SP2NL='tr \040 \012'
5549
lt_NL2SP='tr \015\012 \040\040'
5551
*) # EBCDIC based system
5552
lt_SP2NL='tr \100 \n'
5553
lt_NL2SP='tr \r\n \100\100'
5565
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5566
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5567
if ${lt_cv_to_host_file_cmd+:} false; then :
5568
$as_echo_n "(cached) " >&6
5573
*-*-mingw* ) # actually msys
5574
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5577
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5579
* ) # otherwise, assume *nix
5580
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5586
*-*-mingw* ) # actually msys
5587
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5590
lt_cv_to_host_file_cmd=func_convert_file_noop
5592
* ) # otherwise, assume *nix
5593
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5597
* ) # unhandled hosts (and "normal" native builds)
5598
lt_cv_to_host_file_cmd=func_convert_file_noop
5604
to_host_file_cmd=$lt_cv_to_host_file_cmd
5605
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5606
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5612
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5613
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5614
if ${lt_cv_to_tool_file_cmd+:} false; then :
5615
$as_echo_n "(cached) " >&6
5617
#assume ordinary cross tools, or native build.
5618
lt_cv_to_tool_file_cmd=func_convert_file_noop
5622
*-*-mingw* ) # actually msys
5623
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5631
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5632
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5633
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5639
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5640
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5641
if ${lt_cv_ld_reload_flag+:} false; then :
5642
$as_echo_n "(cached) " >&6
5644
lt_cv_ld_reload_flag='-r'
5646
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5647
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5648
reload_flag=$lt_cv_ld_reload_flag
5649
case $reload_flag in
5651
*) reload_flag=" $reload_flag" ;;
5653
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5655
cygwin* | mingw* | pw32* | cegcc*)
5656
if test "$GCC" != yes; then
5661
if test "$GCC" = yes; then
5662
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5664
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5677
if test -n "$ac_tool_prefix"; then
5678
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5679
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5680
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5681
$as_echo_n "checking for $ac_word... " >&6; }
5682
if ${ac_cv_prog_OBJDUMP+:} false; then :
5683
$as_echo_n "(cached) " >&6
5685
if test -n "$OBJDUMP"; then
5686
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5688
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692
test -z "$as_dir" && as_dir=.
5693
for ac_exec_ext in '' $ac_executable_extensions; do
5694
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5695
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5696
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5705
OBJDUMP=$ac_cv_prog_OBJDUMP
5706
if test -n "$OBJDUMP"; then
5707
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5708
$as_echo "$OBJDUMP" >&6; }
5710
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5711
$as_echo "no" >&6; }
5716
if test -z "$ac_cv_prog_OBJDUMP"; then
5717
ac_ct_OBJDUMP=$OBJDUMP
5718
# Extract the first word of "objdump", so it can be a program name with args.
5719
set dummy objdump; ac_word=$2
5720
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5721
$as_echo_n "checking for $ac_word... " >&6; }
5722
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5723
$as_echo_n "(cached) " >&6
5725
if test -n "$ac_ct_OBJDUMP"; then
5726
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5728
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732
test -z "$as_dir" && as_dir=.
5733
for ac_exec_ext in '' $ac_executable_extensions; do
5734
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5735
ac_cv_prog_ac_ct_OBJDUMP="objdump"
5736
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5745
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5746
if test -n "$ac_ct_OBJDUMP"; then
5747
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5748
$as_echo "$ac_ct_OBJDUMP" >&6; }
5750
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5751
$as_echo "no" >&6; }
5754
if test "x$ac_ct_OBJDUMP" = x; then
5757
case $cross_compiling:$ac_tool_warned in
5759
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5760
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5761
ac_tool_warned=yes ;;
5763
OBJDUMP=$ac_ct_OBJDUMP
5766
OBJDUMP="$ac_cv_prog_OBJDUMP"
5769
test -z "$OBJDUMP" && OBJDUMP=objdump
5779
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5780
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5781
if ${lt_cv_deplibs_check_method+:} false; then :
5782
$as_echo_n "(cached) " >&6
5784
lt_cv_file_magic_cmd='$MAGIC_CMD'
5785
lt_cv_file_magic_test_file=
5786
lt_cv_deplibs_check_method='unknown'
5787
# Need to set the preceding variable on all platforms that support
5788
# interlibrary dependencies.
5789
# 'none' -- dependencies not supported.
5790
# `unknown' -- same as none, but documents that we really don't know.
5791
# 'pass_all' -- all dependencies passed with no checks.
5792
# 'test_compile' -- check by making test program.
5793
# 'file_magic [[regex]]' -- check by looking for files in library path
5794
# which responds to the $file_magic_cmd with a given extended regex.
5795
# If you have `file' or equivalent on your system and you're not sure
5796
# whether `pass_all' will *always* work, you probably want this one.
5800
lt_cv_deplibs_check_method=pass_all
5804
lt_cv_deplibs_check_method=pass_all
5808
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5809
lt_cv_file_magic_cmd='/usr/bin/file -L'
5810
lt_cv_file_magic_test_file=/shlib/libc.so
5814
# func_win32_libid is a shell function defined in ltmain.sh
5815
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5816
lt_cv_file_magic_cmd='func_win32_libid'
5820
# Base MSYS/MinGW do not provide the 'file' command needed by
5821
# func_win32_libid shell function, so use a weaker test based on 'objdump',
5822
# unless we find 'file', for example because we are cross-compiling.
5823
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5824
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5825
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5826
lt_cv_file_magic_cmd='func_win32_libid'
5828
# Keep this pattern in sync with the one in func_win32_libid.
5829
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5830
lt_cv_file_magic_cmd='$OBJDUMP -f'
5835
# use the weaker test based on 'objdump'. See mingw*.
5836
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5837
lt_cv_file_magic_cmd='$OBJDUMP -f'
5840
darwin* | rhapsody*)
5841
lt_cv_deplibs_check_method=pass_all
5844
freebsd* | dragonfly*)
5845
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5848
# Not sure whether the presence of OpenBSD here was a mistake.
5849
# Let's accept both of them until this is cleared up.
5850
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5851
lt_cv_file_magic_cmd=/usr/bin/file
5852
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5856
lt_cv_deplibs_check_method=pass_all
5861
lt_cv_deplibs_check_method=pass_all
5864
hpux10.20* | hpux11*)
5865
lt_cv_file_magic_cmd=/usr/bin/file
5868
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5869
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5872
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5873
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5876
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5877
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5883
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5884
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5887
irix5* | irix6* | nonstopux*)
5889
*-32|*"-32 ") libmagic=32-bit;;
5890
*-n32|*"-n32 ") libmagic=N32;;
5891
*-64|*"-64 ") libmagic=64-bit;;
5892
*) libmagic=never-match;;
5894
lt_cv_deplibs_check_method=pass_all
5897
# This must be glibc/ELF.
5898
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5899
lt_cv_deplibs_check_method=pass_all
5902
netbsd* | netbsdelf*-gnu)
5903
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5904
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5906
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5911
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5912
lt_cv_file_magic_cmd=/usr/bin/file
5913
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5917
lt_cv_deplibs_check_method=pass_all
5921
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5922
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5924
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5928
osf3* | osf4* | osf5*)
5929
lt_cv_deplibs_check_method=pass_all
5933
lt_cv_deplibs_check_method=pass_all
5937
lt_cv_deplibs_check_method=pass_all
5940
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5941
lt_cv_deplibs_check_method=pass_all
5945
case $host_vendor in
5947
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]'
5948
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5951
lt_cv_deplibs_check_method=pass_all
5954
lt_cv_file_magic_cmd='/bin/file'
5955
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5958
lt_cv_file_magic_cmd='/bin/file'
5959
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5960
lt_cv_file_magic_test_file=/lib/libc.so
5963
lt_cv_deplibs_check_method=pass_all
5966
lt_cv_deplibs_check_method=pass_all
5972
lt_cv_deplibs_check_method=pass_all
5977
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5978
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5982
if test "$build" = "$host"; then
5985
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5988
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5994
file_magic_cmd=$lt_cv_file_magic_cmd
5995
deplibs_check_method=$lt_cv_deplibs_check_method
5996
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6019
if test -n "$ac_tool_prefix"; then
6020
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6021
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6022
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6023
$as_echo_n "checking for $ac_word... " >&6; }
6024
if ${ac_cv_prog_DLLTOOL+:} false; then :
6025
$as_echo_n "(cached) " >&6
6027
if test -n "$DLLTOOL"; then
6028
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6030
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034
test -z "$as_dir" && as_dir=.
6035
for ac_exec_ext in '' $ac_executable_extensions; do
6036
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6037
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6038
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6047
DLLTOOL=$ac_cv_prog_DLLTOOL
6048
if test -n "$DLLTOOL"; then
6049
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6050
$as_echo "$DLLTOOL" >&6; }
6052
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6053
$as_echo "no" >&6; }
6058
if test -z "$ac_cv_prog_DLLTOOL"; then
6059
ac_ct_DLLTOOL=$DLLTOOL
6060
# Extract the first word of "dlltool", so it can be a program name with args.
6061
set dummy dlltool; ac_word=$2
6062
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6063
$as_echo_n "checking for $ac_word... " >&6; }
6064
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6065
$as_echo_n "(cached) " >&6
6067
if test -n "$ac_ct_DLLTOOL"; then
6068
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6070
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074
test -z "$as_dir" && as_dir=.
6075
for ac_exec_ext in '' $ac_executable_extensions; do
6076
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6077
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6078
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6087
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6088
if test -n "$ac_ct_DLLTOOL"; then
6089
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6090
$as_echo "$ac_ct_DLLTOOL" >&6; }
6092
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6093
$as_echo "no" >&6; }
6096
if test "x$ac_ct_DLLTOOL" = x; then
6099
case $cross_compiling:$ac_tool_warned in
6101
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6102
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6103
ac_tool_warned=yes ;;
6105
DLLTOOL=$ac_ct_DLLTOOL
6108
DLLTOOL="$ac_cv_prog_DLLTOOL"
6111
test -z "$DLLTOOL" && DLLTOOL=dlltool
6122
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6123
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6124
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6125
$as_echo_n "(cached) " >&6
6127
lt_cv_sharedlib_from_linklib_cmd='unknown'
6130
cygwin* | mingw* | pw32* | cegcc*)
6131
# two different shell functions defined in ltmain.sh
6132
# decide which to use based on capabilities of $DLLTOOL
6133
case `$DLLTOOL --help 2>&1` in
6134
*--identify-strict*)
6135
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6138
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6143
# fallback: assume linklib IS sharedlib
6144
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6149
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6150
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6151
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6152
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6160
if test -n "$ac_tool_prefix"; then
6163
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6164
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6165
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6166
$as_echo_n "checking for $ac_word... " >&6; }
6167
if ${ac_cv_prog_AR+:} false; then :
6168
$as_echo_n "(cached) " >&6
6170
if test -n "$AR"; then
6171
ac_cv_prog_AR="$AR" # Let the user override the test.
6173
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177
test -z "$as_dir" && as_dir=.
6178
for ac_exec_ext in '' $ac_executable_extensions; do
6179
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6180
ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6181
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6191
if test -n "$AR"; then
6192
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6193
$as_echo "$AR" >&6; }
6195
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6196
$as_echo "no" >&6; }
6200
test -n "$AR" && break
6203
if test -z "$AR"; then
6207
# Extract the first word of "$ac_prog", so it can be a program name with args.
6208
set dummy $ac_prog; ac_word=$2
6209
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6210
$as_echo_n "checking for $ac_word... " >&6; }
6211
if ${ac_cv_prog_ac_ct_AR+:} false; then :
6212
$as_echo_n "(cached) " >&6
6214
if test -n "$ac_ct_AR"; then
6215
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6217
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221
test -z "$as_dir" && as_dir=.
6222
for ac_exec_ext in '' $ac_executable_extensions; do
6223
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6224
ac_cv_prog_ac_ct_AR="$ac_prog"
6225
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6234
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6235
if test -n "$ac_ct_AR"; then
6236
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6237
$as_echo "$ac_ct_AR" >&6; }
6239
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6240
$as_echo "no" >&6; }
6244
test -n "$ac_ct_AR" && break
6247
if test "x$ac_ct_AR" = x; then
6250
case $cross_compiling:$ac_tool_warned in
6252
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6253
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6254
ac_tool_warned=yes ;;
6273
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6274
$as_echo_n "checking for archiver @FILE support... " >&6; }
6275
if ${lt_cv_ar_at_file+:} false; then :
6276
$as_echo_n "(cached) " >&6
6279
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280
/* end confdefs.h. */
6290
if ac_fn_c_try_compile "$LINENO"; then :
6291
echo conftest.$ac_objext > conftest.lst
6292
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6293
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6294
(eval $lt_ar_try) 2>&5
6296
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6297
test $ac_status = 0; }
6298
if test "$ac_status" -eq 0; then
6299
# Ensure the archiver fails upon bogus file names.
6300
rm -f conftest.$ac_objext libconftest.a
6301
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6302
(eval $lt_ar_try) 2>&5
6304
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6305
test $ac_status = 0; }
6306
if test "$ac_status" -ne 0; then
6310
rm -f conftest.* libconftest.a
6313
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6316
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6317
$as_echo "$lt_cv_ar_at_file" >&6; }
6319
if test "x$lt_cv_ar_at_file" = xno; then
6322
archiver_list_spec=$lt_cv_ar_at_file
6331
if test -n "$ac_tool_prefix"; then
6332
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6333
set dummy ${ac_tool_prefix}strip; ac_word=$2
6334
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335
$as_echo_n "checking for $ac_word... " >&6; }
6336
if ${ac_cv_prog_STRIP+:} false; then :
6337
$as_echo_n "(cached) " >&6
6339
if test -n "$STRIP"; then
6340
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6342
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346
test -z "$as_dir" && as_dir=.
6347
for ac_exec_ext in '' $ac_executable_extensions; do
6348
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6349
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6350
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359
STRIP=$ac_cv_prog_STRIP
6360
if test -n "$STRIP"; then
6361
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6362
$as_echo "$STRIP" >&6; }
6364
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365
$as_echo "no" >&6; }
6370
if test -z "$ac_cv_prog_STRIP"; then
6372
# Extract the first word of "strip", so it can be a program name with args.
6373
set dummy strip; ac_word=$2
6374
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6375
$as_echo_n "checking for $ac_word... " >&6; }
6376
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6377
$as_echo_n "(cached) " >&6
6379
if test -n "$ac_ct_STRIP"; then
6380
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6382
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386
test -z "$as_dir" && as_dir=.
6387
for ac_exec_ext in '' $ac_executable_extensions; do
6388
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6389
ac_cv_prog_ac_ct_STRIP="strip"
6390
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6399
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6400
if test -n "$ac_ct_STRIP"; then
6401
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6402
$as_echo "$ac_ct_STRIP" >&6; }
6404
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405
$as_echo "no" >&6; }
6408
if test "x$ac_ct_STRIP" = x; then
6411
case $cross_compiling:$ac_tool_warned in
6413
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6414
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6415
ac_tool_warned=yes ;;
6420
STRIP="$ac_cv_prog_STRIP"
6423
test -z "$STRIP" && STRIP=:
6430
if test -n "$ac_tool_prefix"; then
6431
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6432
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6433
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434
$as_echo_n "checking for $ac_word... " >&6; }
6435
if ${ac_cv_prog_RANLIB+:} false; then :
6436
$as_echo_n "(cached) " >&6
6438
if test -n "$RANLIB"; then
6439
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6441
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445
test -z "$as_dir" && as_dir=.
6446
for ac_exec_ext in '' $ac_executable_extensions; do
6447
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6449
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458
RANLIB=$ac_cv_prog_RANLIB
6459
if test -n "$RANLIB"; then
6460
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6461
$as_echo "$RANLIB" >&6; }
6463
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464
$as_echo "no" >&6; }
6469
if test -z "$ac_cv_prog_RANLIB"; then
6470
ac_ct_RANLIB=$RANLIB
6471
# Extract the first word of "ranlib", so it can be a program name with args.
6472
set dummy ranlib; ac_word=$2
6473
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474
$as_echo_n "checking for $ac_word... " >&6; }
6475
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6476
$as_echo_n "(cached) " >&6
6478
if test -n "$ac_ct_RANLIB"; then
6479
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6481
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485
test -z "$as_dir" && as_dir=.
6486
for ac_exec_ext in '' $ac_executable_extensions; do
6487
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6488
ac_cv_prog_ac_ct_RANLIB="ranlib"
6489
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6498
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6499
if test -n "$ac_ct_RANLIB"; then
6500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6501
$as_echo "$ac_ct_RANLIB" >&6; }
6503
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504
$as_echo "no" >&6; }
6507
if test "x$ac_ct_RANLIB" = x; then
6510
case $cross_compiling:$ac_tool_warned in
6512
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6513
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6514
ac_tool_warned=yes ;;
6516
RANLIB=$ac_ct_RANLIB
6519
RANLIB="$ac_cv_prog_RANLIB"
6522
test -z "$RANLIB" && RANLIB=:
6529
# Determine commands to create old-style static archives.
6530
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6531
old_postinstall_cmds='chmod 644 $oldlib'
6532
old_postuninstall_cmds=
6534
if test -n "$RANLIB"; then
6537
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6540
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6543
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6548
lock_old_archive_extraction=yes ;;
6550
lock_old_archive_extraction=no ;;
6591
# If no C compiler was specified, use CC.
6594
# If no C compiler flags were specified, use CFLAGS.
6595
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6597
# Allow CC to be a program name with arguments.
6601
# Check for command to grab the raw symbol name followed by C symbol from nm.
6602
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6603
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6604
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6605
$as_echo_n "(cached) " >&6
6608
# These are sane defaults that work on at least a few old systems.
6609
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6611
# Character class describing NM global symbol codes.
6612
symcode='[BCDEGRST]'
6614
# Regexp to match symbols that can be accessed directly from C.
6615
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6617
# Define system-specific variables.
6622
cygwin* | mingw* | pw32* | cegcc*)
6623
symcode='[ABCDGISTW]'
6626
if test "$host_cpu" = ia64; then
6627
symcode='[ABCDEGRST]'
6631
symcode='[BCDEGRST]'
6634
symcode='[BCDEGQRST]'
6645
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6653
# If we're using GNU nm, then use its standard symbol codes.
6654
case `$NM -V 2>&1` in
6655
*GNU* | *'with BFD'*)
6656
symcode='[ABCDGIRSTW]' ;;
6659
# Transform an extracted symbol line into a proper C declaration.
6660
# Some systems (esp. on ia64) link data and code symbols differently,
6661
# so use this general approach.
6662
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6664
# Transform an extracted symbol line into symbol name and symbol address
6665
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6666
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6668
# Handle CRLF in mingw tool chain
6672
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6676
# Try without a prefix underscore, then with it.
6677
for ac_symprfx in "" "_"; do
6679
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6680
symxfrm="\\1 $ac_symprfx\\2 \\2"
6682
# Write the raw and C identifiers.
6683
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6684
# Fake it for dumpbin and say T for any non-static function
6685
# and D for any global variable.
6686
# Also find C++ and __fastcall symbols from MSVC++,
6687
# which start with @ or ?.
6688
lt_cv_sys_global_symbol_pipe="$AWK '"\
6689
" {last_section=section; section=\$ 3};"\
6690
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6691
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6692
" \$ 0!~/External *\|/{next};"\
6693
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6694
" {if(hide[section]) next};"\
6695
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6696
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6697
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6698
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6699
" ' prfx=^$ac_symprfx"
6701
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6703
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6705
# Check to see that the pipe works correctly.
6709
cat > conftest.$ac_ext <<_LT_EOF
6714
void nm_test_func(void);
6715
void nm_test_func(void){}
6719
int main(){nm_test_var='a';nm_test_func();return(0);}
6722
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6723
(eval $ac_compile) 2>&5
6725
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6726
test $ac_status = 0; }; then
6727
# Now try to grab the symbols.
6729
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6730
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6732
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6733
test $ac_status = 0; } && test -s "$nlist"; then
6734
# Try sorting and uniquifying the output.
6735
if sort "$nlist" | uniq > "$nlist"T; then
6736
mv -f "$nlist"T "$nlist"
6741
# Make sure that we snagged all the symbols we need.
6742
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6743
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6744
cat <<_LT_EOF > conftest.$ac_ext
6745
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6746
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6747
/* DATA imports from DLLs on WIN32 con't be const, because runtime
6748
relocations are performed -- see ld's documentation on pseudo-relocs. */
6749
# define LT@&t@_DLSYM_CONST
6750
#elif defined(__osf__)
6751
/* This system does not cope well with relocations in const data. */
6752
# define LT@&t@_DLSYM_CONST
6754
# define LT@&t@_DLSYM_CONST const
6762
# Now generate the symbol file.
6763
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6765
cat <<_LT_EOF >> conftest.$ac_ext
6767
/* The mapping between symbol names and symbols. */
6768
LT@&t@_DLSYM_CONST struct {
6772
lt__PROGRAM__LTX_preloaded_symbols[] =
6774
{ "@PROGRAM@", (void *) 0 },
6776
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6777
cat <<\_LT_EOF >> conftest.$ac_ext
6781
/* This works around a problem in FreeBSD linker */
6782
#ifdef FREEBSD_WORKAROUND
6783
static const void *lt_preloaded_setup() {
6784
return lt__PROGRAM__LTX_preloaded_symbols;
6792
# Now try linking the two files.
6793
mv conftest.$ac_objext conftstm.$ac_objext
6794
lt_globsym_save_LIBS=$LIBS
6795
lt_globsym_save_CFLAGS=$CFLAGS
6796
LIBS="conftstm.$ac_objext"
6797
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6798
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6799
(eval $ac_link) 2>&5
6801
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6802
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6805
LIBS=$lt_globsym_save_LIBS
6806
CFLAGS=$lt_globsym_save_CFLAGS
6808
echo "cannot find nm_test_func in $nlist" >&5
6811
echo "cannot find nm_test_var in $nlist" >&5
6814
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6817
echo "$progname: failed program was:" >&5
6818
cat conftest.$ac_ext >&5
6820
rm -rf conftest* conftst*
6822
# Do not use the global_symbol_pipe unless it works.
6823
if test "$pipe_works" = yes; then
6826
lt_cv_sys_global_symbol_pipe=
6832
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6833
lt_cv_sys_global_symbol_to_cdecl=
6835
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6836
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6837
$as_echo "failed" >&6; }
6839
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6840
$as_echo "ok" >&6; }
6843
# Response file support.
6844
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6845
nm_file_list_spec='@'
6846
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6847
nm_file_list_spec='@'
6876
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6877
$as_echo_n "checking for sysroot... " >&6; }
6879
@%:@ Check whether --with-sysroot was given.
6880
if test "${with_sysroot+set}" = set; then :
6881
withval=$with_sysroot;
6888
case ${with_sysroot} in #(
6890
if test "$GCC" = yes; then
6891
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6895
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6901
$as_echo "${with_sysroot}" >&6; }
6902
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6906
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6907
$as_echo "${lt_sysroot:-no}" >&6; }
6913
@%:@ Check whether --enable-libtool-lock was given.
6914
if test "${enable_libtool_lock+set}" = set; then :
6915
enableval=$enable_libtool_lock;
6918
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6920
# Some flags need to be propagated to the compiler or linker for good
6924
# Find out which ABI we are using.
6925
echo 'int i;' > conftest.$ac_ext
6926
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6927
(eval $ac_compile) 2>&5
6929
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6930
test $ac_status = 0; }; then
6931
case `/usr/bin/file conftest.$ac_objext` in
6943
# Find out which ABI we are using.
6944
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6945
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6946
(eval $ac_compile) 2>&5
6948
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6949
test $ac_status = 0; }; then
6950
if test "$lt_cv_prog_gnu_ld" = yes; then
6951
case `/usr/bin/file conftest.$ac_objext` in
6953
LD="${LD-ld} -melf32bsmip"
6956
LD="${LD-ld} -melf32bmipn32"
6959
LD="${LD-ld} -melf64bmip"
6963
case `/usr/bin/file conftest.$ac_objext` in
6979
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6980
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6981
# Find out which ABI we are using.
6982
echo 'int i;' > conftest.$ac_ext
6983
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6984
(eval $ac_compile) 2>&5
6986
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6987
test $ac_status = 0; }; then
6988
case `/usr/bin/file conftest.o` in
6991
x86_64-*kfreebsd*-gnu)
6992
LD="${LD-ld} -m elf_i386_fbsd"
6995
case `/usr/bin/file conftest.o` in
6997
LD="${LD-ld} -m elf32_x86_64"
7000
LD="${LD-ld} -m elf_i386"
7004
ppc64-*linux*|powerpc64-*linux*)
7005
LD="${LD-ld} -m elf32ppclinux"
7008
LD="${LD-ld} -m elf_s390"
7011
LD="${LD-ld} -m elf32_sparc"
7017
x86_64-*kfreebsd*-gnu)
7018
LD="${LD-ld} -m elf_x86_64_fbsd"
7021
LD="${LD-ld} -m elf_x86_64"
7023
ppc*-*linux*|powerpc*-*linux*)
7024
LD="${LD-ld} -m elf64ppc"
7026
s390*-*linux*|s390*-*tpf*)
7027
LD="${LD-ld} -m elf64_s390"
7030
LD="${LD-ld} -m elf64_sparc"
7040
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
7041
SAVE_CFLAGS="$CFLAGS"
7042
CFLAGS="$CFLAGS -belf"
7043
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7044
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7045
if ${lt_cv_cc_needs_belf+:} false; then :
7046
$as_echo_n "(cached) " >&6
7049
ac_cpp='$CPP $CPPFLAGS'
7050
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7051
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7052
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7054
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055
/* end confdefs.h. */
7065
if ac_fn_c_try_link "$LINENO"; then :
7066
lt_cv_cc_needs_belf=yes
7068
lt_cv_cc_needs_belf=no
7070
rm -f core conftest.err conftest.$ac_objext \
7071
conftest$ac_exeext conftest.$ac_ext
7073
ac_cpp='$CPP $CPPFLAGS'
7074
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7075
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7076
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7079
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7080
$as_echo "$lt_cv_cc_needs_belf" >&6; }
7081
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7082
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7083
CFLAGS="$SAVE_CFLAGS"
7087
# Find out which ABI we are using.
7088
echo 'int i;' > conftest.$ac_ext
7089
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7090
(eval $ac_compile) 2>&5
7092
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7093
test $ac_status = 0; }; then
7094
case `/usr/bin/file conftest.o` in
7096
case $lt_cv_prog_gnu_ld in
7100
LD="${LD-ld} -m elf_x86_64"
7103
LD="${LD-ld} -m elf64_sparc"
7106
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7107
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7112
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7124
need_locks="$enable_libtool_lock"
7126
if test -n "$ac_tool_prefix"; then
7127
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7128
set dummy ${ac_tool_prefix}mt; ac_word=$2
7129
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7130
$as_echo_n "checking for $ac_word... " >&6; }
7131
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7132
$as_echo_n "(cached) " >&6
7134
if test -n "$MANIFEST_TOOL"; then
7135
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7137
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141
test -z "$as_dir" && as_dir=.
7142
for ac_exec_ext in '' $ac_executable_extensions; do
7143
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7144
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7145
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7155
if test -n "$MANIFEST_TOOL"; then
7156
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7157
$as_echo "$MANIFEST_TOOL" >&6; }
7159
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160
$as_echo "no" >&6; }
7165
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7166
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7167
# Extract the first word of "mt", so it can be a program name with args.
7168
set dummy mt; ac_word=$2
7169
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7170
$as_echo_n "checking for $ac_word... " >&6; }
7171
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7172
$as_echo_n "(cached) " >&6
7174
if test -n "$ac_ct_MANIFEST_TOOL"; then
7175
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7177
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181
test -z "$as_dir" && as_dir=.
7182
for ac_exec_ext in '' $ac_executable_extensions; do
7183
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7184
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7185
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7194
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7195
if test -n "$ac_ct_MANIFEST_TOOL"; then
7196
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7197
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7199
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7200
$as_echo "no" >&6; }
7203
if test "x$ac_ct_MANIFEST_TOOL" = x; then
7206
case $cross_compiling:$ac_tool_warned in
7208
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7209
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7210
ac_tool_warned=yes ;;
7212
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7215
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7218
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7220
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7221
if ${lt_cv_path_mainfest_tool+:} false; then :
7222
$as_echo_n "(cached) " >&6
7224
lt_cv_path_mainfest_tool=no
7225
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7226
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7227
cat conftest.err >&5
7228
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7229
lt_cv_path_mainfest_tool=yes
7233
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7234
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7235
if test "x$lt_cv_path_mainfest_tool" != xyes; then
7245
rhapsody* | darwin*)
7246
if test -n "$ac_tool_prefix"; then
7247
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7248
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7249
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7250
$as_echo_n "checking for $ac_word... " >&6; }
7251
if ${ac_cv_prog_DSYMUTIL+:} false; then :
7252
$as_echo_n "(cached) " >&6
7254
if test -n "$DSYMUTIL"; then
7255
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7257
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261
test -z "$as_dir" && as_dir=.
7262
for ac_exec_ext in '' $ac_executable_extensions; do
7263
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7264
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7265
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7274
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7275
if test -n "$DSYMUTIL"; then
7276
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7277
$as_echo "$DSYMUTIL" >&6; }
7279
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280
$as_echo "no" >&6; }
7285
if test -z "$ac_cv_prog_DSYMUTIL"; then
7286
ac_ct_DSYMUTIL=$DSYMUTIL
7287
# Extract the first word of "dsymutil", so it can be a program name with args.
7288
set dummy dsymutil; ac_word=$2
7289
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290
$as_echo_n "checking for $ac_word... " >&6; }
7291
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7292
$as_echo_n "(cached) " >&6
7294
if test -n "$ac_ct_DSYMUTIL"; then
7295
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7297
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301
test -z "$as_dir" && as_dir=.
7302
for ac_exec_ext in '' $ac_executable_extensions; do
7303
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7304
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7305
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7314
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7315
if test -n "$ac_ct_DSYMUTIL"; then
7316
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7317
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7319
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320
$as_echo "no" >&6; }
7323
if test "x$ac_ct_DSYMUTIL" = x; then
7326
case $cross_compiling:$ac_tool_warned in
7328
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7329
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7330
ac_tool_warned=yes ;;
7332
DSYMUTIL=$ac_ct_DSYMUTIL
7335
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7338
if test -n "$ac_tool_prefix"; then
7339
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7340
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7341
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7342
$as_echo_n "checking for $ac_word... " >&6; }
7343
if ${ac_cv_prog_NMEDIT+:} false; then :
7344
$as_echo_n "(cached) " >&6
7346
if test -n "$NMEDIT"; then
7347
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7349
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353
test -z "$as_dir" && as_dir=.
7354
for ac_exec_ext in '' $ac_executable_extensions; do
7355
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7356
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7357
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366
NMEDIT=$ac_cv_prog_NMEDIT
7367
if test -n "$NMEDIT"; then
7368
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7369
$as_echo "$NMEDIT" >&6; }
7371
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7372
$as_echo "no" >&6; }
7377
if test -z "$ac_cv_prog_NMEDIT"; then
7378
ac_ct_NMEDIT=$NMEDIT
7379
# Extract the first word of "nmedit", so it can be a program name with args.
7380
set dummy nmedit; ac_word=$2
7381
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7382
$as_echo_n "checking for $ac_word... " >&6; }
7383
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7384
$as_echo_n "(cached) " >&6
7386
if test -n "$ac_ct_NMEDIT"; then
7387
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7389
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393
test -z "$as_dir" && as_dir=.
7394
for ac_exec_ext in '' $ac_executable_extensions; do
7395
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7396
ac_cv_prog_ac_ct_NMEDIT="nmedit"
7397
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7406
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7407
if test -n "$ac_ct_NMEDIT"; then
7408
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7409
$as_echo "$ac_ct_NMEDIT" >&6; }
7411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7412
$as_echo "no" >&6; }
7415
if test "x$ac_ct_NMEDIT" = x; then
7418
case $cross_compiling:$ac_tool_warned in
7420
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7421
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7422
ac_tool_warned=yes ;;
7424
NMEDIT=$ac_ct_NMEDIT
7427
NMEDIT="$ac_cv_prog_NMEDIT"
7430
if test -n "$ac_tool_prefix"; then
7431
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7432
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7433
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7434
$as_echo_n "checking for $ac_word... " >&6; }
7435
if ${ac_cv_prog_LIPO+:} false; then :
7436
$as_echo_n "(cached) " >&6
7438
if test -n "$LIPO"; then
7439
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7441
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445
test -z "$as_dir" && as_dir=.
7446
for ac_exec_ext in '' $ac_executable_extensions; do
7447
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7448
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7449
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7458
LIPO=$ac_cv_prog_LIPO
7459
if test -n "$LIPO"; then
7460
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7461
$as_echo "$LIPO" >&6; }
7463
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7464
$as_echo "no" >&6; }
7469
if test -z "$ac_cv_prog_LIPO"; then
7471
# Extract the first word of "lipo", so it can be a program name with args.
7472
set dummy lipo; ac_word=$2
7473
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7474
$as_echo_n "checking for $ac_word... " >&6; }
7475
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7476
$as_echo_n "(cached) " >&6
7478
if test -n "$ac_ct_LIPO"; then
7479
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7481
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485
test -z "$as_dir" && as_dir=.
7486
for ac_exec_ext in '' $ac_executable_extensions; do
7487
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7488
ac_cv_prog_ac_ct_LIPO="lipo"
7489
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7498
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7499
if test -n "$ac_ct_LIPO"; then
7500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7501
$as_echo "$ac_ct_LIPO" >&6; }
7503
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7504
$as_echo "no" >&6; }
7507
if test "x$ac_ct_LIPO" = x; then
7510
case $cross_compiling:$ac_tool_warned in
7512
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7513
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7514
ac_tool_warned=yes ;;
7519
LIPO="$ac_cv_prog_LIPO"
7522
if test -n "$ac_tool_prefix"; then
7523
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7524
set dummy ${ac_tool_prefix}otool; ac_word=$2
7525
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7526
$as_echo_n "checking for $ac_word... " >&6; }
7527
if ${ac_cv_prog_OTOOL+:} false; then :
7528
$as_echo_n "(cached) " >&6
7530
if test -n "$OTOOL"; then
7531
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7533
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537
test -z "$as_dir" && as_dir=.
7538
for ac_exec_ext in '' $ac_executable_extensions; do
7539
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7540
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7541
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7550
OTOOL=$ac_cv_prog_OTOOL
7551
if test -n "$OTOOL"; then
7552
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7553
$as_echo "$OTOOL" >&6; }
7555
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7556
$as_echo "no" >&6; }
7561
if test -z "$ac_cv_prog_OTOOL"; then
7563
# Extract the first word of "otool", so it can be a program name with args.
7564
set dummy otool; ac_word=$2
7565
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7566
$as_echo_n "checking for $ac_word... " >&6; }
7567
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7568
$as_echo_n "(cached) " >&6
7570
if test -n "$ac_ct_OTOOL"; then
7571
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7573
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577
test -z "$as_dir" && as_dir=.
7578
for ac_exec_ext in '' $ac_executable_extensions; do
7579
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7580
ac_cv_prog_ac_ct_OTOOL="otool"
7581
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7590
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7591
if test -n "$ac_ct_OTOOL"; then
7592
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7593
$as_echo "$ac_ct_OTOOL" >&6; }
7595
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596
$as_echo "no" >&6; }
7599
if test "x$ac_ct_OTOOL" = x; then
7602
case $cross_compiling:$ac_tool_warned in
7604
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7605
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7606
ac_tool_warned=yes ;;
7611
OTOOL="$ac_cv_prog_OTOOL"
7614
if test -n "$ac_tool_prefix"; then
7615
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7616
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7617
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7618
$as_echo_n "checking for $ac_word... " >&6; }
7619
if ${ac_cv_prog_OTOOL64+:} false; then :
7620
$as_echo_n "(cached) " >&6
7622
if test -n "$OTOOL64"; then
7623
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7625
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629
test -z "$as_dir" && as_dir=.
7630
for ac_exec_ext in '' $ac_executable_extensions; do
7631
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7632
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7633
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7642
OTOOL64=$ac_cv_prog_OTOOL64
7643
if test -n "$OTOOL64"; then
7644
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7645
$as_echo "$OTOOL64" >&6; }
7647
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648
$as_echo "no" >&6; }
7653
if test -z "$ac_cv_prog_OTOOL64"; then
7654
ac_ct_OTOOL64=$OTOOL64
7655
# Extract the first word of "otool64", so it can be a program name with args.
7656
set dummy otool64; ac_word=$2
7657
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7658
$as_echo_n "checking for $ac_word... " >&6; }
7659
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7660
$as_echo_n "(cached) " >&6
7662
if test -n "$ac_ct_OTOOL64"; then
7663
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7665
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669
test -z "$as_dir" && as_dir=.
7670
for ac_exec_ext in '' $ac_executable_extensions; do
7671
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7672
ac_cv_prog_ac_ct_OTOOL64="otool64"
7673
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7682
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7683
if test -n "$ac_ct_OTOOL64"; then
7684
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7685
$as_echo "$ac_ct_OTOOL64" >&6; }
7687
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688
$as_echo "no" >&6; }
7691
if test "x$ac_ct_OTOOL64" = x; then
7694
case $cross_compiling:$ac_tool_warned in
7696
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7697
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7698
ac_tool_warned=yes ;;
7700
OTOOL64=$ac_ct_OTOOL64
7703
OTOOL64="$ac_cv_prog_OTOOL64"
7732
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7733
$as_echo_n "checking for -single_module linker flag... " >&6; }
7734
if ${lt_cv_apple_cc_single_mod+:} false; then :
7735
$as_echo_n "(cached) " >&6
7737
lt_cv_apple_cc_single_mod=no
7738
if test -z "${LT_MULTI_MODULE}"; then
7739
# By default we will add the -single_module flag. You can override
7740
# by either setting the environment variable LT_MULTI_MODULE
7741
# non-empty at configure time, or by adding -multi_module to the
7743
rm -rf libconftest.dylib*
7744
echo "int foo(void){return 1;}" > conftest.c
7745
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7746
-dynamiclib -Wl,-single_module conftest.c" >&5
7747
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7748
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7750
# If there is a non-empty error log, and "single_module"
7751
# appears in it, assume the flag caused a linker warning
7752
if test -s conftest.err && $GREP single_module conftest.err; then
7753
cat conftest.err >&5
7754
# Otherwise, if the output was created with a 0 exit code from
7755
# the compiler, it worked.
7756
elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7757
lt_cv_apple_cc_single_mod=yes
7759
cat conftest.err >&5
7761
rm -rf libconftest.dylib*
7765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7766
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7768
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7769
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7770
if ${lt_cv_ld_exported_symbols_list+:} false; then :
7771
$as_echo_n "(cached) " >&6
7773
lt_cv_ld_exported_symbols_list=no
7774
save_LDFLAGS=$LDFLAGS
7775
echo "_main" > conftest.sym
7776
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7777
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778
/* end confdefs.h. */
7788
if ac_fn_c_try_link "$LINENO"; then :
7789
lt_cv_ld_exported_symbols_list=yes
7791
lt_cv_ld_exported_symbols_list=no
7793
rm -f core conftest.err conftest.$ac_objext \
7794
conftest$ac_exeext conftest.$ac_ext
7795
LDFLAGS="$save_LDFLAGS"
7798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7799
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7801
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7802
$as_echo_n "checking for -force_load linker flag... " >&6; }
7803
if ${lt_cv_ld_force_load+:} false; then :
7804
$as_echo_n "(cached) " >&6
7806
lt_cv_ld_force_load=no
7807
cat > conftest.c << _LT_EOF
7808
int forced_loaded() { return 2;}
7810
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7811
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7812
echo "$AR cru libconftest.a conftest.o" >&5
7813
$AR cru libconftest.a conftest.o 2>&5
7814
echo "$RANLIB libconftest.a" >&5
7815
$RANLIB libconftest.a 2>&5
7816
cat > conftest.c << _LT_EOF
7817
int main() { return 0;}
7819
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7820
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7822
if test -s conftest.err && $GREP force_load conftest.err; then
7823
cat conftest.err >&5
7824
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7825
lt_cv_ld_force_load=yes
7827
cat conftest.err >&5
7829
rm -f conftest.err libconftest.a conftest conftest.c
7830
rm -rf conftest.dSYM
7833
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7834
$as_echo "$lt_cv_ld_force_load" >&6; }
7836
rhapsody* | darwin1.[012])
7837
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7839
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7840
darwin*) # darwin 5.x on
7841
# if running on 10.5 or later, the deployment target defaults
7842
# to the OS version, if on x86, and 10.4, the deployment
7843
# target defaults to 10.4. Don't you love it?
7844
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7845
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7846
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7848
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7850
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7854
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7855
_lt_dar_single_mod='$single_module'
7857
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7858
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7860
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7862
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7863
_lt_dsymutil='~$DSYMUTIL $lib || :'
7871
ac_cpp='$CPP $CPPFLAGS'
7872
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7873
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7874
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7875
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7876
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7877
# On Suns, sometimes $CPP names a directory.
7878
if test -n "$CPP" && test -d "$CPP"; then
7881
if test -z "$CPP"; then
7882
if ${ac_cv_prog_CPP+:} false; then :
7883
$as_echo_n "(cached) " >&6
7885
# Double quotes because CPP needs to be expanded
7886
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7889
for ac_c_preproc_warn_flag in '' yes
7891
# Use a header file that comes with gcc, so configuring glibc
7892
# with a fresh cross-compiler works.
7893
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7894
# <limits.h> exists even on freestanding compilers.
7895
# On the NeXT, cc -E runs the code through the compiler's parser,
7896
# not just through cpp. "Syntax error" is here to catch this case.
7897
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898
/* end confdefs.h. */
7900
@%:@ include <limits.h>
7902
@%:@ include <assert.h>
7906
if ac_fn_c_try_cpp "$LINENO"; then :
7909
# Broken: fails on valid input.
7912
rm -f conftest.err conftest.i conftest.$ac_ext
7914
# OK, works on sane cases. Now check whether nonexistent headers
7915
# can be detected and how.
7916
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917
/* end confdefs.h. */
7918
@%:@include <ac_nonexistent.h>
7920
if ac_fn_c_try_cpp "$LINENO"; then :
7921
# Broken: success on invalid input.
7924
# Passes both tests.
7928
rm -f conftest.err conftest.i conftest.$ac_ext
7931
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7932
rm -f conftest.i conftest.err conftest.$ac_ext
7933
if $ac_preproc_ok; then :
7945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7946
$as_echo "$CPP" >&6; }
7948
for ac_c_preproc_warn_flag in '' yes
7950
# Use a header file that comes with gcc, so configuring glibc
7951
# with a fresh cross-compiler works.
7952
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7953
# <limits.h> exists even on freestanding compilers.
7954
# On the NeXT, cc -E runs the code through the compiler's parser,
7955
# not just through cpp. "Syntax error" is here to catch this case.
7956
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957
/* end confdefs.h. */
7959
@%:@ include <limits.h>
7961
@%:@ include <assert.h>
7965
if ac_fn_c_try_cpp "$LINENO"; then :
7968
# Broken: fails on valid input.
7971
rm -f conftest.err conftest.i conftest.$ac_ext
7973
# OK, works on sane cases. Now check whether nonexistent headers
7974
# can be detected and how.
7975
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976
/* end confdefs.h. */
7977
@%:@include <ac_nonexistent.h>
7979
if ac_fn_c_try_cpp "$LINENO"; then :
7980
# Broken: success on invalid input.
7983
# Passes both tests.
7987
rm -f conftest.err conftest.i conftest.$ac_ext
7990
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7991
rm -f conftest.i conftest.err conftest.$ac_ext
7992
if $ac_preproc_ok; then :
7995
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7996
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7997
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7998
See \`config.log' for more details" "$LINENO" 5; }
8002
ac_cpp='$CPP $CPPFLAGS'
8003
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8004
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8005
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8008
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8009
$as_echo_n "checking for ANSI C header files... " >&6; }
8010
if ${ac_cv_header_stdc+:} false; then :
8011
$as_echo_n "(cached) " >&6
8013
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014
/* end confdefs.h. */
8028
if ac_fn_c_try_compile "$LINENO"; then :
8029
ac_cv_header_stdc=yes
8031
ac_cv_header_stdc=no
8033
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8035
if test $ac_cv_header_stdc = yes; then
8036
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8037
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038
/* end confdefs.h. */
8042
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8043
$EGREP "memchr" >/dev/null 2>&1; then :
8046
ac_cv_header_stdc=no
8052
if test $ac_cv_header_stdc = yes; then
8053
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8054
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8055
/* end confdefs.h. */
8059
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8060
$EGREP "free" >/dev/null 2>&1; then :
8063
ac_cv_header_stdc=no
8069
if test $ac_cv_header_stdc = yes; then
8070
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8071
if test "$cross_compiling" = yes; then :
8074
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075
/* end confdefs.h. */
8078
#if ((' ' & 0x0FF) == 0x020)
8079
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8080
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8082
# define ISLOWER(c) \
8083
(('a' <= (c) && (c) <= 'i') \
8084
|| ('j' <= (c) && (c) <= 'r') \
8085
|| ('s' <= (c) && (c) <= 'z'))
8086
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8089
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8094
for (i = 0; i < 256; i++)
8095
if (XOR (islower (i), ISLOWER (i))
8096
|| toupper (i) != TOUPPER (i))
8101
if ac_fn_c_try_run "$LINENO"; then :
8104
ac_cv_header_stdc=no
8106
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8107
conftest.$ac_objext conftest.beam conftest.$ac_ext
8112
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8113
$as_echo "$ac_cv_header_stdc" >&6; }
8114
if test $ac_cv_header_stdc = yes; then
8116
$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
8120
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8121
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8122
inttypes.h stdint.h unistd.h
8124
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8125
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8127
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8128
cat >>confdefs.h <<_ACEOF
8129
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8137
for ac_header in dlfcn.h
8139
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8141
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8142
cat >>confdefs.h <<_ACEOF
8143
@%:@define HAVE_DLFCN_H 1
8162
@%:@ Check whether --enable-shared was given.
8163
if test "${enable_shared+set}" = set; then :
8164
enableval=$enable_shared; p=${PACKAGE-default}
8166
yes) enable_shared=yes ;;
8167
no) enable_shared=no ;;
8170
# Look at the argument we got. We use all the common list separators.
8171
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8172
for pkg in $enableval; do
8174
if test "X$pkg" = "X$p"; then
8195
@%:@ Check whether --with-pic was given.
8196
if test "${with_pic+set}" = set; then :
8197
withval=$with_pic; lt_p=${PACKAGE-default}
8199
yes|no) pic_mode=$withval ;;
8202
# Look at the argument we got. We use all the common list separators.
8203
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8204
for lt_pkg in $withval; do
8206
if test "X$lt_pkg" = "X$lt_p"; then
8218
test -z "$pic_mode" && pic_mode=default
8226
@%:@ Check whether --enable-fast-install was given.
8227
if test "${enable_fast_install+set}" = set; then :
8228
enableval=$enable_fast_install; p=${PACKAGE-default}
8230
yes) enable_fast_install=yes ;;
8231
no) enable_fast_install=no ;;
8233
enable_fast_install=no
8234
# Look at the argument we got. We use all the common list separators.
8235
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8236
for pkg in $enableval; do
8238
if test "X$pkg" = "X$p"; then
8239
enable_fast_install=yes
8246
enable_fast_install=yes
8259
# This can be used to rebuild libtool when needed
8260
LIBTOOL_DEPS="$ltmain"
8262
# Always use our own libtool.
8263
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8294
test -z "$LN_S" && LN_S="ln -s"
8309
if test -n "${ZSH_VERSION+set}" ; then
8310
setopt NO_GLOB_SUBST
8313
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8314
$as_echo_n "checking for objdir... " >&6; }
8315
if ${lt_cv_objdir+:} false; then :
8316
$as_echo_n "(cached) " >&6
8318
rm -f .libs 2>/dev/null
8319
mkdir .libs 2>/dev/null
8320
if test -d .libs; then
8323
# MS-DOS does not allow filenames that begin with a dot.
8326
rmdir .libs 2>/dev/null
8328
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8329
$as_echo "$lt_cv_objdir" >&6; }
8330
objdir=$lt_cv_objdir
8336
cat >>confdefs.h <<_ACEOF
8337
@%:@define LT_OBJDIR "$lt_cv_objdir/"
8345
# AIX sometimes has problems with the GCC collect2 program. For some
8346
# reason, if we set the COLLECT_NAMES environment variable, the problems
8347
# vanish in a puff of smoke.
8348
if test "X${COLLECT_NAMES+set}" != Xset; then
8350
export COLLECT_NAMES
8357
can_build_shared=yes
8359
# All known linkers require a `.a' archive for static linking (except MSVC,
8360
# which needs '.lib').
8363
with_gnu_ld="$lt_cv_prog_gnu_ld"
8366
old_CFLAGS="$CFLAGS"
8368
# Set sane defaults for various variables
8369
test -z "$CC" && CC=cc
8370
test -z "$LTCC" && LTCC=$CC
8371
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8372
test -z "$LD" && LD=ld
8373
test -z "$ac_objext" && ac_objext=o
8375
for cc_temp in $compiler""; do
8377
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8378
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8383
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8386
# Only perform the check for file, if the check method requires it
8387
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8388
case $deplibs_check_method in
8390
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8391
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8392
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8393
if ${lt_cv_path_MAGIC_CMD+:} false; then :
8394
$as_echo_n "(cached) " >&6
8398
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8401
lt_save_MAGIC_CMD="$MAGIC_CMD"
8402
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8403
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8404
for ac_dir in $ac_dummy; do
8406
test -z "$ac_dir" && ac_dir=.
8407
if test -f $ac_dir/${ac_tool_prefix}file; then
8408
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8409
if test -n "$file_magic_test_file"; then
8410
case $deplibs_check_method in
8412
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8413
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8414
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8415
$EGREP "$file_magic_regex" > /dev/null; then
8420
*** Warning: the command libtool uses to detect shared libraries,
8421
*** $file_magic_cmd, produces output that libtool cannot recognize.
8422
*** The result is that libtool may fail to recognize shared libraries
8423
*** as such. This will affect the creation of libtool libraries that
8424
*** depend on shared libraries, but programs linked with such libtool
8425
*** libraries will work regardless of this problem. Nevertheless, you
8426
*** may want to report the problem to your system manager and/or to
8427
*** bug-libtool@gnu.org
8437
MAGIC_CMD="$lt_save_MAGIC_CMD"
8442
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8443
if test -n "$MAGIC_CMD"; then
8444
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8445
$as_echo "$MAGIC_CMD" >&6; }
8447
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8448
$as_echo "no" >&6; }
8455
if test -z "$lt_cv_path_MAGIC_CMD"; then
8456
if test -n "$ac_tool_prefix"; then
8457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8458
$as_echo_n "checking for file... " >&6; }
8459
if ${lt_cv_path_MAGIC_CMD+:} false; then :
8460
$as_echo_n "(cached) " >&6
8464
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8467
lt_save_MAGIC_CMD="$MAGIC_CMD"
8468
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8469
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8470
for ac_dir in $ac_dummy; do
8472
test -z "$ac_dir" && ac_dir=.
8473
if test -f $ac_dir/file; then
8474
lt_cv_path_MAGIC_CMD="$ac_dir/file"
8475
if test -n "$file_magic_test_file"; then
8476
case $deplibs_check_method in
8478
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8479
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8480
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8481
$EGREP "$file_magic_regex" > /dev/null; then
8486
*** Warning: the command libtool uses to detect shared libraries,
8487
*** $file_magic_cmd, produces output that libtool cannot recognize.
8488
*** The result is that libtool may fail to recognize shared libraries
8489
*** as such. This will affect the creation of libtool libraries that
8490
*** depend on shared libraries, but programs linked with such libtool
8491
*** libraries will work regardless of this problem. Nevertheless, you
8492
*** may want to report the problem to your system manager and/or to
8493
*** bug-libtool@gnu.org
8503
MAGIC_CMD="$lt_save_MAGIC_CMD"
8508
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8509
if test -n "$MAGIC_CMD"; then
8510
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8511
$as_echo "$MAGIC_CMD" >&6; }
8513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8514
$as_echo "no" >&6; }
8527
# Use C for the default configuration in the libtool script
8531
ac_cpp='$CPP $CPPFLAGS'
8532
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8533
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8534
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8537
# Source file extension for C test sources.
8540
# Object file extension for compiled C test sources.
8544
# Code to be used in simple compile tests
8545
lt_simple_compile_test_code="int some_variable = 0;"
8547
# Code to be used in simple link tests
8548
lt_simple_link_test_code='int main(){return(0);}'
8556
# If no C compiler was specified, use CC.
8559
# If no C compiler flags were specified, use CFLAGS.
8560
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8562
# Allow CC to be a program name with arguments.
8565
# Save the default compiler, since it gets overwritten when the other
8566
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8567
compiler_DEFAULT=$CC
8569
# save warnings/boilerplate of simple test code
8570
ac_outfile=conftest.$ac_objext
8571
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8572
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8573
_lt_compiler_boilerplate=`cat conftest.err`
8576
ac_outfile=conftest.$ac_objext
8577
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8578
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8579
_lt_linker_boilerplate=`cat conftest.err`
8583
if test -n "$compiler"; then
8585
lt_prog_compiler_no_builtin_flag=
8587
if test "$GCC" = yes; then
8588
case $cc_basename in
8590
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8592
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8595
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8596
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8597
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8598
$as_echo_n "(cached) " >&6
8600
lt_cv_prog_compiler_rtti_exceptions=no
8601
ac_outfile=conftest.$ac_objext
8602
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8603
lt_compiler_flag="-fno-rtti -fno-exceptions"
8604
# Insert the option either (1) after the last *FLAGS variable, or
8605
# (2) before a word containing "conftest.", or (3) at the end.
8606
# Note that $ac_compile itself does not contain backslashes and begins
8607
# with a dollar sign (not a hyphen), so the echo should work correctly.
8608
# The option is referenced via a variable to avoid confusing sed.
8609
lt_compile=`echo "$ac_compile" | $SED \
8610
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8611
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8612
-e 's:$: $lt_compiler_flag:'`
8613
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8614
(eval "$lt_compile" 2>conftest.err)
8616
cat conftest.err >&5
8617
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618
if (exit $ac_status) && test -s "$ac_outfile"; then
8619
# The compiler can only warn and ignore the option if not recognized
8620
# So say no if there are warnings other than the usual output.
8621
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8622
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8623
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8624
lt_cv_prog_compiler_rtti_exceptions=yes
8630
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8631
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8633
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8634
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8646
lt_prog_compiler_wl=
8647
lt_prog_compiler_pic=
8648
lt_prog_compiler_static=
8651
if test "$GCC" = yes; then
8652
lt_prog_compiler_wl='-Wl,'
8653
lt_prog_compiler_static='-static'
8657
# All AIX code is PIC.
8658
if test "$host_cpu" = ia64; then
8659
# AIX 5 now supports IA64 processor
8660
lt_prog_compiler_static='-Bstatic'
8667
# see comment about AmigaOS4 .so support
8668
lt_prog_compiler_pic='-fPIC'
8671
# FIXME: we need at least 68020 code to build shared libraries, but
8672
# adding the `-m68020' flag to GCC prevents building anything better,
8674
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8679
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8680
# PIC is the default for these OSes.
8683
mingw* | cygwin* | pw32* | os2* | cegcc*)
8684
# This hack is so that the source file can tell whether it is being
8685
# built for inclusion in a dll (and should export symbols for example).
8686
# Although the cygwin gcc ignores -fPIC, still need this for old-style
8687
# (--disable-auto-import) libraries
8688
lt_prog_compiler_pic='-DDLL_EXPORT'
8691
darwin* | rhapsody*)
8692
# PIC is the default on this platform
8693
# Common symbols not allowed in MH_DYLIB files
8694
lt_prog_compiler_pic='-fno-common'
8698
# PIC is the default for Haiku.
8699
# The "-static" flag exists, but is broken.
8700
lt_prog_compiler_static=
8704
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8705
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8706
# sets the default TLS model and affects inlining.
8712
lt_prog_compiler_pic='-fPIC'
8718
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
8719
# Instead, we relocate shared libraries at runtime.
8723
# Just because we use GCC doesn't mean we suddenly get shared libraries
8724
# on systems that don't support them.
8725
lt_prog_compiler_can_build_shared=no
8730
# QNX uses GNU C++, but need to define -shared option too, otherwise
8732
lt_prog_compiler_pic='-fPIC -shared'
8736
if test -d /usr/nec; then
8737
lt_prog_compiler_pic=-Kconform_pic
8742
lt_prog_compiler_pic='-fPIC'
8746
case $cc_basename in
8747
nvcc*) # Cuda Compiler Driver 2.2
8748
lt_prog_compiler_wl='-Xlinker '
8749
if test -n "$lt_prog_compiler_pic"; then
8750
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8755
# PORTME Check for flag to pass linker flags through the system compiler.
8758
lt_prog_compiler_wl='-Wl,'
8759
if test "$host_cpu" = ia64; then
8760
# AIX 5 now supports IA64 processor
8761
lt_prog_compiler_static='-Bstatic'
8763
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8767
mingw* | cygwin* | pw32* | os2* | cegcc*)
8768
# This hack is so that the source file can tell whether it is being
8769
# built for inclusion in a dll (and should export symbols for example).
8770
lt_prog_compiler_pic='-DDLL_EXPORT'
8773
hpux9* | hpux10* | hpux11*)
8774
lt_prog_compiler_wl='-Wl,'
8775
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8782
lt_prog_compiler_pic='+Z'
8785
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8786
lt_prog_compiler_static='${wl}-a ${wl}archive'
8789
irix5* | irix6* | nonstopux*)
8790
lt_prog_compiler_wl='-Wl,'
8791
# PIC (with -KPIC) is the default.
8792
lt_prog_compiler_static='-non_shared'
8795
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8796
case $cc_basename in
8797
# old Intel for x86_64 which still supported -KPIC.
8799
lt_prog_compiler_wl='-Wl,'
8800
lt_prog_compiler_pic='-KPIC'
8801
lt_prog_compiler_static='-static'
8803
# icc used to be incompatible with GCC.
8804
# ICC 10 doesn't accept -KPIC any more.
8806
lt_prog_compiler_wl='-Wl,'
8807
lt_prog_compiler_pic='-fPIC'
8808
lt_prog_compiler_static='-static'
8810
# Lahey Fortran 8.1.
8812
lt_prog_compiler_wl='-Wl,'
8813
lt_prog_compiler_pic='--shared'
8814
lt_prog_compiler_static='--static'
8817
# NAG Fortran compiler
8818
lt_prog_compiler_wl='-Wl,-Wl,,'
8819
lt_prog_compiler_pic='-PIC'
8820
lt_prog_compiler_static='-Bstatic'
8822
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8823
# Portland Group compilers (*not* the Pentium gcc compiler,
8824
# which looks to be a dead project)
8825
lt_prog_compiler_wl='-Wl,'
8826
lt_prog_compiler_pic='-fpic'
8827
lt_prog_compiler_static='-Bstatic'
8830
lt_prog_compiler_wl='-Wl,'
8831
# All Alpha code is PIC.
8832
lt_prog_compiler_static='-non_shared'
8834
xl* | bgxl* | bgf* | mpixl*)
8835
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8836
lt_prog_compiler_wl='-Wl,'
8837
lt_prog_compiler_pic='-qpic'
8838
lt_prog_compiler_static='-qstaticlink'
8841
case `$CC -V 2>&1 | sed 5q` in
8842
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8843
# Sun Fortran 8.3 passes all unrecognized flags to the linker
8844
lt_prog_compiler_pic='-KPIC'
8845
lt_prog_compiler_static='-Bstatic'
8846
lt_prog_compiler_wl=''
8848
*Sun\ F* | *Sun*Fortran*)
8849
lt_prog_compiler_pic='-KPIC'
8850
lt_prog_compiler_static='-Bstatic'
8851
lt_prog_compiler_wl='-Qoption ld '
8855
lt_prog_compiler_pic='-KPIC'
8856
lt_prog_compiler_static='-Bstatic'
8857
lt_prog_compiler_wl='-Wl,'
8859
*Intel*\ [CF]*Compiler*)
8860
lt_prog_compiler_wl='-Wl,'
8861
lt_prog_compiler_pic='-fPIC'
8862
lt_prog_compiler_static='-static'
8865
lt_prog_compiler_wl='-Wl,'
8866
lt_prog_compiler_pic='-fpic'
8867
lt_prog_compiler_static='-Bstatic'
8875
lt_prog_compiler_pic='-KPIC'
8876
lt_prog_compiler_static='-Bstatic'
8880
# QNX uses GNU C++, but need to define -shared option too, otherwise
8882
lt_prog_compiler_pic='-fPIC -shared'
8885
osf3* | osf4* | osf5*)
8886
lt_prog_compiler_wl='-Wl,'
8887
# All OSF/1 code is PIC.
8888
lt_prog_compiler_static='-non_shared'
8892
lt_prog_compiler_static='-non_shared'
8896
lt_prog_compiler_pic='-KPIC'
8897
lt_prog_compiler_static='-Bstatic'
8898
case $cc_basename in
8899
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8900
lt_prog_compiler_wl='-Qoption ld ';;
8902
lt_prog_compiler_wl='-Wl,';;
8907
lt_prog_compiler_wl='-Qoption ld '
8908
lt_prog_compiler_pic='-PIC'
8909
lt_prog_compiler_static='-Bstatic'
8912
sysv4 | sysv4.2uw2* | sysv4.3*)
8913
lt_prog_compiler_wl='-Wl,'
8914
lt_prog_compiler_pic='-KPIC'
8915
lt_prog_compiler_static='-Bstatic'
8919
if test -d /usr/nec ;then
8920
lt_prog_compiler_pic='-Kconform_pic'
8921
lt_prog_compiler_static='-Bstatic'
8925
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8926
lt_prog_compiler_wl='-Wl,'
8927
lt_prog_compiler_pic='-KPIC'
8928
lt_prog_compiler_static='-Bstatic'
8932
lt_prog_compiler_wl='-Wl,'
8933
lt_prog_compiler_can_build_shared=no
8937
lt_prog_compiler_pic='-pic'
8938
lt_prog_compiler_static='-Bstatic'
8942
lt_prog_compiler_can_build_shared=no
8948
# For platforms which do not support PIC, -DPIC is meaningless:
8950
lt_prog_compiler_pic=
8953
lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
8957
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8958
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8959
if ${lt_cv_prog_compiler_pic+:} false; then :
8960
$as_echo_n "(cached) " >&6
8962
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8964
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8965
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8966
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8969
# Check to make sure the PIC flag actually works.
8971
if test -n "$lt_prog_compiler_pic"; then
8972
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8973
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8974
if ${lt_cv_prog_compiler_pic_works+:} false; then :
8975
$as_echo_n "(cached) " >&6
8977
lt_cv_prog_compiler_pic_works=no
8978
ac_outfile=conftest.$ac_objext
8979
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8980
lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
8981
# Insert the option either (1) after the last *FLAGS variable, or
8982
# (2) before a word containing "conftest.", or (3) at the end.
8983
# Note that $ac_compile itself does not contain backslashes and begins
8984
# with a dollar sign (not a hyphen), so the echo should work correctly.
8985
# The option is referenced via a variable to avoid confusing sed.
8986
lt_compile=`echo "$ac_compile" | $SED \
8987
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8988
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8989
-e 's:$: $lt_compiler_flag:'`
8990
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8991
(eval "$lt_compile" 2>conftest.err)
8993
cat conftest.err >&5
8994
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995
if (exit $ac_status) && test -s "$ac_outfile"; then
8996
# The compiler can only warn and ignore the option if not recognized
8997
# So say no if there are warnings other than the usual output.
8998
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8999
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9000
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9001
lt_cv_prog_compiler_pic_works=yes
9007
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9008
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9010
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9011
case $lt_prog_compiler_pic in
9013
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9016
lt_prog_compiler_pic=
9017
lt_prog_compiler_can_build_shared=no
9033
# Check to make sure the static flag actually works.
9035
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9036
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9037
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9038
if ${lt_cv_prog_compiler_static_works+:} false; then :
9039
$as_echo_n "(cached) " >&6
9041
lt_cv_prog_compiler_static_works=no
9042
save_LDFLAGS="$LDFLAGS"
9043
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9044
echo "$lt_simple_link_test_code" > conftest.$ac_ext
9045
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9046
# The linker can only warn and ignore the option if not recognized
9047
# So say no if there are warnings
9048
if test -s conftest.err; then
9049
# Append any errors to the config.log.
9050
cat conftest.err 1>&5
9051
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9052
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9053
if diff conftest.exp conftest.er2 >/dev/null; then
9054
lt_cv_prog_compiler_static_works=yes
9057
lt_cv_prog_compiler_static_works=yes
9061
LDFLAGS="$save_LDFLAGS"
9064
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9065
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9067
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9070
lt_prog_compiler_static=
9079
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9080
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9081
if ${lt_cv_prog_compiler_c_o+:} false; then :
9082
$as_echo_n "(cached) " >&6
9084
lt_cv_prog_compiler_c_o=no
9085
$RM -r conftest 2>/dev/null
9089
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9091
lt_compiler_flag="-o out/conftest2.$ac_objext"
9092
# Insert the option either (1) after the last *FLAGS variable, or
9093
# (2) before a word containing "conftest.", or (3) at the end.
9094
# Note that $ac_compile itself does not contain backslashes and begins
9095
# with a dollar sign (not a hyphen), so the echo should work correctly.
9096
lt_compile=`echo "$ac_compile" | $SED \
9097
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9098
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9099
-e 's:$: $lt_compiler_flag:'`
9100
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9101
(eval "$lt_compile" 2>out/conftest.err)
9103
cat out/conftest.err >&5
9104
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9107
# The compiler can only warn and ignore the option if not recognized
9108
# So say no if there are warnings
9109
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9110
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9111
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9112
lt_cv_prog_compiler_c_o=yes
9117
# SGI C++ compiler will create directory out/ii_files/ for
9118
# template instantiation
9119
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9120
$RM out/* && rmdir out
9126
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9127
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9134
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9135
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9136
if ${lt_cv_prog_compiler_c_o+:} false; then :
9137
$as_echo_n "(cached) " >&6
9139
lt_cv_prog_compiler_c_o=no
9140
$RM -r conftest 2>/dev/null
9144
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9146
lt_compiler_flag="-o out/conftest2.$ac_objext"
9147
# Insert the option either (1) after the last *FLAGS variable, or
9148
# (2) before a word containing "conftest.", or (3) at the end.
9149
# Note that $ac_compile itself does not contain backslashes and begins
9150
# with a dollar sign (not a hyphen), so the echo should work correctly.
9151
lt_compile=`echo "$ac_compile" | $SED \
9152
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9153
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9154
-e 's:$: $lt_compiler_flag:'`
9155
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9156
(eval "$lt_compile" 2>out/conftest.err)
9158
cat out/conftest.err >&5
9159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9162
# The compiler can only warn and ignore the option if not recognized
9163
# So say no if there are warnings
9164
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9165
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9166
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9167
lt_cv_prog_compiler_c_o=yes
9172
# SGI C++ compiler will create directory out/ii_files/ for
9173
# template instantiation
9174
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9175
$RM out/* && rmdir out
9181
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9182
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9187
hard_links="nottested"
9188
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9189
# do not overwrite the value of need_locks provided by the user
9190
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9191
$as_echo_n "checking if we can lock with hard links... " >&6; }
9194
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9196
ln conftest.a conftest.b 2>&5 || hard_links=no
9197
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9198
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9199
$as_echo "$hard_links" >&6; }
9200
if test "$hard_links" = no; then
9201
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9202
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9214
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9215
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9218
allow_undefined_flag=
9219
always_export_symbols=no
9221
archive_expsym_cmds=
9222
compiler_needs_object=no
9223
enable_shared_with_static_runtimes=no
9224
export_dynamic_flag_spec=
9225
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9226
hardcode_automatic=no
9228
hardcode_direct_absolute=no
9229
hardcode_libdir_flag_spec=
9230
hardcode_libdir_separator=
9232
hardcode_shlibpath_var=unsupported
9234
link_all_deplibs=unknown
9237
old_archive_from_new_cmds=
9238
old_archive_from_expsyms_cmds=
9239
thread_safe_flag_spec=
9240
whole_archive_flag_spec=
9241
# include_expsyms should be a list of space-separated symbols to be *always*
9242
# included in the symbol list
9244
# exclude_expsyms can be an extended regexp of symbols to exclude
9245
# it will be wrapped by ` (' and `)$', so one must not match beginning or
9246
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9247
# as well as any symbol that contains `d'.
9248
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9249
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9250
# platforms (ab)use it in PIC code, but their linkers get confused if
9251
# the symbol is explicitly referenced. Since portable code cannot
9252
# rely on this symbol name, it's probably fine to never include it in
9253
# preloaded symbol tables.
9254
# Exclude shared library initialization/finalization symbols.
9255
extract_expsyms_cmds=
9258
cygwin* | mingw* | pw32* | cegcc*)
9259
# FIXME: the MSVC++ port hasn't been tested in a loooong time
9260
# When not using gcc, we currently assume that we are using
9261
# Microsoft Visual C++.
9262
if test "$GCC" != yes; then
9267
# we just hope/assume this is gcc and not c89 (= MSVC++)
9273
linux* | k*bsd*-gnu | gnu*)
9280
# On some targets, GNU ld is compatible enough with the native linker
9281
# that we're better off using the native interface for both.
9282
lt_use_gnu_ld_interface=no
9283
if test "$with_gnu_ld" = yes; then
9286
# The AIX port of GNU ld has always aspired to compatibility
9287
# with the native linker. However, as the warning in the GNU ld
9288
# block says, versions before 2.19.5* couldn't really create working
9289
# shared libraries, regardless of the interface used.
9290
case `$LD -v 2>&1` in
9291
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9292
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9293
*\ \(GNU\ Binutils\)\ [3-9]*) ;;
9295
lt_use_gnu_ld_interface=yes
9300
lt_use_gnu_ld_interface=yes
9305
if test "$lt_use_gnu_ld_interface" = yes; then
9306
# If archive_cmds runs LD, not CC, wlarc should be empty
9309
# Set some defaults for GNU ld with shared library support. These
9310
# are reset later if shared libraries are not supported. Putting them
9311
# here allows them to be overridden if necessary.
9312
runpath_var=LD_RUN_PATH
9313
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9314
export_dynamic_flag_spec='${wl}--export-dynamic'
9315
# ancient GNU ld didn't support --whole-archive et. al.
9316
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9317
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9319
whole_archive_flag_spec=
9321
supports_anon_versioning=no
9322
case `$LD -v 2>&1` in
9323
*GNU\ gold*) supports_anon_versioning=yes ;;
9324
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9325
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9326
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9327
*\ 2.11.*) ;; # other 2.11 versions
9328
*) supports_anon_versioning=yes ;;
9331
# See if GNU ld supports shared libraries.
9334
# On AIX/PPC, the GNU linker is very broken
9335
if test "$host_cpu" != ia64; then
9339
*** Warning: the GNU linker, at least up to release 2.19, is reported
9340
*** to be unable to reliably create shared libraries on AIX.
9341
*** Therefore, libtool is disabling shared libraries support. If you
9342
*** really care for shared libraries, you may want to install binutils
9343
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9344
*** You will then need to restart the configuration process.
9353
# see comment about AmigaOS4 .so support
9354
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9355
archive_expsym_cmds=''
9358
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)'
9359
hardcode_libdir_flag_spec='-L$libdir'
9360
hardcode_minus_L=yes
9366
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9367
allow_undefined_flag=unsupported
9368
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9369
# support --undefined. This deserves some investigation. FIXME
9370
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9376
cygwin* | mingw* | pw32* | cegcc*)
9377
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9378
# as there is no search path for DLLs.
9379
hardcode_libdir_flag_spec='-L$libdir'
9380
export_dynamic_flag_spec='${wl}--export-all-symbols'
9381
allow_undefined_flag=unsupported
9382
always_export_symbols=no
9383
enable_shared_with_static_runtimes=yes
9384
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9385
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9387
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9388
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9389
# If the export-symbols file already is a .def file (1st line
9390
# is EXPORTS), use it as is; otherwise, prepend...
9391
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9392
cp $export_symbols $output_objdir/$soname.def;
9394
echo EXPORTS > $output_objdir/$soname.def;
9395
cat $export_symbols >> $output_objdir/$soname.def;
9397
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9404
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9405
link_all_deplibs=yes
9410
hardcode_shlibpath_var=no
9411
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9412
export_dynamic_flag_spec='${wl}-E'
9413
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9414
# Instead, shared libraries are loaded at an image base (0x10000000 by
9415
# default) and relocated if they conflict, which is a slow very memory
9416
# consuming and fragmenting process. To avoid this, we pick a random,
9417
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9418
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
9419
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9420
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'
9423
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9425
if test "$host_os" = linux-dietlibc; then
9426
case $cc_basename in
9427
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9430
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9431
&& test "$tmp_diet" = no
9433
tmp_addflag=' $pic_flag'
9434
tmp_sharedflag='-shared'
9435
case $cc_basename,$host_cpu in
9436
pgcc*) # Portland Group C compiler
9437
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9438
tmp_addflag=' $pic_flag'
9440
pgf77* | pgf90* | pgf95* | pgfortran*)
9441
# Portland Group f77 and f90 compilers
9442
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9443
tmp_addflag=' $pic_flag -Mnomain' ;;
9444
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9445
tmp_addflag=' -i_dynamic' ;;
9446
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9447
tmp_addflag=' -i_dynamic -nofor_main' ;;
9448
ifc* | ifort*) # Intel Fortran compiler
9449
tmp_addflag=' -nofor_main' ;;
9450
lf95*) # Lahey Fortran 8.1
9451
whole_archive_flag_spec=
9452
tmp_sharedflag='--shared' ;;
9453
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9454
tmp_sharedflag='-qmkshrobj'
9456
nvcc*) # Cuda Compiler Driver 2.2
9457
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9458
compiler_needs_object=yes
9461
case `$CC -V 2>&1 | sed 5q` in
9462
*Sun\ C*) # Sun C 5.9
9463
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9464
compiler_needs_object=yes
9465
tmp_sharedflag='-G' ;;
9466
*Sun\ F*) # Sun Fortran 8.3
9467
tmp_sharedflag='-G' ;;
9469
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9471
if test "x$supports_anon_versioning" = xyes; then
9472
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9473
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9474
echo "local: *; };" >> $output_objdir/$libname.ver~
9475
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9478
case $cc_basename in
9479
xlf* | bgf* | bgxlf* | mpixlf*)
9480
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9481
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9482
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9483
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9484
if test "x$supports_anon_versioning" = xyes; then
9485
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9486
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9487
echo "local: *; };" >> $output_objdir/$libname.ver~
9488
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9497
netbsd* | netbsdelf*-gnu)
9498
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9499
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9502
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9503
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9508
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9512
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9513
*** create shared libraries on Solaris systems. Therefore, libtool
9514
*** is disabling shared libraries support. We urge you to upgrade GNU
9515
*** binutils to release 2.9.1 or newer. Another option is to modify
9516
*** your PATH or compiler configuration so that the native linker is
9517
*** used, and then restart.
9520
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9521
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9522
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9528
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9529
case `$LD -v 2>&1` in
9530
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9534
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9535
*** reliably create shared libraries on SCO systems. Therefore, libtool
9536
*** is disabling shared libraries support. We urge you to upgrade GNU
9537
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9538
*** your PATH or compiler configuration so that the native linker is
9539
*** used, and then restart.
9544
# For security reasons, it is highly recommended that you always
9545
# use absolute paths for naming shared libraries, and exclude the
9546
# DT_RUNPATH tag from executables and libraries. But doing so
9547
# requires that you compile everything twice, which is a pain.
9548
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9549
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9550
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9551
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9560
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9563
hardcode_shlibpath_var=no
9567
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9568
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9569
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9576
if test "$ld_shlibs" = no; then
9578
hardcode_libdir_flag_spec=
9579
export_dynamic_flag_spec=
9580
whole_archive_flag_spec=
9583
# PORTME fill in a description of your system's linker (not GNU ld)
9586
allow_undefined_flag=unsupported
9587
always_export_symbols=yes
9588
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'
9589
# Note: this linker hardcodes the directories in LIBPATH if there
9590
# are no directories specified by -L.
9591
hardcode_minus_L=yes
9592
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9593
# Neither direct hardcoding nor static linking is supported with a
9595
hardcode_direct=unsupported
9600
if test "$host_cpu" = ia64; then
9601
# On IA64, the linker does run time linking by default, so we don't
9602
# have to do anything special.
9603
aix_use_runtimelinking=no
9604
exp_sym_flag='-Bexport'
9607
# If we're using GNU nm, then we don't want the "-C" option.
9608
# -C means demangle to AIX nm, but means don't demangle with GNU nm
9609
# Also, AIX nm treats weak defined symbols like other global
9610
# defined symbols, whereas GNU nm marks them as "W".
9611
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9612
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9614
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'
9616
aix_use_runtimelinking=no
9618
# Test if we are trying to use run time linking or normal
9619
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9620
# need to do runtime linking.
9621
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9622
for ld_flag in $LDFLAGS; do
9623
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9624
aix_use_runtimelinking=yes
9631
exp_sym_flag='-bexport'
9632
no_entry_flag='-bnoentry'
9635
# When large executables or shared objects are built, AIX ld can
9636
# have problems creating the table of contents. If linking a library
9637
# or program results in "error TOC overflow" add -mminimal-toc to
9638
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9639
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9643
hardcode_direct_absolute=yes
9644
hardcode_libdir_separator=':'
9645
link_all_deplibs=yes
9646
file_list_spec='${wl}-f,'
9648
if test "$GCC" = yes; then
9649
case $host_os in aix4.[012]|aix4.[012].*)
9650
# We only want to do this on AIX 4.2 and lower, the check
9651
# below for broken collect2 doesn't work under 4.3+
9652
collect2name=`${CC} -print-prog-name=collect2`
9653
if test -f "$collect2name" &&
9654
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9656
# We have reworked collect2
9659
# We have old collect2
9660
hardcode_direct=unsupported
9661
# It fails to find uninstalled libraries when the uninstalled
9662
# path is not listed in the libpath. Setting hardcode_minus_L
9663
# to unsupported forces relinking
9664
hardcode_minus_L=yes
9665
hardcode_libdir_flag_spec='-L$libdir'
9666
hardcode_libdir_separator=
9670
shared_flag='-shared'
9671
if test "$aix_use_runtimelinking" = yes; then
9672
shared_flag="$shared_flag "'${wl}-G'
9677
if test "$host_cpu" = ia64; then
9678
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9679
# chokes on -Wl,-G. The following line is correct:
9682
if test "$aix_use_runtimelinking" = yes; then
9683
shared_flag='${wl}-G'
9685
shared_flag='${wl}-bM:SRE'
9690
export_dynamic_flag_spec='${wl}-bexpall'
9691
# It seems that -bexpall does not export symbols beginning with
9692
# underscore (_), so it is better to generate a list of symbols to export.
9693
always_export_symbols=yes
9694
if test "$aix_use_runtimelinking" = yes; then
9695
# Warning - without using the other runtime loading flags (-brtl),
9696
# -berok will link without error, but may produce a broken library.
9697
allow_undefined_flag='-berok'
9698
# Determine the default libpath from the value encoded in an
9700
if test "${lt_cv_aix_libpath+set}" = set; then
9701
aix_libpath=$lt_cv_aix_libpath
9703
if ${lt_cv_aix_libpath_+:} false; then :
9704
$as_echo_n "(cached) " >&6
9706
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9707
/* end confdefs.h. */
9717
if ac_fn_c_try_link "$LINENO"; then :
9719
lt_aix_libpath_sed='
9720
/Import File Strings/,/^$/ {
9722
s/^0 *\([^ ]*\) *$/\1/
9726
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9727
# Check for a 64-bit object if we didn't find anything.
9728
if test -z "$lt_cv_aix_libpath_"; then
9729
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9732
rm -f core conftest.err conftest.$ac_objext \
9733
conftest$ac_exeext conftest.$ac_ext
9734
if test -z "$lt_cv_aix_libpath_"; then
9735
lt_cv_aix_libpath_="/usr/lib:/lib"
9740
aix_libpath=$lt_cv_aix_libpath_
9743
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9744
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9746
if test "$host_cpu" = ia64; then
9747
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9748
allow_undefined_flag="-z nodefs"
9749
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"
9751
# Determine the default libpath from the value encoded in an
9753
if test "${lt_cv_aix_libpath+set}" = set; then
9754
aix_libpath=$lt_cv_aix_libpath
9756
if ${lt_cv_aix_libpath_+:} false; then :
9757
$as_echo_n "(cached) " >&6
9759
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9760
/* end confdefs.h. */
9770
if ac_fn_c_try_link "$LINENO"; then :
9772
lt_aix_libpath_sed='
9773
/Import File Strings/,/^$/ {
9775
s/^0 *\([^ ]*\) *$/\1/
9779
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9780
# Check for a 64-bit object if we didn't find anything.
9781
if test -z "$lt_cv_aix_libpath_"; then
9782
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9785
rm -f core conftest.err conftest.$ac_objext \
9786
conftest$ac_exeext conftest.$ac_ext
9787
if test -z "$lt_cv_aix_libpath_"; then
9788
lt_cv_aix_libpath_="/usr/lib:/lib"
9793
aix_libpath=$lt_cv_aix_libpath_
9796
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9797
# Warning - without using the other run time loading flags,
9798
# -berok will link without error, but may produce a broken library.
9799
no_undefined_flag=' ${wl}-bernotok'
9800
allow_undefined_flag=' ${wl}-berok'
9801
if test "$with_gnu_ld" = yes; then
9802
# We only use this code for GNU lds that support --whole-archive.
9803
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9805
# Exported symbols can be pulled into shared objects from archives
9806
whole_archive_flag_spec='$convenience'
9808
archive_cmds_need_lc=yes
9809
# This is similar to how AIX traditionally builds its shared libraries.
9810
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'
9818
# see comment about AmigaOS4 .so support
9819
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9820
archive_expsym_cmds=''
9823
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)'
9824
hardcode_libdir_flag_spec='-L$libdir'
9825
hardcode_minus_L=yes
9831
export_dynamic_flag_spec=-rdynamic
9834
cygwin* | mingw* | pw32* | cegcc*)
9835
# When not using gcc, we currently assume that we are using
9836
# Microsoft Visual C++.
9837
# hardcode_libdir_flag_spec is actually meaningless, as there is
9838
# no search path for DLLs.
9839
case $cc_basename in
9842
hardcode_libdir_flag_spec=' '
9843
allow_undefined_flag=unsupported
9844
always_export_symbols=yes
9846
# Tell ltmain to make .lib files, not .a files.
9848
# Tell ltmain to make .dll files, not .so files.
9850
# FIXME: Setting linknames here is a bad hack.
9851
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9852
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9853
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9855
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9857
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9859
# The linker will not automatically build a static lib if we build a DLL.
9860
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9861
enable_shared_with_static_runtimes=yes
9862
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9863
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9865
old_postinstall_cmds='chmod 644 $oldlib'
9866
postlink_cmds='lt_outputfile="@OUTPUT@"~
9867
lt_tool_outputfile="@TOOL_OUTPUT@"~
9868
case $lt_outputfile in
9871
lt_outputfile="$lt_outputfile.exe"
9872
lt_tool_outputfile="$lt_tool_outputfile.exe"
9875
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9876
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9877
$RM "$lt_outputfile.manifest";
9881
# Assume MSVC wrapper
9882
hardcode_libdir_flag_spec=' '
9883
allow_undefined_flag=unsupported
9884
# Tell ltmain to make .lib files, not .a files.
9886
# Tell ltmain to make .dll files, not .so files.
9888
# FIXME: Setting linknames here is a bad hack.
9889
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9890
# The linker will automatically build a .lib file if we build a DLL.
9891
old_archive_from_new_cmds='true'
9892
# FIXME: Should let the user specify the lib program.
9893
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9894
enable_shared_with_static_runtimes=yes
9899
darwin* | rhapsody*)
9902
archive_cmds_need_lc=no
9904
hardcode_automatic=yes
9905
hardcode_shlibpath_var=unsupported
9906
if test "$lt_cv_ld_force_load" = "yes"; then
9907
whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9910
whole_archive_flag_spec=''
9912
link_all_deplibs=yes
9913
allow_undefined_flag="$_lt_dar_allow_undefined"
9914
case $cc_basename in
9915
ifort*) _lt_dar_can_shared=yes ;;
9916
*) _lt_dar_can_shared=$GCC ;;
9918
if test "$_lt_dar_can_shared" = "yes"; then
9919
output_verbose_link_cmd=func_echo_all
9920
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9921
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9922
archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9923
module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9932
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9933
hardcode_libdir_flag_spec='-L$libdir'
9934
hardcode_shlibpath_var=no
9937
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9938
# support. Future versions do this automatically, but an explicit c++rt0.o
9939
# does not break anything, and helps significantly (at the cost of a little
9942
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9943
hardcode_libdir_flag_spec='-R$libdir'
9945
hardcode_shlibpath_var=no
9948
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9950
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9952
hardcode_minus_L=yes
9953
hardcode_shlibpath_var=no
9956
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9957
freebsd* | dragonfly*)
9958
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9959
hardcode_libdir_flag_spec='-R$libdir'
9961
hardcode_shlibpath_var=no
9965
if test "$GCC" = yes; then
9966
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9968
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'
9970
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9971
hardcode_libdir_separator=:
9974
# hardcode_minus_L: Not really in the search PATH,
9975
# but as the default location of the library.
9976
hardcode_minus_L=yes
9977
export_dynamic_flag_spec='${wl}-E'
9981
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9982
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9984
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9986
if test "$with_gnu_ld" = no; then
9987
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9988
hardcode_libdir_separator=:
9990
hardcode_direct_absolute=yes
9991
export_dynamic_flag_spec='${wl}-E'
9992
# hardcode_minus_L: Not really in the search PATH,
9993
# but as the default location of the library.
9994
hardcode_minus_L=yes
9999
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10002
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10005
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10008
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10014
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10017
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10021
# Older versions of the 11.00 compiler do not understand -b yet
10022
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10023
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10024
$as_echo_n "checking if $CC understands -b... " >&6; }
10025
if ${lt_cv_prog_compiler__b+:} false; then :
10026
$as_echo_n "(cached) " >&6
10028
lt_cv_prog_compiler__b=no
10029
save_LDFLAGS="$LDFLAGS"
10030
LDFLAGS="$LDFLAGS -b"
10031
echo "$lt_simple_link_test_code" > conftest.$ac_ext
10032
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10033
# The linker can only warn and ignore the option if not recognized
10034
# So say no if there are warnings
10035
if test -s conftest.err; then
10036
# Append any errors to the config.log.
10037
cat conftest.err 1>&5
10038
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10039
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10040
if diff conftest.exp conftest.er2 >/dev/null; then
10041
lt_cv_prog_compiler__b=yes
10044
lt_cv_prog_compiler__b=yes
10048
LDFLAGS="$save_LDFLAGS"
10051
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10052
$as_echo "$lt_cv_prog_compiler__b" >&6; }
10054
if test x"$lt_cv_prog_compiler__b" = xyes; then
10055
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10057
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10063
if test "$with_gnu_ld" = no; then
10064
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10065
hardcode_libdir_separator=:
10070
hardcode_shlibpath_var=no
10073
hardcode_direct=yes
10074
hardcode_direct_absolute=yes
10075
export_dynamic_flag_spec='${wl}-E'
10077
# hardcode_minus_L: Not really in the search PATH,
10078
# but as the default location of the library.
10079
hardcode_minus_L=yes
10085
irix5* | irix6* | nonstopux*)
10086
if test "$GCC" = yes; then
10087
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10088
# Try to use the -exported_symbol ld option, if it does not
10089
# work, assume that -exports_file does not work either and
10090
# implicitly export all symbols.
10091
# This should be the same for all languages, so no per-tag cache variable.
10092
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10093
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10094
if ${lt_cv_irix_exported_symbol+:} false; then :
10095
$as_echo_n "(cached) " >&6
10097
save_LDFLAGS="$LDFLAGS"
10098
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10099
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10100
/* end confdefs.h. */
10101
int foo (void) { return 0; }
10103
if ac_fn_c_try_link "$LINENO"; then :
10104
lt_cv_irix_exported_symbol=yes
10106
lt_cv_irix_exported_symbol=no
10108
rm -f core conftest.err conftest.$ac_objext \
10109
conftest$ac_exeext conftest.$ac_ext
10110
LDFLAGS="$save_LDFLAGS"
10112
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10113
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10114
if test "$lt_cv_irix_exported_symbol" = yes; then
10115
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10118
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10119
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10121
archive_cmds_need_lc='no'
10122
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10123
hardcode_libdir_separator=:
10125
link_all_deplibs=yes
10128
netbsd* | netbsdelf*-gnu)
10129
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10130
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10132
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10134
hardcode_libdir_flag_spec='-R$libdir'
10135
hardcode_direct=yes
10136
hardcode_shlibpath_var=no
10140
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10141
hardcode_direct=yes
10142
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10143
hardcode_libdir_separator=:
10144
hardcode_shlibpath_var=no
10151
if test -f /usr/libexec/ld.so; then
10152
hardcode_direct=yes
10153
hardcode_shlibpath_var=no
10154
hardcode_direct_absolute=yes
10155
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10156
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10157
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10158
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10159
export_dynamic_flag_spec='${wl}-E'
10162
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10163
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10164
hardcode_libdir_flag_spec='-R$libdir'
10167
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10168
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10178
hardcode_libdir_flag_spec='-L$libdir'
10179
hardcode_minus_L=yes
10180
allow_undefined_flag=unsupported
10181
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'
10182
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10186
if test "$GCC" = yes; then
10187
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10188
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10190
allow_undefined_flag=' -expect_unresolved \*'
10191
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10193
archive_cmds_need_lc='no'
10194
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10195
hardcode_libdir_separator=:
10198
osf4* | osf5*) # as osf3* with the addition of -msym flag
10199
if test "$GCC" = yes; then
10200
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10201
archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10202
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10204
allow_undefined_flag=' -expect_unresolved \*'
10205
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10206
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10207
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10209
# Both c and cxx compiler support -rpath directly
10210
hardcode_libdir_flag_spec='-rpath $libdir'
10212
archive_cmds_need_lc='no'
10213
hardcode_libdir_separator=:
10217
no_undefined_flag=' -z defs'
10218
if test "$GCC" = yes; then
10220
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10221
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10222
$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10224
case `$CC -V 2>&1` in
10227
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10228
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10229
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10233
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10234
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10235
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10239
hardcode_libdir_flag_spec='-R$libdir'
10240
hardcode_shlibpath_var=no
10242
solaris2.[0-5] | solaris2.[0-5].*) ;;
10244
# The compiler driver will combine and reorder linker options,
10245
# but understands `-z linker_flag'. GCC discards it without `$wl',
10246
# but is careful enough not to reorder.
10247
# Supported since Solaris 2.6 (maybe 2.5.1?)
10248
if test "$GCC" = yes; then
10249
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10251
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10255
link_all_deplibs=yes
10259
if test "x$host_vendor" = xsequent; then
10260
# Use $CC to link under sequent, because it throws in some extra .o
10261
# files that make .init and .fini sections work.
10262
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10264
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10266
hardcode_libdir_flag_spec='-L$libdir'
10267
hardcode_direct=yes
10268
hardcode_minus_L=yes
10269
hardcode_shlibpath_var=no
10273
case $host_vendor in
10275
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10276
hardcode_direct=yes # is this really true???
10279
## LD is ld it makes a PLAMLIB
10280
## CC just makes a GrossModule.
10281
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10282
reload_cmds='$CC -r -o $output$reload_objs'
10286
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10287
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10290
runpath_var='LD_RUN_PATH'
10291
hardcode_shlibpath_var=no
10295
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10296
hardcode_shlibpath_var=no
10297
export_dynamic_flag_spec='-Bexport'
10301
if test -d /usr/nec; then
10302
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10303
hardcode_shlibpath_var=no
10304
runpath_var=LD_RUN_PATH
10305
hardcode_runpath_var=yes
10310
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10311
no_undefined_flag='${wl}-z,text'
10312
archive_cmds_need_lc=no
10313
hardcode_shlibpath_var=no
10314
runpath_var='LD_RUN_PATH'
10316
if test "$GCC" = yes; then
10317
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10318
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10320
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10321
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10325
sysv5* | sco3.2v5* | sco5v6*)
10326
# Note: We can NOT use -z defs as we might desire, because we do not
10327
# link with -lc, and that would cause any symbols used from libc to
10328
# always be unresolved, which means just about no library would
10329
# ever link correctly. If we're not using GNU ld we use -z text
10330
# though, which does catch some bad symbols but isn't as heavy-handed
10332
no_undefined_flag='${wl}-z,text'
10333
allow_undefined_flag='${wl}-z,nodefs'
10334
archive_cmds_need_lc=no
10335
hardcode_shlibpath_var=no
10336
hardcode_libdir_flag_spec='${wl}-R,$libdir'
10337
hardcode_libdir_separator=':'
10338
link_all_deplibs=yes
10339
export_dynamic_flag_spec='${wl}-Bexport'
10340
runpath_var='LD_RUN_PATH'
10342
if test "$GCC" = yes; then
10343
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10344
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10346
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10347
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10352
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10353
hardcode_libdir_flag_spec='-L$libdir'
10354
hardcode_shlibpath_var=no
10362
if test x$host_vendor = xsni; then
10364
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10365
export_dynamic_flag_spec='${wl}-Blargedynsym'
10371
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10372
$as_echo "$ld_shlibs" >&6; }
10373
test "$ld_shlibs" = no && can_build_shared=no
10375
with_gnu_ld=$with_gnu_ld
10392
# Do we need to explicitly link libc?
10394
case "x$archive_cmds_need_lc" in
10396
# Assume -lc should be added
10397
archive_cmds_need_lc=yes
10399
if test "$enable_shared" = yes && test "$GCC" = yes; then
10400
case $archive_cmds in
10402
# FIXME: we may have to deal with multi-command sequences.
10405
# Test whether the compiler implicitly links with -lc since on some
10406
# systems, -lgcc has to come before -lc. If gcc already passes -lc
10407
# to ld, don't add -lc before -lgcc.
10408
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10409
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10410
if ${lt_cv_archive_cmds_need_lc+:} false; then :
10411
$as_echo_n "(cached) " >&6
10414
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10416
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10417
(eval $ac_compile) 2>&5
10419
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10420
test $ac_status = 0; } 2>conftest.err; then
10423
libobjs=conftest.$ac_objext
10425
wl=$lt_prog_compiler_wl
10426
pic_flag=$lt_prog_compiler_pic
10432
lt_save_allow_undefined_flag=$allow_undefined_flag
10433
allow_undefined_flag=
10434
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10435
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10437
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10438
test $ac_status = 0; }
10440
lt_cv_archive_cmds_need_lc=no
10442
lt_cv_archive_cmds_need_lc=yes
10444
allow_undefined_flag=$lt_save_allow_undefined_flag
10446
cat conftest.err 1>&5
10451
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10452
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10453
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10611
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10612
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10614
if test "$GCC" = yes; then
10616
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10617
*) lt_awk_arg="/^libraries:/" ;;
10620
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10621
*) lt_sed_strip_eq="s,=/,/,g" ;;
10623
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10624
case $lt_search_path_spec in
10626
# if the path contains ";" then we assume it to be the separator
10627
# otherwise default to the standard path separator (i.e. ":") - it is
10628
# assumed that no part of a normal pathname contains ";" but that should
10629
# okay in the real world where ";" in dirpaths is itself problematic.
10630
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10633
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10636
# Ok, now we have the path, separated by spaces, we can step through it
10637
# and add multilib dir if necessary.
10638
lt_tmp_lt_search_path_spec=
10639
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10640
for lt_sys_path in $lt_search_path_spec; do
10641
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10642
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10644
test -d "$lt_sys_path" && \
10645
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10648
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10649
BEGIN {RS=" "; FS="/|\n";} {
10652
for (lt_i = NF; lt_i > 0; lt_i--) {
10653
if ($lt_i != "" && $lt_i != ".") {
10654
if ($lt_i == "..") {
10657
if (lt_count == 0) {
10658
lt_foo="/" $lt_i lt_foo;
10665
if (lt_foo != "") { lt_freq[lt_foo]++; }
10666
if (lt_freq[lt_foo] == 1) { print lt_foo; }
10668
# AWK program above erroneously prepends '/' to C:/dos/paths
10671
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10672
$SED 's,/\([A-Za-z]:\),\1,g'` ;;
10674
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10676
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10678
library_names_spec=
10679
libname_spec='lib$name'
10683
postuninstall_cmds=
10687
shlibpath_overrides_runpath=unknown
10689
dynamic_linker="$host_os ld.so"
10690
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10691
need_lib_prefix=unknown
10692
hardcode_into_libs=no
10694
# when you set need_version to no, make sure it does not cause -set_version
10695
# flags to be left without arguments
10696
need_version=unknown
10700
version_type=linux # correct to gnu/linux during the next big refactor
10701
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10702
shlibpath_var=LIBPATH
10704
# AIX 3 has no versioning support, so we append a major version to the name.
10705
soname_spec='${libname}${release}${shared_ext}$major'
10709
version_type=linux # correct to gnu/linux during the next big refactor
10712
hardcode_into_libs=yes
10713
if test "$host_cpu" = ia64; then
10714
# AIX 5 supports IA64
10715
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10716
shlibpath_var=LD_LIBRARY_PATH
10718
# With GCC up to 2.95.x, collect2 would create an import file
10719
# for dependence libraries. The import file would start with
10720
# the line `#! .'. This would cause the generated library to
10721
# depend on `.', always an invalid library. This was fixed in
10722
# development snapshots of GCC prior to 3.0.
10724
aix4 | aix4.[01] | aix4.[01].*)
10725
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10727
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10730
can_build_shared=no
10734
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10735
# soname into executable. Probably we can add versioning support to
10736
# collect2, so additional links can be useful in future.
10737
if test "$aix_use_runtimelinking" = yes; then
10738
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
10739
# instead of lib<name>.a to let people know that these are not
10740
# typical AIX shared libraries.
10741
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10743
# We preserve .a as extension for shared libraries through AIX4.2
10744
# and later when we are not doing run time linking.
10745
library_names_spec='${libname}${release}.a $libname.a'
10746
soname_spec='${libname}${release}${shared_ext}$major'
10748
shlibpath_var=LIBPATH
10755
# Since July 2007 AmigaOS4 officially supports .so libraries.
10756
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10757
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10760
library_names_spec='$libname.ixlibrary $libname.a'
10761
# Create ${libname}_ixlibrary.a entries in /sys/libs.
10762
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10768
library_names_spec='${libname}${shared_ext}'
10769
dynamic_linker="$host_os ld.so"
10770
shlibpath_var=LIBRARY_PATH
10774
version_type=linux # correct to gnu/linux during the next big refactor
10776
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10777
soname_spec='${libname}${release}${shared_ext}$major'
10778
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10779
shlibpath_var=LD_LIBRARY_PATH
10780
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10781
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10782
# the default ld.so.conf also contains /usr/contrib/lib and
10783
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10784
# libtool to hard-code these into programs
10787
cygwin* | mingw* | pw32* | cegcc*)
10788
version_type=windows
10793
case $GCC,$cc_basename in
10796
library_names_spec='$libname.dll.a'
10797
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10798
postinstall_cmds='base_file=`basename \${file}`~
10799
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10800
dldir=$destdir/`dirname \$dlpath`~
10801
test -d \$dldir || mkdir -p \$dldir~
10802
$install_prog $dir/$dlname \$dldir/$dlname~
10803
chmod a+x \$dldir/$dlname~
10804
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10805
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10807
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10808
dlpath=$dir/\$dldll~
10810
shlibpath_overrides_runpath=yes
10814
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10815
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10817
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10820
# MinGW DLLs use traditional 'lib' prefix
10821
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10824
# pw32 DLLs use 'pw' prefix rather than 'lib'
10825
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10828
dynamic_linker='Win32 ld.exe'
10833
libname_spec='$name'
10834
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10835
library_names_spec='${libname}.dll.lib'
10839
sys_lib_search_path_spec=
10842
for lt_path in $LIB
10845
# Let DOS variable expansion print the short 8.3 style file name.
10846
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10847
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10850
# Convert to MSYS style.
10851
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10854
# Convert to unix form, then to dos form, then back to unix form
10855
# but this time dos style (no spaces!) so that the unix form looks
10856
# like /cygdrive/c/PROGRA~1:/cygdr...
10857
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10858
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10859
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10862
sys_lib_search_path_spec="$LIB"
10863
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10864
# It is most probably a Windows format PATH.
10865
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10867
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10869
# FIXME: find the short name or the path components, as spaces are
10870
# common. (e.g. "Program Files" -> "PROGRA~1")
10874
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10875
postinstall_cmds='base_file=`basename \${file}`~
10876
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10877
dldir=$destdir/`dirname \$dlpath`~
10878
test -d \$dldir || mkdir -p \$dldir~
10879
$install_prog $dir/$dlname \$dldir/$dlname'
10880
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10881
dlpath=$dir/\$dldll~
10883
shlibpath_overrides_runpath=yes
10884
dynamic_linker='Win32 link.exe'
10888
# Assume MSVC wrapper
10889
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10890
dynamic_linker='Win32 ld.exe'
10893
# FIXME: first we should search . and the directory the executable is in
10897
darwin* | rhapsody*)
10898
dynamic_linker="$host_os dyld"
10899
version_type=darwin
10902
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10903
soname_spec='${libname}${release}${major}$shared_ext'
10904
shlibpath_overrides_runpath=yes
10905
shlibpath_var=DYLD_LIBRARY_PATH
10906
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10908
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10909
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10913
version_type=linux # correct to gnu/linux during the next big refactor
10916
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10917
soname_spec='${libname}${release}${shared_ext}$major'
10918
shlibpath_var=LD_LIBRARY_PATH
10921
freebsd* | dragonfly*)
10922
# DragonFly does not have aout. When/if they implement a new
10923
# versioning mechanism, adjust this.
10924
if test -x /usr/bin/objformat; then
10925
objformat=`/usr/bin/objformat`
10928
freebsd[23].*) objformat=aout ;;
10929
*) objformat=elf ;;
10932
version_type=freebsd-$objformat
10933
case $version_type in
10935
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10940
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10944
shlibpath_var=LD_LIBRARY_PATH
10947
shlibpath_overrides_runpath=yes
10949
freebsd3.[01]* | freebsdelf3.[01]*)
10950
shlibpath_overrides_runpath=yes
10951
hardcode_into_libs=yes
10953
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10954
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10955
shlibpath_overrides_runpath=no
10956
hardcode_into_libs=yes
10958
*) # from 4.6 on, and DragonFly
10959
shlibpath_overrides_runpath=yes
10960
hardcode_into_libs=yes
10966
version_type=linux # correct to gnu/linux during the next big refactor
10969
dynamic_linker="$host_os runtime_loader"
10970
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10971
soname_spec='${libname}${release}${shared_ext}$major'
10972
shlibpath_var=LIBRARY_PATH
10973
shlibpath_overrides_runpath=yes
10974
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10975
hardcode_into_libs=yes
10978
hpux9* | hpux10* | hpux11*)
10979
# Give a soname corresponding to the major version so that dld.sl refuses to
10980
# link against other versions.
10987
hardcode_into_libs=yes
10988
dynamic_linker="$host_os dld.so"
10989
shlibpath_var=LD_LIBRARY_PATH
10990
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10991
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992
soname_spec='${libname}${release}${shared_ext}$major'
10993
if test "X$HPUX_IA64_MODE" = X32; then
10994
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10996
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10998
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11002
hardcode_into_libs=yes
11003
dynamic_linker="$host_os dld.sl"
11004
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11005
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11006
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11007
soname_spec='${libname}${release}${shared_ext}$major'
11008
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11009
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11013
dynamic_linker="$host_os dld.sl"
11014
shlibpath_var=SHLIB_PATH
11015
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11016
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11017
soname_spec='${libname}${release}${shared_ext}$major'
11020
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11021
postinstall_cmds='chmod 555 $lib'
11022
# or fails outright, so override atomically:
11023
install_override_mode=555
11027
version_type=linux # correct to gnu/linux during the next big refactor
11030
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11031
soname_spec='${libname}${release}${shared_ext}$major'
11032
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11033
shlibpath_var=LD_LIBRARY_PATH
11034
shlibpath_overrides_runpath=no
11035
hardcode_into_libs=yes
11038
irix5* | irix6* | nonstopux*)
11040
nonstopux*) version_type=nonstopux ;;
11042
if test "$lt_cv_prog_gnu_ld" = yes; then
11043
version_type=linux # correct to gnu/linux during the next big refactor
11050
soname_spec='${libname}${release}${shared_ext}$major'
11051
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11053
irix5* | nonstopux*)
11054
libsuff= shlibsuff=
11057
case $LD in # libtool.m4 will add one of these switches to LD
11058
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11059
libsuff= shlibsuff= libmagic=32-bit;;
11060
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11061
libsuff=32 shlibsuff=N32 libmagic=N32;;
11062
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11063
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11064
*) libsuff= shlibsuff= libmagic=never-match;;
11068
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11069
shlibpath_overrides_runpath=no
11070
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11071
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11072
hardcode_into_libs=yes
11075
# No shared lib support for Linux oldld, aout, or coff.
11076
linux*oldld* | linux*aout* | linux*coff*)
11080
# This must be glibc/ELF.
11081
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11082
version_type=linux # correct to gnu/linux during the next big refactor
11085
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11086
soname_spec='${libname}${release}${shared_ext}$major'
11087
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11088
shlibpath_var=LD_LIBRARY_PATH
11089
shlibpath_overrides_runpath=no
11091
# Some binutils ld are patched to set DT_RUNPATH
11092
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11093
$as_echo_n "(cached) " >&6
11095
lt_cv_shlibpath_overrides_runpath=no
11096
save_LDFLAGS=$LDFLAGS
11097
save_libdir=$libdir
11098
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11099
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11100
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11101
/* end confdefs.h. */
11111
if ac_fn_c_try_link "$LINENO"; then :
11112
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11113
lt_cv_shlibpath_overrides_runpath=yes
11116
rm -f core conftest.err conftest.$ac_objext \
11117
conftest$ac_exeext conftest.$ac_ext
11118
LDFLAGS=$save_LDFLAGS
11119
libdir=$save_libdir
11123
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11125
# This implies no fast_install, which is unacceptable.
11126
# Some rework will be needed to allow for fast_install
11127
# before this can be enabled.
11128
hardcode_into_libs=yes
11130
# Append ld.so.conf contents to the search path
11131
if test -f /etc/ld.so.conf; then
11132
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11133
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11136
# We used to test for /lib/ld.so.1 and disable shared libraries on
11137
# powerpc, because MkLinux only supported shared libraries with the
11138
# GNU dynamic linker. Since this was broken with cross compilers,
11139
# most powerpc-linux boxes support dynamic linking these days and
11140
# people can always --disable-shared, the test was removed, and we
11141
# assume the GNU/Linux dynamic linker is in use.
11142
dynamic_linker='GNU/Linux ld.so'
11149
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11150
soname_spec='${libname}${release}${shared_ext}$major'
11151
shlibpath_var=LD_LIBRARY_PATH
11152
shlibpath_overrides_runpath=no
11153
hardcode_into_libs=yes
11154
dynamic_linker='NetBSD ld.elf_so'
11161
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11162
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11163
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11164
dynamic_linker='NetBSD (a.out) ld.so'
11166
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11167
soname_spec='${libname}${release}${shared_ext}$major'
11168
dynamic_linker='NetBSD ld.elf_so'
11170
shlibpath_var=LD_LIBRARY_PATH
11171
shlibpath_overrides_runpath=yes
11172
hardcode_into_libs=yes
11176
version_type=linux # correct to gnu/linux during the next big refactor
11177
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11178
shlibpath_var=LD_LIBRARY_PATH
11179
shlibpath_overrides_runpath=yes
11186
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11187
soname_spec='${libname}${release}${shared_ext}$major'
11188
shlibpath_var=LD_LIBRARY_PATH
11189
shlibpath_overrides_runpath=no
11190
hardcode_into_libs=yes
11191
dynamic_linker='ldqnx.so'
11196
sys_lib_dlsearch_path_spec="/usr/lib"
11198
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11200
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11201
*) need_version=no ;;
11203
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11204
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11205
shlibpath_var=LD_LIBRARY_PATH
11206
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11208
openbsd2.[89] | openbsd2.[89].*)
11209
shlibpath_overrides_runpath=no
11212
shlibpath_overrides_runpath=yes
11216
shlibpath_overrides_runpath=yes
11221
libname_spec='$name'
11224
library_names_spec='$libname${shared_ext} $libname.a'
11225
dynamic_linker='OS/2 ld.exe'
11226
shlibpath_var=LIBPATH
11229
osf3* | osf4* | osf5*)
11233
soname_spec='${libname}${release}${shared_ext}$major'
11234
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11235
shlibpath_var=LD_LIBRARY_PATH
11236
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11237
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11245
version_type=linux # correct to gnu/linux during the next big refactor
11248
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11249
soname_spec='${libname}${release}${shared_ext}$major'
11250
shlibpath_var=LD_LIBRARY_PATH
11251
shlibpath_overrides_runpath=yes
11252
hardcode_into_libs=yes
11253
# ldd complains unless libraries are executable
11254
postinstall_cmds='chmod +x $lib'
11259
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11260
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11261
shlibpath_var=LD_LIBRARY_PATH
11262
shlibpath_overrides_runpath=yes
11263
if test "$with_gnu_ld" = yes; then
11270
version_type=linux # correct to gnu/linux during the next big refactor
11271
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11272
soname_spec='${libname}${release}${shared_ext}$major'
11273
shlibpath_var=LD_LIBRARY_PATH
11274
case $host_vendor in
11276
shlibpath_overrides_runpath=no
11278
runpath_var=LD_RUN_PATH
11286
shlibpath_overrides_runpath=no
11287
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11293
if test -d /usr/nec ;then
11294
version_type=linux # correct to gnu/linux during the next big refactor
11295
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11296
soname_spec='$libname${shared_ext}.$major'
11297
shlibpath_var=LD_LIBRARY_PATH
11301
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11302
version_type=freebsd-elf
11305
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11306
soname_spec='${libname}${release}${shared_ext}$major'
11307
shlibpath_var=LD_LIBRARY_PATH
11308
shlibpath_overrides_runpath=yes
11309
hardcode_into_libs=yes
11310
if test "$with_gnu_ld" = yes; then
11311
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11313
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11316
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11320
sys_lib_dlsearch_path_spec='/usr/lib'
11324
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11325
version_type=linux # correct to gnu/linux during the next big refactor
11328
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11329
shlibpath_var=LD_LIBRARY_PATH
11330
shlibpath_overrides_runpath=no
11331
hardcode_into_libs=yes
11335
version_type=linux # correct to gnu/linux during the next big refactor
11336
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11337
soname_spec='${libname}${release}${shared_ext}$major'
11338
shlibpath_var=LD_LIBRARY_PATH
11345
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11346
$as_echo "$dynamic_linker" >&6; }
11347
test "$dynamic_linker" = no && can_build_shared=no
11349
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11350
if test "$GCC" = yes; then
11351
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11354
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11355
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11357
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11358
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11452
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11453
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11455
if test -n "$hardcode_libdir_flag_spec" ||
11456
test -n "$runpath_var" ||
11457
test "X$hardcode_automatic" = "Xyes" ; then
11459
# We can hardcode non-existent directories.
11460
if test "$hardcode_direct" != no &&
11461
# If the only mechanism to avoid hardcoding is shlibpath_var, we
11462
# have to relink, otherwise we might link with an installed library
11463
# when we should be linking with a yet-to-be-installed one
11464
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11465
test "$hardcode_minus_L" != no; then
11466
# Linking always hardcodes the temporary library directory.
11467
hardcode_action=relink
11469
# We can link without hardcoding, and we can hardcode nonexisting dirs.
11470
hardcode_action=immediate
11473
# We cannot hardcode anything, or else we can only hardcode existing
11475
hardcode_action=unsupported
11477
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11478
$as_echo "$hardcode_action" >&6; }
11480
if test "$hardcode_action" = relink ||
11481
test "$inherit_rpath" = yes; then
11482
# Fast installation is not supported
11483
enable_fast_install=no
11484
elif test "$shlibpath_overrides_runpath" = yes ||
11485
test "$enable_shared" = no; then
11486
# Fast installation is not necessary
11487
enable_fast_install=needless
11495
if test "x$enable_dlopen" != xyes; then
11496
enable_dlopen=unknown
11497
enable_dlopen_self=unknown
11498
enable_dlopen_self_static=unknown
11505
lt_cv_dlopen="load_add_on"
11507
lt_cv_dlopen_self=yes
11510
mingw* | pw32* | cegcc*)
11511
lt_cv_dlopen="LoadLibrary"
11516
lt_cv_dlopen="dlopen"
11521
# if libdl is installed we need to link against it
11522
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11523
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11524
if ${ac_cv_lib_dl_dlopen+:} false; then :
11525
$as_echo_n "(cached) " >&6
11527
ac_check_lib_save_LIBS=$LIBS
11529
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11530
/* end confdefs.h. */
11532
/* Override any GCC internal prototype to avoid an error.
11533
Use char because int might match the return type of a GCC
11534
builtin and then its argument prototype would still apply. */
11547
if ac_fn_c_try_link "$LINENO"; then :
11548
ac_cv_lib_dl_dlopen=yes
11550
ac_cv_lib_dl_dlopen=no
11552
rm -f core conftest.err conftest.$ac_objext \
11553
conftest$ac_exeext conftest.$ac_ext
11554
LIBS=$ac_check_lib_save_LIBS
11556
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11557
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11558
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11559
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11562
lt_cv_dlopen="dyld"
11564
lt_cv_dlopen_self=yes
11571
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11572
if test "x$ac_cv_func_shl_load" = xyes; then :
11573
lt_cv_dlopen="shl_load"
11575
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11576
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11577
if ${ac_cv_lib_dld_shl_load+:} false; then :
11578
$as_echo_n "(cached) " >&6
11580
ac_check_lib_save_LIBS=$LIBS
11582
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11583
/* end confdefs.h. */
11585
/* Override any GCC internal prototype to avoid an error.
11586
Use char because int might match the return type of a GCC
11587
builtin and then its argument prototype would still apply. */
11595
return shl_load ();
11600
if ac_fn_c_try_link "$LINENO"; then :
11601
ac_cv_lib_dld_shl_load=yes
11603
ac_cv_lib_dld_shl_load=no
11605
rm -f core conftest.err conftest.$ac_objext \
11606
conftest$ac_exeext conftest.$ac_ext
11607
LIBS=$ac_check_lib_save_LIBS
11609
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11610
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11611
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11612
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11614
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11615
if test "x$ac_cv_func_dlopen" = xyes; then :
11616
lt_cv_dlopen="dlopen"
11618
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11619
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11620
if ${ac_cv_lib_dl_dlopen+:} false; then :
11621
$as_echo_n "(cached) " >&6
11623
ac_check_lib_save_LIBS=$LIBS
11625
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11626
/* end confdefs.h. */
11628
/* Override any GCC internal prototype to avoid an error.
11629
Use char because int might match the return type of a GCC
11630
builtin and then its argument prototype would still apply. */
11643
if ac_fn_c_try_link "$LINENO"; then :
11644
ac_cv_lib_dl_dlopen=yes
11646
ac_cv_lib_dl_dlopen=no
11648
rm -f core conftest.err conftest.$ac_objext \
11649
conftest$ac_exeext conftest.$ac_ext
11650
LIBS=$ac_check_lib_save_LIBS
11652
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11653
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11654
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11655
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11657
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11658
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11659
if ${ac_cv_lib_svld_dlopen+:} false; then :
11660
$as_echo_n "(cached) " >&6
11662
ac_check_lib_save_LIBS=$LIBS
11663
LIBS="-lsvld $LIBS"
11664
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11665
/* end confdefs.h. */
11667
/* Override any GCC internal prototype to avoid an error.
11668
Use char because int might match the return type of a GCC
11669
builtin and then its argument prototype would still apply. */
11682
if ac_fn_c_try_link "$LINENO"; then :
11683
ac_cv_lib_svld_dlopen=yes
11685
ac_cv_lib_svld_dlopen=no
11687
rm -f core conftest.err conftest.$ac_objext \
11688
conftest$ac_exeext conftest.$ac_ext
11689
LIBS=$ac_check_lib_save_LIBS
11691
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11692
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11693
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11694
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11696
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11697
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11698
if ${ac_cv_lib_dld_dld_link+:} false; then :
11699
$as_echo_n "(cached) " >&6
11701
ac_check_lib_save_LIBS=$LIBS
11703
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11704
/* end confdefs.h. */
11706
/* Override any GCC internal prototype to avoid an error.
11707
Use char because int might match the return type of a GCC
11708
builtin and then its argument prototype would still apply. */
11716
return dld_link ();
11721
if ac_fn_c_try_link "$LINENO"; then :
11722
ac_cv_lib_dld_dld_link=yes
11724
ac_cv_lib_dld_dld_link=no
11726
rm -f core conftest.err conftest.$ac_objext \
11727
conftest$ac_exeext conftest.$ac_ext
11728
LIBS=$ac_check_lib_save_LIBS
11730
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11731
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11732
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11733
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11754
if test "x$lt_cv_dlopen" != xno; then
11760
case $lt_cv_dlopen in
11762
save_CPPFLAGS="$CPPFLAGS"
11763
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11765
save_LDFLAGS="$LDFLAGS"
11766
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11769
LIBS="$lt_cv_dlopen_libs $LIBS"
11771
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11772
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11773
if ${lt_cv_dlopen_self+:} false; then :
11774
$as_echo_n "(cached) " >&6
11776
if test "$cross_compiling" = yes; then :
11777
lt_cv_dlopen_self=cross
11779
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11780
lt_status=$lt_dlunknown
11781
cat > conftest.$ac_ext <<_LT_EOF
11782
#line $LINENO "configure"
11783
#include "confdefs.h"
11792
# define LT_DLGLOBAL RTLD_GLOBAL
11795
# define LT_DLGLOBAL DL_GLOBAL
11797
# define LT_DLGLOBAL 0
11801
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11802
find out it does not work in some platform. */
11803
#ifndef LT_DLLAZY_OR_NOW
11805
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11808
# define LT_DLLAZY_OR_NOW DL_LAZY
11811
# define LT_DLLAZY_OR_NOW RTLD_NOW
11814
# define LT_DLLAZY_OR_NOW DL_NOW
11816
# define LT_DLLAZY_OR_NOW 0
11823
/* When -fvisbility=hidden is used, assume the code has been annotated
11824
correspondingly for the symbols needed. */
11825
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11826
int fnord () __attribute__((visibility("default")));
11829
int fnord () { return 42; }
11832
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11833
int status = $lt_dlunknown;
11837
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11840
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11841
else puts (dlerror ());
11843
/* dlclose (self); */
11851
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11852
(eval $ac_link) 2>&5
11854
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11855
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11856
(./conftest; exit; ) >&5 2>/dev/null
11858
case x$lt_status in
11859
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11860
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11861
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11864
# compilation failed
11865
lt_cv_dlopen_self=no
11872
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11873
$as_echo "$lt_cv_dlopen_self" >&6; }
11875
if test "x$lt_cv_dlopen_self" = xyes; then
11876
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11877
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11878
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11879
if ${lt_cv_dlopen_self_static+:} false; then :
11880
$as_echo_n "(cached) " >&6
11882
if test "$cross_compiling" = yes; then :
11883
lt_cv_dlopen_self_static=cross
11885
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11886
lt_status=$lt_dlunknown
11887
cat > conftest.$ac_ext <<_LT_EOF
11888
#line $LINENO "configure"
11889
#include "confdefs.h"
11898
# define LT_DLGLOBAL RTLD_GLOBAL
11901
# define LT_DLGLOBAL DL_GLOBAL
11903
# define LT_DLGLOBAL 0
11907
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11908
find out it does not work in some platform. */
11909
#ifndef LT_DLLAZY_OR_NOW
11911
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11914
# define LT_DLLAZY_OR_NOW DL_LAZY
11917
# define LT_DLLAZY_OR_NOW RTLD_NOW
11920
# define LT_DLLAZY_OR_NOW DL_NOW
11922
# define LT_DLLAZY_OR_NOW 0
11929
/* When -fvisbility=hidden is used, assume the code has been annotated
11930
correspondingly for the symbols needed. */
11931
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11932
int fnord () __attribute__((visibility("default")));
11935
int fnord () { return 42; }
11938
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11939
int status = $lt_dlunknown;
11943
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11946
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11947
else puts (dlerror ());
11949
/* dlclose (self); */
11957
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11958
(eval $ac_link) 2>&5
11960
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11961
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11962
(./conftest; exit; ) >&5 2>/dev/null
11964
case x$lt_status in
11965
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11966
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11967
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11970
# compilation failed
11971
lt_cv_dlopen_self_static=no
11978
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11979
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11982
CPPFLAGS="$save_CPPFLAGS"
11983
LDFLAGS="$save_LDFLAGS"
11988
case $lt_cv_dlopen_self in
11989
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11990
*) enable_dlopen_self=unknown ;;
11993
case $lt_cv_dlopen_self_static in
11994
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11995
*) enable_dlopen_self_static=unknown ;;
12017
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12018
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12019
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12020
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12021
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12022
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12023
$as_echo "yes" >&6; }
12025
# FIXME - insert some real tests, host_os isn't really good enough
12028
if test -n "$STRIP" ; then
12029
striplib="$STRIP -x"
12030
old_striplib="$STRIP -S"
12031
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12032
$as_echo "yes" >&6; }
12034
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12035
$as_echo "no" >&6; }
12039
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040
$as_echo "no" >&6; }
12056
# Report which library types will actually be built
12057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12058
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12059
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12060
$as_echo "$can_build_shared" >&6; }
12062
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12063
$as_echo_n "checking whether to build shared libraries... " >&6; }
12064
test "$can_build_shared" = "no" && enable_shared=no
12066
# On AIX, shared libraries and static libraries use the same namespace, and
12067
# are all built from PIC.
12070
test "$enable_shared" = yes && enable_static=no
12071
if test -n "$RANLIB"; then
12072
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12073
postinstall_cmds='$RANLIB $lib'
12078
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12079
test "$enable_shared" = yes && enable_static=no
12083
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12084
$as_echo "$enable_shared" >&6; }
12086
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12087
$as_echo_n "checking whether to build static libraries... " >&6; }
12088
# Make sure either enable_shared or enable_static is yes.
12089
test "$enable_shared" = yes || enable_static=yes
12090
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12091
$as_echo "$enable_static" >&6; }
12098
ac_cpp='$CPP $CPPFLAGS'
12099
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12100
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12101
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12119
ac_config_commands="$ac_config_commands libtool"
12124
# Only expand once:
12128
if ${CONFIG_SHELL} ./libtool --features | grep "enable static" >/dev/null; then
12135
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12136
$as_echo_n "checking for ANSI C header files... " >&6; }
12137
if ${ac_cv_header_stdc+:} false; then :
12138
$as_echo_n "(cached) " >&6
12140
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12141
/* end confdefs.h. */
12142
#include <stdlib.h>
12143
#include <stdarg.h>
12144
#include <string.h>
12155
if ac_fn_c_try_compile "$LINENO"; then :
12156
ac_cv_header_stdc=yes
12158
ac_cv_header_stdc=no
12160
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12162
if test $ac_cv_header_stdc = yes; then
12163
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12164
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165
/* end confdefs.h. */
12166
#include <string.h>
12169
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12170
$EGREP "memchr" >/dev/null 2>&1; then :
12173
ac_cv_header_stdc=no
12179
if test $ac_cv_header_stdc = yes; then
12180
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12181
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182
/* end confdefs.h. */
12183
#include <stdlib.h>
12186
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12187
$EGREP "free" >/dev/null 2>&1; then :
12190
ac_cv_header_stdc=no
12196
if test $ac_cv_header_stdc = yes; then
12197
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12198
if test "$cross_compiling" = yes; then :
12201
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12202
/* end confdefs.h. */
12204
#include <stdlib.h>
12205
#if ((' ' & 0x0FF) == 0x020)
12206
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12207
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12209
# define ISLOWER(c) \
12210
(('a' <= (c) && (c) <= 'i') \
12211
|| ('j' <= (c) && (c) <= 'r') \
12212
|| ('s' <= (c) && (c) <= 'z'))
12213
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12216
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12221
for (i = 0; i < 256; i++)
12222
if (XOR (islower (i), ISLOWER (i))
12223
|| toupper (i) != TOUPPER (i))
12228
if ac_fn_c_try_run "$LINENO"; then :
12231
ac_cv_header_stdc=no
12233
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12234
conftest.$ac_objext conftest.beam conftest.$ac_ext
12239
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12240
$as_echo "$ac_cv_header_stdc" >&6; }
12241
if test $ac_cv_header_stdc = yes; then
12243
$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
12247
ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
12248
if test "x$ac_cv_header_unistd_h" = xyes; then :
12253
ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
12254
if test "x$ac_cv_header_string_h" = xyes; then :
12260
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12261
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12262
if ${ac_cv_c_const+:} false; then :
12263
$as_echo_n "(cached) " >&6
12265
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12266
/* end confdefs.h. */
12272
#ifndef __cplusplus
12273
/* Ultrix mips cc rejects this sort of thing. */
12274
typedef int charset[2];
12275
const charset cs = { 0, 0 };
12276
/* SunOS 4.1.1 cc rejects this. */
12277
char const *const *pcpcc;
12279
/* NEC SVR4.0.2 mips cc rejects this. */
12280
struct point {int x, y;};
12281
static struct point const zero = {0,0};
12282
/* AIX XL C 1.02.0.0 rejects this.
12283
It does not let you subtract one const X* pointer from another in
12284
an arm of an if-expression whose if-part is not a constant
12286
const char *g = "string";
12287
pcpcc = &g + (g ? g-g : 0);
12288
/* HPUX 7.0 cc rejects these. */
12290
ppc = (char**) pcpcc;
12291
pcpcc = (char const *const *) ppc;
12292
{ /* SCO 3.2v4 cc rejects this sort of thing. */
12295
char const *s = 0 ? (char *) 0 : (char const *) 0;
12300
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12301
int x[] = {25, 17};
12302
const int *foo = &x[0];
12305
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12306
typedef const int *iptr;
12310
{ /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12311
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12312
struct s { int j; const int *ap[3]; } bx;
12313
struct s *b = &bx; b->j = 5;
12315
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12316
const int foo = 10;
12317
if (!foo) return 0;
12319
return !cs[0] && !zero.x;
12326
if ac_fn_c_try_compile "$LINENO"; then :
12331
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12333
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12334
$as_echo "$ac_cv_c_const" >&6; }
12335
if test $ac_cv_c_const = no; then
12337
$as_echo "@%:@define const /**/" >>confdefs.h
12341
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12342
$as_echo_n "checking for inline... " >&6; }
12343
if ${ac_cv_c_inline+:} false; then :
12344
$as_echo_n "(cached) " >&6
12347
for ac_kw in inline __inline__ __inline; do
12348
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12349
/* end confdefs.h. */
12350
#ifndef __cplusplus
12352
static $ac_kw foo_t static_foo () {return 0; }
12353
$ac_kw foo_t foo () {return 0; }
12357
if ac_fn_c_try_compile "$LINENO"; then :
12358
ac_cv_c_inline=$ac_kw
12360
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12361
test "$ac_cv_c_inline" != no && break
12365
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12366
$as_echo "$ac_cv_c_inline" >&6; }
12368
case $ac_cv_c_inline in
12371
case $ac_cv_c_inline in
12373
*) ac_val=$ac_cv_c_inline;;
12375
cat >>confdefs.h <<_ACEOF
12376
#ifndef __cplusplus
12377
#define inline $ac_val
12383
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12384
if test "x$ac_cv_type_off_t" = xyes; then :
12388
cat >>confdefs.h <<_ACEOF
12389
@%:@define off_t long int
12394
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12395
if test "x$ac_cv_type_size_t" = xyes; then :
12399
cat >>confdefs.h <<_ACEOF
12400
@%:@define size_t unsigned int
12405
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12406
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12407
if ${ac_cv_c_bigendian+:} false; then :
12408
$as_echo_n "(cached) " >&6
12410
ac_cv_c_bigendian=unknown
12411
# See if we're dealing with a universal compiler.
12412
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12413
/* end confdefs.h. */
12414
#ifndef __APPLE_CC__
12415
not a universal capable compiler
12420
if ac_fn_c_try_compile "$LINENO"; then :
12422
# Check for potential -arch flags. It is not universal unless
12423
# there are at least two -arch flags with different values.
12426
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12427
if test -n "$ac_prev"; then
12429
i?86 | x86_64 | ppc | ppc64)
12430
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12433
ac_cv_c_bigendian=universal
12439
elif test "x$ac_word" = "x-arch"; then
12444
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12445
if test $ac_cv_c_bigendian = unknown; then
12446
# See if sys/param.h defines the BYTE_ORDER macro.
12447
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12448
/* end confdefs.h. */
12449
#include <sys/types.h>
12450
#include <sys/param.h>
12455
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12456
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12458
bogus endian macros
12465
if ac_fn_c_try_compile "$LINENO"; then :
12466
# It does; now see whether it defined to BIG_ENDIAN or not.
12467
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12468
/* end confdefs.h. */
12469
#include <sys/types.h>
12470
#include <sys/param.h>
12475
#if BYTE_ORDER != BIG_ENDIAN
12483
if ac_fn_c_try_compile "$LINENO"; then :
12484
ac_cv_c_bigendian=yes
12486
ac_cv_c_bigendian=no
12488
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12490
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12492
if test $ac_cv_c_bigendian = unknown; then
12493
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12494
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12495
/* end confdefs.h. */
12496
#include <limits.h>
12501
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12502
bogus endian macros
12509
if ac_fn_c_try_compile "$LINENO"; then :
12510
# It does; now see whether it defined to _BIG_ENDIAN or not.
12511
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12512
/* end confdefs.h. */
12513
#include <limits.h>
12518
#ifndef _BIG_ENDIAN
12526
if ac_fn_c_try_compile "$LINENO"; then :
12527
ac_cv_c_bigendian=yes
12529
ac_cv_c_bigendian=no
12531
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12533
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12535
if test $ac_cv_c_bigendian = unknown; then
12536
# Compile a test program.
12537
if test "$cross_compiling" = yes; then :
12538
# Try to guess by grepping values from an object file.
12539
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540
/* end confdefs.h. */
12541
short int ascii_mm[] =
12542
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12543
short int ascii_ii[] =
12544
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12545
int use_ascii (int i) {
12546
return ascii_mm[i] + ascii_ii[i];
12548
short int ebcdic_ii[] =
12549
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12550
short int ebcdic_mm[] =
12551
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12552
int use_ebcdic (int i) {
12553
return ebcdic_mm[i] + ebcdic_ii[i];
12560
return use_ascii (foo) == use_ebcdic (foo);
12565
if ac_fn_c_try_compile "$LINENO"; then :
12566
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12567
ac_cv_c_bigendian=yes
12569
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12570
if test "$ac_cv_c_bigendian" = unknown; then
12571
ac_cv_c_bigendian=no
12573
# finding both strings is unlikely to happen, but who knows?
12574
ac_cv_c_bigendian=unknown
12578
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12580
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12581
/* end confdefs.h. */
12582
$ac_includes_default
12587
/* Are we little or big endian? From Harbison&Steele. */
12591
char c[sizeof (long int)];
12594
return u.c[sizeof (long int) - 1] == 1;
12600
if ac_fn_c_try_run "$LINENO"; then :
12601
ac_cv_c_bigendian=no
12603
ac_cv_c_bigendian=yes
12605
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12606
conftest.$ac_objext conftest.beam conftest.$ac_ext
12611
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12612
$as_echo "$ac_cv_c_bigendian" >&6; }
12613
case $ac_cv_c_bigendian in #(
12615
$as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h
12621
$as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12625
as_fn_error $? "unknown endianness
12626
presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12631
*mingw32* | *cygwin*)
12632
for ac_func in gettimeofday
12634
ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
12635
if test "x$ac_cv_func_gettimeofday" = xyes; then :
12636
cat >>confdefs.h <<_ACEOF
12637
@%:@define HAVE_GETTIMEOFDAY 1
12648
@%:@ Check whether --enable-libdvdcss was given.
12649
if test "${enable_libdvdcss+set}" = set; then :
12650
enableval=$enable_libdvdcss;
12654
@%:@ Check whether --enable-dlfcn was given.
12655
if test "${enable_dlfcn+set}" = set; then :
12656
enableval=$enable_dlfcn; use_builtin_dlfcn=$enableval
12658
use_builtin_dlfcn=no
12662
if [ $use_builtin_dlfcn = "yes" ]; then
12664
$as_echo "@%:@define USING_BUILTIN_DLFCN 1" >>confdefs.h
12669
if test x"$enable_libdvdcss" != xyes; then
12672
if [ $use_builtin_dlfcn = "no" ]; then
12673
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
12674
$as_echo_n "checking for dlopen in -lc... " >&6; }
12675
if ${ac_cv_lib_c_dlopen+:} false; then :
12676
$as_echo_n "(cached) " >&6
12678
ac_check_lib_save_LIBS=$LIBS
12680
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12681
/* end confdefs.h. */
12683
/* Override any GCC internal prototype to avoid an error.
12684
Use char because int might match the return type of a GCC
12685
builtin and then its argument prototype would still apply. */
12698
if ac_fn_c_try_link "$LINENO"; then :
12699
ac_cv_lib_c_dlopen=yes
12701
ac_cv_lib_c_dlopen=no
12703
rm -f core conftest.err conftest.$ac_objext \
12704
conftest$ac_exeext conftest.$ac_ext
12705
LIBS=$ac_check_lib_save_LIBS
12707
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
12708
$as_echo "$ac_cv_lib_c_dlopen" >&6; }
12709
if test "x$ac_cv_lib_c_dlopen" = xyes; then :
12712
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12713
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12714
if ${ac_cv_lib_dl_dlopen+:} false; then :
12715
$as_echo_n "(cached) " >&6
12717
ac_check_lib_save_LIBS=$LIBS
12719
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720
/* end confdefs.h. */
12722
/* Override any GCC internal prototype to avoid an error.
12723
Use char because int might match the return type of a GCC
12724
builtin and then its argument prototype would still apply. */
12737
if ac_fn_c_try_link "$LINENO"; then :
12738
ac_cv_lib_dl_dlopen=yes
12740
ac_cv_lib_dl_dlopen=no
12742
rm -f core conftest.err conftest.$ac_objext \
12743
conftest$ac_exeext conftest.$ac_ext
12744
LIBS=$ac_check_lib_save_LIBS
12746
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12747
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12748
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12749
DYNAMIC_LD_LIBS="-ldl"
12751
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using builtin dlopen" >&5
12752
$as_echo "$as_me: WARNING: Using builtin dlopen" >&2;}
12759
LDFLAGS="-no-undefined $LDFLAGS"
12762
LDFLAGS="-no-undefined $LDFLAGS"
12765
LDFLAGS="-no-undefined -Zbin-files $LDFLAGS"
12768
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
12769
$as_echo_n "checking for dlopen in -lc... " >&6; }
12770
if ${ac_cv_lib_c_dlopen+:} false; then :
12771
$as_echo_n "(cached) " >&6
12773
ac_check_lib_save_LIBS=$LIBS
12775
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12776
/* end confdefs.h. */
12778
/* Override any GCC internal prototype to avoid an error.
12779
Use char because int might match the return type of a GCC
12780
builtin and then its argument prototype would still apply. */
12793
if ac_fn_c_try_link "$LINENO"; then :
12794
ac_cv_lib_c_dlopen=yes
12796
ac_cv_lib_c_dlopen=no
12798
rm -f core conftest.err conftest.$ac_objext \
12799
conftest$ac_exeext conftest.$ac_ext
12800
LIBS=$ac_check_lib_save_LIBS
12802
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
12803
$as_echo "$ac_cv_lib_c_dlopen" >&6; }
12804
if test "x$ac_cv_lib_c_dlopen" = xyes; then :
12807
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12808
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12809
if ${ac_cv_lib_dl_dlopen+:} false; then :
12810
$as_echo_n "(cached) " >&6
12812
ac_check_lib_save_LIBS=$LIBS
12814
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12815
/* end confdefs.h. */
12817
/* Override any GCC internal prototype to avoid an error.
12818
Use char because int might match the return type of a GCC
12819
builtin and then its argument prototype would still apply. */
12832
if ac_fn_c_try_link "$LINENO"; then :
12833
ac_cv_lib_dl_dlopen=yes
12835
ac_cv_lib_dl_dlopen=no
12837
rm -f core conftest.err conftest.$ac_objext \
12838
conftest$ac_exeext conftest.$ac_ext
12839
LIBS=$ac_check_lib_save_LIBS
12841
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12842
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12843
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12844
DYNAMIC_LD_LIBS="-ldl"
12846
as_fn_error $? "dynamic linker needed" "$LINENO" 5
12857
*darwin*) CSS_LIBS="${CSS_LIBS} -Wl,-framework,CoreFoundation -Wl,-framework,IOKit"
12860
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dvdcss_interface_2 in -ldvdcss" >&5
12861
$as_echo_n "checking for dvdcss_interface_2 in -ldvdcss... " >&6; }
12862
if ${ac_cv_lib_dvdcss_dvdcss_interface_2+:} false; then :
12863
$as_echo_n "(cached) " >&6
12865
ac_check_lib_save_LIBS=$LIBS
12866
LIBS="-ldvdcss $LIBS"
12867
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868
/* end confdefs.h. */
12870
/* Override any GCC internal prototype to avoid an error.
12871
Use char because int might match the return type of a GCC
12872
builtin and then its argument prototype would still apply. */
12876
char dvdcss_interface_2 ();
12880
return dvdcss_interface_2 ();
12885
if ac_fn_c_try_link "$LINENO"; then :
12886
ac_cv_lib_dvdcss_dvdcss_interface_2=yes
12888
ac_cv_lib_dvdcss_dvdcss_interface_2=no
12890
rm -f core conftest.err conftest.$ac_objext \
12891
conftest$ac_exeext conftest.$ac_ext
12892
LIBS=$ac_check_lib_save_LIBS
12894
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dvdcss_dvdcss_interface_2" >&5
12895
$as_echo "$ac_cv_lib_dvdcss_dvdcss_interface_2" >&6; }
12896
if test "x$ac_cv_lib_dvdcss_dvdcss_interface_2" = xyes; then :
12897
cat >>confdefs.h <<_ACEOF
12898
@%:@define HAVE_LIBDVDCSS 1
12901
LIBS="-ldvdcss $LIBS"
12904
as_fn_error $? "You need libdvdcss.so.2 or later" "$LINENO" 5
12907
for ac_header in dvdcss/dvdcss.h
12909
ac_fn_c_check_header_mongrel "$LINENO" "dvdcss/dvdcss.h" "ac_cv_header_dvdcss_dvdcss_h" "$ac_includes_default"
12910
if test "x$ac_cv_header_dvdcss_dvdcss_h" = xyes; then :
12911
cat >>confdefs.h <<_ACEOF
12912
@%:@define HAVE_DVDCSS_DVDCSS_H 1
12916
as_fn_error $? "You need libdvdcss (dvdcss.h)" "$LINENO" 5
12926
CFLAGS="-O3 -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE $CFLAGS"
12927
DEBUG_CFLAGS="-g -DDEBUG $CFLAGS"
12931
# Extract the first word of "doxygen", so it can be a program name with args.
12932
set dummy doxygen; ac_word=$2
12933
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12934
$as_echo_n "checking for $ac_word... " >&6; }
12935
if ${ac_cv_prog_DOXYGEN+:} false; then :
12936
$as_echo_n "(cached) " >&6
12938
if test -n "$DOXYGEN"; then
12939
ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
12941
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12942
for as_dir in $PATH
12945
test -z "$as_dir" && as_dir=.
12946
for ac_exec_ext in '' $ac_executable_extensions; do
12947
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12948
ac_cv_prog_DOXYGEN="doxygen"
12949
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12956
test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN="no"
12959
DOXYGEN=$ac_cv_prog_DOXYGEN
12960
if test -n "$DOXYGEN"; then
12961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
12962
$as_echo "$DOXYGEN" >&6; }
12964
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12965
$as_echo "no" >&6; }
12970
INCLUDES='-I$(top_srcdir) $(DVDREAD_CFLAGS)'
12973
ac_config_files="$ac_config_files Makefile src/Makefile misc/Makefile misc/dvdread-config misc/dvdread.pc misc/libdvdread.spec misc/relchk.sh m4/Makefile"
12975
cat >confcache <<\_ACEOF
12976
# This file is a shell script that caches the results of configure
12977
# tests run on this system so they can be shared between configure
12978
# scripts and configure runs, see configure's option --config-cache.
12979
# It is not useful on other systems. If it contains results you don't
12980
# want to keep, you may remove or edit it.
12982
# config.status only pays attention to the cache file if you give it
12983
# the --recheck option to rerun configure.
12985
# `ac_cv_env_foo' variables (set or unset) will be overridden when
12986
# loading this file, other *unset* `ac_cv_foo' will be assigned the
12987
# following values.
12991
# The following way of writing the cache mishandles newlines in values,
12992
# but we know of no workaround that is simple, portable, and efficient.
12993
# So, we kill variables containing newlines.
12994
# Ultrix sh set writes to stderr and can't be redirected directly,
12995
# and sets the high bit in the cache file unless we assign to the vars.
12997
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12998
eval ac_val=\$$ac_var
13002
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13003
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13006
_ | IFS | as_nl) ;; #(
13007
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13008
*) { eval $ac_var=; unset $ac_var;} ;;
13014
case $as_nl`(ac_space=' '; set) 2>&1` in #(
13015
*${as_nl}ac_space=\ *)
13016
# `set' does not quote correctly, so add quotes: double-quote
13017
# substitution turns \\\\ into \\, and sed turns \\ into \.
13020
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13023
# `set' quotes correctly as required by POSIX, so do not add quotes.
13024
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13033
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13035
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13037
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13038
if test -w "$cache_file"; then
13039
if test "x$cache_file" != "x/dev/null"; then
13040
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13041
$as_echo "$as_me: updating cache $cache_file" >&6;}
13042
if test ! -f "$cache_file" || test -h "$cache_file"; then
13043
cat confcache >"$cache_file"
13045
case $cache_file in #(
13047
mv -f confcache "$cache_file"$$ &&
13048
mv -f "$cache_file"$$ "$cache_file" ;; #(
13050
mv -f confcache "$cache_file" ;;
13055
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13056
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13061
test "x$prefix" = xNONE && prefix=$ac_default_prefix
13062
# Let make expand exec_prefix.
13063
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13065
DEFS=-DHAVE_CONFIG_H
13070
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
13071
# 1. Remove the extension, and $U if already installed.
13072
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13073
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13074
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13075
# will be set to the directory where LIBOBJS objects are built.
13076
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13077
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13079
LIB@&t@OBJS=$ac_libobjs
13081
LTLIBOBJS=$ac_ltlibobjs
13084
if test -n "$EXEEXT"; then
13086
am__EXEEXT_FALSE='#'
13088
am__EXEEXT_TRUE='#'
13092
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13093
as_fn_error $? "conditional \"AMDEP\" was never defined.
13094
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13096
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13097
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13098
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13100
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13101
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13102
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13106
: "${CONFIG_STATUS=./config.status}"
13108
ac_clean_files_save=$ac_clean_files
13109
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13110
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13111
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13113
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13115
# Generated by $as_me.
13116
# Run this file to recreate the current configuration.
13117
# Compiler output produced by configure, useful for debugging
13118
# configure, is in config.log if it exists.
13121
ac_cs_recheck=false
13124
SHELL=\${CONFIG_SHELL-$SHELL}
13127
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13128
## -------------------- ##
13129
## M4sh Initialization. ##
13130
## -------------------- ##
13132
# Be more Bourne compatible
13133
DUALCASE=1; export DUALCASE # for MKS sh
13134
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13137
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13138
# is contrary to our usage. Disable this feature.
13139
alias -g '${1+"$@"}'='"$@"'
13140
setopt NO_GLOB_SUBST
13142
case `(set -o) 2>/dev/null` in @%:@(
13144
set -o posix ;; @%:@(
13154
# Printing a long string crashes Solaris 7 /usr/bin/printf.
13155
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13156
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13157
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13158
# Prefer a ksh shell builtin over an external printf program on Solaris,
13159
# but without wasting forks for bash or zsh.
13160
if test -z "$BASH_VERSION$ZSH_VERSION" \
13161
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13162
as_echo='print -r --'
13163
as_echo_n='print -rn --'
13164
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13165
as_echo='printf %s\n'
13166
as_echo_n='printf %s'
13168
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13169
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13170
as_echo_n='/usr/ucb/echo -n'
13172
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13173
as_echo_n_body='eval
13177
expr "X$arg" : "X\\(.*\\)$as_nl";
13178
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13180
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13182
export as_echo_n_body
13183
as_echo_n='sh -c $as_echo_n_body as_echo'
13185
export as_echo_body
13186
as_echo='sh -c $as_echo_body as_echo'
13189
# The user is always right.
13190
if test "${PATH_SEPARATOR+set}" != set; then
13192
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13193
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13200
# We need space, tab and new line, in precisely that order. Quoting is
13201
# there to prevent editors from complaining about space-tab.
13202
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13203
# splitting by setting IFS to empty value.)
13206
# Find who we are. Look in the path if we contain no directory separator.
13209
*[\\/]* ) as_myself=$0 ;;
13210
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13211
for as_dir in $PATH
13214
test -z "$as_dir" && as_dir=.
13215
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13221
# We did not find ourselves, most probably we were run as `sh COMMAND'
13222
# in which case we are not to be found in the path.
13223
if test "x$as_myself" = x; then
13226
if test ! -f "$as_myself"; then
13227
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13231
# Unset variables that we do not need and which cause bugs (e.g. in
13232
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13233
# suppresses any "Segmentation fault" message there. '((' could
13234
# trigger a bug in pdksh 5.2.14.
13235
for as_var in BASH_ENV ENV MAIL MAILPATH
13236
do eval test x\${$as_var+set} = xset \
13237
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13250
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13253
@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
13254
@%:@ ----------------------------------------
13255
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13256
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13257
@%:@ script with STATUS, using 1 if that was 0.
13260
as_status=$1; test $as_status -eq 0 && as_status=1
13262
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13263
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13265
$as_echo "$as_me: error: $2" >&2
13266
as_fn_exit $as_status
13270
@%:@ as_fn_set_status STATUS
13271
@%:@ -----------------------
13272
@%:@ Set @S|@? to STATUS, without forking.
13273
as_fn_set_status ()
13276
} @%:@ as_fn_set_status
13278
@%:@ as_fn_exit STATUS
13279
@%:@ -----------------
13280
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13284
as_fn_set_status $1
13288
@%:@ as_fn_unset VAR
13289
@%:@ ---------------
13290
@%:@ Portably unset VAR.
13293
{ eval $1=; unset $1;}
13295
as_unset=as_fn_unset
13296
@%:@ as_fn_append VAR VALUE
13297
@%:@ ----------------------
13298
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
13299
@%:@ advantage of any shell optimizations that allow amortized linear growth over
13300
@%:@ repeated appends, instead of the typical quadratic growth present in naive
13301
@%:@ implementations.
13302
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13303
eval 'as_fn_append ()
13314
@%:@ as_fn_arith ARG...
13315
@%:@ ------------------
13316
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
13317
@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
13318
@%:@ must be portable across @S|@(()) and expr.
13319
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13320
eval 'as_fn_arith ()
13327
as_val=`expr "$@" || test $? -eq 1`
13332
if expr a : '\(a\)' >/dev/null 2>&1 &&
13333
test "X`expr 00001 : '.*\(...\)'`" = X001; then
13339
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13340
as_basename=basename
13345
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13351
as_me=`$as_basename -- "$0" ||
13352
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13353
X"$0" : 'X\(//\)$' \| \
13354
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13356
sed '/^.*\/\([^/][^/]*\)\/*$/{
13370
# Avoid depending upon Character Ranges.
13371
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13372
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13373
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13374
as_cr_digits='0123456789'
13375
as_cr_alnum=$as_cr_Letters$as_cr_digits
13377
ECHO_C= ECHO_N= ECHO_T=
13378
case `echo -n x` in @%:@(((((
13380
case `echo 'xy\c'` in
13381
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
13383
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13390
rm -f conf$$ conf$$.exe conf$$.file
13391
if test -d conf$$.dir; then
13392
rm -f conf$$.dir/conf$$.file
13395
mkdir conf$$.dir 2>/dev/null
13397
if (echo >conf$$.file) 2>/dev/null; then
13398
if ln -s conf$$.file conf$$ 2>/dev/null; then
13400
# ... but there are two gotchas:
13401
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13402
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13403
# In both cases, we have to default to `cp -pR'.
13404
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13406
elif ln conf$$.file conf$$ 2>/dev/null; then
13414
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13415
rmdir conf$$.dir 2>/dev/null
13420
@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
13425
-*) as_dir=./$as_dir;;
13427
test -d "$as_dir" || eval $as_mkdir_p || {
13431
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13432
*) as_qdir=$as_dir;;
13434
as_dirs="'$as_qdir' $as_dirs"
13435
as_dir=`$as_dirname -- "$as_dir" ||
13436
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13437
X"$as_dir" : 'X\(//\)[^/]' \| \
13438
X"$as_dir" : 'X\(//\)$' \| \
13439
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13440
$as_echo X"$as_dir" |
13441
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13445
/^X\(\/\/\)[^/].*/{
13458
test -d "$as_dir" && break
13460
test -z "$as_dirs" || eval "mkdir $as_dirs"
13461
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13464
} @%:@ as_fn_mkdir_p
13465
if mkdir -p . 2>/dev/null; then
13466
as_mkdir_p='mkdir -p "$as_dir"'
13468
test -d ./-p && rmdir ./-p
13473
@%:@ as_fn_executable_p FILE
13474
@%:@ -----------------------
13475
@%:@ Test if FILE is an executable regular file.
13476
as_fn_executable_p ()
13478
test -f "$1" && test -x "$1"
13479
} @%:@ as_fn_executable_p
13480
as_test_x='test -x'
13481
as_executable_p=as_fn_executable_p
13483
# Sed expression to map a string onto a valid CPP name.
13484
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13486
# Sed expression to map a string onto a valid variable name.
13487
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13491
## ----------------------------------- ##
13492
## Main body of $CONFIG_STATUS script. ##
13493
## ----------------------------------- ##
13495
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13497
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13498
# Save the log message, to keep $0 and so on meaningful, and to
13499
# report actual input values of CONFIG_FILES etc. instead of their
13500
# values after options handling.
13502
This file was extended by libdvdread $as_me 4.2.0, which was
13503
generated by GNU Autoconf 2.69. Invocation command line was
13505
CONFIG_FILES = $CONFIG_FILES
13506
CONFIG_HEADERS = $CONFIG_HEADERS
13507
CONFIG_LINKS = $CONFIG_LINKS
13508
CONFIG_COMMANDS = $CONFIG_COMMANDS
13511
on `(hostname || uname -n) 2>/dev/null | sed 1q`
13516
case $ac_config_files in *"
13517
"*) set x $ac_config_files; shift; ac_config_files=$*;;
13520
case $ac_config_headers in *"
13521
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13525
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13526
# Files that config.status was made for.
13527
config_files="$ac_config_files"
13528
config_headers="$ac_config_headers"
13529
config_commands="$ac_config_commands"
13533
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13535
\`$as_me' instantiates files and other configuration actions
13536
from templates according to the current configuration. Unless the files
13537
and actions are specified as TAGs, all are instantiated by default.
13539
Usage: $0 [OPTION]... [TAG]...
13541
-h, --help print this help, then exit
13542
-V, --version print version number and configuration settings, then exit
13543
--config print configuration, then exit
13544
-q, --quiet, --silent
13545
do not print progress messages
13546
-d, --debug don't remove temporary files
13547
--recheck update $as_me by reconfiguring in the same conditions
13548
--file=FILE[:TEMPLATE]
13549
instantiate the configuration file FILE
13550
--header=FILE[:TEMPLATE]
13551
instantiate the configuration header FILE
13553
Configuration files:
13556
Configuration headers:
13559
Configuration commands:
13562
Report bugs to the package provider."
13565
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13566
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13568
libdvdread config.status 4.2.0
13569
configured by $0, generated by GNU Autoconf 2.69,
13570
with options \\"\$ac_cs_config\\"
13572
Copyright (C) 2012 Free Software Foundation, Inc.
13573
This config.status script is free software; the Free Software Foundation
13574
gives unlimited permission to copy, distribute and modify it."
13581
test -n "\$AWK" || AWK=awk
13584
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13585
# The default lists apply if the user does not specify any file.
13591
ac_option=`expr "X$1" : 'X\([^=]*\)='`
13592
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13596
ac_option=`expr "X$1" : 'X\([^=]*\)='`
13608
# Handling of the options.
13609
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13611
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13612
$as_echo "$ac_cs_version"; exit ;;
13613
--config | --confi | --conf | --con | --co | --c )
13614
$as_echo "$ac_cs_config"; exit ;;
13615
--debug | --debu | --deb | --de | --d | -d )
13617
--file | --fil | --fi | --f )
13620
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13621
'') as_fn_error $? "missing file argument" ;;
13623
as_fn_append CONFIG_FILES " '$ac_optarg'"
13624
ac_need_defaults=false;;
13625
--header | --heade | --head | --hea )
13628
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13630
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13631
ac_need_defaults=false;;
13633
# Conflict between --help and --header
13634
as_fn_error $? "ambiguous option: \`$1'
13635
Try \`$0 --help' for more information.";;
13636
--help | --hel | -h )
13637
$as_echo "$ac_cs_usage"; exit ;;
13638
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
13639
| -silent | --silent | --silen | --sile | --sil | --si | --s)
13642
# This is an error.
13643
-*) as_fn_error $? "unrecognized option: \`$1'
13644
Try \`$0 --help' for more information." ;;
13646
*) as_fn_append ac_config_targets " $1"
13647
ac_need_defaults=false ;;
13653
ac_configure_extra_args=
13655
if $ac_cs_silent; then
13657
ac_configure_extra_args="$ac_configure_extra_args --silent"
13661
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13662
if \$ac_cs_recheck; then
13663
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13665
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13666
CONFIG_SHELL='$SHELL'
13667
export CONFIG_SHELL
13672
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13676
sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
13677
@%:@@%:@ Running $as_me. @%:@@%:@
13683
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13687
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13690
# The HP-UX ksh and POSIX shell print the target directory to stdout
13691
# if CDPATH is set.
13692
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13694
sed_quote_subst='$sed_quote_subst'
13695
double_quote_subst='$double_quote_subst'
13696
delay_variable_subst='$delay_variable_subst'
13697
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13698
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13699
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13700
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13701
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13702
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13703
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13704
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13705
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13706
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13707
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13708
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13709
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13710
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13711
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13712
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13713
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13714
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13715
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13716
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13717
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13718
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13719
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13720
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13721
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13722
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13723
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13724
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13725
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13726
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13727
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13728
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13729
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13730
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13731
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13732
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13733
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13734
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13735
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13736
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13737
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13738
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13739
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13740
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13741
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13742
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13743
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13744
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13745
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13746
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13747
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13748
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13749
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13750
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13751
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13752
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13753
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13754
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13755
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13756
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13757
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13758
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13759
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13760
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13761
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13762
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13763
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13764
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13765
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13766
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13767
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13768
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13769
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13770
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13771
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13772
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13773
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13774
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13775
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13776
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13777
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13778
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13779
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13780
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13781
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13782
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13783
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13784
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13785
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13786
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13787
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13788
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13789
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13790
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13791
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13792
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13793
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13794
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13795
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13796
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13797
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13798
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13799
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13800
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13801
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13802
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13803
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13804
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13805
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13806
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13807
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13808
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13809
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13810
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13811
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13812
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13813
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13814
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13815
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13816
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13817
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13818
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13819
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13820
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13821
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13822
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13823
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13824
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13825
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13826
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13829
LTCFLAGS='$LTCFLAGS'
13830
compiler='$compiler_DEFAULT'
13832
# A function that is used when there is no print builtin or printf.
13833
func_fallback_echo ()
13835
eval 'cat <<_LTECHO_EOF
13840
# Quote evaled strings.
13855
deplibs_check_method \
13860
sharedlib_from_linklib_cmd \
13863
archiver_list_spec \
13869
lt_cv_sys_global_symbol_pipe \
13870
lt_cv_sys_global_symbol_to_cdecl \
13871
lt_cv_sys_global_symbol_to_c_name_address \
13872
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13873
nm_file_list_spec \
13874
lt_prog_compiler_no_builtin_flag \
13875
lt_prog_compiler_pic \
13876
lt_prog_compiler_wl \
13877
lt_prog_compiler_static \
13878
lt_cv_prog_compiler_c_o \
13887
export_dynamic_flag_spec \
13888
whole_archive_flag_spec \
13889
compiler_needs_object \
13891
allow_undefined_flag \
13892
no_undefined_flag \
13893
hardcode_libdir_flag_spec \
13894
hardcode_libdir_separator \
13898
variables_saved_for_relink \
13900
library_names_spec \
13902
install_override_mode \
13906
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13907
*[\\\\\\\`\\"\\\$]*)
13908
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13911
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13916
# Double-quote double-evaled strings.
13917
for var in reload_cmds \
13918
old_postinstall_cmds \
13919
old_postuninstall_cmds \
13921
extract_expsyms_cmds \
13922
old_archive_from_new_cmds \
13923
old_archive_from_expsyms_cmds \
13925
archive_expsym_cmds \
13927
module_expsym_cmds \
13928
export_symbols_cmds \
13932
postuninstall_cmds \
13934
sys_lib_search_path_spec \
13935
sys_lib_dlsearch_path_spec; do
13936
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13937
*[\\\\\\\`\\"\\\$]*)
13938
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13941
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13946
ac_aux_dir='$ac_aux_dir'
13947
xsi_shell='$xsi_shell'
13948
lt_shell_append='$lt_shell_append'
13950
# See if we are running on zsh, and set the options which allow our
13951
# commands through without removal of \ escapes INIT.
13952
if test -n "\${ZSH_VERSION+set}" ; then
13953
setopt NO_GLOB_SUBST
13959
TIMESTAMP='$TIMESTAMP'
13968
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13970
# Handling of arguments.
13971
for ac_config_target in $ac_config_targets
13973
case $ac_config_target in
13974
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13975
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13976
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13977
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13978
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13979
"misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
13980
"misc/dvdread-config") CONFIG_FILES="$CONFIG_FILES misc/dvdread-config" ;;
13981
"misc/dvdread.pc") CONFIG_FILES="$CONFIG_FILES misc/dvdread.pc" ;;
13982
"misc/libdvdread.spec") CONFIG_FILES="$CONFIG_FILES misc/libdvdread.spec" ;;
13983
"misc/relchk.sh") CONFIG_FILES="$CONFIG_FILES misc/relchk.sh" ;;
13984
"m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
13986
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13991
# If the user did not use the arguments to specify the items to instantiate,
13992
# then the envvar interface is used. Set only those that are not.
13993
# We use the long form for the default assignment because of an extremely
13994
# bizarre bug on SunOS 4.1.3.
13995
if $ac_need_defaults; then
13996
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13997
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13998
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14001
# Have a temporary directory for convenience. Make it in the build tree
14002
# simply because there is no reason against having it here, and in addition,
14003
# creating and moving files from /tmp can sometimes cause problems.
14004
# Hook for its removal unless debugging.
14005
# Note that there is a small window in which the directory will not be cleaned:
14006
# after its creation but before its name has been assigned to `$tmp'.
14010
trap 'exit_status=$?
14011
: "${ac_tmp:=$tmp}"
14012
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14014
trap 'as_fn_exit 1' 1 2 13 15
14016
# Create a (secure) tmp directory for tmp files.
14019
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14023
tmp=./conf$$-$RANDOM
14024
(umask 077 && mkdir "$tmp")
14025
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14028
# Set up the scripts for CONFIG_FILES section.
14029
# No need to generate them if there are no CONFIG_FILES.
14030
# This happens for instance with `./config.status config.h'.
14031
if test -n "$CONFIG_FILES"; then
14034
ac_cr=`echo X | tr X '\015'`
14035
# On cygwin, bash can eat \r inside `` if the user requested igncr.
14036
# But we know of no other shell where ac_cr would be empty at this
14037
# point, so we can use a bashism as a fallback.
14038
if test "x$ac_cr" = x; then
14039
eval ac_cr=\$\'\\r\'
14041
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14042
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14045
ac_cs_awk_cr=$ac_cr
14048
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14053
echo "cat >conf$$subs.awk <<_ACEOF" &&
14054
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14056
} >conf$$subs.sh ||
14057
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14058
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14060
for ac_last_try in false false false false false :; do
14061
. ./conf$$subs.sh ||
14062
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14064
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14065
if test $ac_delim_n = $ac_delim_num; then
14067
elif $ac_last_try; then
14068
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14070
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14073
rm -f conf$$subs.sh
14075
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14076
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14080
s/^/S["/; s/!.*/"]=/
14090
s/\(.\{148\}\)..*/\1/
14092
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14097
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14104
s/\(.\{148\}\)..*/\1/
14106
s/["\\]/\\&/g; s/^/"/; s/$/"/
14110
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14115
' <conf$$subs.awk | sed '
14120
' >>$CONFIG_STATUS || ac_write_fail=1
14121
rm -f conf$$subs.awk
14122
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14124
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14125
for (key in S) S_is_set[key] = 1
14131
nfields = split(line, field, "@")
14133
len = length(field[1])
14134
for (i = 2; i < nfields; i++) {
14136
keylen = length(key)
14137
if (S_is_set[key]) {
14139
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14140
len += length(value) + length(field[++i])
14151
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14152
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14153
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14156
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14157
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14160
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14161
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14162
# trailing colons and then remove the whole line if VPATH becomes empty
14163
# (actually we leave an empty line to preserve line numbers).
14164
if test "x$srcdir" = x.; then
14165
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14183
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14184
fi # test -n "$CONFIG_FILES"
14186
# Set up the scripts for CONFIG_HEADERS section.
14187
# No need to generate them if there are no CONFIG_HEADERS.
14188
# This happens for instance with `./config.status Makefile'.
14189
if test -n "$CONFIG_HEADERS"; then
14190
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14194
# Transform confdefs.h into an awk script `defines.awk', embedded as
14195
# here-document in config.status, that substitutes the proper values into
14196
# config.h.in to produce config.h.
14198
# Create a delimiter string that does not exist in confdefs.h, to ease
14199
# handling of long lines.
14201
for ac_last_try in false false :; do
14202
ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14203
if test -z "$ac_tt"; then
14205
elif $ac_last_try; then
14206
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14208
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14212
# For the awk script, D is an array of macro values keyed by name,
14213
# likewise P contains macro parameters if any. Preserve backslash
14214
# newline sequences.
14216
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14218
s/.\{148\}/&'"$ac_delim"'/g
14221
s/^[ ]*#[ ]*define[ ][ ]*/ /
14228
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14230
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14234
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14235
D["\1"]=" \3\\\\\\n"\\/p
14237
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14242
s/.\{148\}/&'"$ac_delim"'/g
14247
s/["\\]/\\&/g; s/^/"/; s/$/"/p
14250
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14252
' <confdefs.h | sed '
14253
s/'"$ac_delim"'/"\\\
14254
"/g' >>$CONFIG_STATUS || ac_write_fail=1
14256
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14257
for (key in D) D_is_set[key] = 1
14260
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14262
split(line, arg, " ")
14263
if (arg[1] == "#") {
14267
defundef = substr(arg[1], 2)
14270
split(mac1, mac2, "(") #)
14272
prefix = substr(line, 1, index(line, defundef) - 1)
14273
if (D_is_set[macro]) {
14274
# Preserve the white space surrounding the "#".
14275
print prefix "define", macro P[macro] D[macro]
14278
# Replace #undef with comments. This is necessary, for example,
14279
# in the case of _POSIX_SOURCE, which is predefined and required
14280
# on some systems where configure will not decide to define it.
14281
if (defundef == "undef") {
14282
print "/*", prefix defundef, macro, "*/"
14290
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14291
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14292
fi # test -n "$CONFIG_HEADERS"
14295
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14300
:[FHLC]) ac_mode=$ac_tag; continue;;
14302
case $ac_mode$ac_tag in
14304
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14305
:[FH]-) ac_tag=-:-;;
14306
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14323
-) ac_f="$ac_tmp/stdin";;
14324
*) # Look for the file first in the build tree, then in the source tree
14325
# (if the path is not absolute). The absolute path cannot be DOS-style,
14326
# because $ac_f cannot contain `:'.
14330
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14332
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14334
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14335
as_fn_append ac_file_inputs " '$ac_f'"
14338
# Let's still pretend it is `configure' which instantiates (i.e., don't
14339
# use $as_me), people would be surprised to read:
14340
# /* config.h. Generated by config.status. */
14341
configure_input='Generated from '`
14342
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14344
if test x"$ac_file" != x-; then
14345
configure_input="$ac_file. $configure_input"
14346
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14347
$as_echo "$as_me: creating $ac_file" >&6;}
14349
# Neutralize special characters interpreted by sed in replacement strings.
14350
case $configure_input in #(
14351
*\&* | *\|* | *\\* )
14352
ac_sed_conf_input=`$as_echo "$configure_input" |
14353
sed 's/[\\\\&|]/\\\\&/g'`;; #(
14354
*) ac_sed_conf_input=$configure_input;;
14358
*:-:* | *:-) cat >"$ac_tmp/stdin" \
14359
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14364
ac_dir=`$as_dirname -- "$ac_file" ||
14365
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14366
X"$ac_file" : 'X\(//\)[^/]' \| \
14367
X"$ac_file" : 'X\(//\)$' \| \
14368
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14369
$as_echo X"$ac_file" |
14370
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14374
/^X\(\/\/\)[^/].*/{
14387
as_dir="$ac_dir"; as_fn_mkdir_p
14391
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14393
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14394
# A ".." for each directory in $ac_dir_suffix.
14395
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14396
case $ac_top_builddir_sub in
14397
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14398
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14401
ac_abs_top_builddir=$ac_pwd
14402
ac_abs_builddir=$ac_pwd$ac_dir_suffix
14403
# for backward compatibility:
14404
ac_top_builddir=$ac_top_build_prefix
14407
.) # We are building in place.
14409
ac_top_srcdir=$ac_top_builddir_sub
14410
ac_abs_top_srcdir=$ac_pwd ;;
14411
[\\/]* | ?:[\\/]* ) # Absolute name.
14412
ac_srcdir=$srcdir$ac_dir_suffix;
14413
ac_top_srcdir=$srcdir
14414
ac_abs_top_srcdir=$srcdir ;;
14415
*) # Relative name.
14416
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14417
ac_top_srcdir=$ac_top_build_prefix$srcdir
14418
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14420
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14430
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14431
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14433
ac_MKDIR_P=$MKDIR_P
14435
[\\/$]* | ?:[\\/]* ) ;;
14436
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14440
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14441
# If the template does not know about datarootdir, expand it.
14442
# FIXME: This hack should be removed a few years after 2.60.
14443
ac_datarootdir_hack=; ac_datarootdir_seen=
14454
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14455
*datarootdir*) ac_datarootdir_seen=yes;;
14456
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14457
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14458
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14460
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14461
ac_datarootdir_hack='
14462
s&@datadir@&$datadir&g
14463
s&@docdir@&$docdir&g
14464
s&@infodir@&$infodir&g
14465
s&@localedir@&$localedir&g
14466
s&@mandir@&$mandir&g
14467
s&\\\${datarootdir}&$datarootdir&g' ;;
14471
# Neutralize VPATH when `$srcdir' = `.'.
14472
# Shell code in configure.ac might set extrasub.
14473
# FIXME: do we really want to maintain this feature?
14474
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14475
ac_sed_extra="$ac_vpsub
14478
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14480
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14481
s|@configure_input@|$ac_sed_conf_input|;t t
14482
s&@top_builddir@&$ac_top_builddir_sub&;t t
14483
s&@top_build_prefix@&$ac_top_build_prefix&;t t
14484
s&@srcdir@&$ac_srcdir&;t t
14485
s&@abs_srcdir@&$ac_abs_srcdir&;t t
14486
s&@top_srcdir@&$ac_top_srcdir&;t t
14487
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14488
s&@builddir@&$ac_builddir&;t t
14489
s&@abs_builddir@&$ac_abs_builddir&;t t
14490
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14491
s&@INSTALL@&$ac_INSTALL&;t t
14492
s&@MKDIR_P@&$ac_MKDIR_P&;t t
14493
$ac_datarootdir_hack
14495
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14496
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14498
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14499
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14500
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14501
"$ac_tmp/out"`; test -z "$ac_out"; } &&
14502
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14503
which seems to be undefined. Please make sure it is defined" >&5
14504
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14505
which seems to be undefined. Please make sure it is defined" >&2;}
14507
rm -f "$ac_tmp/stdin"
14509
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14510
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14512
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14518
if test x"$ac_file" != x-; then
14520
$as_echo "/* $configure_input */" \
14521
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14522
} >"$ac_tmp/config.h" \
14523
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14524
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14525
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14526
$as_echo "$as_me: $ac_file is unchanged" >&6;}
14529
mv "$ac_tmp/config.h" "$ac_file" \
14530
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14533
$as_echo "/* $configure_input */" \
14534
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14535
|| as_fn_error $? "could not create -" "$LINENO" 5
14537
# Compute "$ac_file"'s index in $config_headers.
14540
for _am_header in $config_headers :; do
14541
case $_am_header in
14542
$_am_arg | $_am_arg:* )
14545
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
14548
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14549
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14550
X"$_am_arg" : 'X\(//\)[^/]' \| \
14551
X"$_am_arg" : 'X\(//\)$' \| \
14552
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14553
$as_echo X"$_am_arg" |
14554
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14558
/^X\(\/\/\)[^/].*/{
14570
s/.*/./; q'`/stamp-h$_am_stamp_count
14573
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14574
$as_echo "$as_me: executing $ac_file commands" >&6;}
14579
case $ac_file$ac_mode in
14580
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14581
# Autoconf 2.62 quotes --file arguments for eval, but not when files
14582
# are listed without --file. Let's play safe and only enable the eval
14583
# if we detect the quoting.
14584
case $CONFIG_FILES in
14585
*\'*) eval set x "$CONFIG_FILES" ;;
14586
*) set x $CONFIG_FILES ;;
14591
# Strip MF so we end up with the name of the file.
14592
mf=`echo "$mf" | sed -e 's/:.*$//'`
14593
# Check whether this is an Automake generated Makefile or not.
14594
# We used to match only the files named `Makefile.in', but
14595
# some people rename them; so instead we look at the file content.
14596
# Grep'ing the first line is not enough: some people post-process
14597
# each Makefile.in and add a new line on top of each file to say so.
14598
# Grep'ing the whole file is not good either: AIX grep has a line
14599
# limit of 2048, but all sed's we know have understand at least 4000.
14600
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14601
dirpart=`$as_dirname -- "$mf" ||
14602
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14603
X"$mf" : 'X\(//\)[^/]' \| \
14604
X"$mf" : 'X\(//\)$' \| \
14605
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14607
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14611
/^X\(\/\/\)[^/].*/{
14627
# Extract the definition of DEPDIR, am__include, and am__quote
14628
# from the Makefile without running `make'.
14629
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14630
test -z "$DEPDIR" && continue
14631
am__include=`sed -n 's/^am__include = //p' < "$mf"`
14632
test -z "am__include" && continue
14633
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14634
# When using ansi2knr, U may be empty or an underscore; expand it
14635
U=`sed -n 's/^U = //p' < "$mf"`
14636
# Find all dependency output files, they are included files with
14637
# $(DEPDIR) in their names. We invoke sed twice because it is the
14638
# simplest approach to changing $(DEPDIR) to its actual value in the
14640
for file in `sed -n "
14641
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14642
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14643
# Make sure the directory exists.
14644
test -f "$dirpart/$file" && continue
14645
fdir=`$as_dirname -- "$file" ||
14646
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14647
X"$file" : 'X\(//\)[^/]' \| \
14648
X"$file" : 'X\(//\)$' \| \
14649
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14650
$as_echo X"$file" |
14651
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14655
/^X\(\/\/\)[^/].*/{
14668
as_dir=$dirpart/$fdir; as_fn_mkdir_p
14669
# echo "creating $dirpart/$file"
14670
echo '# dummy' > "$dirpart/$file"
14677
# See if we are running on zsh, and set the options which allow our
14678
# commands through without removal of \ escapes.
14679
if test -n "${ZSH_VERSION+set}" ; then
14680
setopt NO_GLOB_SUBST
14683
cfgfile="${ofile}T"
14684
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14687
cat <<_LT_EOF >> "$cfgfile"
14690
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14691
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14692
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14693
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14695
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14696
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14698
# Written by Gordon Matzigkeit, 1996
14700
# This file is part of GNU Libtool.
14702
# GNU Libtool is free software; you can redistribute it and/or
14703
# modify it under the terms of the GNU General Public License as
14704
# published by the Free Software Foundation; either version 2 of
14705
# the License, or (at your option) any later version.
14707
# As a special exception to the GNU General Public License,
14708
# if you distribute this file as part of a program or library that
14709
# is built using GNU Libtool, you may include this file under the
14710
# same distribution terms that you use for the rest of that program.
14712
# GNU Libtool is distributed in the hope that it will be useful,
14713
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14714
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14715
# GNU General Public License for more details.
14717
# You should have received a copy of the GNU General Public License
14718
# along with GNU Libtool; see the file COPYING. If not, a copy
14719
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14720
# obtained by writing to the Free Software Foundation, Inc.,
14721
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14724
# The names of the tagged configurations supported by this script.
14727
# ### BEGIN LIBTOOL CONFIG
14729
# Whether or not to build static libraries.
14730
build_old_libs=$enable_static
14732
# Which release of libtool.m4 was used?
14733
macro_version=$macro_version
14734
macro_revision=$macro_revision
14736
# Whether or not to build shared libraries.
14737
build_libtool_libs=$enable_shared
14739
# What type of objects to build.
14742
# Whether or not to optimize for fast installation.
14743
fast_install=$enable_fast_install
14745
# Shell to use when invoking shell scripts.
14748
# An echo program that protects backslashes.
14751
# The PATH separator for the build system.
14752
PATH_SEPARATOR=$lt_PATH_SEPARATOR
14755
host_alias=$host_alias
14759
# The build system.
14760
build_alias=$build_alias
14764
# A sed program that does not truncate output.
14767
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14768
Xsed="\$SED -e 1s/^X//"
14770
# A grep program that handles long lines.
14776
# A literal string matcher.
14779
# A BSD- or MS-compatible name lister.
14782
# Whether we need soft or hard links.
14785
# What is the maximum length of a command?
14786
max_cmd_len=$max_cmd_len
14788
# Object file suffix (normally "o").
14791
# Executable file suffix (normally "").
14794
# whether the shell understands "unset".
14797
# turn spaces into newlines.
14800
# turn newlines into spaces.
14803
# convert \$build file names to \$host format.
14804
to_host_file_cmd=$lt_cv_to_host_file_cmd
14806
# convert \$build files to toolchain format.
14807
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14809
# An object symbol dumper.
14810
OBJDUMP=$lt_OBJDUMP
14812
# Method to check whether dependent libraries are shared objects.
14813
deplibs_check_method=$lt_deplibs_check_method
14815
# Command to use when deplibs_check_method = "file_magic".
14816
file_magic_cmd=$lt_file_magic_cmd
14818
# How to find potential files when deplibs_check_method = "file_magic".
14819
file_magic_glob=$lt_file_magic_glob
14821
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14822
want_nocaseglob=$lt_want_nocaseglob
14824
# DLL creation program.
14825
DLLTOOL=$lt_DLLTOOL
14827
# Command to associate shared and link libraries.
14828
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14833
# Flags to create an archive.
14834
AR_FLAGS=$lt_AR_FLAGS
14836
# How to feed a file listing to the archiver.
14837
archiver_list_spec=$lt_archiver_list_spec
14839
# A symbol stripping program.
14842
# Commands used to install an old-style archive.
14844
old_postinstall_cmds=$lt_old_postinstall_cmds
14845
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14847
# Whether to use a lock for old archive extraction.
14848
lock_old_archive_extraction=$lock_old_archive_extraction
14853
# LTCC compiler flags.
14854
LTCFLAGS=$lt_CFLAGS
14856
# Take the output of nm and produce a listing of raw symbols and C names.
14857
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14859
# Transform the output of nm in a proper C declaration.
14860
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14862
# Transform the output of nm in a C name address pair.
14863
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14865
# Transform the output of nm in a C name address pair when lib prefix is needed.
14866
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14868
# Specify filename containing input files for \$NM.
14869
nm_file_list_spec=$lt_nm_file_list_spec
14871
# The root where to search for dependent libraries,and in which our libraries should be installed.
14872
lt_sysroot=$lt_sysroot
14874
# The name of the directory that contains temporary libtool files.
14877
# Used to examine libraries when file_magic_cmd begins with "file".
14878
MAGIC_CMD=$MAGIC_CMD
14880
# Must we lock files when doing compilation?
14881
need_locks=$lt_need_locks
14884
MANIFEST_TOOL=$lt_MANIFEST_TOOL
14886
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14887
DSYMUTIL=$lt_DSYMUTIL
14889
# Tool to change global to local symbols on Mac OS X.
14892
# Tool to manipulate fat objects and archives on Mac OS X.
14895
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14898
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14899
OTOOL64=$lt_OTOOL64
14901
# Old archive suffix (normally "a").
14904
# Shared library suffix (normally ".so").
14905
shrext_cmds=$lt_shrext_cmds
14907
# The commands to extract the exported symbol list from a shared archive.
14908
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14910
# Variables whose values should be saved in libtool wrapper scripts and
14911
# restored at link time.
14912
variables_saved_for_relink=$lt_variables_saved_for_relink
14914
# Do we need the "lib" prefix for modules?
14915
need_lib_prefix=$need_lib_prefix
14917
# Do we need a version for libraries?
14918
need_version=$need_version
14920
# Library versioning type.
14921
version_type=$version_type
14923
# Shared library runtime path variable.
14924
runpath_var=$runpath_var
14926
# Shared library path variable.
14927
shlibpath_var=$shlibpath_var
14929
# Is shlibpath searched before the hard-coded library search path?
14930
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14932
# Format of library name prefix.
14933
libname_spec=$lt_libname_spec
14935
# List of archive names. First name is the real one, the rest are links.
14936
# The last name is the one that the linker finds with -lNAME
14937
library_names_spec=$lt_library_names_spec
14939
# The coded name of the library, if different from the real name.
14940
soname_spec=$lt_soname_spec
14942
# Permission mode override for installation of shared libraries.
14943
install_override_mode=$lt_install_override_mode
14945
# Command to use after installation of a shared archive.
14946
postinstall_cmds=$lt_postinstall_cmds
14948
# Command to use after uninstallation of a shared archive.
14949
postuninstall_cmds=$lt_postuninstall_cmds
14951
# Commands used to finish a libtool library installation in a directory.
14952
finish_cmds=$lt_finish_cmds
14954
# As "finish_cmds", except a single script fragment to be evaled but
14956
finish_eval=$lt_finish_eval
14958
# Whether we should hardcode library paths into libraries.
14959
hardcode_into_libs=$hardcode_into_libs
14961
# Compile-time system search path for libraries.
14962
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14964
# Run-time system search path for libraries.
14965
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14967
# Whether dlopen is supported.
14968
dlopen_support=$enable_dlopen
14970
# Whether dlopen of programs is supported.
14971
dlopen_self=$enable_dlopen_self
14973
# Whether dlopen of statically linked programs is supported.
14974
dlopen_self_static=$enable_dlopen_self_static
14976
# Commands to strip libraries.
14977
old_striplib=$lt_old_striplib
14978
striplib=$lt_striplib
14981
# The linker used to build libraries.
14984
# How to create reloadable object files.
14985
reload_flag=$lt_reload_flag
14986
reload_cmds=$lt_reload_cmds
14988
# Commands used to build an old-style archive.
14989
old_archive_cmds=$lt_old_archive_cmds
14991
# A language specific compiler.
14994
# Is the compiler the GNU compiler?
14997
# Compiler flag to turn off builtin functions.
14998
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15000
# Additional compiler flags for building library objects.
15001
pic_flag=$lt_lt_prog_compiler_pic
15003
# How to pass a linker flag through the compiler.
15004
wl=$lt_lt_prog_compiler_wl
15006
# Compiler flag to prevent dynamic linking.
15007
link_static_flag=$lt_lt_prog_compiler_static
15009
# Does compiler simultaneously support -c and -o options?
15010
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15012
# Whether or not to add -lc for building shared libraries.
15013
build_libtool_need_lc=$archive_cmds_need_lc
15015
# Whether or not to disallow shared libs when runtime libs are static.
15016
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15018
# Compiler flag to allow reflexive dlopens.
15019
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15021
# Compiler flag to generate shared objects directly from archives.
15022
whole_archive_flag_spec=$lt_whole_archive_flag_spec
15024
# Whether the compiler copes with passing no objects directly.
15025
compiler_needs_object=$lt_compiler_needs_object
15027
# Create an old-style archive from a shared archive.
15028
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15030
# Create a temporary old-style archive to link instead of a shared archive.
15031
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15033
# Commands used to build a shared archive.
15034
archive_cmds=$lt_archive_cmds
15035
archive_expsym_cmds=$lt_archive_expsym_cmds
15037
# Commands used to build a loadable module if different from building
15038
# a shared archive.
15039
module_cmds=$lt_module_cmds
15040
module_expsym_cmds=$lt_module_expsym_cmds
15042
# Whether we are building with GNU ld or not.
15043
with_gnu_ld=$lt_with_gnu_ld
15045
# Flag that allows shared libraries with undefined symbols to be built.
15046
allow_undefined_flag=$lt_allow_undefined_flag
15048
# Flag that enforces no undefined symbols.
15049
no_undefined_flag=$lt_no_undefined_flag
15051
# Flag to hardcode \$libdir into a binary during linking.
15052
# This must work even if \$libdir does not exist
15053
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15055
# Whether we need a single "-rpath" flag with a separated argument.
15056
hardcode_libdir_separator=$lt_hardcode_libdir_separator
15058
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15059
# DIR into the resulting binary.
15060
hardcode_direct=$hardcode_direct
15062
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15063
# DIR into the resulting binary and the resulting library dependency is
15064
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15065
# library is relocated.
15066
hardcode_direct_absolute=$hardcode_direct_absolute
15068
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15069
# into the resulting binary.
15070
hardcode_minus_L=$hardcode_minus_L
15072
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15073
# into the resulting binary.
15074
hardcode_shlibpath_var=$hardcode_shlibpath_var
15076
# Set to "yes" if building a shared library automatically hardcodes DIR
15077
# into the library and all subsequent libraries and executables linked
15079
hardcode_automatic=$hardcode_automatic
15081
# Set to yes if linker adds runtime paths of dependent libraries
15082
# to runtime path list.
15083
inherit_rpath=$inherit_rpath
15085
# Whether libtool must link a program against all its dependency libraries.
15086
link_all_deplibs=$link_all_deplibs
15088
# Set to "yes" if exported symbols are required.
15089
always_export_symbols=$always_export_symbols
15091
# The commands to list exported symbols.
15092
export_symbols_cmds=$lt_export_symbols_cmds
15094
# Symbols that should not be listed in the preloaded symbols.
15095
exclude_expsyms=$lt_exclude_expsyms
15097
# Symbols that must always be exported.
15098
include_expsyms=$lt_include_expsyms
15100
# Commands necessary for linking programs (against libraries) with templates.
15101
prelink_cmds=$lt_prelink_cmds
15103
# Commands necessary for finishing linking programs.
15104
postlink_cmds=$lt_postlink_cmds
15106
# Specify filename containing input files.
15107
file_list_spec=$lt_file_list_spec
15109
# How to hardcode a shared library path into an executable.
15110
hardcode_action=$hardcode_action
15112
# ### END LIBTOOL CONFIG
15118
cat <<\_LT_EOF >> "$cfgfile"
15119
# AIX sometimes has problems with the GCC collect2 program. For some
15120
# reason, if we set the COLLECT_NAMES environment variable, the problems
15121
# vanish in a puff of smoke.
15122
if test "X${COLLECT_NAMES+set}" != Xset; then
15124
export COLLECT_NAMES
15131
ltmain="$ac_aux_dir/ltmain.sh"
15134
# We use sed instead of cat because bash on DJGPP gets confused if
15135
# if finds mixed CR/LF and LF-only lines. Since sed operates in
15136
# text mode, it properly converts lines to CR/LF. This bash problem
15137
# is reportedly fixed, but why not run on old versions too?
15138
sed '$q' "$ltmain" >> "$cfgfile" \
15139
|| (rm -f "$cfgfile"; exit 1)
15141
if test x"$xsi_shell" = xyes; then
15142
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15146
\ */*) func_dirname_result="${1%/*}${2}" ;;\
15147
\ * ) func_dirname_result="${3}" ;;\
15149
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15150
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15151
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15152
test 0 -eq $? || _lt_function_replace_fail=:
15155
sed -e '/^func_basename ()$/,/^} # func_basename /c\
15158
\ func_basename_result="${1##*/}"\
15159
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15160
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15161
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15162
test 0 -eq $? || _lt_function_replace_fail=:
15165
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15166
func_dirname_and_basename ()\
15169
\ */*) func_dirname_result="${1%/*}${2}" ;;\
15170
\ * ) func_dirname_result="${3}" ;;\
15172
\ func_basename_result="${1##*/}"\
15173
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15174
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15175
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15176
test 0 -eq $? || _lt_function_replace_fail=:
15179
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15182
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15183
\ # positional parameters, so assign one to ordinary parameter first.\
15184
\ func_stripname_result=${3}\
15185
\ func_stripname_result=${func_stripname_result#"${1}"}\
15186
\ func_stripname_result=${func_stripname_result%"${2}"}\
15187
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15188
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15189
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15190
test 0 -eq $? || _lt_function_replace_fail=:
15193
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15194
func_split_long_opt ()\
15196
\ func_split_long_opt_name=${1%%=*}\
15197
\ func_split_long_opt_arg=${1#*=}\
15198
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15199
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15200
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15201
test 0 -eq $? || _lt_function_replace_fail=:
15204
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15205
func_split_short_opt ()\
15207
\ func_split_short_opt_arg=${1#??}\
15208
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15209
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15210
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15211
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15212
test 0 -eq $? || _lt_function_replace_fail=:
15215
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15219
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15220
\ *) func_lo2o_result=${1} ;;\
15222
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15223
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15224
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15225
test 0 -eq $? || _lt_function_replace_fail=:
15228
sed -e '/^func_xform ()$/,/^} # func_xform /c\
15231
func_xform_result=${1%.*}.lo\
15232
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15233
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15234
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15235
test 0 -eq $? || _lt_function_replace_fail=:
15238
sed -e '/^func_arith ()$/,/^} # func_arith /c\
15241
func_arith_result=$(( $* ))\
15242
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15243
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15244
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15245
test 0 -eq $? || _lt_function_replace_fail=:
15248
sed -e '/^func_len ()$/,/^} # func_len /c\
15251
func_len_result=${#1}\
15252
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15253
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15254
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15255
test 0 -eq $? || _lt_function_replace_fail=:
15259
if test x"$lt_shell_append" = xyes; then
15260
sed -e '/^func_append ()$/,/^} # func_append /c\
15263
eval "${1}+=\\${2}"\
15264
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15265
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15266
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15267
test 0 -eq $? || _lt_function_replace_fail=:
15270
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15271
func_append_quoted ()\
15273
\ func_quote_for_eval "${2}"\
15274
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15275
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15276
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15277
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15278
test 0 -eq $? || _lt_function_replace_fail=:
15281
# Save a `func_append' function call where possible by direct use of '+='
15282
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15283
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15284
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15285
test 0 -eq $? || _lt_function_replace_fail=:
15287
# Save a `func_append' function call even when '+=' is not available
15288
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15289
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15290
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15291
test 0 -eq $? || _lt_function_replace_fail=:
15294
if test x"$_lt_function_replace_fail" = x":"; then
15295
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15296
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15300
mv -f "$cfgfile" "$ofile" ||
15301
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15312
ac_clean_files=$ac_clean_files_save
15314
test $ac_write_fail = 0 ||
15315
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15318
# configure is writing to config.log, and then calls config.status.
15319
# config.status does its own redirection, appending to config.log.
15320
# Unfortunately, on DOS this fails, as config.log is still kept open
15321
# by configure, so config.status won't be able to write to it; its
15322
# output is simply discarded. So we exec the FD to /dev/null,
15323
# effectively closing config.log, so it can be properly (re)opened and
15324
# appended to by config.status. When coming back to configure, we
15325
# need to make the FD available again.
15326
if test "$no_create" != yes; then
15328
ac_config_status_args=
15329
test "$silent" = yes &&
15330
ac_config_status_args="$ac_config_status_args --quiet"
15332
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15334
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
15335
# would make configure fail if this is the last instruction.
15336
$ac_cs_success || as_fn_exit 1
15338
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15339
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15340
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}