2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.65 for Multitouch Protocol Translation Library 1.0.8.
6
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
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.
93
*[\\/]* ) as_myself=$0 ;;
94
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98
test -z "$as_dir" && as_dir=.
99
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105
# We did not find ourselves, most probably we were run as `sh COMMAND'
106
# in which case we are not to be found in the path.
107
if test "x$as_myself" = x; then
110
if test ! -f "$as_myself"; then
111
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115
# Unset variables that we do not need and which cause bugs (e.g. in
116
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117
# suppresses any "Segmentation fault" message there. '((' could
118
# trigger a bug in pdksh 5.2.14.
119
for as_var in BASH_ENV ENV MAIL MAILPATH
120
do eval test x\${$as_var+set} = xset \
121
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
if test "x$CONFIG_SHELL" = x; then
137
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141
# is contrary to our usage. Disable this feature.
142
alias -g '\${1+\"\$@\"}'='\"\$@\"'
145
case \`(set -o) 2>/dev/null\` in #(
153
as_required="as_fn_return () { (exit \$1); }
154
as_fn_success () { as_fn_return 0; }
155
as_fn_failure () { as_fn_return 1; }
156
as_fn_ret_success () { return 0; }
157
as_fn_ret_failure () { return 1; }
160
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
exitcode=1; echo positional parameters were not saved.
169
test x\$exitcode = x0 || exit 1"
170
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174
test \$(( 1 + 1 )) = 2 || exit 1"
175
if (eval "$as_required") 2>/dev/null; then :
180
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188
test -z "$as_dir" && as_dir=.
192
for as_base in sh bash ksh sh5; do
193
# Try only shells that exist, to save several forks.
194
as_shell=$as_dir/$as_base
195
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197
CONFIG_SHELL=$as_shell as_have_required=yes
198
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208
CONFIG_SHELL=$SHELL as_have_required=yes
213
if test "x$CONFIG_SHELL" != x; then :
214
# We cannot yet assume a decent shell, so we have to provide a
215
# neutralization value for shells without unset; and this also
216
# works around shells that cannot unset nonexistent variables.
219
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224
if test x$as_have_required = xno; then :
225
$as_echo "$0: This script requires a shell more modern than all"
226
$as_echo "$0: the shells that I found on your system."
227
if test x${ZSH_VERSION+set} = xset ; then
228
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
231
$as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232
$0: including any error possibly output before this
233
$0: message. Then install a modern shell, or manually run
234
$0: the script under such a shell if you do have one."
240
SHELL=${CONFIG_SHELL-/bin/sh}
242
# Unset more variables known to interfere with behavior of common tools.
243
CLICOLOR_FORCE= GREP_OPTIONS=
244
unset CLICOLOR_FORCE GREP_OPTIONS
246
## --------------------- ##
247
## M4sh Shell Functions. ##
248
## --------------------- ##
251
# Portably unset VAR.
254
{ eval $1=; unset $1;}
258
# as_fn_set_status STATUS
259
# -----------------------
260
# Set $? to STATUS, without forking.
268
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278
# Create "$as_dir" as a directory, including parents if necessary.
283
-*) as_dir=./$as_dir;;
285
test -d "$as_dir" || eval $as_mkdir_p || {
289
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292
as_dirs="'$as_qdir' $as_dirs"
293
as_dir=`$as_dirname -- "$as_dir" ||
294
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295
X"$as_dir" : 'X\(//\)[^/]' \| \
296
X"$as_dir" : 'X\(//\)$' \| \
297
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298
$as_echo X"$as_dir" |
299
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316
test -d "$as_dir" && break
318
test -z "$as_dirs" || eval "mkdir $as_dirs"
319
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
# as_fn_append VAR VALUE
324
# ----------------------
325
# Append the text in VALUE to the end of the definition contained in VAR. Take
326
# advantage of any shell optimizations that allow amortized linear growth over
327
# repeated appends, instead of the typical quadratic growth present in naive
329
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330
eval 'as_fn_append ()
343
# Perform arithmetic evaluation on the ARGs, and store the result in the
344
# global $as_val. Take advantage of shells that can avoid forks. The arguments
345
# must be portable across $(()) and expr.
346
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354
as_val=`expr "$@" || test $? -eq 1`
359
# as_fn_error ERROR [LINENO LOG_FD]
360
# ---------------------------------
361
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363
# script with status $?, using 1 if that was 0.
366
as_status=$?; test $as_status -eq 0 && as_status=1
368
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371
$as_echo "$as_me: error: $1" >&2
372
as_fn_exit $as_status
375
if expr a : '\(a\)' >/dev/null 2>&1 &&
376
test "X`expr 00001 : '.*\(...\)'`" = X001; then
382
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394
as_me=`$as_basename -- "$0" ||
395
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396
X"$0" : 'X\(//\)$' \| \
397
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399
sed '/^.*\/\([^/][^/]*\)\/*$/{
413
# Avoid depending upon Character Ranges.
414
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417
as_cr_digits='0123456789'
418
as_cr_alnum=$as_cr_Letters$as_cr_digits
421
as_lineno_1=$LINENO as_lineno_1a=$LINENO
422
as_lineno_2=$LINENO as_lineno_2a=$LINENO
423
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441
chmod +x "$as_me.lineno" ||
442
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444
# Don't try to exec as it changes $[0], causing all sort of problems
445
# (the dirname of $[0] is not the place where we might find the
446
# original and so on. Autoconf is especially sensitive to this).
448
# Exit status is that of the last command.
452
ECHO_C= ECHO_N= ECHO_T=
453
case `echo -n x` in #(((((
455
case `echo 'xy\c'` in
456
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
458
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465
rm -f conf$$ conf$$.exe conf$$.file
466
if test -d conf$$.dir; then
467
rm -f conf$$.dir/conf$$.file
470
mkdir conf$$.dir 2>/dev/null
472
if (echo >conf$$.file) 2>/dev/null; then
473
if ln -s conf$$.file conf$$ 2>/dev/null; then
475
# ... but there are two gotchas:
476
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478
# In both cases, we have to default to `cp -p'.
479
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481
elif ln conf$$.file conf$$ 2>/dev/null; then
489
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490
rmdir conf$$.dir 2>/dev/null
492
if mkdir -p . 2>/dev/null; then
493
as_mkdir_p='mkdir -p "$as_dir"'
495
test -d ./-p && rmdir ./-p
499
if test -x / >/dev/null 2>&1; then
502
if ls -dL / >/dev/null 2>&1; then
509
if test -d "$1"; then
515
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516
???[sx]*):;;*)false;;esac;fi
520
as_executable_p=$as_test_x
522
# Sed expression to map a string onto a valid CPP name.
523
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
# Sed expression to map a string onto a valid variable name.
526
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
# Check that we are running under the correct shell.
531
SHELL=${CONFIG_SHELL-/bin/sh}
535
# Remove one level of quotation (which was required for Make).
536
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541
if test "X$1" = X--no-reexec; then
542
# Discard the --no-reexec flag, and continue.
544
elif test "X$1" = X--fallback-echo; then
545
# Avoid inline document here, it may be left over
547
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548
# Yippee, $ECHO works!
551
# Restart under the correct shell.
552
exec $SHELL "$0" --no-reexec ${1+"$@"}
555
if test "X$1" = X--fallback-echo; then
556
# used as fallback echo
564
# The HP-UX ksh and POSIX shell print the target directory to stdout
566
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568
if test -z "$lt_ECHO"; then
569
if test "X${echo_test_string+set}" != Xset; then
570
# find a string as large as possible, as long as the shell can cope with it
571
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
581
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583
test "X$echo_testing_string" = "X$echo_test_string"; then
586
# The Solaris, AIX, and Digital Unix default echo programs unquote
587
# backslashes. This makes it impossible to quote backslashes using
588
# echo "$something" | sed 's/\\/\\\\/g'
590
# So, first we look for a working echo in the user's PATH.
592
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593
for dir in $PATH /usr/ucb; do
595
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598
test "X$echo_testing_string" = "X$echo_test_string"; then
605
if test "X$ECHO" = Xecho; then
606
# We didn't find a better echo, so look for alternatives.
607
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609
test "X$echo_testing_string" = "X$echo_test_string"; then
610
# This shell has a builtin print -r that does the trick.
612
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613
test "X$CONFIG_SHELL" != X/bin/ksh; then
614
# If we have ksh, try running configure again with it.
615
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616
export ORIGINAL_CONFIG_SHELL
617
CONFIG_SHELL=/bin/ksh
619
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625
test "X$echo_testing_string" = "X$echo_test_string"; then
628
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629
test "X$echo_testing_string" = 'X\t' &&
630
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631
test "X$echo_testing_string" = "X$echo_test_string"; then
632
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634
SHELL="$CONFIG_SHELL"
636
ECHO="$CONFIG_SHELL $0 --fallback-echo"
637
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638
test "X$echo_testing_string" = 'X\t' &&
639
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640
test "X$echo_testing_string" = "X$echo_test_string"; then
641
ECHO="$CONFIG_SHELL $0 --fallback-echo"
643
# maybe with a smaller string...
646
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
654
if test "$prev" != 'sed 50q "$0"'; then
655
echo_test_string=`eval $prev`
656
export echo_test_string
657
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659
# Oops. We lost completely, so just stick with echo.
668
# Copy echo and quote the copy suitably for passing to libtool from
669
# the Makefile, instead of quoting the original, which is used later.
671
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672
lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
678
test -n "$DJDIR" || exec 7<&0 </dev/null
682
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683
# so uname gets run too.
684
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
ac_default_prefix=/usr/local
691
ac_config_libobj_dir=.
698
# Identity of this package.
699
PACKAGE_NAME='Multitouch Protocol Translation Library'
700
PACKAGE_TARNAME='mtdev'
701
PACKAGE_VERSION='1.0.8'
702
PACKAGE_STRING='Multitouch Protocol Translation Library 1.0.8'
706
ac_unique_file="Makefile.am"
707
# Factoring default headers for most tests.
708
ac_includes_default="\
710
#ifdef HAVE_SYS_TYPES_H
711
# include <sys/types.h>
713
#ifdef HAVE_SYS_STAT_H
714
# include <sys/stat.h>
720
# ifdef HAVE_STDLIB_H
725
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730
#ifdef HAVE_STRINGS_H
731
# include <strings.h>
733
#ifdef HAVE_INTTYPES_H
734
# include <inttypes.h>
743
ac_subst_vars='am__EXEEXT_FALSE
793
MAINTAINER_MODE_FALSE
803
INSTALL_STRIP_PROGRAM
845
program_transform_name
858
enable_option_checking
859
enable_maintainer_mode
864
enable_dependency_tracking
868
ac_precious_vars='build_alias
879
# Initialize some variables set by options.
881
ac_init_version=false
882
ac_unrecognized_opts=
884
# The variables have the same names as the options, with
885
# dashes changed to underlines.
893
program_transform_name=s,x,x,
901
# Installation directory options.
902
# These are left unexpanded so users can "make install exec_prefix=/foo"
903
# and all the variables that are supposed to be based on exec_prefix
904
# by default will actually change.
905
# Use braces instead of parens because sh, perl, etc. also accept them.
906
# (The list follows the same order as the GNU Coding Standards.)
907
bindir='${exec_prefix}/bin'
908
sbindir='${exec_prefix}/sbin'
909
libexecdir='${exec_prefix}/libexec'
910
datarootdir='${prefix}/share'
911
datadir='${datarootdir}'
912
sysconfdir='${prefix}/etc'
913
sharedstatedir='${prefix}/com'
914
localstatedir='${prefix}/var'
915
includedir='${prefix}/include'
916
oldincludedir='/usr/include'
917
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
918
infodir='${datarootdir}/info'
923
libdir='${exec_prefix}/lib'
924
localedir='${datarootdir}/locale'
925
mandir='${datarootdir}/man'
931
# If the previous option needs an argument, assign it.
932
if test -n "$ac_prev"; then
933
eval $ac_prev=\$ac_option
939
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
943
# Accept the important Cygnus configure options, so we can diagnose typos.
945
case $ac_dashdash$ac_option in
949
-bindir | --bindir | --bindi | --bind | --bin | --bi)
951
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
954
-build | --build | --buil | --bui | --bu)
955
ac_prev=build_alias ;;
956
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
957
build_alias=$ac_optarg ;;
959
-cache-file | --cache-file | --cache-fil | --cache-fi \
960
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
961
ac_prev=cache_file ;;
962
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
963
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
964
cache_file=$ac_optarg ;;
967
cache_file=config.cache ;;
969
-datadir | --datadir | --datadi | --datad)
971
-datadir=* | --datadir=* | --datadi=* | --datad=*)
972
datadir=$ac_optarg ;;
974
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
975
| --dataroo | --dataro | --datar)
976
ac_prev=datarootdir ;;
977
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
978
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
979
datarootdir=$ac_optarg ;;
981
-disable-* | --disable-*)
982
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
983
# Reject names that are not valid shell variable names.
984
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
985
as_fn_error "invalid feature name: $ac_useropt"
986
ac_useropt_orig=$ac_useropt
987
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988
case $ac_user_opts in
992
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
993
ac_unrecognized_sep=', ';;
995
eval enable_$ac_useropt=no ;;
997
-docdir | --docdir | --docdi | --doc | --do)
999
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1000
docdir=$ac_optarg ;;
1002
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1004
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1005
dvidir=$ac_optarg ;;
1007
-enable-* | --enable-*)
1008
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1009
# Reject names that are not valid shell variable names.
1010
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1011
as_fn_error "invalid feature name: $ac_useropt"
1012
ac_useropt_orig=$ac_useropt
1013
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014
case $ac_user_opts in
1016
"enable_$ac_useropt"
1018
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1019
ac_unrecognized_sep=', ';;
1021
eval enable_$ac_useropt=\$ac_optarg ;;
1023
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025
| --exec | --exe | --ex)
1026
ac_prev=exec_prefix ;;
1027
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029
| --exec=* | --exe=* | --ex=*)
1030
exec_prefix=$ac_optarg ;;
1032
-gas | --gas | --ga | --g)
1033
# Obsolete; use --with-gas.
1036
-help | --help | --hel | --he | -h)
1037
ac_init_help=long ;;
1038
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039
ac_init_help=recursive ;;
1040
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041
ac_init_help=short ;;
1043
-host | --host | --hos | --ho)
1044
ac_prev=host_alias ;;
1045
-host=* | --host=* | --hos=* | --ho=*)
1046
host_alias=$ac_optarg ;;
1048
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052
htmldir=$ac_optarg ;;
1054
-includedir | --includedir | --includedi | --included | --include \
1055
| --includ | --inclu | --incl | --inc)
1056
ac_prev=includedir ;;
1057
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058
| --includ=* | --inclu=* | --incl=* | --inc=*)
1059
includedir=$ac_optarg ;;
1061
-infodir | --infodir | --infodi | --infod | --info | --inf)
1063
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1064
infodir=$ac_optarg ;;
1066
-libdir | --libdir | --libdi | --libd)
1068
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1069
libdir=$ac_optarg ;;
1071
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072
| --libexe | --libex | --libe)
1073
ac_prev=libexecdir ;;
1074
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075
| --libexe=* | --libex=* | --libe=*)
1076
libexecdir=$ac_optarg ;;
1078
-localedir | --localedir | --localedi | --localed | --locale)
1079
ac_prev=localedir ;;
1080
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081
localedir=$ac_optarg ;;
1083
-localstatedir | --localstatedir | --localstatedi | --localstated \
1084
| --localstate | --localstat | --localsta | --localst | --locals)
1085
ac_prev=localstatedir ;;
1086
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1087
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1088
localstatedir=$ac_optarg ;;
1090
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1093
mandir=$ac_optarg ;;
1095
-nfp | --nfp | --nf)
1096
# Obsolete; use --without-fp.
1099
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1100
| --no-cr | --no-c | -n)
1103
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109
| --oldin | --oldi | --old | --ol | --o)
1110
ac_prev=oldincludedir ;;
1111
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1114
oldincludedir=$ac_optarg ;;
1116
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1119
prefix=$ac_optarg ;;
1121
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1122
| --program-pre | --program-pr | --program-p)
1123
ac_prev=program_prefix ;;
1124
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1125
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1126
program_prefix=$ac_optarg ;;
1128
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1129
| --program-suf | --program-su | --program-s)
1130
ac_prev=program_suffix ;;
1131
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1132
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1133
program_suffix=$ac_optarg ;;
1135
-program-transform-name | --program-transform-name \
1136
| --program-transform-nam | --program-transform-na \
1137
| --program-transform-n | --program-transform- \
1138
| --program-transform | --program-transfor \
1139
| --program-transfo | --program-transf \
1140
| --program-trans | --program-tran \
1141
| --progr-tra | --program-tr | --program-t)
1142
ac_prev=program_transform_name ;;
1143
-program-transform-name=* | --program-transform-name=* \
1144
| --program-transform-nam=* | --program-transform-na=* \
1145
| --program-transform-n=* | --program-transform-=* \
1146
| --program-transform=* | --program-transfor=* \
1147
| --program-transfo=* | --program-transf=* \
1148
| --program-trans=* | --program-tran=* \
1149
| --progr-tra=* | --program-tr=* | --program-t=*)
1150
program_transform_name=$ac_optarg ;;
1152
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155
pdfdir=$ac_optarg ;;
1157
-psdir | --psdir | --psdi | --psd | --ps)
1159
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163
| -silent | --silent | --silen | --sile | --sil)
1166
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170
sbindir=$ac_optarg ;;
1172
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1173
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174
| --sharedst | --shareds | --shared | --share | --shar \
1176
ac_prev=sharedstatedir ;;
1177
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181
sharedstatedir=$ac_optarg ;;
1183
-site | --site | --sit)
1185
-site=* | --site=* | --sit=*)
1188
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191
srcdir=$ac_optarg ;;
1193
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194
| --syscon | --sysco | --sysc | --sys | --sy)
1195
ac_prev=sysconfdir ;;
1196
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198
sysconfdir=$ac_optarg ;;
1200
-target | --target | --targe | --targ | --tar | --ta | --t)
1201
ac_prev=target_alias ;;
1202
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203
target_alias=$ac_optarg ;;
1205
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1208
-version | --version | --versio | --versi | --vers | -V)
1209
ac_init_version=: ;;
1212
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213
# Reject names that are not valid shell variable names.
1214
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215
as_fn_error "invalid package name: $ac_useropt"
1216
ac_useropt_orig=$ac_useropt
1217
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218
case $ac_user_opts in
1222
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1223
ac_unrecognized_sep=', ';;
1225
eval with_$ac_useropt=\$ac_optarg ;;
1227
-without-* | --without-*)
1228
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229
# Reject names that are not valid shell variable names.
1230
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231
as_fn_error "invalid package name: $ac_useropt"
1232
ac_useropt_orig=$ac_useropt
1233
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234
case $ac_user_opts in
1238
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1239
ac_unrecognized_sep=', ';;
1241
eval with_$ac_useropt=no ;;
1244
# Obsolete; use --with-x.
1247
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1248
| --x-incl | --x-inc | --x-in | --x-i)
1249
ac_prev=x_includes ;;
1250
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1251
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1252
x_includes=$ac_optarg ;;
1254
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1255
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1256
ac_prev=x_libraries ;;
1257
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1258
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1259
x_libraries=$ac_optarg ;;
1261
-*) as_fn_error "unrecognized option: \`$ac_option'
1262
Try \`$0 --help' for more information."
1266
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267
# Reject names that are not valid shell variable names.
1268
case $ac_envvar in #(
1269
'' | [0-9]* | *[!_$as_cr_alnum]* )
1270
as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1272
eval $ac_envvar=\$ac_optarg
1273
export $ac_envvar ;;
1276
# FIXME: should be removed in autoconf 3.0.
1277
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1278
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1280
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1286
if test -n "$ac_prev"; then
1287
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1288
as_fn_error "missing argument to $ac_option"
1291
if test -n "$ac_unrecognized_opts"; then
1292
case $enable_option_checking in
1294
fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1295
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1299
# Check all directory arguments for consistency.
1300
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301
datadir sysconfdir sharedstatedir localstatedir includedir \
1302
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303
libdir localedir mandir
1305
eval ac_val=\$$ac_var
1306
# Remove trailing slashes.
1309
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1310
eval $ac_var=\$ac_val;;
1312
# Be sure to have absolute directory names.
1314
[\\/$]* | ?:[\\/]* ) continue;;
1315
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317
as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1320
# There might be people who depend on the old broken behavior: `$host'
1321
# used to hold the argument of --host etc.
1322
# FIXME: To remove some day.
1325
target=$target_alias
1327
# FIXME: To remove some day.
1328
if test "x$host_alias" != x; then
1329
if test "x$build_alias" = x; then
1330
cross_compiling=maybe
1331
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1332
If a cross compiler is detected then cross compile mode will be used." >&2
1333
elif test "x$build_alias" != "x$host_alias"; then
1339
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341
test "$silent" = yes && exec 6>/dev/null
1344
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1345
ac_ls_di=`ls -di .` &&
1346
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1347
as_fn_error "working directory cannot be determined"
1348
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1349
as_fn_error "pwd does not report name of working directory"
1352
# Find the source files, if location was not specified.
1353
if test -z "$srcdir"; then
1354
ac_srcdir_defaulted=yes
1355
# Try the directory containing this script, then the parent directory.
1356
ac_confdir=`$as_dirname -- "$as_myself" ||
1357
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1358
X"$as_myself" : 'X\(//\)[^/]' \| \
1359
X"$as_myself" : 'X\(//\)$' \| \
1360
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1361
$as_echo X"$as_myself" |
1362
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380
if test ! -r "$srcdir/$ac_unique_file"; then
1384
ac_srcdir_defaulted=no
1386
if test ! -r "$srcdir/$ac_unique_file"; then
1387
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1388
as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1390
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1394
# When building in place, set srcdir=.
1395
if test "$ac_abs_confdir" = "$ac_pwd"; then
1398
# Remove unnecessary trailing slashes from srcdir.
1399
# Double slashes in file names in object file debugging info
1400
# mess up M-x gdb in Emacs.
1402
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404
for ac_var in $ac_precious_vars; do
1405
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406
eval ac_env_${ac_var}_value=\$${ac_var}
1407
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1412
# Report the --help message.
1414
if test "$ac_init_help" = "long"; then
1415
# Omit some internal or obsolete options to make the list less imposing.
1416
# This message is too long to be a string in the A/UX 3.1 sh.
1418
\`configure' configures Multitouch Protocol Translation Library 1.0.8 to adapt to many kinds of systems.
1420
Usage: $0 [OPTION]... [VAR=VALUE]...
1422
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423
VAR=VALUE. See below for descriptions of some of the useful variables.
1425
Defaults for the options are specified in brackets.
1428
-h, --help display this help and exit
1429
--help=short display options specific to this package
1430
--help=recursive display the short help of all the included packages
1431
-V, --version display version information and exit
1432
-q, --quiet, --silent do not print \`checking...' messages
1433
--cache-file=FILE cache test results in FILE [disabled]
1434
-C, --config-cache alias for \`--cache-file=config.cache'
1435
-n, --no-create do not create output files
1436
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1438
Installation directories:
1439
--prefix=PREFIX install architecture-independent files in PREFIX
1440
[$ac_default_prefix]
1441
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1444
By default, \`make install' will install all the files in
1445
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1446
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447
for instance \`--prefix=\$HOME'.
1449
For better control, use the options below.
1451
Fine tuning of the installation directories:
1452
--bindir=DIR user executables [EPREFIX/bin]
1453
--sbindir=DIR system admin executables [EPREFIX/sbin]
1454
--libexecdir=DIR program executables [EPREFIX/libexec]
1455
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1456
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1457
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1458
--libdir=DIR object code libraries [EPREFIX/lib]
1459
--includedir=DIR C header files [PREFIX/include]
1460
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1461
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1462
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1463
--infodir=DIR info documentation [DATAROOTDIR/info]
1464
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1465
--mandir=DIR man documentation [DATAROOTDIR/man]
1466
--docdir=DIR documentation root [DATAROOTDIR/doc/mtdev]
1467
--htmldir=DIR html documentation [DOCDIR]
1468
--dvidir=DIR dvi documentation [DOCDIR]
1469
--pdfdir=DIR pdf documentation [DOCDIR]
1470
--psdir=DIR ps documentation [DOCDIR]
1476
--program-prefix=PREFIX prepend PREFIX to installed program names
1477
--program-suffix=SUFFIX append SUFFIX to installed program names
1478
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1481
--build=BUILD configure for building on BUILD [guessed]
1482
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1486
if test -n "$ac_init_help"; then
1487
case $ac_init_help in
1488
short | recursive ) echo "Configuration of Multitouch Protocol Translation Library 1.0.8:";;
1493
--disable-option-checking ignore unrecognized --enable/--with options
1494
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1495
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1496
--enable-maintainer-mode enable make rules and dependencies not useful
1497
(and sometimes confusing) to the casual installer
1498
--enable-shared[=PKGS] build shared libraries [default=yes]
1499
--enable-static[=PKGS] build static libraries [default=yes]
1500
--enable-fast-install[=PKGS]
1501
optimize for fast installation [default=yes]
1502
--disable-dependency-tracking speeds up one-time build
1503
--enable-dependency-tracking do not reject slow dependency extractors
1504
--disable-libtool-lock avoid locking (might break parallel builds)
1507
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1508
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1509
--with-pic try to use only PIC/non-PIC objects [default=use
1511
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1513
Some influential environment variables:
1514
CC C compiler command
1515
CFLAGS C compiler flags
1516
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1517
nonstandard directory <lib dir>
1518
LIBS libraries to pass to the linker, e.g. -l<library>
1519
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1520
you have headers in a nonstandard directory <include dir>
1523
Use these variables to override the choices made by `configure' or to help
1524
it to find libraries and programs with nonstandard names/locations.
1526
Report bugs to the package provider.
1531
if test "$ac_init_help" = "recursive"; then
1532
# If there are subdirs, report their specific --help.
1533
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1534
test -d "$ac_dir" ||
1535
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1540
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1543
# A ".." for each directory in $ac_dir_suffix.
1544
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1545
case $ac_top_builddir_sub in
1546
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550
ac_abs_top_builddir=$ac_pwd
1551
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1552
# for backward compatibility:
1553
ac_top_builddir=$ac_top_build_prefix
1556
.) # We are building in place.
1558
ac_top_srcdir=$ac_top_builddir_sub
1559
ac_abs_top_srcdir=$ac_pwd ;;
1560
[\\/]* | ?:[\\/]* ) # Absolute name.
1561
ac_srcdir=$srcdir$ac_dir_suffix;
1562
ac_top_srcdir=$srcdir
1563
ac_abs_top_srcdir=$srcdir ;;
1565
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1566
ac_top_srcdir=$ac_top_build_prefix$srcdir
1567
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1571
cd "$ac_dir" || { ac_status=$?; continue; }
1572
# Check for guested configure.
1573
if test -f "$ac_srcdir/configure.gnu"; then
1575
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1576
elif test -f "$ac_srcdir/configure"; then
1578
$SHELL "$ac_srcdir/configure" --help=recursive
1580
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582
cd "$ac_pwd" || { ac_status=$?; break; }
1586
test -n "$ac_init_help" && exit $ac_status
1587
if $ac_init_version; then
1589
Multitouch Protocol Translation Library configure 1.0.8
1590
generated by GNU Autoconf 2.65
1592
Copyright (C) 2009 Free Software Foundation, Inc.
1593
This configure script is free software; the Free Software Foundation
1594
gives unlimited permission to copy, distribute and modify it.
1599
## ------------------------ ##
1600
## Autoconf initialization. ##
1601
## ------------------------ ##
1603
# ac_fn_c_try_compile LINENO
1604
# --------------------------
1605
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1606
ac_fn_c_try_compile ()
1608
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609
rm -f conftest.$ac_objext
1610
if { { ac_try="$ac_compile"
1612
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613
*) ac_try_echo=$ac_try;;
1615
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616
$as_echo "$ac_try_echo"; } >&5
1617
(eval "$ac_compile") 2>conftest.err
1619
if test -s conftest.err; then
1620
grep -v '^ *+' conftest.err >conftest.er1
1621
cat conftest.er1 >&5
1622
mv -f conftest.er1 conftest.err
1624
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625
test $ac_status = 0; } && {
1626
test -z "$ac_c_werror_flag" ||
1627
test ! -s conftest.err
1628
} && test -s conftest.$ac_objext; then :
1631
$as_echo "$as_me: failed program was:" >&5
1632
sed 's/^/| /' conftest.$ac_ext >&5
1636
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1637
as_fn_set_status $ac_retval
1639
} # ac_fn_c_try_compile
1641
# ac_fn_c_try_link LINENO
1642
# -----------------------
1643
# Try to link conftest.$ac_ext, and return whether this succeeded.
1646
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647
rm -f conftest.$ac_objext conftest$ac_exeext
1648
if { { ac_try="$ac_link"
1650
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651
*) ac_try_echo=$ac_try;;
1653
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654
$as_echo "$ac_try_echo"; } >&5
1655
(eval "$ac_link") 2>conftest.err
1657
if test -s conftest.err; then
1658
grep -v '^ *+' conftest.err >conftest.er1
1659
cat conftest.er1 >&5
1660
mv -f conftest.er1 conftest.err
1662
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663
test $ac_status = 0; } && {
1664
test -z "$ac_c_werror_flag" ||
1665
test ! -s conftest.err
1666
} && test -s conftest$ac_exeext && {
1667
test "$cross_compiling" = yes ||
1668
$as_test_x conftest$ac_exeext
1672
$as_echo "$as_me: failed program was:" >&5
1673
sed 's/^/| /' conftest.$ac_ext >&5
1677
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1678
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1679
# interfere with the next link command; also delete a directory that is
1680
# left behind by Apple's compiler. We do this before executing the actions.
1681
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1682
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1683
as_fn_set_status $ac_retval
1685
} # ac_fn_c_try_link
1687
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1688
# -------------------------------------------------------
1689
# Tests whether HEADER exists and can be compiled using the include files in
1690
# INCLUDES, setting the cache variable VAR accordingly.
1691
ac_fn_c_check_header_compile ()
1693
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1695
$as_echo_n "checking for $2... " >&6; }
1696
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1697
$as_echo_n "(cached) " >&6
1699
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700
/* end confdefs.h. */
1704
if ac_fn_c_try_compile "$LINENO"; then :
1709
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1712
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1713
$as_echo "$ac_res" >&6; }
1714
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1716
} # ac_fn_c_check_header_compile
1718
# ac_fn_c_try_cpp LINENO
1719
# ----------------------
1720
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1723
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724
if { { ac_try="$ac_cpp conftest.$ac_ext"
1726
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727
*) ac_try_echo=$ac_try;;
1729
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730
$as_echo "$ac_try_echo"; } >&5
1731
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1733
if test -s conftest.err; then
1734
grep -v '^ *+' conftest.err >conftest.er1
1735
cat conftest.er1 >&5
1736
mv -f conftest.er1 conftest.err
1738
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739
test $ac_status = 0; } >/dev/null && {
1740
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1741
test ! -s conftest.err
1745
$as_echo "$as_me: failed program was:" >&5
1746
sed 's/^/| /' conftest.$ac_ext >&5
1750
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1751
as_fn_set_status $ac_retval
1755
# ac_fn_c_try_run LINENO
1756
# ----------------------
1757
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1758
# that executables *can* be run.
1761
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762
if { { ac_try="$ac_link"
1764
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765
*) ac_try_echo=$ac_try;;
1767
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768
$as_echo "$ac_try_echo"; } >&5
1769
(eval "$ac_link") 2>&5
1771
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1773
{ { case "(($ac_try" in
1774
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775
*) ac_try_echo=$ac_try;;
1777
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778
$as_echo "$ac_try_echo"; } >&5
1779
(eval "$ac_try") 2>&5
1781
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782
test $ac_status = 0; }; }; then :
1785
$as_echo "$as_me: program exited with status $ac_status" >&5
1786
$as_echo "$as_me: failed program was:" >&5
1787
sed 's/^/| /' conftest.$ac_ext >&5
1789
ac_retval=$ac_status
1791
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1792
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1793
as_fn_set_status $ac_retval
1797
# ac_fn_c_check_func LINENO FUNC VAR
1798
# ----------------------------------
1799
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1800
ac_fn_c_check_func ()
1802
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804
$as_echo_n "checking for $2... " >&6; }
1805
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1806
$as_echo_n "(cached) " >&6
1808
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809
/* end confdefs.h. */
1810
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1811
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1812
#define $2 innocuous_$2
1814
/* System header to define __stub macros and hopefully few prototypes,
1815
which can conflict with char $2 (); below.
1816
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1817
<limits.h> exists even on freestanding compilers. */
1820
# include <limits.h>
1822
# include <assert.h>
1827
/* Override any GCC internal prototype to avoid an error.
1828
Use char because int might match the return type of a GCC
1829
builtin and then its argument prototype would still apply. */
1834
/* The GNU C library defines this for functions which it implements
1835
to always fail with ENOSYS. Some functions are actually named
1836
something starting with __ and the normal name is an alias. */
1837
#if defined __stub_$2 || defined __stub___$2
1849
if ac_fn_c_try_link "$LINENO"; then :
1854
rm -f core conftest.err conftest.$ac_objext \
1855
conftest$ac_exeext conftest.$ac_ext
1858
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859
$as_echo "$ac_res" >&6; }
1860
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1862
} # ac_fn_c_check_func
1863
cat >config.log <<_ACEOF
1864
This file contains any messages produced by compilers while
1865
running configure, to aid debugging if configure makes a mistake.
1867
It was created by Multitouch Protocol Translation Library $as_me 1.0.8, which was
1868
generated by GNU Autoconf 2.65. Invocation command line was
1880
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1881
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1882
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1883
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1884
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1886
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1887
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1889
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1890
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1891
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1892
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1893
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1894
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1895
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1899
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903
test -z "$as_dir" && as_dir=.
1904
$as_echo "PATH: $as_dir"
1920
# Keep a trace of the command line.
1921
# Strip out --no-create and --no-recursion so they do not pile up.
1922
# Strip out --silent because we don't want to record it for future runs.
1923
# Also quote any args containing shell meta-characters.
1924
# Make two passes to allow for proper duplicate-argument suppression.
1928
ac_must_keep_next=false
1934
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1935
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1936
| -silent | --silent | --silen | --sile | --sil)
1939
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1942
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1944
as_fn_append ac_configure_args1 " '$ac_arg'"
1945
if test $ac_must_keep_next = true; then
1946
ac_must_keep_next=false # Got value, back to normal.
1949
*=* | --config-cache | -C | -disable-* | --disable-* \
1950
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1951
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1952
| -with-* | --with-* | -without-* | --without-* | --x)
1953
case "$ac_configure_args0 " in
1954
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1957
-* ) ac_must_keep_next=true ;;
1960
as_fn_append ac_configure_args " '$ac_arg'"
1965
{ ac_configure_args0=; unset ac_configure_args0;}
1966
{ ac_configure_args1=; unset ac_configure_args1;}
1968
# When interrupted or exit'd, cleanup temporary files, and complete
1969
# config.log. We remove comments because anyway the quotes in there
1970
# would cause problems or look ugly.
1971
# WARNING: Use '\'' to represent an apostrophe within the trap.
1972
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1973
trap 'exit_status=$?
1974
# Save into config.log some information that might help in debugging.
1979
## ---------------- ##
1980
## Cache variables. ##
1981
## ---------------- ##
1984
# The following way of writing the cache mishandles newlines in values,
1986
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1987
eval ac_val=\$$ac_var
1991
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1992
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1995
_ | IFS | as_nl) ;; #(
1996
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1997
*) { eval $ac_var=; unset $ac_var;} ;;
2002
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2003
*${as_nl}ac_space=\ *)
2005
"s/'\''/'\''\\\\'\'''\''/g;
2006
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2009
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2017
## ----------------- ##
2018
## Output variables. ##
2019
## ----------------- ##
2022
for ac_var in $ac_subst_vars
2024
eval ac_val=\$$ac_var
2026
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2028
$as_echo "$ac_var='\''$ac_val'\''"
2032
if test -n "$ac_subst_files"; then
2034
## ------------------- ##
2035
## File substitutions. ##
2036
## ------------------- ##
2039
for ac_var in $ac_subst_files
2041
eval ac_val=\$$ac_var
2043
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2045
$as_echo "$ac_var='\''$ac_val'\''"
2050
if test -s confdefs.h; then
2060
test "$ac_signal" != 0 &&
2061
$as_echo "$as_me: caught signal $ac_signal"
2062
$as_echo "$as_me: exit $exit_status"
2064
rm -f core *.core core.conftest.* &&
2065
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2068
for ac_signal in 1 2 13 15; do
2069
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2073
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2074
rm -f -r conftest* confdefs.h
2076
$as_echo "/* confdefs.h */" > confdefs.h
2078
# Predefined preprocessor variables.
2080
cat >>confdefs.h <<_ACEOF
2081
#define PACKAGE_NAME "$PACKAGE_NAME"
2084
cat >>confdefs.h <<_ACEOF
2085
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2088
cat >>confdefs.h <<_ACEOF
2089
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2092
cat >>confdefs.h <<_ACEOF
2093
#define PACKAGE_STRING "$PACKAGE_STRING"
2096
cat >>confdefs.h <<_ACEOF
2097
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2100
cat >>confdefs.h <<_ACEOF
2101
#define PACKAGE_URL "$PACKAGE_URL"
2105
# Let the site file select an alternate cache file if it wants to.
2106
# Prefer an explicitly selected file to automatically selected ones.
2109
if test -n "$CONFIG_SITE"; then
2110
ac_site_file1=$CONFIG_SITE
2111
elif test "x$prefix" != xNONE; then
2112
ac_site_file1=$prefix/share/config.site
2113
ac_site_file2=$prefix/etc/config.site
2115
ac_site_file1=$ac_default_prefix/share/config.site
2116
ac_site_file2=$ac_default_prefix/etc/config.site
2118
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2120
test "x$ac_site_file" = xNONE && continue
2121
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2122
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2123
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2124
sed 's/^/| /' "$ac_site_file" >&5
2129
if test -r "$cache_file"; then
2130
# Some versions of bash will fail to source /dev/null (special files
2131
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2132
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2133
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2134
$as_echo "$as_me: loading cache $cache_file" >&6;}
2136
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2137
*) . "./$cache_file";;
2141
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2142
$as_echo "$as_me: creating cache $cache_file" >&6;}
2146
# Check that the precious variables saved in the cache have kept the same
2148
ac_cache_corrupted=false
2149
for ac_var in $ac_precious_vars; do
2150
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2151
eval ac_new_set=\$ac_env_${ac_var}_set
2152
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2153
eval ac_new_val=\$ac_env_${ac_var}_value
2154
case $ac_old_set,$ac_new_set in
2156
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2157
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2158
ac_cache_corrupted=: ;;
2160
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2161
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2162
ac_cache_corrupted=: ;;
2165
if test "x$ac_old_val" != "x$ac_new_val"; then
2166
# differences in whitespace do not lead to failure.
2167
ac_old_val_w=`echo x $ac_old_val`
2168
ac_new_val_w=`echo x $ac_new_val`
2169
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2170
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2171
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2172
ac_cache_corrupted=:
2174
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2175
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2176
eval $ac_var=\$ac_old_val
2178
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2179
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2180
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2181
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2184
# Pass precious variables to config.status.
2185
if test "$ac_new_set" = set; then
2187
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2188
*) ac_arg=$ac_var=$ac_new_val ;;
2190
case " $ac_configure_args " in
2191
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2192
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2196
if $ac_cache_corrupted; then
2197
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2198
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2199
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2200
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2201
as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2203
## -------------------- ##
2204
## Main body of script. ##
2205
## -------------------- ##
2208
ac_cpp='$CPP $CPPFLAGS'
2209
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2210
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2211
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2215
ac_config_headers="$ac_config_headers config.h"
2218
for ac_dir in config-aux "$srcdir"/config-aux; do
2219
for ac_t in install-sh install.sh shtool; do
2220
if test -f "$ac_dir/$ac_t"; then
2222
ac_install_sh="$ac_aux_dir/$ac_t -c"
2227
if test -z "$ac_aux_dir"; then
2228
as_fn_error "cannot find install-sh, install.sh, or shtool in config-aux \"$srcdir\"/config-aux" "$LINENO" 5
2231
# These three variables are undocumented and unsupported,
2232
# and are intended to be withdrawn in a future Autoconf release.
2233
# They can cause serious problems if a builder's source tree is in a directory
2234
# whose full name contains unusual characters.
2235
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2236
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2237
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2241
# Initialize Automake
2242
am__api_version='1.11'
2244
# Find a good install program. We prefer a C program (faster),
2245
# so one script is as good as another. But avoid the broken or
2246
# incompatible versions:
2247
# SysV /etc/install, /usr/sbin/install
2248
# SunOS /usr/etc/install
2249
# IRIX /sbin/install
2251
# AmigaOS /C/install, which installs bootblocks on floppy discs
2252
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2253
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2254
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2255
# OS/2's system install, which has a completely different semantic
2256
# ./install, which can be erroneously created by make from ./install.sh.
2257
# Reject install programs that cannot install multiple files.
2258
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2259
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2260
if test -z "$INSTALL"; then
2261
if test "${ac_cv_path_install+set}" = set; then :
2262
$as_echo_n "(cached) " >&6
2264
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268
test -z "$as_dir" && as_dir=.
2269
# Account for people who put trailing slashes in PATH elements.
2270
case $as_dir/ in #((
2271
./ | .// | /[cC]/* | \
2272
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2273
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2276
# OSF1 and SCO ODT 3.0 have their own names for install.
2277
# Don't use installbsd from OSF since it installs stuff as root
2279
for ac_prog in ginstall scoinst install; do
2280
for ac_exec_ext in '' $ac_executable_extensions; do
2281
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2282
if test $ac_prog = install &&
2283
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2284
# AIX install. It has an incompatible calling convention.
2286
elif test $ac_prog = install &&
2287
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2288
# program-specific install script used by HP pwplus--don't use.
2291
rm -rf conftest.one conftest.two conftest.dir
2292
echo one > conftest.one
2293
echo two > conftest.two
2295
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2296
test -s conftest.one && test -s conftest.two &&
2297
test -s conftest.dir/conftest.one &&
2298
test -s conftest.dir/conftest.two
2300
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2313
rm -rf conftest.one conftest.two conftest.dir
2316
if test "${ac_cv_path_install+set}" = set; then
2317
INSTALL=$ac_cv_path_install
2319
# As a last resort, use the slow shell script. Don't cache a
2320
# value for INSTALL within a source directory, because that will
2321
# break other packages using the cache if that directory is
2322
# removed, or if the value is a relative name.
2323
INSTALL=$ac_install_sh
2326
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2327
$as_echo "$INSTALL" >&6; }
2329
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2330
# It thinks the first close brace ends the variable substitution.
2331
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2333
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2335
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2337
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2338
$as_echo_n "checking whether build environment is sane... " >&6; }
2341
echo timestamp > conftest.file
2342
# Reject unsafe characters in $srcdir or the absolute working directory
2343
# name. Accept space and tab only in the latter.
2347
*[\\\"\#\$\&\'\`$am_lf]*)
2348
as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2351
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2352
as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2355
# Do `set' in a subshell so we don't clobber the current shell's
2356
# arguments. Must try -L first in case configure is actually a
2357
# symlink; some systems play weird games with the mod time of symlinks
2358
# (eg FreeBSD returns the mod time of the symlink's containing
2361
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2362
if test "$*" = "X"; then
2364
set X `ls -t "$srcdir/configure" conftest.file`
2367
if test "$*" != "X $srcdir/configure conftest.file" \
2368
&& test "$*" != "X conftest.file $srcdir/configure"; then
2370
# If neither matched, then we have a broken ls. This can happen
2371
# if, for instance, CONFIG_SHELL is bash and it inherits a
2372
# broken ls alias from the environment. This has actually
2373
# happened. Such a system could not be considered "sane".
2374
as_fn_error "ls -t appears to fail. Make sure there is not a broken
2375
alias in your environment" "$LINENO" 5
2378
test "$2" = conftest.file
2384
as_fn_error "newly created file is older than distributed files!
2385
Check your system clock" "$LINENO" 5
2387
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2388
$as_echo "yes" >&6; }
2389
test "$program_prefix" != NONE &&
2390
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2391
# Use a double $ so make ignores it.
2392
test "$program_suffix" != NONE &&
2393
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2394
# Double any \ or $.
2395
# By default was `s,x,x', remove it if useless.
2396
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2397
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2399
# expand $ac_aux_dir to an absolute path
2400
am_aux_dir=`cd $ac_aux_dir && pwd`
2402
if test x"${MISSING+set}" != xset; then
2405
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2407
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2410
# Use eval to expand $SHELL
2411
if eval "$MISSING --run true"; then
2412
am_missing_run="$MISSING --run "
2415
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2416
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2419
if test x"${install_sh}" != xset; then
2422
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2424
install_sh="\${SHELL} $am_aux_dir/install-sh"
2428
# Installed binaries are usually stripped using `strip' when the user
2429
# run `make install-strip'. However `strip' might not be the right
2430
# tool to use in cross-compilation environments, therefore Automake
2431
# will honor the `STRIP' environment variable to overrule this program.
2432
if test "$cross_compiling" != no; then
2433
if test -n "$ac_tool_prefix"; then
2434
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2435
set dummy ${ac_tool_prefix}strip; ac_word=$2
2436
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2437
$as_echo_n "checking for $ac_word... " >&6; }
2438
if test "${ac_cv_prog_STRIP+set}" = set; then :
2439
$as_echo_n "(cached) " >&6
2441
if test -n "$STRIP"; then
2442
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2444
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448
test -z "$as_dir" && as_dir=.
2449
for ac_exec_ext in '' $ac_executable_extensions; do
2450
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2451
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2452
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2461
STRIP=$ac_cv_prog_STRIP
2462
if test -n "$STRIP"; then
2463
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2464
$as_echo "$STRIP" >&6; }
2466
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2467
$as_echo "no" >&6; }
2472
if test -z "$ac_cv_prog_STRIP"; then
2474
# Extract the first word of "strip", so it can be a program name with args.
2475
set dummy strip; ac_word=$2
2476
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2477
$as_echo_n "checking for $ac_word... " >&6; }
2478
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2479
$as_echo_n "(cached) " >&6
2481
if test -n "$ac_ct_STRIP"; then
2482
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2484
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488
test -z "$as_dir" && as_dir=.
2489
for ac_exec_ext in '' $ac_executable_extensions; do
2490
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2491
ac_cv_prog_ac_ct_STRIP="strip"
2492
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2501
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2502
if test -n "$ac_ct_STRIP"; then
2503
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2504
$as_echo "$ac_ct_STRIP" >&6; }
2506
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2507
$as_echo "no" >&6; }
2510
if test "x$ac_ct_STRIP" = x; then
2513
case $cross_compiling:$ac_tool_warned in
2515
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2516
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2517
ac_tool_warned=yes ;;
2522
STRIP="$ac_cv_prog_STRIP"
2526
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2528
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2529
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2530
if test -z "$MKDIR_P"; then
2531
if test "${ac_cv_path_mkdir+set}" = set; then :
2532
$as_echo_n "(cached) " >&6
2534
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2538
test -z "$as_dir" && as_dir=.
2539
for ac_prog in mkdir gmkdir; do
2540
for ac_exec_ext in '' $ac_executable_extensions; do
2541
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2542
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2543
'mkdir (GNU coreutils) '* | \
2544
'mkdir (coreutils) '* | \
2545
'mkdir (fileutils) '4.1*)
2546
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2556
test -d ./--version && rmdir ./--version
2557
if test "${ac_cv_path_mkdir+set}" = set; then
2558
MKDIR_P="$ac_cv_path_mkdir -p"
2560
# As a last resort, use the slow shell script. Don't cache a
2561
# value for MKDIR_P within a source directory, because that will
2562
# break other packages using the cache if that directory is
2563
# removed, or if the value is a relative name.
2564
MKDIR_P="$ac_install_sh -d"
2567
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2568
$as_echo "$MKDIR_P" >&6; }
2572
[\\/$]* | ?:[\\/]*) ;;
2573
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2576
for ac_prog in gawk mawk nawk awk
2578
# Extract the first word of "$ac_prog", so it can be a program name with args.
2579
set dummy $ac_prog; ac_word=$2
2580
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2581
$as_echo_n "checking for $ac_word... " >&6; }
2582
if test "${ac_cv_prog_AWK+set}" = set; then :
2583
$as_echo_n "(cached) " >&6
2585
if test -n "$AWK"; then
2586
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2588
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592
test -z "$as_dir" && as_dir=.
2593
for ac_exec_ext in '' $ac_executable_extensions; do
2594
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2595
ac_cv_prog_AWK="$ac_prog"
2596
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2606
if test -n "$AWK"; then
2607
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2608
$as_echo "$AWK" >&6; }
2610
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2611
$as_echo "no" >&6; }
2615
test -n "$AWK" && break
2618
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2619
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2621
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2622
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2623
$as_echo_n "(cached) " >&6
2625
cat >conftest.make <<\_ACEOF
2628
@echo '@@@%%%=$(MAKE)=@@@%%%'
2630
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2631
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2633
eval ac_cv_prog_make_${ac_make}_set=yes;;
2635
eval ac_cv_prog_make_${ac_make}_set=no;;
2639
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2640
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2641
$as_echo "yes" >&6; }
2644
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645
$as_echo "no" >&6; }
2646
SET_MAKE="MAKE=${MAKE-make}"
2649
rm -rf .tst 2>/dev/null
2650
mkdir .tst 2>/dev/null
2651
if test -d .tst; then
2656
rmdir .tst 2>/dev/null
2658
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2659
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2660
# is not polluted with repeated "-I."
2661
am__isrc=' -I$(srcdir)'
2662
# test to see if srcdir already configured
2663
if test -f $srcdir/config.status; then
2664
as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2668
# test whether we have cygpath
2669
if test -z "$CYGPATH_W"; then
2670
if (cygpath --version) >/dev/null 2>/dev/null; then
2671
CYGPATH_W='cygpath -w'
2678
# Define the identity of the package.
2683
cat >>confdefs.h <<_ACEOF
2684
#define PACKAGE "$PACKAGE"
2688
cat >>confdefs.h <<_ACEOF
2689
#define VERSION "$VERSION"
2692
# Some tools Automake needs.
2694
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2697
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2700
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2703
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2706
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2708
# We need awk for the "check" target. The system "awk" is bad on
2710
# Always define AMTAR for backward compatibility.
2712
AMTAR=${AMTAR-"${am_missing_run}tar"}
2714
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2721
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2722
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2723
# Check whether --enable-maintainer-mode was given.
2724
if test "${enable_maintainer_mode+set}" = set; then :
2725
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2727
USE_MAINTAINER_MODE=no
2730
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2731
$as_echo "$USE_MAINTAINER_MODE" >&6; }
2732
if test $USE_MAINTAINER_MODE = yes; then
2733
MAINTAINER_MODE_TRUE=
2734
MAINTAINER_MODE_FALSE='#'
2736
MAINTAINER_MODE_TRUE='#'
2737
MAINTAINER_MODE_FALSE=
2740
MAINT=$MAINTAINER_MODE_TRUE
2747
# Initialize libtool
2750
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2751
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2756
macro_version='2.2.6b'
2757
macro_revision='1.3017'
2771
ltmain="$ac_aux_dir/ltmain.sh"
2773
# Make sure we can run config.sub.
2774
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2775
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2777
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2778
$as_echo_n "checking build system type... " >&6; }
2779
if test "${ac_cv_build+set}" = set; then :
2780
$as_echo_n "(cached) " >&6
2782
ac_build_alias=$build_alias
2783
test "x$ac_build_alias" = x &&
2784
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2785
test "x$ac_build_alias" = x &&
2786
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2787
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2788
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2791
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2792
$as_echo "$ac_cv_build" >&6; }
2793
case $ac_cv_build in
2795
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2798
ac_save_IFS=$IFS; IFS='-'
2804
# Remember, the first character of IFS is used to create $*,
2805
# except with old shells:
2808
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2811
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2812
$as_echo_n "checking host system type... " >&6; }
2813
if test "${ac_cv_host+set}" = set; then :
2814
$as_echo_n "(cached) " >&6
2816
if test "x$host_alias" = x; then
2817
ac_cv_host=$ac_cv_build
2819
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2820
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2824
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2825
$as_echo "$ac_cv_host" >&6; }
2828
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2831
ac_save_IFS=$IFS; IFS='-'
2837
# Remember, the first character of IFS is used to create $*,
2838
# except with old shells:
2841
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2844
DEPDIR="${am__leading_dot}deps"
2846
ac_config_commands="$ac_config_commands depfiles"
2849
am_make=${MAKE-make}
2850
cat > confinc << 'END'
2852
@echo this is the am__doit target
2855
# If we don't find an include directive, just comment out the code.
2856
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2857
$as_echo_n "checking for style of include used by $am_make... " >&6; }
2861
# First try GNU make style include.
2862
echo "include confinc" > confmf
2863
# Ignore all kinds of additional output from `make'.
2864
case `$am_make -s -f confmf 2> /dev/null` in #(
2865
*the\ am__doit\ target*)
2871
# Now try BSD make style include.
2872
if test "$am__include" = "#"; then
2873
echo '.include "confinc"' > confmf
2874
case `$am_make -s -f confmf 2> /dev/null` in #(
2875
*the\ am__doit\ target*)
2876
am__include=.include
2884
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2885
$as_echo "$_am_result" >&6; }
2886
rm -f confinc confmf
2888
# Check whether --enable-dependency-tracking was given.
2889
if test "${enable_dependency_tracking+set}" = set; then :
2890
enableval=$enable_dependency_tracking;
2893
if test "x$enable_dependency_tracking" != xno; then
2894
am_depcomp="$ac_aux_dir/depcomp"
2897
if test "x$enable_dependency_tracking" != xno; then
2907
ac_cpp='$CPP $CPPFLAGS'
2908
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2909
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2910
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2911
if test -n "$ac_tool_prefix"; then
2912
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2913
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2914
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915
$as_echo_n "checking for $ac_word... " >&6; }
2916
if test "${ac_cv_prog_CC+set}" = set; then :
2917
$as_echo_n "(cached) " >&6
2919
if test -n "$CC"; then
2920
ac_cv_prog_CC="$CC" # Let the user override the test.
2922
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926
test -z "$as_dir" && as_dir=.
2927
for ac_exec_ext in '' $ac_executable_extensions; do
2928
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2929
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2930
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2940
if test -n "$CC"; then
2941
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2942
$as_echo "$CC" >&6; }
2944
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945
$as_echo "no" >&6; }
2950
if test -z "$ac_cv_prog_CC"; then
2952
# Extract the first word of "gcc", so it can be a program name with args.
2953
set dummy gcc; ac_word=$2
2954
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2955
$as_echo_n "checking for $ac_word... " >&6; }
2956
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2957
$as_echo_n "(cached) " >&6
2959
if test -n "$ac_ct_CC"; then
2960
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2962
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966
test -z "$as_dir" && as_dir=.
2967
for ac_exec_ext in '' $ac_executable_extensions; do
2968
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2969
ac_cv_prog_ac_ct_CC="gcc"
2970
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2980
if test -n "$ac_ct_CC"; then
2981
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2982
$as_echo "$ac_ct_CC" >&6; }
2984
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985
$as_echo "no" >&6; }
2988
if test "x$ac_ct_CC" = x; then
2991
case $cross_compiling:$ac_tool_warned in
2993
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2994
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2995
ac_tool_warned=yes ;;
3003
if test -z "$CC"; then
3004
if test -n "$ac_tool_prefix"; then
3005
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3006
set dummy ${ac_tool_prefix}cc; ac_word=$2
3007
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008
$as_echo_n "checking for $ac_word... " >&6; }
3009
if test "${ac_cv_prog_CC+set}" = set; then :
3010
$as_echo_n "(cached) " >&6
3012
if test -n "$CC"; then
3013
ac_cv_prog_CC="$CC" # Let the user override the test.
3015
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019
test -z "$as_dir" && as_dir=.
3020
for ac_exec_ext in '' $ac_executable_extensions; do
3021
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022
ac_cv_prog_CC="${ac_tool_prefix}cc"
3023
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3033
if test -n "$CC"; then
3034
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3035
$as_echo "$CC" >&6; }
3037
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038
$as_echo "no" >&6; }
3044
if test -z "$CC"; then
3045
# Extract the first word of "cc", so it can be a program name with args.
3046
set dummy cc; ac_word=$2
3047
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048
$as_echo_n "checking for $ac_word... " >&6; }
3049
if test "${ac_cv_prog_CC+set}" = set; then :
3050
$as_echo_n "(cached) " >&6
3052
if test -n "$CC"; then
3053
ac_cv_prog_CC="$CC" # Let the user override the test.
3056
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060
test -z "$as_dir" && as_dir=.
3061
for ac_exec_ext in '' $ac_executable_extensions; do
3062
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3063
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3064
ac_prog_rejected=yes
3068
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075
if test $ac_prog_rejected = yes; then
3076
# We found a bogon in the path, so make sure we never use it.
3077
set dummy $ac_cv_prog_CC
3079
if test $# != 0; then
3080
# We chose a different compiler from the bogus one.
3081
# However, it has the same basename, so the bogon will be chosen
3082
# first if we set CC to just the basename; use the full file name.
3084
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3090
if test -n "$CC"; then
3091
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3092
$as_echo "$CC" >&6; }
3094
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095
$as_echo "no" >&6; }
3100
if test -z "$CC"; then
3101
if test -n "$ac_tool_prefix"; then
3102
for ac_prog in cl.exe
3104
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3105
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3106
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107
$as_echo_n "checking for $ac_word... " >&6; }
3108
if test "${ac_cv_prog_CC+set}" = set; then :
3109
$as_echo_n "(cached) " >&6
3111
if test -n "$CC"; then
3112
ac_cv_prog_CC="$CC" # Let the user override the test.
3114
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118
test -z "$as_dir" && as_dir=.
3119
for ac_exec_ext in '' $ac_executable_extensions; do
3120
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3121
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3122
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3132
if test -n "$CC"; then
3133
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3134
$as_echo "$CC" >&6; }
3136
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137
$as_echo "no" >&6; }
3141
test -n "$CC" && break
3144
if test -z "$CC"; then
3146
for ac_prog in cl.exe
3148
# Extract the first word of "$ac_prog", so it can be a program name with args.
3149
set dummy $ac_prog; 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 test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3153
$as_echo_n "(cached) " >&6
3155
if test -n "$ac_ct_CC"; then
3156
ac_cv_prog_ac_ct_CC="$ac_ct_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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3165
ac_cv_prog_ac_ct_CC="$ac_prog"
3166
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3176
if test -n "$ac_ct_CC"; then
3177
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3178
$as_echo "$ac_ct_CC" >&6; }
3180
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181
$as_echo "no" >&6; }
3185
test -n "$ac_ct_CC" && break
3188
if test "x$ac_ct_CC" = x; then
3191
case $cross_compiling:$ac_tool_warned in
3193
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3194
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3195
ac_tool_warned=yes ;;
3204
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3205
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3206
as_fn_error "no acceptable C compiler found in \$PATH
3207
See \`config.log' for more details." "$LINENO" 5; }
3209
# Provide some information about the compiler.
3210
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3213
for ac_option in --version -v -V -qversion; do
3214
{ { ac_try="$ac_compiler $ac_option >&5"
3216
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217
*) ac_try_echo=$ac_try;;
3219
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3220
$as_echo "$ac_try_echo"; } >&5
3221
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3223
if test -s conftest.err; then
3225
... rest of stderr output deleted ...
3226
10q' conftest.err >conftest.er1
3227
cat conftest.er1 >&5
3229
rm -f conftest.er1 conftest.err
3230
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3231
test $ac_status = 0; }
3234
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3235
/* end confdefs.h. */
3245
ac_clean_files_save=$ac_clean_files
3246
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3247
# Try to create an executable without -o first, disregard a.out.
3248
# It will help us diagnose broken compilers, and finding out an intuition
3250
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3251
$as_echo_n "checking whether the C compiler works... " >&6; }
3252
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3254
# The possible output files:
3255
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3258
for ac_file in $ac_files
3261
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3262
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3267
if { { ac_try="$ac_link_default"
3269
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270
*) ac_try_echo=$ac_try;;
3272
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3273
$as_echo "$ac_try_echo"; } >&5
3274
(eval "$ac_link_default") 2>&5
3276
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277
test $ac_status = 0; }; then :
3278
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3279
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3280
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3281
# so that the user can short-circuit this test for compilers unknown to
3283
for ac_file in $ac_files ''
3285
test -f "$ac_file" || continue
3287
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3290
# We found the default executable, but exeext='' is most
3294
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3296
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3298
# We set ac_cv_exeext here because the later test for it is not
3299
# safe: cross compilers may not add the suffix if given an `-o'
3300
# argument, so we may need to know it at that point already.
3301
# Even if this section looks crufty: it has the advantage of
3308
test "$ac_cv_exeext" = no && ac_cv_exeext=
3313
if test -z "$ac_file"; then :
3314
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315
$as_echo "no" >&6; }
3316
$as_echo "$as_me: failed program was:" >&5
3317
sed 's/^/| /' conftest.$ac_ext >&5
3319
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321
{ as_fn_set_status 77
3322
as_fn_error "C compiler cannot create executables
3323
See \`config.log' for more details." "$LINENO" 5; }; }
3325
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3326
$as_echo "yes" >&6; }
3328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3329
$as_echo_n "checking for C compiler default output file name... " >&6; }
3330
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3331
$as_echo "$ac_file" >&6; }
3332
ac_exeext=$ac_cv_exeext
3334
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3335
ac_clean_files=$ac_clean_files_save
3336
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3337
$as_echo_n "checking for suffix of executables... " >&6; }
3338
if { { ac_try="$ac_link"
3340
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341
*) ac_try_echo=$ac_try;;
3343
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3344
$as_echo "$ac_try_echo"; } >&5
3345
(eval "$ac_link") 2>&5
3347
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3348
test $ac_status = 0; }; then :
3349
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3350
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3351
# work properly (i.e., refer to `conftest.exe'), while it won't with
3353
for ac_file in conftest.exe conftest conftest.*; do
3354
test -f "$ac_file" || continue
3356
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3357
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3363
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365
as_fn_error "cannot compute suffix of executables: cannot compile and link
3366
See \`config.log' for more details." "$LINENO" 5; }
3368
rm -f conftest conftest$ac_cv_exeext
3369
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3370
$as_echo "$ac_cv_exeext" >&6; }
3372
rm -f conftest.$ac_ext
3373
EXEEXT=$ac_cv_exeext
3375
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376
/* end confdefs.h. */
3381
FILE *f = fopen ("conftest.out", "w");
3382
return ferror (f) || fclose (f) != 0;
3388
ac_clean_files="$ac_clean_files conftest.out"
3389
# Check that the compiler produces executables we can run. If not, either
3390
# the compiler is broken, or we cross compile.
3391
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3392
$as_echo_n "checking whether we are cross compiling... " >&6; }
3393
if test "$cross_compiling" != yes; then
3394
{ { ac_try="$ac_link"
3396
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397
*) ac_try_echo=$ac_try;;
3399
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3400
$as_echo "$ac_try_echo"; } >&5
3401
(eval "$ac_link") 2>&5
3403
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3404
test $ac_status = 0; }
3405
if { ac_try='./conftest$ac_cv_exeext'
3406
{ { case "(($ac_try" in
3407
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408
*) ac_try_echo=$ac_try;;
3410
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3411
$as_echo "$ac_try_echo"; } >&5
3412
(eval "$ac_try") 2>&5
3414
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3415
test $ac_status = 0; }; }; then
3418
if test "$cross_compiling" = maybe; then
3421
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3422
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3423
as_fn_error "cannot run C compiled programs.
3424
If you meant to cross compile, use \`--host'.
3425
See \`config.log' for more details." "$LINENO" 5; }
3429
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3430
$as_echo "$cross_compiling" >&6; }
3432
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3433
ac_clean_files=$ac_clean_files_save
3434
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3435
$as_echo_n "checking for suffix of object files... " >&6; }
3436
if test "${ac_cv_objext+set}" = set; then :
3437
$as_echo_n "(cached) " >&6
3439
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440
/* end confdefs.h. */
3450
rm -f conftest.o conftest.obj
3451
if { { ac_try="$ac_compile"
3453
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454
*) ac_try_echo=$ac_try;;
3456
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3457
$as_echo "$ac_try_echo"; } >&5
3458
(eval "$ac_compile") 2>&5
3460
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3461
test $ac_status = 0; }; then :
3462
for ac_file in conftest.o conftest.obj conftest.*; do
3463
test -f "$ac_file" || continue;
3465
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3466
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3471
$as_echo "$as_me: failed program was:" >&5
3472
sed 's/^/| /' conftest.$ac_ext >&5
3474
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3475
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3476
as_fn_error "cannot compute suffix of object files: cannot compile
3477
See \`config.log' for more details." "$LINENO" 5; }
3479
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3481
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3482
$as_echo "$ac_cv_objext" >&6; }
3483
OBJEXT=$ac_cv_objext
3485
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3486
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3487
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3488
$as_echo_n "(cached) " >&6
3490
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491
/* end confdefs.h. */
3504
if ac_fn_c_try_compile "$LINENO"; then :
3509
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3510
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3514
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3515
if test $ac_compiler_gnu = yes; then
3520
ac_test_CFLAGS=${CFLAGS+set}
3521
ac_save_CFLAGS=$CFLAGS
3522
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3523
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3524
if test "${ac_cv_prog_cc_g+set}" = set; then :
3525
$as_echo_n "(cached) " >&6
3527
ac_save_c_werror_flag=$ac_c_werror_flag
3528
ac_c_werror_flag=yes
3531
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532
/* end confdefs.h. */
3542
if ac_fn_c_try_compile "$LINENO"; then :
3546
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547
/* end confdefs.h. */
3557
if ac_fn_c_try_compile "$LINENO"; then :
3560
ac_c_werror_flag=$ac_save_c_werror_flag
3562
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563
/* end confdefs.h. */
3573
if ac_fn_c_try_compile "$LINENO"; then :
3576
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3580
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581
ac_c_werror_flag=$ac_save_c_werror_flag
3583
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3584
$as_echo "$ac_cv_prog_cc_g" >&6; }
3585
if test "$ac_test_CFLAGS" = set; then
3586
CFLAGS=$ac_save_CFLAGS
3587
elif test $ac_cv_prog_cc_g = yes; then
3588
if test "$GCC" = yes; then
3594
if test "$GCC" = yes; then
3600
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3601
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3602
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3603
$as_echo_n "(cached) " >&6
3605
ac_cv_prog_cc_c89=no
3607
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608
/* end confdefs.h. */
3611
#include <sys/types.h>
3612
#include <sys/stat.h>
3613
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3614
struct buf { int x; };
3615
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3616
static char *e (p, i)
3622
static char *f (char * (*g) (char **, int), char **p, ...)
3627
s = g (p, va_arg (v,int));
3632
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3633
function prototypes and stuff, but not '\xHH' hex character constants.
3634
These don't provoke an error unfortunately, instead are silently treated
3635
as 'x'. The following induces an error, until -std is added to get
3636
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3637
array size at least. It's necessary to write '\x00'==0 to get something
3638
that's true only with -std. */
3639
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3641
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3642
inside strings and character constants. */
3644
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3646
int test (int i, double x);
3647
struct s1 {int (*f) (int a);};
3648
struct s2 {int (*f) (double a);};
3649
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3655
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3660
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3661
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3663
CC="$ac_save_CC $ac_arg"
3664
if ac_fn_c_try_compile "$LINENO"; then :
3665
ac_cv_prog_cc_c89=$ac_arg
3667
rm -f core conftest.err conftest.$ac_objext
3668
test "x$ac_cv_prog_cc_c89" != "xno" && break
3670
rm -f conftest.$ac_ext
3675
case "x$ac_cv_prog_cc_c89" in
3677
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3678
$as_echo "none needed" >&6; } ;;
3680
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3681
$as_echo "unsupported" >&6; } ;;
3683
CC="$CC $ac_cv_prog_cc_c89"
3684
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3685
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3687
if test "x$ac_cv_prog_cc_c89" != xno; then :
3692
ac_cpp='$CPP $CPPFLAGS'
3693
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3694
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3695
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3697
depcc="$CC" am_compiler_list=
3699
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3700
$as_echo_n "checking dependency style of $depcc... " >&6; }
3701
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3702
$as_echo_n "(cached) " >&6
3704
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3705
# We make a subdir and do the tests there. Otherwise we can end up
3706
# making bogus files that we don't know about and never remove. For
3707
# instance it was reported that on HP-UX the gcc test will end up
3708
# making a dummy file named `D' -- because `-MD' means `put the output
3711
# Copy depcomp to subdir because otherwise we won't find it if we're
3712
# using a relative directory.
3713
cp "$am_depcomp" conftest.dir
3715
# We will build objects and dependencies in a subdirectory because
3716
# it helps to detect inapplicable dependency modes. For instance
3717
# both Tru64's cc and ICC support -MD to output dependencies as a
3718
# side effect of compilation, but ICC will put the dependencies in
3719
# the current directory while Tru64 will put them in the object
3723
am_cv_CC_dependencies_compiler_type=none
3724
if test "$am_compiler_list" = ""; then
3725
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3728
case " $depcc " in #(
3729
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3732
for depmode in $am_compiler_list; do
3733
# Setup a source with many dependencies, because some compilers
3734
# like to wrap large dependency lists on column 80 (with \), and
3735
# we should not choose a depcomp mode which is confused by this.
3737
# We need to recreate these files for each test, as the compiler may
3738
# overwrite some of them when testing with obscure command lines.
3739
# This happens at least with the AIX C compiler.
3741
for i in 1 2 3 4 5 6; do
3742
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3743
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3744
# Solaris 8's {/usr,}/bin/sh.
3745
touch sub/conftst$i.h
3747
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3749
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3750
# mode. It turns out that the SunPro C++ compiler does not properly
3751
# handle `-M -o', and we need to detect this. Also, some Intel
3752
# versions had trouble with output in subdirs
3753
am__obj=sub/conftest.${OBJEXT-o}
3754
am__minus_obj="-o $am__obj"
3757
# This depmode causes a compiler race in universal mode.
3758
test "$am__universal" = false || continue
3761
# after this tag, mechanisms are not by side-effect, so they'll
3762
# only be used when explicitly requested
3763
if test "x$enable_dependency_tracking" = xyes; then
3769
msvisualcpp | msvcmsys)
3770
# This compiler won't grok `-c -o', but also, the minuso test has
3771
# not run yet. These depmodes are late enough in the game, and
3772
# so weak that their functioning should not be impacted.
3773
am__obj=conftest.${OBJEXT-o}
3778
if depmode=$depmode \
3779
source=sub/conftest.c object=$am__obj \
3780
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3781
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3782
>/dev/null 2>conftest.err &&
3783
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3784
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3785
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3786
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3787
# icc doesn't choke on unknown options, it will just issue warnings
3788
# or remarks (even with -Werror). So we grep stderr for any message
3789
# that says an option was ignored or not supported.
3790
# When given -MP, icc 7.0 and 7.1 complain thusly:
3791
# icc: Command line warning: ignoring option '-M'; no argument required
3792
# The diagnosis changed in icc 8.0:
3793
# icc: Command line remark: option '-MP' not supported
3794
if (grep 'ignoring option' conftest.err ||
3795
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3796
am_cv_CC_dependencies_compiler_type=$depmode
3805
am_cv_CC_dependencies_compiler_type=none
3809
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3810
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3811
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3814
test "x$enable_dependency_tracking" != xno \
3815
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3817
am__fastdepCC_FALSE='#'
3819
am__fastdepCC_TRUE='#'
3820
am__fastdepCC_FALSE=
3824
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3825
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3826
if test "${ac_cv_path_SED+set}" = set; then :
3827
$as_echo_n "(cached) " >&6
3829
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3830
for ac_i in 1 2 3 4 5 6 7; do
3831
ac_script="$ac_script$as_nl$ac_script"
3833
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3834
{ ac_script=; unset ac_script;}
3835
if test -z "$SED"; then
3836
ac_path_SED_found=false
3837
# Loop through the user's path and test for each of PROGNAME-LIST
3838
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842
test -z "$as_dir" && as_dir=.
3843
for ac_prog in sed gsed; do
3844
for ac_exec_ext in '' $ac_executable_extensions; do
3845
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3846
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3847
# Check for GNU ac_path_SED and select it if it is found.
3848
# Check for GNU $ac_path_SED
3849
case `"$ac_path_SED" --version 2>&1` in
3851
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3854
$as_echo_n 0123456789 >"conftest.in"
3857
cat "conftest.in" "conftest.in" >"conftest.tmp"
3858
mv "conftest.tmp" "conftest.in"
3859
cp "conftest.in" "conftest.nl"
3860
$as_echo '' >> "conftest.nl"
3861
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3862
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3863
as_fn_arith $ac_count + 1 && ac_count=$as_val
3864
if test $ac_count -gt ${ac_path_SED_max-0}; then
3865
# Best one so far, save it but keep looking for a better one
3866
ac_cv_path_SED="$ac_path_SED"
3867
ac_path_SED_max=$ac_count
3869
# 10*(2^10) chars as input seems more than enough
3870
test $ac_count -gt 10 && break
3872
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3875
$ac_path_SED_found && break 3
3880
if test -z "$ac_cv_path_SED"; then
3881
as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3888
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3889
$as_echo "$ac_cv_path_SED" >&6; }
3890
SED="$ac_cv_path_SED"
3893
test -z "$SED" && SED=sed
3894
Xsed="$SED -e 1s/^X//"
3906
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3907
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3908
if test "${ac_cv_path_GREP+set}" = set; then :
3909
$as_echo_n "(cached) " >&6
3911
if test -z "$GREP"; then
3912
ac_path_GREP_found=false
3913
# Loop through the user's path and test for each of PROGNAME-LIST
3914
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3918
test -z "$as_dir" && as_dir=.
3919
for ac_prog in grep ggrep; do
3920
for ac_exec_ext in '' $ac_executable_extensions; do
3921
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3922
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3923
# Check for GNU ac_path_GREP and select it if it is found.
3924
# Check for GNU $ac_path_GREP
3925
case `"$ac_path_GREP" --version 2>&1` in
3927
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3930
$as_echo_n 0123456789 >"conftest.in"
3933
cat "conftest.in" "conftest.in" >"conftest.tmp"
3934
mv "conftest.tmp" "conftest.in"
3935
cp "conftest.in" "conftest.nl"
3936
$as_echo 'GREP' >> "conftest.nl"
3937
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3938
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3939
as_fn_arith $ac_count + 1 && ac_count=$as_val
3940
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3941
# Best one so far, save it but keep looking for a better one
3942
ac_cv_path_GREP="$ac_path_GREP"
3943
ac_path_GREP_max=$ac_count
3945
# 10*(2^10) chars as input seems more than enough
3946
test $ac_count -gt 10 && break
3948
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3951
$ac_path_GREP_found && break 3
3956
if test -z "$ac_cv_path_GREP"; then
3957
as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3960
ac_cv_path_GREP=$GREP
3964
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3965
$as_echo "$ac_cv_path_GREP" >&6; }
3966
GREP="$ac_cv_path_GREP"
3969
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3970
$as_echo_n "checking for egrep... " >&6; }
3971
if test "${ac_cv_path_EGREP+set}" = set; then :
3972
$as_echo_n "(cached) " >&6
3974
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3975
then ac_cv_path_EGREP="$GREP -E"
3977
if test -z "$EGREP"; then
3978
ac_path_EGREP_found=false
3979
# Loop through the user's path and test for each of PROGNAME-LIST
3980
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3984
test -z "$as_dir" && as_dir=.
3985
for ac_prog in egrep; do
3986
for ac_exec_ext in '' $ac_executable_extensions; do
3987
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3988
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3989
# Check for GNU ac_path_EGREP and select it if it is found.
3990
# Check for GNU $ac_path_EGREP
3991
case `"$ac_path_EGREP" --version 2>&1` in
3993
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3996
$as_echo_n 0123456789 >"conftest.in"
3999
cat "conftest.in" "conftest.in" >"conftest.tmp"
4000
mv "conftest.tmp" "conftest.in"
4001
cp "conftest.in" "conftest.nl"
4002
$as_echo 'EGREP' >> "conftest.nl"
4003
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4004
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4005
as_fn_arith $ac_count + 1 && ac_count=$as_val
4006
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4007
# Best one so far, save it but keep looking for a better one
4008
ac_cv_path_EGREP="$ac_path_EGREP"
4009
ac_path_EGREP_max=$ac_count
4011
# 10*(2^10) chars as input seems more than enough
4012
test $ac_count -gt 10 && break
4014
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4017
$ac_path_EGREP_found && break 3
4022
if test -z "$ac_cv_path_EGREP"; then
4023
as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4026
ac_cv_path_EGREP=$EGREP
4031
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4032
$as_echo "$ac_cv_path_EGREP" >&6; }
4033
EGREP="$ac_cv_path_EGREP"
4036
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4037
$as_echo_n "checking for fgrep... " >&6; }
4038
if test "${ac_cv_path_FGREP+set}" = set; then :
4039
$as_echo_n "(cached) " >&6
4041
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4042
then ac_cv_path_FGREP="$GREP -F"
4044
if test -z "$FGREP"; then
4045
ac_path_FGREP_found=false
4046
# Loop through the user's path and test for each of PROGNAME-LIST
4047
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4051
test -z "$as_dir" && as_dir=.
4052
for ac_prog in fgrep; do
4053
for ac_exec_ext in '' $ac_executable_extensions; do
4054
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4055
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4056
# Check for GNU ac_path_FGREP and select it if it is found.
4057
# Check for GNU $ac_path_FGREP
4058
case `"$ac_path_FGREP" --version 2>&1` in
4060
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4063
$as_echo_n 0123456789 >"conftest.in"
4066
cat "conftest.in" "conftest.in" >"conftest.tmp"
4067
mv "conftest.tmp" "conftest.in"
4068
cp "conftest.in" "conftest.nl"
4069
$as_echo 'FGREP' >> "conftest.nl"
4070
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4071
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4072
as_fn_arith $ac_count + 1 && ac_count=$as_val
4073
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4074
# Best one so far, save it but keep looking for a better one
4075
ac_cv_path_FGREP="$ac_path_FGREP"
4076
ac_path_FGREP_max=$ac_count
4078
# 10*(2^10) chars as input seems more than enough
4079
test $ac_count -gt 10 && break
4081
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4084
$ac_path_FGREP_found && break 3
4089
if test -z "$ac_cv_path_FGREP"; then
4090
as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4093
ac_cv_path_FGREP=$FGREP
4098
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4099
$as_echo "$ac_cv_path_FGREP" >&6; }
4100
FGREP="$ac_cv_path_FGREP"
4103
test -z "$GREP" && GREP=grep
4123
# Check whether --with-gnu-ld was given.
4124
if test "${with_gnu_ld+set}" = set; then :
4125
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4131
if test "$GCC" = yes; then
4132
# Check if gcc -print-prog-name=ld gives a path.
4133
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4134
$as_echo_n "checking for ld used by $CC... " >&6; }
4137
# gcc leaves a trailing carriage return which upsets mingw
4138
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4140
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4143
# Accept absolute paths.
4145
re_direlt='/[^/][^/]*/\.\./'
4146
# Canonicalize the pathname of ld
4147
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4148
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4149
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4151
test -z "$LD" && LD="$ac_prog"
4154
# If it fails, then pretend we aren't using GCC.
4158
# If it is relative, then search for the first ld in PATH.
4162
elif test "$with_gnu_ld" = yes; then
4163
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4164
$as_echo_n "checking for GNU ld... " >&6; }
4166
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4167
$as_echo_n "checking for non-GNU ld... " >&6; }
4169
if test "${lt_cv_path_LD+set}" = set; then :
4170
$as_echo_n "(cached) " >&6
4172
if test -z "$LD"; then
4173
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4174
for ac_dir in $PATH; do
4176
test -z "$ac_dir" && ac_dir=.
4177
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4178
lt_cv_path_LD="$ac_dir/$ac_prog"
4179
# Check to see if the program is GNU ld. I'd rather use --version,
4180
# but apparently some variants of GNU ld only accept -v.
4181
# Break only if it was the GNU/non-GNU ld that we prefer.
4182
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4183
*GNU* | *'with BFD'*)
4184
test "$with_gnu_ld" != no && break
4187
test "$with_gnu_ld" != yes && break
4194
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4199
if test -n "$LD"; then
4200
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4201
$as_echo "$LD" >&6; }
4203
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204
$as_echo "no" >&6; }
4206
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4207
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4208
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4209
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4210
$as_echo_n "(cached) " >&6
4212
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4213
case `$LD -v 2>&1 </dev/null` in
4214
*GNU* | *'with BFD'*)
4215
lt_cv_prog_gnu_ld=yes
4218
lt_cv_prog_gnu_ld=no
4222
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4223
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4224
with_gnu_ld=$lt_cv_prog_gnu_ld
4234
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4235
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4236
if test "${lt_cv_path_NM+set}" = set; then :
4237
$as_echo_n "(cached) " >&6
4239
if test -n "$NM"; then
4240
# Let the user override the test.
4243
lt_nm_to_check="${ac_tool_prefix}nm"
4244
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4245
lt_nm_to_check="$lt_nm_to_check nm"
4247
for lt_tmp_nm in $lt_nm_to_check; do
4248
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4249
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4251
test -z "$ac_dir" && ac_dir=.
4252
tmp_nm="$ac_dir/$lt_tmp_nm"
4253
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4254
# Check to see if the nm accepts a BSD-compat flag.
4255
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4256
# nm: unknown option "B" ignored
4257
# Tru64's nm complains that /dev/null is an invalid object file
4258
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4259
*/dev/null* | *'Invalid file or object type'*)
4260
lt_cv_path_NM="$tmp_nm -B"
4264
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4266
lt_cv_path_NM="$tmp_nm -p"
4270
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4271
continue # so that we can try to find one that supports BSD flags
4280
: ${lt_cv_path_NM=no}
4283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4284
$as_echo "$lt_cv_path_NM" >&6; }
4285
if test "$lt_cv_path_NM" != "no"; then
4288
# Didn't find any BSD compatible name lister, look for dumpbin.
4289
if test -n "$ac_tool_prefix"; then
4290
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4292
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4293
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4294
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4295
$as_echo_n "checking for $ac_word... " >&6; }
4296
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4297
$as_echo_n "(cached) " >&6
4299
if test -n "$DUMPBIN"; then
4300
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4302
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306
test -z "$as_dir" && as_dir=.
4307
for ac_exec_ext in '' $ac_executable_extensions; do
4308
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4309
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4310
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4319
DUMPBIN=$ac_cv_prog_DUMPBIN
4320
if test -n "$DUMPBIN"; then
4321
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4322
$as_echo "$DUMPBIN" >&6; }
4324
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4325
$as_echo "no" >&6; }
4329
test -n "$DUMPBIN" && break
4332
if test -z "$DUMPBIN"; then
4333
ac_ct_DUMPBIN=$DUMPBIN
4334
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4336
# Extract the first word of "$ac_prog", so it can be a program name with args.
4337
set dummy $ac_prog; ac_word=$2
4338
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4339
$as_echo_n "checking for $ac_word... " >&6; }
4340
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4341
$as_echo_n "(cached) " >&6
4343
if test -n "$ac_ct_DUMPBIN"; then
4344
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4346
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350
test -z "$as_dir" && as_dir=.
4351
for ac_exec_ext in '' $ac_executable_extensions; do
4352
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4353
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4354
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4363
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4364
if test -n "$ac_ct_DUMPBIN"; then
4365
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4366
$as_echo "$ac_ct_DUMPBIN" >&6; }
4368
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4369
$as_echo "no" >&6; }
4373
test -n "$ac_ct_DUMPBIN" && break
4376
if test "x$ac_ct_DUMPBIN" = x; then
4379
case $cross_compiling:$ac_tool_warned in
4381
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4382
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4383
ac_tool_warned=yes ;;
4385
DUMPBIN=$ac_ct_DUMPBIN
4390
if test "$DUMPBIN" != ":"; then
4394
test -z "$NM" && NM=nm
4401
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4402
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4403
if test "${lt_cv_nm_interface+set}" = set; then :
4404
$as_echo_n "(cached) " >&6
4406
lt_cv_nm_interface="BSD nm"
4407
echo "int some_variable = 0;" > conftest.$ac_ext
4408
(eval echo "\"\$as_me:4408: $ac_compile\"" >&5)
4409
(eval "$ac_compile" 2>conftest.err)
4410
cat conftest.err >&5
4411
(eval echo "\"\$as_me:4411: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4412
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4413
cat conftest.err >&5
4414
(eval echo "\"\$as_me:4414: output\"" >&5)
4415
cat conftest.out >&5
4416
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4417
lt_cv_nm_interface="MS dumpbin"
4421
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4422
$as_echo "$lt_cv_nm_interface" >&6; }
4424
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4425
$as_echo_n "checking whether ln -s works... " >&6; }
4427
if test "$LN_S" = "ln -s"; then
4428
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4429
$as_echo "yes" >&6; }
4431
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4432
$as_echo "no, using $LN_S" >&6; }
4435
# find the maximum length of command line arguments
4436
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4437
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4438
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4439
$as_echo_n "(cached) " >&6
4446
# On DJGPP, this test can blow up pretty badly due to problems in libc
4447
# (any single argument exceeding 2000 bytes causes a buffer overrun
4448
# during glob expansion). Even if it were fixed, the result of this
4449
# check would be larger than it should be.
4450
lt_cv_sys_max_cmd_len=12288; # 12K is about right
4454
# Under GNU Hurd, this test is not required because there is
4455
# no limit to the length of command line arguments.
4456
# Libtool will interpret -1 as no limit whatsoever
4457
lt_cv_sys_max_cmd_len=-1;
4460
cygwin* | mingw* | cegcc*)
4461
# On Win9x/ME, this test blows up -- it succeeds, but takes
4462
# about 5 minutes as the teststring grows exponentially.
4463
# Worse, since 9x/ME are not pre-emptively multitasking,
4464
# you end up with a "frozen" computer, even though with patience
4465
# the test eventually succeeds (with a max line length of 256k).
4466
# Instead, let's just punt: use the minimum linelength reported by
4467
# all of the supported platforms: 8192 (on NT/2K/XP).
4468
lt_cv_sys_max_cmd_len=8192;
4472
# On AmigaOS with pdksh, this test takes hours, literally.
4473
# So we just punt and use a minimum line length of 8192.
4474
lt_cv_sys_max_cmd_len=8192;
4477
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4478
# This has been around since 386BSD, at least. Likely further.
4479
if test -x /sbin/sysctl; then
4480
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4481
elif test -x /usr/sbin/sysctl; then
4482
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4484
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4486
# And add a safety zone
4487
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4488
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4492
# We know the value 262144 and hardcode it with a safety zone (like BSD)
4493
lt_cv_sys_max_cmd_len=196608
4497
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4498
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4499
# nice to cause kernel panics so lets avoid the loop below.
4500
# First set a reasonable default.
4501
lt_cv_sys_max_cmd_len=16384
4503
if test -x /sbin/sysconfig; then
4504
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4505
*1*) lt_cv_sys_max_cmd_len=-1 ;;
4510
lt_cv_sys_max_cmd_len=102400
4512
sysv5* | sco5v6* | sysv4.2uw2*)
4513
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4514
if test -n "$kargmax"; then
4515
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4517
lt_cv_sys_max_cmd_len=32768
4521
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4522
if test -n "$lt_cv_sys_max_cmd_len"; then
4523
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4524
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4526
# Make teststring a little bigger before we do anything with it.
4527
# a 1K string should be a reasonable start.
4528
for i in 1 2 3 4 5 6 7 8 ; do
4529
teststring=$teststring$teststring
4531
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4532
# If test is not a shell built-in, we'll probably end up computing a
4533
# maximum length that is only half of the actual maximum length, but
4535
while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4536
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4537
test $i != 17 # 1/2 MB should be enough
4540
teststring=$teststring$teststring
4542
# Only check the string length outside the loop.
4543
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4545
# Add a significant safety factor because C++ compilers can tack on
4546
# massive amounts of additional arguments before passing them to the
4547
# linker. It appears as though 1/2 is a usable value.
4548
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4555
if test -n $lt_cv_sys_max_cmd_len ; then
4556
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4557
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4559
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4560
$as_echo "none" >&6; }
4562
max_cmd_len=$lt_cv_sys_max_cmd_len
4573
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4574
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4575
# Try some XSI features
4578
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4580
&& eval 'test $(( 1 + 1 )) -eq 2 \
4581
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4583
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4584
$as_echo "$xsi_shell" >&6; }
4587
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4588
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4590
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4592
&& lt_shell_append=yes
4593
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4594
$as_echo "$lt_shell_append" >&6; }
4597
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4607
# test EBCDIC or ASCII
4608
case `echo X|tr X '\101'` in
4609
A) # ASCII based system
4610
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4611
lt_SP2NL='tr \040 \012'
4612
lt_NL2SP='tr \015\012 \040\040'
4614
*) # EBCDIC based system
4615
lt_SP2NL='tr \100 \n'
4616
lt_NL2SP='tr \r\n \100\100'
4628
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4629
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4630
if test "${lt_cv_ld_reload_flag+set}" = set; then :
4631
$as_echo_n "(cached) " >&6
4633
lt_cv_ld_reload_flag='-r'
4635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4636
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4637
reload_flag=$lt_cv_ld_reload_flag
4638
case $reload_flag in
4640
*) reload_flag=" $reload_flag" ;;
4642
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4645
if test "$GCC" = yes; then
4646
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4648
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4661
if test -n "$ac_tool_prefix"; then
4662
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4663
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4664
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4665
$as_echo_n "checking for $ac_word... " >&6; }
4666
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4667
$as_echo_n "(cached) " >&6
4669
if test -n "$OBJDUMP"; then
4670
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4672
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676
test -z "$as_dir" && as_dir=.
4677
for ac_exec_ext in '' $ac_executable_extensions; do
4678
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4679
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4680
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4689
OBJDUMP=$ac_cv_prog_OBJDUMP
4690
if test -n "$OBJDUMP"; then
4691
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4692
$as_echo "$OBJDUMP" >&6; }
4694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695
$as_echo "no" >&6; }
4700
if test -z "$ac_cv_prog_OBJDUMP"; then
4701
ac_ct_OBJDUMP=$OBJDUMP
4702
# Extract the first word of "objdump", so it can be a program name with args.
4703
set dummy objdump; ac_word=$2
4704
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4705
$as_echo_n "checking for $ac_word... " >&6; }
4706
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4707
$as_echo_n "(cached) " >&6
4709
if test -n "$ac_ct_OBJDUMP"; then
4710
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4712
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716
test -z "$as_dir" && as_dir=.
4717
for ac_exec_ext in '' $ac_executable_extensions; do
4718
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4719
ac_cv_prog_ac_ct_OBJDUMP="objdump"
4720
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4729
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4730
if test -n "$ac_ct_OBJDUMP"; then
4731
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4732
$as_echo "$ac_ct_OBJDUMP" >&6; }
4734
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4735
$as_echo "no" >&6; }
4738
if test "x$ac_ct_OBJDUMP" = x; then
4741
case $cross_compiling:$ac_tool_warned in
4743
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4744
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4745
ac_tool_warned=yes ;;
4747
OBJDUMP=$ac_ct_OBJDUMP
4750
OBJDUMP="$ac_cv_prog_OBJDUMP"
4753
test -z "$OBJDUMP" && OBJDUMP=objdump
4763
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4764
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4765
if test "${lt_cv_deplibs_check_method+set}" = set; then :
4766
$as_echo_n "(cached) " >&6
4768
lt_cv_file_magic_cmd='$MAGIC_CMD'
4769
lt_cv_file_magic_test_file=
4770
lt_cv_deplibs_check_method='unknown'
4771
# Need to set the preceding variable on all platforms that support
4772
# interlibrary dependencies.
4773
# 'none' -- dependencies not supported.
4774
# `unknown' -- same as none, but documents that we really don't know.
4775
# 'pass_all' -- all dependencies passed with no checks.
4776
# 'test_compile' -- check by making test program.
4777
# 'file_magic [[regex]]' -- check by looking for files in library path
4778
# which responds to the $file_magic_cmd with a given extended regex.
4779
# If you have `file' or equivalent on your system and you're not sure
4780
# whether `pass_all' will *always* work, you probably want this one.
4784
lt_cv_deplibs_check_method=pass_all
4788
lt_cv_deplibs_check_method=pass_all
4792
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4793
lt_cv_file_magic_cmd='/usr/bin/file -L'
4794
lt_cv_file_magic_test_file=/shlib/libc.so
4798
# func_win32_libid is a shell function defined in ltmain.sh
4799
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4800
lt_cv_file_magic_cmd='func_win32_libid'
4804
# Base MSYS/MinGW do not provide the 'file' command needed by
4805
# func_win32_libid shell function, so use a weaker test based on 'objdump',
4806
# unless we find 'file', for example because we are cross-compiling.
4807
if ( file / ) >/dev/null 2>&1; then
4808
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4809
lt_cv_file_magic_cmd='func_win32_libid'
4811
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4812
lt_cv_file_magic_cmd='$OBJDUMP -f'
4817
# use the weaker test based on 'objdump'. See mingw*.
4818
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4819
lt_cv_file_magic_cmd='$OBJDUMP -f'
4822
darwin* | rhapsody*)
4823
lt_cv_deplibs_check_method=pass_all
4826
freebsd* | dragonfly*)
4827
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4830
# Not sure whether the presence of OpenBSD here was a mistake.
4831
# Let's accept both of them until this is cleared up.
4832
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4833
lt_cv_file_magic_cmd=/usr/bin/file
4834
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4838
lt_cv_deplibs_check_method=pass_all
4843
lt_cv_deplibs_check_method=pass_all
4846
hpux10.20* | hpux11*)
4847
lt_cv_file_magic_cmd=/usr/bin/file
4850
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4851
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4854
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4855
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4858
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4859
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4865
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4866
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4869
irix5* | irix6* | nonstopux*)
4871
*-32|*"-32 ") libmagic=32-bit;;
4872
*-n32|*"-n32 ") libmagic=N32;;
4873
*-64|*"-64 ") libmagic=64-bit;;
4874
*) libmagic=never-match;;
4876
lt_cv_deplibs_check_method=pass_all
4879
# This must be Linux ELF.
4880
linux* | k*bsd*-gnu | kopensolaris*-gnu)
4881
lt_cv_deplibs_check_method=pass_all
4884
netbsd* | netbsdelf*-gnu)
4885
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4886
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4888
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4893
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4894
lt_cv_file_magic_cmd=/usr/bin/file
4895
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4899
lt_cv_deplibs_check_method=pass_all
4903
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4904
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4906
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4910
osf3* | osf4* | osf5*)
4911
lt_cv_deplibs_check_method=pass_all
4915
lt_cv_deplibs_check_method=pass_all
4919
lt_cv_deplibs_check_method=pass_all
4922
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4923
lt_cv_deplibs_check_method=pass_all
4927
case $host_vendor in
4929
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]'
4930
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4933
lt_cv_deplibs_check_method=pass_all
4936
lt_cv_file_magic_cmd='/bin/file'
4937
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4940
lt_cv_file_magic_cmd='/bin/file'
4941
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4942
lt_cv_file_magic_test_file=/lib/libc.so
4945
lt_cv_deplibs_check_method=pass_all
4948
lt_cv_deplibs_check_method=pass_all
4954
lt_cv_deplibs_check_method=pass_all
4959
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4960
$as_echo "$lt_cv_deplibs_check_method" >&6; }
4961
file_magic_cmd=$lt_cv_file_magic_cmd
4962
deplibs_check_method=$lt_cv_deplibs_check_method
4963
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4976
if test -n "$ac_tool_prefix"; then
4977
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4978
set dummy ${ac_tool_prefix}ar; ac_word=$2
4979
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4980
$as_echo_n "checking for $ac_word... " >&6; }
4981
if test "${ac_cv_prog_AR+set}" = set; then :
4982
$as_echo_n "(cached) " >&6
4984
if test -n "$AR"; then
4985
ac_cv_prog_AR="$AR" # Let the user override the test.
4987
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991
test -z "$as_dir" && as_dir=.
4992
for ac_exec_ext in '' $ac_executable_extensions; do
4993
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4994
ac_cv_prog_AR="${ac_tool_prefix}ar"
4995
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5005
if test -n "$AR"; then
5006
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5007
$as_echo "$AR" >&6; }
5009
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010
$as_echo "no" >&6; }
5015
if test -z "$ac_cv_prog_AR"; then
5017
# Extract the first word of "ar", so it can be a program name with args.
5018
set dummy ar; ac_word=$2
5019
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5020
$as_echo_n "checking for $ac_word... " >&6; }
5021
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5022
$as_echo_n "(cached) " >&6
5024
if test -n "$ac_ct_AR"; then
5025
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5027
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031
test -z "$as_dir" && as_dir=.
5032
for ac_exec_ext in '' $ac_executable_extensions; do
5033
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5034
ac_cv_prog_ac_ct_AR="ar"
5035
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5044
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5045
if test -n "$ac_ct_AR"; then
5046
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5047
$as_echo "$ac_ct_AR" >&6; }
5049
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5050
$as_echo "no" >&6; }
5053
if test "x$ac_ct_AR" = x; then
5056
case $cross_compiling:$ac_tool_warned in
5058
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5059
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5060
ac_tool_warned=yes ;;
5068
test -z "$AR" && AR=ar
5069
test -z "$AR_FLAGS" && AR_FLAGS=cru
5081
if test -n "$ac_tool_prefix"; then
5082
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5083
set dummy ${ac_tool_prefix}strip; ac_word=$2
5084
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5085
$as_echo_n "checking for $ac_word... " >&6; }
5086
if test "${ac_cv_prog_STRIP+set}" = set; then :
5087
$as_echo_n "(cached) " >&6
5089
if test -n "$STRIP"; then
5090
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5092
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096
test -z "$as_dir" && as_dir=.
5097
for ac_exec_ext in '' $ac_executable_extensions; do
5098
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5099
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5100
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5109
STRIP=$ac_cv_prog_STRIP
5110
if test -n "$STRIP"; then
5111
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5112
$as_echo "$STRIP" >&6; }
5114
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115
$as_echo "no" >&6; }
5120
if test -z "$ac_cv_prog_STRIP"; then
5122
# Extract the first word of "strip", so it can be a program name with args.
5123
set dummy strip; ac_word=$2
5124
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125
$as_echo_n "checking for $ac_word... " >&6; }
5126
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5127
$as_echo_n "(cached) " >&6
5129
if test -n "$ac_ct_STRIP"; then
5130
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136
test -z "$as_dir" && as_dir=.
5137
for ac_exec_ext in '' $ac_executable_extensions; do
5138
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5139
ac_cv_prog_ac_ct_STRIP="strip"
5140
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5149
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5150
if test -n "$ac_ct_STRIP"; then
5151
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5152
$as_echo "$ac_ct_STRIP" >&6; }
5154
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155
$as_echo "no" >&6; }
5158
if test "x$ac_ct_STRIP" = x; then
5161
case $cross_compiling:$ac_tool_warned in
5163
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5164
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5165
ac_tool_warned=yes ;;
5170
STRIP="$ac_cv_prog_STRIP"
5173
test -z "$STRIP" && STRIP=:
5180
if test -n "$ac_tool_prefix"; then
5181
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5182
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5183
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184
$as_echo_n "checking for $ac_word... " >&6; }
5185
if test "${ac_cv_prog_RANLIB+set}" = set; then :
5186
$as_echo_n "(cached) " >&6
5188
if test -n "$RANLIB"; then
5189
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5191
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195
test -z "$as_dir" && as_dir=.
5196
for ac_exec_ext in '' $ac_executable_extensions; do
5197
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5198
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5199
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5208
RANLIB=$ac_cv_prog_RANLIB
5209
if test -n "$RANLIB"; then
5210
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5211
$as_echo "$RANLIB" >&6; }
5213
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5214
$as_echo "no" >&6; }
5219
if test -z "$ac_cv_prog_RANLIB"; then
5220
ac_ct_RANLIB=$RANLIB
5221
# Extract the first word of "ranlib", so it can be a program name with args.
5222
set dummy ranlib; ac_word=$2
5223
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224
$as_echo_n "checking for $ac_word... " >&6; }
5225
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5226
$as_echo_n "(cached) " >&6
5228
if test -n "$ac_ct_RANLIB"; then
5229
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5231
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235
test -z "$as_dir" && as_dir=.
5236
for ac_exec_ext in '' $ac_executable_extensions; do
5237
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5238
ac_cv_prog_ac_ct_RANLIB="ranlib"
5239
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5248
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5249
if test -n "$ac_ct_RANLIB"; then
5250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5251
$as_echo "$ac_ct_RANLIB" >&6; }
5253
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254
$as_echo "no" >&6; }
5257
if test "x$ac_ct_RANLIB" = x; then
5260
case $cross_compiling:$ac_tool_warned in
5262
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5263
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5264
ac_tool_warned=yes ;;
5266
RANLIB=$ac_ct_RANLIB
5269
RANLIB="$ac_cv_prog_RANLIB"
5272
test -z "$RANLIB" && RANLIB=:
5279
# Determine commands to create old-style static archives.
5280
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5281
old_postinstall_cmds='chmod 644 $oldlib'
5282
old_postuninstall_cmds=
5284
if test -n "$RANLIB"; then
5287
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5290
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5293
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5329
# If no C compiler was specified, use CC.
5332
# If no C compiler flags were specified, use CFLAGS.
5333
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5335
# Allow CC to be a program name with arguments.
5339
# Check for command to grab the raw symbol name followed by C symbol from nm.
5340
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5341
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5342
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5343
$as_echo_n "(cached) " >&6
5346
# These are sane defaults that work on at least a few old systems.
5347
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5349
# Character class describing NM global symbol codes.
5350
symcode='[BCDEGRST]'
5352
# Regexp to match symbols that can be accessed directly from C.
5353
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5355
# Define system-specific variables.
5360
cygwin* | mingw* | pw32* | cegcc*)
5361
symcode='[ABCDGISTW]'
5364
if test "$host_cpu" = ia64; then
5365
symcode='[ABCDEGRST]'
5369
symcode='[BCDEGRST]'
5372
symcode='[BCDEGQRST]'
5383
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5391
# If we're using GNU nm, then use its standard symbol codes.
5392
case `$NM -V 2>&1` in
5393
*GNU* | *'with BFD'*)
5394
symcode='[ABCDGIRSTW]' ;;
5397
# Transform an extracted symbol line into a proper C declaration.
5398
# Some systems (esp. on ia64) link data and code symbols differently,
5399
# so use this general approach.
5400
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5402
# Transform an extracted symbol line into symbol name and symbol address
5403
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5404
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'"
5406
# Handle CRLF in mingw tool chain
5410
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5414
# Try without a prefix underscore, then with it.
5415
for ac_symprfx in "" "_"; do
5417
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5418
symxfrm="\\1 $ac_symprfx\\2 \\2"
5420
# Write the raw and C identifiers.
5421
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5422
# Fake it for dumpbin and say T for any non-static function
5423
# and D for any global variable.
5424
# Also find C++ and __fastcall symbols from MSVC++,
5425
# which start with @ or ?.
5426
lt_cv_sys_global_symbol_pipe="$AWK '"\
5427
" {last_section=section; section=\$ 3};"\
5428
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5429
" \$ 0!~/External *\|/{next};"\
5430
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5431
" {if(hide[section]) next};"\
5432
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5433
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5434
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5435
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5436
" ' prfx=^$ac_symprfx"
5438
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5441
# Check to see that the pipe works correctly.
5445
cat > conftest.$ac_ext <<_LT_EOF
5450
void nm_test_func(void);
5451
void nm_test_func(void){}
5455
int main(){nm_test_var='a';nm_test_func();return(0);}
5458
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5459
(eval $ac_compile) 2>&5
5461
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5462
test $ac_status = 0; }; then
5463
# Now try to grab the symbols.
5465
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5466
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5468
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5469
test $ac_status = 0; } && test -s "$nlist"; then
5470
# Try sorting and uniquifying the output.
5471
if sort "$nlist" | uniq > "$nlist"T; then
5472
mv -f "$nlist"T "$nlist"
5477
# Make sure that we snagged all the symbols we need.
5478
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5479
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5480
cat <<_LT_EOF > conftest.$ac_ext
5486
# Now generate the symbol file.
5487
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5489
cat <<_LT_EOF >> conftest.$ac_ext
5491
/* The mapping between symbol names and symbols. */
5496
lt__PROGRAM__LTX_preloaded_symbols[] =
5498
{ "@PROGRAM@", (void *) 0 },
5500
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5501
cat <<\_LT_EOF >> conftest.$ac_ext
5505
/* This works around a problem in FreeBSD linker */
5506
#ifdef FREEBSD_WORKAROUND
5507
static const void *lt_preloaded_setup() {
5508
return lt__PROGRAM__LTX_preloaded_symbols;
5516
# Now try linking the two files.
5517
mv conftest.$ac_objext conftstm.$ac_objext
5518
lt_save_LIBS="$LIBS"
5519
lt_save_CFLAGS="$CFLAGS"
5520
LIBS="conftstm.$ac_objext"
5521
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5522
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5523
(eval $ac_link) 2>&5
5525
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5526
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5529
LIBS="$lt_save_LIBS"
5530
CFLAGS="$lt_save_CFLAGS"
5532
echo "cannot find nm_test_func in $nlist" >&5
5535
echo "cannot find nm_test_var in $nlist" >&5
5538
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5541
echo "$progname: failed program was:" >&5
5542
cat conftest.$ac_ext >&5
5544
rm -rf conftest* conftst*
5546
# Do not use the global_symbol_pipe unless it works.
5547
if test "$pipe_works" = yes; then
5550
lt_cv_sys_global_symbol_pipe=
5556
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5557
lt_cv_sys_global_symbol_to_cdecl=
5559
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5560
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5561
$as_echo "failed" >&6; }
5563
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5564
$as_echo "ok" >&6; }
5589
# Check whether --enable-libtool-lock was given.
5590
if test "${enable_libtool_lock+set}" = set; then :
5591
enableval=$enable_libtool_lock;
5594
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5596
# Some flags need to be propagated to the compiler or linker for good
5600
# Find out which ABI we are using.
5601
echo 'int i;' > conftest.$ac_ext
5602
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5603
(eval $ac_compile) 2>&5
5605
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5606
test $ac_status = 0; }; then
5607
case `/usr/bin/file conftest.$ac_objext` in
5619
# Find out which ABI we are using.
5620
echo '#line 5620 "configure"' > conftest.$ac_ext
5621
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5622
(eval $ac_compile) 2>&5
5624
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5625
test $ac_status = 0; }; then
5626
if test "$lt_cv_prog_gnu_ld" = yes; then
5627
case `/usr/bin/file conftest.$ac_objext` in
5629
LD="${LD-ld} -melf32bsmip"
5632
LD="${LD-ld} -melf32bmipn32"
5635
LD="${LD-ld} -melf64bmip"
5639
case `/usr/bin/file conftest.$ac_objext` in
5655
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5656
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5657
# Find out which ABI we are using.
5658
echo 'int i;' > conftest.$ac_ext
5659
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5660
(eval $ac_compile) 2>&5
5662
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5663
test $ac_status = 0; }; then
5664
case `/usr/bin/file conftest.o` in
5667
x86_64-*kfreebsd*-gnu)
5668
LD="${LD-ld} -m elf_i386_fbsd"
5671
LD="${LD-ld} -m elf_i386"
5673
ppc64-*linux*|powerpc64-*linux*)
5674
LD="${LD-ld} -m elf32ppclinux"
5677
LD="${LD-ld} -m elf_s390"
5680
LD="${LD-ld} -m elf32_sparc"
5686
x86_64-*kfreebsd*-gnu)
5687
LD="${LD-ld} -m elf_x86_64_fbsd"
5690
LD="${LD-ld} -m elf_x86_64"
5692
ppc*-*linux*|powerpc*-*linux*)
5693
LD="${LD-ld} -m elf64ppc"
5695
s390*-*linux*|s390*-*tpf*)
5696
LD="${LD-ld} -m elf64_s390"
5699
LD="${LD-ld} -m elf64_sparc"
5709
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
5710
SAVE_CFLAGS="$CFLAGS"
5711
CFLAGS="$CFLAGS -belf"
5712
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5713
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5714
if test "${lt_cv_cc_needs_belf+set}" = set; then :
5715
$as_echo_n "(cached) " >&6
5718
ac_cpp='$CPP $CPPFLAGS'
5719
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5720
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5721
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5723
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724
/* end confdefs.h. */
5734
if ac_fn_c_try_link "$LINENO"; then :
5735
lt_cv_cc_needs_belf=yes
5737
lt_cv_cc_needs_belf=no
5739
rm -f core conftest.err conftest.$ac_objext \
5740
conftest$ac_exeext conftest.$ac_ext
5742
ac_cpp='$CPP $CPPFLAGS'
5743
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5744
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5745
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5748
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5749
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5750
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5751
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5752
CFLAGS="$SAVE_CFLAGS"
5756
# Find out which ABI we are using.
5757
echo 'int i;' > conftest.$ac_ext
5758
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5759
(eval $ac_compile) 2>&5
5761
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5762
test $ac_status = 0; }; then
5763
case `/usr/bin/file conftest.o` in
5765
case $lt_cv_prog_gnu_ld in
5766
yes*) LD="${LD-ld} -m elf64_sparc" ;;
5768
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5780
need_locks="$enable_libtool_lock"
5784
rhapsody* | darwin*)
5785
if test -n "$ac_tool_prefix"; then
5786
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5787
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5788
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5789
$as_echo_n "checking for $ac_word... " >&6; }
5790
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5791
$as_echo_n "(cached) " >&6
5793
if test -n "$DSYMUTIL"; then
5794
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5796
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800
test -z "$as_dir" && as_dir=.
5801
for ac_exec_ext in '' $ac_executable_extensions; do
5802
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5803
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5804
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5813
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5814
if test -n "$DSYMUTIL"; then
5815
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5816
$as_echo "$DSYMUTIL" >&6; }
5818
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819
$as_echo "no" >&6; }
5824
if test -z "$ac_cv_prog_DSYMUTIL"; then
5825
ac_ct_DSYMUTIL=$DSYMUTIL
5826
# Extract the first word of "dsymutil", so it can be a program name with args.
5827
set dummy dsymutil; ac_word=$2
5828
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5829
$as_echo_n "checking for $ac_word... " >&6; }
5830
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5831
$as_echo_n "(cached) " >&6
5833
if test -n "$ac_ct_DSYMUTIL"; then
5834
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5836
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840
test -z "$as_dir" && as_dir=.
5841
for ac_exec_ext in '' $ac_executable_extensions; do
5842
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5843
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5844
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5853
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5854
if test -n "$ac_ct_DSYMUTIL"; then
5855
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5856
$as_echo "$ac_ct_DSYMUTIL" >&6; }
5858
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859
$as_echo "no" >&6; }
5862
if test "x$ac_ct_DSYMUTIL" = x; then
5865
case $cross_compiling:$ac_tool_warned in
5867
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5868
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5869
ac_tool_warned=yes ;;
5871
DSYMUTIL=$ac_ct_DSYMUTIL
5874
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5877
if test -n "$ac_tool_prefix"; then
5878
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5879
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5880
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5881
$as_echo_n "checking for $ac_word... " >&6; }
5882
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5883
$as_echo_n "(cached) " >&6
5885
if test -n "$NMEDIT"; then
5886
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5888
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892
test -z "$as_dir" && as_dir=.
5893
for ac_exec_ext in '' $ac_executable_extensions; do
5894
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5895
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5896
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905
NMEDIT=$ac_cv_prog_NMEDIT
5906
if test -n "$NMEDIT"; then
5907
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5908
$as_echo "$NMEDIT" >&6; }
5910
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911
$as_echo "no" >&6; }
5916
if test -z "$ac_cv_prog_NMEDIT"; then
5917
ac_ct_NMEDIT=$NMEDIT
5918
# Extract the first word of "nmedit", so it can be a program name with args.
5919
set dummy nmedit; ac_word=$2
5920
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5921
$as_echo_n "checking for $ac_word... " >&6; }
5922
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5923
$as_echo_n "(cached) " >&6
5925
if test -n "$ac_ct_NMEDIT"; then
5926
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5928
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932
test -z "$as_dir" && as_dir=.
5933
for ac_exec_ext in '' $ac_executable_extensions; do
5934
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5935
ac_cv_prog_ac_ct_NMEDIT="nmedit"
5936
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5945
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5946
if test -n "$ac_ct_NMEDIT"; then
5947
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5948
$as_echo "$ac_ct_NMEDIT" >&6; }
5950
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951
$as_echo "no" >&6; }
5954
if test "x$ac_ct_NMEDIT" = x; then
5957
case $cross_compiling:$ac_tool_warned in
5959
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5960
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5961
ac_tool_warned=yes ;;
5963
NMEDIT=$ac_ct_NMEDIT
5966
NMEDIT="$ac_cv_prog_NMEDIT"
5969
if test -n "$ac_tool_prefix"; then
5970
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5971
set dummy ${ac_tool_prefix}lipo; ac_word=$2
5972
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5973
$as_echo_n "checking for $ac_word... " >&6; }
5974
if test "${ac_cv_prog_LIPO+set}" = set; then :
5975
$as_echo_n "(cached) " >&6
5977
if test -n "$LIPO"; then
5978
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5980
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984
test -z "$as_dir" && as_dir=.
5985
for ac_exec_ext in '' $ac_executable_extensions; do
5986
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5987
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5988
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5997
LIPO=$ac_cv_prog_LIPO
5998
if test -n "$LIPO"; then
5999
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6000
$as_echo "$LIPO" >&6; }
6002
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6003
$as_echo "no" >&6; }
6008
if test -z "$ac_cv_prog_LIPO"; then
6010
# Extract the first word of "lipo", so it can be a program name with args.
6011
set dummy lipo; ac_word=$2
6012
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6013
$as_echo_n "checking for $ac_word... " >&6; }
6014
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6015
$as_echo_n "(cached) " >&6
6017
if test -n "$ac_ct_LIPO"; then
6018
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6020
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024
test -z "$as_dir" && as_dir=.
6025
for ac_exec_ext in '' $ac_executable_extensions; do
6026
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6027
ac_cv_prog_ac_ct_LIPO="lipo"
6028
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6037
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6038
if test -n "$ac_ct_LIPO"; then
6039
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6040
$as_echo "$ac_ct_LIPO" >&6; }
6042
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043
$as_echo "no" >&6; }
6046
if test "x$ac_ct_LIPO" = x; then
6049
case $cross_compiling:$ac_tool_warned in
6051
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6052
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6053
ac_tool_warned=yes ;;
6058
LIPO="$ac_cv_prog_LIPO"
6061
if test -n "$ac_tool_prefix"; then
6062
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6063
set dummy ${ac_tool_prefix}otool; ac_word=$2
6064
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6065
$as_echo_n "checking for $ac_word... " >&6; }
6066
if test "${ac_cv_prog_OTOOL+set}" = set; then :
6067
$as_echo_n "(cached) " >&6
6069
if test -n "$OTOOL"; then
6070
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6072
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076
test -z "$as_dir" && as_dir=.
6077
for ac_exec_ext in '' $ac_executable_extensions; do
6078
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6079
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6080
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6089
OTOOL=$ac_cv_prog_OTOOL
6090
if test -n "$OTOOL"; then
6091
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6092
$as_echo "$OTOOL" >&6; }
6094
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095
$as_echo "no" >&6; }
6100
if test -z "$ac_cv_prog_OTOOL"; then
6102
# Extract the first word of "otool", so it can be a program name with args.
6103
set dummy otool; ac_word=$2
6104
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6105
$as_echo_n "checking for $ac_word... " >&6; }
6106
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6107
$as_echo_n "(cached) " >&6
6109
if test -n "$ac_ct_OTOOL"; then
6110
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6112
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116
test -z "$as_dir" && as_dir=.
6117
for ac_exec_ext in '' $ac_executable_extensions; do
6118
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6119
ac_cv_prog_ac_ct_OTOOL="otool"
6120
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6129
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6130
if test -n "$ac_ct_OTOOL"; then
6131
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6132
$as_echo "$ac_ct_OTOOL" >&6; }
6134
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6135
$as_echo "no" >&6; }
6138
if test "x$ac_ct_OTOOL" = x; then
6141
case $cross_compiling:$ac_tool_warned in
6143
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6144
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6145
ac_tool_warned=yes ;;
6150
OTOOL="$ac_cv_prog_OTOOL"
6153
if test -n "$ac_tool_prefix"; then
6154
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6155
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6156
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6157
$as_echo_n "checking for $ac_word... " >&6; }
6158
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6159
$as_echo_n "(cached) " >&6
6161
if test -n "$OTOOL64"; then
6162
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6164
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168
test -z "$as_dir" && as_dir=.
6169
for ac_exec_ext in '' $ac_executable_extensions; do
6170
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6172
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6181
OTOOL64=$ac_cv_prog_OTOOL64
6182
if test -n "$OTOOL64"; then
6183
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6184
$as_echo "$OTOOL64" >&6; }
6186
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6187
$as_echo "no" >&6; }
6192
if test -z "$ac_cv_prog_OTOOL64"; then
6193
ac_ct_OTOOL64=$OTOOL64
6194
# Extract the first word of "otool64", so it can be a program name with args.
6195
set dummy otool64; ac_word=$2
6196
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6197
$as_echo_n "checking for $ac_word... " >&6; }
6198
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6199
$as_echo_n "(cached) " >&6
6201
if test -n "$ac_ct_OTOOL64"; then
6202
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6204
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208
test -z "$as_dir" && as_dir=.
6209
for ac_exec_ext in '' $ac_executable_extensions; do
6210
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6211
ac_cv_prog_ac_ct_OTOOL64="otool64"
6212
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6221
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6222
if test -n "$ac_ct_OTOOL64"; then
6223
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6224
$as_echo "$ac_ct_OTOOL64" >&6; }
6226
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227
$as_echo "no" >&6; }
6230
if test "x$ac_ct_OTOOL64" = x; then
6233
case $cross_compiling:$ac_tool_warned in
6235
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6236
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6237
ac_tool_warned=yes ;;
6239
OTOOL64=$ac_ct_OTOOL64
6242
OTOOL64="$ac_cv_prog_OTOOL64"
6271
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6272
$as_echo_n "checking for -single_module linker flag... " >&6; }
6273
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6274
$as_echo_n "(cached) " >&6
6276
lt_cv_apple_cc_single_mod=no
6277
if test -z "${LT_MULTI_MODULE}"; then
6278
# By default we will add the -single_module flag. You can override
6279
# by either setting the environment variable LT_MULTI_MODULE
6280
# non-empty at configure time, or by adding -multi_module to the
6282
rm -rf libconftest.dylib*
6283
echo "int foo(void){return 1;}" > conftest.c
6284
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6285
-dynamiclib -Wl,-single_module conftest.c" >&5
6286
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6287
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6289
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6290
lt_cv_apple_cc_single_mod=yes
6292
cat conftest.err >&5
6294
rm -rf libconftest.dylib*
6298
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6299
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6300
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6301
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6302
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6303
$as_echo_n "(cached) " >&6
6305
lt_cv_ld_exported_symbols_list=no
6306
save_LDFLAGS=$LDFLAGS
6307
echo "_main" > conftest.sym
6308
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6309
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310
/* end confdefs.h. */
6320
if ac_fn_c_try_link "$LINENO"; then :
6321
lt_cv_ld_exported_symbols_list=yes
6323
lt_cv_ld_exported_symbols_list=no
6325
rm -f core conftest.err conftest.$ac_objext \
6326
conftest$ac_exeext conftest.$ac_ext
6327
LDFLAGS="$save_LDFLAGS"
6330
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6331
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6333
rhapsody* | darwin1.[012])
6334
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6336
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6337
darwin*) # darwin 5.x on
6338
# if running on 10.5 or later, the deployment target defaults
6339
# to the OS version, if on x86, and 10.4, the deployment
6340
# target defaults to 10.4. Don't you love it?
6341
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6342
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6343
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6345
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6347
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6351
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6352
_lt_dar_single_mod='$single_module'
6354
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6355
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6357
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6359
if test "$DSYMUTIL" != ":"; then
6360
_lt_dsymutil='~$DSYMUTIL $lib || :'
6368
ac_cpp='$CPP $CPPFLAGS'
6369
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6370
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6371
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6372
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6373
$as_echo_n "checking how to run the C preprocessor... " >&6; }
6374
# On Suns, sometimes $CPP names a directory.
6375
if test -n "$CPP" && test -d "$CPP"; then
6378
if test -z "$CPP"; then
6379
if test "${ac_cv_prog_CPP+set}" = set; then :
6380
$as_echo_n "(cached) " >&6
6382
# Double quotes because CPP needs to be expanded
6383
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6386
for ac_c_preproc_warn_flag in '' yes
6388
# Use a header file that comes with gcc, so configuring glibc
6389
# with a fresh cross-compiler works.
6390
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6391
# <limits.h> exists even on freestanding compilers.
6392
# On the NeXT, cc -E runs the code through the compiler's parser,
6393
# not just through cpp. "Syntax error" is here to catch this case.
6394
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6395
/* end confdefs.h. */
6397
# include <limits.h>
6399
# include <assert.h>
6403
if ac_fn_c_try_cpp "$LINENO"; then :
6406
# Broken: fails on valid input.
6409
rm -f conftest.err conftest.$ac_ext
6411
# OK, works on sane cases. Now check whether nonexistent headers
6412
# can be detected and how.
6413
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414
/* end confdefs.h. */
6415
#include <ac_nonexistent.h>
6417
if ac_fn_c_try_cpp "$LINENO"; then :
6418
# Broken: success on invalid input.
6421
# Passes both tests.
6425
rm -f conftest.err conftest.$ac_ext
6428
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6429
rm -f conftest.err conftest.$ac_ext
6430
if $ac_preproc_ok; then :
6442
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6443
$as_echo "$CPP" >&6; }
6445
for ac_c_preproc_warn_flag in '' yes
6447
# Use a header file that comes with gcc, so configuring glibc
6448
# with a fresh cross-compiler works.
6449
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6450
# <limits.h> exists even on freestanding compilers.
6451
# On the NeXT, cc -E runs the code through the compiler's parser,
6452
# not just through cpp. "Syntax error" is here to catch this case.
6453
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6454
/* end confdefs.h. */
6456
# include <limits.h>
6458
# include <assert.h>
6462
if ac_fn_c_try_cpp "$LINENO"; then :
6465
# Broken: fails on valid input.
6468
rm -f conftest.err conftest.$ac_ext
6470
# OK, works on sane cases. Now check whether nonexistent headers
6471
# can be detected and how.
6472
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473
/* end confdefs.h. */
6474
#include <ac_nonexistent.h>
6476
if ac_fn_c_try_cpp "$LINENO"; then :
6477
# Broken: success on invalid input.
6480
# Passes both tests.
6484
rm -f conftest.err conftest.$ac_ext
6487
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6488
rm -f conftest.err conftest.$ac_ext
6489
if $ac_preproc_ok; then :
6492
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6493
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6494
as_fn_error "C preprocessor \"$CPP\" fails sanity check
6495
See \`config.log' for more details." "$LINENO" 5; }
6499
ac_cpp='$CPP $CPPFLAGS'
6500
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6501
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6502
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6505
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6506
$as_echo_n "checking for ANSI C header files... " >&6; }
6507
if test "${ac_cv_header_stdc+set}" = set; then :
6508
$as_echo_n "(cached) " >&6
6510
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511
/* end confdefs.h. */
6525
if ac_fn_c_try_compile "$LINENO"; then :
6526
ac_cv_header_stdc=yes
6528
ac_cv_header_stdc=no
6530
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6532
if test $ac_cv_header_stdc = yes; then
6533
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6534
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535
/* end confdefs.h. */
6539
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6540
$EGREP "memchr" >/dev/null 2>&1; then :
6543
ac_cv_header_stdc=no
6549
if test $ac_cv_header_stdc = yes; then
6550
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6551
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552
/* end confdefs.h. */
6556
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6557
$EGREP "free" >/dev/null 2>&1; then :
6560
ac_cv_header_stdc=no
6566
if test $ac_cv_header_stdc = yes; then
6567
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6568
if test "$cross_compiling" = yes; then :
6571
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572
/* end confdefs.h. */
6575
#if ((' ' & 0x0FF) == 0x020)
6576
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6577
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6579
# define ISLOWER(c) \
6580
(('a' <= (c) && (c) <= 'i') \
6581
|| ('j' <= (c) && (c) <= 'r') \
6582
|| ('s' <= (c) && (c) <= 'z'))
6583
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6586
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6591
for (i = 0; i < 256; i++)
6592
if (XOR (islower (i), ISLOWER (i))
6593
|| toupper (i) != TOUPPER (i))
6598
if ac_fn_c_try_run "$LINENO"; then :
6601
ac_cv_header_stdc=no
6603
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6604
conftest.$ac_objext conftest.beam conftest.$ac_ext
6609
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6610
$as_echo "$ac_cv_header_stdc" >&6; }
6611
if test $ac_cv_header_stdc = yes; then
6613
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6617
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6618
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6619
inttypes.h stdint.h unistd.h
6621
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6622
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6624
eval as_val=\$$as_ac_Header
6625
if test "x$as_val" = x""yes; then :
6626
cat >>confdefs.h <<_ACEOF
6627
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6635
for ac_header in dlfcn.h
6637
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6639
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6640
cat >>confdefs.h <<_ACEOF
6641
#define HAVE_DLFCN_H 1
6660
# Check whether --enable-shared was given.
6661
if test "${enable_shared+set}" = set; then :
6662
enableval=$enable_shared; p=${PACKAGE-default}
6664
yes) enable_shared=yes ;;
6665
no) enable_shared=no ;;
6668
# Look at the argument we got. We use all the common list separators.
6669
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6670
for pkg in $enableval; do
6672
if test "X$pkg" = "X$p"; then
6691
# Check whether --enable-static was given.
6692
if test "${enable_static+set}" = set; then :
6693
enableval=$enable_static; p=${PACKAGE-default}
6695
yes) enable_static=yes ;;
6696
no) enable_static=no ;;
6699
# Look at the argument we got. We use all the common list separators.
6700
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6701
for pkg in $enableval; do
6703
if test "X$pkg" = "X$p"; then
6723
# Check whether --with-pic was given.
6724
if test "${with_pic+set}" = set; then :
6725
withval=$with_pic; pic_mode="$withval"
6731
test -z "$pic_mode" && pic_mode=default
6739
# Check whether --enable-fast-install was given.
6740
if test "${enable_fast_install+set}" = set; then :
6741
enableval=$enable_fast_install; p=${PACKAGE-default}
6743
yes) enable_fast_install=yes ;;
6744
no) enable_fast_install=no ;;
6746
enable_fast_install=no
6747
# Look at the argument we got. We use all the common list separators.
6748
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6749
for pkg in $enableval; do
6751
if test "X$pkg" = "X$p"; then
6752
enable_fast_install=yes
6759
enable_fast_install=yes
6772
# This can be used to rebuild libtool when needed
6773
LIBTOOL_DEPS="$ltmain"
6775
# Always use our own libtool.
6776
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6802
test -z "$LN_S" && LN_S="ln -s"
6817
if test -n "${ZSH_VERSION+set}" ; then
6818
setopt NO_GLOB_SUBST
6821
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6822
$as_echo_n "checking for objdir... " >&6; }
6823
if test "${lt_cv_objdir+set}" = set; then :
6824
$as_echo_n "(cached) " >&6
6826
rm -f .libs 2>/dev/null
6827
mkdir .libs 2>/dev/null
6828
if test -d .libs; then
6831
# MS-DOS does not allow filenames that begin with a dot.
6834
rmdir .libs 2>/dev/null
6836
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6837
$as_echo "$lt_cv_objdir" >&6; }
6838
objdir=$lt_cv_objdir
6844
cat >>confdefs.h <<_ACEOF
6845
#define LT_OBJDIR "$lt_cv_objdir/"
6866
# AIX sometimes has problems with the GCC collect2 program. For some
6867
# reason, if we set the COLLECT_NAMES environment variable, the problems
6868
# vanish in a puff of smoke.
6869
if test "X${COLLECT_NAMES+set}" != Xset; then
6871
export COLLECT_NAMES
6876
# Sed substitution that helps us do robust quoting. It backslashifies
6877
# metacharacters that are still active within double-quoted strings.
6878
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6880
# Same as above, but do not quote variable references.
6881
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6883
# Sed substitution to delay expansion of an escaped shell variable in a
6884
# double_quote_subst'ed string.
6885
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6887
# Sed substitution to delay expansion of an escaped single quote.
6888
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6890
# Sed substitution to avoid accidental globbing in evaled expressions
6891
no_glob_subst='s/\*/\\\*/g'
6895
can_build_shared=yes
6897
# All known linkers require a `.a' archive for static linking (except MSVC,
6898
# which needs '.lib').
6901
with_gnu_ld="$lt_cv_prog_gnu_ld"
6904
old_CFLAGS="$CFLAGS"
6906
# Set sane defaults for various variables
6907
test -z "$CC" && CC=cc
6908
test -z "$LTCC" && LTCC=$CC
6909
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6910
test -z "$LD" && LD=ld
6911
test -z "$ac_objext" && ac_objext=o
6913
for cc_temp in $compiler""; do
6915
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6916
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6921
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6924
# Only perform the check for file, if the check method requires it
6925
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6926
case $deplibs_check_method in
6928
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6929
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6930
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6931
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6932
$as_echo_n "(cached) " >&6
6936
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6939
lt_save_MAGIC_CMD="$MAGIC_CMD"
6940
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6941
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6942
for ac_dir in $ac_dummy; do
6944
test -z "$ac_dir" && ac_dir=.
6945
if test -f $ac_dir/${ac_tool_prefix}file; then
6946
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6947
if test -n "$file_magic_test_file"; then
6948
case $deplibs_check_method in
6950
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6951
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6952
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6953
$EGREP "$file_magic_regex" > /dev/null; then
6958
*** Warning: the command libtool uses to detect shared libraries,
6959
*** $file_magic_cmd, produces output that libtool cannot recognize.
6960
*** The result is that libtool may fail to recognize shared libraries
6961
*** as such. This will affect the creation of libtool libraries that
6962
*** depend on shared libraries, but programs linked with such libtool
6963
*** libraries will work regardless of this problem. Nevertheless, you
6964
*** may want to report the problem to your system manager and/or to
6965
*** bug-libtool@gnu.org
6975
MAGIC_CMD="$lt_save_MAGIC_CMD"
6980
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6981
if test -n "$MAGIC_CMD"; then
6982
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6983
$as_echo "$MAGIC_CMD" >&6; }
6985
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986
$as_echo "no" >&6; }
6993
if test -z "$lt_cv_path_MAGIC_CMD"; then
6994
if test -n "$ac_tool_prefix"; then
6995
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6996
$as_echo_n "checking for file... " >&6; }
6997
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6998
$as_echo_n "(cached) " >&6
7002
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7005
lt_save_MAGIC_CMD="$MAGIC_CMD"
7006
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7007
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7008
for ac_dir in $ac_dummy; do
7010
test -z "$ac_dir" && ac_dir=.
7011
if test -f $ac_dir/file; then
7012
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7013
if test -n "$file_magic_test_file"; then
7014
case $deplibs_check_method in
7016
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7017
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7018
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7019
$EGREP "$file_magic_regex" > /dev/null; then
7024
*** Warning: the command libtool uses to detect shared libraries,
7025
*** $file_magic_cmd, produces output that libtool cannot recognize.
7026
*** The result is that libtool may fail to recognize shared libraries
7027
*** as such. This will affect the creation of libtool libraries that
7028
*** depend on shared libraries, but programs linked with such libtool
7029
*** libraries will work regardless of this problem. Nevertheless, you
7030
*** may want to report the problem to your system manager and/or to
7031
*** bug-libtool@gnu.org
7041
MAGIC_CMD="$lt_save_MAGIC_CMD"
7046
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7047
if test -n "$MAGIC_CMD"; then
7048
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7049
$as_echo "$MAGIC_CMD" >&6; }
7051
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052
$as_echo "no" >&6; }
7065
# Use C for the default configuration in the libtool script
7069
ac_cpp='$CPP $CPPFLAGS'
7070
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7071
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7072
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7075
# Source file extension for C test sources.
7078
# Object file extension for compiled C test sources.
7082
# Code to be used in simple compile tests
7083
lt_simple_compile_test_code="int some_variable = 0;"
7085
# Code to be used in simple link tests
7086
lt_simple_link_test_code='int main(){return(0);}'
7094
# If no C compiler was specified, use CC.
7097
# If no C compiler flags were specified, use CFLAGS.
7098
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7100
# Allow CC to be a program name with arguments.
7103
# Save the default compiler, since it gets overwritten when the other
7104
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7105
compiler_DEFAULT=$CC
7107
# save warnings/boilerplate of simple test code
7108
ac_outfile=conftest.$ac_objext
7109
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7110
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7111
_lt_compiler_boilerplate=`cat conftest.err`
7114
ac_outfile=conftest.$ac_objext
7115
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7116
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7117
_lt_linker_boilerplate=`cat conftest.err`
7121
if test -n "$compiler"; then
7123
lt_prog_compiler_no_builtin_flag=
7125
if test "$GCC" = yes; then
7126
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7128
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7129
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7130
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7131
$as_echo_n "(cached) " >&6
7133
lt_cv_prog_compiler_rtti_exceptions=no
7134
ac_outfile=conftest.$ac_objext
7135
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7136
lt_compiler_flag="-fno-rtti -fno-exceptions"
7137
# Insert the option either (1) after the last *FLAGS variable, or
7138
# (2) before a word containing "conftest.", or (3) at the end.
7139
# Note that $ac_compile itself does not contain backslashes and begins
7140
# with a dollar sign (not a hyphen), so the echo should work correctly.
7141
# The option is referenced via a variable to avoid confusing sed.
7142
lt_compile=`echo "$ac_compile" | $SED \
7143
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7144
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7145
-e 's:$: $lt_compiler_flag:'`
7146
(eval echo "\"\$as_me:7146: $lt_compile\"" >&5)
7147
(eval "$lt_compile" 2>conftest.err)
7149
cat conftest.err >&5
7150
echo "$as_me:7150: \$? = $ac_status" >&5
7151
if (exit $ac_status) && test -s "$ac_outfile"; then
7152
# The compiler can only warn and ignore the option if not recognized
7153
# So say no if there are warnings other than the usual output.
7154
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7155
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7156
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7157
lt_cv_prog_compiler_rtti_exceptions=yes
7163
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7164
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7166
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7167
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7179
lt_prog_compiler_wl=
7180
lt_prog_compiler_pic=
7181
lt_prog_compiler_static=
7183
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7184
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7186
if test "$GCC" = yes; then
7187
lt_prog_compiler_wl='-Wl,'
7188
lt_prog_compiler_static='-static'
7192
# All AIX code is PIC.
7193
if test "$host_cpu" = ia64; then
7194
# AIX 5 now supports IA64 processor
7195
lt_prog_compiler_static='-Bstatic'
7202
# see comment about AmigaOS4 .so support
7203
lt_prog_compiler_pic='-fPIC'
7206
# FIXME: we need at least 68020 code to build shared libraries, but
7207
# adding the `-m68020' flag to GCC prevents building anything better,
7209
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7214
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7215
# PIC is the default for these OSes.
7218
mingw* | cygwin* | pw32* | os2* | cegcc*)
7219
# This hack is so that the source file can tell whether it is being
7220
# built for inclusion in a dll (and should export symbols for example).
7221
# Although the cygwin gcc ignores -fPIC, still need this for old-style
7222
# (--disable-auto-import) libraries
7223
lt_prog_compiler_pic='-DDLL_EXPORT'
7226
darwin* | rhapsody*)
7227
# PIC is the default on this platform
7228
# Common symbols not allowed in MH_DYLIB files
7229
lt_prog_compiler_pic='-fno-common'
7233
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7234
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7235
# sets the default TLS model and affects inlining.
7241
lt_prog_compiler_pic='-fPIC'
7247
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7248
# Instead, we relocate shared libraries at runtime.
7252
# Just because we use GCC doesn't mean we suddenly get shared libraries
7253
# on systems that don't support them.
7254
lt_prog_compiler_can_build_shared=no
7259
# QNX uses GNU C++, but need to define -shared option too, otherwise
7261
lt_prog_compiler_pic='-fPIC -shared'
7265
if test -d /usr/nec; then
7266
lt_prog_compiler_pic=-Kconform_pic
7271
lt_prog_compiler_pic='-fPIC'
7275
# PORTME Check for flag to pass linker flags through the system compiler.
7278
lt_prog_compiler_wl='-Wl,'
7279
if test "$host_cpu" = ia64; then
7280
# AIX 5 now supports IA64 processor
7281
lt_prog_compiler_static='-Bstatic'
7283
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7287
mingw* | cygwin* | pw32* | os2* | cegcc*)
7288
# This hack is so that the source file can tell whether it is being
7289
# built for inclusion in a dll (and should export symbols for example).
7290
lt_prog_compiler_pic='-DDLL_EXPORT'
7293
hpux9* | hpux10* | hpux11*)
7294
lt_prog_compiler_wl='-Wl,'
7295
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7302
lt_prog_compiler_pic='+Z'
7305
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7306
lt_prog_compiler_static='${wl}-a ${wl}archive'
7309
irix5* | irix6* | nonstopux*)
7310
lt_prog_compiler_wl='-Wl,'
7311
# PIC (with -KPIC) is the default.
7312
lt_prog_compiler_static='-non_shared'
7315
linux* | k*bsd*-gnu | kopensolaris*-gnu)
7316
case $cc_basename in
7317
# old Intel for x86_64 which still supported -KPIC.
7319
lt_prog_compiler_wl='-Wl,'
7320
lt_prog_compiler_pic='-KPIC'
7321
lt_prog_compiler_static='-static'
7323
# icc used to be incompatible with GCC.
7324
# ICC 10 doesn't accept -KPIC any more.
7326
lt_prog_compiler_wl='-Wl,'
7327
lt_prog_compiler_pic='-fPIC'
7328
lt_prog_compiler_static='-static'
7330
# Lahey Fortran 8.1.
7332
lt_prog_compiler_wl='-Wl,'
7333
lt_prog_compiler_pic='--shared'
7334
lt_prog_compiler_static='--static'
7336
pgcc* | pgf77* | pgf90* | pgf95*)
7337
# Portland Group compilers (*not* the Pentium gcc compiler,
7338
# which looks to be a dead project)
7339
lt_prog_compiler_wl='-Wl,'
7340
lt_prog_compiler_pic='-fpic'
7341
lt_prog_compiler_static='-Bstatic'
7344
lt_prog_compiler_wl='-Wl,'
7345
# All Alpha code is PIC.
7346
lt_prog_compiler_static='-non_shared'
7349
# IBM XL C 8.0/Fortran 10.1 on PPC
7350
lt_prog_compiler_wl='-Wl,'
7351
lt_prog_compiler_pic='-qpic'
7352
lt_prog_compiler_static='-qstaticlink'
7355
case `$CC -V 2>&1 | sed 5q` in
7358
lt_prog_compiler_pic='-KPIC'
7359
lt_prog_compiler_static='-Bstatic'
7360
lt_prog_compiler_wl='-Wl,'
7363
# Sun Fortran 8.3 passes all unrecognized flags to the linker
7364
lt_prog_compiler_pic='-KPIC'
7365
lt_prog_compiler_static='-Bstatic'
7366
lt_prog_compiler_wl=''
7374
lt_prog_compiler_pic='-KPIC'
7375
lt_prog_compiler_static='-Bstatic'
7379
# QNX uses GNU C++, but need to define -shared option too, otherwise
7381
lt_prog_compiler_pic='-fPIC -shared'
7384
osf3* | osf4* | osf5*)
7385
lt_prog_compiler_wl='-Wl,'
7386
# All OSF/1 code is PIC.
7387
lt_prog_compiler_static='-non_shared'
7391
lt_prog_compiler_static='-non_shared'
7395
lt_prog_compiler_pic='-KPIC'
7396
lt_prog_compiler_static='-Bstatic'
7397
case $cc_basename in
7399
lt_prog_compiler_wl='-Qoption ld ';;
7401
lt_prog_compiler_wl='-Wl,';;
7406
lt_prog_compiler_wl='-Qoption ld '
7407
lt_prog_compiler_pic='-PIC'
7408
lt_prog_compiler_static='-Bstatic'
7411
sysv4 | sysv4.2uw2* | sysv4.3*)
7412
lt_prog_compiler_wl='-Wl,'
7413
lt_prog_compiler_pic='-KPIC'
7414
lt_prog_compiler_static='-Bstatic'
7418
if test -d /usr/nec ;then
7419
lt_prog_compiler_pic='-Kconform_pic'
7420
lt_prog_compiler_static='-Bstatic'
7424
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7425
lt_prog_compiler_wl='-Wl,'
7426
lt_prog_compiler_pic='-KPIC'
7427
lt_prog_compiler_static='-Bstatic'
7431
lt_prog_compiler_wl='-Wl,'
7432
lt_prog_compiler_can_build_shared=no
7436
lt_prog_compiler_pic='-pic'
7437
lt_prog_compiler_static='-Bstatic'
7441
lt_prog_compiler_can_build_shared=no
7447
# For platforms which do not support PIC, -DPIC is meaningless:
7449
lt_prog_compiler_pic=
7452
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7456
$as_echo "$lt_prog_compiler_pic" >&6; }
7464
# Check to make sure the PIC flag actually works.
7466
if test -n "$lt_prog_compiler_pic"; then
7467
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7468
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7469
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7470
$as_echo_n "(cached) " >&6
7472
lt_cv_prog_compiler_pic_works=no
7473
ac_outfile=conftest.$ac_objext
7474
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7475
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7476
# Insert the option either (1) after the last *FLAGS variable, or
7477
# (2) before a word containing "conftest.", or (3) at the end.
7478
# Note that $ac_compile itself does not contain backslashes and begins
7479
# with a dollar sign (not a hyphen), so the echo should work correctly.
7480
# The option is referenced via a variable to avoid confusing sed.
7481
lt_compile=`echo "$ac_compile" | $SED \
7482
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7483
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7484
-e 's:$: $lt_compiler_flag:'`
7485
(eval echo "\"\$as_me:7485: $lt_compile\"" >&5)
7486
(eval "$lt_compile" 2>conftest.err)
7488
cat conftest.err >&5
7489
echo "$as_me:7489: \$? = $ac_status" >&5
7490
if (exit $ac_status) && test -s "$ac_outfile"; then
7491
# The compiler can only warn and ignore the option if not recognized
7492
# So say no if there are warnings other than the usual output.
7493
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7494
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7495
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7496
lt_cv_prog_compiler_pic_works=yes
7502
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7503
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7505
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7506
case $lt_prog_compiler_pic in
7508
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7511
lt_prog_compiler_pic=
7512
lt_prog_compiler_can_build_shared=no
7523
# Check to make sure the static flag actually works.
7525
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7526
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7527
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7528
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7529
$as_echo_n "(cached) " >&6
7531
lt_cv_prog_compiler_static_works=no
7532
save_LDFLAGS="$LDFLAGS"
7533
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7534
echo "$lt_simple_link_test_code" > conftest.$ac_ext
7535
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7536
# The linker can only warn and ignore the option if not recognized
7537
# So say no if there are warnings
7538
if test -s conftest.err; then
7539
# Append any errors to the config.log.
7540
cat conftest.err 1>&5
7541
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7542
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7543
if diff conftest.exp conftest.er2 >/dev/null; then
7544
lt_cv_prog_compiler_static_works=yes
7547
lt_cv_prog_compiler_static_works=yes
7551
LDFLAGS="$save_LDFLAGS"
7554
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7555
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7557
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7560
lt_prog_compiler_static=
7569
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7570
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7571
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7572
$as_echo_n "(cached) " >&6
7574
lt_cv_prog_compiler_c_o=no
7575
$RM -r conftest 2>/dev/null
7579
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7581
lt_compiler_flag="-o out/conftest2.$ac_objext"
7582
# Insert the option either (1) after the last *FLAGS variable, or
7583
# (2) before a word containing "conftest.", or (3) at the end.
7584
# Note that $ac_compile itself does not contain backslashes and begins
7585
# with a dollar sign (not a hyphen), so the echo should work correctly.
7586
lt_compile=`echo "$ac_compile" | $SED \
7587
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7588
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7589
-e 's:$: $lt_compiler_flag:'`
7590
(eval echo "\"\$as_me:7590: $lt_compile\"" >&5)
7591
(eval "$lt_compile" 2>out/conftest.err)
7593
cat out/conftest.err >&5
7594
echo "$as_me:7594: \$? = $ac_status" >&5
7595
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7597
# The compiler can only warn and ignore the option if not recognized
7598
# So say no if there are warnings
7599
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7600
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7601
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7602
lt_cv_prog_compiler_c_o=yes
7607
# SGI C++ compiler will create directory out/ii_files/ for
7608
# template instantiation
7609
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7610
$RM out/* && rmdir out
7616
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7617
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7624
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7625
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7626
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7627
$as_echo_n "(cached) " >&6
7629
lt_cv_prog_compiler_c_o=no
7630
$RM -r conftest 2>/dev/null
7634
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7636
lt_compiler_flag="-o out/conftest2.$ac_objext"
7637
# Insert the option either (1) after the last *FLAGS variable, or
7638
# (2) before a word containing "conftest.", or (3) at the end.
7639
# Note that $ac_compile itself does not contain backslashes and begins
7640
# with a dollar sign (not a hyphen), so the echo should work correctly.
7641
lt_compile=`echo "$ac_compile" | $SED \
7642
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7643
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7644
-e 's:$: $lt_compiler_flag:'`
7645
(eval echo "\"\$as_me:7645: $lt_compile\"" >&5)
7646
(eval "$lt_compile" 2>out/conftest.err)
7648
cat out/conftest.err >&5
7649
echo "$as_me:7649: \$? = $ac_status" >&5
7650
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7652
# The compiler can only warn and ignore the option if not recognized
7653
# So say no if there are warnings
7654
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7655
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7656
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7657
lt_cv_prog_compiler_c_o=yes
7662
# SGI C++ compiler will create directory out/ii_files/ for
7663
# template instantiation
7664
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7665
$RM out/* && rmdir out
7671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7672
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7677
hard_links="nottested"
7678
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7679
# do not overwrite the value of need_locks provided by the user
7680
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7681
$as_echo_n "checking if we can lock with hard links... " >&6; }
7684
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7686
ln conftest.a conftest.b 2>&5 || hard_links=no
7687
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7688
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7689
$as_echo "$hard_links" >&6; }
7690
if test "$hard_links" = no; then
7691
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7692
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7704
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7705
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7708
allow_undefined_flag=
7709
always_export_symbols=no
7711
archive_expsym_cmds=
7712
compiler_needs_object=no
7713
enable_shared_with_static_runtimes=no
7714
export_dynamic_flag_spec=
7715
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7716
hardcode_automatic=no
7718
hardcode_direct_absolute=no
7719
hardcode_libdir_flag_spec=
7720
hardcode_libdir_flag_spec_ld=
7721
hardcode_libdir_separator=
7723
hardcode_shlibpath_var=unsupported
7725
link_all_deplibs=unknown
7728
old_archive_from_new_cmds=
7729
old_archive_from_expsyms_cmds=
7730
thread_safe_flag_spec=
7731
whole_archive_flag_spec=
7732
# include_expsyms should be a list of space-separated symbols to be *always*
7733
# included in the symbol list
7735
# exclude_expsyms can be an extended regexp of symbols to exclude
7736
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7737
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7738
# as well as any symbol that contains `d'.
7739
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7740
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7741
# platforms (ab)use it in PIC code, but their linkers get confused if
7742
# the symbol is explicitly referenced. Since portable code cannot
7743
# rely on this symbol name, it's probably fine to never include it in
7744
# preloaded symbol tables.
7745
# Exclude shared library initialization/finalization symbols.
7746
extract_expsyms_cmds=
7749
cygwin* | mingw* | pw32* | cegcc*)
7750
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7751
# When not using gcc, we currently assume that we are using
7752
# Microsoft Visual C++.
7753
if test "$GCC" != yes; then
7758
# we just hope/assume this is gcc and not c89 (= MSVC++)
7764
linux* | k*bsd*-gnu)
7770
if test "$with_gnu_ld" = yes; then
7771
# If archive_cmds runs LD, not CC, wlarc should be empty
7774
# Set some defaults for GNU ld with shared library support. These
7775
# are reset later if shared libraries are not supported. Putting them
7776
# here allows them to be overridden if necessary.
7777
runpath_var=LD_RUN_PATH
7778
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7779
export_dynamic_flag_spec='${wl}--export-dynamic'
7780
# ancient GNU ld didn't support --whole-archive et. al.
7781
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7782
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7784
whole_archive_flag_spec=
7786
supports_anon_versioning=no
7787
case `$LD -v 2>&1` in
7788
*GNU\ gold*) supports_anon_versioning=yes ;;
7789
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7790
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7791
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7792
*\ 2.11.*) ;; # other 2.11 versions
7793
*) supports_anon_versioning=yes ;;
7796
# See if GNU ld supports shared libraries.
7799
# On AIX/PPC, the GNU linker is very broken
7800
if test "$host_cpu" != ia64; then
7804
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7805
*** to be unable to reliably create shared libraries on AIX.
7806
*** Therefore, libtool is disabling shared libraries support. If you
7807
*** really care for shared libraries, you may want to modify your PATH
7808
*** so that a non-GNU linker is found, and then restart.
7817
# see comment about AmigaOS4 .so support
7818
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7819
archive_expsym_cmds=''
7822
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)'
7823
hardcode_libdir_flag_spec='-L$libdir'
7824
hardcode_minus_L=yes
7830
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7831
allow_undefined_flag=unsupported
7832
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7833
# support --undefined. This deserves some investigation. FIXME
7834
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7840
cygwin* | mingw* | pw32* | cegcc*)
7841
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7842
# as there is no search path for DLLs.
7843
hardcode_libdir_flag_spec='-L$libdir'
7844
allow_undefined_flag=unsupported
7845
always_export_symbols=no
7846
enable_shared_with_static_runtimes=yes
7847
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7849
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7850
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7851
# If the export-symbols file already is a .def file (1st line
7852
# is EXPORTS), use it as is; otherwise, prepend...
7853
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7854
cp $export_symbols $output_objdir/$soname.def;
7856
echo EXPORTS > $output_objdir/$soname.def;
7857
cat $export_symbols >> $output_objdir/$soname.def;
7859
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7867
hardcode_shlibpath_var=no
7868
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7869
export_dynamic_flag_spec='${wl}-E'
7870
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7871
# Instead, shared libraries are loaded at an image base (0x10000000 by
7872
# default) and relocated if they conflict, which is a slow very memory
7873
# consuming and fragmenting process. To avoid this, we pick a random,
7874
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7875
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
7876
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7877
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'
7880
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7882
if test "$host_os" = linux-dietlibc; then
7883
case $cc_basename in
7884
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7887
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7888
&& test "$tmp_diet" = no
7891
tmp_sharedflag='-shared'
7892
case $cc_basename,$host_cpu in
7893
pgcc*) # Portland Group C compiler
7894
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7895
tmp_addflag=' $pic_flag'
7897
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7898
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7899
tmp_addflag=' $pic_flag -Mnomain' ;;
7900
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7901
tmp_addflag=' -i_dynamic' ;;
7902
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7903
tmp_addflag=' -i_dynamic -nofor_main' ;;
7904
ifc* | ifort*) # Intel Fortran compiler
7905
tmp_addflag=' -nofor_main' ;;
7906
lf95*) # Lahey Fortran 8.1
7907
whole_archive_flag_spec=
7908
tmp_sharedflag='--shared' ;;
7909
xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7910
tmp_sharedflag='-qmkshrobj'
7913
case `$CC -V 2>&1 | sed 5q` in
7914
*Sun\ C*) # Sun C 5.9
7915
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7916
compiler_needs_object=yes
7917
tmp_sharedflag='-G' ;;
7918
*Sun\ F*) # Sun Fortran 8.3
7919
tmp_sharedflag='-G' ;;
7921
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7923
if test "x$supports_anon_versioning" = xyes; then
7924
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7925
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7926
echo "local: *; };" >> $output_objdir/$libname.ver~
7927
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7930
case $cc_basename in
7932
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7933
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7934
hardcode_libdir_flag_spec=
7935
hardcode_libdir_flag_spec_ld='-rpath $libdir'
7936
archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7937
if test "x$supports_anon_versioning" = xyes; then
7938
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7939
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7940
echo "local: *; };" >> $output_objdir/$libname.ver~
7941
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7950
netbsd* | netbsdelf*-gnu)
7951
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7952
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7955
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7956
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7961
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7965
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7966
*** create shared libraries on Solaris systems. Therefore, libtool
7967
*** is disabling shared libraries support. We urge you to upgrade GNU
7968
*** binutils to release 2.9.1 or newer. Another option is to modify
7969
*** your PATH or compiler configuration so that the native linker is
7970
*** used, and then restart.
7973
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7974
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7975
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7981
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7982
case `$LD -v 2>&1` in
7983
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7987
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7988
*** reliably create shared libraries on SCO systems. Therefore, libtool
7989
*** is disabling shared libraries support. We urge you to upgrade GNU
7990
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7991
*** your PATH or compiler configuration so that the native linker is
7992
*** used, and then restart.
7997
# For security reasons, it is highly recommended that you always
7998
# use absolute paths for naming shared libraries, and exclude the
7999
# DT_RUNPATH tag from executables and libraries. But doing so
8000
# requires that you compile everything twice, which is a pain.
8001
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8002
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8003
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8004
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8013
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8016
hardcode_shlibpath_var=no
8020
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8021
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8022
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8029
if test "$ld_shlibs" = no; then
8031
hardcode_libdir_flag_spec=
8032
export_dynamic_flag_spec=
8033
whole_archive_flag_spec=
8036
# PORTME fill in a description of your system's linker (not GNU ld)
8039
allow_undefined_flag=unsupported
8040
always_export_symbols=yes
8041
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'
8042
# Note: this linker hardcodes the directories in LIBPATH if there
8043
# are no directories specified by -L.
8044
hardcode_minus_L=yes
8045
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8046
# Neither direct hardcoding nor static linking is supported with a
8048
hardcode_direct=unsupported
8053
if test "$host_cpu" = ia64; then
8054
# On IA64, the linker does run time linking by default, so we don't
8055
# have to do anything special.
8056
aix_use_runtimelinking=no
8057
exp_sym_flag='-Bexport'
8060
# If we're using GNU nm, then we don't want the "-C" option.
8061
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8062
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8063
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8065
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'
8067
aix_use_runtimelinking=no
8069
# Test if we are trying to use run time linking or normal
8070
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8071
# need to do runtime linking.
8072
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8073
for ld_flag in $LDFLAGS; do
8074
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8075
aix_use_runtimelinking=yes
8082
exp_sym_flag='-bexport'
8083
no_entry_flag='-bnoentry'
8086
# When large executables or shared objects are built, AIX ld can
8087
# have problems creating the table of contents. If linking a library
8088
# or program results in "error TOC overflow" add -mminimal-toc to
8089
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8090
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8094
hardcode_direct_absolute=yes
8095
hardcode_libdir_separator=':'
8096
link_all_deplibs=yes
8097
file_list_spec='${wl}-f,'
8099
if test "$GCC" = yes; then
8100
case $host_os in aix4.[012]|aix4.[012].*)
8101
# We only want to do this on AIX 4.2 and lower, the check
8102
# below for broken collect2 doesn't work under 4.3+
8103
collect2name=`${CC} -print-prog-name=collect2`
8104
if test -f "$collect2name" &&
8105
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8107
# We have reworked collect2
8110
# We have old collect2
8111
hardcode_direct=unsupported
8112
# It fails to find uninstalled libraries when the uninstalled
8113
# path is not listed in the libpath. Setting hardcode_minus_L
8114
# to unsupported forces relinking
8115
hardcode_minus_L=yes
8116
hardcode_libdir_flag_spec='-L$libdir'
8117
hardcode_libdir_separator=
8121
shared_flag='-shared'
8122
if test "$aix_use_runtimelinking" = yes; then
8123
shared_flag="$shared_flag "'${wl}-G'
8128
if test "$host_cpu" = ia64; then
8129
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8130
# chokes on -Wl,-G. The following line is correct:
8133
if test "$aix_use_runtimelinking" = yes; then
8134
shared_flag='${wl}-G'
8136
shared_flag='${wl}-bM:SRE'
8141
export_dynamic_flag_spec='${wl}-bexpall'
8142
# It seems that -bexpall does not export symbols beginning with
8143
# underscore (_), so it is better to generate a list of symbols to export.
8144
always_export_symbols=yes
8145
if test "$aix_use_runtimelinking" = yes; then
8146
# Warning - without using the other runtime loading flags (-brtl),
8147
# -berok will link without error, but may produce a broken library.
8148
allow_undefined_flag='-berok'
8149
# Determine the default libpath from the value encoded in an
8151
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8152
/* end confdefs.h. */
8162
if ac_fn_c_try_link "$LINENO"; then :
8164
lt_aix_libpath_sed='
8165
/Import File Strings/,/^$/ {
8171
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8172
# Check for a 64-bit object if we didn't find anything.
8173
if test -z "$aix_libpath"; then
8174
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8177
rm -f core conftest.err conftest.$ac_objext \
8178
conftest$ac_exeext conftest.$ac_ext
8179
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8181
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8182
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8184
if test "$host_cpu" = ia64; then
8185
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8186
allow_undefined_flag="-z nodefs"
8187
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"
8189
# Determine the default libpath from the value encoded in an
8191
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8192
/* end confdefs.h. */
8202
if ac_fn_c_try_link "$LINENO"; then :
8204
lt_aix_libpath_sed='
8205
/Import File Strings/,/^$/ {
8211
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8212
# Check for a 64-bit object if we didn't find anything.
8213
if test -z "$aix_libpath"; then
8214
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8217
rm -f core conftest.err conftest.$ac_objext \
8218
conftest$ac_exeext conftest.$ac_ext
8219
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8221
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8222
# Warning - without using the other run time loading flags,
8223
# -berok will link without error, but may produce a broken library.
8224
no_undefined_flag=' ${wl}-bernotok'
8225
allow_undefined_flag=' ${wl}-berok'
8226
# Exported symbols can be pulled into shared objects from archives
8227
whole_archive_flag_spec='$convenience'
8228
archive_cmds_need_lc=yes
8229
# This is similar to how AIX traditionally builds its shared libraries.
8230
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'
8238
# see comment about AmigaOS4 .so support
8239
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8240
archive_expsym_cmds=''
8243
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)'
8244
hardcode_libdir_flag_spec='-L$libdir'
8245
hardcode_minus_L=yes
8251
export_dynamic_flag_spec=-rdynamic
8254
cygwin* | mingw* | pw32* | cegcc*)
8255
# When not using gcc, we currently assume that we are using
8256
# Microsoft Visual C++.
8257
# hardcode_libdir_flag_spec is actually meaningless, as there is
8258
# no search path for DLLs.
8259
hardcode_libdir_flag_spec=' '
8260
allow_undefined_flag=unsupported
8261
# Tell ltmain to make .lib files, not .a files.
8263
# Tell ltmain to make .dll files, not .so files.
8265
# FIXME: Setting linknames here is a bad hack.
8266
archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8267
# The linker will automatically build a .lib file if we build a DLL.
8268
old_archive_from_new_cmds='true'
8269
# FIXME: Should let the user specify the lib program.
8270
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8271
fix_srcfile_path='`cygpath -w "$srcfile"`'
8272
enable_shared_with_static_runtimes=yes
8275
darwin* | rhapsody*)
8278
archive_cmds_need_lc=no
8280
hardcode_automatic=yes
8281
hardcode_shlibpath_var=unsupported
8282
whole_archive_flag_spec=''
8283
link_all_deplibs=yes
8284
allow_undefined_flag="$_lt_dar_allow_undefined"
8285
case $cc_basename in
8286
ifort*) _lt_dar_can_shared=yes ;;
8287
*) _lt_dar_can_shared=$GCC ;;
8289
if test "$_lt_dar_can_shared" = "yes"; then
8290
output_verbose_link_cmd=echo
8291
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8292
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8293
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}"
8294
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}"
8303
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8304
hardcode_libdir_flag_spec='-L$libdir'
8305
hardcode_shlibpath_var=no
8312
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8313
# support. Future versions do this automatically, but an explicit c++rt0.o
8314
# does not break anything, and helps significantly (at the cost of a little
8317
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8318
hardcode_libdir_flag_spec='-R$libdir'
8320
hardcode_shlibpath_var=no
8323
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8325
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8327
hardcode_minus_L=yes
8328
hardcode_shlibpath_var=no
8331
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8332
freebsd* | dragonfly*)
8333
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8334
hardcode_libdir_flag_spec='-R$libdir'
8336
hardcode_shlibpath_var=no
8340
if test "$GCC" = yes; then
8341
archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8343
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'
8345
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8346
hardcode_libdir_separator=:
8349
# hardcode_minus_L: Not really in the search PATH,
8350
# but as the default location of the library.
8351
hardcode_minus_L=yes
8352
export_dynamic_flag_spec='${wl}-E'
8356
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8357
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8359
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8361
if test "$with_gnu_ld" = no; then
8362
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8363
hardcode_libdir_flag_spec_ld='+b $libdir'
8364
hardcode_libdir_separator=:
8366
hardcode_direct_absolute=yes
8367
export_dynamic_flag_spec='${wl}-E'
8368
# hardcode_minus_L: Not really in the search PATH,
8369
# but as the default location of the library.
8370
hardcode_minus_L=yes
8375
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8378
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8381
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8384
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8390
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8393
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8396
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8400
if test "$with_gnu_ld" = no; then
8401
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8402
hardcode_libdir_separator=:
8407
hardcode_shlibpath_var=no
8411
hardcode_direct_absolute=yes
8412
export_dynamic_flag_spec='${wl}-E'
8414
# hardcode_minus_L: Not really in the search PATH,
8415
# but as the default location of the library.
8416
hardcode_minus_L=yes
8422
irix5* | irix6* | nonstopux*)
8423
if test "$GCC" = yes; then
8424
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8425
# Try to use the -exported_symbol ld option, if it does not
8426
# work, assume that -exports_file does not work either and
8427
# implicitly export all symbols.
8428
save_LDFLAGS="$LDFLAGS"
8429
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8430
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8431
/* end confdefs.h. */
8434
if ac_fn_c_try_link "$LINENO"; then :
8435
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8438
rm -f core conftest.err conftest.$ac_objext \
8439
conftest$ac_exeext conftest.$ac_ext
8440
LDFLAGS="$save_LDFLAGS"
8442
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8443
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8445
archive_cmds_need_lc='no'
8446
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8447
hardcode_libdir_separator=:
8449
link_all_deplibs=yes
8452
netbsd* | netbsdelf*-gnu)
8453
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8454
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8456
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8458
hardcode_libdir_flag_spec='-R$libdir'
8460
hardcode_shlibpath_var=no
8464
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8466
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8467
hardcode_libdir_separator=:
8468
hardcode_shlibpath_var=no
8475
if test -f /usr/libexec/ld.so; then
8477
hardcode_shlibpath_var=no
8478
hardcode_direct_absolute=yes
8479
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8480
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8481
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8482
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8483
export_dynamic_flag_spec='${wl}-E'
8486
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8487
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8488
hardcode_libdir_flag_spec='-R$libdir'
8491
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8492
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8502
hardcode_libdir_flag_spec='-L$libdir'
8503
hardcode_minus_L=yes
8504
allow_undefined_flag=unsupported
8505
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'
8506
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8510
if test "$GCC" = yes; then
8511
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8512
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8514
allow_undefined_flag=' -expect_unresolved \*'
8515
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8517
archive_cmds_need_lc='no'
8518
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8519
hardcode_libdir_separator=:
8522
osf4* | osf5*) # as osf3* with the addition of -msym flag
8523
if test "$GCC" = yes; then
8524
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8525
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8526
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8528
allow_undefined_flag=' -expect_unresolved \*'
8529
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8530
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~
8531
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8533
# Both c and cxx compiler support -rpath directly
8534
hardcode_libdir_flag_spec='-rpath $libdir'
8536
archive_cmds_need_lc='no'
8537
hardcode_libdir_separator=:
8541
no_undefined_flag=' -z defs'
8542
if test "$GCC" = yes; then
8544
archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8545
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8546
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8548
case `$CC -V 2>&1` in
8551
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8552
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8553
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8557
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8558
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8559
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8563
hardcode_libdir_flag_spec='-R$libdir'
8564
hardcode_shlibpath_var=no
8566
solaris2.[0-5] | solaris2.[0-5].*) ;;
8568
# The compiler driver will combine and reorder linker options,
8569
# but understands `-z linker_flag'. GCC discards it without `$wl',
8570
# but is careful enough not to reorder.
8571
# Supported since Solaris 2.6 (maybe 2.5.1?)
8572
if test "$GCC" = yes; then
8573
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8575
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8579
link_all_deplibs=yes
8583
if test "x$host_vendor" = xsequent; then
8584
# Use $CC to link under sequent, because it throws in some extra .o
8585
# files that make .init and .fini sections work.
8586
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8588
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8590
hardcode_libdir_flag_spec='-L$libdir'
8592
hardcode_minus_L=yes
8593
hardcode_shlibpath_var=no
8597
case $host_vendor in
8599
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8600
hardcode_direct=yes # is this really true???
8603
## LD is ld it makes a PLAMLIB
8604
## CC just makes a GrossModule.
8605
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8606
reload_cmds='$CC -r -o $output$reload_objs'
8610
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8611
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8614
runpath_var='LD_RUN_PATH'
8615
hardcode_shlibpath_var=no
8619
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8620
hardcode_shlibpath_var=no
8621
export_dynamic_flag_spec='-Bexport'
8625
if test -d /usr/nec; then
8626
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8627
hardcode_shlibpath_var=no
8628
runpath_var=LD_RUN_PATH
8629
hardcode_runpath_var=yes
8634
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8635
no_undefined_flag='${wl}-z,text'
8636
archive_cmds_need_lc=no
8637
hardcode_shlibpath_var=no
8638
runpath_var='LD_RUN_PATH'
8640
if test "$GCC" = yes; then
8641
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8642
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8644
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8645
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8649
sysv5* | sco3.2v5* | sco5v6*)
8650
# Note: We can NOT use -z defs as we might desire, because we do not
8651
# link with -lc, and that would cause any symbols used from libc to
8652
# always be unresolved, which means just about no library would
8653
# ever link correctly. If we're not using GNU ld we use -z text
8654
# though, which does catch some bad symbols but isn't as heavy-handed
8656
no_undefined_flag='${wl}-z,text'
8657
allow_undefined_flag='${wl}-z,nodefs'
8658
archive_cmds_need_lc=no
8659
hardcode_shlibpath_var=no
8660
hardcode_libdir_flag_spec='${wl}-R,$libdir'
8661
hardcode_libdir_separator=':'
8662
link_all_deplibs=yes
8663
export_dynamic_flag_spec='${wl}-Bexport'
8664
runpath_var='LD_RUN_PATH'
8666
if test "$GCC" = yes; then
8667
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8668
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8670
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8671
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8676
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8677
hardcode_libdir_flag_spec='-L$libdir'
8678
hardcode_shlibpath_var=no
8686
if test x$host_vendor = xsni; then
8688
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8689
export_dynamic_flag_spec='${wl}-Blargedynsym'
8695
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8696
$as_echo "$ld_shlibs" >&6; }
8697
test "$ld_shlibs" = no && can_build_shared=no
8699
with_gnu_ld=$with_gnu_ld
8716
# Do we need to explicitly link libc?
8718
case "x$archive_cmds_need_lc" in
8720
# Assume -lc should be added
8721
archive_cmds_need_lc=yes
8723
if test "$enable_shared" = yes && test "$GCC" = yes; then
8724
case $archive_cmds in
8726
# FIXME: we may have to deal with multi-command sequences.
8729
# Test whether the compiler implicitly links with -lc since on some
8730
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8731
# to ld, don't add -lc before -lgcc.
8732
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8733
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8735
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8737
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8738
(eval $ac_compile) 2>&5
8740
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8741
test $ac_status = 0; } 2>conftest.err; then
8744
libobjs=conftest.$ac_objext
8746
wl=$lt_prog_compiler_wl
8747
pic_flag=$lt_prog_compiler_pic
8753
lt_save_allow_undefined_flag=$allow_undefined_flag
8754
allow_undefined_flag=
8755
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8756
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8758
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8759
test $ac_status = 0; }
8761
archive_cmds_need_lc=no
8763
archive_cmds_need_lc=yes
8765
allow_undefined_flag=$lt_save_allow_undefined_flag
8767
cat conftest.err 1>&5
8770
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8771
$as_echo "$archive_cmds_need_lc" >&6; }
8934
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8935
$as_echo_n "checking dynamic linker characteristics... " >&6; }
8937
if test "$GCC" = yes; then
8939
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8940
*) lt_awk_arg="/^libraries:/" ;;
8942
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8943
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8944
# if the path contains ";" then we assume it to be the separator
8945
# otherwise default to the standard path separator (i.e. ":") - it is
8946
# assumed that no part of a normal pathname contains ";" but that should
8947
# okay in the real world where ";" in dirpaths is itself problematic.
8948
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8950
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8952
# Ok, now we have the path, separated by spaces, we can step through it
8953
# and add multilib dir if necessary.
8954
lt_tmp_lt_search_path_spec=
8955
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8956
for lt_sys_path in $lt_search_path_spec; do
8957
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8958
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8960
test -d "$lt_sys_path" && \
8961
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8964
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8965
BEGIN {RS=" "; FS="/|\n";} {
8968
for (lt_i = NF; lt_i > 0; lt_i--) {
8969
if ($lt_i != "" && $lt_i != ".") {
8970
if ($lt_i == "..") {
8973
if (lt_count == 0) {
8974
lt_foo="/" $lt_i lt_foo;
8981
if (lt_foo != "") { lt_freq[lt_foo]++; }
8982
if (lt_freq[lt_foo] == 1) { print lt_foo; }
8984
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8986
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8989
libname_spec='lib$name'
8997
shlibpath_overrides_runpath=unknown
8999
dynamic_linker="$host_os ld.so"
9000
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9001
need_lib_prefix=unknown
9002
hardcode_into_libs=no
9004
# when you set need_version to no, make sure it does not cause -set_version
9005
# flags to be left without arguments
9006
need_version=unknown
9011
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9012
shlibpath_var=LIBPATH
9014
# AIX 3 has no versioning support, so we append a major version to the name.
9015
soname_spec='${libname}${release}${shared_ext}$major'
9022
hardcode_into_libs=yes
9023
if test "$host_cpu" = ia64; then
9024
# AIX 5 supports IA64
9025
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9026
shlibpath_var=LD_LIBRARY_PATH
9028
# With GCC up to 2.95.x, collect2 would create an import file
9029
# for dependence libraries. The import file would start with
9030
# the line `#! .'. This would cause the generated library to
9031
# depend on `.', always an invalid library. This was fixed in
9032
# development snapshots of GCC prior to 3.0.
9034
aix4 | aix4.[01] | aix4.[01].*)
9035
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9037
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9044
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9045
# soname into executable. Probably we can add versioning support to
9046
# collect2, so additional links can be useful in future.
9047
if test "$aix_use_runtimelinking" = yes; then
9048
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9049
# instead of lib<name>.a to let people know that these are not
9050
# typical AIX shared libraries.
9051
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9053
# We preserve .a as extension for shared libraries through AIX4.2
9054
# and later when we are not doing run time linking.
9055
library_names_spec='${libname}${release}.a $libname.a'
9056
soname_spec='${libname}${release}${shared_ext}$major'
9058
shlibpath_var=LIBPATH
9065
# Since July 2007 AmigaOS4 officially supports .so libraries.
9066
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9067
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9070
library_names_spec='$libname.ixlibrary $libname.a'
9071
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9072
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9078
library_names_spec='${libname}${shared_ext}'
9079
dynamic_linker="$host_os ld.so"
9080
shlibpath_var=LIBRARY_PATH
9086
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9087
soname_spec='${libname}${release}${shared_ext}$major'
9088
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9089
shlibpath_var=LD_LIBRARY_PATH
9090
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9091
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9092
# the default ld.so.conf also contains /usr/contrib/lib and
9093
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9094
# libtool to hard-code these into programs
9097
cygwin* | mingw* | pw32* | cegcc*)
9098
version_type=windows
9103
case $GCC,$host_os in
9104
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9105
library_names_spec='$libname.dll.a'
9106
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9107
postinstall_cmds='base_file=`basename \${file}`~
9108
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9109
dldir=$destdir/`dirname \$dlpath`~
9110
test -d \$dldir || mkdir -p \$dldir~
9111
$install_prog $dir/$dlname \$dldir/$dlname~
9112
chmod a+x \$dldir/$dlname~
9113
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9114
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9116
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9117
dlpath=$dir/\$dldll~
9119
shlibpath_overrides_runpath=yes
9123
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9124
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9125
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9128
# MinGW DLLs use traditional 'lib' prefix
9129
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9130
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9131
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9132
# It is most probably a Windows format PATH printed by
9133
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9134
# path with ; separators, and with drive letters. We can handle the
9135
# drive letters (cygwin fileutils understands them), so leave them,
9136
# especially as we might pass files found there to a mingw objdump,
9137
# which wouldn't understand a cygwinified path. Ahh.
9138
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9140
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9144
# pw32 DLLs use 'pw' prefix rather than 'lib'
9145
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9151
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9154
dynamic_linker='Win32 ld.exe'
9155
# FIXME: first we should search . and the directory the executable is in
9159
darwin* | rhapsody*)
9160
dynamic_linker="$host_os dyld"
9164
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9165
soname_spec='${libname}${release}${major}$shared_ext'
9166
shlibpath_overrides_runpath=yes
9167
shlibpath_var=DYLD_LIBRARY_PATH
9168
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9170
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9171
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9178
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9179
soname_spec='${libname}${release}${shared_ext}$major'
9180
shlibpath_var=LD_LIBRARY_PATH
9187
freebsd* | dragonfly*)
9188
# DragonFly does not have aout. When/if they implement a new
9189
# versioning mechanism, adjust this.
9190
if test -x /usr/bin/objformat; then
9191
objformat=`/usr/bin/objformat`
9194
freebsd[123]*) objformat=aout ;;
9198
version_type=freebsd-$objformat
9199
case $version_type in
9201
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9206
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9210
shlibpath_var=LD_LIBRARY_PATH
9213
shlibpath_overrides_runpath=yes
9215
freebsd3.[01]* | freebsdelf3.[01]*)
9216
shlibpath_overrides_runpath=yes
9217
hardcode_into_libs=yes
9219
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9220
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9221
shlibpath_overrides_runpath=no
9222
hardcode_into_libs=yes
9224
*) # from 4.6 on, and DragonFly
9225
shlibpath_overrides_runpath=yes
9226
hardcode_into_libs=yes
9235
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9236
soname_spec='${libname}${release}${shared_ext}$major'
9237
shlibpath_var=LD_LIBRARY_PATH
9238
hardcode_into_libs=yes
9241
hpux9* | hpux10* | hpux11*)
9242
# Give a soname corresponding to the major version so that dld.sl refuses to
9243
# link against other versions.
9250
hardcode_into_libs=yes
9251
dynamic_linker="$host_os dld.so"
9252
shlibpath_var=LD_LIBRARY_PATH
9253
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9254
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9255
soname_spec='${libname}${release}${shared_ext}$major'
9256
if test "X$HPUX_IA64_MODE" = X32; then
9257
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9259
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9261
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9265
hardcode_into_libs=yes
9266
dynamic_linker="$host_os dld.sl"
9267
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9268
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9269
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9270
soname_spec='${libname}${release}${shared_ext}$major'
9271
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9272
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9276
dynamic_linker="$host_os dld.sl"
9277
shlibpath_var=SHLIB_PATH
9278
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9279
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9280
soname_spec='${libname}${release}${shared_ext}$major'
9283
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9284
postinstall_cmds='chmod 555 $lib'
9291
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9292
soname_spec='${libname}${release}${shared_ext}$major'
9293
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9294
shlibpath_var=LD_LIBRARY_PATH
9295
shlibpath_overrides_runpath=no
9296
hardcode_into_libs=yes
9299
irix5* | irix6* | nonstopux*)
9301
nonstopux*) version_type=nonstopux ;;
9303
if test "$lt_cv_prog_gnu_ld" = yes; then
9311
soname_spec='${libname}${release}${shared_ext}$major'
9312
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9314
irix5* | nonstopux*)
9318
case $LD in # libtool.m4 will add one of these switches to LD
9319
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9320
libsuff= shlibsuff= libmagic=32-bit;;
9321
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9322
libsuff=32 shlibsuff=N32 libmagic=N32;;
9323
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9324
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9325
*) libsuff= shlibsuff= libmagic=never-match;;
9329
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9330
shlibpath_overrides_runpath=no
9331
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9332
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9333
hardcode_into_libs=yes
9336
# No shared lib support for Linux oldld, aout, or coff.
9337
linux*oldld* | linux*aout* | linux*coff*)
9341
# This must be Linux ELF.
9342
linux* | k*bsd*-gnu | kopensolaris*-gnu)
9346
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9347
soname_spec='${libname}${release}${shared_ext}$major'
9348
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9349
shlibpath_var=LD_LIBRARY_PATH
9350
shlibpath_overrides_runpath=no
9351
# Some binutils ld are patched to set DT_RUNPATH
9352
save_LDFLAGS=$LDFLAGS
9354
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9355
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9356
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357
/* end confdefs.h. */
9367
if ac_fn_c_try_link "$LINENO"; then :
9368
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9369
shlibpath_overrides_runpath=yes
9372
rm -f core conftest.err conftest.$ac_objext \
9373
conftest$ac_exeext conftest.$ac_ext
9374
LDFLAGS=$save_LDFLAGS
9377
# This implies no fast_install, which is unacceptable.
9378
# Some rework will be needed to allow for fast_install
9379
# before this can be enabled.
9380
hardcode_into_libs=yes
9382
# Append ld.so.conf contents to the search path
9383
if test -f /etc/ld.so.conf; then
9384
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;/^$/d' | tr '\n' ' '`
9385
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9388
# We used to test for /lib/ld.so.1 and disable shared libraries on
9389
# powerpc, because MkLinux only supported shared libraries with the
9390
# GNU dynamic linker. Since this was broken with cross compilers,
9391
# most powerpc-linux boxes support dynamic linking these days and
9392
# people can always --disable-shared, the test was removed, and we
9393
# assume the GNU/Linux dynamic linker is in use.
9394
dynamic_linker='GNU/Linux ld.so'
9401
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9402
soname_spec='${libname}${release}${shared_ext}$major'
9403
shlibpath_var=LD_LIBRARY_PATH
9404
shlibpath_overrides_runpath=no
9405
hardcode_into_libs=yes
9406
dynamic_linker='NetBSD ld.elf_so'
9413
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9414
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9415
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9416
dynamic_linker='NetBSD (a.out) ld.so'
9418
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9419
soname_spec='${libname}${release}${shared_ext}$major'
9420
dynamic_linker='NetBSD ld.elf_so'
9422
shlibpath_var=LD_LIBRARY_PATH
9423
shlibpath_overrides_runpath=yes
9424
hardcode_into_libs=yes
9429
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9430
shlibpath_var=LD_LIBRARY_PATH
9431
shlibpath_overrides_runpath=yes
9438
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9439
soname_spec='${libname}${release}${shared_ext}$major'
9440
shlibpath_var=LD_LIBRARY_PATH
9441
shlibpath_overrides_runpath=no
9442
hardcode_into_libs=yes
9443
dynamic_linker='ldqnx.so'
9448
sys_lib_dlsearch_path_spec="/usr/lib"
9450
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9452
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9453
*) need_version=no ;;
9455
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9456
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9457
shlibpath_var=LD_LIBRARY_PATH
9458
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9460
openbsd2.[89] | openbsd2.[89].*)
9461
shlibpath_overrides_runpath=no
9464
shlibpath_overrides_runpath=yes
9468
shlibpath_overrides_runpath=yes
9473
libname_spec='$name'
9476
library_names_spec='$libname${shared_ext} $libname.a'
9477
dynamic_linker='OS/2 ld.exe'
9478
shlibpath_var=LIBPATH
9481
osf3* | osf4* | osf5*)
9485
soname_spec='${libname}${release}${shared_ext}$major'
9486
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9487
shlibpath_var=LD_LIBRARY_PATH
9488
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9489
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9500
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9501
soname_spec='${libname}${release}${shared_ext}$major'
9502
shlibpath_var=LD_LIBRARY_PATH
9503
shlibpath_overrides_runpath=yes
9504
hardcode_into_libs=yes
9505
# ldd complains unless libraries are executable
9506
postinstall_cmds='chmod +x $lib'
9511
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9512
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9513
shlibpath_var=LD_LIBRARY_PATH
9514
shlibpath_overrides_runpath=yes
9515
if test "$with_gnu_ld" = yes; then
9523
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9524
soname_spec='${libname}${release}${shared_ext}$major'
9525
shlibpath_var=LD_LIBRARY_PATH
9526
case $host_vendor in
9528
shlibpath_overrides_runpath=no
9530
runpath_var=LD_RUN_PATH
9538
shlibpath_overrides_runpath=no
9539
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9545
if test -d /usr/nec ;then
9547
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9548
soname_spec='$libname${shared_ext}.$major'
9549
shlibpath_var=LD_LIBRARY_PATH
9553
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9554
version_type=freebsd-elf
9557
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9558
soname_spec='${libname}${release}${shared_ext}$major'
9559
shlibpath_var=LD_LIBRARY_PATH
9560
shlibpath_overrides_runpath=yes
9561
hardcode_into_libs=yes
9562
if test "$with_gnu_ld" = yes; then
9563
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9565
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9568
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9572
sys_lib_dlsearch_path_spec='/usr/lib'
9576
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9580
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9581
shlibpath_var=LD_LIBRARY_PATH
9582
shlibpath_overrides_runpath=no
9583
hardcode_into_libs=yes
9588
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9589
soname_spec='${libname}${release}${shared_ext}$major'
9590
shlibpath_var=LD_LIBRARY_PATH
9597
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9598
$as_echo "$dynamic_linker" >&6; }
9599
test "$dynamic_linker" = no && can_build_shared=no
9601
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9602
if test "$GCC" = yes; then
9603
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9606
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9607
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9609
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9610
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9699
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9700
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9702
if test -n "$hardcode_libdir_flag_spec" ||
9703
test -n "$runpath_var" ||
9704
test "X$hardcode_automatic" = "Xyes" ; then
9706
# We can hardcode non-existent directories.
9707
if test "$hardcode_direct" != no &&
9708
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9709
# have to relink, otherwise we might link with an installed library
9710
# when we should be linking with a yet-to-be-installed one
9711
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9712
test "$hardcode_minus_L" != no; then
9713
# Linking always hardcodes the temporary library directory.
9714
hardcode_action=relink
9716
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9717
hardcode_action=immediate
9720
# We cannot hardcode anything, or else we can only hardcode existing
9722
hardcode_action=unsupported
9724
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9725
$as_echo "$hardcode_action" >&6; }
9727
if test "$hardcode_action" = relink ||
9728
test "$inherit_rpath" = yes; then
9729
# Fast installation is not supported
9730
enable_fast_install=no
9731
elif test "$shlibpath_overrides_runpath" = yes ||
9732
test "$enable_shared" = no; then
9733
# Fast installation is not necessary
9734
enable_fast_install=needless
9742
if test "x$enable_dlopen" != xyes; then
9743
enable_dlopen=unknown
9744
enable_dlopen_self=unknown
9745
enable_dlopen_self_static=unknown
9752
lt_cv_dlopen="load_add_on"
9754
lt_cv_dlopen_self=yes
9757
mingw* | pw32* | cegcc*)
9758
lt_cv_dlopen="LoadLibrary"
9763
lt_cv_dlopen="dlopen"
9768
# if libdl is installed we need to link against it
9769
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9770
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9771
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9772
$as_echo_n "(cached) " >&6
9774
ac_check_lib_save_LIBS=$LIBS
9776
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777
/* end confdefs.h. */
9779
/* Override any GCC internal prototype to avoid an error.
9780
Use char because int might match the return type of a GCC
9781
builtin and then its argument prototype would still apply. */
9794
if ac_fn_c_try_link "$LINENO"; then :
9795
ac_cv_lib_dl_dlopen=yes
9797
ac_cv_lib_dl_dlopen=no
9799
rm -f core conftest.err conftest.$ac_objext \
9800
conftest$ac_exeext conftest.$ac_ext
9801
LIBS=$ac_check_lib_save_LIBS
9803
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9804
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9805
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9806
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9811
lt_cv_dlopen_self=yes
9818
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9819
if test "x$ac_cv_func_shl_load" = x""yes; then :
9820
lt_cv_dlopen="shl_load"
9822
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9823
$as_echo_n "checking for shl_load in -ldld... " >&6; }
9824
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9825
$as_echo_n "(cached) " >&6
9827
ac_check_lib_save_LIBS=$LIBS
9829
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9830
/* end confdefs.h. */
9832
/* Override any GCC internal prototype to avoid an error.
9833
Use char because int might match the return type of a GCC
9834
builtin and then its argument prototype would still apply. */
9847
if ac_fn_c_try_link "$LINENO"; then :
9848
ac_cv_lib_dld_shl_load=yes
9850
ac_cv_lib_dld_shl_load=no
9852
rm -f core conftest.err conftest.$ac_objext \
9853
conftest$ac_exeext conftest.$ac_ext
9854
LIBS=$ac_check_lib_save_LIBS
9856
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9857
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9858
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9859
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9861
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9862
if test "x$ac_cv_func_dlopen" = x""yes; then :
9863
lt_cv_dlopen="dlopen"
9865
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9866
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9867
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9868
$as_echo_n "(cached) " >&6
9870
ac_check_lib_save_LIBS=$LIBS
9872
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9873
/* end confdefs.h. */
9875
/* Override any GCC internal prototype to avoid an error.
9876
Use char because int might match the return type of a GCC
9877
builtin and then its argument prototype would still apply. */
9890
if ac_fn_c_try_link "$LINENO"; then :
9891
ac_cv_lib_dl_dlopen=yes
9893
ac_cv_lib_dl_dlopen=no
9895
rm -f core conftest.err conftest.$ac_objext \
9896
conftest$ac_exeext conftest.$ac_ext
9897
LIBS=$ac_check_lib_save_LIBS
9899
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9900
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9901
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9902
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9904
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9905
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9906
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9907
$as_echo_n "(cached) " >&6
9909
ac_check_lib_save_LIBS=$LIBS
9911
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912
/* end confdefs.h. */
9914
/* Override any GCC internal prototype to avoid an error.
9915
Use char because int might match the return type of a GCC
9916
builtin and then its argument prototype would still apply. */
9929
if ac_fn_c_try_link "$LINENO"; then :
9930
ac_cv_lib_svld_dlopen=yes
9932
ac_cv_lib_svld_dlopen=no
9934
rm -f core conftest.err conftest.$ac_objext \
9935
conftest$ac_exeext conftest.$ac_ext
9936
LIBS=$ac_check_lib_save_LIBS
9938
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9939
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9940
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9941
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9943
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9944
$as_echo_n "checking for dld_link in -ldld... " >&6; }
9945
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9946
$as_echo_n "(cached) " >&6
9948
ac_check_lib_save_LIBS=$LIBS
9950
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9951
/* end confdefs.h. */
9953
/* Override any GCC internal prototype to avoid an error.
9954
Use char because int might match the return type of a GCC
9955
builtin and then its argument prototype would still apply. */
9968
if ac_fn_c_try_link "$LINENO"; then :
9969
ac_cv_lib_dld_dld_link=yes
9971
ac_cv_lib_dld_dld_link=no
9973
rm -f core conftest.err conftest.$ac_objext \
9974
conftest$ac_exeext conftest.$ac_ext
9975
LIBS=$ac_check_lib_save_LIBS
9977
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9978
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9979
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9980
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10001
if test "x$lt_cv_dlopen" != xno; then
10007
case $lt_cv_dlopen in
10009
save_CPPFLAGS="$CPPFLAGS"
10010
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10012
save_LDFLAGS="$LDFLAGS"
10013
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10016
LIBS="$lt_cv_dlopen_libs $LIBS"
10018
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10019
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10020
if test "${lt_cv_dlopen_self+set}" = set; then :
10021
$as_echo_n "(cached) " >&6
10023
if test "$cross_compiling" = yes; then :
10024
lt_cv_dlopen_self=cross
10026
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10027
lt_status=$lt_dlunknown
10028
cat > conftest.$ac_ext <<_LT_EOF
10029
#line 10029 "configure"
10030
#include "confdefs.h"
10039
# define LT_DLGLOBAL RTLD_GLOBAL
10042
# define LT_DLGLOBAL DL_GLOBAL
10044
# define LT_DLGLOBAL 0
10048
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10049
find out it does not work in some platform. */
10050
#ifndef LT_DLLAZY_OR_NOW
10052
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10055
# define LT_DLLAZY_OR_NOW DL_LAZY
10058
# define LT_DLLAZY_OR_NOW RTLD_NOW
10061
# define LT_DLLAZY_OR_NOW DL_NOW
10063
# define LT_DLLAZY_OR_NOW 0
10070
void fnord() { int i=42;}
10073
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10074
int status = $lt_dlunknown;
10078
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10079
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10080
/* dlclose (self); */
10088
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10089
(eval $ac_link) 2>&5
10091
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10092
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10093
(./conftest; exit; ) >&5 2>/dev/null
10095
case x$lt_status in
10096
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10097
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10098
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10101
# compilation failed
10102
lt_cv_dlopen_self=no
10109
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10110
$as_echo "$lt_cv_dlopen_self" >&6; }
10112
if test "x$lt_cv_dlopen_self" = xyes; then
10113
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10114
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10115
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10116
if test "${lt_cv_dlopen_self_static+set}" = set; then :
10117
$as_echo_n "(cached) " >&6
10119
if test "$cross_compiling" = yes; then :
10120
lt_cv_dlopen_self_static=cross
10122
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10123
lt_status=$lt_dlunknown
10124
cat > conftest.$ac_ext <<_LT_EOF
10125
#line 10125 "configure"
10126
#include "confdefs.h"
10135
# define LT_DLGLOBAL RTLD_GLOBAL
10138
# define LT_DLGLOBAL DL_GLOBAL
10140
# define LT_DLGLOBAL 0
10144
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10145
find out it does not work in some platform. */
10146
#ifndef LT_DLLAZY_OR_NOW
10148
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10151
# define LT_DLLAZY_OR_NOW DL_LAZY
10154
# define LT_DLLAZY_OR_NOW RTLD_NOW
10157
# define LT_DLLAZY_OR_NOW DL_NOW
10159
# define LT_DLLAZY_OR_NOW 0
10166
void fnord() { int i=42;}
10169
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10170
int status = $lt_dlunknown;
10174
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10175
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10176
/* dlclose (self); */
10184
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10185
(eval $ac_link) 2>&5
10187
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10188
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10189
(./conftest; exit; ) >&5 2>/dev/null
10191
case x$lt_status in
10192
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10193
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10194
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10197
# compilation failed
10198
lt_cv_dlopen_self_static=no
10205
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10206
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10209
CPPFLAGS="$save_CPPFLAGS"
10210
LDFLAGS="$save_LDFLAGS"
10215
case $lt_cv_dlopen_self in
10216
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10217
*) enable_dlopen_self=unknown ;;
10220
case $lt_cv_dlopen_self_static in
10221
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10222
*) enable_dlopen_self_static=unknown ;;
10244
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10245
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10246
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10247
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10248
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10249
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10250
$as_echo "yes" >&6; }
10252
# FIXME - insert some real tests, host_os isn't really good enough
10255
if test -n "$STRIP" ; then
10256
striplib="$STRIP -x"
10257
old_striplib="$STRIP -S"
10258
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10259
$as_echo "yes" >&6; }
10261
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10262
$as_echo "no" >&6; }
10266
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10267
$as_echo "no" >&6; }
10283
# Report which library types will actually be built
10284
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10285
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10286
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10287
$as_echo "$can_build_shared" >&6; }
10289
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10290
$as_echo_n "checking whether to build shared libraries... " >&6; }
10291
test "$can_build_shared" = "no" && enable_shared=no
10293
# On AIX, shared libraries and static libraries use the same namespace, and
10294
# are all built from PIC.
10297
test "$enable_shared" = yes && enable_static=no
10298
if test -n "$RANLIB"; then
10299
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10300
postinstall_cmds='$RANLIB $lib'
10305
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10306
test "$enable_shared" = yes && enable_static=no
10310
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10311
$as_echo "$enable_shared" >&6; }
10313
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10314
$as_echo_n "checking whether to build static libraries... " >&6; }
10315
# Make sure either enable_shared or enable_static is yes.
10316
test "$enable_shared" = yes || enable_static=yes
10317
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10318
$as_echo "$enable_static" >&6; }
10325
ac_cpp='$CPP $CPPFLAGS'
10326
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10327
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10328
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10344
ac_config_commands="$ac_config_commands libtool"
10349
# Only expand once:
10353
# Checks for programs.
10355
ac_cpp='$CPP $CPPFLAGS'
10356
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10357
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10358
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10359
if test -n "$ac_tool_prefix"; then
10360
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10361
set dummy ${ac_tool_prefix}gcc; ac_word=$2
10362
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10363
$as_echo_n "checking for $ac_word... " >&6; }
10364
if test "${ac_cv_prog_CC+set}" = set; then :
10365
$as_echo_n "(cached) " >&6
10367
if test -n "$CC"; then
10368
ac_cv_prog_CC="$CC" # Let the user override the test.
10370
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10371
for as_dir in $PATH
10374
test -z "$as_dir" && as_dir=.
10375
for ac_exec_ext in '' $ac_executable_extensions; do
10376
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10377
ac_cv_prog_CC="${ac_tool_prefix}gcc"
10378
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10388
if test -n "$CC"; then
10389
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10390
$as_echo "$CC" >&6; }
10392
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10393
$as_echo "no" >&6; }
10398
if test -z "$ac_cv_prog_CC"; then
10400
# Extract the first word of "gcc", so it can be a program name with args.
10401
set dummy gcc; ac_word=$2
10402
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10403
$as_echo_n "checking for $ac_word... " >&6; }
10404
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10405
$as_echo_n "(cached) " >&6
10407
if test -n "$ac_ct_CC"; then
10408
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10410
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10411
for as_dir in $PATH
10414
test -z "$as_dir" && as_dir=.
10415
for ac_exec_ext in '' $ac_executable_extensions; do
10416
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10417
ac_cv_prog_ac_ct_CC="gcc"
10418
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10427
ac_ct_CC=$ac_cv_prog_ac_ct_CC
10428
if test -n "$ac_ct_CC"; then
10429
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10430
$as_echo "$ac_ct_CC" >&6; }
10432
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10433
$as_echo "no" >&6; }
10436
if test "x$ac_ct_CC" = x; then
10439
case $cross_compiling:$ac_tool_warned in
10441
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10442
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10443
ac_tool_warned=yes ;;
10448
CC="$ac_cv_prog_CC"
10451
if test -z "$CC"; then
10452
if test -n "$ac_tool_prefix"; then
10453
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10454
set dummy ${ac_tool_prefix}cc; ac_word=$2
10455
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10456
$as_echo_n "checking for $ac_word... " >&6; }
10457
if test "${ac_cv_prog_CC+set}" = set; then :
10458
$as_echo_n "(cached) " >&6
10460
if test -n "$CC"; then
10461
ac_cv_prog_CC="$CC" # Let the user override the test.
10463
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10464
for as_dir in $PATH
10467
test -z "$as_dir" && as_dir=.
10468
for ac_exec_ext in '' $ac_executable_extensions; do
10469
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10470
ac_cv_prog_CC="${ac_tool_prefix}cc"
10471
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10481
if test -n "$CC"; then
10482
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10483
$as_echo "$CC" >&6; }
10485
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10486
$as_echo "no" >&6; }
10492
if test -z "$CC"; then
10493
# Extract the first word of "cc", so it can be a program name with args.
10494
set dummy cc; ac_word=$2
10495
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10496
$as_echo_n "checking for $ac_word... " >&6; }
10497
if test "${ac_cv_prog_CC+set}" = set; then :
10498
$as_echo_n "(cached) " >&6
10500
if test -n "$CC"; then
10501
ac_cv_prog_CC="$CC" # Let the user override the test.
10503
ac_prog_rejected=no
10504
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10505
for as_dir in $PATH
10508
test -z "$as_dir" && as_dir=.
10509
for ac_exec_ext in '' $ac_executable_extensions; do
10510
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10511
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10512
ac_prog_rejected=yes
10516
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10523
if test $ac_prog_rejected = yes; then
10524
# We found a bogon in the path, so make sure we never use it.
10525
set dummy $ac_cv_prog_CC
10527
if test $# != 0; then
10528
# We chose a different compiler from the bogus one.
10529
# However, it has the same basename, so the bogon will be chosen
10530
# first if we set CC to just the basename; use the full file name.
10532
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10538
if test -n "$CC"; then
10539
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10540
$as_echo "$CC" >&6; }
10542
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10543
$as_echo "no" >&6; }
10548
if test -z "$CC"; then
10549
if test -n "$ac_tool_prefix"; then
10550
for ac_prog in cl.exe
10552
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10553
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10554
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10555
$as_echo_n "checking for $ac_word... " >&6; }
10556
if test "${ac_cv_prog_CC+set}" = set; then :
10557
$as_echo_n "(cached) " >&6
10559
if test -n "$CC"; then
10560
ac_cv_prog_CC="$CC" # Let the user override the test.
10562
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10563
for as_dir in $PATH
10566
test -z "$as_dir" && as_dir=.
10567
for ac_exec_ext in '' $ac_executable_extensions; do
10568
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10569
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10570
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10580
if test -n "$CC"; then
10581
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10582
$as_echo "$CC" >&6; }
10584
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10585
$as_echo "no" >&6; }
10589
test -n "$CC" && break
10592
if test -z "$CC"; then
10594
for ac_prog in cl.exe
10596
# Extract the first word of "$ac_prog", so it can be a program name with args.
10597
set dummy $ac_prog; ac_word=$2
10598
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10599
$as_echo_n "checking for $ac_word... " >&6; }
10600
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10601
$as_echo_n "(cached) " >&6
10603
if test -n "$ac_ct_CC"; then
10604
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10606
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10607
for as_dir in $PATH
10610
test -z "$as_dir" && as_dir=.
10611
for ac_exec_ext in '' $ac_executable_extensions; do
10612
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10613
ac_cv_prog_ac_ct_CC="$ac_prog"
10614
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10623
ac_ct_CC=$ac_cv_prog_ac_ct_CC
10624
if test -n "$ac_ct_CC"; then
10625
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10626
$as_echo "$ac_ct_CC" >&6; }
10628
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10629
$as_echo "no" >&6; }
10633
test -n "$ac_ct_CC" && break
10636
if test "x$ac_ct_CC" = x; then
10639
case $cross_compiling:$ac_tool_warned in
10641
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10642
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10643
ac_tool_warned=yes ;;
10652
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10653
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10654
as_fn_error "no acceptable C compiler found in \$PATH
10655
See \`config.log' for more details." "$LINENO" 5; }
10657
# Provide some information about the compiler.
10658
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10661
for ac_option in --version -v -V -qversion; do
10662
{ { ac_try="$ac_compiler $ac_option >&5"
10663
case "(($ac_try" in
10664
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10665
*) ac_try_echo=$ac_try;;
10667
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10668
$as_echo "$ac_try_echo"; } >&5
10669
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
10671
if test -s conftest.err; then
10673
... rest of stderr output deleted ...
10674
10q' conftest.err >conftest.er1
10675
cat conftest.er1 >&5
10677
rm -f conftest.er1 conftest.err
10678
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10679
test $ac_status = 0; }
10682
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
10683
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
10684
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
10685
$as_echo_n "(cached) " >&6
10687
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10688
/* end confdefs.h. */
10701
if ac_fn_c_try_compile "$LINENO"; then :
10702
ac_compiler_gnu=yes
10706
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10707
ac_cv_c_compiler_gnu=$ac_compiler_gnu
10710
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
10711
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
10712
if test $ac_compiler_gnu = yes; then
10717
ac_test_CFLAGS=${CFLAGS+set}
10718
ac_save_CFLAGS=$CFLAGS
10719
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
10720
$as_echo_n "checking whether $CC accepts -g... " >&6; }
10721
if test "${ac_cv_prog_cc_g+set}" = set; then :
10722
$as_echo_n "(cached) " >&6
10724
ac_save_c_werror_flag=$ac_c_werror_flag
10725
ac_c_werror_flag=yes
10728
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729
/* end confdefs.h. */
10739
if ac_fn_c_try_compile "$LINENO"; then :
10740
ac_cv_prog_cc_g=yes
10743
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10744
/* end confdefs.h. */
10754
if ac_fn_c_try_compile "$LINENO"; then :
10757
ac_c_werror_flag=$ac_save_c_werror_flag
10759
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10760
/* end confdefs.h. */
10770
if ac_fn_c_try_compile "$LINENO"; then :
10771
ac_cv_prog_cc_g=yes
10773
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10775
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10777
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10778
ac_c_werror_flag=$ac_save_c_werror_flag
10780
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
10781
$as_echo "$ac_cv_prog_cc_g" >&6; }
10782
if test "$ac_test_CFLAGS" = set; then
10783
CFLAGS=$ac_save_CFLAGS
10784
elif test $ac_cv_prog_cc_g = yes; then
10785
if test "$GCC" = yes; then
10791
if test "$GCC" = yes; then
10797
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
10798
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
10799
if test "${ac_cv_prog_cc_c89+set}" = set; then :
10800
$as_echo_n "(cached) " >&6
10802
ac_cv_prog_cc_c89=no
10804
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10805
/* end confdefs.h. */
10806
#include <stdarg.h>
10808
#include <sys/types.h>
10809
#include <sys/stat.h>
10810
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10811
struct buf { int x; };
10812
FILE * (*rcsopen) (struct buf *, struct stat *, int);
10813
static char *e (p, i)
10819
static char *f (char * (*g) (char **, int), char **p, ...)
10824
s = g (p, va_arg (v,int));
10829
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10830
function prototypes and stuff, but not '\xHH' hex character constants.
10831
These don't provoke an error unfortunately, instead are silently treated
10832
as 'x'. The following induces an error, until -std is added to get
10833
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10834
array size at least. It's necessary to write '\x00'==0 to get something
10835
that's true only with -std. */
10836
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10838
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
10839
inside strings and character constants. */
10841
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
10843
int test (int i, double x);
10844
struct s1 {int (*f) (int a);};
10845
struct s2 {int (*f) (double a);};
10846
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10852
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10857
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
10858
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10860
CC="$ac_save_CC $ac_arg"
10861
if ac_fn_c_try_compile "$LINENO"; then :
10862
ac_cv_prog_cc_c89=$ac_arg
10864
rm -f core conftest.err conftest.$ac_objext
10865
test "x$ac_cv_prog_cc_c89" != "xno" && break
10867
rm -f conftest.$ac_ext
10872
case "x$ac_cv_prog_cc_c89" in
10874
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
10875
$as_echo "none needed" >&6; } ;;
10877
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
10878
$as_echo "unsupported" >&6; } ;;
10880
CC="$CC $ac_cv_prog_cc_c89"
10881
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
10882
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
10884
if test "x$ac_cv_prog_cc_c89" != xno; then :
10889
ac_cpp='$CPP $CPPFLAGS'
10890
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10891
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10892
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10894
depcc="$CC" am_compiler_list=
10896
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10897
$as_echo_n "checking dependency style of $depcc... " >&6; }
10898
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
10899
$as_echo_n "(cached) " >&6
10901
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10902
# We make a subdir and do the tests there. Otherwise we can end up
10903
# making bogus files that we don't know about and never remove. For
10904
# instance it was reported that on HP-UX the gcc test will end up
10905
# making a dummy file named `D' -- because `-MD' means `put the output
10908
# Copy depcomp to subdir because otherwise we won't find it if we're
10909
# using a relative directory.
10910
cp "$am_depcomp" conftest.dir
10912
# We will build objects and dependencies in a subdirectory because
10913
# it helps to detect inapplicable dependency modes. For instance
10914
# both Tru64's cc and ICC support -MD to output dependencies as a
10915
# side effect of compilation, but ICC will put the dependencies in
10916
# the current directory while Tru64 will put them in the object
10920
am_cv_CC_dependencies_compiler_type=none
10921
if test "$am_compiler_list" = ""; then
10922
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10924
am__universal=false
10925
case " $depcc " in #(
10926
*\ -arch\ *\ -arch\ *) am__universal=true ;;
10929
for depmode in $am_compiler_list; do
10930
# Setup a source with many dependencies, because some compilers
10931
# like to wrap large dependency lists on column 80 (with \), and
10932
# we should not choose a depcomp mode which is confused by this.
10934
# We need to recreate these files for each test, as the compiler may
10935
# overwrite some of them when testing with obscure command lines.
10936
# This happens at least with the AIX C compiler.
10938
for i in 1 2 3 4 5 6; do
10939
echo '#include "conftst'$i'.h"' >> sub/conftest.c
10940
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10941
# Solaris 8's {/usr,}/bin/sh.
10942
touch sub/conftst$i.h
10944
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10946
# We check with `-c' and `-o' for the sake of the "dashmstdout"
10947
# mode. It turns out that the SunPro C++ compiler does not properly
10948
# handle `-M -o', and we need to detect this. Also, some Intel
10949
# versions had trouble with output in subdirs
10950
am__obj=sub/conftest.${OBJEXT-o}
10951
am__minus_obj="-o $am__obj"
10954
# This depmode causes a compiler race in universal mode.
10955
test "$am__universal" = false || continue
10958
# after this tag, mechanisms are not by side-effect, so they'll
10959
# only be used when explicitly requested
10960
if test "x$enable_dependency_tracking" = xyes; then
10966
msvisualcpp | msvcmsys)
10967
# This compiler won't grok `-c -o', but also, the minuso test has
10968
# not run yet. These depmodes are late enough in the game, and
10969
# so weak that their functioning should not be impacted.
10970
am__obj=conftest.${OBJEXT-o}
10975
if depmode=$depmode \
10976
source=sub/conftest.c object=$am__obj \
10977
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10978
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10979
>/dev/null 2>conftest.err &&
10980
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10981
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10982
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10983
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10984
# icc doesn't choke on unknown options, it will just issue warnings
10985
# or remarks (even with -Werror). So we grep stderr for any message
10986
# that says an option was ignored or not supported.
10987
# When given -MP, icc 7.0 and 7.1 complain thusly:
10988
# icc: Command line warning: ignoring option '-M'; no argument required
10989
# The diagnosis changed in icc 8.0:
10990
# icc: Command line remark: option '-MP' not supported
10991
if (grep 'ignoring option' conftest.err ||
10992
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10993
am_cv_CC_dependencies_compiler_type=$depmode
11000
rm -rf conftest.dir
11002
am_cv_CC_dependencies_compiler_type=none
11006
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11007
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11008
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11011
test "x$enable_dependency_tracking" != xno \
11012
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11013
am__fastdepCC_TRUE=
11014
am__fastdepCC_FALSE='#'
11016
am__fastdepCC_TRUE='#'
11017
am__fastdepCC_FALSE=
11023
ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile mtdev.pc"
11025
cat >confcache <<\_ACEOF
11026
# This file is a shell script that caches the results of configure
11027
# tests run on this system so they can be shared between configure
11028
# scripts and configure runs, see configure's option --config-cache.
11029
# It is not useful on other systems. If it contains results you don't
11030
# want to keep, you may remove or edit it.
11032
# config.status only pays attention to the cache file if you give it
11033
# the --recheck option to rerun configure.
11035
# `ac_cv_env_foo' variables (set or unset) will be overridden when
11036
# loading this file, other *unset* `ac_cv_foo' will be assigned the
11037
# following values.
11041
# The following way of writing the cache mishandles newlines in values,
11042
# but we know of no workaround that is simple, portable, and efficient.
11043
# So, we kill variables containing newlines.
11044
# Ultrix sh set writes to stderr and can't be redirected directly,
11045
# and sets the high bit in the cache file unless we assign to the vars.
11047
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11048
eval ac_val=\$$ac_var
11052
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11053
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11056
_ | IFS | as_nl) ;; #(
11057
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11058
*) { eval $ac_var=; unset $ac_var;} ;;
11064
case $as_nl`(ac_space=' '; set) 2>&1` in #(
11065
*${as_nl}ac_space=\ *)
11066
# `set' does not quote correctly, so add quotes: double-quote
11067
# substitution turns \\\\ into \\, and sed turns \\ into \.
11070
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11073
# `set' quotes correctly as required by POSIX, so do not add quotes.
11074
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11083
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11085
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11087
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11088
if test -w "$cache_file"; then
11089
test "x$cache_file" != "x/dev/null" &&
11090
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11091
$as_echo "$as_me: updating cache $cache_file" >&6;}
11092
cat confcache >$cache_file
11094
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11095
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11100
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11101
# Let make expand exec_prefix.
11102
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11104
DEFS=-DHAVE_CONFIG_H
11108
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11109
# 1. Remove the extension, and $U if already installed.
11110
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11111
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11112
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11113
# will be set to the directory where LIBOBJS objects are built.
11114
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11115
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11117
LIBOBJS=$ac_libobjs
11119
LTLIBOBJS=$ac_ltlibobjs
11122
if test -n "$EXEEXT"; then
11124
am__EXEEXT_FALSE='#'
11126
am__EXEEXT_TRUE='#'
11130
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11131
as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11132
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11134
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11135
as_fn_error "conditional \"AMDEP\" was never defined.
11136
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11138
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11139
as_fn_error "conditional \"am__fastdepCC\" was never defined.
11140
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11142
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11143
as_fn_error "conditional \"am__fastdepCC\" was never defined.
11144
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11147
: ${CONFIG_STATUS=./config.status}
11149
ac_clean_files_save=$ac_clean_files
11150
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11151
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11152
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11154
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11156
# Generated by $as_me.
11157
# Run this file to recreate the current configuration.
11158
# Compiler output produced by configure, useful for debugging
11159
# configure, is in config.log if it exists.
11162
ac_cs_recheck=false
11165
SHELL=\${CONFIG_SHELL-$SHELL}
11168
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11169
## -------------------- ##
11170
## M4sh Initialization. ##
11171
## -------------------- ##
11173
# Be more Bourne compatible
11174
DUALCASE=1; export DUALCASE # for MKS sh
11175
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11178
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11179
# is contrary to our usage. Disable this feature.
11180
alias -g '${1+"$@"}'='"$@"'
11181
setopt NO_GLOB_SUBST
11183
case `(set -o) 2>/dev/null` in #(
11195
# Printing a long string crashes Solaris 7 /usr/bin/printf.
11196
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11197
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11198
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11199
# Prefer a ksh shell builtin over an external printf program on Solaris,
11200
# but without wasting forks for bash or zsh.
11201
if test -z "$BASH_VERSION$ZSH_VERSION" \
11202
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11203
as_echo='print -r --'
11204
as_echo_n='print -rn --'
11205
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11206
as_echo='printf %s\n'
11207
as_echo_n='printf %s'
11209
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11210
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11211
as_echo_n='/usr/ucb/echo -n'
11213
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11214
as_echo_n_body='eval
11218
expr "X$arg" : "X\\(.*\\)$as_nl";
11219
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11221
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11223
export as_echo_n_body
11224
as_echo_n='sh -c $as_echo_n_body as_echo'
11226
export as_echo_body
11227
as_echo='sh -c $as_echo_body as_echo'
11230
# The user is always right.
11231
if test "${PATH_SEPARATOR+set}" != set; then
11233
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11234
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11241
# We need space, tab and new line, in precisely that order. Quoting is
11242
# there to prevent editors from complaining about space-tab.
11243
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11244
# splitting by setting IFS to empty value.)
11247
# Find who we are. Look in the path if we contain no directory separator.
11249
*[\\/]* ) as_myself=$0 ;;
11250
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11251
for as_dir in $PATH
11254
test -z "$as_dir" && as_dir=.
11255
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11261
# We did not find ourselves, most probably we were run as `sh COMMAND'
11262
# in which case we are not to be found in the path.
11263
if test "x$as_myself" = x; then
11266
if test ! -f "$as_myself"; then
11267
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11271
# Unset variables that we do not need and which cause bugs (e.g. in
11272
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11273
# suppresses any "Segmentation fault" message there. '((' could
11274
# trigger a bug in pdksh 5.2.14.
11275
for as_var in BASH_ENV ENV MAIL MAILPATH
11276
do eval test x\${$as_var+set} = xset \
11277
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11290
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11293
# as_fn_error ERROR [LINENO LOG_FD]
11294
# ---------------------------------
11295
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11296
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11297
# script with status $?, using 1 if that was 0.
11300
as_status=$?; test $as_status -eq 0 && as_status=1
11302
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11303
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11305
$as_echo "$as_me: error: $1" >&2
11306
as_fn_exit $as_status
11310
# as_fn_set_status STATUS
11311
# -----------------------
11312
# Set $? to STATUS, without forking.
11313
as_fn_set_status ()
11316
} # as_fn_set_status
11318
# as_fn_exit STATUS
11319
# -----------------
11320
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11324
as_fn_set_status $1
11330
# Portably unset VAR.
11333
{ eval $1=; unset $1;}
11335
as_unset=as_fn_unset
11336
# as_fn_append VAR VALUE
11337
# ----------------------
11338
# Append the text in VALUE to the end of the definition contained in VAR. Take
11339
# advantage of any shell optimizations that allow amortized linear growth over
11340
# repeated appends, instead of the typical quadratic growth present in naive
11342
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11343
eval 'as_fn_append ()
11354
# as_fn_arith ARG...
11355
# ------------------
11356
# Perform arithmetic evaluation on the ARGs, and store the result in the
11357
# global $as_val. Take advantage of shells that can avoid forks. The arguments
11358
# must be portable across $(()) and expr.
11359
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11360
eval 'as_fn_arith ()
11367
as_val=`expr "$@" || test $? -eq 1`
11372
if expr a : '\(a\)' >/dev/null 2>&1 &&
11373
test "X`expr 00001 : '.*\(...\)'`" = X001; then
11379
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11380
as_basename=basename
11385
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11391
as_me=`$as_basename -- "$0" ||
11392
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11393
X"$0" : 'X\(//\)$' \| \
11394
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11396
sed '/^.*\/\([^/][^/]*\)\/*$/{
11410
# Avoid depending upon Character Ranges.
11411
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11412
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11413
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11414
as_cr_digits='0123456789'
11415
as_cr_alnum=$as_cr_Letters$as_cr_digits
11417
ECHO_C= ECHO_N= ECHO_T=
11418
case `echo -n x` in #(((((
11420
case `echo 'xy\c'` in
11421
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
11423
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11430
rm -f conf$$ conf$$.exe conf$$.file
11431
if test -d conf$$.dir; then
11432
rm -f conf$$.dir/conf$$.file
11435
mkdir conf$$.dir 2>/dev/null
11437
if (echo >conf$$.file) 2>/dev/null; then
11438
if ln -s conf$$.file conf$$ 2>/dev/null; then
11440
# ... but there are two gotchas:
11441
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11442
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11443
# In both cases, we have to default to `cp -p'.
11444
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11446
elif ln conf$$.file conf$$ 2>/dev/null; then
11454
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11455
rmdir conf$$.dir 2>/dev/null
11460
# Create "$as_dir" as a directory, including parents if necessary.
11465
-*) as_dir=./$as_dir;;
11467
test -d "$as_dir" || eval $as_mkdir_p || {
11471
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11472
*) as_qdir=$as_dir;;
11474
as_dirs="'$as_qdir' $as_dirs"
11475
as_dir=`$as_dirname -- "$as_dir" ||
11476
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11477
X"$as_dir" : 'X\(//\)[^/]' \| \
11478
X"$as_dir" : 'X\(//\)$' \| \
11479
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11480
$as_echo X"$as_dir" |
11481
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11485
/^X\(\/\/\)[^/].*/{
11498
test -d "$as_dir" && break
11500
test -z "$as_dirs" || eval "mkdir $as_dirs"
11501
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11505
if mkdir -p . 2>/dev/null; then
11506
as_mkdir_p='mkdir -p "$as_dir"'
11508
test -d ./-p && rmdir ./-p
11512
if test -x / >/dev/null 2>&1; then
11513
as_test_x='test -x'
11515
if ls -dL / >/dev/null 2>&1; then
11522
if test -d "$1"; then
11528
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11529
???[sx]*):;;*)false;;esac;fi
11533
as_executable_p=$as_test_x
11535
# Sed expression to map a string onto a valid CPP name.
11536
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11538
# Sed expression to map a string onto a valid variable name.
11539
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11543
## ----------------------------------- ##
11544
## Main body of $CONFIG_STATUS script. ##
11545
## ----------------------------------- ##
11547
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11549
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11550
# Save the log message, to keep $0 and so on meaningful, and to
11551
# report actual input values of CONFIG_FILES etc. instead of their
11552
# values after options handling.
11554
This file was extended by Multitouch Protocol Translation Library $as_me 1.0.8, which was
11555
generated by GNU Autoconf 2.65. Invocation command line was
11557
CONFIG_FILES = $CONFIG_FILES
11558
CONFIG_HEADERS = $CONFIG_HEADERS
11559
CONFIG_LINKS = $CONFIG_LINKS
11560
CONFIG_COMMANDS = $CONFIG_COMMANDS
11563
on `(hostname || uname -n) 2>/dev/null | sed 1q`
11568
case $ac_config_files in *"
11569
"*) set x $ac_config_files; shift; ac_config_files=$*;;
11572
case $ac_config_headers in *"
11573
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11577
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11578
# Files that config.status was made for.
11579
config_files="$ac_config_files"
11580
config_headers="$ac_config_headers"
11581
config_commands="$ac_config_commands"
11585
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11587
\`$as_me' instantiates files and other configuration actions
11588
from templates according to the current configuration. Unless the files
11589
and actions are specified as TAGs, all are instantiated by default.
11591
Usage: $0 [OPTION]... [TAG]...
11593
-h, --help print this help, then exit
11594
-V, --version print version number and configuration settings, then exit
11595
--config print configuration, then exit
11596
-q, --quiet, --silent
11597
do not print progress messages
11598
-d, --debug don't remove temporary files
11599
--recheck update $as_me by reconfiguring in the same conditions
11600
--file=FILE[:TEMPLATE]
11601
instantiate the configuration file FILE
11602
--header=FILE[:TEMPLATE]
11603
instantiate the configuration header FILE
11605
Configuration files:
11608
Configuration headers:
11611
Configuration commands:
11614
Report bugs to the package provider."
11617
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11618
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11620
Multitouch Protocol Translation Library config.status 1.0.8
11621
configured by $0, generated by GNU Autoconf 2.65,
11622
with options \\"\$ac_cs_config\\"
11624
Copyright (C) 2009 Free Software Foundation, Inc.
11625
This config.status script is free software; the Free Software Foundation
11626
gives unlimited permission to copy, distribute and modify it."
11633
test -n "\$AWK" || AWK=awk
11636
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11637
# The default lists apply if the user does not specify any file.
11643
ac_option=`expr "X$1" : 'X\([^=]*\)='`
11644
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11655
# Handling of the options.
11656
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11658
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11659
$as_echo "$ac_cs_version"; exit ;;
11660
--config | --confi | --conf | --con | --co | --c )
11661
$as_echo "$ac_cs_config"; exit ;;
11662
--debug | --debu | --deb | --de | --d | -d )
11664
--file | --fil | --fi | --f )
11667
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11669
as_fn_append CONFIG_FILES " '$ac_optarg'"
11670
ac_need_defaults=false;;
11671
--header | --heade | --head | --hea )
11674
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11676
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11677
ac_need_defaults=false;;
11679
# Conflict between --help and --header
11680
as_fn_error "ambiguous option: \`$1'
11681
Try \`$0 --help' for more information.";;
11682
--help | --hel | -h )
11683
$as_echo "$ac_cs_usage"; exit ;;
11684
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
11685
| -silent | --silent | --silen | --sile | --sil | --si | --s)
11688
# This is an error.
11689
-*) as_fn_error "unrecognized option: \`$1'
11690
Try \`$0 --help' for more information." ;;
11692
*) as_fn_append ac_config_targets " $1"
11693
ac_need_defaults=false ;;
11699
ac_configure_extra_args=
11701
if $ac_cs_silent; then
11703
ac_configure_extra_args="$ac_configure_extra_args --silent"
11707
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11708
if \$ac_cs_recheck; then
11709
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11711
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11712
CONFIG_SHELL='$SHELL'
11713
export CONFIG_SHELL
11718
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11722
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11723
## Running $as_me. ##
11729
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11733
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11736
# The HP-UX ksh and POSIX shell print the target directory to stdout
11737
# if CDPATH is set.
11738
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11740
sed_quote_subst='$sed_quote_subst'
11741
double_quote_subst='$double_quote_subst'
11742
delay_variable_subst='$delay_variable_subst'
11743
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11744
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11745
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11746
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11747
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11748
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11749
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11750
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11751
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11752
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11753
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11754
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11755
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11756
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11757
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11758
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11759
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11760
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11761
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11762
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11763
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11764
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11765
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11766
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11767
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11768
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11769
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11770
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11771
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11772
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11773
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11774
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11775
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11776
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11777
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11778
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11779
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11780
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11781
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11782
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11783
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11784
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11785
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11786
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11787
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
11788
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11789
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11790
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11791
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11792
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11793
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11794
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11795
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11796
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11797
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11798
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11799
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11800
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11801
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11802
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11803
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11804
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11805
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11806
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11807
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11808
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11809
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11810
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11811
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11812
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11813
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11814
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11815
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11816
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11817
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11818
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11819
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11820
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11821
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11822
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11823
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11824
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11825
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11826
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11827
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11828
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11829
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11830
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11831
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11832
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11833
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11834
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11835
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11836
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11837
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11838
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11839
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11840
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11841
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11842
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11843
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11844
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11845
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11846
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11847
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11848
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11849
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11850
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11851
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11852
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11853
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11854
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11855
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11856
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11857
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11858
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11859
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11860
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11863
LTCFLAGS='$LTCFLAGS'
11864
compiler='$compiler_DEFAULT'
11866
# Quote evaled strings.
11878
deplibs_check_method \
11887
lt_cv_sys_global_symbol_pipe \
11888
lt_cv_sys_global_symbol_to_cdecl \
11889
lt_cv_sys_global_symbol_to_c_name_address \
11890
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11893
lt_prog_compiler_no_builtin_flag \
11894
lt_prog_compiler_wl \
11895
lt_prog_compiler_pic \
11896
lt_prog_compiler_static \
11897
lt_cv_prog_compiler_c_o \
11905
export_dynamic_flag_spec \
11906
whole_archive_flag_spec \
11907
compiler_needs_object \
11909
allow_undefined_flag \
11910
no_undefined_flag \
11911
hardcode_libdir_flag_spec \
11912
hardcode_libdir_flag_spec_ld \
11913
hardcode_libdir_separator \
11918
variables_saved_for_relink \
11920
library_names_spec \
11925
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11926
*[\\\\\\\`\\"\\\$]*)
11927
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11930
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11935
# Double-quote double-evaled strings.
11936
for var in reload_cmds \
11937
old_postinstall_cmds \
11938
old_postuninstall_cmds \
11940
extract_expsyms_cmds \
11941
old_archive_from_new_cmds \
11942
old_archive_from_expsyms_cmds \
11944
archive_expsym_cmds \
11946
module_expsym_cmds \
11947
export_symbols_cmds \
11950
postuninstall_cmds \
11952
sys_lib_search_path_spec \
11953
sys_lib_dlsearch_path_spec; do
11954
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11955
*[\\\\\\\`\\"\\\$]*)
11956
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11959
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11964
# Fix-up fallback echo if it was mangled by the above quoting rules.
11966
*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11970
ac_aux_dir='$ac_aux_dir'
11971
xsi_shell='$xsi_shell'
11972
lt_shell_append='$lt_shell_append'
11974
# See if we are running on zsh, and set the options which allow our
11975
# commands through without removal of \ escapes INIT.
11976
if test -n "\${ZSH_VERSION+set}" ; then
11977
setopt NO_GLOB_SUBST
11983
TIMESTAMP='$TIMESTAMP'
11992
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11994
# Handling of arguments.
11995
for ac_config_target in $ac_config_targets
11997
case $ac_config_target in
11998
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11999
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12000
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12001
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12002
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12003
"test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
12004
"mtdev.pc") CONFIG_FILES="$CONFIG_FILES mtdev.pc" ;;
12006
*) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12011
# If the user did not use the arguments to specify the items to instantiate,
12012
# then the envvar interface is used. Set only those that are not.
12013
# We use the long form for the default assignment because of an extremely
12014
# bizarre bug on SunOS 4.1.3.
12015
if $ac_need_defaults; then
12016
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12017
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12018
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12021
# Have a temporary directory for convenience. Make it in the build tree
12022
# simply because there is no reason against having it here, and in addition,
12023
# creating and moving files from /tmp can sometimes cause problems.
12024
# Hook for its removal unless debugging.
12025
# Note that there is a small window in which the directory will not be cleaned:
12026
# after its creation but before its name has been assigned to `$tmp'.
12030
trap 'exit_status=$?
12031
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12033
trap 'as_fn_exit 1' 1 2 13 15
12035
# Create a (secure) tmp directory for tmp files.
12038
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12039
test -n "$tmp" && test -d "$tmp"
12042
tmp=./conf$$-$RANDOM
12043
(umask 077 && mkdir "$tmp")
12044
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12046
# Set up the scripts for CONFIG_FILES section.
12047
# No need to generate them if there are no CONFIG_FILES.
12048
# This happens for instance with `./config.status config.h'.
12049
if test -n "$CONFIG_FILES"; then
12052
ac_cr=`echo X | tr X '\015'`
12053
# On cygwin, bash can eat \r inside `` if the user requested igncr.
12054
# But we know of no other shell where ac_cr would be empty at this
12055
# point, so we can use a bashism as a fallback.
12056
if test "x$ac_cr" = x; then
12057
eval ac_cr=\$\'\\r\'
12059
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12060
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12063
ac_cs_awk_cr=$ac_cr
12066
echo 'BEGIN {' >"$tmp/subs1.awk" &&
12071
echo "cat >conf$$subs.awk <<_ACEOF" &&
12072
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12074
} >conf$$subs.sh ||
12075
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12076
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12078
for ac_last_try in false false false false false :; do
12079
. ./conf$$subs.sh ||
12080
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12082
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12083
if test $ac_delim_n = $ac_delim_num; then
12085
elif $ac_last_try; then
12086
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12088
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12091
rm -f conf$$subs.sh
12093
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12094
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12098
s/^/S["/; s/!.*/"]=/
12108
s/\(.\{148\}\)..*/\1/
12110
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12115
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12122
s/\(.\{148\}\)..*/\1/
12124
s/["\\]/\\&/g; s/^/"/; s/$/"/
12128
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12133
' <conf$$subs.awk | sed '
12138
' >>$CONFIG_STATUS || ac_write_fail=1
12139
rm -f conf$$subs.awk
12140
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12142
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12143
for (key in S) S_is_set[key] = 1
12149
nfields = split(line, field, "@")
12151
len = length(field[1])
12152
for (i = 2; i < nfields; i++) {
12154
keylen = length(key)
12155
if (S_is_set[key]) {
12157
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12158
len += length(value) + length(field[++i])
12169
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12170
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12171
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12174
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12175
|| as_fn_error "could not setup config files machinery" "$LINENO" 5
12178
# VPATH may cause trouble with some makes, so we remove $(srcdir),
12179
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12180
# trailing colons and then remove the whole line if VPATH becomes empty
12181
# (actually we leave an empty line to preserve line numbers).
12182
if test "x$srcdir" = x.; then
12183
ac_vpsub='/^[ ]*VPATH[ ]*=/{
12184
s/:*\$(srcdir):*/:/
12185
s/:*\${srcdir}:*/:/
12187
s/^\([^=]*=[ ]*\):*/\1/
12193
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12194
fi # test -n "$CONFIG_FILES"
12196
# Set up the scripts for CONFIG_HEADERS section.
12197
# No need to generate them if there are no CONFIG_HEADERS.
12198
# This happens for instance with `./config.status Makefile'.
12199
if test -n "$CONFIG_HEADERS"; then
12200
cat >"$tmp/defines.awk" <<\_ACAWK ||
12204
# Transform confdefs.h into an awk script `defines.awk', embedded as
12205
# here-document in config.status, that substitutes the proper values into
12206
# config.h.in to produce config.h.
12208
# Create a delimiter string that does not exist in confdefs.h, to ease
12209
# handling of long lines.
12211
for ac_last_try in false false :; do
12212
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12213
if test -z "$ac_t"; then
12215
elif $ac_last_try; then
12216
as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12218
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12222
# For the awk script, D is an array of macro values keyed by name,
12223
# likewise P contains macro parameters if any. Preserve backslash
12224
# newline sequences.
12226
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12228
s/.\{148\}/&'"$ac_delim"'/g
12231
s/^[ ]*#[ ]*define[ ][ ]*/ /
12238
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12240
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12244
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12245
D["\1"]=" \3\\\\\\n"\\/p
12247
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12252
s/.\{148\}/&'"$ac_delim"'/g
12257
s/["\\]/\\&/g; s/^/"/; s/$/"/p
12260
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12262
' <confdefs.h | sed '
12263
s/'"$ac_delim"'/"\\\
12264
"/g' >>$CONFIG_STATUS || ac_write_fail=1
12266
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12267
for (key in D) D_is_set[key] = 1
12270
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12272
split(line, arg, " ")
12273
if (arg[1] == "#") {
12277
defundef = substr(arg[1], 2)
12280
split(mac1, mac2, "(") #)
12282
prefix = substr(line, 1, index(line, defundef) - 1)
12283
if (D_is_set[macro]) {
12284
# Preserve the white space surrounding the "#".
12285
print prefix "define", macro P[macro] D[macro]
12288
# Replace #undef with comments. This is necessary, for example,
12289
# in the case of _POSIX_SOURCE, which is predefined and required
12290
# on some systems where configure will not decide to define it.
12291
if (defundef == "undef") {
12292
print "/*", prefix defundef, macro, "*/"
12300
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12301
as_fn_error "could not setup config headers machinery" "$LINENO" 5
12302
fi # test -n "$CONFIG_HEADERS"
12305
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12310
:[FHLC]) ac_mode=$ac_tag; continue;;
12312
case $ac_mode$ac_tag in
12314
:L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12315
:[FH]-) ac_tag=-:-;;
12316
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12333
-) ac_f="$tmp/stdin";;
12334
*) # Look for the file first in the build tree, then in the source tree
12335
# (if the path is not absolute). The absolute path cannot be DOS-style,
12336
# because $ac_f cannot contain `:'.
12340
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12342
as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12344
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12345
as_fn_append ac_file_inputs " '$ac_f'"
12348
# Let's still pretend it is `configure' which instantiates (i.e., don't
12349
# use $as_me), people would be surprised to read:
12350
# /* config.h. Generated by config.status. */
12351
configure_input='Generated from '`
12352
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12354
if test x"$ac_file" != x-; then
12355
configure_input="$ac_file. $configure_input"
12356
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12357
$as_echo "$as_me: creating $ac_file" >&6;}
12359
# Neutralize special characters interpreted by sed in replacement strings.
12360
case $configure_input in #(
12361
*\&* | *\|* | *\\* )
12362
ac_sed_conf_input=`$as_echo "$configure_input" |
12363
sed 's/[\\\\&|]/\\\\&/g'`;; #(
12364
*) ac_sed_conf_input=$configure_input;;
12368
*:-:* | *:-) cat >"$tmp/stdin" \
12369
|| as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12374
ac_dir=`$as_dirname -- "$ac_file" ||
12375
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12376
X"$ac_file" : 'X\(//\)[^/]' \| \
12377
X"$ac_file" : 'X\(//\)$' \| \
12378
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12379
$as_echo X"$ac_file" |
12380
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12384
/^X\(\/\/\)[^/].*/{
12397
as_dir="$ac_dir"; as_fn_mkdir_p
12401
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12403
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12404
# A ".." for each directory in $ac_dir_suffix.
12405
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12406
case $ac_top_builddir_sub in
12407
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12408
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12411
ac_abs_top_builddir=$ac_pwd
12412
ac_abs_builddir=$ac_pwd$ac_dir_suffix
12413
# for backward compatibility:
12414
ac_top_builddir=$ac_top_build_prefix
12417
.) # We are building in place.
12419
ac_top_srcdir=$ac_top_builddir_sub
12420
ac_abs_top_srcdir=$ac_pwd ;;
12421
[\\/]* | ?:[\\/]* ) # Absolute name.
12422
ac_srcdir=$srcdir$ac_dir_suffix;
12423
ac_top_srcdir=$srcdir
12424
ac_abs_top_srcdir=$srcdir ;;
12425
*) # Relative name.
12426
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12427
ac_top_srcdir=$ac_top_build_prefix$srcdir
12428
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12430
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12440
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12441
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12443
ac_MKDIR_P=$MKDIR_P
12445
[\\/$]* | ?:[\\/]* ) ;;
12446
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12450
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12451
# If the template does not know about datarootdir, expand it.
12452
# FIXME: This hack should be removed a few years after 2.60.
12453
ac_datarootdir_hack=; ac_datarootdir_seen=
12464
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12465
*datarootdir*) ac_datarootdir_seen=yes;;
12466
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12467
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12468
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12470
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12471
ac_datarootdir_hack='
12472
s&@datadir@&$datadir&g
12473
s&@docdir@&$docdir&g
12474
s&@infodir@&$infodir&g
12475
s&@localedir@&$localedir&g
12476
s&@mandir@&$mandir&g
12477
s&\\\${datarootdir}&$datarootdir&g' ;;
12481
# Neutralize VPATH when `$srcdir' = `.'.
12482
# Shell code in configure.ac might set extrasub.
12483
# FIXME: do we really want to maintain this feature?
12484
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12485
ac_sed_extra="$ac_vpsub
12488
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12490
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12491
s|@configure_input@|$ac_sed_conf_input|;t t
12492
s&@top_builddir@&$ac_top_builddir_sub&;t t
12493
s&@top_build_prefix@&$ac_top_build_prefix&;t t
12494
s&@srcdir@&$ac_srcdir&;t t
12495
s&@abs_srcdir@&$ac_abs_srcdir&;t t
12496
s&@top_srcdir@&$ac_top_srcdir&;t t
12497
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12498
s&@builddir@&$ac_builddir&;t t
12499
s&@abs_builddir@&$ac_abs_builddir&;t t
12500
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12501
s&@INSTALL@&$ac_INSTALL&;t t
12502
s&@MKDIR_P@&$ac_MKDIR_P&;t t
12503
$ac_datarootdir_hack
12505
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12506
|| as_fn_error "could not create $ac_file" "$LINENO" 5
12508
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12509
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12510
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12511
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12512
which seems to be undefined. Please make sure it is defined." >&5
12513
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12514
which seems to be undefined. Please make sure it is defined." >&2;}
12518
-) cat "$tmp/out" && rm -f "$tmp/out";;
12519
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12521
|| as_fn_error "could not create $ac_file" "$LINENO" 5
12527
if test x"$ac_file" != x-; then
12529
$as_echo "/* $configure_input */" \
12530
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12531
} >"$tmp/config.h" \
12532
|| as_fn_error "could not create $ac_file" "$LINENO" 5
12533
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12534
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12535
$as_echo "$as_me: $ac_file is unchanged" >&6;}
12538
mv "$tmp/config.h" "$ac_file" \
12539
|| as_fn_error "could not create $ac_file" "$LINENO" 5
12542
$as_echo "/* $configure_input */" \
12543
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12544
|| as_fn_error "could not create -" "$LINENO" 5
12546
# Compute "$ac_file"'s index in $config_headers.
12549
for _am_header in $config_headers :; do
12550
case $_am_header in
12551
$_am_arg | $_am_arg:* )
12554
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
12557
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12558
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12559
X"$_am_arg" : 'X\(//\)[^/]' \| \
12560
X"$_am_arg" : 'X\(//\)$' \| \
12561
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12562
$as_echo X"$_am_arg" |
12563
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12567
/^X\(\/\/\)[^/].*/{
12579
s/.*/./; q'`/stamp-h$_am_stamp_count
12582
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12583
$as_echo "$as_me: executing $ac_file commands" >&6;}
12588
case $ac_file$ac_mode in
12589
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12590
# Autoconf 2.62 quotes --file arguments for eval, but not when files
12591
# are listed without --file. Let's play safe and only enable the eval
12592
# if we detect the quoting.
12593
case $CONFIG_FILES in
12594
*\'*) eval set x "$CONFIG_FILES" ;;
12595
*) set x $CONFIG_FILES ;;
12600
# Strip MF so we end up with the name of the file.
12601
mf=`echo "$mf" | sed -e 's/:.*$//'`
12602
# Check whether this is an Automake generated Makefile or not.
12603
# We used to match only the files named `Makefile.in', but
12604
# some people rename them; so instead we look at the file content.
12605
# Grep'ing the first line is not enough: some people post-process
12606
# each Makefile.in and add a new line on top of each file to say so.
12607
# Grep'ing the whole file is not good either: AIX grep has a line
12608
# limit of 2048, but all sed's we know have understand at least 4000.
12609
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12610
dirpart=`$as_dirname -- "$mf" ||
12611
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12612
X"$mf" : 'X\(//\)[^/]' \| \
12613
X"$mf" : 'X\(//\)$' \| \
12614
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12616
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12620
/^X\(\/\/\)[^/].*/{
12636
# Extract the definition of DEPDIR, am__include, and am__quote
12637
# from the Makefile without running `make'.
12638
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12639
test -z "$DEPDIR" && continue
12640
am__include=`sed -n 's/^am__include = //p' < "$mf"`
12641
test -z "am__include" && continue
12642
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12643
# When using ansi2knr, U may be empty or an underscore; expand it
12644
U=`sed -n 's/^U = //p' < "$mf"`
12645
# Find all dependency output files, they are included files with
12646
# $(DEPDIR) in their names. We invoke sed twice because it is the
12647
# simplest approach to changing $(DEPDIR) to its actual value in the
12649
for file in `sed -n "
12650
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12651
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12652
# Make sure the directory exists.
12653
test -f "$dirpart/$file" && continue
12654
fdir=`$as_dirname -- "$file" ||
12655
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12656
X"$file" : 'X\(//\)[^/]' \| \
12657
X"$file" : 'X\(//\)$' \| \
12658
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12659
$as_echo X"$file" |
12660
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12664
/^X\(\/\/\)[^/].*/{
12677
as_dir=$dirpart/$fdir; as_fn_mkdir_p
12678
# echo "creating $dirpart/$file"
12679
echo '# dummy' > "$dirpart/$file"
12686
# See if we are running on zsh, and set the options which allow our
12687
# commands through without removal of \ escapes.
12688
if test -n "${ZSH_VERSION+set}" ; then
12689
setopt NO_GLOB_SUBST
12692
cfgfile="${ofile}T"
12693
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12696
cat <<_LT_EOF >> "$cfgfile"
12699
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12700
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12701
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12702
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12704
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12705
# 2006, 2007, 2008 Free Software Foundation, Inc.
12706
# Written by Gordon Matzigkeit, 1996
12708
# This file is part of GNU Libtool.
12710
# GNU Libtool is free software; you can redistribute it and/or
12711
# modify it under the terms of the GNU General Public License as
12712
# published by the Free Software Foundation; either version 2 of
12713
# the License, or (at your option) any later version.
12715
# As a special exception to the GNU General Public License,
12716
# if you distribute this file as part of a program or library that
12717
# is built using GNU Libtool, you may include this file under the
12718
# same distribution terms that you use for the rest of that program.
12720
# GNU Libtool is distributed in the hope that it will be useful,
12721
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12722
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12723
# GNU General Public License for more details.
12725
# You should have received a copy of the GNU General Public License
12726
# along with GNU Libtool; see the file COPYING. If not, a copy
12727
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12728
# obtained by writing to the Free Software Foundation, Inc.,
12729
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12732
# The names of the tagged configurations supported by this script.
12735
# ### BEGIN LIBTOOL CONFIG
12737
# Which release of libtool.m4 was used?
12738
macro_version=$macro_version
12739
macro_revision=$macro_revision
12741
# Whether or not to build shared libraries.
12742
build_libtool_libs=$enable_shared
12744
# Whether or not to build static libraries.
12745
build_old_libs=$enable_static
12747
# What type of objects to build.
12750
# Whether or not to optimize for fast installation.
12751
fast_install=$enable_fast_install
12754
host_alias=$host_alias
12758
# The build system.
12759
build_alias=$build_alias
12763
# A sed program that does not truncate output.
12766
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12767
Xsed="\$SED -e 1s/^X//"
12769
# A grep program that handles long lines.
12775
# A literal string matcher.
12778
# A BSD- or MS-compatible name lister.
12781
# Whether we need soft or hard links.
12784
# What is the maximum length of a command?
12785
max_cmd_len=$max_cmd_len
12787
# Object file suffix (normally "o").
12790
# Executable file suffix (normally "").
12793
# whether the shell understands "unset".
12796
# turn spaces into newlines.
12799
# turn newlines into spaces.
12802
# How to create reloadable object files.
12803
reload_flag=$lt_reload_flag
12804
reload_cmds=$lt_reload_cmds
12806
# An object symbol dumper.
12807
OBJDUMP=$lt_OBJDUMP
12809
# Method to check whether dependent libraries are shared objects.
12810
deplibs_check_method=$lt_deplibs_check_method
12812
# Command to use when deplibs_check_method == "file_magic".
12813
file_magic_cmd=$lt_file_magic_cmd
12817
AR_FLAGS=$lt_AR_FLAGS
12819
# A symbol stripping program.
12822
# Commands used to install an old-style archive.
12824
old_postinstall_cmds=$lt_old_postinstall_cmds
12825
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12830
# LTCC compiler flags.
12831
LTCFLAGS=$lt_CFLAGS
12833
# Take the output of nm and produce a listing of raw symbols and C names.
12834
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12836
# Transform the output of nm in a proper C declaration.
12837
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12839
# Transform the output of nm in a C name address pair.
12840
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12842
# Transform the output of nm in a C name address pair when lib prefix is needed.
12843
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12845
# The name of the directory that contains temporary libtool files.
12848
# Shell to use when invoking shell scripts.
12851
# An echo program that does not interpret backslashes.
12854
# Used to examine libraries when file_magic_cmd begins with "file".
12855
MAGIC_CMD=$MAGIC_CMD
12857
# Must we lock files when doing compilation?
12858
need_locks=$lt_need_locks
12860
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12861
DSYMUTIL=$lt_DSYMUTIL
12863
# Tool to change global to local symbols on Mac OS X.
12866
# Tool to manipulate fat objects and archives on Mac OS X.
12869
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
12872
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12873
OTOOL64=$lt_OTOOL64
12875
# Old archive suffix (normally "a").
12878
# Shared library suffix (normally ".so").
12879
shrext_cmds=$lt_shrext_cmds
12881
# The commands to extract the exported symbol list from a shared archive.
12882
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12884
# Variables whose values should be saved in libtool wrapper scripts and
12885
# restored at link time.
12886
variables_saved_for_relink=$lt_variables_saved_for_relink
12888
# Do we need the "lib" prefix for modules?
12889
need_lib_prefix=$need_lib_prefix
12891
# Do we need a version for libraries?
12892
need_version=$need_version
12894
# Library versioning type.
12895
version_type=$version_type
12897
# Shared library runtime path variable.
12898
runpath_var=$runpath_var
12900
# Shared library path variable.
12901
shlibpath_var=$shlibpath_var
12903
# Is shlibpath searched before the hard-coded library search path?
12904
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12906
# Format of library name prefix.
12907
libname_spec=$lt_libname_spec
12909
# List of archive names. First name is the real one, the rest are links.
12910
# The last name is the one that the linker finds with -lNAME
12911
library_names_spec=$lt_library_names_spec
12913
# The coded name of the library, if different from the real name.
12914
soname_spec=$lt_soname_spec
12916
# Command to use after installation of a shared archive.
12917
postinstall_cmds=$lt_postinstall_cmds
12919
# Command to use after uninstallation of a shared archive.
12920
postuninstall_cmds=$lt_postuninstall_cmds
12922
# Commands used to finish a libtool library installation in a directory.
12923
finish_cmds=$lt_finish_cmds
12925
# As "finish_cmds", except a single script fragment to be evaled but
12927
finish_eval=$lt_finish_eval
12929
# Whether we should hardcode library paths into libraries.
12930
hardcode_into_libs=$hardcode_into_libs
12932
# Compile-time system search path for libraries.
12933
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12935
# Run-time system search path for libraries.
12936
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12938
# Whether dlopen is supported.
12939
dlopen_support=$enable_dlopen
12941
# Whether dlopen of programs is supported.
12942
dlopen_self=$enable_dlopen_self
12944
# Whether dlopen of statically linked programs is supported.
12945
dlopen_self_static=$enable_dlopen_self_static
12947
# Commands to strip libraries.
12948
old_striplib=$lt_old_striplib
12949
striplib=$lt_striplib
12952
# The linker used to build libraries.
12955
# Commands used to build an old-style archive.
12956
old_archive_cmds=$lt_old_archive_cmds
12958
# A language specific compiler.
12961
# Is the compiler the GNU compiler?
12964
# Compiler flag to turn off builtin functions.
12965
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12967
# How to pass a linker flag through the compiler.
12968
wl=$lt_lt_prog_compiler_wl
12970
# Additional compiler flags for building library objects.
12971
pic_flag=$lt_lt_prog_compiler_pic
12973
# Compiler flag to prevent dynamic linking.
12974
link_static_flag=$lt_lt_prog_compiler_static
12976
# Does compiler simultaneously support -c and -o options?
12977
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12979
# Whether or not to add -lc for building shared libraries.
12980
build_libtool_need_lc=$archive_cmds_need_lc
12982
# Whether or not to disallow shared libs when runtime libs are static.
12983
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12985
# Compiler flag to allow reflexive dlopens.
12986
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12988
# Compiler flag to generate shared objects directly from archives.
12989
whole_archive_flag_spec=$lt_whole_archive_flag_spec
12991
# Whether the compiler copes with passing no objects directly.
12992
compiler_needs_object=$lt_compiler_needs_object
12994
# Create an old-style archive from a shared archive.
12995
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12997
# Create a temporary old-style archive to link instead of a shared archive.
12998
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13000
# Commands used to build a shared archive.
13001
archive_cmds=$lt_archive_cmds
13002
archive_expsym_cmds=$lt_archive_expsym_cmds
13004
# Commands used to build a loadable module if different from building
13005
# a shared archive.
13006
module_cmds=$lt_module_cmds
13007
module_expsym_cmds=$lt_module_expsym_cmds
13009
# Whether we are building with GNU ld or not.
13010
with_gnu_ld=$lt_with_gnu_ld
13012
# Flag that allows shared libraries with undefined symbols to be built.
13013
allow_undefined_flag=$lt_allow_undefined_flag
13015
# Flag that enforces no undefined symbols.
13016
no_undefined_flag=$lt_no_undefined_flag
13018
# Flag to hardcode \$libdir into a binary during linking.
13019
# This must work even if \$libdir does not exist
13020
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13022
# If ld is used when linking, flag to hardcode \$libdir into a binary
13023
# during linking. This must work even if \$libdir does not exist.
13024
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13026
# Whether we need a single "-rpath" flag with a separated argument.
13027
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13029
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13030
# DIR into the resulting binary.
13031
hardcode_direct=$hardcode_direct
13033
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13034
# DIR into the resulting binary and the resulting library dependency is
13035
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13036
# library is relocated.
13037
hardcode_direct_absolute=$hardcode_direct_absolute
13039
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13040
# into the resulting binary.
13041
hardcode_minus_L=$hardcode_minus_L
13043
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13044
# into the resulting binary.
13045
hardcode_shlibpath_var=$hardcode_shlibpath_var
13047
# Set to "yes" if building a shared library automatically hardcodes DIR
13048
# into the library and all subsequent libraries and executables linked
13050
hardcode_automatic=$hardcode_automatic
13052
# Set to yes if linker adds runtime paths of dependent libraries
13053
# to runtime path list.
13054
inherit_rpath=$inherit_rpath
13056
# Whether libtool must link a program against all its dependency libraries.
13057
link_all_deplibs=$link_all_deplibs
13059
# Fix the shell variable \$srcfile for the compiler.
13060
fix_srcfile_path=$lt_fix_srcfile_path
13062
# Set to "yes" if exported symbols are required.
13063
always_export_symbols=$always_export_symbols
13065
# The commands to list exported symbols.
13066
export_symbols_cmds=$lt_export_symbols_cmds
13068
# Symbols that should not be listed in the preloaded symbols.
13069
exclude_expsyms=$lt_exclude_expsyms
13071
# Symbols that must always be exported.
13072
include_expsyms=$lt_include_expsyms
13074
# Commands necessary for linking programs (against libraries) with templates.
13075
prelink_cmds=$lt_prelink_cmds
13077
# Specify filename containing input files.
13078
file_list_spec=$lt_file_list_spec
13080
# How to hardcode a shared library path into an executable.
13081
hardcode_action=$hardcode_action
13083
# ### END LIBTOOL CONFIG
13089
cat <<\_LT_EOF >> "$cfgfile"
13090
# AIX sometimes has problems with the GCC collect2 program. For some
13091
# reason, if we set the COLLECT_NAMES environment variable, the problems
13092
# vanish in a puff of smoke.
13093
if test "X${COLLECT_NAMES+set}" != Xset; then
13095
export COLLECT_NAMES
13102
ltmain="$ac_aux_dir/ltmain.sh"
13105
# We use sed instead of cat because bash on DJGPP gets confused if
13106
# if finds mixed CR/LF and LF-only lines. Since sed operates in
13107
# text mode, it properly converts lines to CR/LF. This bash problem
13108
# is reportedly fixed, but why not run on old versions too?
13109
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13110
|| (rm -f "$cfgfile"; exit 1)
13114
cat << \_LT_EOF >> "$cfgfile"
13116
# func_dirname file append nondir_replacement
13117
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13118
# otherwise set result to NONDIR_REPLACEMENT.
13122
*/*) func_dirname_result="${1%/*}${2}" ;;
13123
* ) func_dirname_result="${3}" ;;
13127
# func_basename file
13130
func_basename_result="${1##*/}"
13133
# func_dirname_and_basename file append nondir_replacement
13134
# perform func_basename and func_dirname in a single function
13136
# dirname: Compute the dirname of FILE. If nonempty,
13137
# add APPEND to the result, otherwise set result
13138
# to NONDIR_REPLACEMENT.
13139
# value returned in "$func_dirname_result"
13140
# basename: Compute filename of FILE.
13141
# value retuned in "$func_basename_result"
13142
# Implementation must be kept synchronized with func_dirname
13143
# and func_basename. For efficiency, we do not delegate to
13144
# those functions but instead duplicate the functionality here.
13145
func_dirname_and_basename ()
13148
*/*) func_dirname_result="${1%/*}${2}" ;;
13149
* ) func_dirname_result="${3}" ;;
13151
func_basename_result="${1##*/}"
13154
# func_stripname prefix suffix name
13155
# strip PREFIX and SUFFIX off of NAME.
13156
# PREFIX and SUFFIX must not contain globbing or regex special
13157
# characters, hashes, percent signs, but SUFFIX may contain a leading
13158
# dot (in which case that matches only a dot).
13161
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13162
# positional parameters, so assign one to ordinary parameter first.
13163
func_stripname_result=${3}
13164
func_stripname_result=${func_stripname_result#"${1}"}
13165
func_stripname_result=${func_stripname_result%"${2}"}
13171
func_opt_split_opt=${1%%=*}
13172
func_opt_split_arg=${1#*=}
13179
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13180
*) func_lo2o_result=${1} ;;
13184
# func_xform libobj-or-source
13187
func_xform_result=${1%.*}.lo
13190
# func_arith arithmetic-term...
13193
func_arith_result=$(( $* ))
13197
# STRING may not start with a hyphen.
13200
func_len_result=${#1}
13205
*) # Bourne compatible functions.
13206
cat << \_LT_EOF >> "$cfgfile"
13208
# func_dirname file append nondir_replacement
13209
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13210
# otherwise set result to NONDIR_REPLACEMENT.
13213
# Extract subdirectory from the argument.
13214
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13215
if test "X$func_dirname_result" = "X${1}"; then
13216
func_dirname_result="${3}"
13218
func_dirname_result="$func_dirname_result${2}"
13222
# func_basename file
13225
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13229
# func_stripname prefix suffix name
13230
# strip PREFIX and SUFFIX off of NAME.
13231
# PREFIX and SUFFIX must not contain globbing or regex special
13232
# characters, hashes, percent signs, but SUFFIX may contain a leading
13233
# dot (in which case that matches only a dot).
13234
# func_strip_suffix prefix name
13238
.*) func_stripname_result=`$ECHO "X${3}" \
13239
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13240
*) func_stripname_result=`$ECHO "X${3}" \
13241
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13246
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13247
my_sed_long_arg='1s/^-[^=]*=//'
13252
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13253
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13259
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13262
# func_xform libobj-or-source
13265
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13268
# func_arith arithmetic-term...
13271
func_arith_result=`expr "$@"`
13275
# STRING may not start with a hyphen.
13278
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13284
case $lt_shell_append in
13286
cat << \_LT_EOF >> "$cfgfile"
13288
# func_append var value
13289
# Append VALUE to the end of shell variable VAR.
13297
cat << \_LT_EOF >> "$cfgfile"
13299
# func_append var value
13300
# Append VALUE to the end of shell variable VAR.
13311
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13312
|| (rm -f "$cfgfile"; exit 1)
13314
mv -f "$cfgfile" "$ofile" ||
13315
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13326
ac_clean_files=$ac_clean_files_save
13328
test $ac_write_fail = 0 ||
13329
as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13332
# configure is writing to config.log, and then calls config.status.
13333
# config.status does its own redirection, appending to config.log.
13334
# Unfortunately, on DOS this fails, as config.log is still kept open
13335
# by configure, so config.status won't be able to write to it; its
13336
# output is simply discarded. So we exec the FD to /dev/null,
13337
# effectively closing config.log, so it can be properly (re)opened and
13338
# appended to by config.status. When coming back to configure, we
13339
# need to make the FD available again.
13340
if test "$no_create" != yes; then
13342
ac_config_status_args=
13343
test "$silent" = yes &&
13344
ac_config_status_args="$ac_config_status_args --quiet"
13346
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13348
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
13349
# would make configure fail if this is the last instruction.
13350
$ac_cs_success || as_fn_exit $?
13352
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13353
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13354
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}