2
@%:@ Guess values for system-dependent variables and create Makefiles.
3
@%:@ Generated by GNU Autoconf 2.69 for pam-pgsql 0.7.3.2.
5
@%:@ Report bugs to <http://sourceforge.net/tracker/?func=add&group_id=62198&atid=499727>.
8
@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11
@%:@ This configure script is free software; the Free Software Foundation
12
@%:@ gives unlimited permission to copy, distribute and modify it.
13
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
# is contrary to our usage. Disable this feature.
24
alias -g '${1+"$@"}'='"$@"'
27
case `(set -o) 2>/dev/null` in @%:@(
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48
as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
as_echo_n='/usr/ucb/echo -n'
57
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62
expr "X$arg" : "X\\(.*\\)$as_nl";
63
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
as_echo_n='sh -c $as_echo_n_body as_echo'
71
as_echo='sh -c $as_echo_body as_echo'
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
77
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85
# We need space, tab and new line, in precisely that order. Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
91
# Find who we are. Look in the path if we contain no directory separator.
94
*[\\/]* ) as_myself=$0 ;;
95
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99
test -z "$as_dir" && as_dir=.
100
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
107
# in which case we are not to be found in the path.
108
if test "x$as_myself" = x; then
111
if test ! -f "$as_myself"; then
112
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116
# Unset variables that we do not need and which cause bugs (e.g. in
117
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118
# suppresses any "Segmentation fault" message there. '((' could
119
# trigger a bug in pdksh 5.2.14.
120
for as_var in BASH_ENV ENV MAIL MAILPATH
121
do eval test x\${$as_var+set} = xset \
122
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
# Use a proper internal environment variable to ensure we don't fall
138
# into an infinite loop, continuously re-executing ourselves.
139
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140
_as_can_reexec=no; export _as_can_reexec;
141
# We cannot yet assume a decent shell, so we have to provide a
142
# neutralization value for shells without unset; and this also
143
# works around shells that cannot unset nonexistent variables.
144
# Preserve -v and -x to the replacement shell.
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149
*v*x* | *x*v* ) as_opts=-vx ;;
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155
# Admittedly, this is quite paranoid, since all the known shells bail
156
# out after a failed `exec'.
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160
# We don't want this to propagate to other subprocesses.
161
{ _as_can_reexec=; unset _as_can_reexec;}
162
if test "x$CONFIG_SHELL" = x; then
163
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167
# is contrary to our usage. Disable this feature.
168
alias -g '\${1+\"\$@\"}'='\"\$@\"'
171
case \`(set -o) 2>/dev/null\` in @%:@(
173
set -o posix ;; @%:@(
179
as_required="as_fn_return () { (exit \$1); }
180
as_fn_success () { as_fn_return 0; }
181
as_fn_failure () { as_fn_return 1; }
182
as_fn_ret_success () { return 0; }
183
as_fn_ret_failure () { return 1; }
186
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
exitcode=1; echo positional parameters were not saved.
195
test x\$exitcode = x0 || exit 1
197
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206
PATH=/empty FPATH=/empty; export PATH FPATH
207
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209
test \$(( 1 + 1 )) = 2 || exit 1"
210
if (eval "$as_required") 2>/dev/null; then :
215
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223
test -z "$as_dir" && as_dir=.
225
case $as_dir in @%:@(
227
for as_base in sh bash ksh sh5; do
228
# Try only shells that exist, to save several forks.
229
as_shell=$as_dir/$as_base
230
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232
CONFIG_SHELL=$as_shell as_have_required=yes
233
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243
CONFIG_SHELL=$SHELL as_have_required=yes
248
if test "x$CONFIG_SHELL" != x; then :
250
# We cannot yet assume a decent shell, so we have to provide a
251
# neutralization value for shells without unset; and this also
252
# works around shells that cannot unset nonexistent variables.
253
# Preserve -v and -x to the replacement shell.
256
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258
*v*x* | *x*v* ) as_opts=-vx ;;
263
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264
# Admittedly, this is quite paranoid, since all the known shells bail
265
# out after a failed `exec'.
266
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270
if test x$as_have_required = xno; then :
271
$as_echo "$0: This script requires a shell more modern than all"
272
$as_echo "$0: the shells that I found on your system."
273
if test x${ZSH_VERSION+set} = xset ; then
274
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
277
$as_echo "$0: Please tell bug-autoconf@gnu.org and
278
$0: http://sourceforge.net/tracker/?func=add&group_id=62198&atid=499727
279
$0: about your system, including any error possibly output
280
$0: before this message. Then install a modern shell, or
281
$0: manually run the script under such a shell if you do
288
SHELL=${CONFIG_SHELL-/bin/sh}
290
# Unset more variables known to interfere with behavior of common tools.
291
CLICOLOR_FORCE= GREP_OPTIONS=
292
unset CLICOLOR_FORCE GREP_OPTIONS
294
## --------------------- ##
295
## M4sh Shell Functions. ##
296
## --------------------- ##
299
@%:@ Portably unset VAR.
302
{ eval $1=; unset $1;}
306
@%:@ as_fn_set_status STATUS
307
@%:@ -----------------------
308
@%:@ Set @S|@? to STATUS, without forking.
312
} @%:@ as_fn_set_status
314
@%:@ as_fn_exit STATUS
315
@%:@ -----------------
316
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326
@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
331
-*) as_dir=./$as_dir;;
333
test -d "$as_dir" || eval $as_mkdir_p || {
337
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340
as_dirs="'$as_qdir' $as_dirs"
341
as_dir=`$as_dirname -- "$as_dir" ||
342
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343
X"$as_dir" : 'X\(//\)[^/]' \| \
344
X"$as_dir" : 'X\(//\)$' \| \
345
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346
$as_echo X"$as_dir" |
347
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364
test -d "$as_dir" && break
366
test -z "$as_dirs" || eval "mkdir $as_dirs"
367
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372
@%:@ as_fn_executable_p FILE
373
@%:@ -----------------------
374
@%:@ Test if FILE is an executable regular file.
375
as_fn_executable_p ()
377
test -f "$1" && test -x "$1"
378
} @%:@ as_fn_executable_p
379
@%:@ as_fn_append VAR VALUE
380
@%:@ ----------------------
381
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
382
@%:@ advantage of any shell optimizations that allow amortized linear growth over
383
@%:@ repeated appends, instead of the typical quadratic growth present in naive
384
@%:@ implementations.
385
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386
eval 'as_fn_append ()
397
@%:@ as_fn_arith ARG...
398
@%:@ ------------------
399
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
400
@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
401
@%:@ must be portable across @S|@(()) and expr.
402
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
410
as_val=`expr "$@" || test $? -eq 1`
415
@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
416
@%:@ ----------------------------------------
417
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419
@%:@ script with STATUS, using 1 if that was 0.
422
as_status=$1; test $as_status -eq 0 && as_status=1
424
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427
$as_echo "$as_me: error: $2" >&2
428
as_fn_exit $as_status
431
if expr a : '\(a\)' >/dev/null 2>&1 &&
432
test "X`expr 00001 : '.*\(...\)'`" = X001; then
438
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450
as_me=`$as_basename -- "$0" ||
451
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452
X"$0" : 'X\(//\)$' \| \
453
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455
sed '/^.*\/\([^/][^/]*\)\/*$/{
469
# Avoid depending upon Character Ranges.
470
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473
as_cr_digits='0123456789'
474
as_cr_alnum=$as_cr_Letters$as_cr_digits
477
as_lineno_1=$LINENO as_lineno_1a=$LINENO
478
as_lineno_2=$LINENO as_lineno_2a=$LINENO
479
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497
chmod +x "$as_me.lineno" ||
498
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501
# already done that, so ensure we don't try to do so again and fall
502
# in an infinite loop. This has already happened in practice.
503
_as_can_reexec=no; export _as_can_reexec
504
# Don't try to exec as it changes $[0], causing all sort of problems
505
# (the dirname of $[0] is not the place where we might find the
506
# original and so on. Autoconf is especially sensitive to this).
508
# Exit status is that of the last command.
512
ECHO_C= ECHO_N= ECHO_T=
513
case `echo -n x` in @%:@(((((
515
case `echo 'xy\c'` in
516
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
518
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525
rm -f conf$$ conf$$.exe conf$$.file
526
if test -d conf$$.dir; then
527
rm -f conf$$.dir/conf$$.file
530
mkdir conf$$.dir 2>/dev/null
532
if (echo >conf$$.file) 2>/dev/null; then
533
if ln -s conf$$.file conf$$ 2>/dev/null; then
535
# ... but there are two gotchas:
536
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538
# In both cases, we have to default to `cp -pR'.
539
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541
elif ln conf$$.file conf$$ 2>/dev/null; then
549
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550
rmdir conf$$.dir 2>/dev/null
552
if mkdir -p . 2>/dev/null; then
553
as_mkdir_p='mkdir -p "$as_dir"'
555
test -d ./-p && rmdir ./-p
560
as_executable_p=as_fn_executable_p
562
# Sed expression to map a string onto a valid CPP name.
563
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565
# Sed expression to map a string onto a valid variable name.
566
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568
SHELL=${CONFIG_SHELL-/bin/sh}
571
test -n "$DJDIR" || exec 7<&0 </dev/null
575
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576
# so uname gets run too.
577
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
ac_default_prefix=/usr/local
584
ac_config_libobj_dir=.
591
# Identity of this package.
592
PACKAGE_NAME='pam-pgsql'
593
PACKAGE_TARNAME='pam-pgsql'
594
PACKAGE_VERSION='0.7.3.2'
595
PACKAGE_STRING='pam-pgsql 0.7.3.2'
596
PACKAGE_BUGREPORT='http://sourceforge.net/tracker/?func=add&group_id=62198&atid=499727'
599
ac_unique_file="Makefile.am"
600
# Factoring default headers for most tests.
601
ac_includes_default="\
603
#ifdef HAVE_SYS_TYPES_H
604
# include <sys/types.h>
606
#ifdef HAVE_SYS_STAT_H
607
# include <sys/stat.h>
613
# ifdef HAVE_STDLIB_H
618
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623
#ifdef HAVE_STRINGS_H
624
# include <strings.h>
626
#ifdef HAVE_INTTYPES_H
627
# include <inttypes.h>
637
ac_subst_vars='am__EXEEXT_FALSE
702
MAINTAINER_MODE_FALSE
716
INSTALL_STRIP_PROGRAM
758
program_transform_name
771
enable_option_checking
773
enable_maintainer_mode
778
enable_dependency_tracking
783
with_libgcrypt_prefix
785
ac_precious_vars='build_alias
796
# Initialize some variables set by options.
798
ac_init_version=false
799
ac_unrecognized_opts=
801
# The variables have the same names as the options, with
802
# dashes changed to underlines.
810
program_transform_name=s,x,x,
818
# Installation directory options.
819
# These are left unexpanded so users can "make install exec_prefix=/foo"
820
# and all the variables that are supposed to be based on exec_prefix
821
# by default will actually change.
822
# Use braces instead of parens because sh, perl, etc. also accept them.
823
# (The list follows the same order as the GNU Coding Standards.)
824
bindir='${exec_prefix}/bin'
825
sbindir='${exec_prefix}/sbin'
826
libexecdir='${exec_prefix}/libexec'
827
datarootdir='${prefix}/share'
828
datadir='${datarootdir}'
829
sysconfdir='${prefix}/etc'
830
sharedstatedir='${prefix}/com'
831
localstatedir='${prefix}/var'
832
includedir='${prefix}/include'
833
oldincludedir='/usr/include'
834
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
835
infodir='${datarootdir}/info'
840
libdir='${exec_prefix}/lib'
841
localedir='${datarootdir}/locale'
842
mandir='${datarootdir}/man'
848
# If the previous option needs an argument, assign it.
849
if test -n "$ac_prev"; then
850
eval $ac_prev=\$ac_option
856
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861
# Accept the important Cygnus configure options, so we can diagnose typos.
863
case $ac_dashdash$ac_option in
867
-bindir | --bindir | --bindi | --bind | --bin | --bi)
869
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872
-build | --build | --buil | --bui | --bu)
873
ac_prev=build_alias ;;
874
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
875
build_alias=$ac_optarg ;;
877
-cache-file | --cache-file | --cache-fil | --cache-fi \
878
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
879
ac_prev=cache_file ;;
880
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
881
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
882
cache_file=$ac_optarg ;;
885
cache_file=config.cache ;;
887
-datadir | --datadir | --datadi | --datad)
889
-datadir=* | --datadir=* | --datadi=* | --datad=*)
890
datadir=$ac_optarg ;;
892
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
893
| --dataroo | --dataro | --datar)
894
ac_prev=datarootdir ;;
895
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
896
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
897
datarootdir=$ac_optarg ;;
899
-disable-* | --disable-*)
900
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
901
# Reject names that are not valid shell variable names.
902
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903
as_fn_error $? "invalid feature name: $ac_useropt"
904
ac_useropt_orig=$ac_useropt
905
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906
case $ac_user_opts in
910
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
911
ac_unrecognized_sep=', ';;
913
eval enable_$ac_useropt=no ;;
915
-docdir | --docdir | --docdi | --doc | --do)
917
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
922
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925
-enable-* | --enable-*)
926
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
927
# Reject names that are not valid shell variable names.
928
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929
as_fn_error $? "invalid feature name: $ac_useropt"
930
ac_useropt_orig=$ac_useropt
931
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932
case $ac_user_opts in
936
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
937
ac_unrecognized_sep=', ';;
939
eval enable_$ac_useropt=\$ac_optarg ;;
941
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943
| --exec | --exe | --ex)
944
ac_prev=exec_prefix ;;
945
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947
| --exec=* | --exe=* | --ex=*)
948
exec_prefix=$ac_optarg ;;
950
-gas | --gas | --ga | --g)
951
# Obsolete; use --with-gas.
954
-help | --help | --hel | --he | -h)
956
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957
ac_init_help=recursive ;;
958
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959
ac_init_help=short ;;
961
-host | --host | --hos | --ho)
962
ac_prev=host_alias ;;
963
-host=* | --host=* | --hos=* | --ho=*)
964
host_alias=$ac_optarg ;;
966
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
968
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
970
htmldir=$ac_optarg ;;
972
-includedir | --includedir | --includedi | --included | --include \
973
| --includ | --inclu | --incl | --inc)
974
ac_prev=includedir ;;
975
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976
| --includ=* | --inclu=* | --incl=* | --inc=*)
977
includedir=$ac_optarg ;;
979
-infodir | --infodir | --infodi | --infod | --info | --inf)
981
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982
infodir=$ac_optarg ;;
984
-libdir | --libdir | --libdi | --libd)
986
-libdir=* | --libdir=* | --libdi=* | --libd=*)
989
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990
| --libexe | --libex | --libe)
991
ac_prev=libexecdir ;;
992
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993
| --libexe=* | --libex=* | --libe=*)
994
libexecdir=$ac_optarg ;;
996
-localedir | --localedir | --localedi | --localed | --locale)
998
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999
localedir=$ac_optarg ;;
1001
-localstatedir | --localstatedir | --localstatedi | --localstated \
1002
| --localstate | --localstat | --localsta | --localst | --locals)
1003
ac_prev=localstatedir ;;
1004
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1005
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1006
localstatedir=$ac_optarg ;;
1008
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1010
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011
mandir=$ac_optarg ;;
1013
-nfp | --nfp | --nf)
1014
# Obsolete; use --without-fp.
1017
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018
| --no-cr | --no-c | -n)
1021
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027
| --oldin | --oldi | --old | --ol | --o)
1028
ac_prev=oldincludedir ;;
1029
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032
oldincludedir=$ac_optarg ;;
1034
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1036
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037
prefix=$ac_optarg ;;
1039
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1040
| --program-pre | --program-pr | --program-p)
1041
ac_prev=program_prefix ;;
1042
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1043
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044
program_prefix=$ac_optarg ;;
1046
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1047
| --program-suf | --program-su | --program-s)
1048
ac_prev=program_suffix ;;
1049
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1050
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051
program_suffix=$ac_optarg ;;
1053
-program-transform-name | --program-transform-name \
1054
| --program-transform-nam | --program-transform-na \
1055
| --program-transform-n | --program-transform- \
1056
| --program-transform | --program-transfor \
1057
| --program-transfo | --program-transf \
1058
| --program-trans | --program-tran \
1059
| --progr-tra | --program-tr | --program-t)
1060
ac_prev=program_transform_name ;;
1061
-program-transform-name=* | --program-transform-name=* \
1062
| --program-transform-nam=* | --program-transform-na=* \
1063
| --program-transform-n=* | --program-transform-=* \
1064
| --program-transform=* | --program-transfor=* \
1065
| --program-transfo=* | --program-transf=* \
1066
| --program-trans=* | --program-tran=* \
1067
| --progr-tra=* | --program-tr=* | --program-t=*)
1068
program_transform_name=$ac_optarg ;;
1070
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1072
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073
pdfdir=$ac_optarg ;;
1075
-psdir | --psdir | --psdi | --psd | --ps)
1077
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081
| -silent | --silent | --silen | --sile | --sil)
1084
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1086
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1088
sbindir=$ac_optarg ;;
1090
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1091
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092
| --sharedst | --shareds | --shared | --share | --shar \
1094
ac_prev=sharedstatedir ;;
1095
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1099
sharedstatedir=$ac_optarg ;;
1101
-site | --site | --sit)
1103
-site=* | --site=* | --sit=*)
1106
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1108
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109
srcdir=$ac_optarg ;;
1111
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112
| --syscon | --sysco | --sysc | --sys | --sy)
1113
ac_prev=sysconfdir ;;
1114
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1116
sysconfdir=$ac_optarg ;;
1118
-target | --target | --targe | --targ | --tar | --ta | --t)
1119
ac_prev=target_alias ;;
1120
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121
target_alias=$ac_optarg ;;
1123
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1126
-version | --version | --versio | --versi | --vers | -V)
1127
ac_init_version=: ;;
1130
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1131
# Reject names that are not valid shell variable names.
1132
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133
as_fn_error $? "invalid package name: $ac_useropt"
1134
ac_useropt_orig=$ac_useropt
1135
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136
case $ac_user_opts in
1140
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141
ac_unrecognized_sep=', ';;
1143
eval with_$ac_useropt=\$ac_optarg ;;
1145
-without-* | --without-*)
1146
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147
# Reject names that are not valid shell variable names.
1148
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149
as_fn_error $? "invalid package name: $ac_useropt"
1150
ac_useropt_orig=$ac_useropt
1151
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152
case $ac_user_opts in
1156
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157
ac_unrecognized_sep=', ';;
1159
eval with_$ac_useropt=no ;;
1162
# Obsolete; use --with-x.
1165
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166
| --x-incl | --x-inc | --x-in | --x-i)
1167
ac_prev=x_includes ;;
1168
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170
x_includes=$ac_optarg ;;
1172
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1173
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174
ac_prev=x_libraries ;;
1175
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177
x_libraries=$ac_optarg ;;
1179
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1180
Try \`$0 --help' for more information"
1184
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185
# Reject names that are not valid shell variable names.
1186
case $ac_envvar in #(
1187
'' | [0-9]* | *[!_$as_cr_alnum]* )
1188
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1190
eval $ac_envvar=\$ac_optarg
1191
export $ac_envvar ;;
1194
# FIXME: should be removed in autoconf 3.0.
1195
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1204
if test -n "$ac_prev"; then
1205
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206
as_fn_error $? "missing argument to $ac_option"
1209
if test -n "$ac_unrecognized_opts"; then
1210
case $enable_option_checking in
1212
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1213
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1217
# Check all directory arguments for consistency.
1218
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219
datadir sysconfdir sharedstatedir localstatedir includedir \
1220
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221
libdir localedir mandir
1223
eval ac_val=\$$ac_var
1224
# Remove trailing slashes.
1227
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228
eval $ac_var=\$ac_val;;
1230
# Be sure to have absolute directory names.
1232
[\\/$]* | ?:[\\/]* ) continue;;
1233
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1235
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1238
# There might be people who depend on the old broken behavior: `$host'
1239
# used to hold the argument of --host etc.
1240
# FIXME: To remove some day.
1243
target=$target_alias
1245
# FIXME: To remove some day.
1246
if test "x$host_alias" != x; then
1247
if test "x$build_alias" = x; then
1248
cross_compiling=maybe
1249
elif test "x$build_alias" != "x$host_alias"; then
1255
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257
test "$silent" = yes && exec 6>/dev/null
1260
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1261
ac_ls_di=`ls -di .` &&
1262
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1263
as_fn_error $? "working directory cannot be determined"
1264
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1265
as_fn_error $? "pwd does not report name of working directory"
1268
# Find the source files, if location was not specified.
1269
if test -z "$srcdir"; then
1270
ac_srcdir_defaulted=yes
1271
# Try the directory containing this script, then the parent directory.
1272
ac_confdir=`$as_dirname -- "$as_myself" ||
1273
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274
X"$as_myself" : 'X\(//\)[^/]' \| \
1275
X"$as_myself" : 'X\(//\)$' \| \
1276
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1277
$as_echo X"$as_myself" |
1278
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296
if test ! -r "$srcdir/$ac_unique_file"; then
1300
ac_srcdir_defaulted=no
1302
if test ! -r "$srcdir/$ac_unique_file"; then
1303
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1306
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1310
# When building in place, set srcdir=.
1311
if test "$ac_abs_confdir" = "$ac_pwd"; then
1314
# Remove unnecessary trailing slashes from srcdir.
1315
# Double slashes in file names in object file debugging info
1316
# mess up M-x gdb in Emacs.
1318
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320
for ac_var in $ac_precious_vars; do
1321
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322
eval ac_env_${ac_var}_value=\$${ac_var}
1323
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328
# Report the --help message.
1330
if test "$ac_init_help" = "long"; then
1331
# Omit some internal or obsolete options to make the list less imposing.
1332
# This message is too long to be a string in the A/UX 3.1 sh.
1334
\`configure' configures pam-pgsql 0.7.3.2 to adapt to many kinds of systems.
1336
Usage: $0 [OPTION]... [VAR=VALUE]...
1338
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339
VAR=VALUE. See below for descriptions of some of the useful variables.
1341
Defaults for the options are specified in brackets.
1344
-h, --help display this help and exit
1345
--help=short display options specific to this package
1346
--help=recursive display the short help of all the included packages
1347
-V, --version display version information and exit
1348
-q, --quiet, --silent do not print \`checking ...' messages
1349
--cache-file=FILE cache test results in FILE [disabled]
1350
-C, --config-cache alias for \`--cache-file=config.cache'
1351
-n, --no-create do not create output files
1352
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1354
Installation directories:
1355
--prefix=PREFIX install architecture-independent files in PREFIX
1356
@<:@@S|@ac_default_prefix@:>@
1357
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1360
By default, \`make install' will install all the files in
1361
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1362
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363
for instance \`--prefix=\$HOME'.
1365
For better control, use the options below.
1367
Fine tuning of the installation directories:
1368
--bindir=DIR user executables [EPREFIX/bin]
1369
--sbindir=DIR system admin executables [EPREFIX/sbin]
1370
--libexecdir=DIR program executables [EPREFIX/libexec]
1371
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1372
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1373
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1374
--libdir=DIR object code libraries [EPREFIX/lib]
1375
--includedir=DIR C header files [PREFIX/include]
1376
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1377
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1378
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1379
--infodir=DIR info documentation [DATAROOTDIR/info]
1380
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1381
--mandir=DIR man documentation [DATAROOTDIR/man]
1382
--docdir=DIR documentation root @<:@DATAROOTDIR/doc/pam-pgsql@:>@
1383
--htmldir=DIR html documentation [DOCDIR]
1384
--dvidir=DIR dvi documentation [DOCDIR]
1385
--pdfdir=DIR pdf documentation [DOCDIR]
1386
--psdir=DIR ps documentation [DOCDIR]
1392
--program-prefix=PREFIX prepend PREFIX to installed program names
1393
--program-suffix=SUFFIX append SUFFIX to installed program names
1394
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1397
--build=BUILD configure for building on BUILD [guessed]
1398
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1402
if test -n "$ac_init_help"; then
1403
case $ac_init_help in
1404
short | recursive ) echo "Configuration of pam-pgsql 0.7.3.2:";;
1409
--disable-option-checking ignore unrecognized --enable/--with options
1410
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1411
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1412
--enable-silent-rules less verbose build output (undo: "make V=1")
1413
--disable-silent-rules verbose build output (undo: "make V=0")
1414
--enable-maintainer-mode
1415
enable make rules and dependencies not useful (and
1416
sometimes confusing) to the casual installer
1417
--enable-static@<:@=PKGS@:>@ build static libraries @<:@default=no@:>@
1418
--enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1419
--enable-fast-install@<:@=PKGS@:>@
1420
optimize for fast installation @<:@default=yes@:>@
1421
--enable-dependency-tracking
1422
do not reject slow dependency extractors
1423
--disable-dependency-tracking
1424
speeds up one-time build
1425
--disable-libtool-lock avoid locking (might break parallel builds)
1428
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1430
--with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use
1432
--with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1433
--with-sysroot=DIR Search for dependent libraries within DIR
1434
(or the compiler's sysroot if not specified).
1435
--with-postgresql=@<:@ARG@:>@ use PostgreSQL library @<:@default=yes@:>@, optionally
1436
specify path to pg_config
1437
--with-libgcrypt-prefix=PFX
1438
prefix where LIBGCRYPT is installed (optional)
1440
Some influential environment variables:
1441
CC C compiler command
1442
CFLAGS C compiler flags
1443
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1444
nonstandard directory <lib dir>
1445
LIBS libraries to pass to the linker, e.g. -l<library>
1446
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1447
you have headers in a nonstandard directory <include dir>
1450
Use these variables to override the choices made by `configure' or to help
1451
it to find libraries and programs with nonstandard names/locations.
1453
Report bugs to <http://sourceforge.net/tracker/?func=add&group_id=62198&atid=499727>.
1458
if test "$ac_init_help" = "recursive"; then
1459
# If there are subdirs, report their specific --help.
1460
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1461
test -d "$ac_dir" ||
1462
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1467
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1470
# A ".." for each directory in $ac_dir_suffix.
1471
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1472
case $ac_top_builddir_sub in
1473
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477
ac_abs_top_builddir=$ac_pwd
1478
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479
# for backward compatibility:
1480
ac_top_builddir=$ac_top_build_prefix
1483
.) # We are building in place.
1485
ac_top_srcdir=$ac_top_builddir_sub
1486
ac_abs_top_srcdir=$ac_pwd ;;
1487
[\\/]* | ?:[\\/]* ) # Absolute name.
1488
ac_srcdir=$srcdir$ac_dir_suffix;
1489
ac_top_srcdir=$srcdir
1490
ac_abs_top_srcdir=$srcdir ;;
1492
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493
ac_top_srcdir=$ac_top_build_prefix$srcdir
1494
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498
cd "$ac_dir" || { ac_status=$?; continue; }
1499
# Check for guested configure.
1500
if test -f "$ac_srcdir/configure.gnu"; then
1502
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503
elif test -f "$ac_srcdir/configure"; then
1505
$SHELL "$ac_srcdir/configure" --help=recursive
1507
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509
cd "$ac_pwd" || { ac_status=$?; break; }
1513
test -n "$ac_init_help" && exit $ac_status
1514
if $ac_init_version; then
1516
pam-pgsql configure 0.7.3.2
1517
generated by GNU Autoconf 2.69
1519
Copyright (C) 2012 Free Software Foundation, Inc.
1520
This configure script is free software; the Free Software Foundation
1521
gives unlimited permission to copy, distribute and modify it.
1526
## ------------------------ ##
1527
## Autoconf initialization. ##
1528
## ------------------------ ##
1530
@%:@ ac_fn_c_try_compile LINENO
1531
@%:@ --------------------------
1532
@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1533
ac_fn_c_try_compile ()
1535
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536
rm -f conftest.$ac_objext
1537
if { { ac_try="$ac_compile"
1539
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540
*) ac_try_echo=$ac_try;;
1542
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543
$as_echo "$ac_try_echo"; } >&5
1544
(eval "$ac_compile") 2>conftest.err
1546
if test -s conftest.err; then
1547
grep -v '^ *+' conftest.err >conftest.er1
1548
cat conftest.er1 >&5
1549
mv -f conftest.er1 conftest.err
1551
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552
test $ac_status = 0; } && {
1553
test -z "$ac_c_werror_flag" ||
1554
test ! -s conftest.err
1555
} && test -s conftest.$ac_objext; then :
1558
$as_echo "$as_me: failed program was:" >&5
1559
sed 's/^/| /' conftest.$ac_ext >&5
1563
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1564
as_fn_set_status $ac_retval
1566
} @%:@ ac_fn_c_try_compile
1568
@%:@ ac_fn_c_try_link LINENO
1569
@%:@ -----------------------
1570
@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1573
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574
rm -f conftest.$ac_objext conftest$ac_exeext
1575
if { { ac_try="$ac_link"
1577
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578
*) ac_try_echo=$ac_try;;
1580
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581
$as_echo "$ac_try_echo"; } >&5
1582
(eval "$ac_link") 2>conftest.err
1584
if test -s conftest.err; then
1585
grep -v '^ *+' conftest.err >conftest.er1
1586
cat conftest.er1 >&5
1587
mv -f conftest.er1 conftest.err
1589
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590
test $ac_status = 0; } && {
1591
test -z "$ac_c_werror_flag" ||
1592
test ! -s conftest.err
1593
} && test -s conftest$ac_exeext && {
1594
test "$cross_compiling" = yes ||
1595
test -x conftest$ac_exeext
1599
$as_echo "$as_me: failed program was:" >&5
1600
sed 's/^/| /' conftest.$ac_ext >&5
1604
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1605
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1606
# interfere with the next link command; also delete a directory that is
1607
# left behind by Apple's compiler. We do this before executing the actions.
1608
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1609
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610
as_fn_set_status $ac_retval
1612
} @%:@ ac_fn_c_try_link
1614
@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1615
@%:@ -------------------------------------------------------
1616
@%:@ Tests whether HEADER exists and can be compiled using the include files in
1617
@%:@ INCLUDES, setting the cache variable VAR accordingly.
1618
ac_fn_c_check_header_compile ()
1620
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1622
$as_echo_n "checking for $2... " >&6; }
1623
if eval \${$3+:} false; then :
1624
$as_echo_n "(cached) " >&6
1626
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1627
/* end confdefs.h. */
1631
if ac_fn_c_try_compile "$LINENO"; then :
1636
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1639
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1640
$as_echo "$ac_res" >&6; }
1641
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643
} @%:@ ac_fn_c_check_header_compile
1645
@%:@ ac_fn_c_try_cpp LINENO
1646
@%:@ ----------------------
1647
@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1650
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651
if { { ac_try="$ac_cpp conftest.$ac_ext"
1653
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654
*) ac_try_echo=$ac_try;;
1656
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657
$as_echo "$ac_try_echo"; } >&5
1658
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1660
if test -s conftest.err; then
1661
grep -v '^ *+' conftest.err >conftest.er1
1662
cat conftest.er1 >&5
1663
mv -f conftest.er1 conftest.err
1665
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666
test $ac_status = 0; } > conftest.i && {
1667
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1668
test ! -s conftest.err
1672
$as_echo "$as_me: failed program was:" >&5
1673
sed 's/^/| /' conftest.$ac_ext >&5
1677
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678
as_fn_set_status $ac_retval
1680
} @%:@ ac_fn_c_try_cpp
1682
@%:@ ac_fn_c_try_run LINENO
1683
@%:@ ----------------------
1684
@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1685
@%:@ that executables *can* be run.
1688
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689
if { { ac_try="$ac_link"
1691
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692
*) ac_try_echo=$ac_try;;
1694
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695
$as_echo "$ac_try_echo"; } >&5
1696
(eval "$ac_link") 2>&5
1698
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1700
{ { case "(($ac_try" in
1701
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702
*) ac_try_echo=$ac_try;;
1704
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705
$as_echo "$ac_try_echo"; } >&5
1706
(eval "$ac_try") 2>&5
1708
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709
test $ac_status = 0; }; }; then :
1712
$as_echo "$as_me: program exited with status $ac_status" >&5
1713
$as_echo "$as_me: failed program was:" >&5
1714
sed 's/^/| /' conftest.$ac_ext >&5
1716
ac_retval=$ac_status
1718
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720
as_fn_set_status $ac_retval
1722
} @%:@ ac_fn_c_try_run
1724
@%:@ ac_fn_c_check_func LINENO FUNC VAR
1725
@%:@ ----------------------------------
1726
@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1727
ac_fn_c_check_func ()
1729
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731
$as_echo_n "checking for $2... " >&6; }
1732
if eval \${$3+:} false; then :
1733
$as_echo_n "(cached) " >&6
1735
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736
/* end confdefs.h. */
1737
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1738
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1739
#define $2 innocuous_$2
1741
/* System header to define __stub macros and hopefully few prototypes,
1742
which can conflict with char $2 (); below.
1743
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1744
<limits.h> exists even on freestanding compilers. */
1747
# include <limits.h>
1749
# include <assert.h>
1754
/* Override any GCC internal prototype to avoid an error.
1755
Use char because int might match the return type of a GCC
1756
builtin and then its argument prototype would still apply. */
1761
/* The GNU C library defines this for functions which it implements
1762
to always fail with ENOSYS. Some functions are actually named
1763
something starting with __ and the normal name is an alias. */
1764
#if defined __stub_$2 || defined __stub___$2
1776
if ac_fn_c_try_link "$LINENO"; then :
1781
rm -f core conftest.err conftest.$ac_objext \
1782
conftest$ac_exeext conftest.$ac_ext
1785
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786
$as_echo "$ac_res" >&6; }
1787
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
} @%:@ ac_fn_c_check_func
1790
cat >config.log <<_ACEOF
1791
This file contains any messages produced by compilers while
1792
running configure, to aid debugging if configure makes a mistake.
1794
It was created by pam-pgsql $as_me 0.7.3.2, which was
1795
generated by GNU Autoconf 2.69. Invocation command line was
1807
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1808
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1809
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1810
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1811
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1813
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1814
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1816
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1817
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1818
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1819
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1820
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1821
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1822
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1826
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1830
test -z "$as_dir" && as_dir=.
1831
$as_echo "PATH: $as_dir"
1847
# Keep a trace of the command line.
1848
# Strip out --no-create and --no-recursion so they do not pile up.
1849
# Strip out --silent because we don't want to record it for future runs.
1850
# Also quote any args containing shell meta-characters.
1851
# Make two passes to allow for proper duplicate-argument suppression.
1855
ac_must_keep_next=false
1861
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1862
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1863
| -silent | --silent | --silen | --sile | --sil)
1866
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1869
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1871
as_fn_append ac_configure_args1 " '$ac_arg'"
1872
if test $ac_must_keep_next = true; then
1873
ac_must_keep_next=false # Got value, back to normal.
1876
*=* | --config-cache | -C | -disable-* | --disable-* \
1877
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1878
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1879
| -with-* | --with-* | -without-* | --without-* | --x)
1880
case "$ac_configure_args0 " in
1881
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1884
-* ) ac_must_keep_next=true ;;
1887
as_fn_append ac_configure_args " '$ac_arg'"
1892
{ ac_configure_args0=; unset ac_configure_args0;}
1893
{ ac_configure_args1=; unset ac_configure_args1;}
1895
# When interrupted or exit'd, cleanup temporary files, and complete
1896
# config.log. We remove comments because anyway the quotes in there
1897
# would cause problems or look ugly.
1898
# WARNING: Use '\'' to represent an apostrophe within the trap.
1899
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1900
trap 'exit_status=$?
1901
# Save into config.log some information that might help in debugging.
1905
$as_echo "## ---------------- ##
1906
## Cache variables. ##
1907
## ---------------- ##"
1909
# The following way of writing the cache mishandles newlines in values,
1911
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1912
eval ac_val=\$$ac_var
1916
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1917
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1920
_ | IFS | as_nl) ;; #(
1921
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1922
*) { eval $ac_var=; unset $ac_var;} ;;
1927
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1928
*${as_nl}ac_space=\ *)
1930
"s/'\''/'\''\\\\'\'''\''/g;
1931
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1934
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1941
$as_echo "## ----------------- ##
1942
## Output variables. ##
1943
## ----------------- ##"
1945
for ac_var in $ac_subst_vars
1947
eval ac_val=\$$ac_var
1949
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1951
$as_echo "$ac_var='\''$ac_val'\''"
1955
if test -n "$ac_subst_files"; then
1956
$as_echo "## ------------------- ##
1957
## File substitutions. ##
1958
## ------------------- ##"
1960
for ac_var in $ac_subst_files
1962
eval ac_val=\$$ac_var
1964
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1966
$as_echo "$ac_var='\''$ac_val'\''"
1971
if test -s confdefs.h; then
1972
$as_echo "## ----------- ##
1979
test "$ac_signal" != 0 &&
1980
$as_echo "$as_me: caught signal $ac_signal"
1981
$as_echo "$as_me: exit $exit_status"
1983
rm -f core *.core core.conftest.* &&
1984
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1987
for ac_signal in 1 2 13 15; do
1988
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1992
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1993
rm -f -r conftest* confdefs.h
1995
$as_echo "/* confdefs.h */" > confdefs.h
1997
# Predefined preprocessor variables.
1999
cat >>confdefs.h <<_ACEOF
2000
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
2003
cat >>confdefs.h <<_ACEOF
2004
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2007
cat >>confdefs.h <<_ACEOF
2008
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2011
cat >>confdefs.h <<_ACEOF
2012
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
2015
cat >>confdefs.h <<_ACEOF
2016
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2019
cat >>confdefs.h <<_ACEOF
2020
@%:@define PACKAGE_URL "$PACKAGE_URL"
2024
# Let the site file select an alternate cache file if it wants to.
2025
# Prefer an explicitly selected file to automatically selected ones.
2028
if test -n "$CONFIG_SITE"; then
2029
# We do not want a PATH search for config.site.
2030
case $CONFIG_SITE in @%:@((
2031
-*) ac_site_file1=./$CONFIG_SITE;;
2032
*/*) ac_site_file1=$CONFIG_SITE;;
2033
*) ac_site_file1=./$CONFIG_SITE;;
2035
elif test "x$prefix" != xNONE; then
2036
ac_site_file1=$prefix/share/config.site
2037
ac_site_file2=$prefix/etc/config.site
2039
ac_site_file1=$ac_default_prefix/share/config.site
2040
ac_site_file2=$ac_default_prefix/etc/config.site
2042
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2044
test "x$ac_site_file" = xNONE && continue
2045
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2046
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2047
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2048
sed 's/^/| /' "$ac_site_file" >&5
2050
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2051
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2052
as_fn_error $? "failed to load site script $ac_site_file
2053
See \`config.log' for more details" "$LINENO" 5; }
2057
if test -r "$cache_file"; then
2058
# Some versions of bash will fail to source /dev/null (special files
2059
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2060
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2061
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2062
$as_echo "$as_me: loading cache $cache_file" >&6;}
2064
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2065
*) . "./$cache_file";;
2069
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2070
$as_echo "$as_me: creating cache $cache_file" >&6;}
2074
as_fn_append ac_header_list " security/pam_modules.h"
2075
as_fn_append ac_header_list " security/openpam.h"
2076
as_fn_append ac_header_list " security/pam_misc.h"
2077
# Check that the precious variables saved in the cache have kept the same
2079
ac_cache_corrupted=false
2080
for ac_var in $ac_precious_vars; do
2081
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2082
eval ac_new_set=\$ac_env_${ac_var}_set
2083
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2084
eval ac_new_val=\$ac_env_${ac_var}_value
2085
case $ac_old_set,$ac_new_set in
2087
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2088
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2089
ac_cache_corrupted=: ;;
2091
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2092
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2093
ac_cache_corrupted=: ;;
2096
if test "x$ac_old_val" != "x$ac_new_val"; then
2097
# differences in whitespace do not lead to failure.
2098
ac_old_val_w=`echo x $ac_old_val`
2099
ac_new_val_w=`echo x $ac_new_val`
2100
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2101
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2102
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2103
ac_cache_corrupted=:
2105
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2106
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2107
eval $ac_var=\$ac_old_val
2109
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2110
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2111
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2112
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2115
# Pass precious variables to config.status.
2116
if test "$ac_new_set" = set; then
2118
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2119
*) ac_arg=$ac_var=$ac_new_val ;;
2121
case " $ac_configure_args " in
2122
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2123
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2127
if $ac_cache_corrupted; then
2128
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2129
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2130
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2131
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2132
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2134
## -------------------- ##
2135
## Main body of script. ##
2136
## -------------------- ##
2139
ac_cpp='$CPP $CPPFLAGS'
2140
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2141
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2142
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2148
ac_config_headers="$ac_config_headers config.h"
2151
am__api_version='1.14'
2154
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2155
if test -f "$ac_dir/install-sh"; then
2157
ac_install_sh="$ac_aux_dir/install-sh -c"
2159
elif test -f "$ac_dir/install.sh"; then
2161
ac_install_sh="$ac_aux_dir/install.sh -c"
2163
elif test -f "$ac_dir/shtool"; then
2165
ac_install_sh="$ac_aux_dir/shtool install -c"
2169
if test -z "$ac_aux_dir"; then
2170
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2173
# These three variables are undocumented and unsupported,
2174
# and are intended to be withdrawn in a future Autoconf release.
2175
# They can cause serious problems if a builder's source tree is in a directory
2176
# whose full name contains unusual characters.
2177
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2178
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2179
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2182
# Find a good install program. We prefer a C program (faster),
2183
# so one script is as good as another. But avoid the broken or
2184
# incompatible versions:
2185
# SysV /etc/install, /usr/sbin/install
2186
# SunOS /usr/etc/install
2187
# IRIX /sbin/install
2189
# AmigaOS /C/install, which installs bootblocks on floppy discs
2190
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2191
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2192
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2193
# OS/2's system install, which has a completely different semantic
2194
# ./install, which can be erroneously created by make from ./install.sh.
2195
# Reject install programs that cannot install multiple files.
2196
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2197
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2198
if test -z "$INSTALL"; then
2199
if ${ac_cv_path_install+:} false; then :
2200
$as_echo_n "(cached) " >&6
2202
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206
test -z "$as_dir" && as_dir=.
2207
# Account for people who put trailing slashes in PATH elements.
2208
case $as_dir/ in @%:@((
2209
./ | .// | /[cC]/* | \
2210
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2211
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2214
# OSF1 and SCO ODT 3.0 have their own names for install.
2215
# Don't use installbsd from OSF since it installs stuff as root
2217
for ac_prog in ginstall scoinst install; do
2218
for ac_exec_ext in '' $ac_executable_extensions; do
2219
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2220
if test $ac_prog = install &&
2221
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2222
# AIX install. It has an incompatible calling convention.
2224
elif test $ac_prog = install &&
2225
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2226
# program-specific install script used by HP pwplus--don't use.
2229
rm -rf conftest.one conftest.two conftest.dir
2230
echo one > conftest.one
2231
echo two > conftest.two
2233
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2234
test -s conftest.one && test -s conftest.two &&
2235
test -s conftest.dir/conftest.one &&
2236
test -s conftest.dir/conftest.two
2238
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2251
rm -rf conftest.one conftest.two conftest.dir
2254
if test "${ac_cv_path_install+set}" = set; then
2255
INSTALL=$ac_cv_path_install
2257
# As a last resort, use the slow shell script. Don't cache a
2258
# value for INSTALL within a source directory, because that will
2259
# break other packages using the cache if that directory is
2260
# removed, or if the value is a relative name.
2261
INSTALL=$ac_install_sh
2264
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2265
$as_echo "$INSTALL" >&6; }
2267
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2268
# It thinks the first close brace ends the variable substitution.
2269
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2271
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2273
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2275
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2276
$as_echo_n "checking whether build environment is sane... " >&6; }
2277
# Reject unsafe characters in $srcdir or the absolute working directory
2278
# name. Accept space and tab only in the latter.
2282
*[\\\"\#\$\&\'\`$am_lf]*)
2283
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2286
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2287
as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2290
# Do 'set' in a subshell so we don't clobber the current shell's
2291
# arguments. Must try -L first in case configure is actually a
2292
# symlink; some systems play weird games with the mod time of symlinks
2293
# (eg FreeBSD returns the mod time of the symlink's containing
2297
for am_try in 1 2; do
2298
echo "timestamp, slept: $am_has_slept" > conftest.file
2299
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2300
if test "$*" = "X"; then
2302
set X `ls -t "$srcdir/configure" conftest.file`
2304
if test "$*" != "X $srcdir/configure conftest.file" \
2305
&& test "$*" != "X conftest.file $srcdir/configure"; then
2307
# If neither matched, then we have a broken ls. This can happen
2308
# if, for instance, CONFIG_SHELL is bash and it inherits a
2309
# broken ls alias from the environment. This has actually
2310
# happened. Such a system could not be considered "sane".
2311
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2312
alias in your environment" "$LINENO" 5
2314
if test "$2" = conftest.file || test $am_try -eq 2; then
2321
test "$2" = conftest.file
2327
as_fn_error $? "newly created file is older than distributed files!
2328
Check your system clock" "$LINENO" 5
2330
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2331
$as_echo "yes" >&6; }
2332
# If we didn't sleep, we still need to ensure time stamps of config.status and
2333
# generated files are strictly newer.
2335
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2342
test "$program_prefix" != NONE &&
2343
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2344
# Use a double $ so make ignores it.
2345
test "$program_suffix" != NONE &&
2346
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2347
# Double any \ or $.
2348
# By default was `s,x,x', remove it if useless.
2349
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2350
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2352
# expand $ac_aux_dir to an absolute path
2353
am_aux_dir=`cd $ac_aux_dir && pwd`
2355
if test x"${MISSING+set}" != xset; then
2358
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2360
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2363
# Use eval to expand $SHELL
2364
if eval "$MISSING --is-lightweight"; then
2365
am_missing_run="$MISSING "
2368
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2369
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2372
if test x"${install_sh}" != xset; then
2375
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2377
install_sh="\${SHELL} $am_aux_dir/install-sh"
2381
# Installed binaries are usually stripped using 'strip' when the user
2382
# run "make install-strip". However 'strip' might not be the right
2383
# tool to use in cross-compilation environments, therefore Automake
2384
# will honor the 'STRIP' environment variable to overrule this program.
2385
if test "$cross_compiling" != no; then
2386
if test -n "$ac_tool_prefix"; then
2387
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2388
set dummy ${ac_tool_prefix}strip; ac_word=$2
2389
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2390
$as_echo_n "checking for $ac_word... " >&6; }
2391
if ${ac_cv_prog_STRIP+:} false; then :
2392
$as_echo_n "(cached) " >&6
2394
if test -n "$STRIP"; then
2395
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2397
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401
test -z "$as_dir" && as_dir=.
2402
for ac_exec_ext in '' $ac_executable_extensions; do
2403
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2404
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2405
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2414
STRIP=$ac_cv_prog_STRIP
2415
if test -n "$STRIP"; then
2416
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2417
$as_echo "$STRIP" >&6; }
2419
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2420
$as_echo "no" >&6; }
2425
if test -z "$ac_cv_prog_STRIP"; then
2427
# Extract the first word of "strip", so it can be a program name with args.
2428
set dummy strip; ac_word=$2
2429
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2430
$as_echo_n "checking for $ac_word... " >&6; }
2431
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2432
$as_echo_n "(cached) " >&6
2434
if test -n "$ac_ct_STRIP"; then
2435
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2437
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441
test -z "$as_dir" && as_dir=.
2442
for ac_exec_ext in '' $ac_executable_extensions; do
2443
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2444
ac_cv_prog_ac_ct_STRIP="strip"
2445
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2454
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2455
if test -n "$ac_ct_STRIP"; then
2456
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2457
$as_echo "$ac_ct_STRIP" >&6; }
2459
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2460
$as_echo "no" >&6; }
2463
if test "x$ac_ct_STRIP" = x; then
2466
case $cross_compiling:$ac_tool_warned in
2468
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2469
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2470
ac_tool_warned=yes ;;
2475
STRIP="$ac_cv_prog_STRIP"
2479
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2481
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2482
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2483
if test -z "$MKDIR_P"; then
2484
if ${ac_cv_path_mkdir+:} false; then :
2485
$as_echo_n "(cached) " >&6
2487
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2491
test -z "$as_dir" && as_dir=.
2492
for ac_prog in mkdir gmkdir; do
2493
for ac_exec_ext in '' $ac_executable_extensions; do
2494
as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2495
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2496
'mkdir (GNU coreutils) '* | \
2497
'mkdir (coreutils) '* | \
2498
'mkdir (fileutils) '4.1*)
2499
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2509
test -d ./--version && rmdir ./--version
2510
if test "${ac_cv_path_mkdir+set}" = set; then
2511
MKDIR_P="$ac_cv_path_mkdir -p"
2513
# As a last resort, use the slow shell script. Don't cache a
2514
# value for MKDIR_P within a source directory, because that will
2515
# break other packages using the cache if that directory is
2516
# removed, or if the value is a relative name.
2517
MKDIR_P="$ac_install_sh -d"
2520
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2521
$as_echo "$MKDIR_P" >&6; }
2523
for ac_prog in gawk mawk nawk awk
2525
# Extract the first word of "$ac_prog", so it can be a program name with args.
2526
set dummy $ac_prog; ac_word=$2
2527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2528
$as_echo_n "checking for $ac_word... " >&6; }
2529
if ${ac_cv_prog_AWK+:} false; then :
2530
$as_echo_n "(cached) " >&6
2532
if test -n "$AWK"; then
2533
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2535
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539
test -z "$as_dir" && as_dir=.
2540
for ac_exec_ext in '' $ac_executable_extensions; do
2541
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2542
ac_cv_prog_AWK="$ac_prog"
2543
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2553
if test -n "$AWK"; then
2554
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2555
$as_echo "$AWK" >&6; }
2557
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2558
$as_echo "no" >&6; }
2562
test -n "$AWK" && break
2565
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2566
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2568
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2569
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2570
$as_echo_n "(cached) " >&6
2572
cat >conftest.make <<\_ACEOF
2575
@echo '@@@%%%=$(MAKE)=@@@%%%'
2577
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2578
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2580
eval ac_cv_prog_make_${ac_make}_set=yes;;
2582
eval ac_cv_prog_make_${ac_make}_set=no;;
2586
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2587
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2588
$as_echo "yes" >&6; }
2591
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2592
$as_echo "no" >&6; }
2593
SET_MAKE="MAKE=${MAKE-make}"
2596
rm -rf .tst 2>/dev/null
2597
mkdir .tst 2>/dev/null
2598
if test -d .tst; then
2603
rmdir .tst 2>/dev/null
2605
@%:@ Check whether --enable-silent-rules was given.
2606
if test "${enable_silent_rules+set}" = set; then :
2607
enableval=$enable_silent_rules;
2610
case $enable_silent_rules in @%:@ (((
2611
yes) AM_DEFAULT_VERBOSITY=0;;
2612
no) AM_DEFAULT_VERBOSITY=1;;
2613
*) AM_DEFAULT_VERBOSITY=1;;
2615
am_make=${MAKE-make}
2616
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2617
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2618
if ${am_cv_make_support_nested_variables+:} false; then :
2619
$as_echo_n "(cached) " >&6
2621
if $as_echo 'TRUE=$(BAR$(V))
2627
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2628
am_cv_make_support_nested_variables=yes
2630
am_cv_make_support_nested_variables=no
2633
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2634
$as_echo "$am_cv_make_support_nested_variables" >&6; }
2635
if test $am_cv_make_support_nested_variables = yes; then
2637
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2639
AM_V=$AM_DEFAULT_VERBOSITY
2640
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2644
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2645
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2646
# is not polluted with repeated "-I."
2647
am__isrc=' -I$(srcdir)'
2648
# test to see if srcdir already configured
2649
if test -f $srcdir/config.status; then
2650
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2654
# test whether we have cygpath
2655
if test -z "$CYGPATH_W"; then
2656
if (cygpath --version) >/dev/null 2>/dev/null; then
2657
CYGPATH_W='cygpath -w'
2664
# Define the identity of the package.
2669
cat >>confdefs.h <<_ACEOF
2670
@%:@define PACKAGE "$PACKAGE"
2674
cat >>confdefs.h <<_ACEOF
2675
@%:@define VERSION "$VERSION"
2678
# Some tools Automake needs.
2680
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2683
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2686
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2689
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2692
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2694
# For better backward compatibility. To be removed once Automake 1.9.x
2695
# dies out for good. For more background, see:
2696
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2697
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2698
mkdir_p='$(MKDIR_P)'
2700
# We need awk for the "check" target. The system "awk" is bad on
2702
# Always define AMTAR for backward compatibility. Yes, it's still used
2703
# in the wild :-( We should find a proper way to deprecate it ...
2707
# We'll loop over all known methods to create a tar archive until one works.
2708
_am_tools='gnutar pax cpio none'
2710
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2717
# POSIX will say in a future version that running "rm -f" with no argument
2718
# is OK; and we want to be able to make that assumption in our Makefile
2719
# recipes. So use an aggressive probe to check that the usage we want is
2720
# actually supported "in the wild" to an acceptable degree.
2721
# See automake bug#10828.
2722
# To make any issue more visible, cause the running configure to be aborted
2723
# by default if the 'rm' program in use doesn't match our expectations; the
2724
# user can still override this though.
2725
if rm -f && rm -fr && rm -rf; then : OK; else
2729
Your 'rm' program seems unable to run without file operands specified
2730
on the command line, even when the '-f' option is present. This is contrary
2731
to the behaviour of most rm programs out there, and not conforming with
2732
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2734
Please tell bug-automake@gnu.org about your system, including the value
2735
of your $PATH and any error possibly output before this message. This
2736
can help us improve future automake versions.
2739
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2740
echo 'Configuration will proceed anyway, since you have set the' >&2
2741
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2745
Aborting the configuration process, to ensure you take notice of the issue.
2747
You can download and install GNU coreutils to get an 'rm' implementation
2748
that behaves properly: <http://www.gnu.org/software/coreutils/>.
2750
If you want to complete the configuration process using your problematic
2751
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2752
to "yes", and re-run configure.
2755
as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2758
@%:@ Check whether --enable-silent-rules was given.
2759
if test "${enable_silent_rules+set}" = set; then :
2760
enableval=$enable_silent_rules;
2763
case $enable_silent_rules in @%:@ (((
2764
yes) AM_DEFAULT_VERBOSITY=0;;
2765
no) AM_DEFAULT_VERBOSITY=1;;
2766
*) AM_DEFAULT_VERBOSITY=0;;
2768
am_make=${MAKE-make}
2769
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2770
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2771
if ${am_cv_make_support_nested_variables+:} false; then :
2772
$as_echo_n "(cached) " >&6
2774
if $as_echo 'TRUE=$(BAR$(V))
2780
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2781
am_cv_make_support_nested_variables=yes
2783
am_cv_make_support_nested_variables=no
2786
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2787
$as_echo "$am_cv_make_support_nested_variables" >&6; }
2788
if test $am_cv_make_support_nested_variables = yes; then
2790
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2792
AM_V=$AM_DEFAULT_VERBOSITY
2793
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2798
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2799
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2800
@%:@ Check whether --enable-maintainer-mode was given.
2801
if test "${enable_maintainer_mode+set}" = set; then :
2802
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2804
USE_MAINTAINER_MODE=no
2807
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2808
$as_echo "$USE_MAINTAINER_MODE" >&6; }
2809
if test $USE_MAINTAINER_MODE = yes; then
2810
MAINTAINER_MODE_TRUE=
2811
MAINTAINER_MODE_FALSE='#'
2813
MAINTAINER_MODE_TRUE='#'
2814
MAINTAINER_MODE_FALSE=
2817
MAINT=$MAINTAINER_MODE_TRUE
2823
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2824
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2829
macro_version='2.4.2'
2830
macro_revision='1.3337'
2844
ltmain="$ac_aux_dir/ltmain.sh"
2846
# Make sure we can run config.sub.
2847
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2848
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2850
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2851
$as_echo_n "checking build system type... " >&6; }
2852
if ${ac_cv_build+:} false; then :
2853
$as_echo_n "(cached) " >&6
2855
ac_build_alias=$build_alias
2856
test "x$ac_build_alias" = x &&
2857
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2858
test "x$ac_build_alias" = x &&
2859
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2860
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2861
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2864
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2865
$as_echo "$ac_cv_build" >&6; }
2866
case $ac_cv_build in
2868
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2871
ac_save_IFS=$IFS; IFS='-'
2877
# Remember, the first character of IFS is used to create $*,
2878
# except with old shells:
2881
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2884
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2885
$as_echo_n "checking host system type... " >&6; }
2886
if ${ac_cv_host+:} false; then :
2887
$as_echo_n "(cached) " >&6
2889
if test "x$host_alias" = x; then
2890
ac_cv_host=$ac_cv_build
2892
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2893
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2897
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2898
$as_echo "$ac_cv_host" >&6; }
2901
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2904
ac_save_IFS=$IFS; IFS='-'
2910
# Remember, the first character of IFS is used to create $*,
2911
# except with old shells:
2914
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2917
# Backslashify metacharacters that are still active within
2918
# double-quoted strings.
2919
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2921
# Same as above, but do not quote variable references.
2922
double_quote_subst='s/\(["`\\]\)/\\\1/g'
2924
# Sed substitution to delay expansion of an escaped shell variable in a
2925
# double_quote_subst'ed string.
2926
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2928
# Sed substitution to delay expansion of an escaped single quote.
2929
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2931
# Sed substitution to avoid accidental globbing in evaled expressions
2932
no_glob_subst='s/\*/\\\*/g'
2934
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2935
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2936
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2938
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2939
$as_echo_n "checking how to print strings... " >&6; }
2940
# Test print first, because it will be a builtin if present.
2941
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2942
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2944
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2947
# Use this function as a fallback that always works.
2948
func_fallback_echo ()
2950
eval 'cat <<_LTECHO_EOF
2954
ECHO='func_fallback_echo'
2957
# func_echo_all arg...
2958
# Invoke $ECHO with all args, space-separated.
2965
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2966
$as_echo "printf" >&6; } ;;
2967
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2968
$as_echo "print -r" >&6; } ;;
2969
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2970
$as_echo "cat" >&6; } ;;
2986
DEPDIR="${am__leading_dot}deps"
2988
ac_config_commands="$ac_config_commands depfiles"
2991
am_make=${MAKE-make}
2992
cat > confinc << 'END'
2994
@echo this is the am__doit target
2997
# If we don't find an include directive, just comment out the code.
2998
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2999
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3003
# First try GNU make style include.
3004
echo "include confinc" > confmf
3005
# Ignore all kinds of additional output from 'make'.
3006
case `$am_make -s -f confmf 2> /dev/null` in #(
3007
*the\ am__doit\ target*)
3013
# Now try BSD make style include.
3014
if test "$am__include" = "#"; then
3015
echo '.include "confinc"' > confmf
3016
case `$am_make -s -f confmf 2> /dev/null` in #(
3017
*the\ am__doit\ target*)
3018
am__include=.include
3026
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3027
$as_echo "$_am_result" >&6; }
3028
rm -f confinc confmf
3030
@%:@ Check whether --enable-dependency-tracking was given.
3031
if test "${enable_dependency_tracking+set}" = set; then :
3032
enableval=$enable_dependency_tracking;
3035
if test "x$enable_dependency_tracking" != xno; then
3036
am_depcomp="$ac_aux_dir/depcomp"
3040
if test "x$enable_dependency_tracking" != xno; then
3050
ac_cpp='$CPP $CPPFLAGS'
3051
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3052
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3053
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3054
if test -n "$ac_tool_prefix"; then
3055
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3056
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058
$as_echo_n "checking for $ac_word... " >&6; }
3059
if ${ac_cv_prog_CC+:} false; then :
3060
$as_echo_n "(cached) " >&6
3062
if test -n "$CC"; then
3063
ac_cv_prog_CC="$CC" # Let the user override the test.
3065
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069
test -z "$as_dir" && as_dir=.
3070
for ac_exec_ext in '' $ac_executable_extensions; do
3071
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3072
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3073
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3083
if test -n "$CC"; then
3084
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3085
$as_echo "$CC" >&6; }
3087
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088
$as_echo "no" >&6; }
3093
if test -z "$ac_cv_prog_CC"; then
3095
# Extract the first word of "gcc", so it can be a program name with args.
3096
set dummy gcc; ac_word=$2
3097
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098
$as_echo_n "checking for $ac_word... " >&6; }
3099
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3100
$as_echo_n "(cached) " >&6
3102
if test -n "$ac_ct_CC"; then
3103
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3105
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109
test -z "$as_dir" && as_dir=.
3110
for ac_exec_ext in '' $ac_executable_extensions; do
3111
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3112
ac_cv_prog_ac_ct_CC="gcc"
3113
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3123
if test -n "$ac_ct_CC"; then
3124
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3125
$as_echo "$ac_ct_CC" >&6; }
3127
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128
$as_echo "no" >&6; }
3131
if test "x$ac_ct_CC" = x; then
3134
case $cross_compiling:$ac_tool_warned in
3136
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3137
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3138
ac_tool_warned=yes ;;
3146
if test -z "$CC"; then
3147
if test -n "$ac_tool_prefix"; then
3148
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3149
set dummy ${ac_tool_prefix}cc; ac_word=$2
3150
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151
$as_echo_n "checking for $ac_word... " >&6; }
3152
if ${ac_cv_prog_CC+:} false; then :
3153
$as_echo_n "(cached) " >&6
3155
if test -n "$CC"; then
3156
ac_cv_prog_CC="$CC" # Let the user override the test.
3158
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162
test -z "$as_dir" && as_dir=.
3163
for ac_exec_ext in '' $ac_executable_extensions; do
3164
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3165
ac_cv_prog_CC="${ac_tool_prefix}cc"
3166
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176
if test -n "$CC"; then
3177
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3178
$as_echo "$CC" >&6; }
3180
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181
$as_echo "no" >&6; }
3187
if test -z "$CC"; then
3188
# Extract the first word of "cc", so it can be a program name with args.
3189
set dummy cc; ac_word=$2
3190
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191
$as_echo_n "checking for $ac_word... " >&6; }
3192
if ${ac_cv_prog_CC+:} false; then :
3193
$as_echo_n "(cached) " >&6
3195
if test -n "$CC"; then
3196
ac_cv_prog_CC="$CC" # Let the user override the test.
3199
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203
test -z "$as_dir" && as_dir=.
3204
for ac_exec_ext in '' $ac_executable_extensions; do
3205
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3206
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3207
ac_prog_rejected=yes
3211
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218
if test $ac_prog_rejected = yes; then
3219
# We found a bogon in the path, so make sure we never use it.
3220
set dummy $ac_cv_prog_CC
3222
if test $@%:@ != 0; then
3223
# We chose a different compiler from the bogus one.
3224
# However, it has the same basename, so the bogon will be chosen
3225
# first if we set CC to just the basename; use the full file name.
3227
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3233
if test -n "$CC"; then
3234
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3235
$as_echo "$CC" >&6; }
3237
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238
$as_echo "no" >&6; }
3243
if test -z "$CC"; then
3244
if test -n "$ac_tool_prefix"; then
3245
for ac_prog in cl.exe
3247
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3248
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3249
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250
$as_echo_n "checking for $ac_word... " >&6; }
3251
if ${ac_cv_prog_CC+:} false; then :
3252
$as_echo_n "(cached) " >&6
3254
if test -n "$CC"; then
3255
ac_cv_prog_CC="$CC" # Let the user override the test.
3257
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261
test -z "$as_dir" && as_dir=.
3262
for ac_exec_ext in '' $ac_executable_extensions; do
3263
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3264
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3265
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275
if test -n "$CC"; then
3276
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3277
$as_echo "$CC" >&6; }
3279
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280
$as_echo "no" >&6; }
3284
test -n "$CC" && break
3287
if test -z "$CC"; then
3289
for ac_prog in cl.exe
3291
# Extract the first word of "$ac_prog", so it can be a program name with args.
3292
set dummy $ac_prog; ac_word=$2
3293
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3294
$as_echo_n "checking for $ac_word... " >&6; }
3295
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3296
$as_echo_n "(cached) " >&6
3298
if test -n "$ac_ct_CC"; then
3299
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3301
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305
test -z "$as_dir" && as_dir=.
3306
for ac_exec_ext in '' $ac_executable_extensions; do
3307
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3308
ac_cv_prog_ac_ct_CC="$ac_prog"
3309
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3319
if test -n "$ac_ct_CC"; then
3320
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3321
$as_echo "$ac_ct_CC" >&6; }
3323
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324
$as_echo "no" >&6; }
3328
test -n "$ac_ct_CC" && break
3331
if test "x$ac_ct_CC" = x; then
3334
case $cross_compiling:$ac_tool_warned in
3336
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3337
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3338
ac_tool_warned=yes ;;
3347
test -z "$CC" && { { $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 $? "no acceptable C compiler found in \$PATH
3350
See \`config.log' for more details" "$LINENO" 5; }
3352
# Provide some information about the compiler.
3353
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3356
for ac_option in --version -v -V -qversion; do
3357
{ { ac_try="$ac_compiler $ac_option >&5"
3359
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360
*) ac_try_echo=$ac_try;;
3362
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3363
$as_echo "$ac_try_echo"; } >&5
3364
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3366
if test -s conftest.err; then
3368
... rest of stderr output deleted ...
3369
10q' conftest.err >conftest.er1
3370
cat conftest.er1 >&5
3372
rm -f conftest.er1 conftest.err
3373
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374
test $ac_status = 0; }
3377
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378
/* end confdefs.h. */
3388
ac_clean_files_save=$ac_clean_files
3389
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3390
# Try to create an executable without -o first, disregard a.out.
3391
# It will help us diagnose broken compilers, and finding out an intuition
3393
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3394
$as_echo_n "checking whether the C compiler works... " >&6; }
3395
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3397
# The possible output files:
3398
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3401
for ac_file in $ac_files
3404
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3405
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3410
if { { ac_try="$ac_link_default"
3412
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413
*) ac_try_echo=$ac_try;;
3415
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3416
$as_echo "$ac_try_echo"; } >&5
3417
(eval "$ac_link_default") 2>&5
3419
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3420
test $ac_status = 0; }; then :
3421
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3422
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3423
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3424
# so that the user can short-circuit this test for compilers unknown to
3426
for ac_file in $ac_files ''
3428
test -f "$ac_file" || continue
3430
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3433
# We found the default executable, but exeext='' is most
3437
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3439
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3441
# We set ac_cv_exeext here because the later test for it is not
3442
# safe: cross compilers may not add the suffix if given an `-o'
3443
# argument, so we may need to know it at that point already.
3444
# Even if this section looks crufty: it has the advantage of
3451
test "$ac_cv_exeext" = no && ac_cv_exeext=
3456
if test -z "$ac_file"; then :
3457
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458
$as_echo "no" >&6; }
3459
$as_echo "$as_me: failed program was:" >&5
3460
sed 's/^/| /' conftest.$ac_ext >&5
3462
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3463
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3464
as_fn_error 77 "C compiler cannot create executables
3465
See \`config.log' for more details" "$LINENO" 5; }
3467
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3468
$as_echo "yes" >&6; }
3470
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3471
$as_echo_n "checking for C compiler default output file name... " >&6; }
3472
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3473
$as_echo "$ac_file" >&6; }
3474
ac_exeext=$ac_cv_exeext
3476
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3477
ac_clean_files=$ac_clean_files_save
3478
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3479
$as_echo_n "checking for suffix of executables... " >&6; }
3480
if { { ac_try="$ac_link"
3482
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483
*) ac_try_echo=$ac_try;;
3485
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3486
$as_echo "$ac_try_echo"; } >&5
3487
(eval "$ac_link") 2>&5
3489
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3490
test $ac_status = 0; }; then :
3491
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3492
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3493
# work properly (i.e., refer to `conftest.exe'), while it won't with
3495
for ac_file in conftest.exe conftest conftest.*; do
3496
test -f "$ac_file" || continue
3498
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3499
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3505
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3506
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3507
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3508
See \`config.log' for more details" "$LINENO" 5; }
3510
rm -f conftest conftest$ac_cv_exeext
3511
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3512
$as_echo "$ac_cv_exeext" >&6; }
3514
rm -f conftest.$ac_ext
3515
EXEEXT=$ac_cv_exeext
3517
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518
/* end confdefs.h. */
3519
@%:@include <stdio.h>
3523
FILE *f = fopen ("conftest.out", "w");
3524
return ferror (f) || fclose (f) != 0;
3530
ac_clean_files="$ac_clean_files conftest.out"
3531
# Check that the compiler produces executables we can run. If not, either
3532
# the compiler is broken, or we cross compile.
3533
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3534
$as_echo_n "checking whether we are cross compiling... " >&6; }
3535
if test "$cross_compiling" != yes; then
3536
{ { ac_try="$ac_link"
3538
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539
*) ac_try_echo=$ac_try;;
3541
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3542
$as_echo "$ac_try_echo"; } >&5
3543
(eval "$ac_link") 2>&5
3545
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3546
test $ac_status = 0; }
3547
if { ac_try='./conftest$ac_cv_exeext'
3548
{ { case "(($ac_try" in
3549
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550
*) ac_try_echo=$ac_try;;
3552
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3553
$as_echo "$ac_try_echo"; } >&5
3554
(eval "$ac_try") 2>&5
3556
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3557
test $ac_status = 0; }; }; then
3560
if test "$cross_compiling" = maybe; then
3563
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3564
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3565
as_fn_error $? "cannot run C compiled programs.
3566
If you meant to cross compile, use \`--host'.
3567
See \`config.log' for more details" "$LINENO" 5; }
3571
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3572
$as_echo "$cross_compiling" >&6; }
3574
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3575
ac_clean_files=$ac_clean_files_save
3576
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3577
$as_echo_n "checking for suffix of object files... " >&6; }
3578
if ${ac_cv_objext+:} false; then :
3579
$as_echo_n "(cached) " >&6
3581
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582
/* end confdefs.h. */
3592
rm -f conftest.o conftest.obj
3593
if { { ac_try="$ac_compile"
3595
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596
*) ac_try_echo=$ac_try;;
3598
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599
$as_echo "$ac_try_echo"; } >&5
3600
(eval "$ac_compile") 2>&5
3602
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603
test $ac_status = 0; }; then :
3604
for ac_file in conftest.o conftest.obj conftest.*; do
3605
test -f "$ac_file" || continue;
3607
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3608
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3613
$as_echo "$as_me: failed program was:" >&5
3614
sed 's/^/| /' conftest.$ac_ext >&5
3616
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3617
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3618
as_fn_error $? "cannot compute suffix of object files: cannot compile
3619
See \`config.log' for more details" "$LINENO" 5; }
3621
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3623
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3624
$as_echo "$ac_cv_objext" >&6; }
3625
OBJEXT=$ac_cv_objext
3627
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3628
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3629
if ${ac_cv_c_compiler_gnu+:} false; then :
3630
$as_echo_n "(cached) " >&6
3632
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633
/* end confdefs.h. */
3646
if ac_fn_c_try_compile "$LINENO"; then :
3651
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3655
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3656
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3657
if test $ac_compiler_gnu = yes; then
3662
ac_test_CFLAGS=${CFLAGS+set}
3663
ac_save_CFLAGS=$CFLAGS
3664
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3665
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3666
if ${ac_cv_prog_cc_g+:} false; then :
3667
$as_echo_n "(cached) " >&6
3669
ac_save_c_werror_flag=$ac_c_werror_flag
3670
ac_c_werror_flag=yes
3673
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674
/* end confdefs.h. */
3684
if ac_fn_c_try_compile "$LINENO"; then :
3688
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689
/* end confdefs.h. */
3699
if ac_fn_c_try_compile "$LINENO"; then :
3702
ac_c_werror_flag=$ac_save_c_werror_flag
3704
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705
/* end confdefs.h. */
3715
if ac_fn_c_try_compile "$LINENO"; then :
3718
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723
ac_c_werror_flag=$ac_save_c_werror_flag
3725
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3726
$as_echo "$ac_cv_prog_cc_g" >&6; }
3727
if test "$ac_test_CFLAGS" = set; then
3728
CFLAGS=$ac_save_CFLAGS
3729
elif test $ac_cv_prog_cc_g = yes; then
3730
if test "$GCC" = yes; then
3736
if test "$GCC" = yes; then
3742
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3743
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3744
if ${ac_cv_prog_cc_c89+:} false; then :
3745
$as_echo_n "(cached) " >&6
3747
ac_cv_prog_cc_c89=no
3749
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750
/* end confdefs.h. */
3754
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3755
struct buf { int x; };
3756
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3757
static char *e (p, i)
3763
static char *f (char * (*g) (char **, int), char **p, ...)
3768
s = g (p, va_arg (v,int));
3773
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3774
function prototypes and stuff, but not '\xHH' hex character constants.
3775
These don't provoke an error unfortunately, instead are silently treated
3776
as 'x'. The following induces an error, until -std is added to get
3777
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3778
array size at least. It's necessary to write '\x00'==0 to get something
3779
that's true only with -std. */
3780
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3782
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3783
inside strings and character constants. */
3785
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3787
int test (int i, double x);
3788
struct s1 {int (*f) (int a);};
3789
struct s2 {int (*f) (double a);};
3790
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3796
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3801
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3802
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3804
CC="$ac_save_CC $ac_arg"
3805
if ac_fn_c_try_compile "$LINENO"; then :
3806
ac_cv_prog_cc_c89=$ac_arg
3808
rm -f core conftest.err conftest.$ac_objext
3809
test "x$ac_cv_prog_cc_c89" != "xno" && break
3811
rm -f conftest.$ac_ext
3816
case "x$ac_cv_prog_cc_c89" in
3818
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3819
$as_echo "none needed" >&6; } ;;
3821
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3822
$as_echo "unsupported" >&6; } ;;
3824
CC="$CC $ac_cv_prog_cc_c89"
3825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3826
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3828
if test "x$ac_cv_prog_cc_c89" != xno; then :
3833
ac_cpp='$CPP $CPPFLAGS'
3834
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3835
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3836
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3839
ac_cpp='$CPP $CPPFLAGS'
3840
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3843
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3844
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3845
if ${am_cv_prog_cc_c_o+:} false; then :
3846
$as_echo_n "(cached) " >&6
3848
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849
/* end confdefs.h. */
3859
# Make sure it works both with $CC and with simple cc.
3860
# Following AC_PROG_CC_C_O, we do the test twice because some
3861
# compilers refuse to overwrite an existing .o file with -o,
3862
# though they will create one.
3863
am_cv_prog_cc_c_o=yes
3865
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3866
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3868
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869
(exit $ac_status); } \
3870
&& test -f conftest2.$ac_objext; then
3873
am_cv_prog_cc_c_o=no
3877
rm -f core conftest*
3880
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3881
$as_echo "$am_cv_prog_cc_c_o" >&6; }
3882
if test "$am_cv_prog_cc_c_o" != yes; then
3883
# Losing compiler, so override with the script.
3884
# FIXME: It is wrong to rewrite CC.
3885
# But if we don't then we get into trouble of one sort or another.
3886
# A longer-term fix would be to have automake use am__CC in this case,
3887
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3888
CC="$am_aux_dir/compile $CC"
3891
ac_cpp='$CPP $CPPFLAGS'
3892
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3893
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3894
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3897
depcc="$CC" am_compiler_list=
3899
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3900
$as_echo_n "checking dependency style of $depcc... " >&6; }
3901
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3902
$as_echo_n "(cached) " >&6
3904
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3905
# We make a subdir and do the tests there. Otherwise we can end up
3906
# making bogus files that we don't know about and never remove. For
3907
# instance it was reported that on HP-UX the gcc test will end up
3908
# making a dummy file named 'D' -- because '-MD' means "put the output
3912
# Copy depcomp to subdir because otherwise we won't find it if we're
3913
# using a relative directory.
3914
cp "$am_depcomp" conftest.dir
3916
# We will build objects and dependencies in a subdirectory because
3917
# it helps to detect inapplicable dependency modes. For instance
3918
# both Tru64's cc and ICC support -MD to output dependencies as a
3919
# side effect of compilation, but ICC will put the dependencies in
3920
# the current directory while Tru64 will put them in the object
3924
am_cv_CC_dependencies_compiler_type=none
3925
if test "$am_compiler_list" = ""; then
3926
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3929
case " $depcc " in #(
3930
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3933
for depmode in $am_compiler_list; do
3934
# Setup a source with many dependencies, because some compilers
3935
# like to wrap large dependency lists on column 80 (with \), and
3936
# we should not choose a depcomp mode which is confused by this.
3938
# We need to recreate these files for each test, as the compiler may
3939
# overwrite some of them when testing with obscure command lines.
3940
# This happens at least with the AIX C compiler.
3942
for i in 1 2 3 4 5 6; do
3943
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3944
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3945
# Solaris 10 /bin/sh.
3946
echo '/* dummy */' > sub/conftst$i.h
3948
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3950
# We check with '-c' and '-o' for the sake of the "dashmstdout"
3951
# mode. It turns out that the SunPro C++ compiler does not properly
3952
# handle '-M -o', and we need to detect this. Also, some Intel
3953
# versions had trouble with output in subdirs.
3954
am__obj=sub/conftest.${OBJEXT-o}
3955
am__minus_obj="-o $am__obj"
3958
# This depmode causes a compiler race in universal mode.
3959
test "$am__universal" = false || continue
3962
# After this tag, mechanisms are not by side-effect, so they'll
3963
# only be used when explicitly requested.
3964
if test "x$enable_dependency_tracking" = xyes; then
3970
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3971
# This compiler won't grok '-c -o', but also, the minuso test has
3972
# not run yet. These depmodes are late enough in the game, and
3973
# so weak that their functioning should not be impacted.
3974
am__obj=conftest.${OBJEXT-o}
3979
if depmode=$depmode \
3980
source=sub/conftest.c object=$am__obj \
3981
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3982
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3983
>/dev/null 2>conftest.err &&
3984
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3985
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3986
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3987
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3988
# icc doesn't choke on unknown options, it will just issue warnings
3989
# or remarks (even with -Werror). So we grep stderr for any message
3990
# that says an option was ignored or not supported.
3991
# When given -MP, icc 7.0 and 7.1 complain thusly:
3992
# icc: Command line warning: ignoring option '-M'; no argument required
3993
# The diagnosis changed in icc 8.0:
3994
# icc: Command line remark: option '-MP' not supported
3995
if (grep 'ignoring option' conftest.err ||
3996
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3997
am_cv_CC_dependencies_compiler_type=$depmode
4006
am_cv_CC_dependencies_compiler_type=none
4010
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4011
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4012
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4015
test "x$enable_dependency_tracking" != xno \
4016
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4018
am__fastdepCC_FALSE='#'
4020
am__fastdepCC_TRUE='#'
4021
am__fastdepCC_FALSE=
4025
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4026
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4027
if ${ac_cv_path_SED+:} false; then :
4028
$as_echo_n "(cached) " >&6
4030
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4031
for ac_i in 1 2 3 4 5 6 7; do
4032
ac_script="$ac_script$as_nl$ac_script"
4034
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4035
{ ac_script=; unset ac_script;}
4036
if test -z "$SED"; then
4037
ac_path_SED_found=false
4038
# Loop through the user's path and test for each of PROGNAME-LIST
4039
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043
test -z "$as_dir" && as_dir=.
4044
for ac_prog in sed gsed; do
4045
for ac_exec_ext in '' $ac_executable_extensions; do
4046
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4047
as_fn_executable_p "$ac_path_SED" || continue
4048
# Check for GNU ac_path_SED and select it if it is found.
4049
# Check for GNU $ac_path_SED
4050
case `"$ac_path_SED" --version 2>&1` in
4052
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4055
$as_echo_n 0123456789 >"conftest.in"
4058
cat "conftest.in" "conftest.in" >"conftest.tmp"
4059
mv "conftest.tmp" "conftest.in"
4060
cp "conftest.in" "conftest.nl"
4061
$as_echo '' >> "conftest.nl"
4062
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4063
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4064
as_fn_arith $ac_count + 1 && ac_count=$as_val
4065
if test $ac_count -gt ${ac_path_SED_max-0}; then
4066
# Best one so far, save it but keep looking for a better one
4067
ac_cv_path_SED="$ac_path_SED"
4068
ac_path_SED_max=$ac_count
4070
# 10*(2^10) chars as input seems more than enough
4071
test $ac_count -gt 10 && break
4073
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4076
$ac_path_SED_found && break 3
4081
if test -z "$ac_cv_path_SED"; then
4082
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4089
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4090
$as_echo "$ac_cv_path_SED" >&6; }
4091
SED="$ac_cv_path_SED"
4094
test -z "$SED" && SED=sed
4095
Xsed="$SED -e 1s/^X//"
4107
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4108
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4109
if ${ac_cv_path_GREP+:} false; then :
4110
$as_echo_n "(cached) " >&6
4112
if test -z "$GREP"; then
4113
ac_path_GREP_found=false
4114
# Loop through the user's path and test for each of PROGNAME-LIST
4115
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4119
test -z "$as_dir" && as_dir=.
4120
for ac_prog in grep ggrep; do
4121
for ac_exec_ext in '' $ac_executable_extensions; do
4122
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4123
as_fn_executable_p "$ac_path_GREP" || continue
4124
# Check for GNU ac_path_GREP and select it if it is found.
4125
# Check for GNU $ac_path_GREP
4126
case `"$ac_path_GREP" --version 2>&1` in
4128
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4131
$as_echo_n 0123456789 >"conftest.in"
4134
cat "conftest.in" "conftest.in" >"conftest.tmp"
4135
mv "conftest.tmp" "conftest.in"
4136
cp "conftest.in" "conftest.nl"
4137
$as_echo 'GREP' >> "conftest.nl"
4138
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4139
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4140
as_fn_arith $ac_count + 1 && ac_count=$as_val
4141
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4142
# Best one so far, save it but keep looking for a better one
4143
ac_cv_path_GREP="$ac_path_GREP"
4144
ac_path_GREP_max=$ac_count
4146
# 10*(2^10) chars as input seems more than enough
4147
test $ac_count -gt 10 && break
4149
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4152
$ac_path_GREP_found && break 3
4157
if test -z "$ac_cv_path_GREP"; then
4158
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4161
ac_cv_path_GREP=$GREP
4165
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4166
$as_echo "$ac_cv_path_GREP" >&6; }
4167
GREP="$ac_cv_path_GREP"
4170
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4171
$as_echo_n "checking for egrep... " >&6; }
4172
if ${ac_cv_path_EGREP+:} false; then :
4173
$as_echo_n "(cached) " >&6
4175
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4176
then ac_cv_path_EGREP="$GREP -E"
4178
if test -z "$EGREP"; then
4179
ac_path_EGREP_found=false
4180
# Loop through the user's path and test for each of PROGNAME-LIST
4181
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4185
test -z "$as_dir" && as_dir=.
4186
for ac_prog in egrep; do
4187
for ac_exec_ext in '' $ac_executable_extensions; do
4188
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4189
as_fn_executable_p "$ac_path_EGREP" || continue
4190
# Check for GNU ac_path_EGREP and select it if it is found.
4191
# Check for GNU $ac_path_EGREP
4192
case `"$ac_path_EGREP" --version 2>&1` in
4194
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4197
$as_echo_n 0123456789 >"conftest.in"
4200
cat "conftest.in" "conftest.in" >"conftest.tmp"
4201
mv "conftest.tmp" "conftest.in"
4202
cp "conftest.in" "conftest.nl"
4203
$as_echo 'EGREP' >> "conftest.nl"
4204
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4205
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4206
as_fn_arith $ac_count + 1 && ac_count=$as_val
4207
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4208
# Best one so far, save it but keep looking for a better one
4209
ac_cv_path_EGREP="$ac_path_EGREP"
4210
ac_path_EGREP_max=$ac_count
4212
# 10*(2^10) chars as input seems more than enough
4213
test $ac_count -gt 10 && break
4215
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4218
$ac_path_EGREP_found && break 3
4223
if test -z "$ac_cv_path_EGREP"; then
4224
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4227
ac_cv_path_EGREP=$EGREP
4232
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4233
$as_echo "$ac_cv_path_EGREP" >&6; }
4234
EGREP="$ac_cv_path_EGREP"
4237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4238
$as_echo_n "checking for fgrep... " >&6; }
4239
if ${ac_cv_path_FGREP+:} false; then :
4240
$as_echo_n "(cached) " >&6
4242
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4243
then ac_cv_path_FGREP="$GREP -F"
4245
if test -z "$FGREP"; then
4246
ac_path_FGREP_found=false
4247
# Loop through the user's path and test for each of PROGNAME-LIST
4248
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4252
test -z "$as_dir" && as_dir=.
4253
for ac_prog in fgrep; do
4254
for ac_exec_ext in '' $ac_executable_extensions; do
4255
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4256
as_fn_executable_p "$ac_path_FGREP" || continue
4257
# Check for GNU ac_path_FGREP and select it if it is found.
4258
# Check for GNU $ac_path_FGREP
4259
case `"$ac_path_FGREP" --version 2>&1` in
4261
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4264
$as_echo_n 0123456789 >"conftest.in"
4267
cat "conftest.in" "conftest.in" >"conftest.tmp"
4268
mv "conftest.tmp" "conftest.in"
4269
cp "conftest.in" "conftest.nl"
4270
$as_echo 'FGREP' >> "conftest.nl"
4271
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4272
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4273
as_fn_arith $ac_count + 1 && ac_count=$as_val
4274
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4275
# Best one so far, save it but keep looking for a better one
4276
ac_cv_path_FGREP="$ac_path_FGREP"
4277
ac_path_FGREP_max=$ac_count
4279
# 10*(2^10) chars as input seems more than enough
4280
test $ac_count -gt 10 && break
4282
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4285
$ac_path_FGREP_found && break 3
4290
if test -z "$ac_cv_path_FGREP"; then
4291
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4294
ac_cv_path_FGREP=$FGREP
4299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4300
$as_echo "$ac_cv_path_FGREP" >&6; }
4301
FGREP="$ac_cv_path_FGREP"
4304
test -z "$GREP" && GREP=grep
4324
@%:@ Check whether --with-gnu-ld was given.
4325
if test "${with_gnu_ld+set}" = set; then :
4326
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4332
if test "$GCC" = yes; then
4333
# Check if gcc -print-prog-name=ld gives a path.
4334
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4335
$as_echo_n "checking for ld used by $CC... " >&6; }
4338
# gcc leaves a trailing carriage return which upsets mingw
4339
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4341
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4344
# Accept absolute paths.
4346
re_direlt='/[^/][^/]*/\.\./'
4347
# Canonicalize the pathname of ld
4348
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4349
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4350
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4352
test -z "$LD" && LD="$ac_prog"
4355
# If it fails, then pretend we aren't using GCC.
4359
# If it is relative, then search for the first ld in PATH.
4363
elif test "$with_gnu_ld" = yes; then
4364
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4365
$as_echo_n "checking for GNU ld... " >&6; }
4367
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4368
$as_echo_n "checking for non-GNU ld... " >&6; }
4370
if ${lt_cv_path_LD+:} false; then :
4371
$as_echo_n "(cached) " >&6
4373
if test -z "$LD"; then
4374
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4375
for ac_dir in $PATH; do
4377
test -z "$ac_dir" && ac_dir=.
4378
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4379
lt_cv_path_LD="$ac_dir/$ac_prog"
4380
# Check to see if the program is GNU ld. I'd rather use --version,
4381
# but apparently some variants of GNU ld only accept -v.
4382
# Break only if it was the GNU/non-GNU ld that we prefer.
4383
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4384
*GNU* | *'with BFD'*)
4385
test "$with_gnu_ld" != no && break
4388
test "$with_gnu_ld" != yes && break
4395
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4400
if test -n "$LD"; then
4401
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4402
$as_echo "$LD" >&6; }
4404
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405
$as_echo "no" >&6; }
4407
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4408
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4409
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4410
if ${lt_cv_prog_gnu_ld+:} false; then :
4411
$as_echo_n "(cached) " >&6
4413
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4414
case `$LD -v 2>&1 </dev/null` in
4415
*GNU* | *'with BFD'*)
4416
lt_cv_prog_gnu_ld=yes
4419
lt_cv_prog_gnu_ld=no
4423
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4424
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4425
with_gnu_ld=$lt_cv_prog_gnu_ld
4435
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4436
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4437
if ${lt_cv_path_NM+:} false; then :
4438
$as_echo_n "(cached) " >&6
4440
if test -n "$NM"; then
4441
# Let the user override the test.
4444
lt_nm_to_check="${ac_tool_prefix}nm"
4445
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4446
lt_nm_to_check="$lt_nm_to_check nm"
4448
for lt_tmp_nm in $lt_nm_to_check; do
4449
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4450
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4452
test -z "$ac_dir" && ac_dir=.
4453
tmp_nm="$ac_dir/$lt_tmp_nm"
4454
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4455
# Check to see if the nm accepts a BSD-compat flag.
4456
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4457
# nm: unknown option "B" ignored
4458
# Tru64's nm complains that /dev/null is an invalid object file
4459
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4460
*/dev/null* | *'Invalid file or object type'*)
4461
lt_cv_path_NM="$tmp_nm -B"
4465
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4467
lt_cv_path_NM="$tmp_nm -p"
4471
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4472
continue # so that we can try to find one that supports BSD flags
4481
: ${lt_cv_path_NM=no}
4484
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4485
$as_echo "$lt_cv_path_NM" >&6; }
4486
if test "$lt_cv_path_NM" != "no"; then
4489
# Didn't find any BSD compatible name lister, look for dumpbin.
4490
if test -n "$DUMPBIN"; then :
4491
# Let the user override the test.
4493
if test -n "$ac_tool_prefix"; then
4494
for ac_prog in dumpbin "link -dump"
4496
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4497
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4498
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4499
$as_echo_n "checking for $ac_word... " >&6; }
4500
if ${ac_cv_prog_DUMPBIN+:} false; then :
4501
$as_echo_n "(cached) " >&6
4503
if test -n "$DUMPBIN"; then
4504
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4506
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510
test -z "$as_dir" && as_dir=.
4511
for ac_exec_ext in '' $ac_executable_extensions; do
4512
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4514
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4523
DUMPBIN=$ac_cv_prog_DUMPBIN
4524
if test -n "$DUMPBIN"; then
4525
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4526
$as_echo "$DUMPBIN" >&6; }
4528
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529
$as_echo "no" >&6; }
4533
test -n "$DUMPBIN" && break
4536
if test -z "$DUMPBIN"; then
4537
ac_ct_DUMPBIN=$DUMPBIN
4538
for ac_prog in dumpbin "link -dump"
4540
# Extract the first word of "$ac_prog", so it can be a program name with args.
4541
set dummy $ac_prog; ac_word=$2
4542
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4543
$as_echo_n "checking for $ac_word... " >&6; }
4544
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4545
$as_echo_n "(cached) " >&6
4547
if test -n "$ac_ct_DUMPBIN"; then
4548
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4550
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554
test -z "$as_dir" && as_dir=.
4555
for ac_exec_ext in '' $ac_executable_extensions; do
4556
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4557
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4558
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4567
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4568
if test -n "$ac_ct_DUMPBIN"; then
4569
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4570
$as_echo "$ac_ct_DUMPBIN" >&6; }
4572
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573
$as_echo "no" >&6; }
4577
test -n "$ac_ct_DUMPBIN" && break
4580
if test "x$ac_ct_DUMPBIN" = x; then
4583
case $cross_compiling:$ac_tool_warned in
4585
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4586
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4587
ac_tool_warned=yes ;;
4589
DUMPBIN=$ac_ct_DUMPBIN
4593
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4595
DUMPBIN="$DUMPBIN -symbols"
4603
if test "$DUMPBIN" != ":"; then
4607
test -z "$NM" && NM=nm
4614
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4615
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4616
if ${lt_cv_nm_interface+:} false; then :
4617
$as_echo_n "(cached) " >&6
4619
lt_cv_nm_interface="BSD nm"
4620
echo "int some_variable = 0;" > conftest.$ac_ext
4621
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4622
(eval "$ac_compile" 2>conftest.err)
4623
cat conftest.err >&5
4624
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4625
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4626
cat conftest.err >&5
4627
(eval echo "\"\$as_me:$LINENO: output\"" >&5)
4628
cat conftest.out >&5
4629
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4630
lt_cv_nm_interface="MS dumpbin"
4634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4635
$as_echo "$lt_cv_nm_interface" >&6; }
4637
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4638
$as_echo_n "checking whether ln -s works... " >&6; }
4640
if test "$LN_S" = "ln -s"; then
4641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4642
$as_echo "yes" >&6; }
4644
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4645
$as_echo "no, using $LN_S" >&6; }
4648
# find the maximum length of command line arguments
4649
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4650
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4651
if ${lt_cv_sys_max_cmd_len+:} false; then :
4652
$as_echo_n "(cached) " >&6
4659
# On DJGPP, this test can blow up pretty badly due to problems in libc
4660
# (any single argument exceeding 2000 bytes causes a buffer overrun
4661
# during glob expansion). Even if it were fixed, the result of this
4662
# check would be larger than it should be.
4663
lt_cv_sys_max_cmd_len=12288; # 12K is about right
4667
# Under GNU Hurd, this test is not required because there is
4668
# no limit to the length of command line arguments.
4669
# Libtool will interpret -1 as no limit whatsoever
4670
lt_cv_sys_max_cmd_len=-1;
4673
cygwin* | mingw* | cegcc*)
4674
# On Win9x/ME, this test blows up -- it succeeds, but takes
4675
# about 5 minutes as the teststring grows exponentially.
4676
# Worse, since 9x/ME are not pre-emptively multitasking,
4677
# you end up with a "frozen" computer, even though with patience
4678
# the test eventually succeeds (with a max line length of 256k).
4679
# Instead, let's just punt: use the minimum linelength reported by
4680
# all of the supported platforms: 8192 (on NT/2K/XP).
4681
lt_cv_sys_max_cmd_len=8192;
4685
# On MiNT this can take a long time and run out of memory.
4686
lt_cv_sys_max_cmd_len=8192;
4690
# On AmigaOS with pdksh, this test takes hours, literally.
4691
# So we just punt and use a minimum line length of 8192.
4692
lt_cv_sys_max_cmd_len=8192;
4695
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4696
# This has been around since 386BSD, at least. Likely further.
4697
if test -x /sbin/sysctl; then
4698
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4699
elif test -x /usr/sbin/sysctl; then
4700
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4702
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4704
# And add a safety zone
4705
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4706
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4710
# We know the value 262144 and hardcode it with a safety zone (like BSD)
4711
lt_cv_sys_max_cmd_len=196608
4715
# The test takes a long time on OS/2.
4716
lt_cv_sys_max_cmd_len=8192
4720
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4721
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4722
# nice to cause kernel panics so lets avoid the loop below.
4723
# First set a reasonable default.
4724
lt_cv_sys_max_cmd_len=16384
4726
if test -x /sbin/sysconfig; then
4727
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4728
*1*) lt_cv_sys_max_cmd_len=-1 ;;
4733
lt_cv_sys_max_cmd_len=102400
4735
sysv5* | sco5v6* | sysv4.2uw2*)
4736
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4737
if test -n "$kargmax"; then
4738
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4740
lt_cv_sys_max_cmd_len=32768
4744
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4745
if test -n "$lt_cv_sys_max_cmd_len"; then
4746
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4747
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4749
# Make teststring a little bigger before we do anything with it.
4750
# a 1K string should be a reasonable start.
4751
for i in 1 2 3 4 5 6 7 8 ; do
4752
teststring=$teststring$teststring
4754
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4755
# If test is not a shell built-in, we'll probably end up computing a
4756
# maximum length that is only half of the actual maximum length, but
4758
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4759
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
4760
test $i != 17 # 1/2 MB should be enough
4763
teststring=$teststring$teststring
4765
# Only check the string length outside the loop.
4766
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4768
# Add a significant safety factor because C++ compilers can tack on
4769
# massive amounts of additional arguments before passing them to the
4770
# linker. It appears as though 1/2 is a usable value.
4771
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4778
if test -n $lt_cv_sys_max_cmd_len ; then
4779
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4780
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4782
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4783
$as_echo "none" >&6; }
4785
max_cmd_len=$lt_cv_sys_max_cmd_len
4796
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4797
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4798
# Try some XSI features
4801
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4803
&& eval 'test $(( 1 + 1 )) -eq 2 \
4804
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4806
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4807
$as_echo "$xsi_shell" >&6; }
4810
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4811
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4813
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4815
&& lt_shell_append=yes
4816
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4817
$as_echo "$lt_shell_append" >&6; }
4820
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4830
# test EBCDIC or ASCII
4831
case `echo X|tr X '\101'` in
4832
A) # ASCII based system
4833
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4834
lt_SP2NL='tr \040 \012'
4835
lt_NL2SP='tr \015\012 \040\040'
4837
*) # EBCDIC based system
4838
lt_SP2NL='tr \100 \n'
4839
lt_NL2SP='tr \r\n \100\100'
4851
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4852
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4853
if ${lt_cv_to_host_file_cmd+:} false; then :
4854
$as_echo_n "(cached) " >&6
4859
*-*-mingw* ) # actually msys
4860
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4863
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4865
* ) # otherwise, assume *nix
4866
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4872
*-*-mingw* ) # actually msys
4873
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4876
lt_cv_to_host_file_cmd=func_convert_file_noop
4878
* ) # otherwise, assume *nix
4879
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4883
* ) # unhandled hosts (and "normal" native builds)
4884
lt_cv_to_host_file_cmd=func_convert_file_noop
4890
to_host_file_cmd=$lt_cv_to_host_file_cmd
4891
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4892
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4898
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4899
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4900
if ${lt_cv_to_tool_file_cmd+:} false; then :
4901
$as_echo_n "(cached) " >&6
4903
#assume ordinary cross tools, or native build.
4904
lt_cv_to_tool_file_cmd=func_convert_file_noop
4908
*-*-mingw* ) # actually msys
4909
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4917
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4918
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4919
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4925
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4926
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4927
if ${lt_cv_ld_reload_flag+:} false; then :
4928
$as_echo_n "(cached) " >&6
4930
lt_cv_ld_reload_flag='-r'
4932
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4933
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4934
reload_flag=$lt_cv_ld_reload_flag
4935
case $reload_flag in
4937
*) reload_flag=" $reload_flag" ;;
4939
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4941
cygwin* | mingw* | pw32* | cegcc*)
4942
if test "$GCC" != yes; then
4947
if test "$GCC" = yes; then
4948
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4950
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4963
if test -n "$ac_tool_prefix"; then
4964
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4965
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4966
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967
$as_echo_n "checking for $ac_word... " >&6; }
4968
if ${ac_cv_prog_OBJDUMP+:} false; then :
4969
$as_echo_n "(cached) " >&6
4971
if test -n "$OBJDUMP"; then
4972
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4974
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978
test -z "$as_dir" && as_dir=.
4979
for ac_exec_ext in '' $ac_executable_extensions; do
4980
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4981
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4982
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4991
OBJDUMP=$ac_cv_prog_OBJDUMP
4992
if test -n "$OBJDUMP"; then
4993
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4994
$as_echo "$OBJDUMP" >&6; }
4996
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997
$as_echo "no" >&6; }
5002
if test -z "$ac_cv_prog_OBJDUMP"; then
5003
ac_ct_OBJDUMP=$OBJDUMP
5004
# Extract the first word of "objdump", so it can be a program name with args.
5005
set dummy objdump; ac_word=$2
5006
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5007
$as_echo_n "checking for $ac_word... " >&6; }
5008
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5009
$as_echo_n "(cached) " >&6
5011
if test -n "$ac_ct_OBJDUMP"; then
5012
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5014
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018
test -z "$as_dir" && as_dir=.
5019
for ac_exec_ext in '' $ac_executable_extensions; do
5020
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5021
ac_cv_prog_ac_ct_OBJDUMP="objdump"
5022
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5031
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5032
if test -n "$ac_ct_OBJDUMP"; then
5033
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5034
$as_echo "$ac_ct_OBJDUMP" >&6; }
5036
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037
$as_echo "no" >&6; }
5040
if test "x$ac_ct_OBJDUMP" = x; then
5043
case $cross_compiling:$ac_tool_warned in
5045
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5046
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5047
ac_tool_warned=yes ;;
5049
OBJDUMP=$ac_ct_OBJDUMP
5052
OBJDUMP="$ac_cv_prog_OBJDUMP"
5055
test -z "$OBJDUMP" && OBJDUMP=objdump
5065
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5066
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5067
if ${lt_cv_deplibs_check_method+:} false; then :
5068
$as_echo_n "(cached) " >&6
5070
lt_cv_file_magic_cmd='$MAGIC_CMD'
5071
lt_cv_file_magic_test_file=
5072
lt_cv_deplibs_check_method='unknown'
5073
# Need to set the preceding variable on all platforms that support
5074
# interlibrary dependencies.
5075
# 'none' -- dependencies not supported.
5076
# `unknown' -- same as none, but documents that we really don't know.
5077
# 'pass_all' -- all dependencies passed with no checks.
5078
# 'test_compile' -- check by making test program.
5079
# 'file_magic [[regex]]' -- check by looking for files in library path
5080
# which responds to the $file_magic_cmd with a given extended regex.
5081
# If you have `file' or equivalent on your system and you're not sure
5082
# whether `pass_all' will *always* work, you probably want this one.
5086
lt_cv_deplibs_check_method=pass_all
5090
lt_cv_deplibs_check_method=pass_all
5094
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5095
lt_cv_file_magic_cmd='/usr/bin/file -L'
5096
lt_cv_file_magic_test_file=/shlib/libc.so
5100
# func_win32_libid is a shell function defined in ltmain.sh
5101
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5102
lt_cv_file_magic_cmd='func_win32_libid'
5106
# Base MSYS/MinGW do not provide the 'file' command needed by
5107
# func_win32_libid shell function, so use a weaker test based on 'objdump',
5108
# unless we find 'file', for example because we are cross-compiling.
5109
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5110
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5111
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5112
lt_cv_file_magic_cmd='func_win32_libid'
5114
# Keep this pattern in sync with the one in func_win32_libid.
5115
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5116
lt_cv_file_magic_cmd='$OBJDUMP -f'
5121
# use the weaker test based on 'objdump'. See mingw*.
5122
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5123
lt_cv_file_magic_cmd='$OBJDUMP -f'
5126
darwin* | rhapsody*)
5127
lt_cv_deplibs_check_method=pass_all
5130
freebsd* | dragonfly*)
5131
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5134
# Not sure whether the presence of OpenBSD here was a mistake.
5135
# Let's accept both of them until this is cleared up.
5136
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5137
lt_cv_file_magic_cmd=/usr/bin/file
5138
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5142
lt_cv_deplibs_check_method=pass_all
5147
lt_cv_deplibs_check_method=pass_all
5151
lt_cv_deplibs_check_method=pass_all
5154
hpux10.20* | hpux11*)
5155
lt_cv_file_magic_cmd=/usr/bin/file
5158
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5159
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5162
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]'
5163
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5166
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5167
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5173
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5174
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5177
irix5* | irix6* | nonstopux*)
5179
*-32|*"-32 ") libmagic=32-bit;;
5180
*-n32|*"-n32 ") libmagic=N32;;
5181
*-64|*"-64 ") libmagic=64-bit;;
5182
*) libmagic=never-match;;
5184
lt_cv_deplibs_check_method=pass_all
5187
# This must be glibc/ELF.
5188
linux* | k*bsd*-gnu | kopensolaris*-gnu)
5189
lt_cv_deplibs_check_method=pass_all
5193
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5194
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5196
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5201
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5202
lt_cv_file_magic_cmd=/usr/bin/file
5203
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5207
lt_cv_deplibs_check_method=pass_all
5211
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5212
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5214
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5218
osf3* | osf4* | osf5*)
5219
lt_cv_deplibs_check_method=pass_all
5223
lt_cv_deplibs_check_method=pass_all
5227
lt_cv_deplibs_check_method=pass_all
5230
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5231
lt_cv_deplibs_check_method=pass_all
5235
case $host_vendor in
5237
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]'
5238
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5241
lt_cv_deplibs_check_method=pass_all
5244
lt_cv_file_magic_cmd='/bin/file'
5245
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5248
lt_cv_file_magic_cmd='/bin/file'
5249
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5250
lt_cv_file_magic_test_file=/lib/libc.so
5253
lt_cv_deplibs_check_method=pass_all
5256
lt_cv_deplibs_check_method=pass_all
5262
lt_cv_deplibs_check_method=pass_all
5267
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5268
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5272
if test "$build" = "$host"; then
5275
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5278
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5284
file_magic_cmd=$lt_cv_file_magic_cmd
5285
deplibs_check_method=$lt_cv_deplibs_check_method
5286
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5309
if test -n "$ac_tool_prefix"; then
5310
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5311
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5312
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5313
$as_echo_n "checking for $ac_word... " >&6; }
5314
if ${ac_cv_prog_DLLTOOL+:} false; then :
5315
$as_echo_n "(cached) " >&6
5317
if test -n "$DLLTOOL"; then
5318
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5320
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324
test -z "$as_dir" && as_dir=.
5325
for ac_exec_ext in '' $ac_executable_extensions; do
5326
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5327
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5328
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5337
DLLTOOL=$ac_cv_prog_DLLTOOL
5338
if test -n "$DLLTOOL"; then
5339
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5340
$as_echo "$DLLTOOL" >&6; }
5342
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343
$as_echo "no" >&6; }
5348
if test -z "$ac_cv_prog_DLLTOOL"; then
5349
ac_ct_DLLTOOL=$DLLTOOL
5350
# Extract the first word of "dlltool", so it can be a program name with args.
5351
set dummy dlltool; ac_word=$2
5352
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5353
$as_echo_n "checking for $ac_word... " >&6; }
5354
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5355
$as_echo_n "(cached) " >&6
5357
if test -n "$ac_ct_DLLTOOL"; then
5358
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5360
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364
test -z "$as_dir" && as_dir=.
5365
for ac_exec_ext in '' $ac_executable_extensions; do
5366
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5367
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5368
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5377
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5378
if test -n "$ac_ct_DLLTOOL"; then
5379
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5380
$as_echo "$ac_ct_DLLTOOL" >&6; }
5382
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5383
$as_echo "no" >&6; }
5386
if test "x$ac_ct_DLLTOOL" = x; then
5389
case $cross_compiling:$ac_tool_warned in
5391
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5392
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5393
ac_tool_warned=yes ;;
5395
DLLTOOL=$ac_ct_DLLTOOL
5398
DLLTOOL="$ac_cv_prog_DLLTOOL"
5401
test -z "$DLLTOOL" && DLLTOOL=dlltool
5412
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5413
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5414
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5415
$as_echo_n "(cached) " >&6
5417
lt_cv_sharedlib_from_linklib_cmd='unknown'
5420
cygwin* | mingw* | pw32* | cegcc*)
5421
# two different shell functions defined in ltmain.sh
5422
# decide which to use based on capabilities of $DLLTOOL
5423
case `$DLLTOOL --help 2>&1` in
5424
*--identify-strict*)
5425
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5428
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5433
# fallback: assume linklib IS sharedlib
5434
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5439
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5440
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5441
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5442
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5451
if test -n "$ac_tool_prefix"; then
5454
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5455
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5456
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5457
$as_echo_n "checking for $ac_word... " >&6; }
5458
if ${ac_cv_prog_AR+:} false; then :
5459
$as_echo_n "(cached) " >&6
5461
if test -n "$AR"; then
5462
ac_cv_prog_AR="$AR" # Let the user override the test.
5464
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468
test -z "$as_dir" && as_dir=.
5469
for ac_exec_ext in '' $ac_executable_extensions; do
5470
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5471
ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5472
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5482
if test -n "$AR"; then
5483
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5484
$as_echo "$AR" >&6; }
5486
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487
$as_echo "no" >&6; }
5491
test -n "$AR" && break
5494
if test -z "$AR"; then
5498
# Extract the first word of "$ac_prog", so it can be a program name with args.
5499
set dummy $ac_prog; ac_word=$2
5500
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5501
$as_echo_n "checking for $ac_word... " >&6; }
5502
if ${ac_cv_prog_ac_ct_AR+:} false; then :
5503
$as_echo_n "(cached) " >&6
5505
if test -n "$ac_ct_AR"; then
5506
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5508
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512
test -z "$as_dir" && as_dir=.
5513
for ac_exec_ext in '' $ac_executable_extensions; do
5514
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5515
ac_cv_prog_ac_ct_AR="$ac_prog"
5516
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5525
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5526
if test -n "$ac_ct_AR"; then
5527
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5528
$as_echo "$ac_ct_AR" >&6; }
5530
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531
$as_echo "no" >&6; }
5535
test -n "$ac_ct_AR" && break
5538
if test "x$ac_ct_AR" = x; then
5541
case $cross_compiling:$ac_tool_warned in
5543
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5544
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5545
ac_tool_warned=yes ;;
5564
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5565
$as_echo_n "checking for archiver @FILE support... " >&6; }
5566
if ${lt_cv_ar_at_file+:} false; then :
5567
$as_echo_n "(cached) " >&6
5570
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571
/* end confdefs.h. */
5581
if ac_fn_c_try_compile "$LINENO"; then :
5582
echo conftest.$ac_objext > conftest.lst
5583
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5584
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5585
(eval $lt_ar_try) 2>&5
5587
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5588
test $ac_status = 0; }
5589
if test "$ac_status" -eq 0; then
5590
# Ensure the archiver fails upon bogus file names.
5591
rm -f conftest.$ac_objext libconftest.a
5592
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5593
(eval $lt_ar_try) 2>&5
5595
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5596
test $ac_status = 0; }
5597
if test "$ac_status" -ne 0; then
5601
rm -f conftest.* libconftest.a
5604
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5608
$as_echo "$lt_cv_ar_at_file" >&6; }
5610
if test "x$lt_cv_ar_at_file" = xno; then
5613
archiver_list_spec=$lt_cv_ar_at_file
5622
if test -n "$ac_tool_prefix"; then
5623
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5624
set dummy ${ac_tool_prefix}strip; ac_word=$2
5625
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626
$as_echo_n "checking for $ac_word... " >&6; }
5627
if ${ac_cv_prog_STRIP+:} false; then :
5628
$as_echo_n "(cached) " >&6
5630
if test -n "$STRIP"; then
5631
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5633
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637
test -z "$as_dir" && as_dir=.
5638
for ac_exec_ext in '' $ac_executable_extensions; do
5639
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5640
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5641
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650
STRIP=$ac_cv_prog_STRIP
5651
if test -n "$STRIP"; then
5652
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5653
$as_echo "$STRIP" >&6; }
5655
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656
$as_echo "no" >&6; }
5661
if test -z "$ac_cv_prog_STRIP"; then
5663
# Extract the first word of "strip", so it can be a program name with args.
5664
set dummy strip; ac_word=$2
5665
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666
$as_echo_n "checking for $ac_word... " >&6; }
5667
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5668
$as_echo_n "(cached) " >&6
5670
if test -n "$ac_ct_STRIP"; then
5671
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5673
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677
test -z "$as_dir" && as_dir=.
5678
for ac_exec_ext in '' $ac_executable_extensions; do
5679
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5680
ac_cv_prog_ac_ct_STRIP="strip"
5681
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5690
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5691
if test -n "$ac_ct_STRIP"; then
5692
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5693
$as_echo "$ac_ct_STRIP" >&6; }
5695
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696
$as_echo "no" >&6; }
5699
if test "x$ac_ct_STRIP" = x; then
5702
case $cross_compiling:$ac_tool_warned in
5704
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5705
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5706
ac_tool_warned=yes ;;
5711
STRIP="$ac_cv_prog_STRIP"
5714
test -z "$STRIP" && STRIP=:
5721
if test -n "$ac_tool_prefix"; then
5722
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5723
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5724
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5725
$as_echo_n "checking for $ac_word... " >&6; }
5726
if ${ac_cv_prog_RANLIB+:} false; then :
5727
$as_echo_n "(cached) " >&6
5729
if test -n "$RANLIB"; then
5730
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5732
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736
test -z "$as_dir" && as_dir=.
5737
for ac_exec_ext in '' $ac_executable_extensions; do
5738
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5739
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5740
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5749
RANLIB=$ac_cv_prog_RANLIB
5750
if test -n "$RANLIB"; then
5751
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5752
$as_echo "$RANLIB" >&6; }
5754
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5755
$as_echo "no" >&6; }
5760
if test -z "$ac_cv_prog_RANLIB"; then
5761
ac_ct_RANLIB=$RANLIB
5762
# Extract the first word of "ranlib", so it can be a program name with args.
5763
set dummy ranlib; ac_word=$2
5764
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5765
$as_echo_n "checking for $ac_word... " >&6; }
5766
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5767
$as_echo_n "(cached) " >&6
5769
if test -n "$ac_ct_RANLIB"; then
5770
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5772
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776
test -z "$as_dir" && as_dir=.
5777
for ac_exec_ext in '' $ac_executable_extensions; do
5778
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5779
ac_cv_prog_ac_ct_RANLIB="ranlib"
5780
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5789
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5790
if test -n "$ac_ct_RANLIB"; then
5791
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5792
$as_echo "$ac_ct_RANLIB" >&6; }
5794
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795
$as_echo "no" >&6; }
5798
if test "x$ac_ct_RANLIB" = x; then
5801
case $cross_compiling:$ac_tool_warned in
5803
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5804
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5805
ac_tool_warned=yes ;;
5807
RANLIB=$ac_ct_RANLIB
5810
RANLIB="$ac_cv_prog_RANLIB"
5813
test -z "$RANLIB" && RANLIB=:
5820
# Determine commands to create old-style static archives.
5821
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5822
old_postinstall_cmds='chmod 644 $oldlib'
5823
old_postuninstall_cmds=
5825
if test -n "$RANLIB"; then
5828
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5831
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5834
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5839
lock_old_archive_extraction=yes ;;
5841
lock_old_archive_extraction=no ;;
5882
# If no C compiler was specified, use CC.
5885
# If no C compiler flags were specified, use CFLAGS.
5886
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5888
# Allow CC to be a program name with arguments.
5892
# Check for command to grab the raw symbol name followed by C symbol from nm.
5893
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5894
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5895
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5896
$as_echo_n "(cached) " >&6
5899
# These are sane defaults that work on at least a few old systems.
5900
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5902
# Character class describing NM global symbol codes.
5903
symcode='[BCDEGRST]'
5905
# Regexp to match symbols that can be accessed directly from C.
5906
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5908
# Define system-specific variables.
5913
cygwin* | mingw* | pw32* | cegcc*)
5914
symcode='[ABCDGISTW]'
5917
if test "$host_cpu" = ia64; then
5918
symcode='[ABCDEGRST]'
5922
symcode='[BCDEGRST]'
5925
symcode='[BCDEGQRST]'
5936
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5944
# If we're using GNU nm, then use its standard symbol codes.
5945
case `$NM -V 2>&1` in
5946
*GNU* | *'with BFD'*)
5947
symcode='[ABCDGIRSTW]' ;;
5950
# Transform an extracted symbol line into a proper C declaration.
5951
# Some systems (esp. on ia64) link data and code symbols differently,
5952
# so use this general approach.
5953
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5955
# Transform an extracted symbol line into symbol name and symbol address
5956
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5957
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'"
5959
# Handle CRLF in mingw tool chain
5963
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5967
# Try without a prefix underscore, then with it.
5968
for ac_symprfx in "" "_"; do
5970
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5971
symxfrm="\\1 $ac_symprfx\\2 \\2"
5973
# Write the raw and C identifiers.
5974
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5975
# Fake it for dumpbin and say T for any non-static function
5976
# and D for any global variable.
5977
# Also find C++ and __fastcall symbols from MSVC++,
5978
# which start with @ or ?.
5979
lt_cv_sys_global_symbol_pipe="$AWK '"\
5980
" {last_section=section; section=\$ 3};"\
5981
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5982
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5983
" \$ 0!~/External *\|/{next};"\
5984
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5985
" {if(hide[section]) next};"\
5986
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5987
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5988
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5989
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5990
" ' prfx=^$ac_symprfx"
5992
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5994
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5996
# Check to see that the pipe works correctly.
6000
cat > conftest.$ac_ext <<_LT_EOF
6005
void nm_test_func(void);
6006
void nm_test_func(void){}
6010
int main(){nm_test_var='a';nm_test_func();return(0);}
6013
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6014
(eval $ac_compile) 2>&5
6016
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6017
test $ac_status = 0; }; then
6018
# Now try to grab the symbols.
6020
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6021
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6023
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6024
test $ac_status = 0; } && test -s "$nlist"; then
6025
# Try sorting and uniquifying the output.
6026
if sort "$nlist" | uniq > "$nlist"T; then
6027
mv -f "$nlist"T "$nlist"
6032
# Make sure that we snagged all the symbols we need.
6033
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6034
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6035
cat <<_LT_EOF > conftest.$ac_ext
6036
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6037
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6038
/* DATA imports from DLLs on WIN32 con't be const, because runtime
6039
relocations are performed -- see ld's documentation on pseudo-relocs. */
6040
# define LT@&t@_DLSYM_CONST
6041
#elif defined(__osf__)
6042
/* This system does not cope well with relocations in const data. */
6043
# define LT@&t@_DLSYM_CONST
6045
# define LT@&t@_DLSYM_CONST const
6053
# Now generate the symbol file.
6054
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6056
cat <<_LT_EOF >> conftest.$ac_ext
6058
/* The mapping between symbol names and symbols. */
6059
LT@&t@_DLSYM_CONST struct {
6063
lt__PROGRAM__LTX_preloaded_symbols[] =
6065
{ "@PROGRAM@", (void *) 0 },
6067
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6068
cat <<\_LT_EOF >> conftest.$ac_ext
6072
/* This works around a problem in FreeBSD linker */
6073
#ifdef FREEBSD_WORKAROUND
6074
static const void *lt_preloaded_setup() {
6075
return lt__PROGRAM__LTX_preloaded_symbols;
6083
# Now try linking the two files.
6084
mv conftest.$ac_objext conftstm.$ac_objext
6085
lt_globsym_save_LIBS=$LIBS
6086
lt_globsym_save_CFLAGS=$CFLAGS
6087
LIBS="conftstm.$ac_objext"
6088
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6089
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6090
(eval $ac_link) 2>&5
6092
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6093
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6096
LIBS=$lt_globsym_save_LIBS
6097
CFLAGS=$lt_globsym_save_CFLAGS
6099
echo "cannot find nm_test_func in $nlist" >&5
6102
echo "cannot find nm_test_var in $nlist" >&5
6105
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6108
echo "$progname: failed program was:" >&5
6109
cat conftest.$ac_ext >&5
6111
rm -rf conftest* conftst*
6113
# Do not use the global_symbol_pipe unless it works.
6114
if test "$pipe_works" = yes; then
6117
lt_cv_sys_global_symbol_pipe=
6123
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6124
lt_cv_sys_global_symbol_to_cdecl=
6126
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6127
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6128
$as_echo "failed" >&6; }
6130
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6131
$as_echo "ok" >&6; }
6134
# Response file support.
6135
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6136
nm_file_list_spec='@'
6137
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6138
nm_file_list_spec='@'
6167
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6168
$as_echo_n "checking for sysroot... " >&6; }
6170
@%:@ Check whether --with-sysroot was given.
6171
if test "${with_sysroot+set}" = set; then :
6172
withval=$with_sysroot;
6179
case ${with_sysroot} in #(
6181
if test "$GCC" = yes; then
6182
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6186
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6191
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6192
$as_echo "${with_sysroot}" >&6; }
6193
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6197
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6198
$as_echo "${lt_sysroot:-no}" >&6; }
6204
@%:@ Check whether --enable-libtool-lock was given.
6205
if test "${enable_libtool_lock+set}" = set; then :
6206
enableval=$enable_libtool_lock;
6209
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6211
# Some flags need to be propagated to the compiler or linker for good
6215
# Find out which ABI we are using.
6216
echo 'int i;' > conftest.$ac_ext
6217
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6218
(eval $ac_compile) 2>&5
6220
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6221
test $ac_status = 0; }; then
6222
case `/usr/bin/file conftest.$ac_objext` in
6234
# Find out which ABI we are using.
6235
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6236
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6237
(eval $ac_compile) 2>&5
6239
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6240
test $ac_status = 0; }; then
6241
if test "$lt_cv_prog_gnu_ld" = yes; then
6242
case `/usr/bin/file conftest.$ac_objext` in
6244
LD="${LD-ld} -melf32bsmip"
6247
LD="${LD-ld} -melf32bmipn32"
6250
LD="${LD-ld} -melf64bmip"
6254
case `/usr/bin/file conftest.$ac_objext` in
6270
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6271
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6272
# Find out which ABI we are using.
6273
echo 'int i;' > conftest.$ac_ext
6274
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6275
(eval $ac_compile) 2>&5
6277
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6278
test $ac_status = 0; }; then
6279
case `/usr/bin/file conftest.o` in
6282
x86_64-*kfreebsd*-gnu)
6283
LD="${LD-ld} -m elf_i386_fbsd"
6286
LD="${LD-ld} -m elf_i386"
6288
ppc64-*linux*|powerpc64-*linux*)
6289
LD="${LD-ld} -m elf32ppclinux"
6292
LD="${LD-ld} -m elf_s390"
6295
LD="${LD-ld} -m elf32_sparc"
6301
x86_64-*kfreebsd*-gnu)
6302
LD="${LD-ld} -m elf_x86_64_fbsd"
6305
LD="${LD-ld} -m elf_x86_64"
6307
ppc*-*linux*|powerpc*-*linux*)
6308
LD="${LD-ld} -m elf64ppc"
6310
s390*-*linux*|s390*-*tpf*)
6311
LD="${LD-ld} -m elf64_s390"
6314
LD="${LD-ld} -m elf64_sparc"
6324
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
6325
SAVE_CFLAGS="$CFLAGS"
6326
CFLAGS="$CFLAGS -belf"
6327
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6328
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6329
if ${lt_cv_cc_needs_belf+:} false; then :
6330
$as_echo_n "(cached) " >&6
6333
ac_cpp='$CPP $CPPFLAGS'
6334
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6335
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6336
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6338
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339
/* end confdefs.h. */
6349
if ac_fn_c_try_link "$LINENO"; then :
6350
lt_cv_cc_needs_belf=yes
6352
lt_cv_cc_needs_belf=no
6354
rm -f core conftest.err conftest.$ac_objext \
6355
conftest$ac_exeext conftest.$ac_ext
6357
ac_cpp='$CPP $CPPFLAGS'
6358
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6359
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6360
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6363
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6364
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6365
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6366
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6367
CFLAGS="$SAVE_CFLAGS"
6371
# Find out which ABI we are using.
6372
echo 'int i;' > conftest.$ac_ext
6373
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6374
(eval $ac_compile) 2>&5
6376
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6377
test $ac_status = 0; }; then
6378
case `/usr/bin/file conftest.o` in
6380
case $lt_cv_prog_gnu_ld in
6384
LD="${LD-ld} -m elf_x86_64"
6387
LD="${LD-ld} -m elf64_sparc"
6390
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6391
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6396
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6408
need_locks="$enable_libtool_lock"
6410
if test -n "$ac_tool_prefix"; then
6411
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6412
set dummy ${ac_tool_prefix}mt; ac_word=$2
6413
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6414
$as_echo_n "checking for $ac_word... " >&6; }
6415
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6416
$as_echo_n "(cached) " >&6
6418
if test -n "$MANIFEST_TOOL"; then
6419
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6421
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425
test -z "$as_dir" && as_dir=.
6426
for ac_exec_ext in '' $ac_executable_extensions; do
6427
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6429
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6439
if test -n "$MANIFEST_TOOL"; then
6440
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6441
$as_echo "$MANIFEST_TOOL" >&6; }
6443
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6444
$as_echo "no" >&6; }
6449
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6450
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6451
# Extract the first word of "mt", so it can be a program name with args.
6452
set dummy mt; ac_word=$2
6453
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6454
$as_echo_n "checking for $ac_word... " >&6; }
6455
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6456
$as_echo_n "(cached) " >&6
6458
if test -n "$ac_ct_MANIFEST_TOOL"; then
6459
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6461
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465
test -z "$as_dir" && as_dir=.
6466
for ac_exec_ext in '' $ac_executable_extensions; do
6467
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6468
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6469
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6478
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6479
if test -n "$ac_ct_MANIFEST_TOOL"; then
6480
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6481
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6483
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484
$as_echo "no" >&6; }
6487
if test "x$ac_ct_MANIFEST_TOOL" = x; then
6490
case $cross_compiling:$ac_tool_warned in
6492
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6493
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6494
ac_tool_warned=yes ;;
6496
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6499
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6502
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6503
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6504
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6505
if ${lt_cv_path_mainfest_tool+:} false; then :
6506
$as_echo_n "(cached) " >&6
6508
lt_cv_path_mainfest_tool=no
6509
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6510
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6511
cat conftest.err >&5
6512
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6513
lt_cv_path_mainfest_tool=yes
6517
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6518
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6519
if test "x$lt_cv_path_mainfest_tool" != xyes; then
6529
rhapsody* | darwin*)
6530
if test -n "$ac_tool_prefix"; then
6531
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6532
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6533
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6534
$as_echo_n "checking for $ac_word... " >&6; }
6535
if ${ac_cv_prog_DSYMUTIL+:} false; then :
6536
$as_echo_n "(cached) " >&6
6538
if test -n "$DSYMUTIL"; then
6539
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6541
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545
test -z "$as_dir" && as_dir=.
6546
for ac_exec_ext in '' $ac_executable_extensions; do
6547
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6548
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6549
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6559
if test -n "$DSYMUTIL"; then
6560
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6561
$as_echo "$DSYMUTIL" >&6; }
6563
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564
$as_echo "no" >&6; }
6569
if test -z "$ac_cv_prog_DSYMUTIL"; then
6570
ac_ct_DSYMUTIL=$DSYMUTIL
6571
# Extract the first word of "dsymutil", so it can be a program name with args.
6572
set dummy dsymutil; ac_word=$2
6573
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574
$as_echo_n "checking for $ac_word... " >&6; }
6575
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6576
$as_echo_n "(cached) " >&6
6578
if test -n "$ac_ct_DSYMUTIL"; then
6579
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6581
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585
test -z "$as_dir" && as_dir=.
6586
for ac_exec_ext in '' $ac_executable_extensions; do
6587
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6588
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6589
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6598
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6599
if test -n "$ac_ct_DSYMUTIL"; then
6600
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6601
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6603
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604
$as_echo "no" >&6; }
6607
if test "x$ac_ct_DSYMUTIL" = x; then
6610
case $cross_compiling:$ac_tool_warned in
6612
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6613
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6614
ac_tool_warned=yes ;;
6616
DSYMUTIL=$ac_ct_DSYMUTIL
6619
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6622
if test -n "$ac_tool_prefix"; then
6623
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6624
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6625
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626
$as_echo_n "checking for $ac_word... " >&6; }
6627
if ${ac_cv_prog_NMEDIT+:} false; then :
6628
$as_echo_n "(cached) " >&6
6630
if test -n "$NMEDIT"; then
6631
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6633
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637
test -z "$as_dir" && as_dir=.
6638
for ac_exec_ext in '' $ac_executable_extensions; do
6639
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6640
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6641
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6650
NMEDIT=$ac_cv_prog_NMEDIT
6651
if test -n "$NMEDIT"; then
6652
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6653
$as_echo "$NMEDIT" >&6; }
6655
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6656
$as_echo "no" >&6; }
6661
if test -z "$ac_cv_prog_NMEDIT"; then
6662
ac_ct_NMEDIT=$NMEDIT
6663
# Extract the first word of "nmedit", so it can be a program name with args.
6664
set dummy nmedit; ac_word=$2
6665
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6666
$as_echo_n "checking for $ac_word... " >&6; }
6667
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6668
$as_echo_n "(cached) " >&6
6670
if test -n "$ac_ct_NMEDIT"; then
6671
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6673
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677
test -z "$as_dir" && as_dir=.
6678
for ac_exec_ext in '' $ac_executable_extensions; do
6679
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6680
ac_cv_prog_ac_ct_NMEDIT="nmedit"
6681
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6690
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6691
if test -n "$ac_ct_NMEDIT"; then
6692
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6693
$as_echo "$ac_ct_NMEDIT" >&6; }
6695
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696
$as_echo "no" >&6; }
6699
if test "x$ac_ct_NMEDIT" = x; then
6702
case $cross_compiling:$ac_tool_warned in
6704
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6705
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6706
ac_tool_warned=yes ;;
6708
NMEDIT=$ac_ct_NMEDIT
6711
NMEDIT="$ac_cv_prog_NMEDIT"
6714
if test -n "$ac_tool_prefix"; then
6715
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6716
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6717
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6718
$as_echo_n "checking for $ac_word... " >&6; }
6719
if ${ac_cv_prog_LIPO+:} false; then :
6720
$as_echo_n "(cached) " >&6
6722
if test -n "$LIPO"; then
6723
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6725
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729
test -z "$as_dir" && as_dir=.
6730
for ac_exec_ext in '' $ac_executable_extensions; do
6731
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6732
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6733
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6742
LIPO=$ac_cv_prog_LIPO
6743
if test -n "$LIPO"; then
6744
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6745
$as_echo "$LIPO" >&6; }
6747
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6748
$as_echo "no" >&6; }
6753
if test -z "$ac_cv_prog_LIPO"; then
6755
# Extract the first word of "lipo", so it can be a program name with args.
6756
set dummy lipo; ac_word=$2
6757
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6758
$as_echo_n "checking for $ac_word... " >&6; }
6759
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6760
$as_echo_n "(cached) " >&6
6762
if test -n "$ac_ct_LIPO"; then
6763
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6765
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769
test -z "$as_dir" && as_dir=.
6770
for ac_exec_ext in '' $ac_executable_extensions; do
6771
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6772
ac_cv_prog_ac_ct_LIPO="lipo"
6773
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6782
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6783
if test -n "$ac_ct_LIPO"; then
6784
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6785
$as_echo "$ac_ct_LIPO" >&6; }
6787
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788
$as_echo "no" >&6; }
6791
if test "x$ac_ct_LIPO" = x; then
6794
case $cross_compiling:$ac_tool_warned in
6796
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6797
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6798
ac_tool_warned=yes ;;
6803
LIPO="$ac_cv_prog_LIPO"
6806
if test -n "$ac_tool_prefix"; then
6807
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6808
set dummy ${ac_tool_prefix}otool; ac_word=$2
6809
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810
$as_echo_n "checking for $ac_word... " >&6; }
6811
if ${ac_cv_prog_OTOOL+:} false; then :
6812
$as_echo_n "(cached) " >&6
6814
if test -n "$OTOOL"; then
6815
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6817
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821
test -z "$as_dir" && as_dir=.
6822
for ac_exec_ext in '' $ac_executable_extensions; do
6823
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6824
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6825
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6834
OTOOL=$ac_cv_prog_OTOOL
6835
if test -n "$OTOOL"; then
6836
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6837
$as_echo "$OTOOL" >&6; }
6839
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840
$as_echo "no" >&6; }
6845
if test -z "$ac_cv_prog_OTOOL"; then
6847
# Extract the first word of "otool", so it can be a program name with args.
6848
set dummy otool; ac_word=$2
6849
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850
$as_echo_n "checking for $ac_word... " >&6; }
6851
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6852
$as_echo_n "(cached) " >&6
6854
if test -n "$ac_ct_OTOOL"; then
6855
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6857
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861
test -z "$as_dir" && as_dir=.
6862
for ac_exec_ext in '' $ac_executable_extensions; do
6863
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6864
ac_cv_prog_ac_ct_OTOOL="otool"
6865
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6874
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6875
if test -n "$ac_ct_OTOOL"; then
6876
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6877
$as_echo "$ac_ct_OTOOL" >&6; }
6879
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880
$as_echo "no" >&6; }
6883
if test "x$ac_ct_OTOOL" = x; then
6886
case $cross_compiling:$ac_tool_warned in
6888
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6889
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6890
ac_tool_warned=yes ;;
6895
OTOOL="$ac_cv_prog_OTOOL"
6898
if test -n "$ac_tool_prefix"; then
6899
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6900
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6901
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902
$as_echo_n "checking for $ac_word... " >&6; }
6903
if ${ac_cv_prog_OTOOL64+:} false; then :
6904
$as_echo_n "(cached) " >&6
6906
if test -n "$OTOOL64"; then
6907
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6909
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913
test -z "$as_dir" && as_dir=.
6914
for ac_exec_ext in '' $ac_executable_extensions; do
6915
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6916
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6917
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6926
OTOOL64=$ac_cv_prog_OTOOL64
6927
if test -n "$OTOOL64"; then
6928
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6929
$as_echo "$OTOOL64" >&6; }
6931
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932
$as_echo "no" >&6; }
6937
if test -z "$ac_cv_prog_OTOOL64"; then
6938
ac_ct_OTOOL64=$OTOOL64
6939
# Extract the first word of "otool64", so it can be a program name with args.
6940
set dummy otool64; ac_word=$2
6941
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942
$as_echo_n "checking for $ac_word... " >&6; }
6943
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6944
$as_echo_n "(cached) " >&6
6946
if test -n "$ac_ct_OTOOL64"; then
6947
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6949
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953
test -z "$as_dir" && as_dir=.
6954
for ac_exec_ext in '' $ac_executable_extensions; do
6955
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6956
ac_cv_prog_ac_ct_OTOOL64="otool64"
6957
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6966
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6967
if test -n "$ac_ct_OTOOL64"; then
6968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6969
$as_echo "$ac_ct_OTOOL64" >&6; }
6971
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972
$as_echo "no" >&6; }
6975
if test "x$ac_ct_OTOOL64" = x; then
6978
case $cross_compiling:$ac_tool_warned in
6980
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6981
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6982
ac_tool_warned=yes ;;
6984
OTOOL64=$ac_ct_OTOOL64
6987
OTOOL64="$ac_cv_prog_OTOOL64"
7016
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7017
$as_echo_n "checking for -single_module linker flag... " >&6; }
7018
if ${lt_cv_apple_cc_single_mod+:} false; then :
7019
$as_echo_n "(cached) " >&6
7021
lt_cv_apple_cc_single_mod=no
7022
if test -z "${LT_MULTI_MODULE}"; then
7023
# By default we will add the -single_module flag. You can override
7024
# by either setting the environment variable LT_MULTI_MODULE
7025
# non-empty at configure time, or by adding -multi_module to the
7027
rm -rf libconftest.dylib*
7028
echo "int foo(void){return 1;}" > conftest.c
7029
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7030
-dynamiclib -Wl,-single_module conftest.c" >&5
7031
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7032
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7034
# If there is a non-empty error log, and "single_module"
7035
# appears in it, assume the flag caused a linker warning
7036
if test -s conftest.err && $GREP single_module conftest.err; then
7037
cat conftest.err >&5
7038
# Otherwise, if the output was created with a 0 exit code from
7039
# the compiler, it worked.
7040
elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7041
lt_cv_apple_cc_single_mod=yes
7043
cat conftest.err >&5
7045
rm -rf libconftest.dylib*
7049
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7050
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7052
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7053
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7054
if ${lt_cv_ld_exported_symbols_list+:} false; then :
7055
$as_echo_n "(cached) " >&6
7057
lt_cv_ld_exported_symbols_list=no
7058
save_LDFLAGS=$LDFLAGS
7059
echo "_main" > conftest.sym
7060
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7061
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062
/* end confdefs.h. */
7072
if ac_fn_c_try_link "$LINENO"; then :
7073
lt_cv_ld_exported_symbols_list=yes
7075
lt_cv_ld_exported_symbols_list=no
7077
rm -f core conftest.err conftest.$ac_objext \
7078
conftest$ac_exeext conftest.$ac_ext
7079
LDFLAGS="$save_LDFLAGS"
7082
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7083
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7085
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7086
$as_echo_n "checking for -force_load linker flag... " >&6; }
7087
if ${lt_cv_ld_force_load+:} false; then :
7088
$as_echo_n "(cached) " >&6
7090
lt_cv_ld_force_load=no
7091
cat > conftest.c << _LT_EOF
7092
int forced_loaded() { return 2;}
7094
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7095
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7096
echo "$AR cru libconftest.a conftest.o" >&5
7097
$AR cru libconftest.a conftest.o 2>&5
7098
echo "$RANLIB libconftest.a" >&5
7099
$RANLIB libconftest.a 2>&5
7100
cat > conftest.c << _LT_EOF
7101
int main() { return 0;}
7103
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7104
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7106
if test -s conftest.err && $GREP force_load conftest.err; then
7107
cat conftest.err >&5
7108
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7109
lt_cv_ld_force_load=yes
7111
cat conftest.err >&5
7113
rm -f conftest.err libconftest.a conftest conftest.c
7114
rm -rf conftest.dSYM
7117
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7118
$as_echo "$lt_cv_ld_force_load" >&6; }
7120
rhapsody* | darwin1.[012])
7121
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7123
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7124
darwin*) # darwin 5.x on
7125
# if running on 10.5 or later, the deployment target defaults
7126
# to the OS version, if on x86, and 10.4, the deployment
7127
# target defaults to 10.4. Don't you love it?
7128
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7129
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7130
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7132
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7134
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7138
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7139
_lt_dar_single_mod='$single_module'
7141
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7142
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7144
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7146
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7147
_lt_dsymutil='~$DSYMUTIL $lib || :'
7155
ac_cpp='$CPP $CPPFLAGS'
7156
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7157
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7158
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7159
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7160
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7161
# On Suns, sometimes $CPP names a directory.
7162
if test -n "$CPP" && test -d "$CPP"; then
7165
if test -z "$CPP"; then
7166
if ${ac_cv_prog_CPP+:} false; then :
7167
$as_echo_n "(cached) " >&6
7169
# Double quotes because CPP needs to be expanded
7170
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7173
for ac_c_preproc_warn_flag in '' yes
7175
# Use a header file that comes with gcc, so configuring glibc
7176
# with a fresh cross-compiler works.
7177
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7178
# <limits.h> exists even on freestanding compilers.
7179
# On the NeXT, cc -E runs the code through the compiler's parser,
7180
# not just through cpp. "Syntax error" is here to catch this case.
7181
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7182
/* end confdefs.h. */
7184
@%:@ include <limits.h>
7186
@%:@ include <assert.h>
7190
if ac_fn_c_try_cpp "$LINENO"; then :
7193
# Broken: fails on valid input.
7196
rm -f conftest.err conftest.i conftest.$ac_ext
7198
# OK, works on sane cases. Now check whether nonexistent headers
7199
# can be detected and how.
7200
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201
/* end confdefs.h. */
7202
@%:@include <ac_nonexistent.h>
7204
if ac_fn_c_try_cpp "$LINENO"; then :
7205
# Broken: success on invalid input.
7208
# Passes both tests.
7212
rm -f conftest.err conftest.i conftest.$ac_ext
7215
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7216
rm -f conftest.i conftest.err conftest.$ac_ext
7217
if $ac_preproc_ok; then :
7229
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7230
$as_echo "$CPP" >&6; }
7232
for ac_c_preproc_warn_flag in '' yes
7234
# Use a header file that comes with gcc, so configuring glibc
7235
# with a fresh cross-compiler works.
7236
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7237
# <limits.h> exists even on freestanding compilers.
7238
# On the NeXT, cc -E runs the code through the compiler's parser,
7239
# not just through cpp. "Syntax error" is here to catch this case.
7240
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241
/* end confdefs.h. */
7243
@%:@ include <limits.h>
7245
@%:@ include <assert.h>
7249
if ac_fn_c_try_cpp "$LINENO"; then :
7252
# Broken: fails on valid input.
7255
rm -f conftest.err conftest.i conftest.$ac_ext
7257
# OK, works on sane cases. Now check whether nonexistent headers
7258
# can be detected and how.
7259
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260
/* end confdefs.h. */
7261
@%:@include <ac_nonexistent.h>
7263
if ac_fn_c_try_cpp "$LINENO"; then :
7264
# Broken: success on invalid input.
7267
# Passes both tests.
7271
rm -f conftest.err conftest.i conftest.$ac_ext
7274
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7275
rm -f conftest.i conftest.err conftest.$ac_ext
7276
if $ac_preproc_ok; then :
7279
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7280
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7281
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7282
See \`config.log' for more details" "$LINENO" 5; }
7286
ac_cpp='$CPP $CPPFLAGS'
7287
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7288
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7289
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7292
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7293
$as_echo_n "checking for ANSI C header files... " >&6; }
7294
if ${ac_cv_header_stdc+:} false; then :
7295
$as_echo_n "(cached) " >&6
7297
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298
/* end confdefs.h. */
7312
if ac_fn_c_try_compile "$LINENO"; then :
7313
ac_cv_header_stdc=yes
7315
ac_cv_header_stdc=no
7317
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7319
if test $ac_cv_header_stdc = yes; then
7320
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7321
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322
/* end confdefs.h. */
7326
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7327
$EGREP "memchr" >/dev/null 2>&1; then :
7330
ac_cv_header_stdc=no
7336
if test $ac_cv_header_stdc = yes; then
7337
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7338
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339
/* end confdefs.h. */
7343
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7344
$EGREP "free" >/dev/null 2>&1; then :
7347
ac_cv_header_stdc=no
7353
if test $ac_cv_header_stdc = yes; then
7354
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7355
if test "$cross_compiling" = yes; then :
7358
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7359
/* end confdefs.h. */
7362
#if ((' ' & 0x0FF) == 0x020)
7363
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7364
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7366
# define ISLOWER(c) \
7367
(('a' <= (c) && (c) <= 'i') \
7368
|| ('j' <= (c) && (c) <= 'r') \
7369
|| ('s' <= (c) && (c) <= 'z'))
7370
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7373
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7378
for (i = 0; i < 256; i++)
7379
if (XOR (islower (i), ISLOWER (i))
7380
|| toupper (i) != TOUPPER (i))
7385
if ac_fn_c_try_run "$LINENO"; then :
7388
ac_cv_header_stdc=no
7390
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7391
conftest.$ac_objext conftest.beam conftest.$ac_ext
7396
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7397
$as_echo "$ac_cv_header_stdc" >&6; }
7398
if test $ac_cv_header_stdc = yes; then
7400
$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
7404
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7405
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7406
inttypes.h stdint.h unistd.h
7408
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7409
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7411
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7412
cat >>confdefs.h <<_ACEOF
7413
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7421
for ac_header in dlfcn.h
7423
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7425
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7426
cat >>confdefs.h <<_ACEOF
7427
@%:@define HAVE_DLFCN_H 1
7439
@%:@ Check whether --enable-static was given.
7440
if test "${enable_static+set}" = set; then :
7441
enableval=$enable_static; p=${PACKAGE-default}
7443
yes) enable_static=yes ;;
7444
no) enable_static=no ;;
7447
# Look at the argument we got. We use all the common list separators.
7448
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7449
for pkg in $enableval; do
7451
if test "X$pkg" = "X$p"; then
7477
@%:@ Check whether --enable-shared was given.
7478
if test "${enable_shared+set}" = set; then :
7479
enableval=$enable_shared; p=${PACKAGE-default}
7481
yes) enable_shared=yes ;;
7482
no) enable_shared=no ;;
7485
# Look at the argument we got. We use all the common list separators.
7486
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7487
for pkg in $enableval; do
7489
if test "X$pkg" = "X$p"; then
7510
@%:@ Check whether --with-pic was given.
7511
if test "${with_pic+set}" = set; then :
7512
withval=$with_pic; lt_p=${PACKAGE-default}
7514
yes|no) pic_mode=$withval ;;
7517
# Look at the argument we got. We use all the common list separators.
7518
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7519
for lt_pkg in $withval; do
7521
if test "X$lt_pkg" = "X$lt_p"; then
7533
test -z "$pic_mode" && pic_mode=default
7541
@%:@ Check whether --enable-fast-install was given.
7542
if test "${enable_fast_install+set}" = set; then :
7543
enableval=$enable_fast_install; p=${PACKAGE-default}
7545
yes) enable_fast_install=yes ;;
7546
no) enable_fast_install=no ;;
7548
enable_fast_install=no
7549
# Look at the argument we got. We use all the common list separators.
7550
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7551
for pkg in $enableval; do
7553
if test "X$pkg" = "X$p"; then
7554
enable_fast_install=yes
7561
enable_fast_install=yes
7574
# This can be used to rebuild libtool when needed
7575
LIBTOOL_DEPS="$ltmain"
7577
# Always use our own libtool.
7578
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7609
test -z "$LN_S" && LN_S="ln -s"
7624
if test -n "${ZSH_VERSION+set}" ; then
7625
setopt NO_GLOB_SUBST
7628
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7629
$as_echo_n "checking for objdir... " >&6; }
7630
if ${lt_cv_objdir+:} false; then :
7631
$as_echo_n "(cached) " >&6
7633
rm -f .libs 2>/dev/null
7634
mkdir .libs 2>/dev/null
7635
if test -d .libs; then
7638
# MS-DOS does not allow filenames that begin with a dot.
7641
rmdir .libs 2>/dev/null
7643
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7644
$as_echo "$lt_cv_objdir" >&6; }
7645
objdir=$lt_cv_objdir
7651
cat >>confdefs.h <<_ACEOF
7652
@%:@define LT_OBJDIR "$lt_cv_objdir/"
7660
# AIX sometimes has problems with the GCC collect2 program. For some
7661
# reason, if we set the COLLECT_NAMES environment variable, the problems
7662
# vanish in a puff of smoke.
7663
if test "X${COLLECT_NAMES+set}" != Xset; then
7665
export COLLECT_NAMES
7672
can_build_shared=yes
7674
# All known linkers require a `.a' archive for static linking (except MSVC,
7675
# which needs '.lib').
7678
with_gnu_ld="$lt_cv_prog_gnu_ld"
7681
old_CFLAGS="$CFLAGS"
7683
# Set sane defaults for various variables
7684
test -z "$CC" && CC=cc
7685
test -z "$LTCC" && LTCC=$CC
7686
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7687
test -z "$LD" && LD=ld
7688
test -z "$ac_objext" && ac_objext=o
7690
for cc_temp in $compiler""; do
7692
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7693
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7698
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7701
# Only perform the check for file, if the check method requires it
7702
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7703
case $deplibs_check_method in
7705
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7706
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7707
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7708
if ${lt_cv_path_MAGIC_CMD+:} false; then :
7709
$as_echo_n "(cached) " >&6
7713
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7716
lt_save_MAGIC_CMD="$MAGIC_CMD"
7717
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7718
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7719
for ac_dir in $ac_dummy; do
7721
test -z "$ac_dir" && ac_dir=.
7722
if test -f $ac_dir/${ac_tool_prefix}file; then
7723
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7724
if test -n "$file_magic_test_file"; then
7725
case $deplibs_check_method in
7727
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7728
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7729
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7730
$EGREP "$file_magic_regex" > /dev/null; then
7735
*** Warning: the command libtool uses to detect shared libraries,
7736
*** $file_magic_cmd, produces output that libtool cannot recognize.
7737
*** The result is that libtool may fail to recognize shared libraries
7738
*** as such. This will affect the creation of libtool libraries that
7739
*** depend on shared libraries, but programs linked with such libtool
7740
*** libraries will work regardless of this problem. Nevertheless, you
7741
*** may want to report the problem to your system manager and/or to
7742
*** bug-libtool@gnu.org
7752
MAGIC_CMD="$lt_save_MAGIC_CMD"
7757
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7758
if test -n "$MAGIC_CMD"; then
7759
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7760
$as_echo "$MAGIC_CMD" >&6; }
7762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763
$as_echo "no" >&6; }
7770
if test -z "$lt_cv_path_MAGIC_CMD"; then
7771
if test -n "$ac_tool_prefix"; then
7772
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7773
$as_echo_n "checking for file... " >&6; }
7774
if ${lt_cv_path_MAGIC_CMD+:} false; then :
7775
$as_echo_n "(cached) " >&6
7779
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7782
lt_save_MAGIC_CMD="$MAGIC_CMD"
7783
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7784
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7785
for ac_dir in $ac_dummy; do
7787
test -z "$ac_dir" && ac_dir=.
7788
if test -f $ac_dir/file; then
7789
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7790
if test -n "$file_magic_test_file"; then
7791
case $deplibs_check_method in
7793
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7794
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7795
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7796
$EGREP "$file_magic_regex" > /dev/null; then
7801
*** Warning: the command libtool uses to detect shared libraries,
7802
*** $file_magic_cmd, produces output that libtool cannot recognize.
7803
*** The result is that libtool may fail to recognize shared libraries
7804
*** as such. This will affect the creation of libtool libraries that
7805
*** depend on shared libraries, but programs linked with such libtool
7806
*** libraries will work regardless of this problem. Nevertheless, you
7807
*** may want to report the problem to your system manager and/or to
7808
*** bug-libtool@gnu.org
7818
MAGIC_CMD="$lt_save_MAGIC_CMD"
7823
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7824
if test -n "$MAGIC_CMD"; then
7825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7826
$as_echo "$MAGIC_CMD" >&6; }
7828
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829
$as_echo "no" >&6; }
7842
# Use C for the default configuration in the libtool script
7846
ac_cpp='$CPP $CPPFLAGS'
7847
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7848
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7849
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7852
# Source file extension for C test sources.
7855
# Object file extension for compiled C test sources.
7859
# Code to be used in simple compile tests
7860
lt_simple_compile_test_code="int some_variable = 0;"
7862
# Code to be used in simple link tests
7863
lt_simple_link_test_code='int main(){return(0);}'
7871
# If no C compiler was specified, use CC.
7874
# If no C compiler flags were specified, use CFLAGS.
7875
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7877
# Allow CC to be a program name with arguments.
7880
# Save the default compiler, since it gets overwritten when the other
7881
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7882
compiler_DEFAULT=$CC
7884
# save warnings/boilerplate of simple test code
7885
ac_outfile=conftest.$ac_objext
7886
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7887
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7888
_lt_compiler_boilerplate=`cat conftest.err`
7891
ac_outfile=conftest.$ac_objext
7892
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7893
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7894
_lt_linker_boilerplate=`cat conftest.err`
7899
## There is no encapsulation within the following macros, do not change
7900
## the running order or otherwise move them around unless you know exactly
7901
## what you are doing...
7902
if test -n "$compiler"; then
7904
lt_prog_compiler_no_builtin_flag=
7906
if test "$GCC" = yes; then
7907
case $cc_basename in
7909
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7911
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7914
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7915
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7916
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7917
$as_echo_n "(cached) " >&6
7919
lt_cv_prog_compiler_rtti_exceptions=no
7920
ac_outfile=conftest.$ac_objext
7921
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7922
lt_compiler_flag="-fno-rtti -fno-exceptions"
7923
# Insert the option either (1) after the last *FLAGS variable, or
7924
# (2) before a word containing "conftest.", or (3) at the end.
7925
# Note that $ac_compile itself does not contain backslashes and begins
7926
# with a dollar sign (not a hyphen), so the echo should work correctly.
7927
# The option is referenced via a variable to avoid confusing sed.
7928
lt_compile=`echo "$ac_compile" | $SED \
7929
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7930
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7931
-e 's:$: $lt_compiler_flag:'`
7932
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7933
(eval "$lt_compile" 2>conftest.err)
7935
cat conftest.err >&5
7936
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937
if (exit $ac_status) && test -s "$ac_outfile"; then
7938
# The compiler can only warn and ignore the option if not recognized
7939
# So say no if there are warnings other than the usual output.
7940
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7941
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7942
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7943
lt_cv_prog_compiler_rtti_exceptions=yes
7949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7950
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7952
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7953
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7965
lt_prog_compiler_wl=
7966
lt_prog_compiler_pic=
7967
lt_prog_compiler_static=
7970
if test "$GCC" = yes; then
7971
lt_prog_compiler_wl='-Wl,'
7972
lt_prog_compiler_static='-static'
7976
# All AIX code is PIC.
7977
if test "$host_cpu" = ia64; then
7978
# AIX 5 now supports IA64 processor
7979
lt_prog_compiler_static='-Bstatic'
7986
# see comment about AmigaOS4 .so support
7987
lt_prog_compiler_pic='-fPIC'
7990
# FIXME: we need at least 68020 code to build shared libraries, but
7991
# adding the `-m68020' flag to GCC prevents building anything better,
7993
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7998
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7999
# PIC is the default for these OSes.
8002
mingw* | cygwin* | pw32* | os2* | cegcc*)
8003
# This hack is so that the source file can tell whether it is being
8004
# built for inclusion in a dll (and should export symbols for example).
8005
# Although the cygwin gcc ignores -fPIC, still need this for old-style
8006
# (--disable-auto-import) libraries
8007
lt_prog_compiler_pic='-DDLL_EXPORT'
8010
darwin* | rhapsody*)
8011
# PIC is the default on this platform
8012
# Common symbols not allowed in MH_DYLIB files
8013
lt_prog_compiler_pic='-fno-common'
8017
# PIC is the default for Haiku.
8018
# The "-static" flag exists, but is broken.
8019
lt_prog_compiler_static=
8023
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8024
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8025
# sets the default TLS model and affects inlining.
8031
lt_prog_compiler_pic='-fPIC'
8037
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
8038
# Instead, we relocate shared libraries at runtime.
8042
# Just because we use GCC doesn't mean we suddenly get shared libraries
8043
# on systems that don't support them.
8044
lt_prog_compiler_can_build_shared=no
8049
# QNX uses GNU C++, but need to define -shared option too, otherwise
8051
lt_prog_compiler_pic='-fPIC -shared'
8055
if test -d /usr/nec; then
8056
lt_prog_compiler_pic=-Kconform_pic
8061
lt_prog_compiler_pic='-fPIC'
8065
case $cc_basename in
8066
nvcc*) # Cuda Compiler Driver 2.2
8067
lt_prog_compiler_wl='-Xlinker '
8068
if test -n "$lt_prog_compiler_pic"; then
8069
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8074
# PORTME Check for flag to pass linker flags through the system compiler.
8077
lt_prog_compiler_wl='-Wl,'
8078
if test "$host_cpu" = ia64; then
8079
# AIX 5 now supports IA64 processor
8080
lt_prog_compiler_static='-Bstatic'
8082
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8086
mingw* | cygwin* | pw32* | os2* | cegcc*)
8087
# This hack is so that the source file can tell whether it is being
8088
# built for inclusion in a dll (and should export symbols for example).
8089
lt_prog_compiler_pic='-DDLL_EXPORT'
8092
hpux9* | hpux10* | hpux11*)
8093
lt_prog_compiler_wl='-Wl,'
8094
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8101
lt_prog_compiler_pic='+Z'
8104
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8105
lt_prog_compiler_static='${wl}-a ${wl}archive'
8108
irix5* | irix6* | nonstopux*)
8109
lt_prog_compiler_wl='-Wl,'
8110
# PIC (with -KPIC) is the default.
8111
lt_prog_compiler_static='-non_shared'
8114
linux* | k*bsd*-gnu | kopensolaris*-gnu)
8115
case $cc_basename in
8116
# old Intel for x86_64 which still supported -KPIC.
8118
lt_prog_compiler_wl='-Wl,'
8119
lt_prog_compiler_pic='-KPIC'
8120
lt_prog_compiler_static='-static'
8122
# icc used to be incompatible with GCC.
8123
# ICC 10 doesn't accept -KPIC any more.
8125
lt_prog_compiler_wl='-Wl,'
8126
lt_prog_compiler_pic='-fPIC'
8127
lt_prog_compiler_static='-static'
8129
# Lahey Fortran 8.1.
8131
lt_prog_compiler_wl='-Wl,'
8132
lt_prog_compiler_pic='--shared'
8133
lt_prog_compiler_static='--static'
8136
# NAG Fortran compiler
8137
lt_prog_compiler_wl='-Wl,-Wl,,'
8138
lt_prog_compiler_pic='-PIC'
8139
lt_prog_compiler_static='-Bstatic'
8141
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8142
# Portland Group compilers (*not* the Pentium gcc compiler,
8143
# which looks to be a dead project)
8144
lt_prog_compiler_wl='-Wl,'
8145
lt_prog_compiler_pic='-fpic'
8146
lt_prog_compiler_static='-Bstatic'
8149
lt_prog_compiler_wl='-Wl,'
8150
# All Alpha code is PIC.
8151
lt_prog_compiler_static='-non_shared'
8153
xl* | bgxl* | bgf* | mpixl*)
8154
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8155
lt_prog_compiler_wl='-Wl,'
8156
lt_prog_compiler_pic='-qpic'
8157
lt_prog_compiler_static='-qstaticlink'
8160
case `$CC -V 2>&1 | sed 5q` in
8161
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8162
# Sun Fortran 8.3 passes all unrecognized flags to the linker
8163
lt_prog_compiler_pic='-KPIC'
8164
lt_prog_compiler_static='-Bstatic'
8165
lt_prog_compiler_wl=''
8167
*Sun\ F* | *Sun*Fortran*)
8168
lt_prog_compiler_pic='-KPIC'
8169
lt_prog_compiler_static='-Bstatic'
8170
lt_prog_compiler_wl='-Qoption ld '
8174
lt_prog_compiler_pic='-KPIC'
8175
lt_prog_compiler_static='-Bstatic'
8176
lt_prog_compiler_wl='-Wl,'
8178
*Intel*\ [CF]*Compiler*)
8179
lt_prog_compiler_wl='-Wl,'
8180
lt_prog_compiler_pic='-fPIC'
8181
lt_prog_compiler_static='-static'
8184
lt_prog_compiler_wl='-Wl,'
8185
lt_prog_compiler_pic='-fpic'
8186
lt_prog_compiler_static='-Bstatic'
8194
lt_prog_compiler_pic='-KPIC'
8195
lt_prog_compiler_static='-Bstatic'
8199
# QNX uses GNU C++, but need to define -shared option too, otherwise
8201
lt_prog_compiler_pic='-fPIC -shared'
8204
osf3* | osf4* | osf5*)
8205
lt_prog_compiler_wl='-Wl,'
8206
# All OSF/1 code is PIC.
8207
lt_prog_compiler_static='-non_shared'
8211
lt_prog_compiler_static='-non_shared'
8215
lt_prog_compiler_pic='-KPIC'
8216
lt_prog_compiler_static='-Bstatic'
8217
case $cc_basename in
8218
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8219
lt_prog_compiler_wl='-Qoption ld ';;
8221
lt_prog_compiler_wl='-Wl,';;
8226
lt_prog_compiler_wl='-Qoption ld '
8227
lt_prog_compiler_pic='-PIC'
8228
lt_prog_compiler_static='-Bstatic'
8231
sysv4 | sysv4.2uw2* | sysv4.3*)
8232
lt_prog_compiler_wl='-Wl,'
8233
lt_prog_compiler_pic='-KPIC'
8234
lt_prog_compiler_static='-Bstatic'
8238
if test -d /usr/nec ;then
8239
lt_prog_compiler_pic='-Kconform_pic'
8240
lt_prog_compiler_static='-Bstatic'
8244
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8245
lt_prog_compiler_wl='-Wl,'
8246
lt_prog_compiler_pic='-KPIC'
8247
lt_prog_compiler_static='-Bstatic'
8251
lt_prog_compiler_wl='-Wl,'
8252
lt_prog_compiler_can_build_shared=no
8256
lt_prog_compiler_pic='-pic'
8257
lt_prog_compiler_static='-Bstatic'
8261
lt_prog_compiler_can_build_shared=no
8267
# For platforms which do not support PIC, -DPIC is meaningless:
8269
lt_prog_compiler_pic=
8272
lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
8276
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8277
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8278
if ${lt_cv_prog_compiler_pic+:} false; then :
8279
$as_echo_n "(cached) " >&6
8281
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8284
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8285
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8288
# Check to make sure the PIC flag actually works.
8290
if test -n "$lt_prog_compiler_pic"; then
8291
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8292
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8293
if ${lt_cv_prog_compiler_pic_works+:} false; then :
8294
$as_echo_n "(cached) " >&6
8296
lt_cv_prog_compiler_pic_works=no
8297
ac_outfile=conftest.$ac_objext
8298
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8299
lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
8300
# Insert the option either (1) after the last *FLAGS variable, or
8301
# (2) before a word containing "conftest.", or (3) at the end.
8302
# Note that $ac_compile itself does not contain backslashes and begins
8303
# with a dollar sign (not a hyphen), so the echo should work correctly.
8304
# The option is referenced via a variable to avoid confusing sed.
8305
lt_compile=`echo "$ac_compile" | $SED \
8306
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8307
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8308
-e 's:$: $lt_compiler_flag:'`
8309
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8310
(eval "$lt_compile" 2>conftest.err)
8312
cat conftest.err >&5
8313
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314
if (exit $ac_status) && test -s "$ac_outfile"; then
8315
# The compiler can only warn and ignore the option if not recognized
8316
# So say no if there are warnings other than the usual output.
8317
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8318
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8319
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8320
lt_cv_prog_compiler_pic_works=yes
8326
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8327
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8329
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8330
case $lt_prog_compiler_pic in
8332
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8335
lt_prog_compiler_pic=
8336
lt_prog_compiler_can_build_shared=no
8352
# Check to make sure the static flag actually works.
8354
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8355
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8356
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8357
if ${lt_cv_prog_compiler_static_works+:} false; then :
8358
$as_echo_n "(cached) " >&6
8360
lt_cv_prog_compiler_static_works=no
8361
save_LDFLAGS="$LDFLAGS"
8362
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8363
echo "$lt_simple_link_test_code" > conftest.$ac_ext
8364
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8365
# The linker can only warn and ignore the option if not recognized
8366
# So say no if there are warnings
8367
if test -s conftest.err; then
8368
# Append any errors to the config.log.
8369
cat conftest.err 1>&5
8370
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8371
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8372
if diff conftest.exp conftest.er2 >/dev/null; then
8373
lt_cv_prog_compiler_static_works=yes
8376
lt_cv_prog_compiler_static_works=yes
8380
LDFLAGS="$save_LDFLAGS"
8383
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8384
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8386
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8389
lt_prog_compiler_static=
8398
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8399
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8400
if ${lt_cv_prog_compiler_c_o+:} false; then :
8401
$as_echo_n "(cached) " >&6
8403
lt_cv_prog_compiler_c_o=no
8404
$RM -r conftest 2>/dev/null
8408
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8410
lt_compiler_flag="-o out/conftest2.$ac_objext"
8411
# Insert the option either (1) after the last *FLAGS variable, or
8412
# (2) before a word containing "conftest.", or (3) at the end.
8413
# Note that $ac_compile itself does not contain backslashes and begins
8414
# with a dollar sign (not a hyphen), so the echo should work correctly.
8415
lt_compile=`echo "$ac_compile" | $SED \
8416
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8417
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8418
-e 's:$: $lt_compiler_flag:'`
8419
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8420
(eval "$lt_compile" 2>out/conftest.err)
8422
cat out/conftest.err >&5
8423
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8426
# The compiler can only warn and ignore the option if not recognized
8427
# So say no if there are warnings
8428
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8429
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8430
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8431
lt_cv_prog_compiler_c_o=yes
8436
# SGI C++ compiler will create directory out/ii_files/ for
8437
# template instantiation
8438
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8439
$RM out/* && rmdir out
8445
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8446
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8453
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8454
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8455
if ${lt_cv_prog_compiler_c_o+:} false; then :
8456
$as_echo_n "(cached) " >&6
8458
lt_cv_prog_compiler_c_o=no
8459
$RM -r conftest 2>/dev/null
8463
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8465
lt_compiler_flag="-o out/conftest2.$ac_objext"
8466
# Insert the option either (1) after the last *FLAGS variable, or
8467
# (2) before a word containing "conftest.", or (3) at the end.
8468
# Note that $ac_compile itself does not contain backslashes and begins
8469
# with a dollar sign (not a hyphen), so the echo should work correctly.
8470
lt_compile=`echo "$ac_compile" | $SED \
8471
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8472
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8473
-e 's:$: $lt_compiler_flag:'`
8474
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8475
(eval "$lt_compile" 2>out/conftest.err)
8477
cat out/conftest.err >&5
8478
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8481
# The compiler can only warn and ignore the option if not recognized
8482
# So say no if there are warnings
8483
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8484
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8485
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8486
lt_cv_prog_compiler_c_o=yes
8491
# SGI C++ compiler will create directory out/ii_files/ for
8492
# template instantiation
8493
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8494
$RM out/* && rmdir out
8500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8501
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8506
hard_links="nottested"
8507
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8508
# do not overwrite the value of need_locks provided by the user
8509
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8510
$as_echo_n "checking if we can lock with hard links... " >&6; }
8513
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8515
ln conftest.a conftest.b 2>&5 || hard_links=no
8516
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8517
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8518
$as_echo "$hard_links" >&6; }
8519
if test "$hard_links" = no; then
8520
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8521
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8533
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8534
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8537
allow_undefined_flag=
8538
always_export_symbols=no
8540
archive_expsym_cmds=
8541
compiler_needs_object=no
8542
enable_shared_with_static_runtimes=no
8543
export_dynamic_flag_spec=
8544
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8545
hardcode_automatic=no
8547
hardcode_direct_absolute=no
8548
hardcode_libdir_flag_spec=
8549
hardcode_libdir_separator=
8551
hardcode_shlibpath_var=unsupported
8553
link_all_deplibs=unknown
8556
old_archive_from_new_cmds=
8557
old_archive_from_expsyms_cmds=
8558
thread_safe_flag_spec=
8559
whole_archive_flag_spec=
8560
# include_expsyms should be a list of space-separated symbols to be *always*
8561
# included in the symbol list
8563
# exclude_expsyms can be an extended regexp of symbols to exclude
8564
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8565
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8566
# as well as any symbol that contains `d'.
8567
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8568
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8569
# platforms (ab)use it in PIC code, but their linkers get confused if
8570
# the symbol is explicitly referenced. Since portable code cannot
8571
# rely on this symbol name, it's probably fine to never include it in
8572
# preloaded symbol tables.
8573
# Exclude shared library initialization/finalization symbols.
8574
extract_expsyms_cmds=
8577
cygwin* | mingw* | pw32* | cegcc*)
8578
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8579
# When not using gcc, we currently assume that we are using
8580
# Microsoft Visual C++.
8581
if test "$GCC" != yes; then
8586
# we just hope/assume this is gcc and not c89 (= MSVC++)
8596
# On some targets, GNU ld is compatible enough with the native linker
8597
# that we're better off using the native interface for both.
8598
lt_use_gnu_ld_interface=no
8599
if test "$with_gnu_ld" = yes; then
8602
# The AIX port of GNU ld has always aspired to compatibility
8603
# with the native linker. However, as the warning in the GNU ld
8604
# block says, versions before 2.19.5* couldn't really create working
8605
# shared libraries, regardless of the interface used.
8606
case `$LD -v 2>&1` in
8607
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8608
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8609
*\ \(GNU\ Binutils\)\ [3-9]*) ;;
8611
lt_use_gnu_ld_interface=yes
8616
lt_use_gnu_ld_interface=yes
8621
if test "$lt_use_gnu_ld_interface" = yes; then
8622
# If archive_cmds runs LD, not CC, wlarc should be empty
8625
# Set some defaults for GNU ld with shared library support. These
8626
# are reset later if shared libraries are not supported. Putting them
8627
# here allows them to be overridden if necessary.
8628
runpath_var=LD_RUN_PATH
8629
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8630
export_dynamic_flag_spec='${wl}--export-dynamic'
8631
# ancient GNU ld didn't support --whole-archive et. al.
8632
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8633
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8635
whole_archive_flag_spec=
8637
supports_anon_versioning=no
8638
case `$LD -v 2>&1` in
8639
*GNU\ gold*) supports_anon_versioning=yes ;;
8640
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8641
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8642
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8643
*\ 2.11.*) ;; # other 2.11 versions
8644
*) supports_anon_versioning=yes ;;
8647
# See if GNU ld supports shared libraries.
8650
# On AIX/PPC, the GNU linker is very broken
8651
if test "$host_cpu" != ia64; then
8655
*** Warning: the GNU linker, at least up to release 2.19, is reported
8656
*** to be unable to reliably create shared libraries on AIX.
8657
*** Therefore, libtool is disabling shared libraries support. If you
8658
*** really care for shared libraries, you may want to install binutils
8659
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8660
*** You will then need to restart the configuration process.
8669
# see comment about AmigaOS4 .so support
8670
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8671
archive_expsym_cmds=''
8674
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)'
8675
hardcode_libdir_flag_spec='-L$libdir'
8676
hardcode_minus_L=yes
8682
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8683
allow_undefined_flag=unsupported
8684
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8685
# support --undefined. This deserves some investigation. FIXME
8686
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8692
cygwin* | mingw* | pw32* | cegcc*)
8693
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8694
# as there is no search path for DLLs.
8695
hardcode_libdir_flag_spec='-L$libdir'
8696
export_dynamic_flag_spec='${wl}--export-all-symbols'
8697
allow_undefined_flag=unsupported
8698
always_export_symbols=no
8699
enable_shared_with_static_runtimes=yes
8700
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'
8701
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8703
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8704
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8705
# If the export-symbols file already is a .def file (1st line
8706
# is EXPORTS), use it as is; otherwise, prepend...
8707
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8708
cp $export_symbols $output_objdir/$soname.def;
8710
echo EXPORTS > $output_objdir/$soname.def;
8711
cat $export_symbols >> $output_objdir/$soname.def;
8713
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8720
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8721
link_all_deplibs=yes
8726
hardcode_shlibpath_var=no
8727
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8728
export_dynamic_flag_spec='${wl}-E'
8729
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8730
# Instead, shared libraries are loaded at an image base (0x10000000 by
8731
# default) and relocated if they conflict, which is a slow very memory
8732
# consuming and fragmenting process. To avoid this, we pick a random,
8733
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8734
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8735
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8736
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'
8739
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8741
if test "$host_os" = linux-dietlibc; then
8742
case $cc_basename in
8743
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8746
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8747
&& test "$tmp_diet" = no
8749
tmp_addflag=' $pic_flag'
8750
tmp_sharedflag='-shared'
8751
case $cc_basename,$host_cpu in
8752
pgcc*) # Portland Group C compiler
8753
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'
8754
tmp_addflag=' $pic_flag'
8756
pgf77* | pgf90* | pgf95* | pgfortran*)
8757
# Portland Group f77 and f90 compilers
8758
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'
8759
tmp_addflag=' $pic_flag -Mnomain' ;;
8760
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8761
tmp_addflag=' -i_dynamic' ;;
8762
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8763
tmp_addflag=' -i_dynamic -nofor_main' ;;
8764
ifc* | ifort*) # Intel Fortran compiler
8765
tmp_addflag=' -nofor_main' ;;
8766
lf95*) # Lahey Fortran 8.1
8767
whole_archive_flag_spec=
8768
tmp_sharedflag='--shared' ;;
8769
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8770
tmp_sharedflag='-qmkshrobj'
8772
nvcc*) # Cuda Compiler Driver 2.2
8773
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'
8774
compiler_needs_object=yes
8777
case `$CC -V 2>&1 | sed 5q` in
8778
*Sun\ C*) # Sun C 5.9
8779
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'
8780
compiler_needs_object=yes
8781
tmp_sharedflag='-G' ;;
8782
*Sun\ F*) # Sun Fortran 8.3
8783
tmp_sharedflag='-G' ;;
8785
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8787
if test "x$supports_anon_versioning" = xyes; then
8788
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8789
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8790
echo "local: *; };" >> $output_objdir/$libname.ver~
8791
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8794
case $cc_basename in
8795
xlf* | bgf* | bgxlf* | mpixlf*)
8796
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8797
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8798
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8799
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8800
if test "x$supports_anon_versioning" = xyes; then
8801
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8802
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8803
echo "local: *; };" >> $output_objdir/$libname.ver~
8804
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8814
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8815
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8818
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8819
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8824
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8828
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8829
*** create shared libraries on Solaris systems. Therefore, libtool
8830
*** is disabling shared libraries support. We urge you to upgrade GNU
8831
*** binutils to release 2.9.1 or newer. Another option is to modify
8832
*** your PATH or compiler configuration so that the native linker is
8833
*** used, and then restart.
8836
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8837
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8838
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8844
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8845
case `$LD -v 2>&1` in
8846
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8850
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8851
*** reliably create shared libraries on SCO systems. Therefore, libtool
8852
*** is disabling shared libraries support. We urge you to upgrade GNU
8853
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8854
*** your PATH or compiler configuration so that the native linker is
8855
*** used, and then restart.
8860
# For security reasons, it is highly recommended that you always
8861
# use absolute paths for naming shared libraries, and exclude the
8862
# DT_RUNPATH tag from executables and libraries. But doing so
8863
# requires that you compile everything twice, which is a pain.
8864
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8865
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8866
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8867
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8876
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8879
hardcode_shlibpath_var=no
8883
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8884
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8885
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8892
if test "$ld_shlibs" = no; then
8894
hardcode_libdir_flag_spec=
8895
export_dynamic_flag_spec=
8896
whole_archive_flag_spec=
8899
# PORTME fill in a description of your system's linker (not GNU ld)
8902
allow_undefined_flag=unsupported
8903
always_export_symbols=yes
8904
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'
8905
# Note: this linker hardcodes the directories in LIBPATH if there
8906
# are no directories specified by -L.
8907
hardcode_minus_L=yes
8908
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8909
# Neither direct hardcoding nor static linking is supported with a
8911
hardcode_direct=unsupported
8916
if test "$host_cpu" = ia64; then
8917
# On IA64, the linker does run time linking by default, so we don't
8918
# have to do anything special.
8919
aix_use_runtimelinking=no
8920
exp_sym_flag='-Bexport'
8923
# If we're using GNU nm, then we don't want the "-C" option.
8924
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8925
# Also, AIX nm treats weak defined symbols like other global
8926
# defined symbols, whereas GNU nm marks them as "W".
8927
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8928
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'
8930
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'
8932
aix_use_runtimelinking=no
8934
# Test if we are trying to use run time linking or normal
8935
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8936
# need to do runtime linking.
8937
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8938
for ld_flag in $LDFLAGS; do
8939
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8940
aix_use_runtimelinking=yes
8947
exp_sym_flag='-bexport'
8948
no_entry_flag='-bnoentry'
8951
# When large executables or shared objects are built, AIX ld can
8952
# have problems creating the table of contents. If linking a library
8953
# or program results in "error TOC overflow" add -mminimal-toc to
8954
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8955
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8959
hardcode_direct_absolute=yes
8960
hardcode_libdir_separator=':'
8961
link_all_deplibs=yes
8962
file_list_spec='${wl}-f,'
8964
if test "$GCC" = yes; then
8965
case $host_os in aix4.[012]|aix4.[012].*)
8966
# We only want to do this on AIX 4.2 and lower, the check
8967
# below for broken collect2 doesn't work under 4.3+
8968
collect2name=`${CC} -print-prog-name=collect2`
8969
if test -f "$collect2name" &&
8970
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8972
# We have reworked collect2
8975
# We have old collect2
8976
hardcode_direct=unsupported
8977
# It fails to find uninstalled libraries when the uninstalled
8978
# path is not listed in the libpath. Setting hardcode_minus_L
8979
# to unsupported forces relinking
8980
hardcode_minus_L=yes
8981
hardcode_libdir_flag_spec='-L$libdir'
8982
hardcode_libdir_separator=
8986
shared_flag='-shared'
8987
if test "$aix_use_runtimelinking" = yes; then
8988
shared_flag="$shared_flag "'${wl}-G'
8992
if test "$host_cpu" = ia64; then
8993
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8994
# chokes on -Wl,-G. The following line is correct:
8997
if test "$aix_use_runtimelinking" = yes; then
8998
shared_flag='${wl}-G'
9000
shared_flag='${wl}-bM:SRE'
9005
export_dynamic_flag_spec='${wl}-bexpall'
9006
# It seems that -bexpall does not export symbols beginning with
9007
# underscore (_), so it is better to generate a list of symbols to export.
9008
always_export_symbols=yes
9009
if test "$aix_use_runtimelinking" = yes; then
9010
# Warning - without using the other runtime loading flags (-brtl),
9011
# -berok will link without error, but may produce a broken library.
9012
allow_undefined_flag='-berok'
9013
# Determine the default libpath from the value encoded in an
9015
if test "${lt_cv_aix_libpath+set}" = set; then
9016
aix_libpath=$lt_cv_aix_libpath
9018
if ${lt_cv_aix_libpath_+:} false; then :
9019
$as_echo_n "(cached) " >&6
9021
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022
/* end confdefs.h. */
9032
if ac_fn_c_try_link "$LINENO"; then :
9034
lt_aix_libpath_sed='
9035
/Import File Strings/,/^$/ {
9037
s/^0 *\([^ ]*\) *$/\1/
9041
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9042
# Check for a 64-bit object if we didn't find anything.
9043
if test -z "$lt_cv_aix_libpath_"; then
9044
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9047
rm -f core conftest.err conftest.$ac_objext \
9048
conftest$ac_exeext conftest.$ac_ext
9049
if test -z "$lt_cv_aix_libpath_"; then
9050
lt_cv_aix_libpath_="/usr/lib:/lib"
9055
aix_libpath=$lt_cv_aix_libpath_
9058
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9059
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"
9061
if test "$host_cpu" = ia64; then
9062
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9063
allow_undefined_flag="-z nodefs"
9064
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"
9066
# Determine the default libpath from the value encoded in an
9068
if test "${lt_cv_aix_libpath+set}" = set; then
9069
aix_libpath=$lt_cv_aix_libpath
9071
if ${lt_cv_aix_libpath_+:} false; then :
9072
$as_echo_n "(cached) " >&6
9074
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9075
/* end confdefs.h. */
9085
if ac_fn_c_try_link "$LINENO"; then :
9087
lt_aix_libpath_sed='
9088
/Import File Strings/,/^$/ {
9090
s/^0 *\([^ ]*\) *$/\1/
9094
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9095
# Check for a 64-bit object if we didn't find anything.
9096
if test -z "$lt_cv_aix_libpath_"; then
9097
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9100
rm -f core conftest.err conftest.$ac_objext \
9101
conftest$ac_exeext conftest.$ac_ext
9102
if test -z "$lt_cv_aix_libpath_"; then
9103
lt_cv_aix_libpath_="/usr/lib:/lib"
9108
aix_libpath=$lt_cv_aix_libpath_
9111
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9112
# Warning - without using the other run time loading flags,
9113
# -berok will link without error, but may produce a broken library.
9114
no_undefined_flag=' ${wl}-bernotok'
9115
allow_undefined_flag=' ${wl}-berok'
9116
if test "$with_gnu_ld" = yes; then
9117
# We only use this code for GNU lds that support --whole-archive.
9118
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9120
# Exported symbols can be pulled into shared objects from archives
9121
whole_archive_flag_spec='$convenience'
9123
archive_cmds_need_lc=yes
9124
# This is similar to how AIX traditionally builds its shared libraries.
9125
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'
9133
# see comment about AmigaOS4 .so support
9134
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9135
archive_expsym_cmds=''
9138
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)'
9139
hardcode_libdir_flag_spec='-L$libdir'
9140
hardcode_minus_L=yes
9146
export_dynamic_flag_spec=-rdynamic
9149
cygwin* | mingw* | pw32* | cegcc*)
9150
# When not using gcc, we currently assume that we are using
9151
# Microsoft Visual C++.
9152
# hardcode_libdir_flag_spec is actually meaningless, as there is
9153
# no search path for DLLs.
9154
case $cc_basename in
9157
hardcode_libdir_flag_spec=' '
9158
allow_undefined_flag=unsupported
9159
always_export_symbols=yes
9161
# Tell ltmain to make .lib files, not .a files.
9163
# Tell ltmain to make .dll files, not .so files.
9165
# FIXME: Setting linknames here is a bad hack.
9166
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9167
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9168
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9170
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9172
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9174
# The linker will not automatically build a static lib if we build a DLL.
9175
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9176
enable_shared_with_static_runtimes=yes
9177
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9178
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9180
old_postinstall_cmds='chmod 644 $oldlib'
9181
postlink_cmds='lt_outputfile="@OUTPUT@"~
9182
lt_tool_outputfile="@TOOL_OUTPUT@"~
9183
case $lt_outputfile in
9186
lt_outputfile="$lt_outputfile.exe"
9187
lt_tool_outputfile="$lt_tool_outputfile.exe"
9190
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9191
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9192
$RM "$lt_outputfile.manifest";
9196
# Assume MSVC wrapper
9197
hardcode_libdir_flag_spec=' '
9198
allow_undefined_flag=unsupported
9199
# Tell ltmain to make .lib files, not .a files.
9201
# Tell ltmain to make .dll files, not .so files.
9203
# FIXME: Setting linknames here is a bad hack.
9204
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9205
# The linker will automatically build a .lib file if we build a DLL.
9206
old_archive_from_new_cmds='true'
9207
# FIXME: Should let the user specify the lib program.
9208
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9209
enable_shared_with_static_runtimes=yes
9214
darwin* | rhapsody*)
9217
archive_cmds_need_lc=no
9219
hardcode_automatic=yes
9220
hardcode_shlibpath_var=unsupported
9221
if test "$lt_cv_ld_force_load" = "yes"; then
9222
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\"`'
9225
whole_archive_flag_spec=''
9227
link_all_deplibs=yes
9228
allow_undefined_flag="$_lt_dar_allow_undefined"
9229
case $cc_basename in
9230
ifort*) _lt_dar_can_shared=yes ;;
9231
*) _lt_dar_can_shared=$GCC ;;
9233
if test "$_lt_dar_can_shared" = "yes"; then
9234
output_verbose_link_cmd=func_echo_all
9235
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9236
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9237
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}"
9238
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}"
9247
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9248
hardcode_libdir_flag_spec='-L$libdir'
9249
hardcode_shlibpath_var=no
9252
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9253
# support. Future versions do this automatically, but an explicit c++rt0.o
9254
# does not break anything, and helps significantly (at the cost of a little
9257
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9258
hardcode_libdir_flag_spec='-R$libdir'
9260
hardcode_shlibpath_var=no
9263
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9265
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9267
hardcode_minus_L=yes
9268
hardcode_shlibpath_var=no
9271
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9272
freebsd* | dragonfly*)
9273
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9274
hardcode_libdir_flag_spec='-R$libdir'
9276
hardcode_shlibpath_var=no
9280
if test "$GCC" = yes; then
9281
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'
9283
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'
9285
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9286
hardcode_libdir_separator=:
9289
# hardcode_minus_L: Not really in the search PATH,
9290
# but as the default location of the library.
9291
hardcode_minus_L=yes
9292
export_dynamic_flag_spec='${wl}-E'
9296
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9297
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9299
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9301
if test "$with_gnu_ld" = no; then
9302
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9303
hardcode_libdir_separator=:
9305
hardcode_direct_absolute=yes
9306
export_dynamic_flag_spec='${wl}-E'
9307
# hardcode_minus_L: Not really in the search PATH,
9308
# but as the default location of the library.
9309
hardcode_minus_L=yes
9314
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9317
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9320
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9323
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9329
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9332
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9336
# Older versions of the 11.00 compiler do not understand -b yet
9337
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9338
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9339
$as_echo_n "checking if $CC understands -b... " >&6; }
9340
if ${lt_cv_prog_compiler__b+:} false; then :
9341
$as_echo_n "(cached) " >&6
9343
lt_cv_prog_compiler__b=no
9344
save_LDFLAGS="$LDFLAGS"
9345
LDFLAGS="$LDFLAGS -b"
9346
echo "$lt_simple_link_test_code" > conftest.$ac_ext
9347
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9348
# The linker can only warn and ignore the option if not recognized
9349
# So say no if there are warnings
9350
if test -s conftest.err; then
9351
# Append any errors to the config.log.
9352
cat conftest.err 1>&5
9353
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9354
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9355
if diff conftest.exp conftest.er2 >/dev/null; then
9356
lt_cv_prog_compiler__b=yes
9359
lt_cv_prog_compiler__b=yes
9363
LDFLAGS="$save_LDFLAGS"
9366
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9367
$as_echo "$lt_cv_prog_compiler__b" >&6; }
9369
if test x"$lt_cv_prog_compiler__b" = xyes; then
9370
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9372
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9378
if test "$with_gnu_ld" = no; then
9379
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9380
hardcode_libdir_separator=:
9385
hardcode_shlibpath_var=no
9389
hardcode_direct_absolute=yes
9390
export_dynamic_flag_spec='${wl}-E'
9392
# hardcode_minus_L: Not really in the search PATH,
9393
# but as the default location of the library.
9394
hardcode_minus_L=yes
9400
irix5* | irix6* | nonstopux*)
9401
if test "$GCC" = yes; then
9402
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'
9403
# Try to use the -exported_symbol ld option, if it does not
9404
# work, assume that -exports_file does not work either and
9405
# implicitly export all symbols.
9406
# This should be the same for all languages, so no per-tag cache variable.
9407
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9408
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9409
if ${lt_cv_irix_exported_symbol+:} false; then :
9410
$as_echo_n "(cached) " >&6
9412
save_LDFLAGS="$LDFLAGS"
9413
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9414
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9415
/* end confdefs.h. */
9416
int foo (void) { return 0; }
9418
if ac_fn_c_try_link "$LINENO"; then :
9419
lt_cv_irix_exported_symbol=yes
9421
lt_cv_irix_exported_symbol=no
9423
rm -f core conftest.err conftest.$ac_objext \
9424
conftest$ac_exeext conftest.$ac_ext
9425
LDFLAGS="$save_LDFLAGS"
9427
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9428
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9429
if test "$lt_cv_irix_exported_symbol" = yes; then
9430
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'
9433
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'
9434
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'
9436
archive_cmds_need_lc='no'
9437
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9438
hardcode_libdir_separator=:
9440
link_all_deplibs=yes
9444
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9445
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9447
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9449
hardcode_libdir_flag_spec='-R$libdir'
9451
hardcode_shlibpath_var=no
9455
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9457
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9458
hardcode_libdir_separator=:
9459
hardcode_shlibpath_var=no
9466
if test -f /usr/libexec/ld.so; then
9468
hardcode_shlibpath_var=no
9469
hardcode_direct_absolute=yes
9470
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9471
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9472
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9473
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9474
export_dynamic_flag_spec='${wl}-E'
9477
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9478
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9479
hardcode_libdir_flag_spec='-R$libdir'
9482
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9483
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9493
hardcode_libdir_flag_spec='-L$libdir'
9494
hardcode_minus_L=yes
9495
allow_undefined_flag=unsupported
9496
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'
9497
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9501
if test "$GCC" = yes; then
9502
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9503
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'
9505
allow_undefined_flag=' -expect_unresolved \*'
9506
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'
9508
archive_cmds_need_lc='no'
9509
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9510
hardcode_libdir_separator=:
9513
osf4* | osf5*) # as osf3* with the addition of -msym flag
9514
if test "$GCC" = yes; then
9515
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9516
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'
9517
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9519
allow_undefined_flag=' -expect_unresolved \*'
9520
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'
9521
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~
9522
$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'
9524
# Both c and cxx compiler support -rpath directly
9525
hardcode_libdir_flag_spec='-rpath $libdir'
9527
archive_cmds_need_lc='no'
9528
hardcode_libdir_separator=:
9532
no_undefined_flag=' -z defs'
9533
if test "$GCC" = yes; then
9535
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9536
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9537
$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'
9539
case `$CC -V 2>&1` in
9542
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9543
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9544
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9548
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9549
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9550
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9554
hardcode_libdir_flag_spec='-R$libdir'
9555
hardcode_shlibpath_var=no
9557
solaris2.[0-5] | solaris2.[0-5].*) ;;
9559
# The compiler driver will combine and reorder linker options,
9560
# but understands `-z linker_flag'. GCC discards it without `$wl',
9561
# but is careful enough not to reorder.
9562
# Supported since Solaris 2.6 (maybe 2.5.1?)
9563
if test "$GCC" = yes; then
9564
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9566
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9570
link_all_deplibs=yes
9574
if test "x$host_vendor" = xsequent; then
9575
# Use $CC to link under sequent, because it throws in some extra .o
9576
# files that make .init and .fini sections work.
9577
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9579
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9581
hardcode_libdir_flag_spec='-L$libdir'
9583
hardcode_minus_L=yes
9584
hardcode_shlibpath_var=no
9588
case $host_vendor in
9590
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9591
hardcode_direct=yes # is this really true???
9594
## LD is ld it makes a PLAMLIB
9595
## CC just makes a GrossModule.
9596
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9597
reload_cmds='$CC -r -o $output$reload_objs'
9601
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9602
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9605
runpath_var='LD_RUN_PATH'
9606
hardcode_shlibpath_var=no
9610
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9611
hardcode_shlibpath_var=no
9612
export_dynamic_flag_spec='-Bexport'
9616
if test -d /usr/nec; then
9617
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9618
hardcode_shlibpath_var=no
9619
runpath_var=LD_RUN_PATH
9620
hardcode_runpath_var=yes
9625
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9626
no_undefined_flag='${wl}-z,text'
9627
archive_cmds_need_lc=no
9628
hardcode_shlibpath_var=no
9629
runpath_var='LD_RUN_PATH'
9631
if test "$GCC" = yes; then
9632
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9633
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9635
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9636
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9640
sysv5* | sco3.2v5* | sco5v6*)
9641
# Note: We can NOT use -z defs as we might desire, because we do not
9642
# link with -lc, and that would cause any symbols used from libc to
9643
# always be unresolved, which means just about no library would
9644
# ever link correctly. If we're not using GNU ld we use -z text
9645
# though, which does catch some bad symbols but isn't as heavy-handed
9647
no_undefined_flag='${wl}-z,text'
9648
allow_undefined_flag='${wl}-z,nodefs'
9649
archive_cmds_need_lc=no
9650
hardcode_shlibpath_var=no
9651
hardcode_libdir_flag_spec='${wl}-R,$libdir'
9652
hardcode_libdir_separator=':'
9653
link_all_deplibs=yes
9654
export_dynamic_flag_spec='${wl}-Bexport'
9655
runpath_var='LD_RUN_PATH'
9657
if test "$GCC" = yes; then
9658
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9659
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9661
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9662
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9667
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9668
hardcode_libdir_flag_spec='-L$libdir'
9669
hardcode_shlibpath_var=no
9677
if test x$host_vendor = xsni; then
9679
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9680
export_dynamic_flag_spec='${wl}-Blargedynsym'
9686
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9687
$as_echo "$ld_shlibs" >&6; }
9688
test "$ld_shlibs" = no && can_build_shared=no
9690
with_gnu_ld=$with_gnu_ld
9707
# Do we need to explicitly link libc?
9709
case "x$archive_cmds_need_lc" in
9711
# Assume -lc should be added
9712
archive_cmds_need_lc=yes
9714
if test "$enable_shared" = yes && test "$GCC" = yes; then
9715
case $archive_cmds in
9717
# FIXME: we may have to deal with multi-command sequences.
9720
# Test whether the compiler implicitly links with -lc since on some
9721
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9722
# to ld, don't add -lc before -lgcc.
9723
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9724
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9725
if ${lt_cv_archive_cmds_need_lc+:} false; then :
9726
$as_echo_n "(cached) " >&6
9729
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9731
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9732
(eval $ac_compile) 2>&5
9734
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9735
test $ac_status = 0; } 2>conftest.err; then
9738
libobjs=conftest.$ac_objext
9740
wl=$lt_prog_compiler_wl
9741
pic_flag=$lt_prog_compiler_pic
9747
lt_save_allow_undefined_flag=$allow_undefined_flag
9748
allow_undefined_flag=
9749
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9750
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9752
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9753
test $ac_status = 0; }
9755
lt_cv_archive_cmds_need_lc=no
9757
lt_cv_archive_cmds_need_lc=yes
9759
allow_undefined_flag=$lt_save_allow_undefined_flag
9761
cat conftest.err 1>&5
9766
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9767
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9768
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9926
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9927
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9929
if test "$GCC" = yes; then
9931
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9932
*) lt_awk_arg="/^libraries:/" ;;
9935
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9936
*) lt_sed_strip_eq="s,=/,/,g" ;;
9938
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9939
case $lt_search_path_spec in
9941
# if the path contains ";" then we assume it to be the separator
9942
# otherwise default to the standard path separator (i.e. ":") - it is
9943
# assumed that no part of a normal pathname contains ";" but that should
9944
# okay in the real world where ";" in dirpaths is itself problematic.
9945
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9948
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9951
# Ok, now we have the path, separated by spaces, we can step through it
9952
# and add multilib dir if necessary.
9953
lt_tmp_lt_search_path_spec=
9954
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9955
for lt_sys_path in $lt_search_path_spec; do
9956
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9957
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9959
test -d "$lt_sys_path" && \
9960
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9963
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9964
BEGIN {RS=" "; FS="/|\n";} {
9967
for (lt_i = NF; lt_i > 0; lt_i--) {
9968
if ($lt_i != "" && $lt_i != ".") {
9969
if ($lt_i == "..") {
9972
if (lt_count == 0) {
9973
lt_foo="/" $lt_i lt_foo;
9980
if (lt_foo != "") { lt_freq[lt_foo]++; }
9981
if (lt_freq[lt_foo] == 1) { print lt_foo; }
9983
# AWK program above erroneously prepends '/' to C:/dos/paths
9986
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9987
$SED 's,/\([A-Za-z]:\),\1,g'` ;;
9989
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9991
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9994
libname_spec='lib$name'
10002
shlibpath_overrides_runpath=unknown
10004
dynamic_linker="$host_os ld.so"
10005
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10006
need_lib_prefix=unknown
10007
hardcode_into_libs=no
10009
# when you set need_version to no, make sure it does not cause -set_version
10010
# flags to be left without arguments
10011
need_version=unknown
10015
version_type=linux # correct to gnu/linux during the next big refactor
10016
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10017
shlibpath_var=LIBPATH
10019
# AIX 3 has no versioning support, so we append a major version to the name.
10020
soname_spec='${libname}${release}${shared_ext}$major'
10024
version_type=linux # correct to gnu/linux during the next big refactor
10027
hardcode_into_libs=yes
10028
if test "$host_cpu" = ia64; then
10029
# AIX 5 supports IA64
10030
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10031
shlibpath_var=LD_LIBRARY_PATH
10033
# With GCC up to 2.95.x, collect2 would create an import file
10034
# for dependence libraries. The import file would start with
10035
# the line `#! .'. This would cause the generated library to
10036
# depend on `.', always an invalid library. This was fixed in
10037
# development snapshots of GCC prior to 3.0.
10039
aix4 | aix4.[01] | aix4.[01].*)
10040
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10042
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10045
can_build_shared=no
10049
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10050
# soname into executable. Probably we can add versioning support to
10051
# collect2, so additional links can be useful in future.
10052
if test "$aix_use_runtimelinking" = yes; then
10053
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
10054
# instead of lib<name>.a to let people know that these are not
10055
# typical AIX shared libraries.
10056
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10058
# We preserve .a as extension for shared libraries through AIX4.2
10059
# and later when we are not doing run time linking.
10060
library_names_spec='${libname}${release}.a $libname.a'
10061
soname_spec='${libname}${release}${shared_ext}$major'
10063
shlibpath_var=LIBPATH
10070
# Since July 2007 AmigaOS4 officially supports .so libraries.
10071
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10072
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075
library_names_spec='$libname.ixlibrary $libname.a'
10076
# Create ${libname}_ixlibrary.a entries in /sys/libs.
10077
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'
10083
library_names_spec='${libname}${shared_ext}'
10084
dynamic_linker="$host_os ld.so"
10085
shlibpath_var=LIBRARY_PATH
10089
version_type=linux # correct to gnu/linux during the next big refactor
10091
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10092
soname_spec='${libname}${release}${shared_ext}$major'
10093
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10094
shlibpath_var=LD_LIBRARY_PATH
10095
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10096
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10097
# the default ld.so.conf also contains /usr/contrib/lib and
10098
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10099
# libtool to hard-code these into programs
10102
cygwin* | mingw* | pw32* | cegcc*)
10103
version_type=windows
10108
case $GCC,$cc_basename in
10111
library_names_spec='$libname.dll.a'
10112
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10113
postinstall_cmds='base_file=`basename \${file}`~
10114
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10115
dldir=$destdir/`dirname \$dlpath`~
10116
test -d \$dldir || mkdir -p \$dldir~
10117
$install_prog $dir/$dlname \$dldir/$dlname~
10118
chmod a+x \$dldir/$dlname~
10119
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10120
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10122
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10123
dlpath=$dir/\$dldll~
10125
shlibpath_overrides_runpath=yes
10129
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10130
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10132
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10135
# MinGW DLLs use traditional 'lib' prefix
10136
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10139
# pw32 DLLs use 'pw' prefix rather than 'lib'
10140
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10143
dynamic_linker='Win32 ld.exe'
10148
libname_spec='$name'
10149
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10150
library_names_spec='${libname}.dll.lib'
10154
sys_lib_search_path_spec=
10157
for lt_path in $LIB
10160
# Let DOS variable expansion print the short 8.3 style file name.
10161
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10162
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10165
# Convert to MSYS style.
10166
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10169
# Convert to unix form, then to dos form, then back to unix form
10170
# but this time dos style (no spaces!) so that the unix form looks
10171
# like /cygdrive/c/PROGRA~1:/cygdr...
10172
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10173
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10174
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10177
sys_lib_search_path_spec="$LIB"
10178
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10179
# It is most probably a Windows format PATH.
10180
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10182
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10184
# FIXME: find the short name or the path components, as spaces are
10185
# common. (e.g. "Program Files" -> "PROGRA~1")
10189
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10190
postinstall_cmds='base_file=`basename \${file}`~
10191
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10192
dldir=$destdir/`dirname \$dlpath`~
10193
test -d \$dldir || mkdir -p \$dldir~
10194
$install_prog $dir/$dlname \$dldir/$dlname'
10195
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10196
dlpath=$dir/\$dldll~
10198
shlibpath_overrides_runpath=yes
10199
dynamic_linker='Win32 link.exe'
10203
# Assume MSVC wrapper
10204
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10205
dynamic_linker='Win32 ld.exe'
10208
# FIXME: first we should search . and the directory the executable is in
10212
darwin* | rhapsody*)
10213
dynamic_linker="$host_os dyld"
10214
version_type=darwin
10217
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10218
soname_spec='${libname}${release}${major}$shared_ext'
10219
shlibpath_overrides_runpath=yes
10220
shlibpath_var=DYLD_LIBRARY_PATH
10221
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10223
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10224
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10228
version_type=linux # correct to gnu/linux during the next big refactor
10231
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10232
soname_spec='${libname}${release}${shared_ext}$major'
10233
shlibpath_var=LD_LIBRARY_PATH
10236
freebsd* | dragonfly*)
10237
# DragonFly does not have aout. When/if they implement a new
10238
# versioning mechanism, adjust this.
10239
if test -x /usr/bin/objformat; then
10240
objformat=`/usr/bin/objformat`
10243
freebsd[23].*) objformat=aout ;;
10244
*) objformat=elf ;;
10247
version_type=freebsd-$objformat
10248
case $version_type in
10250
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10255
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10259
shlibpath_var=LD_LIBRARY_PATH
10262
shlibpath_overrides_runpath=yes
10264
freebsd3.[01]* | freebsdelf3.[01]*)
10265
shlibpath_overrides_runpath=yes
10266
hardcode_into_libs=yes
10268
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10269
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10270
shlibpath_overrides_runpath=no
10271
hardcode_into_libs=yes
10273
*) # from 4.6 on, and DragonFly
10274
shlibpath_overrides_runpath=yes
10275
hardcode_into_libs=yes
10281
version_type=linux # correct to gnu/linux during the next big refactor
10284
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10285
soname_spec='${libname}${release}${shared_ext}$major'
10286
shlibpath_var=LD_LIBRARY_PATH
10287
shlibpath_overrides_runpath=no
10288
hardcode_into_libs=yes
10292
version_type=linux # correct to gnu/linux during the next big refactor
10295
dynamic_linker="$host_os runtime_loader"
10296
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10297
soname_spec='${libname}${release}${shared_ext}$major'
10298
shlibpath_var=LIBRARY_PATH
10299
shlibpath_overrides_runpath=yes
10300
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10301
hardcode_into_libs=yes
10304
hpux9* | hpux10* | hpux11*)
10305
# Give a soname corresponding to the major version so that dld.sl refuses to
10306
# link against other versions.
10313
hardcode_into_libs=yes
10314
dynamic_linker="$host_os dld.so"
10315
shlibpath_var=LD_LIBRARY_PATH
10316
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10317
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10318
soname_spec='${libname}${release}${shared_ext}$major'
10319
if test "X$HPUX_IA64_MODE" = X32; then
10320
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10322
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10324
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10328
hardcode_into_libs=yes
10329
dynamic_linker="$host_os dld.sl"
10330
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10331
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10332
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10333
soname_spec='${libname}${release}${shared_ext}$major'
10334
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10335
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10339
dynamic_linker="$host_os dld.sl"
10340
shlibpath_var=SHLIB_PATH
10341
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10342
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10343
soname_spec='${libname}${release}${shared_ext}$major'
10346
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10347
postinstall_cmds='chmod 555 $lib'
10348
# or fails outright, so override atomically:
10349
install_override_mode=555
10353
version_type=linux # correct to gnu/linux during the next big refactor
10356
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10357
soname_spec='${libname}${release}${shared_ext}$major'
10358
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10359
shlibpath_var=LD_LIBRARY_PATH
10360
shlibpath_overrides_runpath=no
10361
hardcode_into_libs=yes
10364
irix5* | irix6* | nonstopux*)
10366
nonstopux*) version_type=nonstopux ;;
10368
if test "$lt_cv_prog_gnu_ld" = yes; then
10369
version_type=linux # correct to gnu/linux during the next big refactor
10376
soname_spec='${libname}${release}${shared_ext}$major'
10377
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10379
irix5* | nonstopux*)
10380
libsuff= shlibsuff=
10383
case $LD in # libtool.m4 will add one of these switches to LD
10384
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10385
libsuff= shlibsuff= libmagic=32-bit;;
10386
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10387
libsuff=32 shlibsuff=N32 libmagic=N32;;
10388
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10389
libsuff=64 shlibsuff=64 libmagic=64-bit;;
10390
*) libsuff= shlibsuff= libmagic=never-match;;
10394
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10395
shlibpath_overrides_runpath=no
10396
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10397
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10398
hardcode_into_libs=yes
10401
# No shared lib support for Linux oldld, aout, or coff.
10402
linux*oldld* | linux*aout* | linux*coff*)
10406
# This must be glibc/ELF.
10407
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10408
version_type=linux # correct to gnu/linux during the next big refactor
10411
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10412
soname_spec='${libname}${release}${shared_ext}$major'
10413
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10414
shlibpath_var=LD_LIBRARY_PATH
10415
shlibpath_overrides_runpath=no
10417
# Some binutils ld are patched to set DT_RUNPATH
10418
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10419
$as_echo_n "(cached) " >&6
10421
lt_cv_shlibpath_overrides_runpath=no
10422
save_LDFLAGS=$LDFLAGS
10423
save_libdir=$libdir
10424
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10425
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10426
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427
/* end confdefs.h. */
10437
if ac_fn_c_try_link "$LINENO"; then :
10438
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10439
lt_cv_shlibpath_overrides_runpath=yes
10442
rm -f core conftest.err conftest.$ac_objext \
10443
conftest$ac_exeext conftest.$ac_ext
10444
LDFLAGS=$save_LDFLAGS
10445
libdir=$save_libdir
10449
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10451
# This implies no fast_install, which is unacceptable.
10452
# Some rework will be needed to allow for fast_install
10453
# before this can be enabled.
10454
hardcode_into_libs=yes
10456
# Append ld.so.conf contents to the search path
10457
if test -f /etc/ld.so.conf; then
10458
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' ' '`
10459
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10462
# We used to test for /lib/ld.so.1 and disable shared libraries on
10463
# powerpc, because MkLinux only supported shared libraries with the
10464
# GNU dynamic linker. Since this was broken with cross compilers,
10465
# most powerpc-linux boxes support dynamic linking these days and
10466
# people can always --disable-shared, the test was removed, and we
10467
# assume the GNU/Linux dynamic linker is in use.
10468
dynamic_linker='GNU/Linux ld.so'
10475
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10476
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10477
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10478
dynamic_linker='NetBSD (a.out) ld.so'
10480
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10481
soname_spec='${libname}${release}${shared_ext}$major'
10482
dynamic_linker='NetBSD ld.elf_so'
10484
shlibpath_var=LD_LIBRARY_PATH
10485
shlibpath_overrides_runpath=yes
10486
hardcode_into_libs=yes
10490
version_type=linux # correct to gnu/linux during the next big refactor
10491
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10492
shlibpath_var=LD_LIBRARY_PATH
10493
shlibpath_overrides_runpath=yes
10500
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10501
soname_spec='${libname}${release}${shared_ext}$major'
10502
shlibpath_var=LD_LIBRARY_PATH
10503
shlibpath_overrides_runpath=no
10504
hardcode_into_libs=yes
10505
dynamic_linker='ldqnx.so'
10510
sys_lib_dlsearch_path_spec="/usr/lib"
10512
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10514
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10515
*) need_version=no ;;
10517
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10518
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10519
shlibpath_var=LD_LIBRARY_PATH
10520
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10522
openbsd2.[89] | openbsd2.[89].*)
10523
shlibpath_overrides_runpath=no
10526
shlibpath_overrides_runpath=yes
10530
shlibpath_overrides_runpath=yes
10535
libname_spec='$name'
10538
library_names_spec='$libname${shared_ext} $libname.a'
10539
dynamic_linker='OS/2 ld.exe'
10540
shlibpath_var=LIBPATH
10543
osf3* | osf4* | osf5*)
10547
soname_spec='${libname}${release}${shared_ext}$major'
10548
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10549
shlibpath_var=LD_LIBRARY_PATH
10550
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10551
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10559
version_type=linux # correct to gnu/linux during the next big refactor
10562
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10563
soname_spec='${libname}${release}${shared_ext}$major'
10564
shlibpath_var=LD_LIBRARY_PATH
10565
shlibpath_overrides_runpath=yes
10566
hardcode_into_libs=yes
10567
# ldd complains unless libraries are executable
10568
postinstall_cmds='chmod +x $lib'
10573
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10574
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10575
shlibpath_var=LD_LIBRARY_PATH
10576
shlibpath_overrides_runpath=yes
10577
if test "$with_gnu_ld" = yes; then
10584
version_type=linux # correct to gnu/linux during the next big refactor
10585
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10586
soname_spec='${libname}${release}${shared_ext}$major'
10587
shlibpath_var=LD_LIBRARY_PATH
10588
case $host_vendor in
10590
shlibpath_overrides_runpath=no
10592
runpath_var=LD_RUN_PATH
10600
shlibpath_overrides_runpath=no
10601
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10607
if test -d /usr/nec ;then
10608
version_type=linux # correct to gnu/linux during the next big refactor
10609
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10610
soname_spec='$libname${shared_ext}.$major'
10611
shlibpath_var=LD_LIBRARY_PATH
10615
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10616
version_type=freebsd-elf
10619
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10620
soname_spec='${libname}${release}${shared_ext}$major'
10621
shlibpath_var=LD_LIBRARY_PATH
10622
shlibpath_overrides_runpath=yes
10623
hardcode_into_libs=yes
10624
if test "$with_gnu_ld" = yes; then
10625
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10627
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10630
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10634
sys_lib_dlsearch_path_spec='/usr/lib'
10638
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10639
version_type=linux # correct to gnu/linux during the next big refactor
10642
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10643
shlibpath_var=LD_LIBRARY_PATH
10644
shlibpath_overrides_runpath=no
10645
hardcode_into_libs=yes
10649
version_type=linux # correct to gnu/linux during the next big refactor
10650
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10651
soname_spec='${libname}${release}${shared_ext}$major'
10652
shlibpath_var=LD_LIBRARY_PATH
10659
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10660
$as_echo "$dynamic_linker" >&6; }
10661
test "$dynamic_linker" = no && can_build_shared=no
10663
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10664
if test "$GCC" = yes; then
10665
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10668
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10669
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10671
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10672
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10766
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10767
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10769
if test -n "$hardcode_libdir_flag_spec" ||
10770
test -n "$runpath_var" ||
10771
test "X$hardcode_automatic" = "Xyes" ; then
10773
# We can hardcode non-existent directories.
10774
if test "$hardcode_direct" != no &&
10775
# If the only mechanism to avoid hardcoding is shlibpath_var, we
10776
# have to relink, otherwise we might link with an installed library
10777
# when we should be linking with a yet-to-be-installed one
10778
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10779
test "$hardcode_minus_L" != no; then
10780
# Linking always hardcodes the temporary library directory.
10781
hardcode_action=relink
10783
# We can link without hardcoding, and we can hardcode nonexisting dirs.
10784
hardcode_action=immediate
10787
# We cannot hardcode anything, or else we can only hardcode existing
10789
hardcode_action=unsupported
10791
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10792
$as_echo "$hardcode_action" >&6; }
10794
if test "$hardcode_action" = relink ||
10795
test "$inherit_rpath" = yes; then
10796
# Fast installation is not supported
10797
enable_fast_install=no
10798
elif test "$shlibpath_overrides_runpath" = yes ||
10799
test "$enable_shared" = no; then
10800
# Fast installation is not necessary
10801
enable_fast_install=needless
10809
if test "x$enable_dlopen" != xyes; then
10810
enable_dlopen=unknown
10811
enable_dlopen_self=unknown
10812
enable_dlopen_self_static=unknown
10819
lt_cv_dlopen="load_add_on"
10821
lt_cv_dlopen_self=yes
10824
mingw* | pw32* | cegcc*)
10825
lt_cv_dlopen="LoadLibrary"
10830
lt_cv_dlopen="dlopen"
10835
# if libdl is installed we need to link against it
10836
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10837
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10838
if ${ac_cv_lib_dl_dlopen+:} false; then :
10839
$as_echo_n "(cached) " >&6
10841
ac_check_lib_save_LIBS=$LIBS
10843
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10844
/* end confdefs.h. */
10846
/* Override any GCC internal prototype to avoid an error.
10847
Use char because int might match the return type of a GCC
10848
builtin and then its argument prototype would still apply. */
10861
if ac_fn_c_try_link "$LINENO"; then :
10862
ac_cv_lib_dl_dlopen=yes
10864
ac_cv_lib_dl_dlopen=no
10866
rm -f core conftest.err conftest.$ac_objext \
10867
conftest$ac_exeext conftest.$ac_ext
10868
LIBS=$ac_check_lib_save_LIBS
10870
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10871
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10872
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10873
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10876
lt_cv_dlopen="dyld"
10878
lt_cv_dlopen_self=yes
10885
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10886
if test "x$ac_cv_func_shl_load" = xyes; then :
10887
lt_cv_dlopen="shl_load"
10889
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10890
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10891
if ${ac_cv_lib_dld_shl_load+:} false; then :
10892
$as_echo_n "(cached) " >&6
10894
ac_check_lib_save_LIBS=$LIBS
10896
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10897
/* end confdefs.h. */
10899
/* Override any GCC internal prototype to avoid an error.
10900
Use char because int might match the return type of a GCC
10901
builtin and then its argument prototype would still apply. */
10909
return shl_load ();
10914
if ac_fn_c_try_link "$LINENO"; then :
10915
ac_cv_lib_dld_shl_load=yes
10917
ac_cv_lib_dld_shl_load=no
10919
rm -f core conftest.err conftest.$ac_objext \
10920
conftest$ac_exeext conftest.$ac_ext
10921
LIBS=$ac_check_lib_save_LIBS
10923
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10924
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10925
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10926
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10928
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10929
if test "x$ac_cv_func_dlopen" = xyes; then :
10930
lt_cv_dlopen="dlopen"
10932
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10933
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10934
if ${ac_cv_lib_dl_dlopen+:} false; then :
10935
$as_echo_n "(cached) " >&6
10937
ac_check_lib_save_LIBS=$LIBS
10939
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940
/* end confdefs.h. */
10942
/* Override any GCC internal prototype to avoid an error.
10943
Use char because int might match the return type of a GCC
10944
builtin and then its argument prototype would still apply. */
10957
if ac_fn_c_try_link "$LINENO"; then :
10958
ac_cv_lib_dl_dlopen=yes
10960
ac_cv_lib_dl_dlopen=no
10962
rm -f core conftest.err conftest.$ac_objext \
10963
conftest$ac_exeext conftest.$ac_ext
10964
LIBS=$ac_check_lib_save_LIBS
10966
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10967
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10968
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10969
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10971
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10972
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10973
if ${ac_cv_lib_svld_dlopen+:} false; then :
10974
$as_echo_n "(cached) " >&6
10976
ac_check_lib_save_LIBS=$LIBS
10977
LIBS="-lsvld $LIBS"
10978
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10979
/* end confdefs.h. */
10981
/* Override any GCC internal prototype to avoid an error.
10982
Use char because int might match the return type of a GCC
10983
builtin and then its argument prototype would still apply. */
10996
if ac_fn_c_try_link "$LINENO"; then :
10997
ac_cv_lib_svld_dlopen=yes
10999
ac_cv_lib_svld_dlopen=no
11001
rm -f core conftest.err conftest.$ac_objext \
11002
conftest$ac_exeext conftest.$ac_ext
11003
LIBS=$ac_check_lib_save_LIBS
11005
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11006
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11007
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11008
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11010
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11011
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11012
if ${ac_cv_lib_dld_dld_link+:} false; then :
11013
$as_echo_n "(cached) " >&6
11015
ac_check_lib_save_LIBS=$LIBS
11017
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11018
/* end confdefs.h. */
11020
/* Override any GCC internal prototype to avoid an error.
11021
Use char because int might match the return type of a GCC
11022
builtin and then its argument prototype would still apply. */
11030
return dld_link ();
11035
if ac_fn_c_try_link "$LINENO"; then :
11036
ac_cv_lib_dld_dld_link=yes
11038
ac_cv_lib_dld_dld_link=no
11040
rm -f core conftest.err conftest.$ac_objext \
11041
conftest$ac_exeext conftest.$ac_ext
11042
LIBS=$ac_check_lib_save_LIBS
11044
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11045
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11046
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11047
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11068
if test "x$lt_cv_dlopen" != xno; then
11074
case $lt_cv_dlopen in
11076
save_CPPFLAGS="$CPPFLAGS"
11077
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11079
save_LDFLAGS="$LDFLAGS"
11080
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11083
LIBS="$lt_cv_dlopen_libs $LIBS"
11085
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11086
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11087
if ${lt_cv_dlopen_self+:} false; then :
11088
$as_echo_n "(cached) " >&6
11090
if test "$cross_compiling" = yes; then :
11091
lt_cv_dlopen_self=cross
11093
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11094
lt_status=$lt_dlunknown
11095
cat > conftest.$ac_ext <<_LT_EOF
11096
#line $LINENO "configure"
11097
#include "confdefs.h"
11106
# define LT_DLGLOBAL RTLD_GLOBAL
11109
# define LT_DLGLOBAL DL_GLOBAL
11111
# define LT_DLGLOBAL 0
11115
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11116
find out it does not work in some platform. */
11117
#ifndef LT_DLLAZY_OR_NOW
11119
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11122
# define LT_DLLAZY_OR_NOW DL_LAZY
11125
# define LT_DLLAZY_OR_NOW RTLD_NOW
11128
# define LT_DLLAZY_OR_NOW DL_NOW
11130
# define LT_DLLAZY_OR_NOW 0
11137
/* When -fvisbility=hidden is used, assume the code has been annotated
11138
correspondingly for the symbols needed. */
11139
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11140
int fnord () __attribute__((visibility("default")));
11143
int fnord () { return 42; }
11146
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11147
int status = $lt_dlunknown;
11151
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11154
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11155
else puts (dlerror ());
11157
/* dlclose (self); */
11165
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11166
(eval $ac_link) 2>&5
11168
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11169
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11170
(./conftest; exit; ) >&5 2>/dev/null
11172
case x$lt_status in
11173
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11174
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11175
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11178
# compilation failed
11179
lt_cv_dlopen_self=no
11186
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11187
$as_echo "$lt_cv_dlopen_self" >&6; }
11189
if test "x$lt_cv_dlopen_self" = xyes; then
11190
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11191
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11192
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11193
if ${lt_cv_dlopen_self_static+:} false; then :
11194
$as_echo_n "(cached) " >&6
11196
if test "$cross_compiling" = yes; then :
11197
lt_cv_dlopen_self_static=cross
11199
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11200
lt_status=$lt_dlunknown
11201
cat > conftest.$ac_ext <<_LT_EOF
11202
#line $LINENO "configure"
11203
#include "confdefs.h"
11212
# define LT_DLGLOBAL RTLD_GLOBAL
11215
# define LT_DLGLOBAL DL_GLOBAL
11217
# define LT_DLGLOBAL 0
11221
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11222
find out it does not work in some platform. */
11223
#ifndef LT_DLLAZY_OR_NOW
11225
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11228
# define LT_DLLAZY_OR_NOW DL_LAZY
11231
# define LT_DLLAZY_OR_NOW RTLD_NOW
11234
# define LT_DLLAZY_OR_NOW DL_NOW
11236
# define LT_DLLAZY_OR_NOW 0
11243
/* When -fvisbility=hidden is used, assume the code has been annotated
11244
correspondingly for the symbols needed. */
11245
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11246
int fnord () __attribute__((visibility("default")));
11249
int fnord () { return 42; }
11252
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11253
int status = $lt_dlunknown;
11257
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11260
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11261
else puts (dlerror ());
11263
/* dlclose (self); */
11271
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11272
(eval $ac_link) 2>&5
11274
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11275
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11276
(./conftest; exit; ) >&5 2>/dev/null
11278
case x$lt_status in
11279
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11280
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11281
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11284
# compilation failed
11285
lt_cv_dlopen_self_static=no
11292
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11293
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11296
CPPFLAGS="$save_CPPFLAGS"
11297
LDFLAGS="$save_LDFLAGS"
11302
case $lt_cv_dlopen_self in
11303
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11304
*) enable_dlopen_self=unknown ;;
11307
case $lt_cv_dlopen_self_static in
11308
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11309
*) enable_dlopen_self_static=unknown ;;
11331
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11332
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11333
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11334
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11335
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11336
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11337
$as_echo "yes" >&6; }
11339
# FIXME - insert some real tests, host_os isn't really good enough
11342
if test -n "$STRIP" ; then
11343
striplib="$STRIP -x"
11344
old_striplib="$STRIP -S"
11345
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11346
$as_echo "yes" >&6; }
11348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11349
$as_echo "no" >&6; }
11353
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11354
$as_echo "no" >&6; }
11370
# Report which library types will actually be built
11371
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11372
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11373
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11374
$as_echo "$can_build_shared" >&6; }
11376
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11377
$as_echo_n "checking whether to build shared libraries... " >&6; }
11378
test "$can_build_shared" = "no" && enable_shared=no
11380
# On AIX, shared libraries and static libraries use the same namespace, and
11381
# are all built from PIC.
11384
test "$enable_shared" = yes && enable_static=no
11385
if test -n "$RANLIB"; then
11386
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11387
postinstall_cmds='$RANLIB $lib'
11392
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11393
test "$enable_shared" = yes && enable_static=no
11397
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11398
$as_echo "$enable_shared" >&6; }
11400
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11401
$as_echo_n "checking whether to build static libraries... " >&6; }
11402
# Make sure either enable_shared or enable_static is yes.
11403
test "$enable_shared" = yes || enable_static=yes
11404
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11405
$as_echo "$enable_static" >&6; }
11412
ac_cpp='$CPP $CPPFLAGS'
11413
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11414
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11415
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11433
ac_config_commands="$ac_config_commands libtool"
11438
# Only expand once:
11443
ac_cpp='$CPP $CPPFLAGS'
11444
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11445
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11446
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11447
if test -n "$ac_tool_prefix"; then
11448
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11449
set dummy ${ac_tool_prefix}gcc; ac_word=$2
11450
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11451
$as_echo_n "checking for $ac_word... " >&6; }
11452
if ${ac_cv_prog_CC+:} false; then :
11453
$as_echo_n "(cached) " >&6
11455
if test -n "$CC"; then
11456
ac_cv_prog_CC="$CC" # Let the user override the test.
11458
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11459
for as_dir in $PATH
11462
test -z "$as_dir" && as_dir=.
11463
for ac_exec_ext in '' $ac_executable_extensions; do
11464
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11465
ac_cv_prog_CC="${ac_tool_prefix}gcc"
11466
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11476
if test -n "$CC"; then
11477
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11478
$as_echo "$CC" >&6; }
11480
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11481
$as_echo "no" >&6; }
11486
if test -z "$ac_cv_prog_CC"; then
11488
# Extract the first word of "gcc", so it can be a program name with args.
11489
set dummy gcc; ac_word=$2
11490
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11491
$as_echo_n "checking for $ac_word... " >&6; }
11492
if ${ac_cv_prog_ac_ct_CC+:} false; then :
11493
$as_echo_n "(cached) " >&6
11495
if test -n "$ac_ct_CC"; then
11496
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11498
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11499
for as_dir in $PATH
11502
test -z "$as_dir" && as_dir=.
11503
for ac_exec_ext in '' $ac_executable_extensions; do
11504
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11505
ac_cv_prog_ac_ct_CC="gcc"
11506
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11515
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11516
if test -n "$ac_ct_CC"; then
11517
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11518
$as_echo "$ac_ct_CC" >&6; }
11520
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11521
$as_echo "no" >&6; }
11524
if test "x$ac_ct_CC" = x; then
11527
case $cross_compiling:$ac_tool_warned in
11529
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11530
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11531
ac_tool_warned=yes ;;
11536
CC="$ac_cv_prog_CC"
11539
if test -z "$CC"; then
11540
if test -n "$ac_tool_prefix"; then
11541
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11542
set dummy ${ac_tool_prefix}cc; ac_word=$2
11543
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11544
$as_echo_n "checking for $ac_word... " >&6; }
11545
if ${ac_cv_prog_CC+:} false; then :
11546
$as_echo_n "(cached) " >&6
11548
if test -n "$CC"; then
11549
ac_cv_prog_CC="$CC" # Let the user override the test.
11551
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11552
for as_dir in $PATH
11555
test -z "$as_dir" && as_dir=.
11556
for ac_exec_ext in '' $ac_executable_extensions; do
11557
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11558
ac_cv_prog_CC="${ac_tool_prefix}cc"
11559
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11569
if test -n "$CC"; then
11570
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11571
$as_echo "$CC" >&6; }
11573
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11574
$as_echo "no" >&6; }
11580
if test -z "$CC"; then
11581
# Extract the first word of "cc", so it can be a program name with args.
11582
set dummy cc; ac_word=$2
11583
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11584
$as_echo_n "checking for $ac_word... " >&6; }
11585
if ${ac_cv_prog_CC+:} false; then :
11586
$as_echo_n "(cached) " >&6
11588
if test -n "$CC"; then
11589
ac_cv_prog_CC="$CC" # Let the user override the test.
11591
ac_prog_rejected=no
11592
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11593
for as_dir in $PATH
11596
test -z "$as_dir" && as_dir=.
11597
for ac_exec_ext in '' $ac_executable_extensions; do
11598
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11599
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11600
ac_prog_rejected=yes
11604
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11611
if test $ac_prog_rejected = yes; then
11612
# We found a bogon in the path, so make sure we never use it.
11613
set dummy $ac_cv_prog_CC
11615
if test $@%:@ != 0; then
11616
# We chose a different compiler from the bogus one.
11617
# However, it has the same basename, so the bogon will be chosen
11618
# first if we set CC to just the basename; use the full file name.
11620
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11626
if test -n "$CC"; then
11627
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11628
$as_echo "$CC" >&6; }
11630
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631
$as_echo "no" >&6; }
11636
if test -z "$CC"; then
11637
if test -n "$ac_tool_prefix"; then
11638
for ac_prog in cl.exe
11640
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11641
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11642
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11643
$as_echo_n "checking for $ac_word... " >&6; }
11644
if ${ac_cv_prog_CC+:} false; then :
11645
$as_echo_n "(cached) " >&6
11647
if test -n "$CC"; then
11648
ac_cv_prog_CC="$CC" # Let the user override the test.
11650
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11651
for as_dir in $PATH
11654
test -z "$as_dir" && as_dir=.
11655
for ac_exec_ext in '' $ac_executable_extensions; do
11656
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11657
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11658
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11668
if test -n "$CC"; then
11669
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11670
$as_echo "$CC" >&6; }
11672
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11673
$as_echo "no" >&6; }
11677
test -n "$CC" && break
11680
if test -z "$CC"; then
11682
for ac_prog in cl.exe
11684
# Extract the first word of "$ac_prog", so it can be a program name with args.
11685
set dummy $ac_prog; ac_word=$2
11686
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11687
$as_echo_n "checking for $ac_word... " >&6; }
11688
if ${ac_cv_prog_ac_ct_CC+:} false; then :
11689
$as_echo_n "(cached) " >&6
11691
if test -n "$ac_ct_CC"; then
11692
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11694
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11695
for as_dir in $PATH
11698
test -z "$as_dir" && as_dir=.
11699
for ac_exec_ext in '' $ac_executable_extensions; do
11700
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11701
ac_cv_prog_ac_ct_CC="$ac_prog"
11702
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11711
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11712
if test -n "$ac_ct_CC"; then
11713
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11714
$as_echo "$ac_ct_CC" >&6; }
11716
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717
$as_echo "no" >&6; }
11721
test -n "$ac_ct_CC" && break
11724
if test "x$ac_ct_CC" = x; then
11727
case $cross_compiling:$ac_tool_warned in
11729
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11730
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11731
ac_tool_warned=yes ;;
11740
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11741
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11742
as_fn_error $? "no acceptable C compiler found in \$PATH
11743
See \`config.log' for more details" "$LINENO" 5; }
11745
# Provide some information about the compiler.
11746
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11749
for ac_option in --version -v -V -qversion; do
11750
{ { ac_try="$ac_compiler $ac_option >&5"
11751
case "(($ac_try" in
11752
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11753
*) ac_try_echo=$ac_try;;
11755
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11756
$as_echo "$ac_try_echo"; } >&5
11757
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
11759
if test -s conftest.err; then
11761
... rest of stderr output deleted ...
11762
10q' conftest.err >conftest.er1
11763
cat conftest.er1 >&5
11765
rm -f conftest.er1 conftest.err
11766
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11767
test $ac_status = 0; }
11770
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11771
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11772
if ${ac_cv_c_compiler_gnu+:} false; then :
11773
$as_echo_n "(cached) " >&6
11775
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11776
/* end confdefs.h. */
11789
if ac_fn_c_try_compile "$LINENO"; then :
11790
ac_compiler_gnu=yes
11794
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11795
ac_cv_c_compiler_gnu=$ac_compiler_gnu
11798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11799
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11800
if test $ac_compiler_gnu = yes; then
11805
ac_test_CFLAGS=${CFLAGS+set}
11806
ac_save_CFLAGS=$CFLAGS
11807
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11808
$as_echo_n "checking whether $CC accepts -g... " >&6; }
11809
if ${ac_cv_prog_cc_g+:} false; then :
11810
$as_echo_n "(cached) " >&6
11812
ac_save_c_werror_flag=$ac_c_werror_flag
11813
ac_c_werror_flag=yes
11816
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11817
/* end confdefs.h. */
11827
if ac_fn_c_try_compile "$LINENO"; then :
11828
ac_cv_prog_cc_g=yes
11831
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11832
/* end confdefs.h. */
11842
if ac_fn_c_try_compile "$LINENO"; then :
11845
ac_c_werror_flag=$ac_save_c_werror_flag
11847
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11848
/* end confdefs.h. */
11858
if ac_fn_c_try_compile "$LINENO"; then :
11859
ac_cv_prog_cc_g=yes
11861
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11863
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11865
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866
ac_c_werror_flag=$ac_save_c_werror_flag
11868
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11869
$as_echo "$ac_cv_prog_cc_g" >&6; }
11870
if test "$ac_test_CFLAGS" = set; then
11871
CFLAGS=$ac_save_CFLAGS
11872
elif test $ac_cv_prog_cc_g = yes; then
11873
if test "$GCC" = yes; then
11879
if test "$GCC" = yes; then
11885
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11886
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11887
if ${ac_cv_prog_cc_c89+:} false; then :
11888
$as_echo_n "(cached) " >&6
11890
ac_cv_prog_cc_c89=no
11892
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11893
/* end confdefs.h. */
11894
#include <stdarg.h>
11897
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11898
struct buf { int x; };
11899
FILE * (*rcsopen) (struct buf *, struct stat *, int);
11900
static char *e (p, i)
11906
static char *f (char * (*g) (char **, int), char **p, ...)
11911
s = g (p, va_arg (v,int));
11916
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11917
function prototypes and stuff, but not '\xHH' hex character constants.
11918
These don't provoke an error unfortunately, instead are silently treated
11919
as 'x'. The following induces an error, until -std is added to get
11920
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11921
array size at least. It's necessary to write '\x00'==0 to get something
11922
that's true only with -std. */
11923
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11925
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11926
inside strings and character constants. */
11928
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11930
int test (int i, double x);
11931
struct s1 {int (*f) (int a);};
11932
struct s2 {int (*f) (double a);};
11933
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11939
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11944
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11945
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11947
CC="$ac_save_CC $ac_arg"
11948
if ac_fn_c_try_compile "$LINENO"; then :
11949
ac_cv_prog_cc_c89=$ac_arg
11951
rm -f core conftest.err conftest.$ac_objext
11952
test "x$ac_cv_prog_cc_c89" != "xno" && break
11954
rm -f conftest.$ac_ext
11959
case "x$ac_cv_prog_cc_c89" in
11961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11962
$as_echo "none needed" >&6; } ;;
11964
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11965
$as_echo "unsupported" >&6; } ;;
11967
CC="$CC $ac_cv_prog_cc_c89"
11968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11969
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11971
if test "x$ac_cv_prog_cc_c89" != xno; then :
11976
ac_cpp='$CPP $CPPFLAGS'
11977
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11978
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11979
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11982
ac_cpp='$CPP $CPPFLAGS'
11983
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11984
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11985
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11986
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
11987
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
11988
if ${am_cv_prog_cc_c_o+:} false; then :
11989
$as_echo_n "(cached) " >&6
11991
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992
/* end confdefs.h. */
12002
# Make sure it works both with $CC and with simple cc.
12003
# Following AC_PROG_CC_C_O, we do the test twice because some
12004
# compilers refuse to overwrite an existing .o file with -o,
12005
# though they will create one.
12006
am_cv_prog_cc_c_o=yes
12007
for am_i in 1 2; do
12008
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12009
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12011
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012
(exit $ac_status); } \
12013
&& test -f conftest2.$ac_objext; then
12016
am_cv_prog_cc_c_o=no
12020
rm -f core conftest*
12023
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12024
$as_echo "$am_cv_prog_cc_c_o" >&6; }
12025
if test "$am_cv_prog_cc_c_o" != yes; then
12026
# Losing compiler, so override with the script.
12027
# FIXME: It is wrong to rewrite CC.
12028
# But if we don't then we get into trouble of one sort or another.
12029
# A longer-term fix would be to have automake use am__CC in this case,
12030
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12031
CC="$am_aux_dir/compile $CC"
12034
ac_cpp='$CPP $CPPFLAGS'
12035
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12036
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12037
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12040
depcc="$CC" am_compiler_list=
12042
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12043
$as_echo_n "checking dependency style of $depcc... " >&6; }
12044
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12045
$as_echo_n "(cached) " >&6
12047
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12048
# We make a subdir and do the tests there. Otherwise we can end up
12049
# making bogus files that we don't know about and never remove. For
12050
# instance it was reported that on HP-UX the gcc test will end up
12051
# making a dummy file named 'D' -- because '-MD' means "put the output
12053
rm -rf conftest.dir
12055
# Copy depcomp to subdir because otherwise we won't find it if we're
12056
# using a relative directory.
12057
cp "$am_depcomp" conftest.dir
12059
# We will build objects and dependencies in a subdirectory because
12060
# it helps to detect inapplicable dependency modes. For instance
12061
# both Tru64's cc and ICC support -MD to output dependencies as a
12062
# side effect of compilation, but ICC will put the dependencies in
12063
# the current directory while Tru64 will put them in the object
12067
am_cv_CC_dependencies_compiler_type=none
12068
if test "$am_compiler_list" = ""; then
12069
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12071
am__universal=false
12072
case " $depcc " in #(
12073
*\ -arch\ *\ -arch\ *) am__universal=true ;;
12076
for depmode in $am_compiler_list; do
12077
# Setup a source with many dependencies, because some compilers
12078
# like to wrap large dependency lists on column 80 (with \), and
12079
# we should not choose a depcomp mode which is confused by this.
12081
# We need to recreate these files for each test, as the compiler may
12082
# overwrite some of them when testing with obscure command lines.
12083
# This happens at least with the AIX C compiler.
12085
for i in 1 2 3 4 5 6; do
12086
echo '#include "conftst'$i'.h"' >> sub/conftest.c
12087
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12088
# Solaris 10 /bin/sh.
12089
echo '/* dummy */' > sub/conftst$i.h
12091
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12093
# We check with '-c' and '-o' for the sake of the "dashmstdout"
12094
# mode. It turns out that the SunPro C++ compiler does not properly
12095
# handle '-M -o', and we need to detect this. Also, some Intel
12096
# versions had trouble with output in subdirs.
12097
am__obj=sub/conftest.${OBJEXT-o}
12098
am__minus_obj="-o $am__obj"
12101
# This depmode causes a compiler race in universal mode.
12102
test "$am__universal" = false || continue
12105
# After this tag, mechanisms are not by side-effect, so they'll
12106
# only be used when explicitly requested.
12107
if test "x$enable_dependency_tracking" = xyes; then
12113
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12114
# This compiler won't grok '-c -o', but also, the minuso test has
12115
# not run yet. These depmodes are late enough in the game, and
12116
# so weak that their functioning should not be impacted.
12117
am__obj=conftest.${OBJEXT-o}
12122
if depmode=$depmode \
12123
source=sub/conftest.c object=$am__obj \
12124
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12125
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12126
>/dev/null 2>conftest.err &&
12127
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12128
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12129
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12130
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12131
# icc doesn't choke on unknown options, it will just issue warnings
12132
# or remarks (even with -Werror). So we grep stderr for any message
12133
# that says an option was ignored or not supported.
12134
# When given -MP, icc 7.0 and 7.1 complain thusly:
12135
# icc: Command line warning: ignoring option '-M'; no argument required
12136
# The diagnosis changed in icc 8.0:
12137
# icc: Command line remark: option '-MP' not supported
12138
if (grep 'ignoring option' conftest.err ||
12139
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12140
am_cv_CC_dependencies_compiler_type=$depmode
12147
rm -rf conftest.dir
12149
am_cv_CC_dependencies_compiler_type=none
12153
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12154
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12155
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12158
test "x$enable_dependency_tracking" != xno \
12159
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12160
am__fastdepCC_TRUE=
12161
am__fastdepCC_FALSE='#'
12163
am__fastdepCC_TRUE='#'
12164
am__fastdepCC_FALSE=
12173
*-freebsd* | *-openbsd*) ;;
12175
for possible_flags in "-Wl,--no-undefined" "-Wl,-z,defs"; do
12177
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $possible_flags flag" >&5
12178
$as_echo_n "checking if $CC supports $possible_flags flag... " >&6; }
12179
if { as_var=`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12180
$as_echo_n "(cached) " >&6
12182
ac_save_LDFLAGS="$LDFLAGS"
12183
LDFLAGS="$LDFLAGS $possible_flags"
12184
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185
/* end confdefs.h. */
12186
int main() { return 1; }
12188
if ac_fn_c_try_link "$LINENO"; then :
12189
eval "`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh`='yes'"
12191
eval "`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh`="
12193
rm -f core conftest.err conftest.$ac_objext \
12194
conftest$ac_exeext conftest.$ac_ext
12195
LDFLAGS="$ac_save_LDFLAGS"
12198
eval ac_res=\$`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh`
12199
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12200
$as_echo "$ac_res" >&6; }
12202
if eval test x$`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh` = xyes; then :
12203
LDFLAGS_NOUNDEFINED="$possible_flags"
12215
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC way to treat warnings as errors" >&5
12216
$as_echo_n "checking for $CC way to treat warnings as errors... " >&6; }
12217
if ${cc_cv_werror+:} false; then :
12218
$as_echo_n "(cached) " >&6
12221
if ${cc_cv_cflags__Werror+:} false; then :
12222
$as_echo_n "(cached) " >&6
12224
ac_save_CFLAGS="$CFLAGS"
12225
CFLAGS="$CFLAGS -Werror"
12226
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12227
/* end confdefs.h. */
12230
if ac_fn_c_try_compile "$LINENO"; then :
12231
eval "cc_cv_cflags__Werror='yes'"
12233
eval "cc_cv_cflags__Werror='no'"
12235
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12236
CFLAGS="$ac_save_CFLAGS"
12241
if eval test x$cc_cv_cflags__Werror = xyes; then :
12242
cc_cv_werror=-Werror
12245
if ${cc_cv_cflags__errwarn__all+:} false; then :
12246
$as_echo_n "(cached) " >&6
12248
ac_save_CFLAGS="$CFLAGS"
12249
CFLAGS="$CFLAGS -errwarn=%all"
12250
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12251
/* end confdefs.h. */
12254
if ac_fn_c_try_compile "$LINENO"; then :
12255
eval "cc_cv_cflags__errwarn__all='yes'"
12257
eval "cc_cv_cflags__errwarn__all='no'"
12259
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12260
CFLAGS="$ac_save_CFLAGS"
12265
if eval test x$cc_cv_cflags__errwarn__all = xyes; then :
12266
cc_cv_werror=-errwarn=%all
12273
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_cv_werror" >&5
12274
$as_echo "$cc_cv_werror" >&6; }
12279
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__(( visibility(\"default\") ))" >&5
12280
$as_echo_n "checking if $CC supports __attribute__(( visibility(\"default\") ))... " >&6; }
12281
if ${cc_cv_attribute_visibility_default+:} false; then :
12282
$as_echo_n "(cached) " >&6
12284
ac_save_CFLAGS="$CFLAGS"
12285
CFLAGS="$CFLAGS $cc_cv_werror"
12286
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287
/* end confdefs.h. */
12288
void __attribute__((visibility("default"))) default_function() { }
12290
if ac_fn_c_try_compile "$LINENO"; then :
12291
eval "cc_cv_attribute_visibility_default='yes'"
12293
eval "cc_cv_attribute_visibility_default='no'"
12295
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12296
CFLAGS="$ac_save_CFLAGS"
12299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_cv_attribute_visibility_default" >&5
12300
$as_echo "$cc_cv_attribute_visibility_default" >&6; }
12302
if eval test x$cc_cv_attribute_visibility_default = xyes; then :
12304
$as_echo "@%:@define SUPPORT_ATTRIBUTE_VISIBILITY_DEFAULT 1" >>confdefs.h
12309
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fvisibility=hidden" >&5
12310
$as_echo_n "checking if $CC supports -fvisibility=hidden... " >&6; }
12311
if ${cc_cv_flag_visibility+:} false; then :
12312
$as_echo_n "(cached) " >&6
12314
cc_flag_visibility_save_CFLAGS="$CFLAGS"
12315
CFLAGS="$CFLAGS $cc_cv_werror"
12317
if ${cc_cv_cflags__fvisibility_hidden+:} false; then :
12318
$as_echo_n "(cached) " >&6
12320
ac_save_CFLAGS="$CFLAGS"
12321
CFLAGS="$CFLAGS -fvisibility=hidden"
12322
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12323
/* end confdefs.h. */
12326
if ac_fn_c_try_compile "$LINENO"; then :
12327
eval "cc_cv_cflags__fvisibility_hidden='yes'"
12329
eval "cc_cv_cflags__fvisibility_hidden='no'"
12331
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12332
CFLAGS="$ac_save_CFLAGS"
12337
if eval test x$cc_cv_cflags__fvisibility_hidden = xyes; then :
12338
cc_cv_flag_visibility='yes'
12340
cc_cv_flag_visibility='no'
12343
CFLAGS="$cc_flag_visibility_save_CFLAGS"
12345
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_cv_flag_visibility" >&5
12346
$as_echo "$cc_cv_flag_visibility" >&6; }
12348
if test "x$cc_cv_flag_visibility" = "xyes"; then :
12350
$as_echo "@%:@define SUPPORT_FLAG_VISIBILITY 1" >>confdefs.h
12353
VISIBILITY_CFLAG="-fvisibility=hidden"
12363
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
12364
$as_echo_n "checking for library containing crypt... " >&6; }
12365
if ${ac_cv_search_crypt+:} false; then :
12366
$as_echo_n "(cached) " >&6
12368
ac_func_search_save_LIBS=$LIBS
12369
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12370
/* end confdefs.h. */
12372
/* Override any GCC internal prototype to avoid an error.
12373
Use char because int might match the return type of a GCC
12374
builtin and then its argument prototype would still apply. */
12387
for ac_lib in '' c crypt; do
12388
if test -z "$ac_lib"; then
12389
ac_res="none required"
12392
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12394
if ac_fn_c_try_link "$LINENO"; then :
12395
ac_cv_search_crypt=$ac_res
12397
rm -f core conftest.err conftest.$ac_objext \
12399
if ${ac_cv_search_crypt+:} false; then :
12403
if ${ac_cv_search_crypt+:} false; then :
12406
ac_cv_search_crypt=no
12408
rm conftest.$ac_ext
12409
LIBS=$ac_func_search_save_LIBS
12411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
12412
$as_echo "$ac_cv_search_crypt" >&6; }
12413
ac_res=$ac_cv_search_crypt
12414
if test "$ac_res" != no; then :
12415
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12423
for ac_header in $ac_header_list
12425
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12426
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12428
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12429
cat >>confdefs.h <<_ACEOF
12430
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12444
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_get_user in -lpam" >&5
12445
$as_echo_n "checking for pam_get_user in -lpam... " >&6; }
12446
if ${ac_cv_lib_pam_pam_get_user+:} false; then :
12447
$as_echo_n "(cached) " >&6
12449
ac_check_lib_save_LIBS=$LIBS
12451
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12452
/* end confdefs.h. */
12454
/* Override any GCC internal prototype to avoid an error.
12455
Use char because int might match the return type of a GCC
12456
builtin and then its argument prototype would still apply. */
12460
char pam_get_user ();
12464
return pam_get_user ();
12469
if ac_fn_c_try_link "$LINENO"; then :
12470
ac_cv_lib_pam_pam_get_user=yes
12472
ac_cv_lib_pam_pam_get_user=no
12474
rm -f core conftest.err conftest.$ac_objext \
12475
conftest$ac_exeext conftest.$ac_ext
12476
LIBS=$ac_check_lib_save_LIBS
12478
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_get_user" >&5
12479
$as_echo "$ac_cv_lib_pam_pam_get_user" >&6; }
12480
if test "x$ac_cv_lib_pam_pam_get_user" = xyes; then :
12485
if test "x$ac_cv_header_security_pam_modules_h" = "xno" \
12486
-o "x$ac_cv_lib_pam_pam_get_user" = "xno"; then :
12488
as_fn_error $? "Unable to find the PAM library or the PAM header files" "$LINENO" 5
12492
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the PAM module" >&5
12493
$as_echo_n "checking where to install the PAM module... " >&6; }
12494
if test "x$ac_cv_header_security_openpam_h" = "xyes"; then :
12495
pammoddir='$(libdir)'
12496
elif test "x$ac_cv_header_security_pam_misc_h" = "xyes"; then :
12497
pammoddir='$(libdir)/security'
12499
pammoddir='$(libdir)'
12500
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown PAM implementation, defaulting to something safe" >&5
12501
$as_echo "$as_me: WARNING: Unknown PAM implementation, defaulting to something safe" >&2;}
12504
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pammoddir" >&5
12505
$as_echo "$pammoddir" >&6; }
12509
ac_fn_c_check_func "$LINENO" "openpam_ttyconv" "ac_cv_func_openpam_ttyconv"
12510
if test "x$ac_cv_func_openpam_ttyconv" = xyes; then :
12514
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for misc_conv in -lpam_misc" >&5
12515
$as_echo_n "checking for misc_conv in -lpam_misc... " >&6; }
12516
if ${ac_cv_lib_pam_misc_misc_conv+:} false; then :
12517
$as_echo_n "(cached) " >&6
12519
ac_check_lib_save_LIBS=$LIBS
12520
LIBS="-lpam_misc $LIBS"
12521
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12522
/* end confdefs.h. */
12524
/* Override any GCC internal prototype to avoid an error.
12525
Use char because int might match the return type of a GCC
12526
builtin and then its argument prototype would still apply. */
12534
return misc_conv ();
12539
if ac_fn_c_try_link "$LINENO"; then :
12540
ac_cv_lib_pam_misc_misc_conv=yes
12542
ac_cv_lib_pam_misc_misc_conv=no
12544
rm -f core conftest.err conftest.$ac_objext \
12545
conftest$ac_exeext conftest.$ac_ext
12546
LIBS=$ac_check_lib_save_LIBS
12548
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_misc_misc_conv" >&5
12549
$as_echo "$ac_cv_lib_pam_misc_misc_conv" >&6; }
12550
if test "x$ac_cv_lib_pam_misc_misc_conv" = xyes; then :
12551
PAMCONVLIB=-lpam_misc
12554
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find a compatible PAM conversation, not building tests" >&5
12555
$as_echo "$as_me: WARNING: Unable to find a compatible PAM conversation, not building tests" >&2;}
12563
if test "x$PAMCONVLIB" != "x"; then
12564
HAVE_PAM_CONV_TRUE=
12565
HAVE_PAM_CONV_FALSE='#'
12567
HAVE_PAM_CONV_TRUE='#'
12568
HAVE_PAM_CONV_FALSE=
12574
@%:@ Check whether --with-postgresql was given.
12575
if test "${with_postgresql+set}" = set; then :
12576
withval=$with_postgresql;
12577
if test "$withval" = "no"; then
12578
want_postgresql="no"
12579
elif test "$withval" = "yes"; then
12580
want_postgresql="yes"
12582
want_postgresql="yes"
12583
PG_CONFIG="$withval"
12587
want_postgresql="yes"
12592
POSTGRESQL_CFLAGS=""
12593
POSTGRESQL_LDFLAGS=""
12594
POSTGRESQL_VERSION=""
12597
if test "$want_postgresql" = "yes"; then
12599
if test -z "$PG_CONFIG" -o test; then
12600
# Extract the first word of "pg_config", so it can be a program name with args.
12601
set dummy pg_config; ac_word=$2
12602
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12603
$as_echo_n "checking for $ac_word... " >&6; }
12604
if ${ac_cv_path_PG_CONFIG+:} false; then :
12605
$as_echo_n "(cached) " >&6
12609
ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
12612
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12613
for as_dir in $PATH
12616
test -z "$as_dir" && as_dir=.
12617
for ac_exec_ext in '' $ac_executable_extensions; do
12618
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12619
ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12620
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12630
PG_CONFIG=$ac_cv_path_PG_CONFIG
12631
if test -n "$PG_CONFIG"; then
12632
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
12633
$as_echo "$PG_CONFIG" >&6; }
12635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12636
$as_echo "no" >&6; }
12642
if test ! -x "$PG_CONFIG"; then
12643
as_fn_error $? "$PG_CONFIG does not exist or it is not an exectuable file" "$LINENO" 5
12645
found_postgresql="no"
12648
if test "$PG_CONFIG" != "no"; then
12649
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL libraries" >&5
12650
$as_echo_n "checking for PostgreSQL libraries... " >&6; }
12652
POSTGRESQL_CFLAGS="-I`$PG_CONFIG --includedir`"
12653
POSTGRESQL_LDFLAGS="-L`$PG_CONFIG --libdir` -lpq"
12655
POSTGRESQL_VERSION=`$PG_CONFIG --version | sed -e 's#PostgreSQL ##'`
12658
$as_echo "@%:@define HAVE_POSTGRESQL 1" >>confdefs.h
12661
found_postgresql="yes"
12662
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12663
$as_echo "yes" >&6; }
12665
found_postgresql="no"
12666
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12667
$as_echo "no" >&6; }
12673
postgresql_version_req=
12675
if test "$found_postgresql" = "yes" -a -n "$postgresql_version_req"; then
12677
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if PostgreSQL version is >= $postgresql_version_req" >&5
12678
$as_echo_n "checking if PostgreSQL version is >= $postgresql_version_req... " >&6; }
12680
postgresql_version_req_major=`expr $postgresql_version_req : '\([0-9]*\)'`
12681
postgresql_version_req_minor=`expr $postgresql_version_req : '[0-9]*\.\([0-9]*\)'`
12682
postgresql_version_req_micro=`expr $postgresql_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
12683
if test "x$postgresql_version_req_micro" = "x"; then
12684
postgresql_version_req_micro="0"
12687
postgresql_version_req_number=`expr $postgresql_version_req_major \* 1000000 \
12688
\+ $postgresql_version_req_minor \* 1000 \
12689
\+ $postgresql_version_req_micro`
12691
postgresql_version_major=`expr $POSTGRESQL_VERSION : '\([0-9]*\)'`
12692
postgresql_version_minor=`expr $POSTGRESQL_VERSION : '[0-9]*\.\([0-9]*\)'`
12693
postgresql_version_micro=`expr $POSTGRESQL_VERSION : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
12694
if test "x$postgresql_version_micro" = "x"; then
12695
postgresql_version_micro="0"
12698
postgresql_version_number=`expr $postgresql_version_major \* 1000000 \
12699
\+ $postgresql_version_minor \* 1000 \
12700
\+ $postgresql_version_micro`
12702
postgresql_version_check=`expr $postgresql_version_number \>\= $postgresql_version_req_number`
12703
if test "$postgresql_version_check" = "1"; then
12704
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12705
$as_echo "yes" >&6; }
12707
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12708
$as_echo "no" >&6; }
12716
if test "x$found_postgresql" != "xyes"; then :
12718
as_fn_error $? "Unable to find the PostgreSQL development files" "$LINENO" 5
12724
@%:@ Check whether --with-libgcrypt-prefix was given.
12725
if test "${with_libgcrypt_prefix+set}" = set; then :
12726
withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
12728
libgcrypt_config_prefix=""
12731
if test x$libgcrypt_config_prefix != x ; then
12732
if test x${LIBGCRYPT_CONFIG+set} != xset ; then
12733
LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
12737
if test -n "$ac_tool_prefix"; then
12738
# Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args.
12739
set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2
12740
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12741
$as_echo_n "checking for $ac_word... " >&6; }
12742
if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
12743
$as_echo_n "(cached) " >&6
12745
case $LIBGCRYPT_CONFIG in
12747
ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
12750
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12751
for as_dir in $PATH
12754
test -z "$as_dir" && as_dir=.
12755
for ac_exec_ext in '' $ac_executable_extensions; do
12756
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12757
ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12758
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12768
LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
12769
if test -n "$LIBGCRYPT_CONFIG"; then
12770
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
12771
$as_echo "$LIBGCRYPT_CONFIG" >&6; }
12773
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12774
$as_echo "no" >&6; }
12779
if test -z "$ac_cv_path_LIBGCRYPT_CONFIG"; then
12780
ac_pt_LIBGCRYPT_CONFIG=$LIBGCRYPT_CONFIG
12781
# Extract the first word of "libgcrypt-config", so it can be a program name with args.
12782
set dummy libgcrypt-config; ac_word=$2
12783
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12784
$as_echo_n "checking for $ac_word... " >&6; }
12785
if ${ac_cv_path_ac_pt_LIBGCRYPT_CONFIG+:} false; then :
12786
$as_echo_n "(cached) " >&6
12788
case $ac_pt_LIBGCRYPT_CONFIG in
12790
ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$ac_pt_LIBGCRYPT_CONFIG" # Let the user override the test with a path.
12793
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12794
for as_dir in $PATH
12797
test -z "$as_dir" && as_dir=.
12798
for ac_exec_ext in '' $ac_executable_extensions; do
12799
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12800
ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12801
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12811
ac_pt_LIBGCRYPT_CONFIG=$ac_cv_path_ac_pt_LIBGCRYPT_CONFIG
12812
if test -n "$ac_pt_LIBGCRYPT_CONFIG"; then
12813
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPT_CONFIG" >&5
12814
$as_echo "$ac_pt_LIBGCRYPT_CONFIG" >&6; }
12816
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12817
$as_echo "no" >&6; }
12820
if test "x$ac_pt_LIBGCRYPT_CONFIG" = x; then
12821
LIBGCRYPT_CONFIG="no"
12823
case $cross_compiling:$ac_tool_warned in
12825
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12826
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12827
ac_tool_warned=yes ;;
12829
LIBGCRYPT_CONFIG=$ac_pt_LIBGCRYPT_CONFIG
12832
LIBGCRYPT_CONFIG="$ac_cv_path_LIBGCRYPT_CONFIG"
12836
if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
12837
req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
12838
min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
12840
req_libgcrypt_api=0
12841
min_libgcrypt_version="$tmp"
12844
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
12845
$as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
12847
if test "$LIBGCRYPT_CONFIG" != "no" ; then
12848
req_major=`echo $min_libgcrypt_version | \
12849
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
12850
req_minor=`echo $min_libgcrypt_version | \
12851
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
12852
req_micro=`echo $min_libgcrypt_version | \
12853
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
12854
libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
12855
major=`echo $libgcrypt_config_version | \
12856
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
12857
minor=`echo $libgcrypt_config_version | \
12858
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
12859
micro=`echo $libgcrypt_config_version | \
12860
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
12861
if test "$major" -gt "$req_major"; then
12864
if test "$major" -eq "$req_major"; then
12865
if test "$minor" -gt "$req_minor"; then
12868
if test "$minor" -eq "$req_minor"; then
12869
if test "$micro" -ge "$req_micro"; then
12877
if test $ok = yes; then
12878
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
12879
$as_echo "yes ($libgcrypt_config_version)" >&6; }
12881
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12882
$as_echo "no" >&6; }
12884
if test $ok = yes; then
12885
# If we have a recent libgcrypt, we should also check that the
12886
# API is compatible
12887
if test "$req_libgcrypt_api" -gt 0 ; then
12888
tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
12889
if test "$tmp" -gt 0 ; then
12890
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
12891
$as_echo_n "checking LIBGCRYPT API version... " >&6; }
12892
if test "$req_libgcrypt_api" -eq "$tmp" ; then
12893
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
12894
$as_echo "okay" >&6; }
12897
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
12898
$as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
12903
if test $ok = yes; then
12904
LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
12905
LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
12907
libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
12908
if test x"$libgcrypt_config_host" != xnone ; then
12909
if test x"$libgcrypt_config_host" != x"$host" ; then
12910
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12912
*** The config script $LIBGCRYPT_CONFIG was
12913
*** built for $libgcrypt_config_host and thus may not match the
12914
*** used host $host.
12915
*** You may want to use the configure option --with-libgcrypt-prefix
12916
*** to specify a matching config script.
12918
$as_echo "$as_me: WARNING:
12920
*** The config script $LIBGCRYPT_CONFIG was
12921
*** built for $libgcrypt_config_host and thus may not match the
12922
*** used host $host.
12923
*** You may want to use the configure option --with-libgcrypt-prefix
12924
*** to specify a matching config script.
12929
LIBGCRYPT_CFLAGS=""
12932
as_fn_error $? "Unable to find libgcrypt development files" "$LINENO" 5
12939
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to look for the pam_pgsql.conf file" >&5
12940
$as_echo_n "checking where to look for the pam_pgsql.conf file... " >&6; }
12942
if test "${sysconfdir}" = '${prefix}/etc'; then :
12946
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sysconfdir}" >&5
12947
$as_echo "${sysconfdir}" >&6; }
12949
ac_config_files="$ac_config_files Makefile"
12952
cat >confcache <<\_ACEOF
12953
# This file is a shell script that caches the results of configure
12954
# tests run on this system so they can be shared between configure
12955
# scripts and configure runs, see configure's option --config-cache.
12956
# It is not useful on other systems. If it contains results you don't
12957
# want to keep, you may remove or edit it.
12959
# config.status only pays attention to the cache file if you give it
12960
# the --recheck option to rerun configure.
12962
# `ac_cv_env_foo' variables (set or unset) will be overridden when
12963
# loading this file, other *unset* `ac_cv_foo' will be assigned the
12964
# following values.
12968
# The following way of writing the cache mishandles newlines in values,
12969
# but we know of no workaround that is simple, portable, and efficient.
12970
# So, we kill variables containing newlines.
12971
# Ultrix sh set writes to stderr and can't be redirected directly,
12972
# and sets the high bit in the cache file unless we assign to the vars.
12974
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12975
eval ac_val=\$$ac_var
12979
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12980
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12983
_ | IFS | as_nl) ;; #(
12984
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12985
*) { eval $ac_var=; unset $ac_var;} ;;
12991
case $as_nl`(ac_space=' '; set) 2>&1` in #(
12992
*${as_nl}ac_space=\ *)
12993
# `set' does not quote correctly, so add quotes: double-quote
12994
# substitution turns \\\\ into \\, and sed turns \\ into \.
12997
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13000
# `set' quotes correctly as required by POSIX, so do not add quotes.
13001
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13010
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13012
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13014
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13015
if test -w "$cache_file"; then
13016
if test "x$cache_file" != "x/dev/null"; then
13017
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13018
$as_echo "$as_me: updating cache $cache_file" >&6;}
13019
if test ! -f "$cache_file" || test -h "$cache_file"; then
13020
cat confcache >"$cache_file"
13022
case $cache_file in #(
13024
mv -f confcache "$cache_file"$$ &&
13025
mv -f "$cache_file"$$ "$cache_file" ;; #(
13027
mv -f confcache "$cache_file" ;;
13032
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13033
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13038
test "x$prefix" = xNONE && prefix=$ac_default_prefix
13039
# Let make expand exec_prefix.
13040
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13042
DEFS=-DHAVE_CONFIG_H
13047
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
13048
# 1. Remove the extension, and $U if already installed.
13049
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13050
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13051
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13052
# will be set to the directory where LIBOBJS objects are built.
13053
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13054
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13056
LIB@&t@OBJS=$ac_libobjs
13058
LTLIBOBJS=$ac_ltlibobjs
13061
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13062
$as_echo_n "checking that generated files are newer than configure... " >&6; }
13063
if test -n "$am_sleep_pid"; then
13064
# Hide warnings about reused PIDs.
13065
wait $am_sleep_pid 2>/dev/null
13067
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13068
$as_echo "done" >&6; }
13069
if test -n "$EXEEXT"; then
13071
am__EXEEXT_FALSE='#'
13073
am__EXEEXT_TRUE='#'
13077
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13078
as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13079
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13081
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13082
as_fn_error $? "conditional \"AMDEP\" was never defined.
13083
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13085
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13086
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13087
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13089
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13090
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13091
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13093
if test -z "${HAVE_PAM_CONV_TRUE}" && test -z "${HAVE_PAM_CONV_FALSE}"; then
13094
as_fn_error $? "conditional \"HAVE_PAM_CONV\" was never defined.
13095
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13098
: "${CONFIG_STATUS=./config.status}"
13100
ac_clean_files_save=$ac_clean_files
13101
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13102
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13103
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13105
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13107
# Generated by $as_me.
13108
# Run this file to recreate the current configuration.
13109
# Compiler output produced by configure, useful for debugging
13110
# configure, is in config.log if it exists.
13113
ac_cs_recheck=false
13116
SHELL=\${CONFIG_SHELL-$SHELL}
13119
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13120
## -------------------- ##
13121
## M4sh Initialization. ##
13122
## -------------------- ##
13124
# Be more Bourne compatible
13125
DUALCASE=1; export DUALCASE # for MKS sh
13126
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13129
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13130
# is contrary to our usage. Disable this feature.
13131
alias -g '${1+"$@"}'='"$@"'
13132
setopt NO_GLOB_SUBST
13134
case `(set -o) 2>/dev/null` in @%:@(
13136
set -o posix ;; @%:@(
13146
# Printing a long string crashes Solaris 7 /usr/bin/printf.
13147
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13148
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13149
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13150
# Prefer a ksh shell builtin over an external printf program on Solaris,
13151
# but without wasting forks for bash or zsh.
13152
if test -z "$BASH_VERSION$ZSH_VERSION" \
13153
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13154
as_echo='print -r --'
13155
as_echo_n='print -rn --'
13156
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13157
as_echo='printf %s\n'
13158
as_echo_n='printf %s'
13160
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13161
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13162
as_echo_n='/usr/ucb/echo -n'
13164
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13165
as_echo_n_body='eval
13169
expr "X$arg" : "X\\(.*\\)$as_nl";
13170
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13172
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13174
export as_echo_n_body
13175
as_echo_n='sh -c $as_echo_n_body as_echo'
13177
export as_echo_body
13178
as_echo='sh -c $as_echo_body as_echo'
13181
# The user is always right.
13182
if test "${PATH_SEPARATOR+set}" != set; then
13184
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13185
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13192
# We need space, tab and new line, in precisely that order. Quoting is
13193
# there to prevent editors from complaining about space-tab.
13194
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13195
# splitting by setting IFS to empty value.)
13198
# Find who we are. Look in the path if we contain no directory separator.
13201
*[\\/]* ) as_myself=$0 ;;
13202
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13203
for as_dir in $PATH
13206
test -z "$as_dir" && as_dir=.
13207
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13213
# We did not find ourselves, most probably we were run as `sh COMMAND'
13214
# in which case we are not to be found in the path.
13215
if test "x$as_myself" = x; then
13218
if test ! -f "$as_myself"; then
13219
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13223
# Unset variables that we do not need and which cause bugs (e.g. in
13224
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13225
# suppresses any "Segmentation fault" message there. '((' could
13226
# trigger a bug in pdksh 5.2.14.
13227
for as_var in BASH_ENV ENV MAIL MAILPATH
13228
do eval test x\${$as_var+set} = xset \
13229
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13242
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13245
@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
13246
@%:@ ----------------------------------------
13247
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13248
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13249
@%:@ script with STATUS, using 1 if that was 0.
13252
as_status=$1; test $as_status -eq 0 && as_status=1
13254
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13255
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13257
$as_echo "$as_me: error: $2" >&2
13258
as_fn_exit $as_status
13262
@%:@ as_fn_set_status STATUS
13263
@%:@ -----------------------
13264
@%:@ Set @S|@? to STATUS, without forking.
13265
as_fn_set_status ()
13268
} @%:@ as_fn_set_status
13270
@%:@ as_fn_exit STATUS
13271
@%:@ -----------------
13272
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13276
as_fn_set_status $1
13280
@%:@ as_fn_unset VAR
13281
@%:@ ---------------
13282
@%:@ Portably unset VAR.
13285
{ eval $1=; unset $1;}
13287
as_unset=as_fn_unset
13288
@%:@ as_fn_append VAR VALUE
13289
@%:@ ----------------------
13290
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
13291
@%:@ advantage of any shell optimizations that allow amortized linear growth over
13292
@%:@ repeated appends, instead of the typical quadratic growth present in naive
13293
@%:@ implementations.
13294
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13295
eval 'as_fn_append ()
13306
@%:@ as_fn_arith ARG...
13307
@%:@ ------------------
13308
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
13309
@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
13310
@%:@ must be portable across @S|@(()) and expr.
13311
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13312
eval 'as_fn_arith ()
13319
as_val=`expr "$@" || test $? -eq 1`
13324
if expr a : '\(a\)' >/dev/null 2>&1 &&
13325
test "X`expr 00001 : '.*\(...\)'`" = X001; then
13331
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13332
as_basename=basename
13337
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13343
as_me=`$as_basename -- "$0" ||
13344
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13345
X"$0" : 'X\(//\)$' \| \
13346
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13348
sed '/^.*\/\([^/][^/]*\)\/*$/{
13362
# Avoid depending upon Character Ranges.
13363
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13364
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13365
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13366
as_cr_digits='0123456789'
13367
as_cr_alnum=$as_cr_Letters$as_cr_digits
13369
ECHO_C= ECHO_N= ECHO_T=
13370
case `echo -n x` in @%:@(((((
13372
case `echo 'xy\c'` in
13373
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
13375
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13382
rm -f conf$$ conf$$.exe conf$$.file
13383
if test -d conf$$.dir; then
13384
rm -f conf$$.dir/conf$$.file
13387
mkdir conf$$.dir 2>/dev/null
13389
if (echo >conf$$.file) 2>/dev/null; then
13390
if ln -s conf$$.file conf$$ 2>/dev/null; then
13392
# ... but there are two gotchas:
13393
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13394
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13395
# In both cases, we have to default to `cp -pR'.
13396
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13398
elif ln conf$$.file conf$$ 2>/dev/null; then
13406
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13407
rmdir conf$$.dir 2>/dev/null
13412
@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
13417
-*) as_dir=./$as_dir;;
13419
test -d "$as_dir" || eval $as_mkdir_p || {
13423
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13424
*) as_qdir=$as_dir;;
13426
as_dirs="'$as_qdir' $as_dirs"
13427
as_dir=`$as_dirname -- "$as_dir" ||
13428
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13429
X"$as_dir" : 'X\(//\)[^/]' \| \
13430
X"$as_dir" : 'X\(//\)$' \| \
13431
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13432
$as_echo X"$as_dir" |
13433
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13437
/^X\(\/\/\)[^/].*/{
13450
test -d "$as_dir" && break
13452
test -z "$as_dirs" || eval "mkdir $as_dirs"
13453
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13456
} @%:@ as_fn_mkdir_p
13457
if mkdir -p . 2>/dev/null; then
13458
as_mkdir_p='mkdir -p "$as_dir"'
13460
test -d ./-p && rmdir ./-p
13465
@%:@ as_fn_executable_p FILE
13466
@%:@ -----------------------
13467
@%:@ Test if FILE is an executable regular file.
13468
as_fn_executable_p ()
13470
test -f "$1" && test -x "$1"
13471
} @%:@ as_fn_executable_p
13472
as_test_x='test -x'
13473
as_executable_p=as_fn_executable_p
13475
# Sed expression to map a string onto a valid CPP name.
13476
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13478
# Sed expression to map a string onto a valid variable name.
13479
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13483
## ----------------------------------- ##
13484
## Main body of $CONFIG_STATUS script. ##
13485
## ----------------------------------- ##
13487
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13489
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13490
# Save the log message, to keep $0 and so on meaningful, and to
13491
# report actual input values of CONFIG_FILES etc. instead of their
13492
# values after options handling.
13494
This file was extended by pam-pgsql $as_me 0.7.3.2, which was
13495
generated by GNU Autoconf 2.69. Invocation command line was
13497
CONFIG_FILES = $CONFIG_FILES
13498
CONFIG_HEADERS = $CONFIG_HEADERS
13499
CONFIG_LINKS = $CONFIG_LINKS
13500
CONFIG_COMMANDS = $CONFIG_COMMANDS
13503
on `(hostname || uname -n) 2>/dev/null | sed 1q`
13508
case $ac_config_files in *"
13509
"*) set x $ac_config_files; shift; ac_config_files=$*;;
13512
case $ac_config_headers in *"
13513
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13517
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13518
# Files that config.status was made for.
13519
config_files="$ac_config_files"
13520
config_headers="$ac_config_headers"
13521
config_commands="$ac_config_commands"
13525
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13527
\`$as_me' instantiates files and other configuration actions
13528
from templates according to the current configuration. Unless the files
13529
and actions are specified as TAGs, all are instantiated by default.
13531
Usage: $0 [OPTION]... [TAG]...
13533
-h, --help print this help, then exit
13534
-V, --version print version number and configuration settings, then exit
13535
--config print configuration, then exit
13536
-q, --quiet, --silent
13537
do not print progress messages
13538
-d, --debug don't remove temporary files
13539
--recheck update $as_me by reconfiguring in the same conditions
13540
--file=FILE[:TEMPLATE]
13541
instantiate the configuration file FILE
13542
--header=FILE[:TEMPLATE]
13543
instantiate the configuration header FILE
13545
Configuration files:
13548
Configuration headers:
13551
Configuration commands:
13554
Report bugs to <http://sourceforge.net/tracker/?func=add&group_id=62198&atid=499727>."
13557
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13558
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13560
pam-pgsql config.status 0.7.3.2
13561
configured by $0, generated by GNU Autoconf 2.69,
13562
with options \\"\$ac_cs_config\\"
13564
Copyright (C) 2012 Free Software Foundation, Inc.
13565
This config.status script is free software; the Free Software Foundation
13566
gives unlimited permission to copy, distribute and modify it."
13573
test -n "\$AWK" || AWK=awk
13576
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13577
# The default lists apply if the user does not specify any file.
13583
ac_option=`expr "X$1" : 'X\([^=]*\)='`
13584
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13588
ac_option=`expr "X$1" : 'X\([^=]*\)='`
13600
# Handling of the options.
13601
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13603
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13604
$as_echo "$ac_cs_version"; exit ;;
13605
--config | --confi | --conf | --con | --co | --c )
13606
$as_echo "$ac_cs_config"; exit ;;
13607
--debug | --debu | --deb | --de | --d | -d )
13609
--file | --fil | --fi | --f )
13612
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13613
'') as_fn_error $? "missing file argument" ;;
13615
as_fn_append CONFIG_FILES " '$ac_optarg'"
13616
ac_need_defaults=false;;
13617
--header | --heade | --head | --hea )
13620
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13622
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13623
ac_need_defaults=false;;
13625
# Conflict between --help and --header
13626
as_fn_error $? "ambiguous option: \`$1'
13627
Try \`$0 --help' for more information.";;
13628
--help | --hel | -h )
13629
$as_echo "$ac_cs_usage"; exit ;;
13630
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
13631
| -silent | --silent | --silen | --sile | --sil | --si | --s)
13634
# This is an error.
13635
-*) as_fn_error $? "unrecognized option: \`$1'
13636
Try \`$0 --help' for more information." ;;
13638
*) as_fn_append ac_config_targets " $1"
13639
ac_need_defaults=false ;;
13645
ac_configure_extra_args=
13647
if $ac_cs_silent; then
13649
ac_configure_extra_args="$ac_configure_extra_args --silent"
13653
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13654
if \$ac_cs_recheck; then
13655
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13657
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13658
CONFIG_SHELL='$SHELL'
13659
export CONFIG_SHELL
13664
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13668
sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
13669
@%:@@%:@ Running $as_me. @%:@@%:@
13675
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13679
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13682
# The HP-UX ksh and POSIX shell print the target directory to stdout
13683
# if CDPATH is set.
13684
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13686
sed_quote_subst='$sed_quote_subst'
13687
double_quote_subst='$double_quote_subst'
13688
delay_variable_subst='$delay_variable_subst'
13689
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13690
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13691
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13692
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13693
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13694
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13695
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13696
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13697
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13698
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13699
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13700
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13701
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13702
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13703
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13704
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13705
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13706
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13707
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13708
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13709
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13710
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13711
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13712
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13713
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13714
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13715
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13716
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13717
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13718
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13719
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13720
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13721
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13722
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13723
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13724
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13725
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13726
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13727
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13728
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13729
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13730
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13731
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13732
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13733
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13734
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13735
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13736
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13737
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13738
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13739
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13740
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13741
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13742
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13743
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13744
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13745
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"`'
13746
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13747
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13748
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13749
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13750
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13751
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13752
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13753
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13754
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13755
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13756
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13757
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13758
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13759
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13760
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13761
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13762
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13763
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13764
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13765
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13766
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13767
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13768
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13769
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13770
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13771
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13772
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13773
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13774
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13775
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13776
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13777
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13778
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13779
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13780
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13781
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13782
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13783
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13784
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13785
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13786
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13787
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13788
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13789
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13790
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13791
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13792
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13793
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13794
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13795
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13796
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13797
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13798
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13799
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13800
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13801
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13802
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13803
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13804
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13805
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13806
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13807
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13808
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13809
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13810
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13811
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13812
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13813
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13814
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13815
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13816
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13817
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13818
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13821
LTCFLAGS='$LTCFLAGS'
13822
compiler='$compiler_DEFAULT'
13824
# A function that is used when there is no print builtin or printf.
13825
func_fallback_echo ()
13827
eval 'cat <<_LTECHO_EOF
13832
# Quote evaled strings.
13847
deplibs_check_method \
13852
sharedlib_from_linklib_cmd \
13855
archiver_list_spec \
13861
lt_cv_sys_global_symbol_pipe \
13862
lt_cv_sys_global_symbol_to_cdecl \
13863
lt_cv_sys_global_symbol_to_c_name_address \
13864
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13865
nm_file_list_spec \
13866
lt_prog_compiler_no_builtin_flag \
13867
lt_prog_compiler_pic \
13868
lt_prog_compiler_wl \
13869
lt_prog_compiler_static \
13870
lt_cv_prog_compiler_c_o \
13879
export_dynamic_flag_spec \
13880
whole_archive_flag_spec \
13881
compiler_needs_object \
13883
allow_undefined_flag \
13884
no_undefined_flag \
13885
hardcode_libdir_flag_spec \
13886
hardcode_libdir_separator \
13890
variables_saved_for_relink \
13892
library_names_spec \
13894
install_override_mode \
13898
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13899
*[\\\\\\\`\\"\\\$]*)
13900
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13903
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13908
# Double-quote double-evaled strings.
13909
for var in reload_cmds \
13910
old_postinstall_cmds \
13911
old_postuninstall_cmds \
13913
extract_expsyms_cmds \
13914
old_archive_from_new_cmds \
13915
old_archive_from_expsyms_cmds \
13917
archive_expsym_cmds \
13919
module_expsym_cmds \
13920
export_symbols_cmds \
13924
postuninstall_cmds \
13926
sys_lib_search_path_spec \
13927
sys_lib_dlsearch_path_spec; do
13928
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13929
*[\\\\\\\`\\"\\\$]*)
13930
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13933
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13938
ac_aux_dir='$ac_aux_dir'
13939
xsi_shell='$xsi_shell'
13940
lt_shell_append='$lt_shell_append'
13942
# See if we are running on zsh, and set the options which allow our
13943
# commands through without removal of \ escapes INIT.
13944
if test -n "\${ZSH_VERSION+set}" ; then
13945
setopt NO_GLOB_SUBST
13951
TIMESTAMP='$TIMESTAMP'
13960
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13962
# Handling of arguments.
13963
for ac_config_target in $ac_config_targets
13965
case $ac_config_target in
13966
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13967
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13968
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13969
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13971
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13976
# If the user did not use the arguments to specify the items to instantiate,
13977
# then the envvar interface is used. Set only those that are not.
13978
# We use the long form for the default assignment because of an extremely
13979
# bizarre bug on SunOS 4.1.3.
13980
if $ac_need_defaults; then
13981
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13982
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13983
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13986
# Have a temporary directory for convenience. Make it in the build tree
13987
# simply because there is no reason against having it here, and in addition,
13988
# creating and moving files from /tmp can sometimes cause problems.
13989
# Hook for its removal unless debugging.
13990
# Note that there is a small window in which the directory will not be cleaned:
13991
# after its creation but before its name has been assigned to `$tmp'.
13995
trap 'exit_status=$?
13996
: "${ac_tmp:=$tmp}"
13997
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13999
trap 'as_fn_exit 1' 1 2 13 15
14001
# Create a (secure) tmp directory for tmp files.
14004
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14008
tmp=./conf$$-$RANDOM
14009
(umask 077 && mkdir "$tmp")
14010
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14013
# Set up the scripts for CONFIG_FILES section.
14014
# No need to generate them if there are no CONFIG_FILES.
14015
# This happens for instance with `./config.status config.h'.
14016
if test -n "$CONFIG_FILES"; then
14019
ac_cr=`echo X | tr X '\015'`
14020
# On cygwin, bash can eat \r inside `` if the user requested igncr.
14021
# But we know of no other shell where ac_cr would be empty at this
14022
# point, so we can use a bashism as a fallback.
14023
if test "x$ac_cr" = x; then
14024
eval ac_cr=\$\'\\r\'
14026
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14027
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14030
ac_cs_awk_cr=$ac_cr
14033
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14038
echo "cat >conf$$subs.awk <<_ACEOF" &&
14039
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14041
} >conf$$subs.sh ||
14042
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14043
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14045
for ac_last_try in false false false false false :; do
14046
. ./conf$$subs.sh ||
14047
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14049
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14050
if test $ac_delim_n = $ac_delim_num; then
14052
elif $ac_last_try; then
14053
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14055
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14058
rm -f conf$$subs.sh
14060
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14061
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14065
s/^/S["/; s/!.*/"]=/
14075
s/\(.\{148\}\)..*/\1/
14077
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14082
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14089
s/\(.\{148\}\)..*/\1/
14091
s/["\\]/\\&/g; s/^/"/; s/$/"/
14095
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14100
' <conf$$subs.awk | sed '
14105
' >>$CONFIG_STATUS || ac_write_fail=1
14106
rm -f conf$$subs.awk
14107
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14109
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14110
for (key in S) S_is_set[key] = 1
14116
nfields = split(line, field, "@")
14118
len = length(field[1])
14119
for (i = 2; i < nfields; i++) {
14121
keylen = length(key)
14122
if (S_is_set[key]) {
14124
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14125
len += length(value) + length(field[++i])
14136
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14137
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14138
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14141
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14142
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14145
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14146
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14147
# trailing colons and then remove the whole line if VPATH becomes empty
14148
# (actually we leave an empty line to preserve line numbers).
14149
if test "x$srcdir" = x.; then
14150
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14168
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14169
fi # test -n "$CONFIG_FILES"
14171
# Set up the scripts for CONFIG_HEADERS section.
14172
# No need to generate them if there are no CONFIG_HEADERS.
14173
# This happens for instance with `./config.status Makefile'.
14174
if test -n "$CONFIG_HEADERS"; then
14175
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14179
# Transform confdefs.h into an awk script `defines.awk', embedded as
14180
# here-document in config.status, that substitutes the proper values into
14181
# config.h.in to produce config.h.
14183
# Create a delimiter string that does not exist in confdefs.h, to ease
14184
# handling of long lines.
14186
for ac_last_try in false false :; do
14187
ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14188
if test -z "$ac_tt"; then
14190
elif $ac_last_try; then
14191
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14193
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14197
# For the awk script, D is an array of macro values keyed by name,
14198
# likewise P contains macro parameters if any. Preserve backslash
14199
# newline sequences.
14201
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14203
s/.\{148\}/&'"$ac_delim"'/g
14206
s/^[ ]*#[ ]*define[ ][ ]*/ /
14213
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14215
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14219
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14220
D["\1"]=" \3\\\\\\n"\\/p
14222
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14227
s/.\{148\}/&'"$ac_delim"'/g
14232
s/["\\]/\\&/g; s/^/"/; s/$/"/p
14235
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14237
' <confdefs.h | sed '
14238
s/'"$ac_delim"'/"\\\
14239
"/g' >>$CONFIG_STATUS || ac_write_fail=1
14241
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14242
for (key in D) D_is_set[key] = 1
14245
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14247
split(line, arg, " ")
14248
if (arg[1] == "#") {
14252
defundef = substr(arg[1], 2)
14255
split(mac1, mac2, "(") #)
14257
prefix = substr(line, 1, index(line, defundef) - 1)
14258
if (D_is_set[macro]) {
14259
# Preserve the white space surrounding the "#".
14260
print prefix "define", macro P[macro] D[macro]
14263
# Replace #undef with comments. This is necessary, for example,
14264
# in the case of _POSIX_SOURCE, which is predefined and required
14265
# on some systems where configure will not decide to define it.
14266
if (defundef == "undef") {
14267
print "/*", prefix defundef, macro, "*/"
14275
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14276
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14277
fi # test -n "$CONFIG_HEADERS"
14280
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14285
:[FHLC]) ac_mode=$ac_tag; continue;;
14287
case $ac_mode$ac_tag in
14289
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14290
:[FH]-) ac_tag=-:-;;
14291
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14308
-) ac_f="$ac_tmp/stdin";;
14309
*) # Look for the file first in the build tree, then in the source tree
14310
# (if the path is not absolute). The absolute path cannot be DOS-style,
14311
# because $ac_f cannot contain `:'.
14315
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14317
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14319
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14320
as_fn_append ac_file_inputs " '$ac_f'"
14323
# Let's still pretend it is `configure' which instantiates (i.e., don't
14324
# use $as_me), people would be surprised to read:
14325
# /* config.h. Generated by config.status. */
14326
configure_input='Generated from '`
14327
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14329
if test x"$ac_file" != x-; then
14330
configure_input="$ac_file. $configure_input"
14331
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14332
$as_echo "$as_me: creating $ac_file" >&6;}
14334
# Neutralize special characters interpreted by sed in replacement strings.
14335
case $configure_input in #(
14336
*\&* | *\|* | *\\* )
14337
ac_sed_conf_input=`$as_echo "$configure_input" |
14338
sed 's/[\\\\&|]/\\\\&/g'`;; #(
14339
*) ac_sed_conf_input=$configure_input;;
14343
*:-:* | *:-) cat >"$ac_tmp/stdin" \
14344
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14349
ac_dir=`$as_dirname -- "$ac_file" ||
14350
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14351
X"$ac_file" : 'X\(//\)[^/]' \| \
14352
X"$ac_file" : 'X\(//\)$' \| \
14353
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14354
$as_echo X"$ac_file" |
14355
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14359
/^X\(\/\/\)[^/].*/{
14372
as_dir="$ac_dir"; as_fn_mkdir_p
14376
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14378
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14379
# A ".." for each directory in $ac_dir_suffix.
14380
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14381
case $ac_top_builddir_sub in
14382
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14383
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14386
ac_abs_top_builddir=$ac_pwd
14387
ac_abs_builddir=$ac_pwd$ac_dir_suffix
14388
# for backward compatibility:
14389
ac_top_builddir=$ac_top_build_prefix
14392
.) # We are building in place.
14394
ac_top_srcdir=$ac_top_builddir_sub
14395
ac_abs_top_srcdir=$ac_pwd ;;
14396
[\\/]* | ?:[\\/]* ) # Absolute name.
14397
ac_srcdir=$srcdir$ac_dir_suffix;
14398
ac_top_srcdir=$srcdir
14399
ac_abs_top_srcdir=$srcdir ;;
14400
*) # Relative name.
14401
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14402
ac_top_srcdir=$ac_top_build_prefix$srcdir
14403
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14405
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14415
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14416
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14418
ac_MKDIR_P=$MKDIR_P
14420
[\\/$]* | ?:[\\/]* ) ;;
14421
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14425
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14426
# If the template does not know about datarootdir, expand it.
14427
# FIXME: This hack should be removed a few years after 2.60.
14428
ac_datarootdir_hack=; ac_datarootdir_seen=
14439
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14440
*datarootdir*) ac_datarootdir_seen=yes;;
14441
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14442
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14443
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14445
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14446
ac_datarootdir_hack='
14447
s&@datadir@&$datadir&g
14448
s&@docdir@&$docdir&g
14449
s&@infodir@&$infodir&g
14450
s&@localedir@&$localedir&g
14451
s&@mandir@&$mandir&g
14452
s&\\\${datarootdir}&$datarootdir&g' ;;
14456
# Neutralize VPATH when `$srcdir' = `.'.
14457
# Shell code in configure.ac might set extrasub.
14458
# FIXME: do we really want to maintain this feature?
14459
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14460
ac_sed_extra="$ac_vpsub
14463
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14465
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14466
s|@configure_input@|$ac_sed_conf_input|;t t
14467
s&@top_builddir@&$ac_top_builddir_sub&;t t
14468
s&@top_build_prefix@&$ac_top_build_prefix&;t t
14469
s&@srcdir@&$ac_srcdir&;t t
14470
s&@abs_srcdir@&$ac_abs_srcdir&;t t
14471
s&@top_srcdir@&$ac_top_srcdir&;t t
14472
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14473
s&@builddir@&$ac_builddir&;t t
14474
s&@abs_builddir@&$ac_abs_builddir&;t t
14475
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14476
s&@INSTALL@&$ac_INSTALL&;t t
14477
s&@MKDIR_P@&$ac_MKDIR_P&;t t
14478
$ac_datarootdir_hack
14480
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14481
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14483
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14484
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14485
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14486
"$ac_tmp/out"`; test -z "$ac_out"; } &&
14487
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14488
which seems to be undefined. Please make sure it is defined" >&5
14489
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14490
which seems to be undefined. Please make sure it is defined" >&2;}
14492
rm -f "$ac_tmp/stdin"
14494
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14495
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14497
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14503
if test x"$ac_file" != x-; then
14505
$as_echo "/* $configure_input */" \
14506
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14507
} >"$ac_tmp/config.h" \
14508
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14509
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14510
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14511
$as_echo "$as_me: $ac_file is unchanged" >&6;}
14514
mv "$ac_tmp/config.h" "$ac_file" \
14515
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14518
$as_echo "/* $configure_input */" \
14519
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14520
|| as_fn_error $? "could not create -" "$LINENO" 5
14522
# Compute "$ac_file"'s index in $config_headers.
14525
for _am_header in $config_headers :; do
14526
case $_am_header in
14527
$_am_arg | $_am_arg:* )
14530
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
14533
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14534
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14535
X"$_am_arg" : 'X\(//\)[^/]' \| \
14536
X"$_am_arg" : 'X\(//\)$' \| \
14537
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14538
$as_echo X"$_am_arg" |
14539
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14543
/^X\(\/\/\)[^/].*/{
14555
s/.*/./; q'`/stamp-h$_am_stamp_count
14558
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14559
$as_echo "$as_me: executing $ac_file commands" >&6;}
14564
case $ac_file$ac_mode in
14565
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14566
# Older Autoconf quotes --file arguments for eval, but not when files
14567
# are listed without --file. Let's play safe and only enable the eval
14568
# if we detect the quoting.
14569
case $CONFIG_FILES in
14570
*\'*) eval set x "$CONFIG_FILES" ;;
14571
*) set x $CONFIG_FILES ;;
14576
# Strip MF so we end up with the name of the file.
14577
mf=`echo "$mf" | sed -e 's/:.*$//'`
14578
# Check whether this is an Automake generated Makefile or not.
14579
# We used to match only the files named 'Makefile.in', but
14580
# some people rename them; so instead we look at the file content.
14581
# Grep'ing the first line is not enough: some people post-process
14582
# each Makefile.in and add a new line on top of each file to say so.
14583
# Grep'ing the whole file is not good either: AIX grep has a line
14584
# limit of 2048, but all sed's we know have understand at least 4000.
14585
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14586
dirpart=`$as_dirname -- "$mf" ||
14587
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14588
X"$mf" : 'X\(//\)[^/]' \| \
14589
X"$mf" : 'X\(//\)$' \| \
14590
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14592
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14596
/^X\(\/\/\)[^/].*/{
14612
# Extract the definition of DEPDIR, am__include, and am__quote
14613
# from the Makefile without running 'make'.
14614
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14615
test -z "$DEPDIR" && continue
14616
am__include=`sed -n 's/^am__include = //p' < "$mf"`
14617
test -z "$am__include" && continue
14618
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14619
# Find all dependency output files, they are included files with
14620
# $(DEPDIR) in their names. We invoke sed twice because it is the
14621
# simplest approach to changing $(DEPDIR) to its actual value in the
14623
for file in `sed -n "
14624
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14625
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14626
# Make sure the directory exists.
14627
test -f "$dirpart/$file" && continue
14628
fdir=`$as_dirname -- "$file" ||
14629
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14630
X"$file" : 'X\(//\)[^/]' \| \
14631
X"$file" : 'X\(//\)$' \| \
14632
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14633
$as_echo X"$file" |
14634
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14638
/^X\(\/\/\)[^/].*/{
14651
as_dir=$dirpart/$fdir; as_fn_mkdir_p
14652
# echo "creating $dirpart/$file"
14653
echo '# dummy' > "$dirpart/$file"
14660
# See if we are running on zsh, and set the options which allow our
14661
# commands through without removal of \ escapes.
14662
if test -n "${ZSH_VERSION+set}" ; then
14663
setopt NO_GLOB_SUBST
14666
cfgfile="${ofile}T"
14667
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14670
cat <<_LT_EOF >> "$cfgfile"
14673
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14674
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14675
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14676
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14678
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14679
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14681
# Written by Gordon Matzigkeit, 1996
14683
# This file is part of GNU Libtool.
14685
# GNU Libtool is free software; you can redistribute it and/or
14686
# modify it under the terms of the GNU General Public License as
14687
# published by the Free Software Foundation; either version 2 of
14688
# the License, or (at your option) any later version.
14690
# As a special exception to the GNU General Public License,
14691
# if you distribute this file as part of a program or library that
14692
# is built using GNU Libtool, you may include this file under the
14693
# same distribution terms that you use for the rest of that program.
14695
# GNU Libtool is distributed in the hope that it will be useful,
14696
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14697
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14698
# GNU General Public License for more details.
14700
# You should have received a copy of the GNU General Public License
14701
# along with GNU Libtool; see the file COPYING. If not, a copy
14702
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14703
# obtained by writing to the Free Software Foundation, Inc.,
14704
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14707
# The names of the tagged configurations supported by this script.
14710
# ### BEGIN LIBTOOL CONFIG
14712
# Which release of libtool.m4 was used?
14713
macro_version=$macro_version
14714
macro_revision=$macro_revision
14716
# Whether or not to build static libraries.
14717
build_old_libs=$enable_static
14719
# Whether or not to build shared libraries.
14720
build_libtool_libs=$enable_shared
14722
# What type of objects to build.
14725
# Whether or not to optimize for fast installation.
14726
fast_install=$enable_fast_install
14728
# Shell to use when invoking shell scripts.
14731
# An echo program that protects backslashes.
14734
# The PATH separator for the build system.
14735
PATH_SEPARATOR=$lt_PATH_SEPARATOR
14738
host_alias=$host_alias
14742
# The build system.
14743
build_alias=$build_alias
14747
# A sed program that does not truncate output.
14750
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14751
Xsed="\$SED -e 1s/^X//"
14753
# A grep program that handles long lines.
14759
# A literal string matcher.
14762
# A BSD- or MS-compatible name lister.
14765
# Whether we need soft or hard links.
14768
# What is the maximum length of a command?
14769
max_cmd_len=$max_cmd_len
14771
# Object file suffix (normally "o").
14774
# Executable file suffix (normally "").
14777
# whether the shell understands "unset".
14780
# turn spaces into newlines.
14783
# turn newlines into spaces.
14786
# convert \$build file names to \$host format.
14787
to_host_file_cmd=$lt_cv_to_host_file_cmd
14789
# convert \$build files to toolchain format.
14790
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14792
# An object symbol dumper.
14793
OBJDUMP=$lt_OBJDUMP
14795
# Method to check whether dependent libraries are shared objects.
14796
deplibs_check_method=$lt_deplibs_check_method
14798
# Command to use when deplibs_check_method = "file_magic".
14799
file_magic_cmd=$lt_file_magic_cmd
14801
# How to find potential files when deplibs_check_method = "file_magic".
14802
file_magic_glob=$lt_file_magic_glob
14804
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14805
want_nocaseglob=$lt_want_nocaseglob
14807
# DLL creation program.
14808
DLLTOOL=$lt_DLLTOOL
14810
# Command to associate shared and link libraries.
14811
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14816
# Flags to create an archive.
14817
AR_FLAGS=$lt_AR_FLAGS
14819
# How to feed a file listing to the archiver.
14820
archiver_list_spec=$lt_archiver_list_spec
14822
# A symbol stripping program.
14825
# Commands used to install an old-style archive.
14827
old_postinstall_cmds=$lt_old_postinstall_cmds
14828
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14830
# Whether to use a lock for old archive extraction.
14831
lock_old_archive_extraction=$lock_old_archive_extraction
14836
# LTCC compiler flags.
14837
LTCFLAGS=$lt_CFLAGS
14839
# Take the output of nm and produce a listing of raw symbols and C names.
14840
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14842
# Transform the output of nm in a proper C declaration.
14843
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14845
# Transform the output of nm in a C name address pair.
14846
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14848
# Transform the output of nm in a C name address pair when lib prefix is needed.
14849
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14851
# Specify filename containing input files for \$NM.
14852
nm_file_list_spec=$lt_nm_file_list_spec
14854
# The root where to search for dependent libraries,and in which our libraries should be installed.
14855
lt_sysroot=$lt_sysroot
14857
# The name of the directory that contains temporary libtool files.
14860
# Used to examine libraries when file_magic_cmd begins with "file".
14861
MAGIC_CMD=$MAGIC_CMD
14863
# Must we lock files when doing compilation?
14864
need_locks=$lt_need_locks
14867
MANIFEST_TOOL=$lt_MANIFEST_TOOL
14869
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14870
DSYMUTIL=$lt_DSYMUTIL
14872
# Tool to change global to local symbols on Mac OS X.
14875
# Tool to manipulate fat objects and archives on Mac OS X.
14878
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14881
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14882
OTOOL64=$lt_OTOOL64
14884
# Old archive suffix (normally "a").
14887
# Shared library suffix (normally ".so").
14888
shrext_cmds=$lt_shrext_cmds
14890
# The commands to extract the exported symbol list from a shared archive.
14891
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14893
# Variables whose values should be saved in libtool wrapper scripts and
14894
# restored at link time.
14895
variables_saved_for_relink=$lt_variables_saved_for_relink
14897
# Do we need the "lib" prefix for modules?
14898
need_lib_prefix=$need_lib_prefix
14900
# Do we need a version for libraries?
14901
need_version=$need_version
14903
# Library versioning type.
14904
version_type=$version_type
14906
# Shared library runtime path variable.
14907
runpath_var=$runpath_var
14909
# Shared library path variable.
14910
shlibpath_var=$shlibpath_var
14912
# Is shlibpath searched before the hard-coded library search path?
14913
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14915
# Format of library name prefix.
14916
libname_spec=$lt_libname_spec
14918
# List of archive names. First name is the real one, the rest are links.
14919
# The last name is the one that the linker finds with -lNAME
14920
library_names_spec=$lt_library_names_spec
14922
# The coded name of the library, if different from the real name.
14923
soname_spec=$lt_soname_spec
14925
# Permission mode override for installation of shared libraries.
14926
install_override_mode=$lt_install_override_mode
14928
# Command to use after installation of a shared archive.
14929
postinstall_cmds=$lt_postinstall_cmds
14931
# Command to use after uninstallation of a shared archive.
14932
postuninstall_cmds=$lt_postuninstall_cmds
14934
# Commands used to finish a libtool library installation in a directory.
14935
finish_cmds=$lt_finish_cmds
14937
# As "finish_cmds", except a single script fragment to be evaled but
14939
finish_eval=$lt_finish_eval
14941
# Whether we should hardcode library paths into libraries.
14942
hardcode_into_libs=$hardcode_into_libs
14944
# Compile-time system search path for libraries.
14945
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14947
# Run-time system search path for libraries.
14948
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14950
# Whether dlopen is supported.
14951
dlopen_support=$enable_dlopen
14953
# Whether dlopen of programs is supported.
14954
dlopen_self=$enable_dlopen_self
14956
# Whether dlopen of statically linked programs is supported.
14957
dlopen_self_static=$enable_dlopen_self_static
14959
# Commands to strip libraries.
14960
old_striplib=$lt_old_striplib
14961
striplib=$lt_striplib
14964
# The linker used to build libraries.
14967
# How to create reloadable object files.
14968
reload_flag=$lt_reload_flag
14969
reload_cmds=$lt_reload_cmds
14971
# Commands used to build an old-style archive.
14972
old_archive_cmds=$lt_old_archive_cmds
14974
# A language specific compiler.
14977
# Is the compiler the GNU compiler?
14980
# Compiler flag to turn off builtin functions.
14981
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14983
# Additional compiler flags for building library objects.
14984
pic_flag=$lt_lt_prog_compiler_pic
14986
# How to pass a linker flag through the compiler.
14987
wl=$lt_lt_prog_compiler_wl
14989
# Compiler flag to prevent dynamic linking.
14990
link_static_flag=$lt_lt_prog_compiler_static
14992
# Does compiler simultaneously support -c and -o options?
14993
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14995
# Whether or not to add -lc for building shared libraries.
14996
build_libtool_need_lc=$archive_cmds_need_lc
14998
# Whether or not to disallow shared libs when runtime libs are static.
14999
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15001
# Compiler flag to allow reflexive dlopens.
15002
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15004
# Compiler flag to generate shared objects directly from archives.
15005
whole_archive_flag_spec=$lt_whole_archive_flag_spec
15007
# Whether the compiler copes with passing no objects directly.
15008
compiler_needs_object=$lt_compiler_needs_object
15010
# Create an old-style archive from a shared archive.
15011
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15013
# Create a temporary old-style archive to link instead of a shared archive.
15014
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15016
# Commands used to build a shared archive.
15017
archive_cmds=$lt_archive_cmds
15018
archive_expsym_cmds=$lt_archive_expsym_cmds
15020
# Commands used to build a loadable module if different from building
15021
# a shared archive.
15022
module_cmds=$lt_module_cmds
15023
module_expsym_cmds=$lt_module_expsym_cmds
15025
# Whether we are building with GNU ld or not.
15026
with_gnu_ld=$lt_with_gnu_ld
15028
# Flag that allows shared libraries with undefined symbols to be built.
15029
allow_undefined_flag=$lt_allow_undefined_flag
15031
# Flag that enforces no undefined symbols.
15032
no_undefined_flag=$lt_no_undefined_flag
15034
# Flag to hardcode \$libdir into a binary during linking.
15035
# This must work even if \$libdir does not exist
15036
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15038
# Whether we need a single "-rpath" flag with a separated argument.
15039
hardcode_libdir_separator=$lt_hardcode_libdir_separator
15041
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15042
# DIR into the resulting binary.
15043
hardcode_direct=$hardcode_direct
15045
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15046
# DIR into the resulting binary and the resulting library dependency is
15047
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15048
# library is relocated.
15049
hardcode_direct_absolute=$hardcode_direct_absolute
15051
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15052
# into the resulting binary.
15053
hardcode_minus_L=$hardcode_minus_L
15055
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15056
# into the resulting binary.
15057
hardcode_shlibpath_var=$hardcode_shlibpath_var
15059
# Set to "yes" if building a shared library automatically hardcodes DIR
15060
# into the library and all subsequent libraries and executables linked
15062
hardcode_automatic=$hardcode_automatic
15064
# Set to yes if linker adds runtime paths of dependent libraries
15065
# to runtime path list.
15066
inherit_rpath=$inherit_rpath
15068
# Whether libtool must link a program against all its dependency libraries.
15069
link_all_deplibs=$link_all_deplibs
15071
# Set to "yes" if exported symbols are required.
15072
always_export_symbols=$always_export_symbols
15074
# The commands to list exported symbols.
15075
export_symbols_cmds=$lt_export_symbols_cmds
15077
# Symbols that should not be listed in the preloaded symbols.
15078
exclude_expsyms=$lt_exclude_expsyms
15080
# Symbols that must always be exported.
15081
include_expsyms=$lt_include_expsyms
15083
# Commands necessary for linking programs (against libraries) with templates.
15084
prelink_cmds=$lt_prelink_cmds
15086
# Commands necessary for finishing linking programs.
15087
postlink_cmds=$lt_postlink_cmds
15089
# Specify filename containing input files.
15090
file_list_spec=$lt_file_list_spec
15092
# How to hardcode a shared library path into an executable.
15093
hardcode_action=$hardcode_action
15095
# ### END LIBTOOL CONFIG
15101
cat <<\_LT_EOF >> "$cfgfile"
15102
# AIX sometimes has problems with the GCC collect2 program. For some
15103
# reason, if we set the COLLECT_NAMES environment variable, the problems
15104
# vanish in a puff of smoke.
15105
if test "X${COLLECT_NAMES+set}" != Xset; then
15107
export COLLECT_NAMES
15114
ltmain="$ac_aux_dir/ltmain.sh"
15117
# We use sed instead of cat because bash on DJGPP gets confused if
15118
# if finds mixed CR/LF and LF-only lines. Since sed operates in
15119
# text mode, it properly converts lines to CR/LF. This bash problem
15120
# is reportedly fixed, but why not run on old versions too?
15121
sed '$q' "$ltmain" >> "$cfgfile" \
15122
|| (rm -f "$cfgfile"; exit 1)
15124
if test x"$xsi_shell" = xyes; then
15125
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15129
\ */*) func_dirname_result="${1%/*}${2}" ;;\
15130
\ * ) func_dirname_result="${3}" ;;\
15132
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15133
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15134
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15135
test 0 -eq $? || _lt_function_replace_fail=:
15138
sed -e '/^func_basename ()$/,/^} # func_basename /c\
15141
\ func_basename_result="${1##*/}"\
15142
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15143
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15144
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15145
test 0 -eq $? || _lt_function_replace_fail=:
15148
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15149
func_dirname_and_basename ()\
15152
\ */*) func_dirname_result="${1%/*}${2}" ;;\
15153
\ * ) func_dirname_result="${3}" ;;\
15155
\ func_basename_result="${1##*/}"\
15156
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15157
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15158
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15159
test 0 -eq $? || _lt_function_replace_fail=:
15162
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15165
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15166
\ # positional parameters, so assign one to ordinary parameter first.\
15167
\ func_stripname_result=${3}\
15168
\ func_stripname_result=${func_stripname_result#"${1}"}\
15169
\ func_stripname_result=${func_stripname_result%"${2}"}\
15170
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15171
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15172
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15173
test 0 -eq $? || _lt_function_replace_fail=:
15176
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15177
func_split_long_opt ()\
15179
\ func_split_long_opt_name=${1%%=*}\
15180
\ func_split_long_opt_arg=${1#*=}\
15181
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15182
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15183
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15184
test 0 -eq $? || _lt_function_replace_fail=:
15187
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15188
func_split_short_opt ()\
15190
\ func_split_short_opt_arg=${1#??}\
15191
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15192
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15193
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15194
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15195
test 0 -eq $? || _lt_function_replace_fail=:
15198
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15202
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15203
\ *) func_lo2o_result=${1} ;;\
15205
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15206
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15207
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15208
test 0 -eq $? || _lt_function_replace_fail=:
15211
sed -e '/^func_xform ()$/,/^} # func_xform /c\
15214
func_xform_result=${1%.*}.lo\
15215
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15216
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15217
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15218
test 0 -eq $? || _lt_function_replace_fail=:
15221
sed -e '/^func_arith ()$/,/^} # func_arith /c\
15224
func_arith_result=$(( $* ))\
15225
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15226
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15227
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15228
test 0 -eq $? || _lt_function_replace_fail=:
15231
sed -e '/^func_len ()$/,/^} # func_len /c\
15234
func_len_result=${#1}\
15235
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15236
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15237
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15238
test 0 -eq $? || _lt_function_replace_fail=:
15242
if test x"$lt_shell_append" = xyes; then
15243
sed -e '/^func_append ()$/,/^} # func_append /c\
15246
eval "${1}+=\\${2}"\
15247
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15248
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15249
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15250
test 0 -eq $? || _lt_function_replace_fail=:
15253
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15254
func_append_quoted ()\
15256
\ func_quote_for_eval "${2}"\
15257
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15258
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15259
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15260
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15261
test 0 -eq $? || _lt_function_replace_fail=:
15264
# Save a `func_append' function call where possible by direct use of '+='
15265
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15266
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15267
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15268
test 0 -eq $? || _lt_function_replace_fail=:
15270
# Save a `func_append' function call even when '+=' is not available
15271
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15272
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15273
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15274
test 0 -eq $? || _lt_function_replace_fail=:
15277
if test x"$_lt_function_replace_fail" = x":"; then
15278
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15279
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15283
mv -f "$cfgfile" "$ofile" ||
15284
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15295
ac_clean_files=$ac_clean_files_save
15297
test $ac_write_fail = 0 ||
15298
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15301
# configure is writing to config.log, and then calls config.status.
15302
# config.status does its own redirection, appending to config.log.
15303
# Unfortunately, on DOS this fails, as config.log is still kept open
15304
# by configure, so config.status won't be able to write to it; its
15305
# output is simply discarded. So we exec the FD to /dev/null,
15306
# effectively closing config.log, so it can be properly (re)opened and
15307
# appended to by config.status. When coming back to configure, we
15308
# need to make the FD available again.
15309
if test "$no_create" != yes; then
15311
ac_config_status_args=
15312
test "$silent" = yes &&
15313
ac_config_status_args="$ac_config_status_args --quiet"
15315
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15317
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
15318
# would make configure fail if this is the last instruction.
15319
$ac_cs_success || as_fn_exit 1
15321
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15322
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15323
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}